@hippovideo/video-sdk 0.0.41 → 0.0.43
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/app/{0-bundle-hippo-ybgj1pmxfo-56590a568e199cb71b99.js → 0-bundle-hippo-0bfq2gif7xa9-56590a568e199cb71b99.js} +0 -0
- package/app/{0-bundle-hippo-ybgj1pmxfo-56590a568e199cb71b99.js.gz → 0-bundle-hippo-0bfq2gif7xa9-56590a568e199cb71b99.js.gz} +0 -0
- package/app/{1-bundle-hippo-ybgj1pmxfo-7f140a6a6ff2785c18b2.js → 1-bundle-hippo-0bfq2gif7xa9-7f140a6a6ff2785c18b2.js} +0 -0
- package/app/{1-bundle-hippo-ybgj1pmxfo-7f140a6a6ff2785c18b2.js.gz → 1-bundle-hippo-0bfq2gif7xa9-7f140a6a6ff2785c18b2.js.gz} +0 -0
- package/app/{10-bundle-hippo-ybgj1pmxfo-fb87e34b2fe1b4e17710.js → 10-bundle-hippo-0bfq2gif7xa9-fb87e34b2fe1b4e17710.js} +0 -0
- package/app/{10-bundle-hippo-ybgj1pmxfo-fb87e34b2fe1b4e17710.js.gz → 10-bundle-hippo-0bfq2gif7xa9-fb87e34b2fe1b4e17710.js.gz} +0 -0
- package/app/{11-bundle-hippo-ybgj1pmxfo-de896c6a6949d666c569.js → 11-bundle-hippo-0bfq2gif7xa9-de896c6a6949d666c569.js} +0 -0
- package/app/{11-bundle-hippo-ybgj1pmxfo-de896c6a6949d666c569.js.gz → 11-bundle-hippo-0bfq2gif7xa9-de896c6a6949d666c569.js.gz} +0 -0
- package/app/{12-bundle-hippo-ybgj1pmxfo-405524d761bc9b3e3e4f.js → 12-bundle-hippo-0bfq2gif7xa9-405524d761bc9b3e3e4f.js} +0 -0
- package/app/{12-bundle-hippo-ybgj1pmxfo-405524d761bc9b3e3e4f.js.gz → 12-bundle-hippo-0bfq2gif7xa9-405524d761bc9b3e3e4f.js.gz} +0 -0
- package/app/{13-bundle-hippo-ybgj1pmxfo-8dd08c33a173079b92f6.js → 13-bundle-hippo-0bfq2gif7xa9-8dd08c33a173079b92f6.js} +0 -0
- package/app/{13-bundle-hippo-ybgj1pmxfo-8dd08c33a173079b92f6.js.gz → 13-bundle-hippo-0bfq2gif7xa9-8dd08c33a173079b92f6.js.gz} +0 -0
- package/app/{14-bundle-hippo-ybgj1pmxfo-c4c6307a2990be2977a8.js → 14-bundle-hippo-0bfq2gif7xa9-c4c6307a2990be2977a8.js} +0 -0
- package/app/{14-bundle-hippo-ybgj1pmxfo-c4c6307a2990be2977a8.js.gz → 14-bundle-hippo-0bfq2gif7xa9-c4c6307a2990be2977a8.js.gz} +0 -0
- package/app/{15-bundle-hippo-ybgj1pmxfo-e5c7ddca6f731abf6030.js → 15-bundle-hippo-0bfq2gif7xa9-e5c7ddca6f731abf6030.js} +0 -0
- package/app/{15-bundle-hippo-ybgj1pmxfo-e5c7ddca6f731abf6030.js.gz → 15-bundle-hippo-0bfq2gif7xa9-e5c7ddca6f731abf6030.js.gz} +0 -0
- package/app/{16-bundle-hippo-ybgj1pmxfo-310251b16945bbb6603f.js → 16-bundle-hippo-0bfq2gif7xa9-310251b16945bbb6603f.js} +0 -0
- package/app/{16-bundle-hippo-ybgj1pmxfo-310251b16945bbb6603f.js.gz → 16-bundle-hippo-0bfq2gif7xa9-310251b16945bbb6603f.js.gz} +0 -0
- package/app/{17-bundle-hippo-ybgj1pmxfo-1fc94667389d604fa69c.js → 17-bundle-hippo-0bfq2gif7xa9-1fc94667389d604fa69c.js} +0 -0
- package/app/{17-bundle-hippo-ybgj1pmxfo-1fc94667389d604fa69c.js.gz → 17-bundle-hippo-0bfq2gif7xa9-1fc94667389d604fa69c.js.gz} +0 -0
- package/app/{18-bundle-hippo-ybgj1pmxfo-089a1d3c61f87ee88056.js → 18-bundle-hippo-0bfq2gif7xa9-089a1d3c61f87ee88056.js} +0 -0
- package/app/{18-bundle-hippo-ybgj1pmxfo-089a1d3c61f87ee88056.js.gz → 18-bundle-hippo-0bfq2gif7xa9-089a1d3c61f87ee88056.js.gz} +0 -0
- package/app/{19-bundle-hippo-ybgj1pmxfo-dea6453ac82f93d1dbde.js → 19-bundle-hippo-0bfq2gif7xa9-dea6453ac82f93d1dbde.js} +0 -0
- package/app/{19-bundle-hippo-ybgj1pmxfo-dea6453ac82f93d1dbde.js.gz → 19-bundle-hippo-0bfq2gif7xa9-dea6453ac82f93d1dbde.js.gz} +0 -0
- package/app/{2-bundle-hippo-ybgj1pmxfo-492ce8f7c79cefd805ed.js → 2-bundle-hippo-0bfq2gif7xa9-492ce8f7c79cefd805ed.js} +0 -0
- package/app/{2-bundle-hippo-ybgj1pmxfo-492ce8f7c79cefd805ed.js.gz → 2-bundle-hippo-0bfq2gif7xa9-492ce8f7c79cefd805ed.js.gz} +0 -0
- package/app/{20-bundle-hippo-ybgj1pmxfo-44ac7d0409add2d16207.js → 20-bundle-hippo-0bfq2gif7xa9-44ac7d0409add2d16207.js} +0 -0
- package/app/{20-bundle-hippo-ybgj1pmxfo-44ac7d0409add2d16207.js.gz → 20-bundle-hippo-0bfq2gif7xa9-44ac7d0409add2d16207.js.gz} +0 -0
- package/app/{21-bundle-hippo-ybgj1pmxfo-6f946465fb4e3290e1cc.js → 21-bundle-hippo-0bfq2gif7xa9-6f946465fb4e3290e1cc.js} +0 -0
- package/app/{21-bundle-hippo-ybgj1pmxfo-6f946465fb4e3290e1cc.js.gz → 21-bundle-hippo-0bfq2gif7xa9-6f946465fb4e3290e1cc.js.gz} +0 -0
- package/app/{22-bundle-hippo-ybgj1pmxfo-67c1de4a8a309f46e967.js → 22-bundle-hippo-0bfq2gif7xa9-67c1de4a8a309f46e967.js} +0 -0
- package/app/{22-bundle-hippo-ybgj1pmxfo-67c1de4a8a309f46e967.js.gz → 22-bundle-hippo-0bfq2gif7xa9-67c1de4a8a309f46e967.js.gz} +0 -0
- package/app/{23-bundle-hippo-ybgj1pmxfo-52b1f59b46ad40217d88.js → 23-bundle-hippo-0bfq2gif7xa9-52b1f59b46ad40217d88.js} +0 -0
- package/app/{23-bundle-hippo-ybgj1pmxfo-52b1f59b46ad40217d88.js.gz → 23-bundle-hippo-0bfq2gif7xa9-52b1f59b46ad40217d88.js.gz} +0 -0
- package/app/{24-bundle-hippo-ybgj1pmxfo-f69a61e7a0330a7ee721.js → 24-bundle-hippo-0bfq2gif7xa9-f69a61e7a0330a7ee721.js} +0 -0
- package/app/{24-bundle-hippo-ybgj1pmxfo-f69a61e7a0330a7ee721.js.gz → 24-bundle-hippo-0bfq2gif7xa9-f69a61e7a0330a7ee721.js.gz} +0 -0
- package/app/{25-bundle-hippo-ybgj1pmxfo-3bd1821622a2be73d3cc.js → 25-bundle-hippo-0bfq2gif7xa9-3bd1821622a2be73d3cc.js} +0 -0
- package/app/{25-bundle-hippo-ybgj1pmxfo-3bd1821622a2be73d3cc.js.gz → 25-bundle-hippo-0bfq2gif7xa9-3bd1821622a2be73d3cc.js.gz} +0 -0
- package/app/{26-bundle-hippo-ybgj1pmxfo-af58c09cc71e041943e3.js → 26-bundle-hippo-0bfq2gif7xa9-af58c09cc71e041943e3.js} +0 -0
- package/app/{26-bundle-hippo-ybgj1pmxfo-af58c09cc71e041943e3.js.gz → 26-bundle-hippo-0bfq2gif7xa9-af58c09cc71e041943e3.js.gz} +0 -0
- package/app/{27-bundle-hippo-ybgj1pmxfo-25d118b71c88ae02a6b8.js → 27-bundle-hippo-0bfq2gif7xa9-25d118b71c88ae02a6b8.js} +0 -0
- package/app/{27-bundle-hippo-ybgj1pmxfo-25d118b71c88ae02a6b8.js.gz → 27-bundle-hippo-0bfq2gif7xa9-25d118b71c88ae02a6b8.js.gz} +0 -0
- package/app/{28-bundle-hippo-ybgj1pmxfo-b98d1f70ef7a158cc14c.js → 28-bundle-hippo-0bfq2gif7xa9-b98d1f70ef7a158cc14c.js} +0 -0
- package/app/{28-bundle-hippo-ybgj1pmxfo-b98d1f70ef7a158cc14c.js.gz → 28-bundle-hippo-0bfq2gif7xa9-b98d1f70ef7a158cc14c.js.gz} +0 -0
- package/app/{29-bundle-hippo-ybgj1pmxfo-a82c751ef5532c450e38.js → 29-bundle-hippo-0bfq2gif7xa9-a82c751ef5532c450e38.js} +0 -0
- package/app/{29-bundle-hippo-ybgj1pmxfo-a82c751ef5532c450e38.js.gz → 29-bundle-hippo-0bfq2gif7xa9-a82c751ef5532c450e38.js.gz} +0 -0
- package/app/{3-bundle-hippo-ybgj1pmxfo-654f88d377c339a028bf.js → 3-bundle-hippo-0bfq2gif7xa9-654f88d377c339a028bf.js} +0 -0
- package/app/{3-bundle-hippo-ybgj1pmxfo-654f88d377c339a028bf.js.gz → 3-bundle-hippo-0bfq2gif7xa9-654f88d377c339a028bf.js.gz} +0 -0
- package/app/{30-bundle-hippo-ybgj1pmxfo-47318f833cb0a43049b2.js → 30-bundle-hippo-0bfq2gif7xa9-47318f833cb0a43049b2.js} +0 -0
- package/app/{30-bundle-hippo-ybgj1pmxfo-47318f833cb0a43049b2.js.gz → 30-bundle-hippo-0bfq2gif7xa9-47318f833cb0a43049b2.js.gz} +0 -0
- package/app/{31-bundle-hippo-ybgj1pmxfo-f20131c9840eaf800611.js → 31-bundle-hippo-0bfq2gif7xa9-f20131c9840eaf800611.js} +0 -0
- package/app/{31-bundle-hippo-ybgj1pmxfo-f20131c9840eaf800611.js.gz → 31-bundle-hippo-0bfq2gif7xa9-f20131c9840eaf800611.js.gz} +0 -0
- package/app/{32-bundle-hippo-ybgj1pmxfo-57e50dbe06492a245a1b.js → 32-bundle-hippo-0bfq2gif7xa9-57e50dbe06492a245a1b.js} +0 -0
- package/app/{32-bundle-hippo-ybgj1pmxfo-57e50dbe06492a245a1b.js.gz → 32-bundle-hippo-0bfq2gif7xa9-57e50dbe06492a245a1b.js.gz} +0 -0
- package/app/{33-bundle-hippo-ybgj1pmxfo-9784ffcd657108977e05.js → 33-bundle-hippo-0bfq2gif7xa9-9784ffcd657108977e05.js} +0 -0
- package/app/{33-bundle-hippo-ybgj1pmxfo-9784ffcd657108977e05.js.gz → 33-bundle-hippo-0bfq2gif7xa9-9784ffcd657108977e05.js.gz} +0 -0
- package/app/{34-bundle-hippo-ybgj1pmxfo-8d63594daab17666f71f.js → 34-bundle-hippo-0bfq2gif7xa9-8d63594daab17666f71f.js} +0 -0
- package/app/{34-bundle-hippo-ybgj1pmxfo-8d63594daab17666f71f.js.gz → 34-bundle-hippo-0bfq2gif7xa9-8d63594daab17666f71f.js.gz} +0 -0
- package/app/{35-bundle-hippo-ybgj1pmxfo-102fd8853430653828ba.js → 35-bundle-hippo-0bfq2gif7xa9-102fd8853430653828ba.js} +0 -0
- package/app/{35-bundle-hippo-ybgj1pmxfo-102fd8853430653828ba.js.gz → 35-bundle-hippo-0bfq2gif7xa9-102fd8853430653828ba.js.gz} +0 -0
- package/app/{4-bundle-hippo-ybgj1pmxfo-50eedd838abde712546a.js → 4-bundle-hippo-0bfq2gif7xa9-50eedd838abde712546a.js} +0 -0
- package/app/{4-bundle-hippo-ybgj1pmxfo-50eedd838abde712546a.js.gz → 4-bundle-hippo-0bfq2gif7xa9-50eedd838abde712546a.js.gz} +0 -0
- package/app/{6-bundle-hippo-ybgj1pmxfo-48e4fb74a0828a28353a.js → 6-bundle-hippo-0bfq2gif7xa9-48e4fb74a0828a28353a.js} +0 -0
- package/app/{6-bundle-hippo-ybgj1pmxfo-48e4fb74a0828a28353a.js.gz → 6-bundle-hippo-0bfq2gif7xa9-48e4fb74a0828a28353a.js.gz} +0 -0
- package/app/{7-bundle-hippo-ybgj1pmxfo-db26d9eb75c10a5c87a5.js → 7-bundle-hippo-0bfq2gif7xa9-db26d9eb75c10a5c87a5.js} +0 -0
- package/app/{7-bundle-hippo-ybgj1pmxfo-db26d9eb75c10a5c87a5.js.gz → 7-bundle-hippo-0bfq2gif7xa9-db26d9eb75c10a5c87a5.js.gz} +0 -0
- package/app/{8-bundle-hippo-ybgj1pmxfo-4824b888431f0f0e54ee.js → 8-bundle-hippo-0bfq2gif7xa9-4824b888431f0f0e54ee.js} +0 -0
- package/app/{8-bundle-hippo-ybgj1pmxfo-4824b888431f0f0e54ee.js.gz → 8-bundle-hippo-0bfq2gif7xa9-4824b888431f0f0e54ee.js.gz} +0 -0
- package/app/{9-bundle-hippo-ybgj1pmxfo-28423b47aac5fb64e0e0.js → 9-bundle-hippo-0bfq2gif7xa9-28423b47aac5fb64e0e0.js} +0 -0
- package/app/{9-bundle-hippo-ybgj1pmxfo-28423b47aac5fb64e0e0.js.gz → 9-bundle-hippo-0bfq2gif7xa9-28423b47aac5fb64e0e0.js.gz} +0 -0
- package/app/hv_recorder.js +2 -2
- package/app/hv_recorder.js.gz +0 -0
- package/app/webpack-common-manifest.json +70 -70
- package/package.json +1 -1
package/app/hv_recorder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.HVRecorder=t():e.HVRecorder=t()}(window,(function(){return function(e){function t(t){for(var i,r,o=t[0],a=t[1],s=0,c=[];s<o.length;s++)r=o[s],Object.prototype.hasOwnProperty.call(n,r)&&n[r]&&c.push(n[r][0]),n[r]=0;for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);for(l&&l(t);c.length;)c.shift()()}var i={},n={5:0};function r(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],i=n[e];if(0!==i)if(i)t.push(i[2]);else{var o=new Promise((function(t,r){i=n[e]=[t,r]}));t.push(i[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.src=function(e){return r.p+""+e+"-bundle-hippo-
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.HVRecorder=t():e.HVRecorder=t()}(window,(function(){return function(e){function t(t){for(var i,r,o=t[0],a=t[1],s=0,c=[];s<o.length;s++)r=o[s],Object.prototype.hasOwnProperty.call(n,r)&&n[r]&&c.push(n[r][0]),n[r]=0;for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);for(l&&l(t);c.length;)c.shift()()}var i={},n={5:0};function r(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],i=n[e];if(0!==i)if(i)t.push(i[2]);else{var o=new Promise((function(t,r){i=n[e]=[t,r]}));t.push(i[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.src=function(e){return r.p+""+e+"-bundle-hippo-0bfq2gif7xa9-"+{0:"56590a568e199cb71b99",1:"7f140a6a6ff2785c18b2",2:"492ce8f7c79cefd805ed",3:"654f88d377c339a028bf",4:"50eedd838abde712546a",6:"48e4fb74a0828a28353a",7:"db26d9eb75c10a5c87a5",8:"4824b888431f0f0e54ee",9:"28423b47aac5fb64e0e0",10:"fb87e34b2fe1b4e17710",11:"de896c6a6949d666c569",12:"405524d761bc9b3e3e4f",13:"8dd08c33a173079b92f6",14:"c4c6307a2990be2977a8",15:"e5c7ddca6f731abf6030",16:"310251b16945bbb6603f",17:"1fc94667389d604fa69c",18:"089a1d3c61f87ee88056",19:"dea6453ac82f93d1dbde",20:"44ac7d0409add2d16207",21:"6f946465fb4e3290e1cc",22:"67c1de4a8a309f46e967",23:"52b1f59b46ad40217d88",24:"f69a61e7a0330a7ee721",25:"3bd1821622a2be73d3cc",26:"af58c09cc71e041943e3",27:"25d118b71c88ae02a6b8",28:"b98d1f70ef7a158cc14c",29:"a82c751ef5532c450e38",30:"47318f833cb0a43049b2",31:"f20131c9840eaf800611",32:"57e50dbe06492a245a1b",33:"9784ffcd657108977e05",34:"8d63594daab17666f71f",35:"102fd8853430653828ba"}[e]+".js"}(e);var l=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(c);var i=n[e];if(0!==i){if(i){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",l.name="ChunkLoadError",l.type=r,l.request=o,i[1](l)}n[e]=void 0}};var c=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},r.m=e,r.c=i,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="https://antojoy-video-server.s3.us-west-2.amazonaws.com/recorder/stable/v0.0.43/app/",r.oe=function(e){throw console.error(e),e},void 0!==r&&Object.defineProperty(r,"p",{get:function(){try{if("string"!=typeof hvExtensionChunkDomain)throw new Error("WebpackRequireFrom: 'hvExtensionChunkDomain' is not a string or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting");return hvExtensionChunkDomain}catch(e){return console.error(e),"https://antojoy-video-server.s3.us-west-2.amazonaws.com/recorder/stable/v0.0.43/app/"}},set:function(e){console.warn("WebpackRequireFrom: something is trying to override webpack public path. Ignoring the new value"+e+".")}});var o=window.webpackJsonpHVRecorder=window.webpackJsonpHVRecorder||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var l=a;return r(r.s=432)}([function(e,t,i){var n;
|
|
2
2
|
/*!
|
|
3
3
|
* jQuery JavaScript Library v3.6.0
|
|
4
4
|
* https://jquery.com/
|
|
@@ -137,7 +137,7 @@ object-assign
|
|
|
137
137
|
* Copyright jQuery Foundation and other contributors
|
|
138
138
|
* Released under the MIT license.
|
|
139
139
|
* http://jquery.org/license
|
|
140
|
-
*/!function(s){"use strict";o=[i(0),i(767),i(768),i(49)],void 0===(a="function"==typeof(r=function(e){return e.effects={effect:{}},function(){var t,i=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function o(e){var t,i,n,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(i=r.length;i--;)"string"==typeof r[t=r[i]]&&(o[(n=t,n.replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()})))]=r[t]);else for(t in r)"string"==typeof r[t]&&(o[t]=r[t]);return o}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(n.style(e.elem,i,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,n,a,s){var l=e.speed(n,a,s);return this.queue((function(){var n,a=e(this),s=a.attr("class")||"",c=l.children?a.find("*").addBack():a;c=c.map((function(){return{el:e(this),start:o(this)}})),(n=function(){e.each(i,(function(e,i){t[i]&&a[i+"Class"](t[i])}))})(),c=c.map((function(){return this.end=o(this.el[0]),this.diff=function(t,i){var n,o,a={};for(n in i)o=i[n],t[n]!==o&&(r[n]||!e.fx.step[n]&&isNaN(parseFloat(o))||(a[n]=o));return a}(this.start,this.end),this})),a.attr("class",s),c=c.map((function(){var t=this,i=e.Deferred(),n=e.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,n),i.promise()})),e.when.apply(e,c.get()).done((function(){n(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),l.complete.call(a[0])}))}))},e.fn.extend({addClass:(t=e.fn.addClass,function(i,n,r,o){return n?e.effects.animateClass.call(this,{add:i},n,r,o):t.apply(this,arguments)}),removeClass:function(t){return function(i,n,r,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},n,r,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,n,r,o,a){return"boolean"==typeof n||void 0===n?r?e.effects.animateClass.call(this,n?{add:i}:{remove:i},r,o,a):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},n,r,o)}}(e.fn.toggleClass),switchClass:function(t,i,n,r,o){return e.effects.animateClass.call(this,{add:i,remove:t},n,r,o)}})}(),function(){var t;function i(t,i,n,r){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),"function"==typeof i&&(r=i,n=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(r=n,n=i,i={}),"function"==typeof n&&(r=n,n=null),i&&e.extend(t,i),n=n||i.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=r||i.complete,t}function n(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||("string"==typeof t&&!e.effects.effect[t]||("function"==typeof t||"object"==typeof t&&!t.effect))}function r(e,t){var i=t.outerWidth(),n=t.outerHeight(),r=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,i,n,0];return{top:parseFloat(r[1])||0,right:"auto"===r[2]?i:parseFloat(r[2]),bottom:"auto"===r[3]?n:parseFloat(r[3]),left:parseFloat(r[4])||0}}e.expr&&e.expr.pseudos&&e.expr.pseudos.animated&&(e.expr.pseudos.animated=(t=e.expr.pseudos.animated,function(i){return!!e(i).data("ui-effects-animated")||t(i)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var i=0,n=t.length;i<n;i++)null!==t[i]&&e.data("ui-effects-"+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,n=0,r=t.length;n<r;n++)null!==t[n]&&(i=e.data("ui-effects-"+t[n]),e.css(t[n],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},n=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return t.wrap(n),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,n){i[n]=t.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(r),n.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).trigger("focus")),t}}),e.extend(e.effects,{version:"1.13.2",define:function(t,i,n){return n||(n=i,i="effect"),e.effects.effect[t]=n,e.effects.effect[t].mode=i,n},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,r="vertical"!==i?(t||100)/100:1;return{height:e.height()*r,width:e.width()*n,outerHeight:e.outerHeight()*r,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();t>1&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data("ui-effects-style",e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data("ui-effects-style")||"",e.removeData("ui-effects-style")},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(t){var i,n=t.css("position"),r=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data("ui-effects-placeholder",i)),t.css({position:n,left:r.left,top:r.top}),i},removePlaceholder:function(e){var t="ui-effects-placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,i,n,r){return r=r||{},e.each(i,(function(e,i){var o=t.cssUnit(i);o[0]>0&&(r[i]=o[0]*n+o[1])})),r}}),e.fn.extend({effect:function(){var t=i.apply(this,arguments),n=e.effects.effect[t.effect],r=n.mode,o=t.queue,a=o||"fx",s=t.complete,l=t.mode,c=[],d=function(t){var i=e(this),n=e.effects.mode(i,l)||r;i.data("ui-effects-animated",!0),c.push(n),r&&("show"===n||n===r&&"hide"===n)&&i.show(),r&&"none"===n||e.effects.saveStyle(i),"function"==typeof t&&t()};if(e.fx.off||!n)return l?this[l](t.duration,s):this.each((function(){s&&s.call(this)}));function u(i){var o=e(this);function a(){"function"==typeof s&&s.call(o[0]),"function"==typeof i&&i()}t.mode=c.shift(),!1===e.uiBackCompat||r?"none"===t.mode?(o[l](),a()):n.call(o[0],t,(function(){o.removeData("ui-effects-animated"),e.effects.cleanUp(o),"hide"===t.mode&&o.hide(),a()})):(o.is(":hidden")?"hide"===l:"show"===l)?(o[l](),a()):n.call(o[0],t,a)}return!1===o?this.each(d).each(u):this.queue(a,d).queue(a,u)},show:function(e){return function(t){if(n(t))return e.apply(this,arguments);var r=i.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(e.fn.show),hide:function(e){return function(t){if(n(t))return e.apply(this,arguments);var r=i.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(e.fn.hide),toggle:function(e){return function(t){if(n(t)||"boolean"==typeof t)return e.apply(this,arguments);var r=i.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),n=[];return e.each(["em","px","%","pt"],(function(e,t){i.indexOf(t)>0&&(n=[parseFloat(i),t])})),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):r(this.css("clip"),this)},transfer:function(t,i){var n=e(this),r=e(t.to),o="fixed"===r.css("position"),a=e("body"),s=o?a.scrollTop():0,l=o?a.scrollLeft():0,c=r.offset(),d={top:c.top-s,left:c.left-l,height:r.innerHeight(),width:r.innerWidth()},u=n.offset(),p=e("<div class='ui-effects-transfer'></div>");p.appendTo("body").addClass(t.className).css({top:u.top-s,left:u.left-l,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(d,t.duration,t.easing,(function(){p.remove(),"function"==typeof i&&i()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=r(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,i){t[i]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?i(2*e)/2:1-i(-2*e+2)/2}}))}(),e.effects})?r.apply(t,o):r)||(e.exports=a)}()}).call(this,i(0))},function(e,t,i){i(172);var n=i(14),r=n.Service,o=n.apiLoader;o.services.firehose={},n.Firehose=r.defineService("firehose",["2015-08-04"]),Object.defineProperty(o.services.firehose,"2015-08-04",{get:function(){var e=i(546);return e.paginators=i(547).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Firehose},function(e,t,i){i(172);var n=i(14),r=n.Service,o=n.apiLoader;o.services.kinesis={},n.Kinesis=r.defineService("kinesis",["2013-12-02"]),Object.defineProperty(o.services.kinesis,"2013-12-02",{get:function(){var e=i(567);return e.paginators=i(568).pagination,e.waiters=i(569).waiters,e},enumerable:!0,configurable:!0}),e.exports=n.Kinesis},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div id="upgradeDiv"><div class="text-center"><img src="/img/hippo_in_car.png" /></div><div class="text-center upgrade-txt">').f(t.get(["upgradeMessage"],!1),t,"h").w('</div><div class="text-center margin-bottom-2"><a class="button upgrade-btn wiz-primary-btn no-margin">').f(t.getPath(!1,["wizShareI18N","upgrade"]),t,"h").w("</a>").x(t.get(["reviewAllowed"],!1),t,{else:i,block:n},{}).w("</div></div>")}function i(e,t){return e.w('<button class="cancel-btn radius">').f(t.getPath(!1,["wizShareI18N","notNow"]),t,"h").w("</button>")}function n(e,t){return e.w('<span class="or">OR</span><a class="button refer-button wiz-primary-btn no-margin" id="reviewBtn">').f(t.getPath(!1,["wizShareI18N","referAndEarn"]),t,"h").w("</a>")}e.register("templates/wiz/upgrade_popup_template",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/upgrade_popup_template",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div id="beforeSubmit"><form id="contactUsForm" class="pricing-form" onSubmit="return false"><div class="small-12 columns"><label for="right-label" class="hippo-label">').f(t.get(["contactUsYourRequirement"],!1),t,"h").w('</label><textarea rows="4" name="requirements" id="contactUsRequirements"></textarea></div><div class="modal-popup-footer text-center"><button type="submit" id="contactUsSubmit" class="wiz-primary-btn" >').f(t.get(["submit"],!1),t,"h").w('</button></div><center><label for="right-label" class="hippo-label inline-block call-us-at">').x(t.get(["isDemo"],!1),t,{else:i,block:n},{}).w('</label></center><input type="hidden" value="').f(t.get(["action"],!1),t,"h").w('" name="action"><input type="hidden" name="email" id="contactUsEmail" value="').f(t.get(["userEmail"],!1),t,"h").w('"/></form></div><div id="afterSubmit" class="after-submit clear hide"><svg class="svg-icon alert-icon-big"><use xlink:href="/symbol-defs.svg#icon-success-alert"/></svg><label>').f(t.get(["contactUsSuccessMessageOne"],!1),t,"h").w("</label><label>").x(t.get(["isDemo"],!1),t,{else:r,block:o},{}).w('</label><button type="submit" id="contactUsSuccess" class="wiz-primary-btn">').f(t.get(["ok"],!1),t,"h").w("</button></div>")}function i(e,t){return e.f(t.get(["callusAt"],!1),t,"h")}function n(e,t){return e.f(t.get(["callUsAtDemo"],!1),t,"h")}function r(e,t){return e.f(t.get(["callusAt"],!1),t,"h")}function o(e,t){return e.f(t.get(["callUsAtDemo"],!1),t,"h")}e.register("templates/wiz/contact_us_template",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/contact_us_template",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="before-confirm-sent"><div class="text-center line-height-0"><svg class="svg-icon alert-icon-big"><use xlink:href="/symbol-defs.svg#icon-info-big"/></svg></div><div class="text-center upgrade-txt">').f(t.getPath(!1,["wizShareI18N","confirmYourMail"]),t,"h").w('</div><div class="text-center margin-bottom-2"><a href="#" class="button send-confirmtion-btn radius wiz-primary-btn pading-left no-margin">').f(t.getPath(!1,["wizShareI18N","resendConfirmation"]),t,"h").w('</a><button class="cancel-btn radius not-now-btn no-margin">').f(t.getPath(!1,["wizShareI18N","notNow"]),t,"h").w('</button></div></div><div class="after-confirmation-sent hide"><div class="text-center line-height-0"><svg class="svg-icon alert-icon-big"><use xlink:href="/symbol-defs.svg#icon-success-alert"/></svg></div><div class="text-center upgrade-txt">').f(t.getPath(!1,["wizShareI18N","confirmSuccessMsg"]),t,"h").w('</div><div class="text-center margin-bottom-2"><button class="wiz-primary-btn not-now-btn radius no-margin">').f(t.getPath(!1,["wizShareI18N","ok"]),t,"h").w("</button></div></div>")}e.register("templates/wiz/confirm_alert_template",t),t.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/confirm_alert_template",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(0),i(10),i(25),i(572),i(573),i(574)],void 0===(r=function(e,t,i,n){return i.View.extend({template:n,initialize:function(e){this.id=e.id,this.name=e.name,this.placeholder=e.placeholder,this.dateFormat=e.dateFormat,this.altField=e.altField,this.altFormat=e.altFormat,this.onSelectEvent=e.onSelect},render:function(){this.$el.html(this.template({id:this.id,name:this.name,placeholder:this.placeholder})),this.$("input").datepicker({dateFormat:this.dateFormat,altFormat:this.altFormat,altField:this.altField,showAnim:"slideDown",maxDate:new Date,onSelect:this.onSelectEvent})}})}.apply(t,n))||(e.exports=r)},function(e,t,i){(function(){"use strict";i(23),i(78);var e=i(257);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(173),i(66),i(347);var n=e(i(37)),r=e(i(38)),o=e(i(51)),a=e(i(55)),s=e(i(42)),l=e(i(1)),c=e(i(69)),d=e(i(575));function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=(0,s.default)(e);if(t){var r=(0,s.default)(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return(0,a.default)(this,i)}}var p=function(e){console.log(e,"error in file-viewer")},h=function(e){(0,o.default)(i,e);var t=u(i);function i(e){return(0,n.default)(this,i),t.call(this,e)}return(0,r.default)(i,[{key:"componentWillUnmount",value:function(){c.default.unmountComponentAtNode(document.getElementById(this.props.$el))}},{key:"componentDidMount",value:function(){switch(this.getFileType()){case"pdf":case"csv":case"xlsx":case"jpg":case"jpeg":case"gif":case"bmp":case"png":case"docx":document.getElementById(this.props.$el).style.height="".concat(this.props.height,"px")}}},{key:"getFileType",value:function(){return this.props.file.split(/[#?]/)[0].split(".").pop().trim()}},{key:"renderView",value:function(){switch(this.getFileType()){case"pdf":case"csv":case"xlsx":case"jpg":case"jpeg":case"gif":case"bmp":case"png":case"docx":default:return l.default.createElement(d.default,{fileType:this.getFileType(),filePath:this.props.file,onError:p,height:this.props.height})}}},{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,this.renderView())}}]),i}(l.default.Component);t.default=h}).call(window)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.x(t.get(["ef_getting_starter"],!1),t,{block:i},{}).x(t.get(["ef_phone"],!1),t,{block:n},{}).x(t.get(["isFirstVideoCreated"],!1),t,{block:r},{})}function i(e,t){return e.w('<div class="inner-box"><img class="exit-close-btn close-btn" src="/svg/close-newgrey.svg" width="13"><img class="logo" src="/svg/hippo-video-logo.svg" width="140"><h1 class="hp-exit-pop-title">').f(t.get(["leavingAlready"],!1),t,"h").w('</h1><h3 class="hp-exit-pop-subtext">').f(t.get(["missOutGetting"],!1),t,"h").w('</h3><a class="sgs-close-alert hp-exit-pop-btn-text">').f(t.get(["takeMeToProduct"],!1),t,"h").w("</a></div>")}function n(e,t){return e.w('<div class="singup-exitpop-wrapper"><span class="exit-close-btn singup-exitpop-close"></span><h5>').f(t.get(["exitPopTitle"],!1),t,"h").w("</h1><p>").f(t.get(["exitPopDescription"],!1),t,"h").w('</p><img src="/svg/signup-exit-illu.svg" alt="Exit pop illustration" /><a class="wiz-button wiz-primary-btn sgs-close-alert">').f(t.get(["startYourTrialNow"],!1),t,"h").w("</a></div>")}function r(e,t){return e.w('<div class="singup-exitpop-wrapper"><h2>').f(t.get(["videoNotCreatedExitPopupTitle"],!1),t,"h").w("</h2><p>").f(t.get(["videoNotCreatedExitPopupP1"],!1),t,"h").w('</p><img src="/svg/illu-exit.svg" alt="Leaving Already"><div class="hv-exit-footer">\x3c!-- <a class="sgs-close-alert hp-exit-pop-btn-text">').f(t.get(["takeMeToProduct"],!1),t,"h").w('</a> --\x3e<button class="vd-exit-pop-up-cancel-btn hv-btn-negative">').f(t.get(["cancel"],!1),t,"h").w('</button><button class="vd-exit-pop-up-record-btn hv-btn-primary">').f(t.get(["recordAndImport"],!1),t,"h").w("</button></div></div>")}e.register("templates/getting_started/exit_popup",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/getting_started/exit_popup",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w("").x(t.get(["showSupportChat"],!1),t,{block:i},{}).w("")}function i(e,t){return e.x(t.get(["showDriftWidget"],!1),t,{else:n,block:s},{})}function n(e,t){return e.w('<script src="https://wchat.freshchat.com/js/widget.js" async><\/script><script>window.fcSettings = {token: "32e61f7b-f854-41e0-b3c2-ecc2be622f39",host: "https://wchat.freshchat.com",siteId: "HippoVideo",email: "').f(t.get(["email"],!1),t,"h").w('",firstName: "').f(t.get(["first_name"],!1),t,"h").w('",lastName: "').f(t.get(["last_name"],!1),t,"h").w('",phone: "').f(t.get(["phone"],!1),t,"h").w("\",config: {cssNames: { widget: 'custom-freshchat' },headerProperty: {hideChatButton: true}},onInit: function() {window.fcWidget.on('widget:loaded', function() {window.fcWidget.user.setProperties({email: \"").f(t.get(["email"],!1),t,"h").w('",firstName: "').f(t.get(["first_name"],!1),t,"h").w('",lastName: "').f(t.get(["last_name"],!1),t,"h").w('",phone: "').f(t.get(["phone"],!1),t,"h").w('",userType: "').f(t.get(["individual_segment"],!1),t,"h").w('",plan: "').f(t.get(["plan_name"],!1),t,"h").w('",leadOwner: "').f(t.get(["hippo_lead_owner"],!1),t,"h").w('",leadCalendlyLink: "').f(t.get(["hippo_lead_calendly_link"],!1),t,"h").w('",});').x(t.get(["trialExtended"],!1),t,{block:r},{}).w("});}};<\/script><style>#fc_frame[fresh-chat-left] {left: 60px !important;}#fc_frame[fresh-chat-right] {left: auto !important;}#fc_frame{left: auto !important;z-index: 10004 !important;}#fc_frame[fresh-chat-show]{display: block !important;}#fc_frame[fresh-chat-hide]{display: none !important;}#fc_frame{left: 60px !important;bottom: 20px !important;right: auto !important;}</style>").x(t.get(["show_chat_on_left"],!1),t,{block:o},{}).x(t.get(["hide_chat"],!1),t,{block:a},{})}function r(e,t){return e.w('window.fcWidget.user.setProperties({"TrialExtended": "Yes"});')}function o(e,t){return e.w("<style>#fc_frame{left: 60px !important;bottom: 20px !important;}</style>")}function a(e,t){return e.w("<style>#fc_frame{display: none;}</style>")}function s(e,t){return e.w('\x3c!-- Start of Async Drift Code --\x3e<script>"use strict";!function() {var t = window.driftt = window.drift = window.driftt || [];if (!t.init) {if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice."));t.invoked = !0, t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ],t.factory = function(e) {return function() {var n = Array.prototype.slice.call(arguments);return n.unshift(e), t.push(n), t;};}, t.methods.forEach(function(e) {t[e] = t.factory(e);}), t.load = function(t) {var e = 3e5, n = Math.ceil(new Date() / e) * e, o = document.createElement("script");o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + n + "/" + t + ".js";var i = document.getElementsByTagName("script")[0];i.parentNode.insertBefore(o, i);};}}();drift.SNIPPET_VERSION = \'0.3.1\';drift.load(\'7kgk33yz9gcy\');drift.identify("').f(t.get(["id"],!1),t,"h").w('", {email: "').f(t.get(["email"],!1),t,"h").w("\",'Name': \"").f(t.get(["driftName"],!1),t,"h").w("\",'User Type': \"").f(t.get(["individual_segment"],!1),t,"h").w("\",'Plan Name': \"").f(t.get(["full_plan_name"],!1),t,"h").w("\",'Lead Owner': \"").f(t.get(["hippo_lead_owner"],!1),t,"h").w('"})<\/script><style>iframe#drift-widget[drift-chat-right] {left: auto !important;}iframe#drift-widget[drift-chat-left] {left: 70px !important;}#drift-widget-container{z-index: 1000 !important;}#drift-widget-container[drift-chat-show]{display: block !important;}#drift-widget-container[drift-chat-hide]{display: none !important;}</style>').x(t.get(["show_chat_on_left"],!1),t,{block:l},{}).x(t.get(["hide_chat"],!1),t,{block:c},{}).w("\x3c!-- End of Async Drift Code --\x3e")}function l(e,t){return e.w("<style>#drift-widget{left: 70px !important;bottom: 20px !important;}</style>")}function c(e,t){return e.w("<style>#drift-widget-container{display: none;}</style>")}e.register("hippo/templates/SupportChatWidget",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0}(e),function(t,i){var n;return e.render("hippo/templates/SupportChatWidget",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){e.exports=function e(t,i,n){function r(a,s){if(!i[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[a]={exports:{}};t[a][0].call(c.exports,(function(e){return r(t[a][1][e]||e)}),c,c.exports,e,t,i,n)}return i[a].exports}for(var o=!1,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(e,t,i){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},{}],2:[function(e,t,i){var n=e("./utils").getSymbolSize;i.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,i=n(e),r=145===i?26:2*Math.ceil((i-13)/(2*t-2)),o=[i-7],a=1;a<t-1;a++)o[a]=o[a-1]-r;return o.push(6),o.reverse()},i.getPositions=function(e){for(var t=[],n=i.getRowColCoords(e),r=n.length,o=0;o<r;o++)for(var a=0;a<r;a++)0===o&&0===a||0===o&&a===r-1||o===r-1&&0===a||t.push([n[o],n[a]]);return t}},{"./utils":21}],3:[function(e,t,i){function n(e){this.mode=r.ALPHANUMERIC,this.data=e}var r=e("./mode"),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];n.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var i=45*o.indexOf(this.data[t]);i+=o.indexOf(this.data[t+1]),e.put(i,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},t.exports=n},{"./mode":14}],4:[function(e,t,i){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var i=0;i<t;i++)this.putBit(1==(e>>>t-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n},{}],5:[function(e,t,i){function n(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}var r=e("../utils/buffer");n.prototype.set=function(e,t,i,n){var r=e*this.size+t;this.data[r]=i,n&&(this.reservedBit[r]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n},{"../utils/buffer":28}],6:[function(e,t,i){function n(e){this.mode=o.BYTE,this.data=r.from(e)}var r=e("../utils/buffer"),o=e("./mode");n.getBitsLength=function(e){return 8*e},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){for(var t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)},t.exports=n},{"../utils/buffer":28,"./mode":14}],7:[function(e,t,i){var n=e("./error-correction-level"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];i.getBlocksCount=function(e,t){switch(t){case n.L:return r[4*(e-1)+0];case n.M:return r[4*(e-1)+1];case n.Q:return r[4*(e-1)+2];case n.H:return r[4*(e-1)+3];default:return}},i.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return o[4*(e-1)+0];case n.M:return o[4*(e-1)+1];case n.Q:return o[4*(e-1)+2];case n.H:return o[4*(e-1)+3];default:return}}},{"./error-correction-level":8}],8:[function(e,t,i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2},i.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},i.from=function(e,t){if(i.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return t}}},{}],9:[function(e,t,i){var n=e("./utils").getSymbolSize;i.getPositions=function(e){var t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},{"./utils":21}],10:[function(e,t,i){var n=e("./utils"),r=n.getBCHDigit(1335);i.getEncodedBits=function(e,t){for(var i=e.bit<<3|t,o=i<<10;n.getBCHDigit(o)-r>=0;)o^=1335<<n.getBCHDigit(o)-r;return 21522^(i<<10|o)}},{"./utils":21}],11:[function(e,t,i){var n=e("../utils/buffer"),r=n.alloc(512),o=n.alloc(256);!function(){for(var e=1,t=0;t<255;t++)r[t]=e,o[e]=t,256&(e<<=1)&&(e^=285);for(t=255;t<512;t++)r[t]=r[t-255]}(),i.log=function(e){if(e<1)throw new Error("log("+e+")");return o[e]},i.exp=function(e){return r[e]},i.mul=function(e,t){return 0===e||0===t?0:r[o[e]+o[t]]}},{"../utils/buffer":28}],12:[function(e,t,i){function n(e){this.mode=r.KANJI,this.data=e}var r=e("./mode"),o=e("./utils");n.getBitsLength=function(e){return 13*e},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var i=o.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");i-=49472}i=192*(i>>>8&255)+(255&i),e.put(i,13)}},t.exports=n},{"./mode":14,"./utils":21}],13:[function(e,t,i){function n(e,t,n){switch(e){case i.Patterns.PATTERN000:return(t+n)%2==0;case i.Patterns.PATTERN001:return t%2==0;case i.Patterns.PATTERN010:return n%3==0;case i.Patterns.PATTERN011:return(t+n)%3==0;case i.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case i.Patterns.PATTERN101:return t*n%2+t*n%3==0;case i.Patterns.PATTERN110:return(t*n%2+t*n%3)%2==0;case i.Patterns.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r=3,o=3,a=40,s=10;i.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},i.from=function(e){return i.isValid(e)?parseInt(e,10):void 0},i.getPenaltyN1=function(e){for(var t=e.size,i=0,n=0,o=0,a=null,s=null,l=0;l<t;l++){n=o=0,a=s=null;for(var c=0;c<t;c++){var d=e.get(l,c);d===a?n++:(n>=5&&(i+=r+(n-5)),a=d,n=1),(d=e.get(c,l))===s?o++:(o>=5&&(i+=r+(o-5)),s=d,o=1)}n>=5&&(i+=r+(n-5)),o>=5&&(i+=r+(o-5))}return i},i.getPenaltyN2=function(e){for(var t=e.size,i=0,n=0;n<t-1;n++)for(var r=0;r<t-1;r++){var a=e.get(n,r)+e.get(n,r+1)+e.get(n+1,r)+e.get(n+1,r+1);4!==a&&0!==a||i++}return i*o},i.getPenaltyN3=function(e){for(var t=e.size,i=0,n=0,r=0,o=0;o<t;o++){n=r=0;for(var s=0;s<t;s++)n=n<<1&2047|e.get(o,s),s>=10&&(1488===n||93===n)&&i++,r=r<<1&2047|e.get(s,o),s>=10&&(1488===r||93===r)&&i++}return i*a},i.getPenaltyN4=function(e){for(var t=0,i=e.data.length,n=0;n<i;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/i/5)-10)*s},i.applyMask=function(e,t){for(var i=t.size,r=0;r<i;r++)for(var o=0;o<i;o++)t.isReserved(o,r)||t.xor(o,r,n(e,o,r))},i.getBestMask=function(e,t){for(var n=Object.keys(i.Patterns).length,r=0,o=1/0,a=0;a<n;a++){t(a),i.applyMask(a,e);var s=i.getPenaltyN1(e)+i.getPenaltyN2(e)+i.getPenaltyN3(e)+i.getPenaltyN4(e);i.applyMask(a,e),s<o&&(o=s,r=a)}return r}},{}],14:[function(e,t,i){var n=e("./version-check"),r=e("./regex");i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!n.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},i.getBestModeForData=function(e){return r.testNumeric(e)?i.NUMERIC:r.testAlphanumeric(e)?i.ALPHANUMERIC:r.testKanji(e)?i.KANJI:i.BYTE},i.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},i.isValid=function(e){return e&&e.bit&&e.ccBits},i.from=function(e,t){if(i.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return t}}},{"./regex":19,"./version-check":22}],15:[function(e,t,i){function n(e){this.mode=r.NUMERIC,this.data=e.toString()}var r=e("./mode");n.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){var t,i,n;for(t=0;t+3<=this.data.length;t+=3)i=this.data.substr(t,3),n=parseInt(i,10),e.put(n,10);var r=this.data.length-t;r>0&&(i=this.data.substr(t),n=parseInt(i,10),e.put(n,3*r+1))},t.exports=n},{"./mode":14}],16:[function(e,t,i){var n=e("../utils/buffer"),r=e("./galois-field");i.mul=function(e,t){for(var i=n.alloc(e.length+t.length-1),o=0;o<e.length;o++)for(var a=0;a<t.length;a++)i[o+a]^=r.mul(e[o],t[a]);return i},i.mod=function(e,t){for(var i=n.from(e);i.length-t.length>=0;){for(var o=i[0],a=0;a<t.length;a++)i[a]^=r.mul(t[a],o);for(var s=0;s<i.length&&0===i[s];)s++;i=i.slice(s)}return i},i.generateECPolynomial=function(e){for(var t=n.from([1]),o=0;o<e;o++)t=i.mul(t,[1,r.exp(o)]);return t}},{"../utils/buffer":28,"./galois-field":11}],17:[function(e,t,i){function n(e,t){for(var i=e.size,n=f.getPositions(t),r=0;r<n.length;r++)for(var o=n[r][0],a=n[r][1],s=-1;s<=7;s++)if(!(o+s<=-1||i<=o+s))for(var l=-1;l<=7;l++)a+l<=-1||i<=a+l||(s>=0&&s<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===s||6===s)||s>=2&&s<=4&&l>=2&&l<=4?e.set(o+s,a+l,!0,!0):e.set(o+s,a+l,!1,!0))}function r(e,t){for(var i=h.getPositions(t),n=0;n<i.length;n++)for(var r=i[n][0],o=i[n][1],a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2===a||2===a||-2===s||2===s||0===a&&0===s?e.set(r+a,o+s,!0,!0):e.set(r+a,o+s,!1,!0)}function o(e,t,i){var n,r,o=e.size,a=b.getEncodedBits(t,i);for(n=0;n<15;n++)r=1==(a>>n&1),n<6?e.set(n,8,r,!0):n<8?e.set(n+1,8,r,!0):e.set(o-15+n,8,r,!0),n<8?e.set(8,o-n-1,r,!0):n<9?e.set(8,15-n-1+1,r,!0):e.set(8,15-n-1,r,!0);e.set(o-8,8,1,!0)}function a(e,t,i){var n=new u;i.forEach((function(t){n.put(t.mode.bit,4),n.put(t.getLength(),w.getCharCountIndicator(t.mode,e)),t.write(n)}));var r=8*(c.getSymbolTotalCodewords(e)-g.getTotalCodewordsCount(e,t));for(n.getLengthInBits()+4<=r&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);for(var o=(r-n.getLengthInBits())/8,a=0;a<o;a++)n.put(a%2?17:236,8);return function(e,t,i){for(var n=c.getSymbolTotalCodewords(t),r=g.getTotalCodewordsCount(t,i),o=n-r,a=g.getBlocksCount(t,i),s=a-n%a,d=Math.floor(n/a),u=Math.floor(o/a),p=u+1,h=d-u,f=new v(h),m=0,y=new Array(a),b=new Array(a),w=0,S=l.from(e.buffer),C=0;C<a;C++){var k=C<s?u:p;y[C]=S.slice(m,m+k),b[C]=f.encode(y[C]),m+=k,w=Math.max(w,k)}var x,_,E=l.alloc(n),T=0;for(x=0;x<w;x++)for(_=0;_<a;_++)x<y[_].length&&(E[T++]=y[_][x]);for(x=0;x<h;x++)for(_=0;_<a;_++)E[T++]=b[_][x];return E}(n,e,t)}function s(e,t,i,s){var l;if(C(e))l=S.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");var d=t;if(!d){var u=S.rawSplit(e);d=y.getBestVersionForData(u,i)}l=S.fromString(e,d||40)}var h=y.getBestVersionForData(l,i);if(!h)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<h)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+h+".\n")}else t=h;var f=a(t,i,l),g=c.getSymbolSize(t),v=new p(g);return n(v,t),function(e){for(var t=e.size,i=8;i<t-8;i++){var n=i%2==0;e.set(i,6,n,!0),e.set(6,i,n,!0)}}(v),r(v,t),o(v,i,0),t>=7&&function(e,t){for(var i,n,r,o=e.size,a=y.getEncodedBits(t),s=0;s<18;s++)i=Math.floor(s/3),n=s%3+o-8-3,r=1==(a>>s&1),e.set(i,n,r,!0),e.set(n,i,r,!0)}(v,t),function(e,t){for(var i=e.size,n=-1,r=i-1,o=7,a=0,s=i-1;s>0;s-=2)for(6===s&&s--;;){for(var l=0;l<2;l++)if(!e.isReserved(r,s-l)){var c=!1;a<t.length&&(c=1==(t[a]>>>o&1)),e.set(r,s-l,c),-1==--o&&(a++,o=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}}(v,f),isNaN(s)&&(s=m.getBestMask(v,o.bind(null,v,i))),m.applyMask(s,v),o(v,i,s),{modules:v,version:t,errorCorrectionLevel:i,maskPattern:s,segments:l}}var l=e("../utils/buffer"),c=e("./utils"),d=e("./error-correction-level"),u=e("./bit-buffer"),p=e("./bit-matrix"),h=e("./alignment-pattern"),f=e("./finder-pattern"),m=e("./mask-pattern"),g=e("./error-correction-code"),v=e("./reed-solomon-encoder"),y=e("./version"),b=e("./format-info"),w=e("./mode"),S=e("./segments"),C=e("isarray");i.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var i,n,r=d.M;return void 0!==t&&(r=d.from(t.errorCorrectionLevel,d.M),i=y.from(t.version),n=m.from(t.maskPattern),t.toSJISFunc&&c.setToSJISFunction(t.toSJISFunc)),s(e,i,r,n)}},{"../utils/buffer":28,"./alignment-pattern":2,"./bit-buffer":4,"./bit-matrix":5,"./error-correction-code":7,"./error-correction-level":8,"./finder-pattern":9,"./format-info":10,"./mask-pattern":13,"./mode":14,"./reed-solomon-encoder":18,"./segments":20,"./utils":21,"./version":23,isarray:33}],18:[function(e,t,i){function n(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}var r=e("../utils/buffer"),o=e("./polynomial"),a=e("buffer").Buffer;n.prototype.initialize=function(e){this.degree=e,this.genPoly=o.generateECPolynomial(this.degree)},n.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=r.alloc(this.degree),i=a.concat([e,t],e.length+this.degree),n=o.mod(i,this.genPoly),s=this.degree-n.length;if(s>0){var l=r.alloc(this.degree);return n.copy(l,s),l}return n},t.exports=n},{"../utils/buffer":28,"./polynomial":16,buffer:30}],19:[function(e,t,i){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",r="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";i.KANJI=new RegExp(n,"g"),i.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),i.BYTE=new RegExp(r,"g"),i.NUMERIC=new RegExp("[0-9]+","g"),i.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var o=new RegExp("^"+n+"$"),a=new RegExp("^[0-9]+$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i.testKanji=function(e){return o.test(e)},i.testNumeric=function(e){return a.test(e)},i.testAlphanumeric=function(e){return s.test(e)}},{}],20:[function(e,t,i){function n(e){return unescape(encodeURIComponent(e)).length}function r(e,t,i){for(var n,r=[];null!==(n=e.exec(i));)r.push({data:n[0],index:n.index,mode:t,length:n[0].length});return r}function o(e){var t,i,n=r(m.NUMERIC,d.NUMERIC,e),o=r(m.ALPHANUMERIC,d.ALPHANUMERIC,e);return g.isKanjiModeEnabled()?(t=r(m.BYTE,d.BYTE,e),i=r(m.KANJI,d.KANJI,e)):(t=r(m.BYTE_KANJI,d.BYTE,e),i=[]),n.concat(o,t,i).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function a(e,t){switch(t){case d.NUMERIC:return u.getBitsLength(e);case d.ALPHANUMERIC:return p.getBitsLength(e);case d.KANJI:return f.getBitsLength(e);case d.BYTE:return h.getBitsLength(e)}}function s(e){for(var t=[],i=0;i<e.length;i++){var r=e[i];switch(r.mode){case d.NUMERIC:t.push([r,{data:r.data,mode:d.ALPHANUMERIC,length:r.length},{data:r.data,mode:d.BYTE,length:r.length}]);break;case d.ALPHANUMERIC:t.push([r,{data:r.data,mode:d.BYTE,length:r.length}]);break;case d.KANJI:t.push([r,{data:r.data,mode:d.BYTE,length:n(r.data)}]);break;case d.BYTE:t.push([{data:r.data,mode:d.BYTE,length:n(r.data)}])}}return t}function l(e,t){for(var i={},n={start:{}},r=["start"],o=0;o<e.length;o++){for(var s=e[o],l=[],c=0;c<s.length;c++){var u=s[c],p=""+o+c;l.push(p),i[p]={node:u,lastCount:0},n[p]={};for(var h=0;h<r.length;h++){var f=r[h];i[f]&&i[f].node.mode===u.mode?(n[f][p]=a(i[f].lastCount+u.length,u.mode)-a(i[f].lastCount,u.mode),i[f].lastCount+=u.length):(i[f]&&(i[f].lastCount=u.length),n[f][p]=a(u.length,u.mode)+4+d.getCharCountIndicator(u.mode,t))}}r=l}for(h=0;h<r.length;h++)n[r[h]].end=0;return{map:n,table:i}}function c(e,t){var i,n=d.getBestModeForData(e);if((i=d.from(t,n))!==d.BYTE&&i.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+d.toString(i)+".\n Suggested mode is: "+d.toString(n));switch(i!==d.KANJI||g.isKanjiModeEnabled()||(i=d.BYTE),i){case d.NUMERIC:return new u(e);case d.ALPHANUMERIC:return new p(e);case d.KANJI:return new f(e);case d.BYTE:return new h(e)}}var d=e("./mode"),u=e("./numeric-data"),p=e("./alphanumeric-data"),h=e("./byte-data"),f=e("./kanji-data"),m=e("./regex"),g=e("./utils"),v=e("dijkstrajs");i.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(c(t,null)):t.data&&e.push(c(t.data,t.mode)),e}),[])},i.fromString=function(e,t){for(var n=l(s(o(e,g.isKanjiModeEnabled())),t),r=v.find_path(n.map,"start","end"),a=[],c=1;c<r.length-1;c++)a.push(n.table[r[c]].node);return i.fromArray(function(e){return e.reduce((function(e,t){var i=e.length-1>=0?e[e.length-1]:null;return i&&i.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(a))},i.rawSplit=function(e){return i.fromArray(o(e,g.isKanjiModeEnabled()))}},{"./alphanumeric-data":3,"./byte-data":6,"./kanji-data":12,"./mode":14,"./numeric-data":15,"./regex":19,"./utils":21,dijkstrajs:31}],21:[function(e,t,i){var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];i.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},i.getSymbolTotalCodewords=function(e){return r[e]},i.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},i.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},i.isKanjiModeEnabled=function(){return void 0!==n},i.toSJIS=function(e){return n(e)}},{}],22:[function(e,t,i){i.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},{}],23:[function(e,t,i){function n(e,t,n){for(var r=1;r<=40;r++)if(t<=i.getCapacity(r,n,e))return r}function r(e,t){return d.getCharCountIndicator(e,t)+4}function o(e,t){var i=0;return e.forEach((function(e){var n=r(e.mode,t);i+=n+e.getBitsLength()})),i}function a(e,t){for(var n=1;n<=40;n++)if(o(e,n)<=i.getCapacity(n,t,d.MIXED))return n}var s=e("./utils"),l=e("./error-correction-code"),c=e("./error-correction-level"),d=e("./mode"),u=e("./version-check"),p=e("isarray"),h=s.getBCHDigit(7973);i.from=function(e,t){return u.isValid(e)?parseInt(e,10):t},i.getCapacity=function(e,t,i){if(!u.isValid(e))throw new Error("Invalid QR Code version");void 0===i&&(i=d.BYTE);var n=8*(s.getSymbolTotalCodewords(e)-l.getTotalCodewordsCount(e,t));if(i===d.MIXED)return n;var o=n-r(i,e);switch(i){case d.NUMERIC:return Math.floor(o/10*3);case d.ALPHANUMERIC:return Math.floor(o/11*2);case d.KANJI:return Math.floor(o/13);case d.BYTE:default:return Math.floor(o/8)}},i.getBestVersionForData=function(e,t){var i,r=c.from(t,c.M);if(p(e)){if(e.length>1)return a(e,r);if(0===e.length)return 1;i=e[0]}else i=e;return n(i.mode,i.getLength(),r)},i.getEncodedBits=function(e){if(!u.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;s.getBCHDigit(t)-h>=0;)t^=7973<<s.getBCHDigit(t)-h;return e<<12|t}},{"./error-correction-code":7,"./error-correction-level":8,"./mode":14,"./utils":21,"./version-check":22,isarray:33}],24:[function(e,t,i){function n(e,t,i,n,a){var s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(i=t,t=n=void 0):2!==l||t.getContext||(n=i,i=t,t=void 0),new Promise((function(r,a){try{var s=o.create(i,n);r(e(s,t,n))}catch(e){a(e)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=i,i=t,t=n=void 0):3===l&&(t.getContext&&void 0===a?(a=n,n=void 0):(a=n,n=i,i=t,t=void 0));try{var d=o.create(i,n);a(null,e(d,t,n))}catch(e){a(e)}}var r=e("./can-promise"),o=e("./core/qrcode"),a=e("./renderer/canvas"),s=e("./renderer/svg-tag.js");i.create=o.create,i.toCanvas=n.bind(null,a.render),i.toDataURL=n.bind(null,a.renderToDataURL),i.toString=n.bind(null,(function(e,t,i){return s.render(e,i)}))},{"./can-promise":1,"./core/qrcode":17,"./renderer/canvas":25,"./renderer/svg-tag.js":26}],25:[function(e,t,i){var n=e("./utils");i.render=function(e,t,i){var r=i,o=t;void 0!==r||t&&t.getContext||(r=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),r=n.getOptions(r);var a=n.getImageWidth(e.modules.size,r),s=o.getContext("2d"),l=s.createImageData(a,a);return n.qrToImageData(l.data,e,r),function(e,t,i){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=i,t.width=i,t.style.height=i+"px",t.style.width=i+"px"}(s,o,a),s.putImageData(l,0,0),o},i.renderToDataURL=function(e,t,n){var r=n;void 0!==r||t&&t.getContext||(r=t,t=void 0),r||(r={});var o=i.render(e,t,r),a=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(a,s.quality)}},{"./utils":27}],26:[function(e,t,i){function n(e,t){var i=e.a/255,n=t+'="'+e.hex+'"';return i<1?n+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':n}function r(e,t,i){var n=e+t;return void 0!==i&&(n+=" "+i),n}function o(e,t,i){for(var n="",o=0,a=!1,s=0,l=0;l<e.length;l++){var c=Math.floor(l%t),d=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(n+=a?r("M",c+i,.5+d+i):r("m",o,0),o=0,a=!1),c+1<t&&e[l+1]||(n+=r("h",s),s=0)):o++}return n}var a=e("./utils");i.render=function(e,t,i){var r=a.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*r.margin,d=r.color.light.a?"<path "+n(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+n(r.color.dark,"stroke")+' d="'+o(l,s,r.margin)+'"/>',p='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+p+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof i&&i(null,h),h}},{"./utils":27}],27:[function(e,t,i){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var i=parseInt(t.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+t.slice(0,6).join("")}}i.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,i=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:i,scale:i?4:r,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},i.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},i.getImageWidth=function(e,t){var n=i.getScale(e,t);return Math.floor((e+2*t.margin)*n)},i.qrToImageData=function(e,t,n){for(var r=t.modules.size,o=t.modules.data,a=i.getScale(r,n),s=Math.floor((r+2*n.margin)*a),l=n.margin*a,c=[n.color.light,n.color.dark],d=0;d<s;d++)for(var u=0;u<s;u++){var p=4*(d*s+u),h=n.color.light;d>=l&&u>=l&&d<s-l&&u<s-l&&(h=c[o[Math.floor((d-l)/a)*r+Math.floor((u-l)/a)]?1:0]),e[p++]=h.r,e[p++]=h.g,e[p++]=h.b,e[p]=h.a}}},{}],28:[function(e,t,i){"use strict";function n(e,t,i){return n.TYPED_ARRAY_SUPPORT||this instanceof n?"number"==typeof e?a(this,e):function(e,t,i,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?l(e,t,i,n):"string"==typeof t?function(e,t){var i=0|u(t),n=o(e,i),r=n.write(t);return r!==i&&(n=n.slice(0,r)),n}(e,t):c(e,t)}(this,e,t,i):new n(e,t,i)}function r(e){if(e>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return 0|e}function o(e,t){var i;return n.TYPED_ARRAY_SUPPORT?(i=new Uint8Array(t)).__proto__=n.prototype:(null===(i=e)&&(i=new n(t)),i.length=t),i}function a(e,t){var i=o(e,t<0?0:0|r(t));if(!n.TYPED_ARRAY_SUPPORT)for(var a=0;a<t;++a)i[a]=0;return i}function s(e,t){for(var i=t.length<0?0:0|r(t.length),n=o(e,i),a=0;a<i;a+=1)n[a]=255&t[a];return n}function l(e,t,i,r){if(i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");var o;return o=void 0===i&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,i):new Uint8Array(t,i,r),n.TYPED_ARRAY_SUPPORT?o.__proto__=n.prototype:o=s(e,o),o}function c(e,t){if(n.isBuffer(t)){var i=0|r(t.length),a=o(e,i);return 0===a.length||t.copy(a,0,0,i),a}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?o(e,0):s(e,t);if("Buffer"===t.type&&Array.isArray(t.data))return s(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(e,t){t=t||1/0;for(var i,n=e.length,r=null,o=[],a=0;a<n;++a){if((i=e.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function u(e){return n.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:d(e).length)}var p=e("isarray");n.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}();var h=n.TYPED_ARRAY_SUPPORT?2147483647:1073741823;n.TYPED_ARRAY_SUPPORT&&(n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),n.prototype.write=function(e,t,i){void 0===t||void 0===i&&"string"==typeof t?(i=this.length,t=0):isFinite(t)&&(t|=0,isFinite(i)?i|=0:i=void 0);var n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,i,n){return function(e,t,i,n){for(var r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}(d(t,e.length-i),e,i,n)}(this,e,t,i)},n.prototype.slice=function(e,t){var i,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),n.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=n.prototype;else{var o=t-e;i=new n(o,void 0);for(var a=0;a<o;++a)i[a]=this[a+e]}return i},n.prototype.copy=function(e,t,i,r){if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<i&&(r=i),r===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-i&&(r=e.length-t+i);var o,a=r-i;if(this===e&&i<t&&t<r)for(o=a-1;o>=0;--o)e[o+t]=this[o+i];else if(a<1e3||!n.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+t]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+a),t);return a},n.prototype.fill=function(e,t,i){if("string"==typeof e){if("string"==typeof t?(t=0,i=this.length):"string"==typeof i&&(i=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var o;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o<i;++o)this[o]=e;else{var a=n.isBuffer(e)?e:new n(e),s=a.length;for(o=0;o<i-t;++o)this[o+t]=a[o%s]}return this},n.concat=function(e,t){if(!p(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o(null,0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var r=a(null,t),s=0;for(i=0;i<e.length;++i){var l=e[i];if(!n.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(r,s),s+=l.length}return r},n.byteLength=u,n.prototype._isBuffer=!0,n.isBuffer=function(e){return!(null==e||!e._isBuffer)},t.exports.alloc=function(e){var t=new n(e);return t.fill(0),t},t.exports.from=function(e){return new n(e)}},{isarray:33}],29:[function(e,t,i){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function r(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function o(e,t,i){for(var n,o=[],a=t;a<i;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r(n));return o.join("")}i.byteLength=function(e){var t=n(e),i=t[0],r=t[1];return 3*(i+r)/4-r},i.toByteArray=function(e){var t,i,r=n(e),o=r[0],a=r[1],c=new l(function(e,t,i){return 3*(t+i)/4-i}(0,o,a)),d=0,u=a>0?o-4:o;for(i=0;i<u;i+=4)t=s[e.charCodeAt(i)]<<18|s[e.charCodeAt(i+1)]<<12|s[e.charCodeAt(i+2)]<<6|s[e.charCodeAt(i+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===a&&(t=s[e.charCodeAt(i)]<<2|s[e.charCodeAt(i+1)]>>4,c[d++]=255&t),1===a&&(t=s[e.charCodeAt(i)]<<10|s[e.charCodeAt(i+1)]<<4|s[e.charCodeAt(i+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c},i.fromByteArray=function(e){for(var t,i=e.length,n=i%3,r=[],s=0,l=i-n;s<l;s+=16383)r.push(o(e,s,s+16383>l?l:s+16383));return 1===n?(t=e[i-1],r.push(a[t>>2]+a[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],r.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"=")),r.join("")};for(var a=[],s=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,u=c.length;d<u;++d)a[d]=c[d],s[c.charCodeAt(d)]=d;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],30:[function(e,t,i){"use strict";function n(e){if(e>j)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,r.prototype),t}function r(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return s(e)}return o(e,t,i)}function o(e,t,i){if("string"==typeof e)return l(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer))return function(e,t,i){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,t):new Uint8Array(e,t,i),Object.setPrototypeOf(n,r.prototype),n}(e,t,i);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return r.from(n,t,i);var o=d(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return r.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function s(e){return a(e),n(e<0?0:0|u(e))}function l(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!r.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var i=0|p(e,t),o=n(i),a=o.write(e,t);return a!==i&&(o=o.slice(0,a)),o}function c(e){for(var t=e.length<0?0:0|u(e.length),i=n(t),r=0;r<t;r+=1)i[r]=255&e[r];return i}function d(e){if(r.isBuffer(e)){var t=0|u(e.length),i=n(t);return 0===i.length||e.copy(i,0,0,t),i}return void 0!==e.length?"number"!=typeof e.length||F(e.length)?n(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}function u(e){if(e>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return 0|e}function p(e,t){if(r.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return L(e).length;default:if(o)return n?-1:D(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,i);case"utf8":case"utf-8":return x(this,t,i);case"ascii":return _(this,t,i);case"latin1":case"binary":return E(this,t,i);case"base64":return k(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function f(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function m(e,t,i,n,o){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),F(i=+i)&&(i=o?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(o)return-1;i=e.length-1}else if(i<0){if(!o)return-1;i=0}if("string"==typeof t&&(t=r.from(t,n)),r.isBuffer(t))return 0===t.length?-1:g(e,t,i,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):g(e,[t],i,n,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,i,n,r){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var a,s=1,l=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,l/=2,c/=2,i/=2}if(r){var d=-1;for(a=i;a<l;a++)if(o(e,a)===o(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===c)return d*s}else-1!==d&&(a-=a-d),d=-1}else for(i+c>l&&(i=l-c),a=i;a>=0;a--){for(var u=!0,p=0;p<c;p++)if(o(e,a+p)!==o(t,p)){u=!1;break}if(u)return a}return-1}function v(e,t,i,n){i=Number(i)||0;var r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(F(s))return a;e[i+a]=s}return a}function y(e,t,i,n){return M(D(t,e.length-i),e,i,n)}function b(e,t,i,n){return M(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function w(e,t,i,n){return b(e,t,i,n)}function S(e,t,i,n){return M(L(t),e,i,n)}function C(e,t,i,n){return M(function(e,t){for(var i,n,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)i=e.charCodeAt(a),n=i>>8,r=i%256,o.push(r),o.push(n);return o}(t,e.length-i),e,i,n)}function k(e,t,i){return 0===t&&i===e.length?V.fromByteArray(e):V.fromByteArray(e.slice(t,i))}function x(e,t,i){i=Math.min(e.length,i);for(var n=[],r=t;r<i;){var o,a,s,l,c=e[r],d=null,u=c>239?4:c>223?3:c>191?2:1;if(r+u<=i)switch(u){case 1:c<128&&(d=c);break;case 2:128==(192&(o=e[r+1]))&&(l=(31&c)<<6|63&o)>127&&(d=l);break;case 3:o=e[r+1],a=e[r+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(d=l)}null===d?(d=65533,u=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),r+=u}return function(e){var t=e.length;if(t<=H)return String.fromCharCode.apply(String,e);for(var i="",n=0;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=H));return i}(n)}function _(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(127&e[r]);return n}function E(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(e[r]);return n}function T(e,t,i){var n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=t;o<i;++o)r+=$[e[o]];return r}function P(e,t,i){for(var n=e.slice(t,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function I(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,i,n,o,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function R(e,t,i,n,r,o){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function O(e,t,i,n,r){return t=+t,i>>>=0,r||R(e,0,i,4),U.write(e,t,i,n,23,4),i+4}function N(e,t,i,n,r){return t=+t,i>>>=0,r||R(e,0,i,8),U.write(e,t,i,n,52,8),i+8}function D(e,t){t=t||1/0;for(var i,n=e.length,r=null,o=[],a=0;a<n;++a){if((i=e.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function L(e){return V.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,i,n){for(var r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function F(e){return e!=e}var V=e("base64-js"),U=e("ieee754"),z="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;i.Buffer=r,i.SlowBuffer=function(e){return+e!=e&&(e=0),r.alloc(+e)},i.INSPECT_MAX_BYTES=50;var j=2147483647;i.kMaxLength=j,r.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),r.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=function(e,t,i){return o(e,t,i)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array),r.alloc=function(e,t,i){return function(e,t,i){return a(e),e<=0?n(e):void 0!==t?"string"==typeof i?n(e).fill(t,i):n(e).fill(t):n(e)}(e,t,i)},r.allocUnsafe=function(e){return s(e)},r.allocUnsafeSlow=function(e){return s(e)},r.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==r.prototype},r.compare=function(e,t){if(B(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var i=e.length,n=t.length,o=0,a=Math.min(i,n);o<a;++o)if(e[o]!==t[o]){i=e[o],n=t[o];break}return i<n?-1:n<i?1:0},r.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return r.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=r.allocUnsafe(t),o=0;for(i=0;i<e.length;++i){var a=e[i];if(B(a,Uint8Array)&&(a=r.from(a)),!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},r.byteLength=p,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},r.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?x(this,0,e):h.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",t=i.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},z&&(r.prototype[z]=r.prototype.inspect),r.prototype.compare=function(e,t,i,n,o){if(B(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||i>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(n>>>=0),s=(i>>>=0)-(t>>>=0),l=Math.min(a,s),c=this.slice(n,o),d=e.slice(t,i),u=0;u<l;++u)if(c[u]!==d[u]){a=c[u],s=d[u];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},r.prototype.indexOf=function(e,t,i){return m(this,e,t,i,!0)},r.prototype.lastIndexOf=function(e,t,i){return m(this,e,t,i,!1)},r.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,i);case"utf8":case"utf-8":return y(this,e,t,i);case"ascii":return b(this,e,t,i);case"latin1":case"binary":return w(this,e,t,i);case"base64":return S(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var H=4096;r.prototype.slice=function(e,t){var i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,r.prototype),n},r.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||I(e,t,this.length);for(var n=this[e],r=1,o=0;++o<t&&(r*=256);)n+=this[e+o]*r;return n},r.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||I(e,t,this.length);for(var n=this[e+--t],r=1;t>0&&(r*=256);)n+=this[e+--t]*r;return n},r.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||I(e,t,this.length);for(var n=this[e],r=1,o=0;++o<t&&(r*=256);)n+=this[e+o]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*t)),n},r.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||I(e,t,this.length);for(var n=t,r=1,o=this[e+--n];n>0&&(r*=256);)o+=this[e+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},r.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),U.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),U.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),U.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),U.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,i,n){e=+e,t>>>=0,i>>>=0,n||A(this,e,t,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[t]=255&e;++o<i&&(r*=256);)this[t+o]=e/r&255;return t+i},r.prototype.writeUIntBE=function(e,t,i,n){e=+e,t>>>=0,i>>>=0,n||A(this,e,t,i,Math.pow(2,8*i)-1,0);var r=i-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+i},r.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,1,255,0),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},r.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t>>>=0,!n){var r=Math.pow(2,8*i-1);A(this,e,t,i,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o<i&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},r.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t>>>=0,!n){var r=Math.pow(2,8*i-1);A(this,e,t,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},r.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeFloatLE=function(e,t,i){return O(this,e,t,!0,i)},r.prototype.writeFloatBE=function(e,t,i){return O(this,e,t,!1,i)},r.prototype.writeDoubleLE=function(e,t,i){return N(this,e,t,!0,i)},r.prototype.writeDoubleBE=function(e,t,i){return N(this,e,t,!1,i)},r.prototype.copy=function(e,t,i,n){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var o=n-i;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,i,n);else if(this===e&&i<t&&t<n)for(var a=o-1;a>=0;--a)e[a+t]=this[a+i];else Uint8Array.prototype.set.call(e,this.subarray(i,n),t);return o},r.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var a;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(a=t;a<i;++a)this[a]=e;else{var s=r.isBuffer(e)?e:r.from(e,n),l=s.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<i-t;++a)this[a+t]=s[a%l]}return this};var q=/[^+\/0-9A-Za-z-_]/g,$=function(){for(var e=new Array(256),t=0;t<16;++t)for(var i=16*t,n=0;n<16;++n)e[i+n]="0123456789abcdef"[t]+"0123456789abcdef"[n];return e}()},{"base64-js":29,ieee754:32}],31:[function(e,t,i){"use strict";var n={single_source_shortest_paths:function(e,t,i){var r={},o={};o[t]=0;var a,s,l,c,d,u,p,h=n.PriorityQueue.make();for(h.push(t,0);!h.empty();)for(l in s=(a=h.pop()).value,c=a.cost,d=e[s]||{})d.hasOwnProperty(l)&&(u=c+d[l],p=o[l],(void 0===o[l]||p>u)&&(o[l]=u,h.push(l,u),r[l]=s));if(void 0!==i&&void 0===o[i]){var f=["Could not find a path from ",t," to ",i,"."].join("");throw new Error(f)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var i=[],n=t;n;)i.push(n),e[n],n=e[n];return i.reverse(),i},find_path:function(e,t,i){var r=n.single_source_shortest_paths(e,t,i);return n.extract_shortest_path_from_predecessor_list(r,i)},PriorityQueue:{make:function(e){var t,i=n.PriorityQueue,r={};for(t in e=e||{},i)i.hasOwnProperty(t)&&(r[t]=i[t]);return r.queue=[],r.sorter=e.sorter||i.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var i={value:e,cost:t};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};void 0!==t&&(t.exports=n)},{}],32:[function(e,t,i){i.read=function(e,t,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,c=l>>1,d=-7,u=i?r-1:0,p=i?-1:1,h=e[t+u];for(u+=p,o=h&(1<<-d)-1,h>>=-d,d+=s;d>0;o=256*o+e[t+u],u+=p,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=n;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},i.write=function(e,t,i,n,r,o){var a,s,l,c=8*o-r-1,d=(1<<c)-1,u=d>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+u>=1?p/l:p*Math.pow(2,1-u))*l>=2&&(a++,l/=2),a+u>=d?(s=0,a=d):a+u>=1?(s=(t*l-1)*Math.pow(2,r),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,r),a=0));r>=8;e[i+h]=255&s,h+=f,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[i+h]=255&a,h+=f,a/=256,c-=8);e[i+h-f]|=128*m}},{}],33:[function(e,t,i){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}]},{},[24])(24)},function(e,t){e.exports=function(e,t,i,n){var r=i?i.call(n,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var d=e[c],u=t[c];if(!1===(r=i?i.call(n,d,u,c):void 0)||void 0===r&&d!==u)return!1}return!0}},function(e,t,i){"use strict";t.a=function(e){function t(e,t,n){var r=t.trim().split(f);t=r;var o=r.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=i(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=i(e[c]+" ",r[s],n).trim()}return t}function i(e,t,i){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*i&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,i,o){var a=e+";",s=2*t+3*i+4*o;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===I||2===I&&r(l,1)?"-webkit-"+l+l:l}if(0===I||2===I&&!r(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(_,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(u,":-webkit-")+a.replace(u,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(b,"tb");break;case 232:l=a.replace(b,"tb-rl");break;case 220:l=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,i,o).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===i+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function r(e,t){var i=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?i:10);return i=e.substring(i+1,e.length-1),N(2!==t?n:n.replace(k,"$1"),i,t)}function o(e,t){var i=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return i!==t+";"?i.replace(S," or ($1)").substring(4):"("+t+")"}function a(e,t,i,n,r,o,a,s,c,d){for(var u,p=0,h=t;p<O;++p)switch(u=R[p].call(l,e,h,i,n,r,o,a,s,c,d)){case void 0:case!1:case!0:case null:break;default:h=u}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?I=1:(I=2,N=e):I=0),s}function l(e,i){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<O){var l=a(-1,i,s,s,T,E,0,0,0,0);void 0!==l&&"string"==typeof l&&(i=l)}var u=function e(i,s,l,u,p){for(var h,f,m,b,S,C=0,k=0,x=0,_=0,R=0,N=0,L=m=h=0,M=0,B=0,F=0,V=0,U=l.length,z=U-1,j="",H="",q="",$="";M<U;){if(f=l.charCodeAt(M),M===z&&0!==k+_+x+C&&(0!==k&&(f=47===k?10:47),_=x=C=0,U++,z++),0===k+_+x+C){if(M===z&&(0<B&&(j=j.replace(d,"")),0<j.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:j+=l.charAt(M)}f=59}switch(f){case 123:for(h=(j=j.trim()).charCodeAt(0),m=1,V=++M;M<U;){switch(f=l.charCodeAt(M)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(M+1)){case 42:case 47:e:{for(L=M+1;L<z;++L)switch(l.charCodeAt(L)){case 47:if(42===f&&42===l.charCodeAt(L-1)&&M+2!==L){M=L+1;break e}break;case 10:if(47===f){M=L+1;break e}}M=L}}break;case 91:f++;case 40:f++;case 34:case 39:for(;M++<z&&l.charCodeAt(M)!==f;);}if(0===m)break;M++}switch(m=l.substring(V,M),0===h&&(h=(j=j.replace(c,"").trim()).charCodeAt(0)),h){case 64:switch(0<B&&(j=j.replace(d,"")),f=j.charCodeAt(1)){case 100:case 109:case 115:case 45:B=s;break;default:B=A}if(V=(m=e(s,B,m,f,p+1)).length,0<O&&(S=a(3,m,B=t(A,j,F),s,T,E,V,f,p,u),j=B.join(""),void 0!==S&&0===(V=(m=S.trim()).length)&&(f=0,m="")),0<V)switch(f){case 115:j=j.replace(w,o);case 100:case 109:case 45:m=j+"{"+m+"}";break;case 107:m=(j=j.replace(g,"$1 $2"))+"{"+m+"}",m=1===I||2===I&&r("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=j+m,112===u&&(H+=m,m="")}else m="";break;default:m=e(s,t(s,j,F),m,u,p+1)}q+=m,m=F=B=L=h=0,j="",f=l.charCodeAt(++M);break;case 125:case 59:if(1<(V=(j=(0<B?j.replace(d,""):j).trim()).length))switch(0===L&&(h=j.charCodeAt(0),45===h||96<h&&123>h)&&(V=(j=j.replace(" ",":")).length),0<O&&void 0!==(S=a(1,j,s,i,T,E,H.length,u,p,u))&&0===(V=(j=S.trim()).length)&&(j="\0\0"),h=j.charCodeAt(0),f=j.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){$+=j+l.charAt(M);break}default:58!==j.charCodeAt(V-1)&&(H+=n(j,h,f,j.charCodeAt(2)))}F=B=L=h=0,j="",f=l.charCodeAt(++M)}}switch(f){case 13:case 10:47===k?k=0:0===1+h&&107!==u&&0<j.length&&(B=1,j+="\0"),0<O*D&&a(0,j,s,i,T,E,H.length,u,p,u),E=1,T++;break;case 59:case 125:if(0===k+_+x+C){E++;break}default:switch(E++,b=l.charAt(M),f){case 9:case 32:if(0===_+C+k)switch(R){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===_+k+C&&(B=F=1,b="\f"+b);break;case 108:if(0===_+k+C+P&&0<L)switch(M-L){case 2:112===R&&58===l.charCodeAt(M-3)&&(P=R);case 8:111===N&&(P=N)}break;case 58:0===_+k+C&&(L=M);break;case 44:0===k+x+_+C&&(B=1,b+="\r");break;case 34:case 39:0===k&&(_=_===f?0:0===_?f:_);break;case 91:0===_+k+x&&C++;break;case 93:0===_+k+x&&C--;break;case 41:0===_+k+C&&x--;break;case 40:if(0===_+k+C){if(0===h)switch(2*R+3*N){case 533:break;default:h=1}x++}break;case 64:0===k+x+_+C+L+m&&(m=1);break;case 42:case 47:if(!(0<_+C+x))switch(k){case 0:switch(2*f+3*l.charCodeAt(M+1)){case 235:k=47;break;case 220:V=M,k=42}break;case 42:47===f&&42===R&&V+2!==M&&(33===l.charCodeAt(V+2)&&(H+=l.substring(V,M+1)),b="",k=0)}}0===k&&(j+=b)}N=R,R=f,M++}if(0<(V=H.length)){if(B=s,0<O&&(void 0!==(S=a(2,H,B,i,T,E,V,u,p,u))&&0===(H=S).length))return $+H+q;if(H=B.join(",")+"{"+H+"}",0!=I*P){switch(2!==I||r(H,2)||(P=0),P){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}P=0}}return $+H+q}(A,s,i,0,0);return 0<O&&(void 0!==(l=a(-2,u,s,s,T,E,u.length,0,0,0))&&(u=l)),"",P=0,E=T=1,u}var c=/^\0+/g,d=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,E=1,T=1,P=0,I=1,A=[],R=[],O=0,N=null,D=0;return l.use=function e(t){switch(t){case void 0:case null:O=R.length=0;break;default:if("function"==typeof t)R[O++]=t;else if("object"==typeof t)for(var i=0,n=t.length;i<n;++i)e(t[i]);else D=0|!!t}return e},l.set=s,void 0!==e&&s(e),l}},function(e,t,i){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e){e.exports=JSON.parse('{"a":"/api/v1/prompter"}')},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="small-12 columns large-centered video-prompter-container"><ul class="tabs vpr-tab" data-tab id="scriptTypesId"><li class="tab-title active" id="allVideoScriptsTitle"><a href="#allVideoScripts">').f(t.getPath(!1,["videoPrompter","allScripts"]),t,"h").w('</a></li><li class="tab-title" id="myVideoScriptsTitle"><a href="#myVideoScripts">').f(t.getPath(!1,["videoPrompter","myScripts"]),t,"h").w('</a></li><li class="tab-title" id="sharedScriptsTitle"><a href="#sharedScripts">').f(t.getPath(!1,["videoPrompter","shared"]),t,"h").w('</a></li><a id="refreshPrompterPages" class="refresh"><img src="/svg/refresh.svg"></a>').x(t.get(["can_add_new_scripts"],!1),t,{block:i},{}).w('</ul><div class="tabs-content sf-tab-content" id="scriptListId"><div class="content active" id="allVideoScripts">').h("eq",t,{else:n,block:o},{key:t.getPath(!1,["all_scripts","length"]),value:0},"h").w('</div><div class="content" id="myVideoScripts">').h("eq",t,{else:s,block:c},{key:t.getPath(!1,["my_scripts","length"]),value:0},"h").w('</div><div class="content" id="sharedScripts">').h("eq",t,{else:u,block:h},{key:t.getPath(!1,["shared_scripts","length"]),value:0},"h").w('</div></div><div id="testelement"></div><div class="display-video-prompt hide" id="promptSettingsContainer"><div class="large-12 columns prompt-settings" id="promptPropertiesId"><div class="medium-3 columns font-size text-left right-bar" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><h6>').f(t.getPath(!1,["videoPrompter","textSizeChange"]),t,"h").w('</h6><label id="textSizeDecrease" class="minus').x(t.get(["inactive_minus"],!1),t,{block:f},{}).w('"><img src="/svg/minus-ico-white.svg" width="10"></label><label id="textSizeIncrease" class="plus').x(t.get(["inactive_plus"],!1),t,{block:m},{}).w('"><img src="/svg/plus-ico-white.svg" width="10"></label></div><div class="columns medium-3 right-bar linespace-container" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><h6>').f(t.getPath(!1,["videoPrompter","lineSpaceChange"]),t,"h").w('</h6><label id="lineSpaceDecrease" class="minus').x(t.get(["inactive_minus_linespace"],!1),t,{block:g},{}).w('"><img src="/svg/minus-ico-white.svg" width="10"></label><label id="lineSpaceIncrease" class="plus').x(t.get(["inactive_plus_linespace"],!1),t,{block:v},{}).w('"><img src="/svg/plus-ico-white.svg" width="10"></label></div><div class="medium-4 columns slider right-bar"><div class="small-5 columns"><h6>').f(t.getPath(!1,["videoPrompter","speedLabel"]),t,"h").w('</h6></div><div class="small-1 columns text-center speed-minus-container ').x(t.get(["inactive_minus_speed"],!1),t,{block:y},{}).w('"><img id="speedDecreaseId" class="minus" src="/svg/minus-ico-white.svg" width="10"></div><div class="small-4 columns text-center speed-slider-container"><span id="speedSliderId" data-min="1" data-max="10" data-value="5" ></span></div><div class="small-1 columns text-center speed-plus-container left ').x(t.get(["inactive_plus_speed"],!1),t,{block:b},{}).w('"><img id="speedIncreaseId" class="plus" src="/svg/plus-ico-white.svg" width="10"></div></div><div class="medium-2 columns"><a id="changeScriptId" class="change-script">').f(t.getPath(!1,["videoPrompter","changeScript"]),t,"h").w('</a></div></div><div class="large-12 columns telepromterColumnContainer" id="telepromterColumnContainer"><div id="teleprompterId" contentEditable="true" class="small-6 small-offset-3 columns video-teleprompter"></div><div id="teleprompterSiblingDiv"></div></div></div></div>')}function i(e,t){return e.w('<a id="addNewScriptFromPrompt" class="hp-border-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function n(e,t){return e.s(t.get(["all_scripts"],!1),t,{block:r},{})}function r(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function o(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","allScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:a},{}).w("</div>")}function a(e,t){return e.w('<a id="addNewScriptFromAllScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function s(e,t){return e.s(t.get(["my_scripts"],!1),t,{block:l},{})}function l(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function c(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","myScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:d},{}).w("</div>")}function d(e,t){return e.w('<a id="addNewScriptFromMyScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function u(e,t){return e.s(t.get(["shared_scripts"],!1),t,{block:p},{})}function p(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function h(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","sharedEmptyStateText"]),t,"h").w("</h4></div>")}function f(e,t){return e.w(" in-active")}function m(e,t){return e.w(" in-active")}function g(e,t){return e.w(" in-active")}function v(e,t){return e.w(" in-active")}function y(e,t){return e.w(" in-active")}function b(e,t){return e.w(" in-active")}e.register("templates/wiz/video_prompter",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/video_prompter",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="video-prompter-container"><ul class="tabs vpr-tab" data-tab id="scriptTypesId"><li class="tab-title active" id="allVideoScriptsTitle"><a href="#allVideoScripts">').f(t.getPath(!1,["videoPrompter","allScripts"]),t,"h").w('</a></li><li class="tab-title" id="myVideoScriptsTitle"><a href="#myVideoScripts">').f(t.getPath(!1,["videoPrompter","myScripts"]),t,"h").w('</a></li><li class="tab-title" id="sharedScriptsTitle"><a href="#sharedScripts">').f(t.getPath(!1,["videoPrompter","shared"]),t,"h").w('</a></li><a id="refreshPrompterPages" class="refresh"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/refresh.svg"></a>').x(t.get(["can_add_new_scripts"],!1),t,{block:i},{}).w('</ul><div class="tabs-content sf-tab-content" id="scriptListId"><div class="content active" id="allVideoScripts">').h("eq",t,{else:n,block:o},{key:t.getPath(!1,["all_scripts","length"]),value:0},"h").w('</div><div class="content" id="myVideoScripts">').h("eq",t,{else:s,block:c},{key:t.getPath(!1,["my_scripts","length"]),value:0},"h").w('</div><div class="content" id="sharedScripts">').h("eq",t,{else:u,block:h},{key:t.getPath(!1,["shared_scripts","length"]),value:0},"h").w('</div></div><div id="testelement"></div><div class="display-video-prompt hide" id="promptSettingsContainer"><div class="prompt-settings" id="promptPropertiesId"><div class="font-size text-left right-bar col-grid-3" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><div><h6>').f(t.getPath(!1,["videoPrompter","textSizeChange"]),t,"h").w('</h6></div><label id="textSizeDecrease" class="minus').x(t.get(["inactive_minus"],!1),t,{block:f},{}).w('"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/minus-ico-white.svg" width="10"></label><label id="textSizeIncrease" class="plus').x(t.get(["inactive_plus"],!1),t,{block:m},{}).w('"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-white.svg" width="10"></label></div><div class="right-bar linespace-container col-grid-3" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><div><h6>').f(t.getPath(!1,["videoPrompter","lineSpaceChange"]),t,"h").w('</h6></div><label id="lineSpaceDecrease" class="minus').x(t.get(["inactive_minus_linespace"],!1),t,{block:g},{}).w('"><img src="/svg/minus-ico-white.svg" width="10"></label><label id="lineSpaceIncrease" class="plus').x(t.get(["inactive_plus_linespace"],!1),t,{block:v},{}).w('"><img src="/svg/plus-ico-white.svg" width="10"></label></div><div class="slider right-bar"><div><h6>').f(t.getPath(!1,["videoPrompter","speedLabel"]),t,"h").w('</h6></div><div class="speed-minus-container"><img id="speedDecreaseId" class="minus" src="').f(t.get(["origin"],!1),t,"h").w('/svg/minus-ico-white.svg" width="10"></div><div class="speed-slider-container"><span id="speedSliderId" data-min="1" data-max="10" data-value="1" ></span></div><div class="speed-plus-container left"><img id="speedIncreaseId" class="plus" src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-white.svg" width="10"></div></div><div class=""><a id="changeScriptId" class="change-script">').f(t.getPath(!1,["videoPrompter","changeScript"]),t,"h").w('</a></div></div><div class="telepromterColumnContainer" id="telepromterColumnContainer"><div id="teleprompterId" contentEditable="true" class="video-teleprompter"></div><div id="teleprompterSiblingDiv"></div></div></div></div>')}function i(e,t){return e.w('<a id="addNewScriptFromPrompt" class="hp-border-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function n(e,t){return e.s(t.get(["all_scripts"],!1),t,{block:r},{})}function r(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function o(e,t){return e.w('<div class="vpr-empty-state"><img class="empty-state-img" src="').f(t.get(["origin"],!1),t,"h").w('/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","allScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:a},{}).w("</div>")}function a(e,t){return e.w('<a id="addNewScriptFromAllScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function s(e,t){return e.s(t.get(["my_scripts"],!1),t,{block:l},{})}function l(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function c(e,t){return e.w('<div class="vpr-empty-state"><img class="empty-state-img" src="').f(t.get(["origin"],!1),t,"h").w('/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","myScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:d},{}).w("</div>")}function d(e,t){return e.w('<a id="addNewScriptFromMyScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function u(e,t){return e.s(t.get(["shared_scripts"],!1),t,{block:p},{})}function p(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function h(e,t){return e.w('<div class="vpr-empty-state"><img class="empty-state-img" src="').f(t.get(["origin"],!1),t,"h").w('/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","sharedEmptyStateText"]),t,"h").w("</h4></div>")}function f(e,t){return e.w(" in-active")}function m(e,t){return e.w(" in-active")}function g(e,t){return e.w(" in-active")}function v(e,t){return e.w(" in-active")}e.register("templates/wiz/sdk_video_prompter",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/sdk_video_prompter",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="small-12 columns large-centered video-prompter-container"><ul class="tabs vpr-tab" data-tab id="scriptTypesId"><li class=\'tab-title ').h("eq",t,{block:i},{key:t.get(["activeTab"],!1),value:"allVideoScripts"},"h").w('\' id="allVideoScriptsTitle"><a data-tab="allVideoScripts">').f(t.getPath(!1,["videoPrompter","allScripts"]),t,"h").w("</a></li><li class='tab-title ").h("eq",t,{block:n},{key:t.get(["activeTab"],!1),value:"myVideoScripts"},"h").w('\' id="myVideoScriptsTitle"><a data-tab="myVideoScripts">').f(t.getPath(!1,["videoPrompter","myScripts"]),t,"h").w("</a></li><li class='tab-title ").h("eq",t,{block:r},{key:t.get(["activeTab"],!1),value:"sharedScripts"},"h").w('\' id="sharedScriptsTitle"><a data-tab="sharedScripts">').f(t.getPath(!1,["videoPrompter","shared"]),t,"h").w("</a></li>").x(t.get(["can_add_new_scripts"],!1),t,{block:o},{}).w('<a id="refreshPrompterPages" class="refresh"><img src="/svg/refresh.svg"></a></ul><div class="tabs-content sf-tab-content" id="scriptListId"><div class="large-12 columns text-center vpr-empty-state"><input id="scriptSearch" type="search" placeholder="Search..." value="').x(t.get(["initialSearchValue"],!1),t,{block:a},{}).w("\" autoFocus /></div><div class='content ").h("eq",t,{block:s},{key:t.get(["activeTab"],!1),value:"allVideoScripts"},"h").w('\' id="allVideoScripts">').h("eq",t,{else:l,block:d},{key:t.getPath(!1,["all_scripts","length"]),value:0},"h").w("</div><div class='content ").h("eq",t,{block:p},{key:t.get(["activeTab"],!1),value:"myVideoScripts"},"h").w('\' id="myVideoScripts">').h("eq",t,{else:h,block:m},{key:t.getPath(!1,["my_scripts","length"]),value:0},"h").w("</div><div class='content ").h("eq",t,{block:v},{key:t.get(["activeTab"],!1),value:"sharedScripts"},"h").w('\' id="sharedScripts">').h("eq",t,{else:y,block:w},{key:t.getPath(!1,["shared_scripts","length"]),value:0},"h").w('</div></div><div id="testelement"></div><div class="display-video-prompt hide" id="promptSettingsContainer"><div class="large-12 columns prompt-settings" id="promptPropertiesId"><div class="prompt-settings-container"><div class="font-size text-center right-bar" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><h6>').f(t.getPath(!1,["videoPrompter","speedLabel"]),t,"h").w('</h6><span class="scrollDetail"></span><select id="speedOption"><option value="auto">Auto Scroll</option><option value="voice">Voice Flow</option></select><input id="speedRange" class="slideRange" type="range" min="1" max="7" value="2" /><span id="speedCount" class="countRange"></span></div><div class="font-size text-center right-bar" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><h6>').f(t.getPath(!1,["videoPrompter","textSizeChange"]),t,"h").w('</h6><input id="textSizeRange" class="slideRange" type="range" min="20" max="40" value="30" /><span id="textSizeCount" class="countRange"></span></div><div class="font-size text-center right-bar" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><h6>').f(t.getPath(!1,["videoPrompter","lineSpaceChange"]),t,"h").w('</h6><input id="lineSpaceRange" class="slideRange" type="range" min="1" max="2.50" value="1.25" step="0.25" /><span id="lineSpaceCount" class="countRange"></span></div></div><div class="text-center"><a id="changeScriptId" class="change-script">').f(t.getPath(!1,["videoPrompter","changeScript"]),t,"h").w('</a></div></div><div class="large-12 columns ').x(t.get(["newRecorderScreen"],!1),t,{else:S,block:C},{}).w(' custom-scroll" id="telepromterColumnContainer"><div id="teleprompterId" contentEditable="true" class="small-6 small-offset-3 columns video-teleprompter"></div><div id="teleprompterSiblingDiv"></div></div><div class="large-12 columns"><div id="scrollDetailModal" class="display-video-prompt-modal"><div class="display-video-prompt-modal-content"><div class="modal-header"><span class="scrollDetailclose">×</span><h5>Speak flow speed detail</h5></div><div class="modal-body"><table><tbody><tr><td><span class="scroll-auto"></span>Auto scroll</td><td>Scroll at a set pace. 1 is slowest, 7 is the fastest.</td></tr><tr><td><span class="scroll-voice"></span>Voice flow</td><td>Voice flow mode enables you to scroll the text as you speak. It scrolls with your voice</td></tr></tbody></table></div></div></div></div></div></div></div>')}function i(e,t){return e.w("active")}function n(e,t){return e.w("active")}function r(e,t){return e.w("active")}function o(e,t){return e.w('<a id="addNewScriptFromPrompt" class="hp-border-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function a(e,t){return e.f(t.get(["initialSearchValue"],!1),t,"h")}function s(e,t){return e.w("active")}function l(e,t){return e.s(t.get(["all_scripts"],!1),t,{block:c},{})}function c(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function d(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter_new.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","allScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:u},{}).w("</div>")}function u(e,t){return e.w('<a id="addNewScriptFromAllScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function p(e,t){return e.w("active")}function h(e,t){return e.s(t.get(["my_scripts"],!1),t,{block:f},{})}function f(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function m(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter_new.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","myScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:g},{}).w("</div>")}function g(e,t){return e.w('<a id="addNewScriptFromMyScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function v(e,t){return e.w("active")}function y(e,t){return e.s(t.get(["shared_scripts"],!1),t,{block:b},{})}function b(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function w(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter_new.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","sharedEmptyStateText"]),t,"h").w("</h4></div>")}function S(e,t){return e.w("telepromterColumnContainer")}function C(e,t){return e.w("hvteleprompter-column-container")}e.register("templates/wiz/video_prompter_new",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/video_prompter_new",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n=i(672),r=0;e.exports=function(e){var t=++r;return n(e)+t}},function(e,t,i){var n,r;n=[i(772),i(773),i(686),i(2)],void 0===(r=function({default:e},{default:t},{default:i},{default:n}){return function(r){var o=!1,a=!1,s=!!r.humanizePlayer&&r.humanizePlayer;try{o=HippoVideo.data.api.getProperty("isLessonly"),a=HippoVideo.data.api.getProperty("isPlayer2022")}catch(e){}return o=o||"lessonly"==n.getQueryParams().type||"lessonly"==n.getQueryParams().integration_type,r.isDelivery&&!o&&a&&!r.iosInBrowserFullScreen||s?new i(r):r.isDelivery&&!o||r.isNewPlayer?new t(r):new e(r)}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.x(t.get(["isPrivacy"],!1),t,{else:i,block:te},{})}function i(e,t){return e.x(t.get(["initial"],!1),t,{else:n,block:ee},{})}function n(e,t){return e.w('<div class="hippo-video-player" id=').f(t.get(["id"],!1),t,"h").w('><div class="se-crop-scale">\x3c!-- <canvas class="blurred-bg-video" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px);-webkit-filter: blur(20px);transform: scale(1.2);"></canvas> --\x3e<div class="primary-video-overflow-container"><div class="primary-video-container">').x(t.get(["isImageMode"],!1),t,{else:r,block:f},{}).w("</div></div>").nx(t.get(["isImageMode"],!1),t,{block:m},{}).w('<canvas class="renderless-overlay" style="position: absolute;width: 100%;height: 100%"></canvas></div>').nx(t.get(["isImageMode"],!1),t,{block:v},{}).w('<div id="personalizeChapterId" class="hp-menu-tog hide"><img src="/svg/hamburger-white.svg" width="16"></div><div id="personalizeChaptersListId" class="hp-tog-content hide"><a class="chapter-close" id="chapterCloseId"><img src="/svg/close-gray.svg" width="10"></a><br><div id="chaptersListId"></div></div><div class="error-overlay hide" style="position:absolute;width:100%;height:100%;background: rgba(0,0,0,0.2);z-index:2;background-repeat: no-repeat;background-size: contain;"><div class="error-reason-div"><img src="/svg/warning.svg" class="status-warning" /><div class="error-reason"></div></div></div><div class="player-touch-guard"></div>').nx(t.get(["isImageMode"],!1),t,{block:_},{}).h("select",t,{block:q},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:Y},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:J},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:X},{key:t.get(["privacy"],!1),value:2},"h").w("</div>").nx(t.get(["isImageMode"],!1),t,{block:Q},{})}function r(e,t){return e.x(t.get(["isAudioOnly"],!1),t,{block:o},{}).w('<video class="primary-video" id="primary-video" crossorigin="anonymous" controls playsinline>').h("eq",t,{block:l},{key:t.get(["type"],!1),value:"url"},"h").w("Your browser does not support the video tag.").x(t.get(["subtitlesEnabled"],!1),t,{block:d},{}).w('</video><canvas class="se-effects-canvas"></canvas><div class="se-effects-components-container"></div>').x(t.get(["showSetFrame"],!1),t,{block:h},{})}function o(e,t){return e.w("<div>").x(t.get(["isLessonly"],!1),t,{else:a,block:s},{}).w("</div>")}function a(e,t){return e.w('<img src="/img/onlyaudio.jpg" style="width:100%;height:100%" />')}function s(e,t){return e.w('<img src="/img/onlyaudio_lessonly.jpg" style="width:100%;height:100%" />')}function l(e,t){return e.w(" <source ").x(t.get(["addSourceAudioType"],!1),t,{block:c},{}).w(' crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">")}function c(e,t){return e.w(' type="audio/mp3" ')}function d(e,t){return e.x(t.get(["subtitlesFromServer"],!1),t,{else:u,block:p},{})}function u(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["subtitles"],!1),t,"h").w('" default="">')}function p(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["domain"],!1),t,"h").w("/video_delivery/subtitles/").f(t.get(["token"],!1),t,"h").w('" default="">')}function h(e,t){return e.w('<video class="hidden-video" controls playsinline crossorigin="anonymous" style="display: none;"><source crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">").f(t.getPath(!1,["wizPlayer","browserDoesNotSupport"]),t,"h").w("</video>")}function f(e,t){return e.w('<img src="').f(t.get(["src"],!1),t,"h").w('" class="primary-video" id="gifImage" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;">')}function m(e,t){return e.nx(t.get(["isDelivery"],!1),t,{block:g},{})}function g(e,t){return e.w('<div class="secondary-video-overflow-container"><div class="secondary-video-container"><video class="secondary-video" crossorigin="anonymous" ><source crossorigin="anonymous" src=').f(t.get(["audioSrc"],!1),t,"h").w('></video></div></div><textarea id="seTextEditable" class="se-text-editable custom-scroll hide" spellcheck="false" placeholder="Enter text here"></textarea><div class="se-components-container"></div><div class="se-crop-resizable hide"></div><div class="se-crop-highlighter se-crop-highlighter-top"></div><div class="se-crop-highlighter se-crop-highlighter-left"></div><div class="se-crop-highlighter se-crop-highlighter-bottom"></div><div class="se-crop-highlighter se-crop-highlighter-right"></div>')}function v(e,t){return e.w('<div class="se-components-droppable"></div><div class="player-border"></div>').x(t.get(["thumbnail"],!1),t,{block:y},{}).w('<div class="play-btn-container full-screen-container"><div class="play-center-ico text-center"><img src="/svg/play.svg"></div>').x(t.get(["previewVideo"],!1),t,{block:w},{}).w('</div><div class="replay-btn-container full-screen-container hide"><img src="/img/videoreplay.png" style="width: 20%; display: block; position: relative;top: 30%;margin:auto;z-index:100;"></div><div class="player-loading-overlay full-screen-container hide"><div><img src="/img/videoloading.gif"></div></div>').x(t.get(["isLandingPageVideo"],!1),t,{else:S,block:C},{}).x(t.get(["isMutedAutoPlay"],!1),t,{block:k},{}).x(t.get(["showHoverActions"],!1),t,{block:x},{})}function y(e,t){return e.nx(t.get(["isAudioOnly"],!1),t,{block:b},{})}function b(e,t){return e.w('<div class="thumbnail-container full-screen-container" style="position:absolute;width:100%;height:100%;cursor: pointer;z-index:1"><img src="').f(t.get(["thumbnail"],!1),t,"h").w('" id="playerThumbnail" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;" onerror="this.style.display=\'none\'"></div>')}function w(e,t){return e.w('<video src="').f(t.get(["previewVideo"],!1),t,"h").w('" crossorigin="anonymous" autoplay muted loop />')}function S(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}function C(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}function k(e,t){return e.w('<div class="player-info muted-autoplay cursor-pointer hide"><img src="/svg/mute.svg" alt="volume" /> ').f(t.getPath(!1,["wizPlayer","clickToUnmute"]),t,"h").w("</div>")}function x(e,t){return e.w('<div class="player-actions-container full-screen-container hide"><div class="player-actions text-center"><span class="player-action player-rewind-action"><img src="/svg/rewind.svg" alt="Rewind" /></span><span class="player-action player-play-pause-action"><img src="/svg/play.svg" alt="Play/Pause" /></span><span class="player-action player-forward-action"><img src="/svg/forward.svg" alt="Forward" /></span></div></div>')}function _(e,t){return e.w('<div class="canvas-preview-container ').x(t.get(["showComments"],!1),t,{block:E},{}).w('" id="canvasPreviewContainer" style="display:none;"><img src="/images/loading-more.svg" style="width: 175px;height: 90px;padding: 20px;display:none" id="quick-preview-loading"><canvas class="quickpreview-canvas" width=128 height=72></canvas>').x(t.get(["showComments"],!1),t,{block:T},{}).x(t.get(["showSetFrame"],!1),t,{block:P},{}).w('<input type="hidden" id="canvasHoverTime" /></div><div class="subtitles-line" id="subtitlesTrack"></div><div class="player-controls-container player-controls-inside"><a class="play-pause-button" id="pauseAndPlayBtn"><img src="/svg/play.svg"></a><div class="components-marker-container"></div><div class="components-time-container"><div class="se-clip-time hide"><span class="se-selected-type"></span><div class="timer-pop-up hide"><div class="timer-start-section"><div class="timer-label">').f(t.getPath(!1,["wizPlayer","startTime"]),t,"h").w('</div><input type="text" class="timer-start-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-start-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-start-btn-minus"></div></div></div><div class="timer-stop-section"><div class="timer-label">').f(t.getPath(!1,["wizPlayer","stopTime"]),t,"h").w('</div><input type="text" class="timer-stop-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-stop-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-stop-btn-minus"></div></div></div><div class="timer-div-arrow"></div></div></div></div><div class="notification-line"></div><div class="cta-indicator hide"><div id="ctaIndicatorInner" class="cta-indicator-inner"></div></div><div id="chapterIndicatorId" class="hp-indicator hide"></div><div class="player-progress"><div class="click-area-extended"></div></div><span class="player-currenttime"></span>').x(t.get(["showReactions"],!1),t,{block:I},{}).x(t.get(["canPlayerLogoView"],!1),t,{block:A},{}).w('<div class="actions-container pull-right">').x(t.get(["isContainsAudio"],!1),t,{else:L,block:F},{}).x(t.get(["showSpeedSettings"],!1),t,{block:V},{}).x(t.get(["qualityControl"],!1),t,{block:U},{}).x(t.get(["subtitlesEnabled"],!1),t,{block:z},{}).x(t.get(["fullscreenControl"],!1),t,{block:j},{}).x(t.get(["allowDownload"],!1),t,{block:H},{}).w('</div></div><div class="notification-line-onplay"></div><div class="player-progress for-reactions"><div class="click-area-extended"></div></div><div id="ctaPlayerComps" class="cta-player-comps hide"></div><div id="ctaPlayerAddComp" class="cta-player-add-container hide"></div>')}function E(e,t){return e.w(" canvas-preview-with-comment ")}function T(e,t){return e.w('<div class="preview-add-comment" id="addCommentFromCanvas"><img src="/svg/icon-discussions.svg" /> ').f(t.getPath(!1,["wizPlayer","addComments"]),t,"h").w("</div>")}function P(e,t){return e.w('<h6 class="set-frame-btn">').f(t.getPath(!1,["wizPlayer","setTheFrame"]),t,"h").w("</h6>")}function I(e,t){return e.w('<div class="emoji-wrap"><span><img class="react-now" reaction_id="1" id="reaction_id-1" src="/svg/emoji-type-1.svg" width="16"></span><span><img class="react-now" reaction_id="2" id="reaction_id-2" src="/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now" reaction_id="3" id="reaction_id-3" src="/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now" reaction_id="4" id="reaction_id-4" src="/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now" reaction_id="5" id="reaction_id-5" src="/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now" reaction_id="6" id="reaction_id-6" src="/svg/emoji-type-6.svg" width="16"></span></div>')}function A(e,t){return e.w('<div class="player-logo pull-right">').x(t.get(["playerLogo"],!1),t,{else:R,block:O},{}).w("</div>")}function R(e,t){return e.w('<a href="https://www.hippovideo.io/" target="_blank" class="brand-logo"><img src="/svg/hippo-player-logo.svg" alt="logo" /></a>')}function O(e,t){return e.w("<a ").x(t.get(["addLinkToPlayerLogo"],!1),t,{block:N},{}).w(' target="_blank" class="brand-logo"><img src="').f(t.get(["playerLogo"],!1),t,"h").w('" alt="logo" /></a>')}function N(e,t){return e.x(t.get(["playerLogoLink"],!1),t,{block:D},{})}function D(e,t){return e.w('href="').f(t.get(["playerLogoLink"],!1),t,"h").w('"')}function L(e,t){return e.x(t.get(["isLessonly"],!1),t,{else:M,block:B},{})}function M(e,t){return e.w('<span class="no-audio-box"><img class="audio-img mute player-volume" src="/svg/no-audio-mute.svg" alt="volume" width="15" /><div class="no-audio-pop">This video has no audio</div></span>')}function B(e,t){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function F(e,t){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function V(e,t){return e.w('<span class="controls-btn video-speed-btn"><span class="player-speed-label" style="color: white">1X</span><div class="quality-container" style="display: none;"><ul class="quality-list"><li data-id="0.5">0.5X</li><li data-id="1" class="active">1X</li><li data-id="1.5">1.5X</li><li data-id="2">2X</li><li data-id="5">5X</li></ul></div></span>')}function U(e,t){return e.w('<span class="player-quality controls-btn" id="videoQualityBtn"><img class="player-quality-icon" src="/svg/setting-white.svg" alt="quality" /><div class="quality-container" style="display: none;"><ul class="quality-list"></ul></div></span>')}function z(e,t){return e.w('<span class="player-subtitle controls-btn" id="videoSubtitleBtn"><img class="player-subtitle-icon" src="/img/subtitle-cc.png" alt="subtitle" /></span>')}function j(e,t){return e.w('<span class="player-fullscreen controls-btn" id="videoFullscreenBtn"><img class="player-fullscreen-icon" src="/svg/fullscreen.svg" alt="fullscreen" /></span>')}function H(e,t){return e.w('<span class="player-download controls-btn" id="videoDownloadBtn"><img class="player-download-icon" src="/svg/download-white.svg" alt="download" /></span>')}function q(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:$},{},"h").w(" ")}function $(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",t,{else:W,block:G},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function W(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function G(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function Y(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:K},{},"h").w(" ")}function K(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function J(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function X(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}function Q(e,t){return e.x(t.get(["showReactions"],!1),t,{block:Z},{})}function Z(e,t){return e.w('<div class="emoji-wrap-onplay"><span><img class="react-now-play" reaction_id="1" id="reaction_id-1" src="/svg/emoji-type-1.svg" width="16"></span><span><img class="react-now-play" reaction_id="2" id="reaction_id-2" src="/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now-play" reaction_id="3" id="reaction_id-3" src="/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now-play" reaction_id="4" id="reaction_id-4" src="/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now-play" reaction_id="5" id="reaction_id-5" src="/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now-play" reaction_id="6" id="reaction_id-6" src="/svg/emoji-type-6.svg" width="16"></span></div>')}function ee(e,t){return e.w('<div class="hippo-video-player" id=').f(t.get(["id"],!1),t,"h").w('><div id="personalisedVideoLoading" class="personalised-video-loading-page" style="display: block;"><div class="loader-wrap"><div class="rp-loader"></div></div></div></div>')}function te(e,t){return e.w('<div class="hippo-video-player" id=').f(t.get(["id"],!1),t,"h").w(">").h("select",t,{block:ie},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:ae},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:le},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:ce},{key:t.get(["privacy"],!1),value:2},"h").w("</div>")}function ie(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:ne},{},"h").w(" ")}function ne(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",t,{else:re,block:oe},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function re(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function oe(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function ae(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:se},{},"h").w(" ")}function se(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function le(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function ce(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}e.register("templates/component/videoplayer",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,T.__dustBody=!0,P.__dustBody=!0,I.__dustBody=!0,A.__dustBody=!0,R.__dustBody=!0,O.__dustBody=!0,N.__dustBody=!0,D.__dustBody=!0,L.__dustBody=!0,M.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,V.__dustBody=!0,U.__dustBody=!0,z.__dustBody=!0,j.__dustBody=!0,H.__dustBody=!0,q.__dustBody=!0,$.__dustBody=!0,W.__dustBody=!0,G.__dustBody=!0,Y.__dustBody=!0,K.__dustBody=!0,J.__dustBody=!0,X.__dustBody=!0,Q.__dustBody=!0,Z.__dustBody=!0,ee.__dustBody=!0,te.__dustBody=!0,ie.__dustBody=!0,ne.__dustBody=!0,re.__dustBody=!0,oe.__dustBody=!0,ae.__dustBody=!0,se.__dustBody=!0,le.__dustBody=!0,ce.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/component/videoplayer",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.x(t.get(["isPrivacy"],!1),t,{else:i,block:te},{})}function i(e,t){return e.x(t.get(["initial"],!1),t,{else:n,block:ee},{})}function n(e,t){return e.w('<div class="hippo-video-player new-sdk" id=').f(t.get(["id"],!1),t,"h").w('><div class="se-crop-scale">\x3c!-- <canvas class="blurred-bg-video" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px);-webkit-filter: blur(20px);transform: scale(1.2);"></canvas> --\x3e<div class="primary-video-overflow-container"><div class="primary-video-container">').x(t.get(["isImageMode"],!1),t,{else:r,block:f},{}).w("</div></div>").nx(t.get(["isImageMode"],!1),t,{block:m},{}).w('<canvas class="renderless-overlay" style="position: absolute;width: 100%;height: 100%"></canvas></div>').nx(t.get(["isImageMode"],!1),t,{block:v},{}).w('<div id="personalizeChapterId" class="hp-menu-tog hide"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/hamburger-white.svg" width="16"></div><div id="personalizeChaptersListId" class="hp-tog-content hide"><a class="chapter-close" id="chapterCloseId"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/close-gray.svg" width="10"></a><br><div id="chaptersListId"></div></div><div class="error-overlay hide" style="position:absolute;width:100%;height:100%;background: rgba(0,0,0,0.2);z-index:2;background-repeat: no-repeat;background-size: contain;"><div class="error-reason-div"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/warning.svg" class="status-warning" /><div class="error-reason"></div></div></div><div class="player-touch-guard"></div>').nx(t.get(["isImageMode"],!1),t,{block:_},{}).h("select",t,{block:q},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:Y},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:J},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:X},{key:t.get(["privacy"],!1),value:2},"h").w("</div>").nx(t.get(["isImageMode"],!1),t,{block:Q},{})}function r(e,t){return e.x(t.get(["isAudioOnly"],!1),t,{block:o},{}).w('<video class="primary-video" id="primary-video" crossorigin="anonymous" controls playsinline>').h("eq",t,{block:l},{key:t.get(["type"],!1),value:"url"},"h").w("Your browser does not support the video tag.").x(t.get(["subtitlesEnabled"],!1),t,{block:d},{}).w('</video><canvas class="se-effects-canvas"></canvas><div class="se-effects-components-container"></div>').x(t.get(["showSetFrame"],!1),t,{block:h},{})}function o(e,t){return e.w("<div>").x(t.get(["isLessonly"],!1),t,{else:a,block:s},{}).w("</div>")}function a(e,t){return e.w('<img src="').f(t.get(["origin"],!1),t,"h").w('/img/onlyaudio.jpg" style="width:100%;height:100%" />')}function s(e,t){return e.w('<img src="').f(t.get(["origin"],!1),t,"h").w('/img/onlyaudio_lessonly.jpg" style="width:100%;height:100%" />')}function l(e,t){return e.w(" <source ").x(t.get(["addSourceAudioType"],!1),t,{block:c},{}).w(' crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">")}function c(e,t){return e.w(' type="audio/mp3" ')}function d(e,t){return e.x(t.get(["subtitlesFromServer"],!1),t,{else:u,block:p},{})}function u(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["subtitles"],!1),t,"h").w('" default="">')}function p(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["domain"],!1),t,"h").w("/video_delivery/subtitles/").f(t.get(["token"],!1),t,"h").w('" default="">')}function h(e,t){return e.w('<video class="hidden-video" controls playsinline crossorigin="anonymous" style="display: none;"><source crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">").f(t.getPath(!1,["wizPlayer","browserDoesNotSupport"]),t,"h").w("</video>")}function f(e,t){return e.w('<img src="').f(t.get(["src"],!1),t,"h").w('" class="primary-video" id="gifImage" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;">')}function m(e,t){return e.nx(t.get(["isDelivery"],!1),t,{block:g},{})}function g(e,t){return e.w('<div class="secondary-video-overflow-container"><div class="secondary-video-container"><video class="secondary-video" crossorigin="anonymous" ><source crossorigin="anonymous" src=').f(t.get(["audioSrc"],!1),t,"h").w('></video></div></div><textarea id="seTextEditable" class="se-text-editable custom-scroll hide" spellcheck="false" placeholder="Enter text here"></textarea><div class="se-components-container"></div><div class="se-crop-resizable hide"></div><div class="se-crop-highlighter se-crop-highlighter-top"></div><div class="se-crop-highlighter se-crop-highlighter-left"></div><div class="se-crop-highlighter se-crop-highlighter-bottom"></div><div class="se-crop-highlighter se-crop-highlighter-right"></div>')}function v(e,t){return e.w('<div class="se-components-droppable"></div><div class="player-border"></div>').x(t.get(["thumbnail"],!1),t,{block:y},{}).w('<div class="play-btn-container full-screen-container"><div class="play-center-ico text-center"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/play.svg"></div>').x(t.get(["previewVideo"],!1),t,{block:w},{}).w('</div><div class="replay-btn-container full-screen-container hide"><img src="').f(t.get(["origin"],!1),t,"h").w('/img/videoreplay.png" style="width: 20%; display: block; position: relative;top: 30%;margin:auto;z-index:100;"></div><div class="player-loading-overlay full-screen-container hide"><div><img src="').f(t.get(["origin"],!1),t,"h").w('/img/videoloading.gif"></div></div>').x(t.get(["isLandingPageVideo"],!1),t,{else:S,block:C},{}).x(t.get(["isMutedAutoPlay"],!1),t,{block:k},{}).x(t.get(["showHoverActions"],!1),t,{block:x},{})}function y(e,t){return e.nx(t.get(["isAudioOnly"],!1),t,{block:b},{})}function b(e,t){return e.w('<div class="thumbnail-container full-screen-container" style="position:absolute;width:100%;height:100%;cursor: pointer;z-index:1"><img src="').f(t.get(["thumbnail"],!1),t,"h").w('" id="playerThumbnail" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;" onerror="this.style.display=\'none\'"></div>')}function w(e,t){return e.w('<video src="').f(t.get(["previewVideo"],!1),t,"h").w('" crossorigin="anonymous" autoplay muted loop />')}function S(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}function C(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}function k(e,t){return e.w('<div class="player-info muted-autoplay cursor-pointer hide"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/mute.svg" alt="volume" /> ').f(t.getPath(!1,["wizPlayer","clickToUnmute"]),t,"h").w("</div>")}function x(e,t){return e.w('<div class="player-actions-container full-screen-container hide"><div class="player-actions text-center"><span class="player-action player-rewind-action"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/rewind.svg" alt="Rewind" /></span><span class="player-action player-play-pause-action"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/play.svg" alt="Play/Pause" /></span><span class="player-action player-forward-action"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/forward.svg" alt="Forward" /></span></div></div>')}function _(e,t){return e.w('<div class="canvas-preview-container ').x(t.get(["showComments"],!1),t,{block:E},{}).w('" id="canvasPreviewContainer" style="display:none;"><canvas class="quickpreview-canvas" width=128 height=72></canvas>').x(t.get(["showComments"],!1),t,{block:T},{}).x(t.get(["showSetFrame"],!1),t,{block:P},{}).w('<input type="hidden" id="canvasHoverTime" /></div><div class="subtitles-line" id="subtitlesTrack"></div><div class="player-controls-container player-controls-inside"><a class="play-pause-button" id="pauseAndPlayBtn"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/play.svg"></a><div class="components-marker-container"></div><div class="components-time-container"><div class="se-clip-time hide"><span class="se-selected-type"></span><div class="timer-pop-up hide"><div class="timer-start-section"><div class="timer-label">').f(t.getPath(!1,["wizPlayer","startTime"]),t,"h").w('</div><input type="text" class="timer-start-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-start-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-start-btn-minus"></div></div></div><div class="timer-stop-section"><div class="timer-label">').f(t.getPath(!1,["wizPlayer","stopTime"]),t,"h").w('</div><input type="text" class="timer-stop-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-stop-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-stop-btn-minus"></div></div></div><div class="timer-div-arrow"></div></div></div></div><div class="notification-line"></div><div class="cta-indicator hide"><div id="ctaIndicatorInner" class="cta-indicator-inner"></div></div><div id="chapterIndicatorId" class="hp-indicator hide"></div><div class="player-progress"><div class="click-area-extended"></div></div><span class="player-currenttime"></span>').x(t.get(["showReactions"],!1),t,{block:I},{}).x(t.get(["canPlayerLogoView"],!1),t,{block:A},{}).w('<div class="actions-container pull-right">').x(t.get(["isContainsAudio"],!1),t,{else:L,block:F},{}).x(t.get(["showSpeedSettings"],!1),t,{block:V},{}).x(t.get(["qualityControl"],!1),t,{block:U},{}).x(t.get(["subtitlesEnabled"],!1),t,{block:z},{}).x(t.get(["fullscreenControl"],!1),t,{block:j},{}).x(t.get(["allowDownload"],!1),t,{block:H},{}).w('</div></div><div class="notification-line-onplay"></div><div class="player-progress for-reactions"><div class="click-area-extended"></div></div><div id="ctaPlayerComps" class="cta-player-comps hide"></div><div id="ctaPlayerAddComp" class="cta-player-add-container hide"></div>')}function E(e,t){return e.w(" canvas-preview-with-comment ")}function T(e,t){return e.w('<div class="preview-add-comment" id="addCommentFromCanvas"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/icon-discussions.svg" /> ').f(t.getPath(!1,["wizPlayer","addComments"]),t,"h").w("</div>")}function P(e,t){return e.w('<h6 class="set-frame-btn">').f(t.getPath(!1,["wizPlayer","setTheFrame"]),t,"h").w("</h6>")}function I(e,t){return e.w('<div class="emoji-wrap"><span><img class="react-now" reaction_id="1" id="reaction_id-1" src="').f(t.get(["origin"],!1),t,"h").w('/emoji-type-1.svg" width="16"></span><span><img class="react-now" reaction_id="2" id="reaction_id-2" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now" reaction_id="3" id="reaction_id-3" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now" reaction_id="4" id="reaction_id-4" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now" reaction_id="5" id="reaction_id-5" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now" reaction_id="6" id="reaction_id-6" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-6.svg" width="16"></span></div>')}function A(e,t){return e.w('<div class="player-logo pull-right">').x(t.get(["playerLogo"],!1),t,{else:R,block:O},{}).w("</div>")}function R(e,t){return e.w('<a href="https://www.hippovideo.io/" target="_blank" class="brand-logo"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/hippo-player-logo.svg" alt="logo" /></a>')}function O(e,t){return e.w("<a ").x(t.get(["addLinkToPlayerLogo"],!1),t,{block:N},{}).w(' target="_blank" class="brand-logo"><img src="').f(t.get(["playerLogo"],!1),t,"h").w('" alt="logo" /></a>')}function N(e,t){return e.x(t.get(["playerLogoLink"],!1),t,{block:D},{})}function D(e,t){return e.w('href="').f(t.get(["playerLogoLink"],!1),t,"h").w('"')}function L(e,t){return e.x(t.get(["isLessonly"],!1),t,{else:M,block:B},{})}function M(e,t){return e.w('<span class="no-audio-box"><img class="audio-img mute player-volume" src="').f(t.get(["origin"],!1),t,"h").w('/svg/no-audio-mute.svg" alt="volume" width="15" /><div class="no-audio-pop">This video has no audio</div></span>')}function B(e,t){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="').f(t.get(["origin"],!1),t,"h").w('/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function F(e,t){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="').f(t.get(["origin"],!1),t,"h").w('/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function V(e,t){return e.w('<span class="controls-btn video-speed-btn"><span class="player-speed-label" style="color: white">1X</span><div class="quality-container" style="display: none;"><ul class="quality-list"><li data-id="0.5">0.5X</li><li data-id="1" class="active">1X</li><li data-id="1.5">1.5X</li><li data-id="2">2X</li><li data-id="5">5X</li></ul></div></span>')}function U(e,t){return e.w('<span class="player-quality controls-btn" id="videoQualityBtn"><img class="player-quality-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/setting-white.svg" alt="quality" /><div class="quality-container" style="display: none;"><ul class="quality-list"></ul></div></span>')}function z(e,t){return e.w('<span class="player-subtitle controls-btn" id="videoSubtitleBtn"><img class="player-subtitle-icon" src="').f(t.get(["origin"],!1),t,"h").w('/img/subtitle-cc.png" alt="subtitle" /></span>')}function j(e,t){return e.w('<span class="player-fullscreen controls-btn" id="videoFullscreenBtn"><img class="player-fullscreen-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/fullscreen.svg" alt="fullscreen" /></span>')}function H(e,t){return e.w('<span class="player-download controls-btn" id="videoDownloadBtn"><img class="player-download-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/download-white.svg" alt="download" /></span>')}function q(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:$},{},"h").w(" ")}function $(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/access-denied.svg"><h3>').h("eq",t,{else:W,block:G},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function W(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function G(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function Y(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:K},{},"h").w(" ")}function K(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function J(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function X(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="').f(t.get(["origin"],!1),t,"h").w('/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}function Q(e,t){return e.x(t.get(["showReactions"],!1),t,{block:Z},{})}function Z(e,t){return e.w('<div class="emoji-wrap-onplay"><span><img class="react-now-play" reaction_id="1" id="reaction_id-1" src="').f(t.get(["origin"],!1),t,"h").w('/emoji-type-1.svg" width="16"></span><span><img class="react-now-play" reaction_id="2" id="reaction_id-2" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now-play" reaction_id="3" id="reaction_id-3" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now-play" reaction_id="4" id="reaction_id-4" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now-play" reaction_id="5" id="reaction_id-5" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now-play" reaction_id="6" id="reaction_id-6" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-6.svg" width="16"></span></div>')}function ee(e,t){return e.w('<div class="hippo-video-player new-sdk" id=').f(t.get(["id"],!1),t,"h").w('><div id="personalisedVideoLoading" class="personalised-video-loading-page" style="display: block;"><div class="loader-wrap"><div class="rp-loader"></div></div></div></div>')}function te(e,t){return e.w('<div class="hippo-video-player new-sdk" id=').f(t.get(["id"],!1),t,"h").w(">").h("select",t,{block:ie},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:ae},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:le},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:ce},{key:t.get(["privacy"],!1),value:2},"h").w("</div>")}function ie(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:ne},{},"h").w(" ")}function ne(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/access-denied.svg"><h3>').h("eq",t,{else:re,block:oe},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function re(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function oe(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function ae(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:se},{},"h").w(" ")}function se(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function le(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function ce(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="').f(t.get(["origin"],!1),t,"h").w('/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}e.register("templates/component/sdk_videoplayer",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,T.__dustBody=!0,P.__dustBody=!0,I.__dustBody=!0,A.__dustBody=!0,R.__dustBody=!0,O.__dustBody=!0,N.__dustBody=!0,D.__dustBody=!0,L.__dustBody=!0,M.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,V.__dustBody=!0,U.__dustBody=!0,z.__dustBody=!0,j.__dustBody=!0,H.__dustBody=!0,q.__dustBody=!0,$.__dustBody=!0,W.__dustBody=!0,G.__dustBody=!0,Y.__dustBody=!0,K.__dustBody=!0,J.__dustBody=!0,X.__dustBody=!0,Q.__dustBody=!0,Z.__dustBody=!0,ee.__dustBody=!0,te.__dustBody=!0,ie.__dustBody=!0,ne.__dustBody=!0,re.__dustBody=!0,oe.__dustBody=!0,ae.__dustBody=!0,se.__dustBody=!0,le.__dustBody=!0,ce.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/component/sdk_videoplayer",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.x(t.get(["isPrivacy"],!1),t,{else:i,block:oe},{})}function i(e,t){return e.x(t.get(["initial"],!1),t,{else:n,block:re},{})}function n(e,t){return e.w('<div class="video-container hippo-video-player hv-new-player" id=').f(t.get(["id"],!1),t,"h").w('><div class="thumbnail"><div class="se-crop-scale">\x3c!-- <canvas class="blurred-bg-video" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px);-webkit-filter: blur(20px);transform: scale(1.2);"></canvas> --\x3e<div class="primary-video-overflow-container"><div class="primary-video-container">').x(t.get(["isImageMode"],!1),t,{else:r,block:u},{}).w('</div></div><div class="parallel-video-container"><div class="goback-branching"><img src="/img/back-icon.png" width="25"><span></span></div><div class="goback-branching-new"><div class="left-container"><img src="/img/left.svg" width="25"></div><div class="branching-info"></div></div><div class="branching-menus"></div></div>').nx(t.get(["isImageMode"],!1),t,{block:p},{}).w('</div><canvas class="renderless-overlay" style="position: absolute;width: 100%;height: 100%"></canvas><div class="renderless-inputs-container" style="position: absolute;width: 100%;height: 100%;display:none"></div><div class="renderless-overlay-iframes" style="position: absolute;width: 100%;height: 100%;display:none"></div></div>').nx(t.get(["isImageMode"],!1),t,{block:f},{}).w('<div id="personalizeChapterId" class="hp-menu-tog hide"><img src="/svg/hamburger-white.svg" width="16"></div><div id="personalizeChaptersListId" class="hp-tog-content hide"><a class="chapter-close" id="chapterCloseId"><img src="/svg/close-gray.svg" width="10"></a><br><div id="chaptersListId"></div></div><div class="error-overlay hide" style="position:absolute;width:100%;height:100%;background: rgba(0,0,0,0.2);z-index:2;background-repeat: no-repeat;background-size: contain;"><div class="error-reason-div"><img src="/svg/warning.svg" class="status-warning" /><div class="error-reason"></div></div></div><div class="player-touch-guard"></div>').nx(t.get(["isImageMode"],!1),t,{block:E},{}).h("select",t,{block:J},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:ee},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:ie},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:ne},{key:t.get(["privacy"],!1),value:2},"h").w("</div>")}function r(e,t){return e.w('<video class="primary-video" id="primary-video" crossorigin="anonymous" controls playsinline ').x(t.get(["loop"],!1),t,{block:o},{}).w(">").h("eq",t,{block:a},{key:t.get(["type"],!1),value:"url"},"h").w("Your browser does not support the video tag.").x(t.get(["subtitlesEnabled"],!1),t,{block:s},{}).w('</video><canvas class="se-effects-canvas"></canvas><div class="se-effects-components-container"></div>').x(t.get(["showSetFrame"],!1),t,{block:d},{}).w(" ")}function o(e,t){return e.w(" loop ")}function a(e,t){return e.w('<source crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">")}function s(e,t){return e.x(t.get(["subtitlesFromServer"],!1),t,{else:l,block:c},{})}function l(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["subtitles"],!1),t,"h").w('" default="">')}function c(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["domain"],!1),t,"h").w("/video_delivery/subtitles/").f(t.get(["token"],!1),t,"h").w('" default="">')}function d(e,t){return e.w('<video class="hidden-video" controls playsinline crossorigin="anonymous" style="display: none;"><source crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">").f(t.getPath(!1,["wizPlayer","browserDoesNotSupport"]),t,"h").w("</video> ")}function u(e,t){return e.w('<img src="').f(t.get(["src"],!1),t,"h").w('" class="primary-video" id="gifImage" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;"> ')}function p(e,t){return e.w(" ").nx(t.get(["isDelivery"],!1),t,{block:h},{}).w(" ")}function h(e,t){return e.w('<div class="secondary-video-overflow-container" style="top:0"><div class="secondary-video-container"><video class="secondary-video" crossorigin="anonymous"><source crossorigin="anonymous" src=').f(t.get(["audioSrc"],!1),t,"h").w('></video></div></div><textarea id="seTextEditable" class="se-text-editable custom-scroll hide" spellcheck="false" placeholder="Enter text here"></textarea><div class="se-components-container"></div><div class="se-crop-resizable hide"></div><div class="se-crop-highlighter se-crop-highlighter-top"></div><div class="se-crop-highlighter se-crop-highlighter-left"></div><div class="se-crop-highlighter se-crop-highlighter-bottom"></div><div class="se-crop-highlighter se-crop-highlighter-right"></div>')}function f(e,t){return e.w('<div class="se-components-droppable"></div><div class="player-border"></div>').x(t.get(["thumbnail"],!1),t,{block:m},{}).x(t.get(["previewVideo"],!1),t,{block:g},{}).x(t.get(["controls"],!1),t,{block:v},{}).w('<div class="renderless-builder-container" style="position: absolute;width: 100%;height: 100%;display:none;"></div>').x(t.get(["controls"],!1),t,{block:y},{}).w('<div class="player-loading-overlay full-screen-container hide"><div class="inner-container"></div></div>').x(t.get(["isLandingPageVideo"],!1),t,{else:b,block:w},{}).w(" ").x(t.get(["isMutedAutoPlay"],!1),t,{block:S},{}).w(" ").x(t.get(["showHoverActions"],!1),t,{block:x},{}).w(" ")}function m(e,t){return e.w('<div class="thumbnail-container full-screen-container" style="position:absolute;width:100%;height:100%;cursor: pointer;z-index:1"><img src="').f(t.get(["thumbnail"],!1),t,"h").w('" id="playerThumbnail" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;" onerror="this.style.display=\'none\'"></div>')}function g(e,t){return e.w('<div class="play-btn-container full-screen-container"><video src="').f(t.get(["previewVideo"],!1),t,"h").w('" id="preview-video-player" crossorigin="anonymous" playsinline loop /></div>')}function v(e,t){return e.w('<div id="hvMainPlayPause" class="main-play-pause"></div><div id="hvRclickOptions" class="hv-rclick-options hide" oncontextmenu="return false;"><ul><li id="hvRclickCopy" class="hv-rclick-copy">').f(t.getPath(!1,["newPlayer","copyLinkAndThumbnail"]),t,"h").w('</li><li class="hv-rclick-about">').f(t.getPath(!1,["newPlayer","aboutHippoVideo"]),t,"h").w("</li></ul></div>")}function y(e,t){return e.w('<div class="replay-btn-container full-screen-container hide"><span class="final-replybtn final-replybtn-click"><a class="replaythree replaybutton" width="20px" height="24px"><svg id="Layer_1" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 25.2 25.2"><path fill="#f47a58" d="M2.6 15.4c.7 2.5 2.4 4.7 4.8 6.1 4.9 2.8 11.2 1.1 14-3.8s1.1-11.2-3.8-14c-2.4-1.4-5.1-1.7-7.8-1-2.3.6-4.3 2-5.7 3.9l2.8-.2.2 2-4.4.3-2 .2-.2-2-.3-4.4 2-.2.2 2.9c1.7-2.3 4-3.9 6.8-4.7 3.2-.9 6.6-.4 9.5 1.2 6 3.4 8 11.1 4.6 17.1-.3.6-.7 1.1-1.1 1.6-3.8 4.7-10.6 6.1-16 3-2.9-1.7-4.9-4.4-5.8-7.5"/></svg></a></span></div>')}function b(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}function w(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}function S(e,t){return e.x(t.get(["controls"],!1),t,{block:C},{})}function C(e,t){return e.w('<div class="player-info muted-autoplay cursor-pointer hide"><img src="/svg/mute.svg" alt="volume" /> ').nx(t.get(["isMobilePlayer"],!1),t,{block:k},{}).w("</div>")}function k(e,t){return e.f(t.getPath(!1,["wizPlayer","clickToUnmute"]),t,"h")}function x(e,t){return e.w(" ").x(t.get(["controls"],!1),t,{block:_},{}).w(" ")}function _(e,t){return e.w('<div class="main-controls"><span class="backwardbtn" data-backward-value="5 sec"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"viewBox="70 10 40 40" style="enable-background:new 70 10 40 40;" xml:space="preserve"><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M101.5,23.7v15.5c0,1.1-1.3,1.8-2.2,1.2l-12.8-8.2c-0.9-0.6-0.9-1.9,0-2.4l13.8-8.8 M101.5,20.2"/></g><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M91.2,39.1v0.5c0,1.1-1.3,1.8-2.2,1.2l-12.8-8.2c-0.9-0.6-0.9-1.9,0-2.4L90,21.4 M91.2,20.6"/></g><line transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" x1="90" y1="21.4" x2="90" y2="26.9"/></svg></span><span class="final-plybtn final-plybtn-click main-plyBtn"><a class="playthree playbutton" width="20px" height="24px"><svg viewBox="0 0 24 24" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" style="overflow: visible;"><g transform="translate(0,0)" stroke="#F47A58" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" fill="transparent"><path id="playbtnpath" class="playthreepath" d="M1,1.618034 L1,1.618034 L21.763932,12 L1,22.381966 L1,12 Z" id="Triangle2"></path></g></svg></a></span><span class="forwardbtn" data-forward-value="5 sec"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"viewBox="16 10 40 40" style="enable-background:new 16 10 40 40;" xml:space="preserve"><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M24.5,23.7v15.5c0,1.1,1.3,1.8,2.2,1.2l12.8-8.2c0.9-0.6,0.9-1.9,0-2.4L25.8,21 M24.5,20.2"/></g><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M34.8,39.1v0.5c0,1.1,1.3,1.8,2.2,1.2l12.8-8.2c0.9-0.6,0.9-1.9,0-2.4L36,21.4 M34.8,20.6"/></g><line transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" x1="36" y1="21.4" x2="36" y2="26.9"/></svg></span></div>')}function E(e,t){return e.w('<div class="canvas-preview-container ').nx(t.get(["showComments"],!1),t,{else:T,block:I},{}).w('" id="canvasPreviewContainer" style="display:none;"><canvas class="quickpreview-canvas" width=128 height=72></canvas> ').x(t.get(["showComments"],!1),t,{block:R},{}).w(" ").x(t.get(["showSetFrame"],!1),t,{block:O},{}).w(" ").x(t.get(["showReactions"],!1),t,{block:N},{}).w('<input type="hidden" id="canvasHoverTime" /></div><div class="subtitles-line" id="subtitlesTrack"></div><div class="notification-line-onplay"></div><div class="cta-indicator hide"><div id="ctaIndicatorInner" class="cta-indicator-inner"></div></div><div id="chapterIndicatorId" class="hp-indicator hide"></div><div class="player-progress for-reactions disp-none"><div class="click-area-extended"></div></div>').x(t.get(["controls"],!1),t,{block:D},{}).x(t.get(["canShowDeliveryDownload"],!1),t,{block:Y},{}).x(t.get(["controls"],!1),t,{block:K},{}).w('<div id="ctaPlayerComps" class="cta-player-comps hide"></div><div id="ctaPlayerAddComp" class="cta-player-add-container hide"></div>')}function T(e,t){return e.w(" ").nx(t.get(["showReactions"],!1),t,{block:P},{})}function P(e,t){return e.w(" canvas-only-comment")}function I(e,t){return e.nx(t.get(["showReactions"],!1),t,{block:A},{}).w(" ")}function A(e,t){return e.w(" canvas-only ")}function R(e,t){return e.w('<div class="preview-add-comment" id="addCommentFromCanvas"><img src="/img/icon-discussions-white.png" /></div>')}function O(e,t){return e.w('<h6 class="set-frame-btn">').f(t.getPath(!1,["wizPlayer","setTheFrame"]),t,"h").w("</h6>")}function N(e,t){return e.w('<div class="emoji-wrap"><span><img class="react-now-play" reaction_id="1" id="reaction_id-1" src="/svg/emoji-type-1.svg" width="16"></span><span><img class="react-now-play" reaction_id="2" id="reaction_id-2" src="/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now-play" reaction_id="3" id="reaction_id-3" src="/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now-play" reaction_id="4" id="reaction_id-4" src="/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now-play" reaction_id="5" id="reaction_id-5" src="/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now-play" reaction_id="6" id="reaction_id-6" src="/svg/emoji-type-6.svg" width="16"></span></div>')}function D(e,t){return e.w('<div class="controls clear-float player-controls-wrapper player-controls-container"><div class="playbtn-container final-plybtn-click btn-play-click"><a class="solidply"><svg viewBox="0 0 17 24" width="17px" height="24px"><g stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" fill="#FFFFFF"><path class="solidply1" d="M1,1 L1,1 1,11 16,11 16,11 Z"></path><path class="solidply2" d="M1,11 L1,11 1,22 16,11 16,11 Z"></path></g></svg></a></div><div class="duration-container"><div class="video-buffered-container"></div><div class="end-time-container"><span class="end-time"></span><div class="buffer-container"></div></div><div class="current-time-container"><div class="current-time-bg"></div><span class="current-time"></span></div></div>').x(t.get(["audioControl"],!1),t,{block:L},{}).x(t.get(["settingControl"],!1),t,{block:F},{}).x(t.get(["fullscreenControl"],!1),t,{block:j},{}).w(" ").x(t.get(["canPlayerLogoView"],!1),t,{block:H},{}).w("</div>")}function L(e,t){return e.w('<div class="volume-container">').x(t.get(["isContainsAudio"],!1),t,{else:M,block:B},{}).w("</div>")}function M(e,t){return e.w('<span class="no-audio-box"><img class="audio-img mute player-volume" src="/svg/no-audio-mute.svg" alt="volume" width="15" /><div class="no-audio-pop">This video has no audio</div></span>')}function B(e,t){return e.w('<a class="volumebtn volumeon volume60" height="20px"><img src="/svg/volume.svg"><span class="mute-line"></span><span class="volume-curve"><i class="curve1"></i><i class="curve2"></i><i class="curve3"></i></span></a><div class="volume-slider-wrapper"><div class="volume-slider-container"><div class="volume-slider"></div></div></div>')}function F(e,t){return e.w('<div class="settings-container"><span class="settingsbtn-container"><a class="settingsbtn"><img src="/svg/icon-settings.svg"></a></span><div class="settings-options-wrapper"><div class="settings-options-container"><ul>').x(t.get(["showSpeedSettings"],!1),t,{block:V},{}).x(t.get(["subtitlesEnabled"],!1),t,{block:U},{}).x(t.get(["qualityControl"],!1),t,{block:z},{}).w('</ul><span class="selectedpointer"></span></div></div></div>')}function V(e,t){return e.w('<li id="speedControl"><a id="speedInfo">1x - Speed</a><div class="settings-suboptions-wrapper"><ul class="settings-suboptions" id="speedControlWrapper"><li data-id="0.5"><i></i><a>0.5X</a></li><li class="selected" data-id="1"><i></i><a>1x</a></li><li data-id="1.5"><i></i><a>1.5x</a></li><li data-id="2"><i></i><a>2x</a></li><li data-id="5"><i></i><a>5x</a></li></ul></div></li>')}function U(e,t){return e.w('<li id="subtitles"><a>Subtitles</a><div class="settings-suboptions-wrapper"><ul class="settings-suboptions" id="subtitleWrapper"><li data-value="on"><i></i><a>On</a></li><li class="selected" data-value="off"><i></i><a>Off</a></li></ul></div></li>')}function z(e,t){return e.w('<li id="qualityConrols"><a id="qualityinfo">Auto</a><div class="settings-suboptions-wrapper"><ul class="settings-suboptions" id="qualityControlWrapper"></ul></div></li>')}function j(e,t){return e.w('<div class="screensize-container"><a class="screensizebtn"><i class="ss1"></i><i class="ss2"></i><i class="ss3"></i><i class="ss4"></i></a></div>')}function H(e,t){return e.w('<div class="logo-container">').x(t.get(["playerLogo"],!1),t,{else:q,block:$},{}).w("</div>")}function q(e,t){return e.w('<a href="https://www.hippovideo.io/" target="_blank" rel="noopener"><img src="/svg/hippo-player-logo.svg" alt="logo" /></a>')}function $(e,t){return e.w("<a ").x(t.get(["addLinkToPlayerLogo"],!1),t,{block:W},{}).w(' target="_blank" rel="noopener noreferrer"><img src="').f(t.get(["playerLogo"],!1),t,"h").w('" alt="logo" /></a>')}function W(e,t){return e.x(t.get(["playerLogoLink"],!1),t,{block:G},{})}function G(e,t){return e.w('href="').f(t.get(["playerLogoLink"],!1),t,"h").w('" ')}function Y(e,t){return e.w('<div class="hv-player-download"></div>')}function K(e,t){return e.w('<div class="duration-container duration-container-fullscreen disp-none"><div class="current-time-container"><div class="current-time-bg"></div></div></div>')}function J(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:X},{},"h").w(" ")}function X(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",t,{else:Q,block:Z},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function Q(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function Z(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function ee(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:te},{},"h").w(" ")}function te(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function ie(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function ne(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}function re(e,t){return e.w('<div class="video-container hippo-video-player hv-new-player" id=').f(t.get(["id"],!1),t,"h").w('><div id="personalisedVideoLoading" class="personalised-video-loading-page" style="display: block;"><div class="loader-wrap"><div class="rp-loader"></div></div></div></div>')}function oe(e,t){return e.w('<div class="video-container hippo-video-player hv-new-player" id=').f(t.get(["id"],!1),t,"h").w(">").h("select",t,{block:ae},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:de},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:pe},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:he},{key:t.get(["privacy"],!1),value:2},"h").w("</div>")}function ae(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:se},{},"h").w(" ")}function se(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",t,{else:le,block:ce},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function le(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function ce(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function de(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:ue},{},"h").w(" ")}function ue(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function pe(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function he(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}e.register("templates/component/NewPlayerView",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,T.__dustBody=!0,P.__dustBody=!0,I.__dustBody=!0,A.__dustBody=!0,R.__dustBody=!0,O.__dustBody=!0,N.__dustBody=!0,D.__dustBody=!0,L.__dustBody=!0,M.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,V.__dustBody=!0,U.__dustBody=!0,z.__dustBody=!0,j.__dustBody=!0,H.__dustBody=!0,q.__dustBody=!0,$.__dustBody=!0,W.__dustBody=!0,G.__dustBody=!0,Y.__dustBody=!0,K.__dustBody=!0,J.__dustBody=!0,X.__dustBody=!0,Q.__dustBody=!0,Z.__dustBody=!0,ee.__dustBody=!0,te.__dustBody=!0,ie.__dustBody=!0,ne.__dustBody=!0,re.__dustBody=!0,oe.__dustBody=!0,ae.__dustBody=!0,se.__dustBody=!0,le.__dustBody=!0,ce.__dustBody=!0,de.__dustBody=!0,ue.__dustBody=!0,pe.__dustBody=!0,he.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/component/NewPlayerView",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="video-container hippo-video-player hv-new-player hvplayer-wrapper" id=').f(t.get(["id"],!1),t,"h").w(">").x(t.get(["isPrivacy"],!1),t,{else:i,block:o},{}).w("</div>")}function i(e,t){return e.x(t.get(["initial"],!1),t,{else:n,block:r},{})}function n(e,t){return e.p("templates/player_2022/player",t,t,{})}function r(e,t){return e.p("templates/player_2022/initial_loader",t,t,{})}function o(e,t){return e.p("templates/player_2022/privacy",t,t,{})}e.register("templates/player_2022/base",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/player_2022/base",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return C}));i(96),i(180),i(23),i(270),i(52),i(60),i(65),i(175),i(82),i(206),i(66),i(73),i(97),i(133),i(63),i(134);var n=i(77),r=i.n(n),o=i(112),a=i.n(o),s=i(1),l=i.n(s),c=i(429),d=i(425),u=i.n(d),p=i(5),h=i.n(p),f=i(46),m=i(426),g=i.n(m),v=i(427),y=i(7);function b(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function S(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function C(t){var i=t.videoPlayerView,n=t.token,o=t.tokenType,d=t.recorder,p=t.recorderApiModel,m=t.isPersonalisationEnabled,w=t.customColors,C=t.footageUrls,k=t.showSimpleEditor,x=t.projectJson,_=t.integrationType,E=t.onSimpleEditorInitialize,T=Object(s.useState)(d.recordDetails),P=T[0],I=T[1],A=Object(s.useContext)(f.a).recorderInitOptions.edit,R=Object(y.c)(),O=Object(s.useRef)(!1),N=Object(s.useRef)(),D=Object(s.useRef)(x),L=Object(s.useRef)();Object(s.useEffect)((function(){if(!P||!P.asset_id)return d.getRecordDetails().then((function(e){I(e)})).catch((function(e){console.error("ERROR IN GETTING RECORD DETAILS ",e)})),function(){d.cancelGetRecordDetails()}}),[d]);return Object(s.useEffect)((function(){N.current&&(N.current.innerHTML+=u()(e.extend(g.a,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?S(Object(i),!0).forEach((function(t){r()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):S(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({shouldHideTrimTimer:"true",integrationType:_,isAddImageEnabled:!1,canShowPersonalization:m,mfValues:h.a.personalization.defaultMergeFields,origin:R},function(){try{var e={};if(A&&"object"===a()(A)&&null!==A)for(var t in A)!1!==A[t]&&"false"!==A[t]||(e[t]="false");return e}catch(e){return{}}}()))),O.current=!0)}),[N]),Object(s.useEffect)((function(){i&&N.current&&P&&O.current&&function(){if(P.asset_id){var e={el:N.current,fromSDK:!0,videoPlayerView:i,integration_type:_,assetId:P&&P.asset_id,token:n,tokenType:o,recorder:d,recorderApiModel:p,isBlurEnabled:!0,embeddedDigest:P&&P.delivery_token,isPersonalizationEnabled:m,customColors:w,authoringId:P&&P.authoring_id,footageUrls:C};L.current?L.current.initialize(e):L.current=new c.a(e),E&&E(L.current)}}()}),[i,N,P,O]),Object(s.useEffect)((function(){if(L.current)if(k){L.current.enable();var e,t=b(N.current.getElementsByClassName("simple-edit-container"));try{for(t.s();!(e=t.n()).done;){e.value.classList.remove("hide")}}catch(e){t.e(e)}finally{t.f()}L.current.height="140px"}else{var i,n=b(N.current.getElementsByClassName("simple-edit-container"));try{for(n.s();!(i=n.n()).done;){i.value.classList.add("hide")}}catch(e){n.e(e)}finally{n.f()}L.current.height="0"}}),[k]),Object(s.useEffect)((function(){return D.current=x,x&&L.current&&i&&(setTimeout((function(){L.current.setProjectJson(x)}),300),i.show()),function(){}}),[x]),Object(s.useEffect)((function(){L.current&&i&&D.current&&(setTimeout((function(){L.current.setProjectJson(x)}),300),i.show())}),[L,i]),l.a.createElement(v.a,{showSimpleEditor:!0,ref:N})}}).call(this,i(10))},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="sticker-family-container sticker-family-container-').f(t.get(["i"],!1),t,"h").w('"><img class="sticker-family-main" src = "').f(t.get(["mainImg"],!1),t,"h").w('" id="sticker-family-main-').f(t.get(["i"],!1),t,"h").w('"><div class="custom-scroll sticker-family-all hide"></div></div>')}e.register("templates/simple_edit/sticker_family",t),t.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/simple_edit/sticker_family",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.x(t.get(["showAsModal"],!1),t,{else:i,block:s},{})}function i(e,t){return e.w('<center class="hippo-progress-loader"><div class="hippo-progress-text" id="progressText"> Preparing File... </div>').x(t.get(["showHippoIcon"],!1),t,{else:n,block:r},{}).w("</center>")}function n(e,t){return e.w('<div class="hippo-branding-loader"><span></span><span></span><span></span><span></span><span></span></div>')}function r(e,t){return e.x(t.get(["isVirtualBg"],!1),t,{else:o,block:a},{}).w('<div class="hippo-progress-container text-left"><div class="hippo-progress-strip"></div><div class="hippo-progress-fill-strip" id="progressFillStrip"></div></div>')}function o(e,t){return e.w('<img class="hippo-progress-gif" src="/img/hippo-yoga.gif">')}function a(e,t){return e.w('<img class="hippo-progress-gif virtualbg-notify-img" src="/img/virtualbg-notify.png">')}function s(e,t){return e.w('<div class="modal-backdrop" id="progressBackdrop"><div class="large-4 large-offset-4 medium-6 medium-offset-3 hippo-progress"><center class="hippo-progress-loader"><div class="hippo-progress-text" id="progressText"> Preparing File... </div>').x(t.get(["showHippoIcon"],!1),t,{else:l,block:c},{}).w("</center></div></div>")}function l(e,t){return e.w('<div class="hippo-branding-loader"><span></span><span></span><span></span><span></span><span></span></div>')}function c(e,t){return e.x(t.get(["isVirtualBg"],!1),t,{else:d,block:u},{}).w('<div class="hippo-progress-container text-left"><div class="hippo-progress-strip"></div><div class="hippo-progress-fill-strip" id="progressFillStrip"></div></div>')}function d(e,t){return e.w('<img class="hippo-progress-gif" src="/img/hippo-yoga.gif">')}function u(e,t){return e.w('<img class="hippo-progress-gif virtualbg-notify-img" src="/img/virtualbg-notify.png">')}e.register("templates/component/hippo_yoga",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/component/hippo_yoga",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(0),i(10),i(25),i(94),i(21)],void 0===(r=function(e,t,i,n,r){"use strict";return r=r.default,i.Model.extend({idAttribute:"id",defaults:{id:null},initialize:function(e){},url:function(){var e=this.attributes.id?this.attributes.id:"";return JSON.parse(n).getVideoCategories+(e?"/"+e:"")},parse:function(e){return e},getVideoCategories:function(e,t){r.call({url:JSON.parse(n).getAllVideoCategories,method:"GET",success:e,error:t})},getMultipleVideoCategories:function(e,t,i,o){r.call({url:JSON.parse(n).getMultipleCategoryVideos+e,method:"POST",data:t,success:i,error:o})},setDefaultVideoCategory:function(e,t,i,o,a){var s={set_default:i,from:t};r.call({url:JSON.parse(n).setDefaultVideoCategory+"/"+e,method:"PUT",data:s,success:o,error:a})},getVideoCategoriesWithToken:function(e,t,i){r.call({url:JSON.parse(n).getVideoCategoriesWithToken+"/"+e,method:"GET",success:t,error:i})},getCategoryDetails:function(e,t,i){r.call({url:JSON.parse(n).getVideoCategories+"/details/"+e,method:"GET",success:t,error:i})},getVideoGroups:function(e,t,i){r.call({url:JSON.parse(n).getVideoGroups+"?asset_id="+e,method:"GET",success:t,error:i})},getVideoCategoriesAndSelected:function(e,t,i){r.call({url:JSON.parse(n).selectedVideoCategories+"/"+e,method:"GET",success:t,error:i})},getVideosOfCategory:function(e,t,i,o){r.call({url:JSON.parse(n).getCategoryVideos+"/"+e+"/"+t,method:"GET",success:i,error:o})},getVideosOfCategoryWithToken:function(e,t,i,o,a){r.call({url:JSON.parse(n).getCategoryVideosWithToken+"/"+e+"/"+t+"/"+i,method:"GET",success:o,error:a})},assignCategories:function(e,t,i,o){var a=new FormData;a.append("asset_id",e),a.append("cat_ids",t),r.call({url:JSON.parse(n).assignCategories,method:"POST",data:a,contentType:!1,processData:!1,success:i,error:o})},assignGroups:function(e,t,i){r.call({url:JSON.parse(n).assignGroups,method:"POST",data:e,success:t,error:i})},assignVideos:function(e,t,i,o){var a=new FormData;a.append("asset_ids",e),a.append("cat_ids",t),r.call({url:JSON.parse(n).assignVideos,method:"POST",data:a,contentType:!1,processData:!1,success:i,error:o})},searchCategories:function(e,t,i,o,a){var s=new FormData;t&&s.append("search_token",e),s.append("is_search",t),s.append("order_type",i);var l=JSON.parse(n).createVideo+"/1/search_category";r.call({url:l,method:"POST",data:s,contentType:!1,processData:!1,success:o,error:a})},assignToTeacher:function(e,t,i,o){var a="asset_id="+e+"&token="+t;r.call({url:JSON.parse(n).createVideo+"/assign_to_teacher",method:"POST",data:a,success:i,error:o})},deleteVideoCategory:function(e,t,i){r.call({url:JSON.parse(n).deleteVideoCategory+"/"+e,method:"DELETE",success:t,error:i})},saveDocumentInfo:function(e,t,i){r.call({url:JSON.parse(n).saveDocumentInfo,method:"POST",data:e,success:t,error:i})},getUsersAndGroups:function(e,t){r.call({url:"/api/internal/get_user_and_group_list",method:"GET",success:e,error:t})},updatePinFolder:function(e,t,i){r.call({url:JSON.parse(n).updatePinFolder,method:"POST",data:e,success:t,error:i})}})}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="container"><div class="row"><div class="large-8 large-offset-2 medium-10 medium-offset-1 small-12 import-media-container"><div class="import-header clearfix"><div class="pull-left"> ').h("eq",t,{else:i,block:n},{key:t.get(["type"],!1),value:"doc"},"h").w(' </div><div class="pull-right"> <img src="/svg/close-gray.svg" alt="close" id="closeImport"/> </div></div><div class="tab-container" id="tabContainer">').x(t.get(["fromVideoPages"],!1),t,{block:a},{}).x(t.get(["canShowImportFromLocal"],!1),t,{block:l},{}).x(t.get(["canShowVideoLibrary"],!1),t,{block:c},{}).x(t.get(["canShowRecentlyUsed"],!1),t,{block:d},{}).nx(t.get(["fromVideoPages"],!1),t,{block:u},{}).x(t.get(["canShowAudioLibrary"],!1),t,{block:h},{}).x(t.get(["canShowGdriveImport"],!1),t,{block:f},{}).x(t.get(["canImportImageFromLibrary"],!1),t,{block:m},{}).x(t.get(["canShowImageWebSearch"],!1),t,{block:g},{}).x(t.get(["canShowTestimonial"],!1),t,{block:v},{}).x(t.get(["canShowShopify"],!1),t,{block:y},{}).x(t.get(["canShowAddViaLink"],!1),t,{block:b},{}).x(t.get(["canShowCreateVideoOption"],!1),t,{block:w},{}).x(t.get(["canShowWebLink"],!1),t,{block:S},{}).w('</div><div class="import-body no-box-shadow">').p("templates/partials/import_from_local",t,t,{}).p("templates/partials/import_recently_used",t,t,{}).p("templates/partials/import_from_web",t,t,{}).p("templates/partials/import_from_library",t,t,{}).p("templates/partials/import_from_drive",t,t,{}).p("templates/partials/import_from_video_library",t,t,{}).p("templates/partials/import_from_shopify",t,t,{}).p("templates/partials/import_from_custom_link",t,t,{}).p("templates/partials/import_from_website_link",t,t,{}).nx(t.get(["handleOneFileUpload"],!1),t,{block:C},{}).w('<div id="importVideoFormContainer" class="hide"></div></div><div class="import-footer text-right clearfix"><div class="powered-by pull-left hide" id="footerPoweredBy"><span class="powered-by-label"> Powered by </span><img src="/svg/flickr-logo.svg" alt="Flickr" /><img src="/img/pexels-logo.png" alt="Pexels" /></div>').x(t.get(["isOnlyDoc"],!1),t,{block:k},{}).w('<div class="pull-left foot-note" id="footnote">').x(t.get(["handleOneFileUpload"],!1),t,{block:x},{}).w("<div>").h("eq",t,{else:T,block:P},{key:t.get(["type"],!1),value:"doc"},"h").w('</div></div><div class="pull-right"><button class="button wiz-secondary-btn wiz-new-secondary-btn radius" id="cancelImport"> ').f(t.get(["cancel"],!1),t,"h").w(' </button><button class="button wiz-primary-btn" id="import" disabled>').h("eq",t,{block:I},{key:t.get(["type"],!1),value:"video"},"h").h("eq",t,{block:A},{key:t.get(["type"],!1),value:"doc"},"h").w(" ").h("ne",t,{block:R},{key:t.get(["type"],!1),value:"video"},"h").w('</button><button class="button wiz-secondary-btn wiz-new-secondary-btn radius hide" id="cancelVideoForm"> ').f(t.get(["changeFile"],!1),t,"h").w(' </button><button class="button wiz-primary-btn hide" id="submitVideoForm"> ').f(t.get(["import"],!1),t,"h").w(" </button></div></div></div></div></div>")}function i(e,t){return e.w(" ").f(t.get(["title"],!1),t,"h").w(" ")}function n(e,t){return e.w(" ").x(t.get(["isOnlyDoc"],!1),t,{else:r,block:o},{})}function r(e,t){return e.w(" ").f(t.get(["importDocument"],!1),t,"h").w(" ")}function o(e,t){return e.w(" ").f(t.get(["importDocumentOnly"],!1),t,"h").w(" ")}function a(e,t){return e.x(t.get(["canShowVideoLibraryMulti"],!1),t,{block:s},{})}function s(e,t){return e.w('<div class="tab" id="importVideoLibraryTabMulti" data-panel-id="importVideoLibraryl"> ').f(t.get(["importFromVideoLibraryMulti"],!1),t,"h").w(" </div>")}function l(e,t){return e.w('<div class="tab active" id="importLocalTab" data-panel-id="importFromLocal"> ').f(t.get(["importFromLocal"],!1),t,"h").w(" </div>")}function c(e,t){return e.w('<div class="tab" id="importVideoLibrarylTab" data-panel-id="importVideoLibraryl"> ').f(t.get(["importFromVideoLibrary"],!1),t,"h").w(" </div>")}function d(e,t){return e.w('<div class="tab" id="recentlyUsedTab" data-panel-id="importRecentlyUsed"> ').f(t.get(["recentlyUsed"],!1),t,"h").w(" </div>")}function u(e,t){return e.x(t.get(["canShowVideoLibraryMulti"],!1),t,{block:p},{})}function p(e,t){return e.w('<div class="tab" id="importVideoLibraryTabMulti" data-panel-id="importVideoLibraryl"> ').f(t.get(["importFromVideoLibraryMulti"],!1),t,"h").w(" </div>")}function h(e,t){return e.w('<div class="tab" id="importLibraryTab" data-panel-id="importFromLibrary"> ').f(t.get(["importFromLibrary"],!1),t,"h").w(" </div>")}function f(e,t){return e.w('<div class="tab" id="importDriveTab" data-panel-id="importFromDrive"> ').f(t.get(["importFromDrive"],!1),t,"h").w(" </div>")}function m(e,t){return e.w('<div class="tab" id="importImgLibTab" data-panel-id="importImageFromLibrary"> ').f(t.get(["importImageFromLib"],!1),t,"h").w(" </div>")}function g(e,t){return e.w('<div class="tab" id="importWebTab" data-panel-id="importFromWeb"> ').f(t.get(["searchFromWeb"],!1),t,"h").w(" </div>")}function v(e,t){return e.w('<div class="tab" id="importTestimonial" data-panel-id="importVideoLibraryl"> ').f(t.get(["importTestimonial"],!1),t,"h").w(" </div>")}function y(e,t){return e.w('<div class="tab" id="importShopifyTab" data-panel-id="importFromShopify"> ').f(t.get(["shopifyTitle"],!1),t,"h").w(" </div>")}function b(e,t){return e.w('<div class="tab" id="importViaLinkTab" data-panel-id="importFromLink"> ').f(t.get(["addViaLinkTitle"],!1),t,"h").w(" </div>")}function w(e,t){return e.w('<div class="additional-options-block"><a id="libraryRefresh" class="button wiz-border-button create-video-btn no-margin hide"><img class="reload-img" src="/svg/retake-orange.svg"></a><a id="createVideoFromImportBtn" class="button wiz-border-button create-video-btn no-margin" target="_blank" href="/video/record">').f(t.get(["createVideo"],!1),t,"h").w("</a></div>")}function S(e,t){return e.w('<div class="tab" id="importViaWebLink" data-panel-id="importFromWebLink"> ').f(t.get(["WebLinkTitle"],!1),t,"h").w(" </div>")}function C(e,t){return e.p("templates/partials/import_selected_drawer",t,t,{}).w('<div class="drawer-handle" id="openDrawHandle"><img src="/svg/arrow-inactive.svg" alt="Left" class="arrow-marker" /></div>')}function k(e,t){return e.w('<div class="pull-left foot-note"><span> ').f(t.get(["note"],!1),t,"h").w(': </span> <div style="display: inline-block"> ').f(t.get(["canBeUsedOnly"],!1),t,"h").w(" </div></div>")}function x(e,t){return e.w(" <span> ").f(t.get(["note"],!1),t,"h").w(": </span> ").h("eq",t,{else:_,block:E},{key:t.get(["type"],!1),value:"doc"},"h").w(" ")}function _(e,t){return e.w(" ").f(t.get(["importHelp"],!1),t,"h").w(" ")}function E(e,t){return e.w(" ").f(t.get(["importPDFOnly"],!1),t,"h").w("<b>").f(t.get(["videoLandingPages"],!1),t,"h").w("</b> ")}function T(e,t){return e.w(" ").f(t.get(["supports"],!1),t,"h").w(" ").f(t.get(["formatsList"],!1),t,"h").w(" ").f(t.get(["formatsWithMaxSize"],!1),t,"h").w(" ").f(t.get(["maxFileSize"],!1),t,"h").w(" MB")}function P(e,t){return e.f(t.get(["canBeUsedOnly"],!1),t,"h").w("<br>").f(t.get(["canBeUsedOnlyImage"],!1),t,"h")}function I(e,t){return e.f(t.get(["proceed"],!1),t,"h")}function A(e,t){return e.f(t.get(["proceed"],!1),t,"h")}function R(e,t){return e.h("ne",t,{block:O},{key:t.get(["type"],!1),value:"doc"},"h")}function O(e,t){return e.f(t.get(["import"],!1),t,"h")}e.register("templates/component/import_media",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,T.__dustBody=!0,P.__dustBody=!0,I.__dustBody=!0,A.__dustBody=!0,R.__dustBody=!0,O.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/component/import_media",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="import-body-container import-video-form" id="importVideoForm"><div class="import-web-content image-gallery main-gallery custom-scroll"><form name="importVideoDetails" id="importVideoDetails"><div class="row"><div class="small-12 clearfix"><label class="small-3 inline cat-form-la pull-left"> ').x(t.get(["isMultipleImageImport"],!1),t,{else:i,block:n},{}).w(' </label><div class="small-8 pull-left image-gallery"><div class="image pull-left import-video-form-preview">').x(t.get(["thumbnail_url"],!1),t,{else:r,block:u},{}).w('</div><div class="pull-left desc-container"><label class="import-file-name"> ').x(t.get(["isMultipleImageImport"],!1),t,{else:p,block:h},{}).w("</label>").x(t.get(["isMultipleImageImport"],!1),t,{else:f,block:g},{}).w("</div></div></div>").x(t.get(["askVideoDetails"],!1),t,{block:v},{}).w('</div></form><div id="videoImportStatusLoading" class="hide"></div></div></div>')}function i(e,t){return e.w(" ").f(t.get(["selectedFile"],!1),t,"h").w(" ")}function n(e,t){return e.w(" ").f(t.get(["selectedFiles"],!1),t,"h").w(" ")}function r(e,t){return e.x(t.get(["isImagePreview"],!1),t,{else:o,block:d},{})}function o(e,t){return e.x(t.get(["isAudioPreview"],!1),t,{else:a,block:c},{})}function a(e,t){return e.x(t.get(["isVideoPreview"],!1),t,{else:s,block:l},{})}function s(e,t){return e.w('<img src="/img/film-hippo.png" alt="Video Thumbnail" class="gallery-view" />')}function l(e,t){return e.w('<video autoplay muted play><source src="').f(t.get(["preview_url"],!1),t,"h").w('" type="').f(t.get(["type"],!1),t,"h").w('"></video>')}function c(e,t){return e.w('<audio controls><source src="').f(t.get(["preview_url"],!1),t,"h").w('" type="').f(t.get(["type"],!1),t,"h").w('"></audio>')}function d(e,t){return e.w('<img src="').f(t.get(["preview_url"],!1),t,"h").w('" alt="Video Thumbnail" class="gallery-view" />')}function u(e,t){return e.w('<img src="').f(t.get(["thumbnail_url"],!1),t,"h").w('" alt="Video Thumbnail" class="gallery-view" />')}function p(e,t){return e.w(" ").f(t.get(["name"],!1),t,"h").w(" ")}function h(e,t){return e.w(" ").f(t.get(["totalFileNamesText"],!1),t,"h").w(" ")}function f(e,t){return e.x(t.get(["sizeFormatted"],!1),t,{block:m},{})}function m(e,t){return e.w('<label class="import-file-size"> ').f(t.get(["sizeFormatted"],!1),t,"h").w(" </label>")}function g(e,t){return e.w('<label class="import-file-size"> ').f(t.get(["totalFileCount"],!1),t,"h").w(" files </label>")}function v(e,t){return e.nx(t.get(["isMultipleImageImport"],!1),t,{block:y},{}).x(t.get(["isCategoryAvailable"],!1),t,{block:S},{}).w('<div class="small-12 clearfix"><label class="small-3 inline cat-form-la pull-left"> ').f(t.get(["addTags"],!1),t,"h").w(' </label><div class="small-8 pull-left"><div id="importVideoTags"></div></div></div>').nx(t.get(["isMultipleImageImport"],!1),t,{block:x},{})}function y(e,t){return e.w('<div class="small-12 clearfix"><label class="small-3 inline cat-form-la pull-left required-mark"> ').x(t.get(["isVideo"],!1),t,{else:b,block:w},{}).w(' </label><div class="small-8 pull-left"><input type="text" name="importVideoTitle" id="importVideoTitle" value="').f(t.get(["name"],!1),t,"h").w('"/></div></div>')}function b(e,t){return e.w(" ").f(t.get(["docTitle"],!1),t,"h").w(" ")}function w(e,t){return e.w(" ").f(t.get(["videoTitle"],!1),t,"h").w(" ")}function S(e,t){return e.w('<div class="small-12 clearfix"><label class="small-3 inline cat-form-la pull-left"> ').f(t.get(["addToCategory"],!1),t,"h").w(' </label><div class="small-8 pull-left"><select name="categories" multiple="multiple" id="importVideoCategories">').s(t.get(["categories"],!1),t,{block:C},{}).w("</select></div></div>")}function C(e,t){return e.w('<option value="').f(t.get(["id"],!1),t,"h").w('"').x(t.get(["is_default_category"],!1),t,{block:k},{}).w("> ").f(t.get(["name"],!1),t,"h").w(" </option>")}function k(e,t){return e.w(" selected")}function x(e,t){return e.w('<div class="small-12 clearfix"><label class="small-3 inline cat-form-la pull-left"> ').f(t.get(["description"],!1),t,"h").w(' </label><div class="small-8 pull-left"><textarea rows="5" name="importVideoDesc" id="importVideoDesc" placeholder="Add Description"></textarea></div></div>').x(t.get(["showPreserveTransparency"],!1),t,{block:_},{})}function _(e,t){return e.w('<div class="small-12 clearfix" id="preserveTransparencyContainer"><label class="small-3 inline cat-form-la pull-left"> ').f(t.get(["preserveTransparency"],!1),t,"h").w(' </label><div class="small-8 pull-left"><input class="wiz-checkbox-blue" type="checkbox" id="preserveTransparency"><label class="" for="preserveTransparency"></label></div></div>')}e.register("templates/partials/import_video_form",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/partials/import_video_form",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="simple-edit-container hide ').x(t.get(["integrationType"],!1),t,{block:i},{}).w('"><div class="simple-edit-controls"><div class="se-control-detail default-control-detail clearfix hide"><span class="info-text"></span></div>').h("ne",t,{block:n},{key:t.get(["trim"],!1),value:"false"},"h").h("ne",t,{block:o},{key:t.get(["crop"],!1),value:"false"},"h").h("ne",t,{block:a},{key:t.get(["image"],!1),value:"false"},"h").h("ne",t,{block:p},{key:t.get(["text"],!1),value:"false"},"h").h("ne",t,{block:v},{key:t.get(["stickers"],!1),value:"false"},"h").h("ne",t,{block:y},{key:t.get(["callout"],!1),value:"false"},"h").h("ne",t,{block:k},{key:t.get(["blur"],!1),value:"false"},"h").h("ne",t,{block:x},{key:t.get(["resize"],!1),value:"false"},"h").w('<div class="simple-edit-buttons-box ').x(t.get(["integrationType"],!1),t,{block:_},{}).w('">').h("ne",t,{block:E},{key:t.get(["trim"],!1),value:"false"},"h").h("ne",t,{block:P},{key:t.get(["crop"],!1),value:"false"},"h").nx(t.get(["fromQuickRecord"],!1),t,{block:A},{}).h("ne",t,{block:D},{key:t.get(["stickers"],!1),value:"false"},"h").h("ne",t,{block:M},{key:t.get(["callouts"],!1),value:"false"},"h").h("ne",t,{block:F},{key:t.get(["blur"],!1),value:"false"},"h").h("ne",t,{block:U},{key:t.get(["resize"],!1),value:"false"},"h").w('</div></div></div><div class="modal-backdrop image-upload-progress-container" id="imageUploadProgessContainer"><div class="text-center loading-container"><div class="progress-text" id="imageUploadProgressText"> </div></div></div>')}function i(e,t){return e.f(t.get(["integrationType"],!1),t,"h").w("-simple-edit")}function n(e,t){return e.w('<div class="se-control-detail clearfix trim-control-detail hide"><img class="ruler ruler-static" src="').f(t.get(["origin"],!1),t,"h").w('/img/ruler-two.png"><canvas class="ruler ruler-dynamic hide" width="1000" height="15"></canvas><input type="text" class="sliderValue" style="display:none" data-index="0" value="0" /><input type="text" class="sliderValue" style="display:none" data-index="1" value="0" /><div class="trim-slider" id="trimSlider"></div>').h("ne",t,{block:r},{key:t.get(["shouldHideTrimTimer"],!1),value:"true"},"h").w('<div class="trim-preview-container"><video class="trim-preview-video"></video></div><div class="preview-trim-arrow"></div></div>')}function r(e,t){return e.w('<div class="trim-before-container"><div class="trim-before-time-element"><div class="arrow right-arrow"></div><span class="trim-before-time"></span></div><div class="trim-before-pop"><span>').f(t.getPath(!1,["simpleEdit","trimStartTime"]),t,"h").w('</span><input type="text" class="trim-before-input"><div class="before-trim-div"><div class="arrow up-arrow trim-input-btn trim-input-btn-plus"></div><div class="arrow down-arrow trim-input-btn trim-input-btn-minus"></div></div><div class="trim-arrow"></div></div></div><div class="trim-after-container"><div class="trim-after-time-element"><div class="arrow left-arrow"></div><span class="trim-after-time"></span></div><div class="trim-after-pop"><span>').f(t.getPath(!1,["simpleEdit","trimEndTime"]),t,"h").w('</span><input type="text" class="trim-after-input"><div class="after-trim-div"><div class="arrow up-arrow trim-input-btn trim-input-btn-plus"></div><div class="arrow down-arrow trim-input-btn trim-input-btn-minus"></div></div><div class="trim-arrow"></div></div></div>')}function o(e,t){return e.w('<div class="se-control-detail clearfix crop-control-detail hide"><div class="pull-left reposition-webcam-container"><input type="checkbox" class="reposition-webcam wiz-checkbox-blue" id="move" checked /><label for="move">').f(t.getPath(!1,["simpleEdit","moveWebcam"]),t,"h").w('</label></div><div class="pull-right text-right"><a class="apply-crop apply-btn" id="cropApplyBtn">').f(t.getPath(!1,["simpleEdit","apply"]),t,"h").w('</a><a class="reset-crop reset-btn" id="cropResetBtn">').f(t.getPath(!1,["simpleEdit","reset"]),t,"h").w("</a></div></div>")}function a(e,t){return e.x(t.get(["isAddImageEnabled"],!1),t,{block:s},{})}function s(e,t){return e.w('<div class="se-control-detail clearfix addimage-control-detail hide">').nx(t.get(["fromQuickRecord"],!1),t,{else:l,block:d},{}).w('<div class="addimage-selected hide"><div class="left"><input type="checkbox" class="wiz-checkbox-blue" id="imageArLock" checked /><label for="imageArLock" class="image-ar-lock">').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w('</label></div><div class="left opacity-container"><span class="left">').f(t.getPath(!1,["simpleEdit","opacity"]),t,"h").w('</span><input class="left slider" type="range" min="0" max="100" id="imageOpacitySlider"><input class="left slider-ip" type="number" min="0" max="100" value="100" id="imageOpacityInput"></div><div class="right delete-btn-container"><div id="deleteImage" class="delete-btn">').f(t.getPath(!1,["simpleEdit","delete"]),t,"h").w("</div></div></div></div>")}function l(e,t){return e.w('\x3c!-- new quick record flow personalization --\x3e<div class="addimage-initial cpv-personalization hide"><div class="add-image-action left add-text hide">\t<img src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-blue.svg"/><span id="addTextLink">\t').f(t.getPath(!1,["simpleEdit","addText"]),t,"h").w('\t</span>\t</div><div class="add-image-action left" id="addImageBtn"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-blue.svg"/><span>').f(t.getPath(!1,["simpleEdit","addImage"]),t,"h").w("</span></div>").x(t.get(["canShowPersonalization"],!1),t,{block:c},{}).w("</div>\x3c!-- end of new quick record flow personalization --\x3e")}function c(e,t){return e.w('<div class="add-image-action left" id="addPersonalizedImageBtn"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-blue.svg"/><span>').f(t.getPath(!1,["simpleEdit","addPersonalizedImage"]),t,"h").w('</span></div><div class="add-image-action left" id="addWebsiteImageBtn"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-blue.svg"/><span>').f(t.getPath(!1,["simpleEdit","addWebsiteImage"]),t,"h").w("</span></div>")}function d(e,t){return e.w('<div class="addimage-initial hide"><div class="add-image-action left add-text hide">\t<span id="addTextLink">\t').f(t.getPath(!1,["simpleEdit","addText"]),t,"h").w('\t</span>\t</div><div class="add-image-action left" id="addImageBtn"><span>').f(t.getPath(!1,["simpleEdit","addImage"]),t,"h").w("</span></div>").x(t.get(["canShowPersonalization"],!1),t,{block:u},{}).w("</div>")}function u(e,t){return e.w('<div class="add-image-action left" id="addPersonalizedImageBtn"><span>').f(t.getPath(!1,["simpleEdit","addPersonalizedImage"]),t,"h").w('</span></div><div class="left add-image-tooltip"><img src="').f(t.get(["origin"],!1),t,"h").w('/img/help.png"><div class="add-image-tooltip-content">').f(t.getPath(!1,["simpleEdit","addImageInfo"]),t,"h").w('<a href="https://help.hippovideo.io/support/solutions/articles/19000100178-image-personalization" target="_blank">').f(t.getPath(!1,["simpleEdit","learnMore"]),t,"h").w('</a></div></div><div class="add-image-action left" id="addWebsiteImageBtn"><span>').f(t.getPath(!1,["simpleEdit","addWebsiteImage"]),t,"h").w('</span></div><div class="left add-image-tooltip"><img src="').f(t.get(["origin"],!1),t,"h").w('/img/help.png"><div class="add-image-tooltip-content">').f(t.getPath(!1,["simpleEdit","addWebsiteImageInfo"]),t,"h").w('<a href="https://help.hippovideo.io/support/solutions/articles/19000100178-image-personalization" target="_blank">').f(t.getPath(!1,["simpleEdit","learnMore"]),t,"h").w("</a></div></div>")}function p(e,t){return e.w('<div class="se-control-detail clearfix addtext-control-detail hide"><div class="addtext-container"><div id="textPropertiesTab" style="display:none" class="sdk-top-wrap"><div class="sdk-text-wrap"><div class="padding-face se-font mf-custom-selector"><select class="se-text-properties se-font-selector"></select></div><div class="padding-face se-fontsize mf-custom-selector"><select class="se-text-properties se-fontsize-selector"><option value="15">15px</option><option value="17">17px</option><option value="20">20px</option><option value="25">25px</option><option value="35">35px</option><option value="40" selected>40px</option><option value="50">50px</option><option value="60">60px</option><option value="70">70px</option><option value="90">90px</option><option value="110">110px</option></select></div><div class="padding-face alignment-selector"><select class="se-text-properties se-textalign-selector"><option value="left">').f(t.getPath(!1,["simpleEdit","left"]),t,"h").w('</option><option value="center" selected>').f(t.getPath(!1,["simpleEdit","center"]),t,"h").w('</option><option value="right">').f(t.getPath(!1,["simpleEdit","right"]),t,"h").w('</option></select></div></div><div class="sdk-textstyle-wrap"><div class="se-bold-face"><input type="checkbox" id="c1" class="se-text-properties se-bold-toggle chk-btn" /><label for=\'c1\'><b>B</b></label></div><div class="italic-face"><input type="checkbox" id="c2" class="se-text-properties se-italic-toggle chk-btn" /><label for=\'c2\'><i>I</i></label></div><div class=""><div class="padding-face color-picker"><input type = "color" class="se-text-properties se-color-choose se-color-selector"/></div></div></div></div><div class="padding-face for-merge-field"><div class="mf-custom-selector mf-custom-selector-button merge-field-container">').x(t.get(["canShowPersonalization"],!1),t,{block:h},{}).w('</div><div class="padding-face se-add-text-btn text-right"><a class="add-text" id="addTextLink"><img src="').h("eq",t,{else:m,block:g},{key:t.get(["integrationType"],!1),value:"lessonly"},"h").w('" alt="plus" />').f(t.getPath(!1,["simpleEdit","addText"]),t,"h").w("</a></div></div></div></div>")}function h(e,t){return e.w('<div class="mf-selector"><select id="seMfSelector"><option selected>').f(t.getPath(!1,["simpleEdit","mergeFields"]),t,"h").w("</option>").s(t.get(["mfValues"],!1),t,{block:f},{}).w('</select></div><div class="text-right mf-label"><label><div><span class="mf-info-tooltip">').f(t.getPath(!1,["simpleEdit","mfInfoTooltip"]),t,"h").w('</span><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/help1.svg" /></div></label></div>')}function f(e,t){return e.w("<option>").f(t.get(["mf"],!1),t,"h").w("</option>")}function m(e,t){return e.f(t.get(["origin"],!1),t,"h").w("/img/small-plus.png")}function g(e,t){return e.w("/img/small-plus-4a90e2.png")}function v(e,t){return e.w('<div class="se-control-detail clearfix addsticker-control-detail hide"><div class="addsticker-initial hide"><div class="sticker-btn-container clearfix"></div></div><div class="addsticker-selected hide"><div class=""><input type="checkbox" class="lock-aspect-ratio sticker-control wiz-checkbox-blue" id="sticker-lock" checked /><label for="sticker-lock">').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w('</label></div><div class=""><div class="text-right"><span>').f(t.getPath(!1,["simpleEdit","opacity"]),t,"h").w('</span></div><div class=""><select class="opacity-val sticker-control"><option value="0">0</option><option value="25">25</option><option value="50">50</option><option value="75">75</option><option value="100">100</option></select></div></div><div class="text-right"><a class="delete-sticker delete-label" id="deleteSticker">').f(t.getPath(!1,["simpleEdit","delete"]),t,"h").w("</a></div></div></div>")}function y(e,t){return e.w('<div class="se-control-detail clearfix addcallout-control-detail hide"><div class="addcallout-initial clearfix hide"><img class="callout-scroll-left pull-left" src="').h("eq",t,{else:b,block:w},{key:t.get(["integrationType"],!1),value:"lessonly"},"h").w('"><div class="callout-btn-scroll-container pull-left"><div class="callout-btn-container"></div></div><img class="callout-scroll-right pull-right" src="').h("eq",t,{else:S,block:C},{key:t.get(["integrationType"],!1),value:"lessonly"},"h").w('"><div class="callout-scroll-hide-layer"></div></div><div class="addcallout-selected hide"><div class=""><input type="checkbox" class="lock-aspect-ratio callout-control wiz-checkbox-blue" id="callout-lock" checked /><label for="callout-lock">').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w('</label></div><div class="se-callout-internal"><div class=""><span>').f(t.getPath(!1,["simpleEdit","opacity"]),t,"h").w('</span></div><div class=""><select class="opacity-val callout-control"><option value="0">0</option><option value="25">25</option><option value="50">50</option><option value="75">75</option><option value="100" selected>100</option></select></div></div><div class="se-callout-internal"><div class=""><span>').f(t.getPath(!1,["simpleEdit","color"]),t,"h").w('</span></div><div class=""><select class="callout-control callout-variation"><option value="0">').f(t.getPath(!1,["simpleEdit","default"]),t,"h").w('</option><option value="1">').f(t.getPath(!1,["simpleEdit","yellow"]),t,"h").w('</option><option value="2">').f(t.getPath(!1,["simpleEdit","orange"]),t,"h").w('</option><option value="3">').f(t.getPath(!1,["simpleEdit","green"]),t,"h").w('</option><option value="4">').f(t.getPath(!1,["simpleEdit","violet"]),t,"h").w('</option><option value="5">').f(t.getPath(!1,["simpleEdit","blue"]),t,"h").w('</option><option value="6">').f(t.getPath(!1,["simpleEdit","dark"]),t,"h").w('</option><option value="7">').f(t.getPath(!1,["simpleEdit","white"]),t,"h").w('</option></select></div></div><div class="text-right"><a class="delete-callout delete-label" id="deleteCallout">').f(t.getPath(!1,["simpleEdit","delete"]),t,"h").w("</a></div></div></div>")}function b(e,t){return e.f(t.get(["origin"],!1),t,"h").w("/img/sli-aro-left.png")}function w(e,t){return e.w("/img/sli-aro-left-4a90e2.png")}function S(e,t){return e.f(t.get(["origin"],!1),t,"h").w("/img/sli-aro-right.png")}function C(e,t){return e.w("/img/sli-aro-right-4a90e2.png")}function k(e,t){return e.w('<div class="se-control-detail clearfix blur-control-detail text-left hide"><div class="blur-initial hide" id="blurInitial">').f(t.getPath(!1,["simpleEdit","blurDescription"]),t,"h").w('<div class="outline-btn pull-right" id="applyBlur"> ').f(t.getPath(!1,["simpleEdit","addNewBlur"]),t,"h").w(' </div></div><div class="blur-selected clearfix hide" id="blurSelected"><div class="pull-left"><input type="checkbox" class="lock-aspect-ratio blur-control wiz-checkbox-blue" id="blurLock" /><label for="blurLock">').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w('</label></div><div class="pull-left content-box"><div class="props-label pull-left"><span> ').f(t.getPath(!1,["simpleEdit","strength"]),t,"h").w(' </span></div><div class="pull-left"><div class="blur-control" id="blurStrength"></div></div><div class="pull-left"><input type="number" step="1" min="0" max="100" value="25" class="blur-input" id="blurStrengthText" /></div></div><div class="pull-right text-right content-box"><a class="delete-blur delete-label" id="deleteblur">').f(t.getPath(!1,["simpleEdit","delete"]),t,"h").w("</a></div></div></div>")}function x(e,t){return e.w('<div class="se-resize-control-detail hide"><div class="se-control-detail clearfix primaryvid-control-detail hide"><input type="checkbox" class="lock-aspect-ratio primary-vid-control wiz-checkbox-blue" id="lock-three" checked /><label for="lock-three" class="cursor-pointer" >').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w('</label></div><div class="se-control-detail clearfix secondaryvid-control-detail hide"><input type="checkbox" class="lock-aspect-ratio secondary-vid-control wiz-checkbox-blue" id="lock-four" checked /><label for="lock-four">').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w("</label></div></div>")}function _(e,t){return e.f(t.get(["integrationType"],!1),t,"h").w("-se-icon-sprite")}function E(e,t){return e.w('<div class="wiz-simple-edit-btn trim-btn ').x(t.get(["isHideTrim"],!1),t,{block:T},{}).w('" id="trimBtn" tooltip="').f(t.getPath(!1,["simpleEdit","trim"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-trim"></span></div>')}function T(e,t){return e.w(" disp-none ")}function P(e,t){return e.w('<div class="wiz-simple-edit-btn crop-btn ').x(t.get(["isHideCorp"],!1),t,{block:I},{}).w('" id="cropBtn" tooltip="').f(t.getPath(!1,["simpleEdit","crop"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-crop"></span></div>')}function I(e,t){return e.w(" disp-none ")}function A(e,t){return e.h("ne",t,{block:R},{key:t.get(["text"],!1),value:"false"},"h").x(t.get(["isAddImageEnabled"],!1),t,{block:O},{})}function R(e,t){return e.w('<div class="wiz-simple-edit-btn add-text-btn" id="addTextBtn" tooltip="').f(t.getPath(!1,["simpleEdit","text"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-text"></span></div>')}function O(e,t){return e.h("ne",t,{block:N},{key:t.get(["image"],!1),value:"false"},"h")}function N(e,t){return e.w('<div class="wiz-simple-edit-btn add-image-btn" id="addImageMenuBtn" tooltip="').f(t.getPath(!1,["simpleEdit","image"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-image-personalisation"></span></div>')}function D(e,t){return e.w('<div class="wiz-simple-edit-btn add-stickers-btn ').x(t.get(["isHideStickers"],!1),t,{block:L},{}).w('" id="addStickersBtn" tooltip="').f(t.getPath(!1,["simpleEdit","emoji"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-sticker"></span></div>')}function L(e,t){return e.w(" disp-none ")}function M(e,t){return e.w('<div class="wiz-simple-edit-btn add-callouts-btn ').x(t.get(["isHideCallouts"],!1),t,{block:B},{}).w('" id="addCalloutsBtn" tooltip="').f(t.getPath(!1,["simpleEdit","callout"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-callout"></span></div>')}function B(e,t){return e.w(" disp-none ")}function F(e,t){return e.w('<div class="wiz-simple-edit-btn add-blur-btn ').x(t.get(["isHideBlur"],!1),t,{block:V},{}).w('" id="blurBtn" tooltip="').f(t.getPath(!1,["simpleEdit","blur"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-blur"></span></div>')}function V(e,t){return e.w(" disp-none ")}function U(e,t){return e.w('<div class="wiz-simple-edit-btn resize-draggable-btn ').x(t.get(["isResizableNotAllowed"],!1),t,{block:z},{}).w('" id="resizeDragBtn" tooltip="').f(t.getPath(!1,["simpleEdit","resize"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-resize"></span></div>')}function z(e,t){return e.w(" disp-none ")}e.register("templates/simple_edit/sdk_controls",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,T.__dustBody=!0,P.__dustBody=!0,I.__dustBody=!0,A.__dustBody=!0,R.__dustBody=!0,O.__dustBody=!0,N.__dustBody=!0,D.__dustBody=!0,L.__dustBody=!0,M.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,V.__dustBody=!0,U.__dustBody=!0,z.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/simple_edit/sdk_controls",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t){var i={__root:{wizShareI18N:{mailSuccessMsg:"Your E-mail has been sent",integrationsMsg:"Hippo Video is contextually integrated with the following services. Try now",shareYourVideo:"Share your video",cancel:"Cancel",from:"From",to:"To",enterEmailId:"Enter email id",subject:"Subject",content:"Content",mailSentSuccess:"Mail sent successfully",mailInitiationSuccess:"Campaign initiated successfully. You’ll get an email after the processing is done!",grantAccess:"Grant Access",send:"SEND",sendMore:"SEND MORE",share:"Share",export:"Export",shareUrl:"SHARE URL",embedurl:"EMBED URL",slack:"Slack",social:"SOCIAL",email:"Email",googleClassroom:"Google Classroom",newEmail:"New Email",copyAndShare:"Copy and share the video URL through Email or Helpdesk",hippoLinkShareInfo:"We’d recommend sharing with Hippo Video to experience better results",youTubeIconclickInfo:"Please click on the icon below to export to Youtube",copyLink:"Copy link",copyLinkThumbnail:"Copy Link with thumbnail",copyLinkLinkedIn:"Copy Link for LinkedIn",copyLinkOutlook:"Copy Link for Outlook",copyLinkHubspot:"Copy Link for HubSpot",checkOutVideo:"Checkout this video",copiedText:"Copied !",embedVideo:"Embed the video on your website or intranet by pasting the script",videoSize:"Video size",customSize:"Custom Size",responsive:"Responsive",copyCode:"COPY CODE",copied:"COPIED",shareVideo:"Share the video to your pages on social platforms and spread the video",Facebook:"Facebook",twitter:"Twitter",google:"Google Plus",youtube:"Youtube",gDrive:"Drive",freshDesk:"Freshdesk",zendesk:"Zendesk",fbWorkplace:"FB Wrokplace",tagPlaceHolder:"Tags help you to categorize and helps you in search",postThisVideo:"Post this video",onYourWall:"On your wall",toGroup:"To a group",selectGroups:"Select groups",post:"POST",postAsSolution:"Post as solution",postInForum:"Post in Forum",solutionCategory:"Solution Category",selectFolder:"Select Folder",title:"Title",description:"Description",status:"Status",draft:"Draft",published:"Published",type:"Type",permanant:"Permanant",workAround:"Workaround",discussionCategory:"Discussion Category",selectForum:"Select Forum",titleMandatory:"Title",message:"Message",addArticle:"Add Article",addPost:"Add Post",categories:"Categories",selectSection:"Select Section",editPermission:"Permission to Edit",details:"Details",no:"No",yes:"Yes",solutionTopics:"Solution Topics",featureRequiresPaidVersion:"This feature requires a paid version of Hippo Video",featureRequiresPaidVersionTwo:"Love Hippo Video? Leave a review on Chrome web store and enjoy premium features for a month.",featureRequiresPaidVersionThree:"Thanks for your 5 star rating. Its time to claim your reward.",upgraderOrRefer:"Refer your friends or upgrade your account to use this feature.",importExceeded:"Import limit exceeded. Upgrade your account",testimonialExceeded:"Testimonial limit exceeded. Upgrade your account",claim:"claim",review:"review",reviewEnjoy:"review and enjoy premium features",referAndEarn:"REFER AND EARN",upgrade:"UPGRADE",notNow:"NOT NOW",guestConfirmSucces:"Success",guestConfirmMsg1:"Your video is submitted successfully. You can access your video from the following URL :",guestRecordConfirmMsg1:"Your video has been sent successfully to ",guestConfirmMsg2:"",emailTitle:"Email",emailFieldRequirerd:"Email field is required",confirmYourMail:"Please confirm your account to enable sharing",resendConfirmation:"Resend confirmation",confirmSuccessMsg:"Confirmation mail sent successfully",ok:"OK",successfullySubmitted:"Ticket successfully submitted",assignmentSubmitted:"Your assignment has been successfully submitted",assignmentLink:"Assignment Link",notAllowedToEdit:"You are not allowed to edit this video",oembedWordpress:"Using Wordpress?",oembedHelpPage:"Check out our help page",downloadBandwidthLimit:"You have exhausted your bandwidth limit.",oembed:"Use oEmbed URL",embedSeo:"Push video metadata to the page for all search engines to index.",embedSeotip:"Add a video title, description, and subtitles for better indexing by search engines.",playerLogoUpgradeMsg:"Upgrade your account to Business plan for this feature.",thisFeatureNotAvilable:"This feature is not available in your current plan. Please upgrade to GROWTH for using this feature.",importLimit:"Import limit exceeded.Upgrade your account",addAccount:"Add Account",wentWrong:"Sorry, something went wrong",sendEmail:"Send Mail",sendShare:"Send / Share",sendEmailForSales:"Send this via GMail and track the video and get reports",sendViaGmail:"Send Via GMail",emailEmbed:"Email Embed",campaignExceededPrefix:"Looks like you have already sent ",campaignExceededSuffix:" personalized video emails. Purchase addon to send more.",campaignLimitExceeded:"Looks like you do not have personalization add on. Purchase add on to send personalized videos",new_template_creation_failed:"Sorry, unable to create new template.",successfullyAdded:"Successfully added",refresh:"Refresh",personalizeAndShare:"Generate Tracking URL",personalizeAndShareText:"Add details of your contacts here. Copy and send the unique link to track.",landingPage:"Sales Page",copyLinkShare:"Copy link if you want to share video through your favourite tool by filling in prospect email and name to track. Else, you can choose SEND MAIL",pleaseEnterEmail:"Please enter Email To mail Ids",assignmentTitle:"Please enter a title to the assignment",confirmAccount:"Please confirm your account inorder to proceed.",somethingWrong:"Something went wrong.",somethingWentWrong:"Something went wrong!!",successMsg:"Successfully updated",accountConfirm:"Confirm Account",inOrderToShare:"Please confirm your account inorder to share this video.",changePrivacy:"Change Privacy",privacySettings:"This video cannot be shared due to privacy settings",sharePrivatelyCheckboxText:"Pre-generate your personalized video",failedToPregenerate:"Failed to pre-generate your personalized video",pregenerateUpgradeMsg:"Failed to pre-generate your personalized video. Subscribe to Personalization add on to send awesome personalized videos.",scheduleThisMail:"Schedule this mail",scheduleAt:"Schedule At",sharePrivatelyEmptyMsg:"Fill in the contact details to copy the unique video link",SetPage:"SET DEFAULT PAGE",changePage:"Change page",removePage:"Remove",createLandingPage:"Create new sales page",emptySelectedPageDesc:"Create new sales page so video will be displayed inside the sales page.",link:"Link",shareVideoDesc:"Share your video on social media channels of your choice.",exportVideoDesc:"Export your video into any of your favorite platform.",landingPageDesc:"Choose a video sales page, where you want to embed your video.",hubspot:"Hubspot",hubspotHowTo:"How to perform this action in Hubspot?",imageUrl:"IMAGE URL",linkUrl:"LINK URL",emailTemplate:"Email Template",alignment:"Alignment",center:"Center",left:"Left",right:"Right"},wizPreview:{editVideo:"Edit Video",quickEdit:"Quick Edit",proEdit:"Pro Edit",videoInfo:"Video Info",videoComments:"Comments",videoReports:"Reports",videoShare:"Share",videoExport:"Export",videoPrivacy:"Privacy",videoEmbed:"Embed",videoTimelineActions:"Timeline Actions",videoSubtitles:"Subtitles",videoBranding:"Video Branding",videoThumbnail:"Video Thumbnail",videoTitleEndScreen:"Title Screen And End Screen",videoTitle:"Video Title",addToCategory:"Add to folder",addTags:"Add tags",groups:"Groups",addDescription:"Add description",videoTitlePlaceholder:"Enter video title",videoFoldersPlaceholder:"Click to select folder",videoTagsPlaceholder:"Click to select or add tags",videoDescPlaceholder:"Describe your video",videoGroupsPlaceholder:"Select groups",publishVideo:"Publish Video",marketingTools:"Marketing Tools",videoCampaigns:"Video Campaigns",personalization:"Personalization",personalize:"Personalize",customizeVideo:"Customize Video",videoSettings:"Video Settings",atleastOneCategory:"At least one folder should be selected",emailTo:"To",subject:"Subject",content:"Content",toPlaceholder:"Enter email id",subjectPlaceholder:"Enter the subject of the email",contentPlaceholder:"Type in something...",emailTitle:"Send an Email with the attached video",send:"Send",wistiaExport:"Export to Wistia",vimeoExport:"Export to Vimeo",driveExport:"Export to Drive",shopifyExport:"Export to Shopify",youtubeExport:"Export to Youtube",facebookExport:"Export to Facebook",configureSlackMsg:"Configure account and start posting to Slack",postToSlackMsg:"Post videos to your Slack channel from here",addAccount:"Add Account",ctaEmbedForm:"Embed Custom CRM Form",ctaAnnotations:"Annotations",ctaCustomPoll:"Custom Poll",ctaleadForm:"Lead Generation Form",ctaPlaylist:"Promote Your Playlist",ctaCallToAction:"Call To Action",ctaInVideoMeetingLink:"In Video Meeting Link",allowReactions:"Allow Reactions",makeDefault:"Set as default for all videos in the future",allowComments:"Allow Comments",autoPlayVideo:"Auto Play Video",allowDeliveryDownload:"Allow Download",allowPlaybackSpeed:"Allow Playback Speed",generateSubtitles:"Generate Subtitles",uploadSubtitles:"Upload Subtitles",introTitleScreenAdded:"Custom title screen has been added",edit:"Edit",delete:"Delete",endScreenAdd:"Add an end screen to conclude your videos",addEndScreen:"Add End Screen",titleScreenAdd:"Add a title screen to introduce your videos",addTitleScreen:"Add Title Screen",introEndScreenAdded:"Custom end screen has been added",selectFromFrame:"Select a frame from the video",generateGifPreview:"Generate GIF Preview",thumbnailNote:"Note: Gif thumbnail will be displayed when sent as an email",globalDefaultThumbnail:"Set GIF as default for all new videos",uploadDescription:"Do you have an srt or vtt file for this video? Add them directly to this video to get the subtitles.",generateDescription:"With Hippo Video, you can generate subtitles automatically for the video. (Supports only US English)",upload:"Upload",start:"Start",subtitleGenText:"The subtitle was last generated on ",downloadSubtitles:"Download Subtitles as vtt",downloadSrt:"Download Subtitles as srt",visibility:"Visibility",subtitleInfo:"Subtitle Info",subtitleCredits:"Subtitle Credits",removeSubtitle:"Remove Subtitle",downloadSubtitle:"Download Subtitle",regenerateSubtitle:"Regenerate Subtitle",subtitleRemoveWarning:"You are about to remove subtitles from this video. Are you sure?",subtitleCreditsText:"Your credits depend on the plan you have subscribed to. Check how many credits you have left.",subtitlesDeleted:"Subtitles have been deleted",buyCredits:"Buy Credits",generateSubtitle:"Generate Subtitle",cancel:"Cancel",note:"Note: ",usEnglishNote:"Supports only US English",retryVideo:"Video is being processed. Retry after sometime",subtitleFailed:"Failed to generate Subtitles",subtitleWaiting:"Don't wait up. The process may take some time. Click the box below to get a notification when it is done.",subtitleAddon:"Looks like you are out of credits. Purchase addon for subtitle generations",generateSubtitleDesc:"Click on Generate Subtitle button to start adding Subtitle. It will take few minutes to finish adding Subtitles to your video.",subtitlesNotification:"You will be notified once subtitles are generated",subtitlesStatusUpdate:"Subtitles status has been updated successfully",subtitlesStatusUpdateError:"Error updating subtitles status",noAudioAlert:"*This video has no audio to generate subtitles!",maxSizeSubtitles:"Please select a file less than 1 MB of size",allowedSubtitles:"Subtitle files of formats srt and vtt are only supported",subtitlesFailedUpload:"Failed to upload Subtitles",noPermissionToGenerateSubtitle:"You dont have permission to generate subtitles.",noPermissionToUploadSubtitle:"You dont have permission to upload subtitles.",checkStatus:"Check Status",processingMsg:"Your video is being processed. Please try after some time.",minutesRemaining:"Minutes Remaining",recordedOn:"Recorded on",markAsResolved:"Mark as resolved",reopenTicket:"Reopen Ticket",ticketStatusChange:"Are you sure want to change this video status?",guestRecordWithForm:"Your video has been successfully created. Add your details below and click Submit Video Ticket.",guestRecordWithoutForm:"Your video has been successfully created. You can copy the video URL below to share it.",videoNotesPlaceholder:"Add a note",notes:"Notes",email:"Email",name:"Name",submitVideoTicket:"Submit Video Ticket",retake:"Retake",usingWordpress:"Using Wordpress?",checkoutHelpPage:"Check out our Help page",cancelEditing:"Cancel Editing",reportsEmptyStateNoViews:"This video has no views yet. Share this video to get more views.",reportsEmptyStateNoPlays:" viewer has viewed the video. They haven't played the video.",share:"Share",copyLink:"Copy video link",mailSuccess:"Mail triggered successfully",defaultFrame:"Default frame",chooseFrame:"Choose Frame",addTextOrPersonalize:"Add Text / Personalize",pickFromVideo:"Selected frame from video",uploadedFrame:"Uploaded frame",uploadAFrame:"Upload a new frame",uploadFrame:"Upload Frame",thumbnailDescription:"Use default image/GIF/select a frame from the video, or upload your own image as video thumbnail",introOutroSuccess:"Title / End Card updated successfully",subtitleBuyCredits:"Please contact support@hippovideo.io to buy more credits for generating subtitles.",videoCampaign:"Video Campaign",personalizeVideo:"PERSONALIZE VIDEO",personalizeThumbnail:"PERSONALIZE THUMBNAIL",emailCampaignLink:"EMAIL CAMPAIGN LINK",sendVideoEmail:"SEND VIDEO EMAIL",videoCampaignReports:"VIDEO CAMPAIGN REPORTS",notifyMeSuccessMsg:"Once your video has been processed, you will receive an email with a link to your video",old_PPR_banner_msg:"Hey User! We gave a refreshing look for our 'Preview' page. Take a look! Note: The current page will be available only until 31st Dec.",yourVideoBeingProcessed:"Hang on! You are almost there, your video is processing.",notifyMe:"NOTIFY ME",uploading:"Uploading",preProcessing:"Pre processing",processing:"Processing",processingErrorMsg:"Oops! Sorry, your video could not be processed due to some error.",processingSuccessMsg:"Your video has been successfully processed",processed:"processed",preProcessed:"pre processed",uploaded:"uploaded",videoUsage:"Track video usage",inlineEmbed:"Inline Embed",inlineEmbedDesc:"Embed this code on a webpage to play the video inline.",popOverEmbed:"Popover Embed",popOverEmbedDesc:"Embed this code on a webpage to play the video in a pop-up.",videoRetry:"Video is being processed. Retry after sometime",thumbnail:"Thumbnail",text:"Text",emailEmbed:"Email Embed",emailEmbedDesc:"Embed this code in your email HTML editor to generate the video thumbnail.",hubspotEmbed:"HubSpot Embed",hubspotEmbedDesc:"Embed this code on your HubSpot sales page to track your viewers and show them a personalized video.",copyCode:"Copy Code",waitForDownloadMsg:"Hold on while we prepare your video to download.",ok:"OK",clickNotifymeMsg:'Click on "Notify Me" to receive a notification email after the video is processed',close:"CLOSE",gifThumbnail:"GIF Preview",playerTheme:"Player Theme",defaultTheme:"Default",playerLogo:"Player Logo",change:"Change",addLogo:"Add logo",addLinkToPlayerLogoText:"Add link to player logo",save:"Save",reset:"Reset",restoreDefault:"Restore Default",restoreDefaultToolTip:"Restore to defaults settings",Facebook:"Facebook",googleClassroom:"Google Classroom",twitter:"Twitter",google:"Google Plus",slack:"Slack",firstName:"First Name",youtube:"Youtube",gDrive:"Drive",yes:"Yes",no:"No",enterUrl:"Enter URL",clone:"Clone",createGif:"Create GIF",download:"Download",contactSupport:"Something went wrong! Please contact support@hippovideo.io",freshDesk:"Freshdesk",zendesk:"Zendesk",fbWorkplace:"FB Wrokplace",gmailAddonMessage1:"Please ",gmailAddonMessage2:"Install Hippovideo Chrome Extension ",gmailAddonMessage3:'to add this video to the Gmail chain. For now, please go back to Gmail add-on and select the video from "My Library"',addToProduct:"Add to product",guestSubmit:"Submit",guestVideoProcessing:"Your video is being processed please wait...",guestSubmitVideo:"Submit Video",uploadInProgress:"Upload in progress. Please wait",thumbnailProcessing:"Video is in processing state. Please try again later",thumbnailGenFailed:"Thumbnail generation failed. Please contact support@hippovideo.io",thumbnailSize:"Thumbnail Size",changeBackground:"Change Background",virtualBgNote:"Note : Here is a preview of how your video will look with the selected background",virtualBgProgressNote:"Once the video is processed, your video background will change as per your requirements",apply:"Apply",yourVideoReady:"Updating the video background",VirtualBgPopDesc:"Your background is being changed",none:"None",addBackground:"Add Background",docTitlePlaceholder:"Enter document title",docTitle:"Document Name",imageTitle:"Image Name",imageTitlePlaceholder:"Enter image title",replaceVideo:"Replace Video",replaceVideoProgress:"Replacing Video..",replaceSuccessMsg:"Successfully replaced video!",virtualBgInfoNote:"The virtual BG feature is now available in beta to help you change the background of the recorded video. Post beta, this feature will be available only in the Sales Growth and Enterprise plan",subdomainChangeWarningTitle:"Subdomain Edit Alert",subdomainChangeWarning:"Changing your subdomain can affect your old videos and pages. The videos and pages you've shared before won't work once you take this action."},hippoPrivacy:{privacySettings:"PRIVACY SETTINGS",sharingMedium:"SHARING MEDIUM",privacyText:"Privacy settings",privacyHeading:"Select who can see this video.",internal:"Anyone in the org",anyOneWithApiKey:"Any one with API key",setPassword:"Set Password",setExpiry:"Set Expiry",setInterval:"Set Video to Internal",deleteVideo:"Delete Video",setExpiryForKey:"Set Expiry for key",apply:"APPLY",cancel:"CANCEL",internalToAccount:"Internal to the account",onlyYouCanSee:"Only you can see",youCannotShare:"You cannot share as the video is private",youCanShare:"You can share, embed, post to social networks and your help desks",onlyMe:"Only me",anyOneWithLink:"Anyone with the link",canSeeVideo:" can see the video.",withPassword:" and with password",videoExpireOn:" Video will expire on ",somethingWrong:"Something went wrong.",contactSupport:"Something went wrong! Please contact support@hippovideo.io"},guestForm:{videoTicketReplyMsg:"Please click on 'Submit Video Ticket' to add this video as reply to ",videoTicketReplyIntercomMsg:"Please click on 'Submit' to add this video to Intercom conversation",submit:"Submit"},wizCommon:{recordingScreen:"Hippo Video is recording your screen",videoGuestRecordFinish:"Your video URL is copied to clipboard. You can share now",guestRecordFinish:"Your video URL is copied to clipboard. You can share now",thumbnailGuestRecordFinish:"Your video URL is copied with thumbnail to clipboard. You can share now",finsishRecording:"Finish Recording",note:"Note",recordingModeMsg:" - In the recording mode, the screen capturing process will alone be visible. The video capturing from the webcam is done simultaneously in the background and will be available in the final recorded video. Webcam recording will not be visible in recording mode. So do not worry",addNewTestimonial:"ADD NEW TESTIMONIAL",viewVideos:"VIEW VIDEOS",thumbnailCopySuccess:"Image url copied successfully",videoLinkCopySuccess:"Link url copied successfully"},wizRecentVideos:{allVideos:"ALL VIDEOS",videoProcessing:"Video is processing",viewDetails:"View Details",preview:"Preview",edit:"Edit",shares:"Shares",views:"Views",numVideos:"Videos",numUsers:"Users",viewDetail:"VIEW DETAIL",export:"Export"},integAddLink:{startSentence:"Add to ",docs:"G-Docs",classroom:"G-Classroom",d2l:"D2L",gmail:"Gmail",slack:"Slack",slackShare:"Share video on Slack",shopify:"Shopify"},wizCategory:{videoCategories:"Videos & Documents ",videos:"Video Library",createFolder:"CREATE FOLDER",createNewCategory:"Create New Folder",successfullyAddedCategory:"Folder added successfully",successfullyUpdatedCategory:"Folder updated successfully",successfullyAddedAssignment:"Successfully added assignment",successfullyUpdatedAssignment:"Successfully updated assignment",editCategory:"Edit Folder",associateToCategory:"Associate To Category",associateToFolder:"Associate to folder",systemCategory:"System Category",errorUpdatingCategory:"Error occurred while updating folder",successMsgDefaultCategory:"Successfully marked as Default Folder",errorMsgDefaultCategory:"Some Error While trying to mark as Default Folder",resetDefaultFolderMsg:" is no longer the default folder.",notPermitToEditCategory:"You don't have permission to edit this folder",enterCategoryName:"Enter Folder Name",newFolder:"New folder",searchUsersNdGrp:"Search users and groups here",shareWithEveryOne:"Share with everyone in the organization",sharedWithCol:"Shared with",permissionCol:"Permission",categoryName:"Folder Name",share_org_evry:"Everyone in the organisation",owner:"Owner",remove_access:"Remove Access",notAllowed:"Default folder name cannot be edited",catListSearchEmpty:"No folders found",noofChannels:"Channels",noofVideos:"Assets",noofUsers:"Shared Users",viewDetail:"VIEW DETAIL",defaultTag:"DEFAULT",export:"Export",download:"Download",editcat:"Edit Folder",createdBy:"Created by",defaultCategory:"This is a default folder",allVideos:"All Assets",howToUseCategory:"How to use Hippo Video",virtualBgCategory:"Virtual Backgrounds",everyOneInOrganization:"Everyone in the organization",onlyMe:"Only Me",toSpecificUser:"To specific user",viewAll:"View All",allVideoText:"Assets of all folders and users",visibility:"Visibility",educationVisibility:"Assign to",users:"Users",users1:"Users",groups:"Groups",selectUser:"Select users one",selectGroup:"Select groups",folderLink:"Folder Link",copyLink:"Copy Link",copyLinkHubspot:"Copy Link for HubSpot",copyLinkThumbnail:"Copy Link with thumbnail",copyLinkOutlook:"Copy Link for Outlook",copyLinkLinkedIn:"Copy Link for LinkedIn",copied:"Copied !",done:"DONE",ok:"OK",cancel:"Cancel",folderDeleteMsg:"All the videos in this folder will be deleted permanently.",folderDeleteQuestion:"Are you sure you want to delete this folder?",folderDeletePrivate:"Note: On deletion ,The Videos in this folder will no longer be accessible or available to share.",folderDeleteShared:"Note: On deletion,The Videos in this folder will be no longer be accessible by the users the folder is shared with.",assignmentDeleteMsg:"Deleting this assignment will delete all the submitted videos in the folder. New videos can't be submitted either.",delete:"Delete",deleteCategory:"Delete Folder",defaultFolderDeleteMsg:"The default folder cannot be deleted.",defaultFolderDeleteNote:"Note: To delete this folder, set another folder as default folder and then try deleting this.",setDefaultCategory:"Set as Default",pinFolder:"Pin Folder",unpinFolder:"Unpin Folder",resetDefaultCategory:"Reset Default",createNewTestimonial:"CAMPAIGN",testimonialName:"Campaign name",enterTestimonialName:"Enter Campaign Name",description:"Description",edittesttimonial:"Edit Campaign",testimonialDeleteMsg:"All the videos in this campaign will be deleted permanently.",deleteTestimonial:"Delete Campaign",editTestimonial:"Edit Campaign",updateSettingsSuccess:"Settings updated successfully",thumbnail:"Thumbnail",addThumbnail:"Add thumbnail",removeThumbnail:"Remove Thumbnail",changeThumbnail:"Change thumbnail",noVideos:"No videos found.",loadMore:"Load more",saveText:"Save",nextText:"Next",more:"More",recommendedText:"Recommended size (500x500)",imageFormats:"Supported formats: JPG,JPEG,PNG,GIF,BMP",documentInfo:"Document Info",imageInfo:"Image Info",permissions:"Permission",viewPermission:"View",editPermission:"Edit",defaultFolderNotDeleteMsg:"Note: To delete this folder, set another folder as default folder and then try deleting this."},wizIntegrations:{integConnectSuccess:"Hippo Video is enabled for all your agents",fdConnectError:"Error integrating with Freshdesk",fsConnectError:"Error integrating with Freshservice",zenConnectError:"Error integrating with Zendesk",fbWorkplaceConnectError:"Error integrating with Facebook Workplace"},youtubeForm:{title:"Video Title",hvLinkShare:"Share with Hippo Video link",description:"Description",selectChannel:"Channel",privacy:"Privacy",exportLimitUsed:"Sorry, you have exhausted the maximum number of times you can export to youtube. ",subscriptionPageLink:"Upgrade",exportVideoToYoutube:"Export Video to Youtube",export:"EXPORT",cancel:"CANCEL",public:"Public",private:"Private",unListed:"Unlisted",surgeTitle:"Sorry for the Turbulence",surgeMsg:"Due to sudden increase in usage, Youtube is limiting uploads. We've limited upload feature to higher paid plans for now. An alternative to this can be downloading the video and then uploading it on Youtube / GDrive."},gdriveForm:{selectAccount:"Account",title:"Video Title",exportVideoToGrive:"Export Video to Gdrive",export:"EXPORT",cancel:"CANCEL"},vimeoForm:{title:"Video Title",exportVideoToVimeo:"Export Video to Vimeo",description:"Description",category:"Select Category",privacy:"Privacy",chooseCategory:"Choose category",chooseGroups:"Choose Groups",subCategory:"Select Subcategory",selectChannel:"Select Channel",export:"EXPORT",cancel:"CANCEL",show:"Show",hide:"Hide",passwordLabel:"Password",maxSelection:"Only 2 categories can be selected",privacyPublic:"Anyone can see this video",privacyPrivate:"Only I can see this video",privacyPassword:"Only people with a password can see this video",privacyPrivateLink:"Only people with the private link",privacyPrivateLinkDisabled:"Only people with the private link (Vimeo PLUS+PRO+Business users only)",privacyNobody:"Hide this video from Vimeo",privacyNobodyDisabled:"Hide this video from Vimeo (Vimeo PLUS+PRO+Business users only)"},wistiaForm:{title:"Video Title",description:"Description",selectAccount:"Account",selectProject:"Project",exportVideoToWistia:"Export Video to Wisita",noAccountTitle:"Configure an account and start uploading to Wistia",export:"EXPORT",cancel:"CANCEL",addAccount:"Add Account"},facebookForm:{title:"Video Title",description:"Description",selectPage:"Facebook Page",exportVideoToFacebook:"Export Video to Facebook",noAccountTitle:"Configure Facebook business page and start uploading",export:"EXPORT",cancel:"CANCEL",addStore:"Add Stores",configurePage:"Configure"},shopifyForm:{title:"Video Title",description:"Description",exportVideoToShopify:"Export Video to Shopify",addVideoToShopify:"Add Video to Shopify",noAccountTitle:"Configure Shopify store and start uploading",export:"EXPORT",stores:"STORES",store:"STORE",cancel:"CANCEL",configurePage:"Configure",storeName:"Enter Store Name",storeTitle:"Store Name",addStore:"Add Store",chooseProduct:"Choose Product Name",shopifyAccountManagement:"Shopify Account Management",shopifyIntegration:"Shopify Integration",addToProduct:"Add to product",noProductsFound:"No products found",grantAccess:"Grant Access"},shareForReview:{shareVideoButton:"SHARE VIDEO FOR REVIEW",title:"Get your video reviewed",linkTitle:"Share via link",copyLink:"Copy link",addPeople:"Add People",people:"people",sharedWith:"Shared with",addMsg:"Add a note",sendReview:"SEND OUT FOR REVIEW",reviewSentSuccess:"Your video has successfully been shared for review",messagePlaceholder:"Enter the message you wish to convey"},pardotForm:{pardotIntegration:"Pardot Integration",header:"Please enter the salesforce Business Unit ID",connect:"Connect",businessUnitId:"Business Unit ID",pleaseFill:"Please fill the Business Unit ID",email:"Email",password:"Password",userKey:"User key",submit:"SUBMIT",fillAllFields:"Please fill all fields",cancel:"CANCEL",integrationFailed:"Failed to integrate Pardot",integrationSuccess:"Page will reload now. After reload, check the Pardot integration to check integration status.",pardotSuccessMsg:"Successfully integrated to pardot."},customDomain:{enableCustomDomain:"Enable Custom Domain",name:"Domain name",namePH:"Domain name",notesTitle:"Important notes",pointNumber1:"A CNAME entry should be created and mapped to",Url:".hippovideo.io",pointNumber2:"Only http format is supported for custom domain URLs. To avoid the browser from displaying an SSL Certificate warning the user needs to contact Hippo Video Support team (support@hippovideo.io) to get an SSL Certificate",example:"http://",customDomain:"Custom Domain",save:"Save",cancel:"Cancel"},emailTemplates:{header:"List of all email templates for various email types",sNo:"S. No",emailName:"Email Name",emailType:"Email Type",emailSubject:"Email Subject",createdOn:"Created On",createTemplate:"Create New Template",createNewTemplate:"Create New Email Template",editTemplate:"Edit Email Template",search:"Search",save:"Save",cancel:"Cancel",emailTemplateEmpty:"No email templates found",createNewCampaignTemplate:"CREATE NEW TEMPLATE",insertMergeField:"Insert Merge Field"},createNewTemplate:{nameTemplate:"Name your template",namePH:"Name",typeTemplate:"Email template type",subject:"Email subject",subjectPH:"Subject",content:"Content",save:"Save",cancel:"cancel"},Integration:{integrated:"integrated",comingSoon:"COMING SOON",integrate:"integrate",integrationMsg:"Hold on. We are working on this integration",emptyIntegration:"No accounts integrated... ",learnMore:"Learn More",new:"New",install:"Install",connect:"Connect",integrationMsg1:"Is your favorite integration missing?",integrationMsg2:"We shall get it for you.",letUsKnow:"Let us know your requirements",whichOne:"Which one?",enterTheMissingInteg:"Enter the missing integration",shareYourUseCase:"Share your Usecase with us",contactUsRequirmentsValidation:"Please enter your requirements.",showDetails:"Show details",slack:"Slack",zendesk:"Zendesk",freshdesk:"Freshdesk",hideDetails:"Hide details",edit:"EDIT",sync:"SYNC",syncing:"SYNCING...",syncSuccess:"Sync Success",syncError:"Sync Error",manage:"Manage",configure:"Configure",details:"Details",accountAdditionSuccess:"Successfully added account",accountDisconnectSuccess:"Successfully disconnected account",slackTokenRevokeSuccess:"Successfully removed account",accountAdditionError:"Error in adding account. Contact support.",accountDisconnectError:"Error in disconnecting account. Contact support.",slackTokenRevokeError:"Error in removing account. Contact support.",configurationSaveSuccess:"Successfully saved configuration.",configurationSaveError:"Error in saving configuration.",marketing:"MARKETING",support:"SUPPORT",sales:"SALES",teamCommunication:"TEAM COMMUNICATION",campaigns:"CAMPAIGNS",submit:"Submit",integrationRequestSuccess:"Got it! Our team will reach out to you soon.",shopifyRemoved:"Shopify Removed",integEmptyMsg:"No Integrations found",search:"Search",enabled:"Enabled",education:"EDUCATION",clickHere:"Click here",instructionParaTwo:" to learn how to embed your video.",integrationAlreadyExist:"Luckily for you, we already have this integration.",back:"Back",toExplainMore:"Would you like to learn more?",bookDemo:"Book a Demo",bookDemoDesc:"Check out how our platform integrates with your favorite tool",reset:"Reset"},salesforcePopup:{processCompletion:"Please do the below step to complete installation in Production environment of Salesforce.",integSuccessOneLiner:"Your account is successfully integrated with Salesforce",nameLabel:"Full Name",orgLabel:"Organization Name",okay:"Okay",installParaOne:"Hippo Video now integrates with Salesforce Service, Sales cloud - Cases lightening UI. Now create and share videos directly from your Salesforce account.",installParaTwoPartOne:"Click ",installParaTwoPartTwo:"here",installParaTwoPartThree:" to install the Hippo Video widget to your Salesforce account. Follow ",installParaTwoPartFour:"this",installParaTwoPartFive:" help document for detailed instructions on how to install Hippo Video in your Salesforce account.",installParaTwoPartSix:" to provide access to Hippo Video application in Salesforce. This is only for",sfProduction:" production",sfInstance:" instance.",sfSandbox:" Sandbox",sfSandboxClick:" account, click ",installParaTwoPartSeven:"Note: Incase you are testing the package in",installParaTwoPartEight:" to provide access to Hippo Video application in Salesforce."},intercomPopup:{integSuccessOneLiner:"Your account is successfully integrated with Intercom",nameLabel:"Full Name",teamNameLabel:"Team Name",okay:"Okay",installHeading:"Add a visual touch to your live chat inside Intercom. Videos turn your support conversations much easier and lively.",installSubHeading:"Follow the steps below to integrate Hippo Video with Intercom:",stepOne:"Login to your Intercom account.",stepTwo:"Then, search for 'Hippo Video' app in the app store and click on the Install button to start the installation.",stepThree:"To continue, grant permission for Hippo Video to proceed the installation process.",stepFour:"Once Hippo Video is installed successfully, you can enter into a customer conversation and click 'Add Messenger App' icon to see the Hippo Video app."},mailchimpPopup:{disconnectAccountText:"By disconnecting MailChimp integration, you will not be able to add new leads into your existing MailChimp email list further.",continue:"Continue",cancel:"Cancel",save:"Save",disconnectAccLink:"Disconnect Account",doiHelpLink:"What is Double Opt-In?",doi:"Double Opt-In",email:"Email",accountName:"Account Name"},slackPopup:{shareTitle:"Post your video to Slack",workspaces:"Workspaces",channels:"Channels",addAnotherAccount:"Add another workspace",selectChannel:"Select a channel",comment:"Comment",hippoTitle:"Hippo Video",commentPlaceholder:"Add comment here ...",cancel:"Cancel",post:"Post",addAccount:"Add Account",noAccountTitle:"Configure account to start posting to Slack",removeAccount:"Remove Account",manage:"Manage",slackPostSuccess:"Successfully posted to Slack",slackPostError:"Error in posting to Slack. Contact support."},integrationModal:{freshdeskTitle:"Freshdesk Integration",freshserviceTitle:"Freshservice Integration",zendeskTitle:"Zendesk Integration",zohodeskTitle:"Zohodesk Integration",fbWorkplaceTitle:"Facebook Workplace Integration",zendeskEmbedWidgetTitle:"Zendesk Embed Widget",freshdeskEmbedWidgetTitle:"Freshdesk Embed Widget",genericEmbedWidgetTitle:"Generic Embed Widget",slackIntegrationTitle:"Slack Account Management",hubspotIntegrationTitle:"HubSpot Account Management",salesloftIntegrationTitle:"SalesLoft Account Managment",zoomIntegrationTitle:"Zoom Account Management",pardotIntegrationTitle:"Pardot Account Management",salesforceTitle:"Salesforce Integration",intercomTitle:"Intercom Integration",webhookTitle:"Webhook Integration",zapierTitle:"Zapier Integration",mailchimpTitle:"Mailchimp Integration",nextText:"NEXT",cancelText:"CANCEL",copyApiKeyText:"< Go Back",syncText:"SYNC",manageUsers:"Manage Users",closeText:"Close",zoomRemoveAccount:"Zoom account removed successfully",zoomRemoveAccountFailed:"Remove zoom account failed. Please contact support@hippovideo.io",campaignInstructionTitle:"Instructions to embed video"},zohodeskModel:{okay:"Okay",domainText:"Domain",fullName:"Full Name",emailText:"Email"},zapierModel:{header:"Connect your favorite apps to Hippo Video using Zapier",click:"Click",here:" here",stepsHeader:" to connect your apps and automate workflows.",copyApiKey:"Copy API Key",Copied:"Copied"},freshdeskModal:{connect:"CONNECT",sync:"SYNC",appLink:"Hippo Video App",headerStart:"Once you are done installing ",headerEnd:" from Freshdesk Marketplace, you just need to provide your Freshdesk API Key to get started.",stepsHeader:"To get Freshdesk API Key, all you have to do is",stepOne:"Go to Profile settings inside your Freshdesk account.",stepTwo:"Copy the active API key.",okay:"Okay",videoLink:"Watch Video",forEmail:"for email id - ",copyApi:"Copy Api key",copied:"Copied",connectStep:"Sync allows to post video as solutions to Freshdesk from Hippo Video and also syncs users",keyHelp:"Go to your Freshdesk profile settings, copy and paste the Freshdesk API key",domainHelp:"Provide the Freshdesk domain name of your business",emailHelp:"Email registered with Freshdesk",adminEmailPlaceholder:"Enter your Freshdesk Admin Email",domainPlaceholder:"domain.freshdesk.com (Your Freshdesk domain name)",apiKeyPlaceholder:"Paste your Freshdesk Admin API Key",integrationSuccessTitle:"Integration Successful",integrationSuccessStep:"You can now create videos as solutions, ask customers to create video tickets and more. You can now manage users synced from Freshdesk",updateSuccessTitle:"Updated Successfully",ticketCreate:"Create Freshdesk ticket on video ticket submission",manageUsers:"Manage Users",close:"Close"},freshserviceModal:{connect:"CONNECT",sync:"SYNC",appLink:"Hippo Video App",headerStart:"Once you are done installing ",headerEnd:" from Freshservice Marketplace, you just need to provide your Freshservice API Key to get started.",stepsHeader:"To get Freshservice API Key, all you have to do is",stepOne:"Go to Profile settings inside your Freshdesk account.",stepTwo:"Copy the active API key.",okay:"Okay",videoLink:"Watch Video",forEmail:"for email id - ",copyApi:"Copy Api key",copied:"Copied",connectStep:"Sync allows to post video as solutions to Freshdesk from Hippo Video and also syncs users",keyHelp:"Go to your Freshservice profile settings, copy and paste the Freshservice API key",domainHelp:"Provide the Freshservice domain name of your business",emailHelp:"Email registered with Freshservice",adminEmailPlaceholder:"Enter your Freshservice Admin Email",domainPlaceholder:"domain.freshservice.com (Your Freshservice domain name)",apiKeyPlaceholder:"Paste your Freshservice Admin API Key",integrationSuccessTitle:"Integration Successful",integrationSuccessStep:"You can now create videos as solutions, ask customers to create video tickets and more. You can now manage users synced from Freshservice",updateSuccessTitle:"Updated Successfully",ticketCreate:"Create Freshservice ticket on video ticket submission",manageUsers:"Manage Users",close:"Close"},zendeskModal:{connect:"CONNECT",sync:"SYNC",appLink:"Hippo Video App",headerStart:"Once you are done installing ",headerEnd:" from Zendesk Marketplace, you just need to provide your Zendesk API Token to get started.",stepsHeader:"To get Zendesk API Token, all you have to do is",stepOne:"Go to Settings tab inside your Zendesk account.",stepTwo:"Go to API -> Settings",stepThree:"Copy the active API token key.",footerNote:"If you don't have a token already you can generate a new one. Please ensure that you have the Admin privilege",okay:"Okay",videoLink:"Watch Video",forEmail:"for email id - ",copyApi:"Copy Api key",copied:"Copied",connectStep:"Sync allows to post video as solutions to Zendesk from Hippo Video and also syncs users",keyHelp:"Zendesk Access Token",domainHelp:"Zendesk domain name of your business",emailHelp:"Email registered with Zendesk",adminEmailPlaceholder:"Enter your Zendesk Admin Email",domainPlaceholder:"domain.zendesk.com (Your Zendesk domain name)",apiTokenPlaceholder:"Paste your Zendesk API Token",integrationSuccessTitle:"Integration Successful",integrationSuccessStep:"You can now create videos as solutions, ask customers to create video tickets and more. You can now manage users synced from Zendesk",updateSuccessTitle:"Updated Successfully",ticketCreate:"Create Zendesk ticket on video ticket submission",manageUsers:"Manage Users",close:"Close"},zendeskWidgetModal:{customize:"CUSTOMIZE",code:"CODE",customFieldSteps1:"Create a new custom ticket field of type Text",customFieldSteps2:"Field title must be 'Recorded Video URL' ",customFieldSteps3:"Visible and the Editable checkbox must be checked",customFieldSteps4:"Finally after adding, if you click edit on the newly created field, you will find the custom field ID of that field",customFieldSteps5:"Enter that below",copyApi:"Copy Code",copied:"Copied",codeStep1:'Goto "Customize Design" in Zendesk knowledge base',codeStep2:'Click "Edit Theme" and select "New Request page"',codeStep3:"Copy paste the below code at the end of the page.",customIdHelp:"Find Custom field ID by clicking on edit next to the newly created field in Ticket Fields page."},freshdeskWidgetModal:{customize:"CUSTOM FIELD",code:"CODE",customFieldSteps1:"Go to 'Admin' - 'General Settings' -> Ticket Fields'",customFieldSteps2:"Create a new Single Line Text Field",customFieldSteps3:"Field label for agents must be 'Recorded Video URL' ",customFieldSteps4:"'Display to customer' and 'Customer can edit' checkbox must be checked ",customFieldSteps5:'Refer to this <a href="https://watch.hippovideo.io/video/play/pq02En_Q25DM6fqhYVUV5g==" target="_blank" rel="nofollow">video.</a>',copyApi:"Copy Code",copied:"Copied",codeStep1:'Go to "Admin" -> "Portals" and click on the "Customize portal" button',codeStep2:'On the page, click "Layout & Pages" tab and click the option "Portal pages"',codeStep3:'On the Portal pages, select the "New ticket" menu item on the left under the "Tickets" category which will open an editor on the right',codeStep4:'Copy the below code and paste it at the end of the "New ticket" editor'},webhookWidgetModal:{url:"URL",urlPlaceHolder:"Where should we send the data?",secretKey:"Secret Key",secretKeyPlaceHolder:"Verify incoming messages with a secret key",events:"Events",viewing:"Viewing Session",secretKeyRequired:"Secret key is required",eventsRequired:"Select minimum one event to be notified",webhookRequired:"Webhook endpoint is required",webhookSuccessMsg:"Webhook details updated successfully",connectStep:"Use webhooks to hook into events on Hippo Video"},genericWidgetModal:{customize:"GETTING STARTED",code:"CODE",customFieldSteps:"Hippo Video record button can be placed on any of your web pages. All the videos recorded through this button will be available in your library.",copyApi:"Copy Code",copied:"Copied",codeStep:"Copy the script tag and paste it inside head(before all other scrips). Copy the HTML code and paste it wherever you want the record button. All the recording events will be available through the javascriptAPI"},fbWorkplaceModal:{connect:"CONNECT",sync:"SYNC",forEmail:"for email id - ",copyApi:"Copy Api key",keyHelp:"",domainHelp:"",integrationSuccessTitle:"Integration Successful",manageUsers:"Manage Users",close:"Close"},myProfileTab:{clickHereToInsertPic:"Click Here to Insert Profile Picture",clickHereToChangeProfPic:"Click Here to Change Profile Picture"},validationMessages:{email:"Please enter email address.",title:"Please enter title.",description:"Please enter notes.",catName:"Please enter folder name.",phoneNumber:"Please enter phone number.",name:"Please enter your name.",testimonialName:"Please enter campaign name.",firstName:"Please enter your first name.",lastName:"Please enter your last name.",invalidAadhaarNumber:"Invalid aadhaar number.",thisFieldIsMandatory:"This field is mandatory."},simpleEdit:{lockAspectRatioResize:"Lock AspectRatio on Resize",moveWebcam:"Fixed webcam position during crop",apply:"Apply",reset:"Reset",typeYourTextHere:"Type your text here",addText:"Add Text",delete:"DELETE",save:"SAVE",cancel:"CANCEL",color:"Color",shadow:"Shadow",opacity:"Opacity",default:"Default",yellow:"Yellow",orange:"Orange",green:"Green",violet:"Violet",blue:"Blue",dark:"Dark",white:"White",strength:"Strength",addNewBlur:"Add New Blur",blurDescription:"Apply blur to a specific region anywhere in the video.",mfInfoTooltip:"Use merge fields to personalize your video",trimStartTime:"Trim start time",trimEndTime:"Trim end time",trim:"Trim",crop:"Crop",text:"Text",emoji:"Emoji",callout:"Callout",blur:"Blur",resize:"Resize",left:"Left",center:"Center",right:"Right",mergeFields:"Merge Fields",enterTextHere:"Enter text here",addImage:"Add Image",addPersonalizedImage:"Add Personalized Image",addImageInfo:"Add custom images to personalize your video. Examples include images of the prospect, the logo of a company. Note: Enter the URL of the image as a column in the sheet.",image:"Image",errorMessage:"Something went wrong! Please contact support@hippovideo.io",prepareToImport:"Preparing files to import...",new:"BETA",addWebsiteImage:"Add Website Snapshot",addWebsiteImageInfo:"Personalize your video by adding your prospect’s website snapshot. Note: The website URL should be a column in the sheet.",learnMore:" Learn More"},proEdit:{webcamSource:"Webcam Source",audioSource:"Audio Source",webcamPosition:"Webcam Position",webcamSize:"Webcam Size",recordAudioWithWebcam:"Record Audio while recording Webcam video",createNewTrack:"Create new track for every narration",large:"Large",medium:"Medium",small:"Small",bottomLeft:"Bottom Left",bottomRight:"Bottom Right",topLeft:"Top Left",topRight:"Top Right",previewSaveVideo:"If you've completed editing and happy with the preview, save your video.",saveVideo:"SAVE VIDEO",close:"Close",videoPreview:"Video Preview",on:"ON",off:"OFF",addText:"Add Text",add:"Add",apply:"Apply",cancelCaps:"CANCEL",addSmiley:"Add Smiley",addCallout:"Add Callout",webcamNarration:"Webcam Narration",audioNarration:"Audio Narration",textToSpeech:"Text to Speech",browserNotSupported:"Your browser is not supported",finish:"Finish",cancelCamelCase:"Cancel",cancelWarningMsg:"Oops! You're about to quit editing.\n Are you sure you want to cancel?",yes:"Yes",no:"no",voice:"Voice",speed:"Speed",pitch:"Pitch",cancel:"cancel",speechWait:"Generating speech. Please Wait.",preview:" Preview",stop:" Stop ",importWarningMessage:"Import already in progress",generatingSpeech:"Generating Speech."},wizCreate:{createVideoTitle:"Create Video from Images",save:"Save",cancel:"Cancel",seconds:"seconds",second:"second",done:"Done",imageDuration:"Image Duration",fadeInOut:"Fade in/out",selectImages:"Select Images",selectedImages:"Selected Images",imageSettings:"Image Settings",selectAudio:"Select Audio",trimAudio:"Trim Audio",preview:"Preview",on:"ON",off:"OFF",audioFileName:"Audio File name",settingsDescription:"You can describe the settings for your images to be applied in the video. These settings will be applied for every selected image in the video.",audionarrationDescription:"Narrate the image story in your own voice.",audioFileDescription:"Add an audio track to go with your images. You can add it from your system or select one from our audio library.",selectImageDesc:"Add images and rearrange them in sequence",bannerDescription:"Brewing the right video needs the perfect mix of images, video footages and audio tracks. Create those awesome videos by adding still images into your video and audio tracks with Hippo Video.",savePopupText:"Do you want to save the video or continue editing your video?",viewVideo:"Save",editVideo:"Save & Edit",cancelPopupText:"Your video is not yet saved. Would you still like to cancel?",AudioVoiceOver:"Record Voiceover"},wizImport:{importImagesDesc:"You can import images from your system, or you can get images from popular online stock image libraries.",addImages:"Add Images",uploadAudioFile:"Add Audio File",orText:"OR",note:"NOTE",importNote:"You can select a maximum of 25 images of size less than 5 MB each.",dragAndDropHere:"Drag & Drop your files here",dragAndDrop:"Drag & Drop Files",importImages:"Import Images",importAudio:"Import Audio",importVideo:"Import Video",importMedia:"Import Media",importDocument:"Import Document/Image",importDocumentOnly:"Import Document",recentlyUsed:"Recently Used",importFromLocal:"Local",importFromVideoLibrary:"Recorded Videos",importFromLibrary:"Audio Library",searchFreeStockImage:"Search for free stock images",searchImages:"Search Images",searchFromWeb:"Free Stock Images",importTestimonial:"Testimonial Videos",createVideo:"Create Video",importFromDrive:"G-Drive",importImageFromLib:"Library Images",dragdropYourFiles:"Drag and drop your files here, or",browse:"browse",cancel:"Cancel",import:"Import",supports:"Supports",formatsWithMaxSize:"formats with a maximum file size of",proceed:"Proceed",changeFile:"Change File",imagesSelected:"Images Selected",audiosSelected:"Audios Selected",videosSelected:"Videos Selected",importWebText:"Get royalty-free images from popular online stock image libraries.",poweredBy:"Powered by",emptySearchTerm:"No results found. Try giving a different search term.",emptyRecent:"No recent files found.",emptyResults:"No files found.",loadMore:"Load More",importHelp:"You can select only 1 file.",importPDFOnly:"You can upload up to 20 files at a time. Documents can be used only in the ",canBeUsedOnly:"Supports PDF, PPT, PPTX, DOC, DOCX, TXT, RTF, XLSX, CSV formats with a maximum file size of 25 MB",canBeUsedOnlyImage:"Supports JPG, JPEG, PNG, BMP, GIF formats with a maximum file size of 5 MB",videoLandingPages:"video sales pages.",importDriveText:"Grant access to your Google Drive account to import media directly into Hippo Video",importShopifyText:"Grant access to your Shopify account to import media directly into Hippo Video",shopifyDomainInfoTitle:"Enter your Shopify domain name to integrate your store with Hippo Video",shopifyDomainInfoOne:"Go to your Shopify dashboard and in the left sidebar, click on ‘Online Store’",shopifyDomainInfoTwo:"Select ‘Online Store’ under Sales Channels",shopifyDomainInfoThree:"Go to ‘Domains’, Copy the Domain Name and Paste it here",selectRequiredImages:"Select the Required Images for the Video",placeholder:"Enter your Shopify domain name...",products:"Products:",stores:"Stores:",store:"Store:",addStore:"Add Store",grantAccess:"Grant Access",account:"Account :",loading:"Loading...",selectedFile:"Selected File",selectedFiles:"Selected Files",videoTitle:"Video Title",addToCategory:"Add to Folder",addTags:"Add Tags",description:"Description",readMore:"Read More",readLess:"Read Less",seeAllQuestions:"SEE ALL QUESTIONS",seeLessQuestions:"SEE LESS QUESTIONS",shareMsg:"Record a video for AP Janmabhoomi here ",configureMail:"Configure Mail",unsupported:"Currently we do not support this type of file for importing.",enterFileName:"Please enter video title",preserveTransparency:"Preserve Transparency (beta)",categoryLable:"Folder",importFromVideoLibraryMulti:"Import From Library",importFileSizeMsg1:"Please select a file of size less than ",importFileSizeMsg2:" MB. Selected file cannot be imported",errorMsg:"Something went wrong. Please contact support@hippovideo.io",uploadInBackground:"Your video will be uploaded in the background",docTitle:"Title",shopifyTitle:"Shopify",WebLinkTitle:"Web Link",addViaLinkTitle:"Add Via Link",enterLinkLabel:"Enter your valid website URL",websiteErrorMsg:"There was an error processing your website",websiteNoteMsg:"Sorry, we couldn’t identify this website. Please check the URL and try again.",retryBtn:"Retry Processing",websitePreviewTitle:"Website Screenshot Preview",addCustomLinkDesc:"Now, add your website, landing page or any link directly as a carousel on the sales pages. And, check the thumbnail preview below.",addCustomLinkNote:"If the thumbnail is missing from your link, the default thumbnail will be displayed in the carousel.",addCustomLinkLabel:"Note:",customLinkPlaceholder:"www.hippovideo.io",enterTitleLabel:"Title",enterThumbnailLabel:"Thumbnail",customTitlePlaceholder:"Sample Title",titleErrorMsg:"*Enter a valid title",addLinkBtn:"Add Link",resetLinkBtn:"Reset",recommendedThumbnailSize:"Recommended dimension - 619*342",checkLinkBtn:"Verify Link",checkWebsiteLinkBtn:"CHECK",checkWebsiteRetryBtn:"RETRY PROCESSING",websiteLinkErrorMsg:"Enter valid website link.",linkErrorMsg:"*Enter a valid link",fetchLinkErrorMsg:"*Error while fetching url content",search:"search",searchNameAndTags:"Search",custom:{videoOrDocument:{title:"Import Video, Document or Link",selectionTitle:"Videos, Documents and Links Selected"},videoOrDocumentOrImage:{title:"Import Video, Document, Image or Link",selectionTitle:"Videos, Documents and Image Selected"},videoOrImage:{title:"Import Video, Image or Link",selectionTitle:"Videos, Image and Link Selected"},imageOrVideoVirtualBg:{title:"Import Video or Image",selectionTitle:"Videos and Image Selected"},webLink:{title:"Import Website screenshot",selectionTitle:"Website Screenshot Selected"}}},settings:{defaultVideoTemplates:"Default Template Builder",defaultVideoTemplatesText:"You can now add Title/End cards to your videos. Choose to either record a new video or add it from the library. Once you set the Title/End cards, the same will be set as default for all the other videos. You can always change them in the settings here.",addTitleVideo:"ADD TITLE VIDEO",addEndVideo:"ADD END VIDEO",videoAddedSuccessfully:"Video added successfully",videoAddFailed:"Failed to add video",titleVideo:"Title Video",endVideo:"End Video",removedSuccessfully:"Removed successfully",failedRemove:"Failed to remove",introOutroRemoveConfirmation:"Do you want to remove the video. Are you sure?"},ctaActions:{timeLineActions:"INTERACTIVE TIMELINE ACTIONS",annotation:"ANNOTATION",embedCrmForm:"EMBED CUSTOM CRM FORM",embedCrmForm2:"EMBED CRM FORM",embedCrmFormSales:"EMBED MEETING SCHEDULER FORM",hubspotForms:"Hubspot Forms",pardotForms:"Pardot Forms",callToAction:"CALL TO ACTION",select:"Select",form:"LEAD GENERATION FORM",form2:"LEAD GENERATION",question:"CUSTOM POLL",endScreen:"PROMOTE A PLAYLIST",endCard:"IN-VIDEO MEETING LINK",addToVideo:"Add to video:",timeLineDesc:"Drive your viewers to the desired page/take an action through the options below.",annotationDesc:"Send your viewers to a sales page by adding custom annotations.",callToActionDesc:"Send your viewers to a sales page. Choose from HTML, image, and text-based CTAs.",formDesc:"Add a custom form to generate leads through your videos.",questionDesc:"Activate a poll within your videos for quality research and data collection.",endScreenDesc:"Select a video from your library to create a video playlist.",embedCrmFormDesc:"Add lead generation forms from your CRM",endCardDesc:"Design Your Own End Card",embedCrmFormDescSales:"Embed your meeting scheduler form here.",allowViewersToSkip:"Allow viewers to skip",successfullyUploaded:"Successfully uploaded",appliedSuccessfully:"Applied successfully",uploadImage:"Upload Image",changeImage:"Change Image",text:"Text",url:"URL",link:"Link",startTime:"Start Time",endTime:"End Time",apply:"Apply",add:"Add",type:"Type",html:"HTML",image:"Image",time:"Time",skip:"Skip",continue:"Continue",askPhoneNumber:"Ask for Phone number",askCompanyName:"Ask for Company Name",upperText:"Title",lowerText:"Note",question1:"Question",option1:"Option 1",option2:"Option 2",option3:"Option 3",option4:"Option 4",optional:"Optional",chooseFromHippoLibrary:"Choose file from Hippo Video library",addToLast:"Add to last",seconds:"seconds",timelineIsEmpty:"Timeline is empty",emptyTimelineDesc:"No timeline actions created yet.",edit:"Edit",delete:"Delete",annotationAdded:"Annotation added",annotationAddedDesc:"Annotation added description",callToActionAdded:"Call to action added",callToActionAddedDesc:"Call to action added description",formAdded:"Lead Generation Form added",formAddedDesc:"Form added description",quizAdded:"Custom Poll added",quizAddedDesc:"Quiz added description",endScreenAdded:"Promote a Playlist added",endScreenAddedDesc:"added as end screen",embedFormAdded:"Embed custom CRM form added",endCardAdded:"In-Video Meeting Link added",allDataWillBeDeleted:"All data associated with the CTA will be deleted.",ctaDeleteConfirm:"Do you really want to delete this CTA?",selectEndScreenTitle:"Select a video to create a video playlist",selectAnyVideoForEndScreen:"Please select any one video for end screen",selectAnyCtaImage:"Please select any image for call to action",youCantAddEndScreen:"Increase video duration to add end screen for this video.",pleaseEnterText:"Please enter some text.",clickOnThisLink:"Click on this link!",enterTheFollowingDetails:"Enter the following details to continue playing",ctaQuestion:"Enter the following details to continue playing",firstName:"First Name",lastName:"Last Name",emailAddress:"Email Address",phoneNumber:"Phone Number",companyName:"Company Name",play:"Play",submit:"Submit",formNote:"Note",esSelect:"SELECT",esCancel:"CANCEL",loadMore:"Load More",youCantAddCTA:"A second Call to action cannot be added to the same video.",youCantAddForm:"A second Lead Generation Form cannot be added to the same video.",youCantAddQuestion:"A second Custom Poll cannot be added to the same video.",youCantAddSecondEndScreen:"A second Playlist cannot be added to the same video.",youCantAddEmbedForm:"A second Embed crm form cannot be added to the same video.",youCantAddEndCard:"A second End card cannot be added to the same video.",youCantDeleteGlobalCta:"This Cta is set globally. Are you sure you want to delete this?",sampleUrl:"https://www.hippovideo.io",addYourTextHere:"Add your text here",yourTextAppearsHere:"Your text appears here",htmlAdded:"HTML Added.",textAdded:"Text Added",imageAdded:"Image Added",added:"Added",clickHere:"Click Here",fieldName:"Full Name",designation:"Designation",buttonText:"Button Name",buttonLink:"Meeting Link",defaultTitle:"Dwight Schrute",sampleMeetingLink:"https://calendly.com",defaultText:"Assistant (to the) Regional Manager",buttonDefaultText:"SCHEDULE DEMO",setUpDefaultCta:"Enable this CTA at the end of the video",enableToAll:"Enable this CTA to all users in the account",inVideoMeeting:"In-Video Meeting Link",defaultInVideoMeeting:"Default In-Video Meeting Link",save:"SAVE",cancel:"CANCEL",fillAllData:"Please fill all required fields",cantBeText:"Invalid input. Please enter a numerical value",negativeInput:"Invalid input. Days to expire cannot be a negative value.",invalidInput:"Invalid input. Days to expire cannot be more than 999.",scheduleMeeting:"Schedule Meeting",replay:"Replay",allowViewersToPlay:"Gate Video",allowPlayTooltip:"Check this box to pause the video with CRM form.",hubspot:"Hubspot",pardot:"Pardot",portalId:"Portal Id",formId:"Form Id",portalIdIsEmpty:"Portal Id is empty.",hubspotFormIdInfo:"Click to check on how to get form id in Hubspot",hubspotPortalIdInfo:"Click to check on how to get portal id in HubSpot",pardotUserKeyInfo:"Click to check on how to get business unit id from pardot",formIsEmpty:"Select HubSpot form to proceed.",pardotFormIsEmpty:"Select Pardot form to proceed.",formIdIsEmpty:"Form Id is empty.",hubspotFormAdded:"Hubspot form added",pardotFormAdded:"Pardot form added",ctaType:"CTA Type",removeCTA:"REMOVE",meetingLinkAdded:"MEETING LINK ADDED",ctaTextAdded:"CALL TO ACTION ADDED",ctaImageAdded:"IMAGE ADDED",ctaHtmlAdded:"HTML LINK ADDED",desktopPush:"Desktop/Push Notification",desktopPushTooltip:"Get notified when someone watches or replies to your video",desktopPushDesc:"Get notified when someone watches or replies to your video",desktopPushToggle:"Enable/Allow Desktop notification",emailnotify:"Email Notification",emailnotifyTooltip:"This is an email notification that alerts you each time when you get a video reply or when a video is played. It will tell you who watched it and the percentage of the video that was watched.",emailnotifyDesc:"This is an email notification that alerts you each time when you get a video reply or when a video is played. It will tell you who watched it and the percentage of the video that was watched.",videoWatchedFirst:"Video watched for the first time",watchingVideoMore:"Watched video multiple times notification",videoReply:"Replied with video",unknownContactNotification:"Show notification from unknown contacts",globalCategorySettings:"Content Privacy Configuration",globalCategorySettingsTooltip:"By default, content privacy is set to enable sharing for any content created, such as videos or documents, with the entire organization. The creator still has the permission to override the administrator’s privilege and share the folder with their team as they see fit.",globalCategorySettingsDesc:"Turning the global setting 'on' would enable any data such as videos & documents in a folder, sales pages, teleprompter scripts, video templates to be shared with everyone in the organization by default.",globalCategorySettingsNote:"Note: Only the admin can make these changes. Also, these changes will affect the new assets only.",enabledCategoryForEveryoneInOrg:"Share content with the entire organization (On/Off)",timestampSettings:"Settings to show video duration on the thumbnail",timestampSettingsDesc:"Modify or change video duration display on thumbnail using the options below",timestampSettingsNote:"Note: It is a global setting and any changes or modifications here can affect the entire account",dontShowTimestamp:"Do not show video time on the thumbnail",showTimestampMoreThan2mins:"Show video time if it is below 2 min",showTimestampMoreThan5mins:"Show video time if it is below 5 min",customLimitTimestamp:"Set your video duration (below)",timeStampSettingsWarning:"Only the admin can make these changes. Also these changes will affect the new videos only",changeColor:"Change",buttonColour:"Button Colour",videoPrivacySettings:"Video Privacy Setting",videoPrivacySettingsTooltip:"Turning this global setting 'on' would enable the video privacy for all videos by default when shared. Any changes made and saved here will affect only the newly created videos",privacycontent:"Note: The global setting will not be applied to a video if the privacy is changed at the video level",setVideoPassword:"Only people with the password can access the video",videoPassword:"Password",expirydays:"Days to expire"},requireEmail:{heading:"Require email to view",headingDesc:"'Require email to view' enables you to get the email address of the viewer or prospect before watching the video, or accessing the sales page.",toggleContent:"Enable 'Require email to view' by default for all the workflows",textHeading:"Heading Text",headingDefaultText:"Require email to view",subText:"Sub Text",subDefaultText:"Hi there! Please enter your email address \nto view the video inside.",buttonText:"Button Text",buttonDefaultText:"Submit",preview:"Preview",save:"Save"},gdriveImport:{allowAccessMsg:"Hippo Video needs Google Drive access to import your videos. Click continue to proceed.",continueBtn:"CONTINUE",allowAccessTitle:"Hippo Video - Drive Access",installExtension:"Chrome Extension has to be installed to record presentation. Click install to proceed",worksWithChrome:"Record Presentation works only with Google Chrome. "},introOutro:{selectTheme:"SELECT THEME",screenStaysForTitle:"Your video title screen stays on screen for",screenStaysForEnd:"Your video end screen stays on screen for",sec:"sec",none:"None",color:"Color",addNewText:"NEW TEXT",save:"SAVE",cancel:"CANCEL",step1:"Create your video title card in just 3 steps",step2:"Choose a theme or upload your own theme.",step3:"Add text to go with this theme.",step4:"Customize the color and your title screen in good to go.",addIntro:"Add Intro",addOutro:"Add Outro",enterYourText:"Enter your text",introSuccessMsg:"Intro successfully updated",outroSuccessMsg:"Outro successfully updated",introTooltipMsg:"Edit your video title screen",outroTooltipMsg:"Edit your video end screen",introEmptyTooltipMsg:"Add a video title screen",outroEmptyTooltipMsg:"Add a video end screen",addMf:"Add Merge Fields",mfInfoTooltip:"Use merge fields to personalize your video",enterYourTextHere:"Enter your text here...",enterText:"Enter Text",select:"-- Select --",opacity:"Opacity"},askCompanyName:{heading:"Claim Your Unique Hippo Video Account",tooltip:"Your videos will be hosted on this subdomain",companyName:"Company Name",yourCompanyName:"Your company name",hippovideoio:".hippovideo.io",domainName:"Domain Name",accountDomainName:"Account Domain Name",dontForgetToAdd:"Don't forget to add this as a bookmark. ",addBookmark:"Add Bookmark",phone:"Phone",yourPhone:"Your phone number"},campaign:{details:"DETAILS",name:"Testimonial Campaign Name ",namePlaceholder:"Enter a testimonial name for your internal use",nameErrorMsg:"Please enter campaign name.",title:"Testimonial Campaign Title ",titleHelp:"Your recipients will see this title message",titlePlaceholder:"Your recipients will see this title message",titleErrorMsg:"Please enter campaign title.",description:"Custom Message For the Recipients ",descriptionHelp:"Your recipients will see this custom message",descriptionPlaceholder:"Message...",descriptionErrormsg:"Please enter description.",thankuMsg:"Custom Thank you Message ",thankuMsgHelp:"Your recipients will see this message after submitting their video",thankuMsgPlaceholder:"Message...",thankuMsgErrorMsg:"Please enter thank you message.",introVideo:"Add video from the library and introduce this testimonial to the recipient",introVideoHelp:"Add a video from your library to introduce this campaign to your recipients.",removeVideo:"Remove Video",addVideo:"Add Video",loading:"Loading...",chooseVideo:"Choose video",choose:"Choose",cancel:"Cancel",delete:"Delete",deleteCampaign:"Delete Campaign",allVideosDeleteCampaign:"All the videos in this campaign will be deleted permanently.",settings:"SETTINGS",setRecordTime:"Set Record Duration",minutes:"minutes",askUser:"Ask the user for",firstName:"First Name",lastName:"Last Name",email:"Email",notes:"Notes",phoneNumber:"Phone number",on:"ON",off:"OFF",allowOwnVideos:"Allow recipients to upload videos from their system",allowYoutubeLinks:"Allow recipients to submit Youtube links",askConsent:"Ask copyright permission from your recipients",askConsentPlaceholder:"Consent message...",askConsentErrorMsg:"Please enter consent message.",share:"SHARE",codeLink:"Copy Link",copied:"Copied",shareLink:"Share Link",defaultDescription:"Points to be covered in your testimonial. \n 1. What does your company do? \n 2. What problem(s) did you face before you bought/joined [our product/service]? \n 3. What are the benefits you have realized from using our [product/service]? \n 4. What exactly did you like most about [our product/service]? \n 5. Why would you recommend our product to others? (and why?) \n 6. How was your overall experience? \n 7. Is there anything else you would like to add? Or What other benefits do you expect in the future? \n",defaultTitle:"How was your experience",defaultThankuMsg:"Thank you for submitting your video testimonial",defaultConsent:"I agree to grant you permission to use my content for the benefit of your business",notifyEmail:"Notify Testimonial via Email",notifyMailHelp:"When someone submits the testimonial, you'll be notified in the below email",notifyMailPlaceholder:"Enter the email address to notify",notifyMailErrorMsg:"Pease enter valid email address"},videoCampaigns:{replyMailTitle:"Reply with a video for better engagement",replyMailImportVideo:"Import Video",replyMailRecordVideo:"Record video",vidCampDesc:"Hippo Video lets you send personalized video email campaigns from your Mail. Import contacts from your sheet, send personalized emails campaigns and get consolidated performance reports.",askMailAccessText:"Please link your mail account to send emails",mailAllowAccess:"Configure Mail",serverErrMsg:"Sorry, something went wrong.",emailFrom:"From",emailTo:"To",emailCC:"CC",toPlaceholder:"Enter or Import Email IDs",subjectPlaceholder:"Enter the video campaign name",contentPlaceholder:"Type the campaign message..",content:"Content",subject:"Subject",campSuccess:"Video campaign launched successfully for ",campInitiated:"Video campaign initiated successfully for ",campSuccess1:" contacts!",replyMailSuccess:"Reply email sent successfully ",impSuccessfully:" contacts imported successfully",cancel:"Cancel",send:"Send",description:"Add multiple email addresses manually or import contacts from your Google Sheets. Hippo Video will then send individual emails to your recipients by mapping the specified merge fields.",importContacts:"Import Contacts",addContacts:"Add Contacts",here:"here",emailBulbToolTip1Content:"Tip 1: Increase email open rates by adding words like “quick video” in the subject line.",emailBulbToolTip2Content:"Tip 2: We recommend you to add a few lines of text along with your video, maybe a quick recap of the video you’re sending or an introduction will do wonders. Find more video tips like these from Jeffrey Gitomer - King of Sales",addAnother:"Add Another",importContactsGoogle:"Click to import contacts",addContactsTooltip:"Click to add contacts",emailToToolTip:"Separate email would be sent to everyone in this list",allowSheetAccess:"Allow Google Sheet Access",gDriveAccessText:"Hippo Video captures all merge fields from Google Sheets. For Excel and CSV files, convert them to Google Sheets to connect. ",gContactsAccessText:"Import this list directly from Google Contacts",gContactsButton:"Allow Google Contacts Access",gContacts:"Google Contacts",Sheet:"Google Sheet",gmailAddAccount:"Add account",spreadsheetNotFound:"No spreadsheets found",importContactsNote:"Note: Only one file can be selected.",selectFile:"Please select the file and click import contacts",campEmptyToMailMsg:"To mail is empty. Please add or import contacts.",emptyToEmailMsg:"Please enter to email",validEmail:"Please enter valid email id",clear:"CLEAR",sampleFile:"Sample File",mfNote:"Note: Type $ to use merge fields from imported sheet.",selectAccount:"Please choose from account.",thumbnailPersonalization:"PERSONALIZE YOUR THUMBNAIL",thumbnailPersonalizationDesc:"Add merge fields to your thumbnail to create personalized thumbnail",personalization:"PERSONALIZE YOUR VIDEO",personalizationDesc:"Add merge fields inside your video to create your personalized video.",sendVideoEmail:"SEND VIDEO EMAIL",sendVideoEmailDesc:"Send the personalized video you created to your contacts.",personalize:"PERSONALIZE",personalizeVideo:"PERSONALIZE VIDEO",personalizeThumbnail:"PERSONALIZE THUMBNAIL",beta:"BETA",configureMail:"Configure Mail",emailCampaignLinkDesc:"Copy the code and paste it in your mail client/campaign template to send personalized video and thumbnail",emailProvider:"Email Marketing Software",emailMergeTag:"Email Merge Tag",thumbnailSize:"Thumbnail Size",responsive:"Responsive",centerAlign:"Center Align",editCopyLinkMf:"If you’ve added any custom fields in your email marketing software, please copy and paste the same custom field inside the box given below to replace the merge fields inside the code.",editCopyLinkMfErr:"* Merge Fields can't be empty",copyCode:"Copy Code",preview:"Preview",note:"Note: ",thumbnailPersonalizationNote:"Video Thumbnail can be changed in ",gifThumbnailPersonalizationNote:"Personalization not supported for Gif Thumbnail. ",customThumbnailPath:"Customize Video -> Thumbnail",copied:"Copied",Account:"Account",maximumFileSize:"Supports only XLS, XLSX, CSV formats with a maximum file size of 5 MB",SUBMIT:"SUBMIT",CANCEL:"CANCEL",chooseFile:"Choose File",or:"or",dragAndDrop:"Drag and drop your files here, or browse",downloadSample:"Download Sample File",Local:"Desktop",contactImportMsgDrive:"Importing contacts from Google Sheet",errorMessage:"Something went wrong! Please contact support@hippovideo.io",chooseEmailTemplates:"Choose an email template",back:"Back",searchInMail:"Search for email...",createNewTemplate:"New template",createNewEmailTemplate:"Create New Template",insertMergeField:"Insert Merge Field",date:"Date",reply:"Reply",mailSubject:"Subject",emailRepliesKey:"Email Replies",replyEmailKey:"Reply Email",copyCodeWithThumbnailForHubspot:"Copy code for sending sequence emails in HubSpot",campaignStatCategories:{all:"All Contacts",queue:"Mails in Queue",sent:"Mails Sent",failed:"Mails Failed",mail_opened:"Mails Opened",watched_90_100:"Video watched from 90% to 100%",watched_75_90:"Video watched from 75% to 90%",watched_50_75:"Video watched from 50% to 75%",watched_0_50:"Video watched from 0% to 50%",unseen:"Yet to watch video"},campReportState:{sent:"MAILS SENT",inQueue:"YET TO SEND",failed:"MAILS FAILED",opened:"MAILS OPENED",unseen:"UNSEEN",watched_90_100:"90% to 100%",watched_75_90:"75% to 90%",watched_50_75:"50% to 75%",watched_0_50:"0% to 50%",replies:"EMAIL REPLIES"},othersText:"OTHERS",sentUsingOtherProviders:"SENT USING EMAIL MARKETING SOFTWARES",sentUsingHippoVideo:"SENT USING HIPPO VIDEO",emptyCampaignText1:"No campaigns found",emptyCampaignText2:"Click the below button to send a new campaign",sendNewCampaign:"SEND NEW CAMPAIGN",loadMore:"LOAD MORE",videoText:"video",videosText:"videos",createdText:"created",contactText:"contact",contactsText:"contacts",openedTheMail:"opened the mail",repliedTheMail:"replied to the mail",playedText:"played",playedTheVideo:"played the video",mailsSentTo:"Mails sent to",watchedTheVideo:"watched the video",openRateText:"OPEN RATE",playRateText:"PLAY RATE",mailsCap:"MAILS",videosCap:"VIDEOS",mailSentFrom:"Mail sent from",campaignLaunchedFor:"Campaign launched for",yetToOpenMail:"YET TO OPEN MAIL",yetToWatch:"YET TO WATCH",yetToWatchVideo:"YET TO WATCH VIDEO",ofVideoPlayed:"of video played",valueIsMissing:"value is missing",valuesAreMissing:"values are missing",emptySubjectMsg:"Please enter the subject",campEmptySubjectMsg:"Subject is empty. Please enter the subject.",sendCampaignFromOwnMail:"Configure email address",mfFormContent:'Fill in the placeholder value or contact information here to personalize your email or click "SEND" if you dont have any',saveAsList:"Save As List",enterListName:"Enter List Name",fillTheListName:"Fill in the list name",imageUrl:"Image URL",linkUrl:"Link URL",SAVE:"SAVE",editMfForm:"Edit Merge Fields",copyCodeWithThumbnail:"Copy Code With Thumbnail",campaignLinkInfo:"Video thumbnail will not be generated on pasting this code in your platform. However, the receiver will be able to view the video thumbail and play the video."},colorkeyEffect:{ColorkeyTitle:"Key Color-",toleranceValue:"Tolerance Value",toleranceHint:"Adjust degree of color removal"},blurEffect:{blurTitle:"Blur-",strengthTitle:"Strength",lockAspectRatioResize:"Lock aspect ratio on resize",startTime:"Start Time",endTime:"End Time"},effectsTab:{blurTitle:" Video Blur ",ColorkeyTitle:" Chroma Key ",blurHelpText:"Add the blur in your video to hide sensitive information from your viewers.",colorKeyHelpText:"Use the color picker to select the color you want to remove. Add multiple keys to remove multiple colors from your video. The tolerance specifies how closely pixels must match the key color. ",addAnother:" Add Another",addBlur:" Add Blur",addColorKey:" Add Chroma Key",demoVideo:"Demo Video"},toolsAndEffectsTab:{textTooltip:"Add Text",smileyTootltip:"Add Smiley",calloutTooltip:"Add Callout",effectsTooltip:"Select a video/image clip to add effects",addEffectTooltip:"Add Effects",addBlur:"Add Blur",addColorKey:"Add Chroma Key",addImage:"Add Image",addPlaceholderImage:"Add Personalized Image",errorMessage:"Something went wrong! Please contact support@hippovideo.io",prepareToImport:"Preparing files to import...",new:"BETA",addWebsiteSnapshot:"Add Website Snapshot",browserNotSupported:"Not supported with this browser"},rightclickCustomMenu:{copy:"Copy",copyShortcut:"Ctrl + C ",cut:"Cut",cutShortcut:" Ctrl + X ",paste:"Paste",pasteShortcut:" Ctrl + V ",delete:"Delete",deleteShortcut:" Delete ",rippleDelete:"Ripple Delete",rippleDeleteShortcut:" Shift + Delete ",split:"Split",splitShortcut:"Shift + C ",position:"Position",positionShortcut:""},warning:{addEffectWarning:"Select a video or image clip to add effects",renderWarning:"There is no clip present to create a video"},NarrationView:{warningMessage:"Are you sure you want to delete recording ?",yes:"YES",no:"NO",browserNotSupported:"Your browser is not supported",finish:"Finish",cancel:"Cancel"},customTrackers:{pixelId:"Pixel Id",pixelContent:"Track video conversions from Facebook ads, optimize ads based on collected data and build targeted audiences for future ads.",GAContent:"Track your visitors watching the video, play rate, click rate, and measure ROI by setting up analytics tracking.",addEvents:"Add Events",trackFrom:"Track from",cancel:"Cancel",save:"Save",trackFromHelp:"Start tracking your video from a defined start time.",eventsHelp:"Add multiple events relevant to your video category.",success:"Tracker details updated successfully",videoUsage:"Track video usage",pixelMandatory:"Pixel Id is mandatory",GAMandatory:"Google Tracking Id is mandatory",deleted:"Tracking Details has been removed",somethingWentWrong:"Something went wrong!!",luckyOrangeContent:"Track on individual prospect activities and organize filtered and custom-made follow-ups with real-time dashboard analytics and visitor maps.",lOMandatory:"Lucky Orange Tracking Id is mandatory"},dashboard:{lastUpdated:"Last updated on",usageStats:"Usage Stats",tillDate:"Till date",today:"Today",yesterday:"Yesterday",thisWeek:"This week",lastWeek:"Last week",last7Days:"Last 7 days",last30days:"Last 30 days",thisMonth:"This Month",lastMonth:"Last Month",custom:"Custom",impressions:"Impressions",notPlayed:"Not played",played:"Num Plays",numVideos:"Num Videos",totalVideosCreated:"Total videos created",leadsGenerated:"Leads Generated",testimonialsReceived:"Testimonials Received",usersEngaged:"Users engaged",minutesWatched:"Minutes watched",videoCampaigns:"Video campaigns",campaigns:"Campaigns",myPlan:"My Plan",recordingLimit:"Recording Limit",importLimit:"Import Limit",testimonialLimit:"Testimonial Limit",bandwidth:"Bandwidth",upgrade:"UPGRADE",contactUs:"CONTACT US",selectBothDates:"Please select both from and to date",plays:"Plays",engaged:"Engaged",topVideos:"Top Videos",basedOn:"Based on",topCampaigns:"Top Campaigns",noEngagement:"No Engagement",engagementEmptyTxt:"Share your videos to engage more viewers",noCampaignsCreated:"No Campaigns created",campaignsEmptyTxt:"Create and send a personalized video campaign to get leads",callToAction:"Call to action",leadGeneration:"Lead generation",annotations:"Annotations",customPoll:"Custom poll",reactions:"Reactions",comments:"Comments",mailSent:"Mail sent",mailOpened:"Mail opened",videosWatched:"Videos watched",engagement:"Engagement",from:"From",to:"To",embedStats:"Embedded Video Performance",campaignsSent:"Campaigns Sent",mailsSent:"Mails Sent",mailsOpened:"Mails Opened",uniqueViews:"Unique Views",ctaMeeting:"Video Meeting Link",mailsWatched:"Mail Video Watched"},gettingStarted:{gettingStarted:"Getting Started",startImporting:"START IMPORTING",startRecording:"RECORD VIDEO",startCustomizing:"START CUSTOMIZATION",startSlideshow:"CREATE VIDEO SLIDESHOW",startIntegration:"ADD INTEGRATIONS",startTestimonial:"COLLECT TESTIMONIALS",startTickets:"COLLECT VIDEO TICKETS",startManageUsers:"MANAGE USERS",startLeadGen:"START GENERATING LEADS",startGmailAddOn:"INSTALL GMAIL ADD-ON",startVideoEmailCampaign:"SEND VIDEO CAMPAIGNS",videoGuides:"Video Guides",hideThis:"Hide this",trial:"trial",free:"free",paid:"paid",currentVersion:"Your current plan expires in ",version:" version. ",expiresIn:"Expires in ",days:" days.",extendYourTrial:"Talk to us and extend your trial by another 7 days. ",importDesc:"Import your videos to start editing them. Trim, blur, crop, add emojis, callouts, and voice-narrations",importAndEdit:"Import & Edit",importVideosAndEditing:"Import videos and start editing",recordDesc:"Record everyday narratives through webcam, screen recording, and mic option. Create GIFs from videos as well",recordVideo:"Record Video",recordNarratives:"Record everyday narratives",slideShowDesc:"Import your own images or choose from our free stock image library to create stunning video slideshows",slideShowVideo:"Video Slideshow",createSlideShows:"Create stunning video slideshows",customizationDesc:"Customize logo, themes, domain name, CTAs, start and end screens, thumbnails and much more",customizeAndBranding:"Customize & Branding",takeControlOfPlayer:"Take complete control of the player",hostingDesc:"Host videos in the cloud with our secured infrastructure. Generate leads through forms, custom CTAs, polls, annotations, etc",hostAndGenerateLeads:"Host & Generate Leads",secureVideoHosting:"Secure video hosting and lead generation",testimonialDesc:"Ask customers to record video testimonials with a shareable link. They don’t have to sign up to record a testimonial video",collectTestimonial:"Collect Video Testimonials",collectCustomerTestimonial:"Collect customer’s video testimonials",integrationDesc:"Hubspot, LinkedIn Sales navigator, Freshsales, Salesforce, Outlook, Gmail, Pipedrive and more.",setupIntegration:"Setup Integrations",rbacInactiveCardMessage:"You do not have the permission to access this module. Please request your administrator to enable it for your role.",salesPageInactiveCardMessage:"You only have access to the default sales pages in your plan.To create your own sales pages, either ",upgrade:"upgrade",salesPageInactiveCardMessage1:" or contact your administrator to do it for you.",viewdefaultsalespages:"View default Sales Pages",marketplaceIntegration:"Add marketplace integrations",manageUsersDesc:"Activate and deactivate users. Collaborate with your team, assign roles, permissions, and more",manageUsers:"Manage users",assignRolesAndPermissions:"Assign roles and permissions",videoGuidesTitle:"Video Selling Guide",videoGuidesShort:"Videos from your sales coach Jeffrey Gitomer",videoGuidesDesc:"Check out videos from Jeffrey Gitomer on tips to make your videos effective.",videoGuidesCta:"Checkout Videos",guestRecordDesc:"Ask customers to record guest video with a shareable link. They don’t have to sign up to record a guest video",collectGuestVideos:"Collect Guest Videos",collectCustomerGuestVideos:"Collect customer’s guest video",scheduleDemo:"Talk to our specialist ",scheduleMeeting:"Schedule meeting now",scheduleDemoDesc:"Need help implementing your video strategy?",gmailAddOn:"Gmail Add-On",gmailAddOnSales:"Create personalized sales videos.",gmailAddOnDesc:"Record personalized videos for your leads and close more sales. Track the mails’ performance using analytics.",emailCampaigns:"Video Email Campaigns",emailCampaignsDesc:"Import contacts from your sheet, send personalized emails campaigns, and get performance reports.",personalizedVideoCampaign:"Send personalized video email campaigns using Gmail",importContacts:"IMPORT CONTACTS",importContactsDesc:"Add Multiple email addresses manually or import contacts from your Google/Excel/CSV sheets.",createVideo:"CREATE VIDEO",createVideoDesc:"Create videos by using your webcam, screen capture and audio. You can even import videos here.",sendMail:"SEND VIDEO MAIL",sendMailDesc:"Embed your videos in your CRM or email composer to send video emails.",inVideoMeeting:"INCLUDE IN-VIDEO MEETING LINK",inVideoMeetingDesc:"Embed your calendly or meeting scheduler CTA to book meeting directly through your video emails.",sendTestVideoDesc:"Record a quick video and send a test mail to realize the power of the video emails.",sendTestVideo:"PRACTICE A VIDEO MAIL",installExtension:"Install Chrome Extension",installExtensionDesc:"Install the Chrome extension to track all the activity happening with your video emails and get detailed report.",stepsToCreateStellarVideo:"Steps to create a stellar sales video",startWithScript:"Start with video script",chooseVideoBg:"Choose a video background",captureVideo:"Capture your video",recordAudio:"Record clear audio",checkLighting:"Check for even lighting",startWithScriptDes:"Brainstorm the details you want to convey in your video. Then, build your script around it that attracts your customer/prospects.",chooseVideoBgDes:"Explore multiple environments and experiment things around, until you find a setup that suits you.",captureVideoDes:"When you’re recording with a webcam or smartphone, maintain eye contact with the camera lens. Use a tripod if you use your smartphone.",recordAudioDes:"Shoot in a quiet area where there is NO background noise.",checkLightingDes:"Find yourself a window and place your laptop in front of it. Make sure you face the light to avoid having too many shadows.",quickTips:"A quick tip",quickTipsDes:"Always smile while you talk in your video. Make hand gestures when necessary.",sgsCardOneTitle:"Create & Send Video",sgsCardOneSubText:"Record and Send Videos",sgsCardOneHoverText:"Record webcam videos with ease and share them with your prospects, customers and colleagues.",sgsCardOneBtnText:"Create & Send Video",sgsCardThreeTitle:"Sales Pages",sgsCardThreeSubText:"Wow your prospects with Personalized Sales Pages",sgsCardThreeHoverText:"Add custom logos, personalized videos, CTAs for prospects - all this personalized, in a single page",sgsCardThreeBtnText:"Create Personalized Sales Page",sgsCardFourTitle:"Add People",sgsCardFourSubText:"Add, manage and track contacts",sgsCardFourHoverText:"Managing your contacts and planning follow-ups is now super-easy thanks to People tab",sgsCardFourBtnText:"Add People",sgsCardSevenTitle:"Other Downloads",sgsCardSevenSubText:"Try our other effective video tools ",sgsCardSevenHoverText:"Hippo Video Chrome extension & Gmail Add on helps you record & share videos from your Chrome or Gmail itself. Download them now",sgsCardSevenBtnText:"Chrome Extension",sgsCardSevenBtnText2:"Gmail Add on",sgsCardEightTitle:"Practice a video mail",sgsCardEightSubText:"Practice a video mail",sgsCardEightHoverText:"Record a quick video and send a test mail to realize the power of the video emails.",sgsCardEightBtnText:"Practice video mail",sgsCardResponseRate:"Deliver your videos with a personalized sales page. See your response rate increase 3x.",sgsCardShowMeHow:"Show me how",sgsAddTeammates:"Add Teammates",sgsAddTeammatesSub:"Add, manage and collaborate with your team",sgsAddTeammatesDesc:"Add your team into Hippo video. Collaborate and maximize your response rate.",sgsAddTeammatesCta:"Add team members",sgsWelcomeMessage:"Welcome back",sgsBookDemoHeader:"Book a personalized demo",sgsBookDemoContent:"Talk to our video expert to improve your prospect engagement with videos.",sgsLearnHeader:"How to use Hippo Video?",sgsLearnContent:"Learn how to record engaging videos for sales to grab your prospect's attention.",sgsLinkedINheader:"Hippo Video is available on LinkedIn!",sgsLinkedInContent:"Record and send personalized video messages from ",scriptInfo:"Do it now with a script created for you!",createYourFirstVideo:"Create Your First Video",recordYourFirstVideo:"Record Your First Video",recordQuickVideo:"Record a quick video. It’s instant and simple!",firstVideo:"Record your first video and impress your prospects. Stand out from the rest, build trust, and crush your goals with videos that are ",realRelevant:"REAL™ - Relevant, Emotionally engaging, Actionable, and Lively!",learnMore:"Learn More",hiText:"Hi ",WelcomeTo:", Welcome to Hippo Video!",yourFirstTowordsVideos:"We're glad you are here. Hippo Video helps you to build trust, provide value and nurture prospect relationships with the help of REAL and humanized videos. Let's kickstart your video journey now:",gsChrDesc:"Send personalized New Year video greetings using our templates in 4 simple steps",gsChrDescBtn:"Send New Year Greetings",recordNow:"Record now",createNow:"Create now",integrate:"Integrate",invite:"Invite",add:"Add",macAppDesktop:"Download Hippo Video Mac desktop app",downloadNow:"Download Now"},apps:{heading:"You can also record from",chromeExtensionDescription1:"Create videos from",chromeExtensionDescription2:"any browser tab",chromeExtensionDescription3:"and your favorite tools like",chromeExtensionDescription4:"LinkedIn, Gmail, Outlook,",chromeExtensionDescription5:"and so many more.",mobileAppDescription1:"Get the",mobileAppDescription2:"Hippo Video Mobile Application",mobileAppDescription3:"to record & send out videos efficiently from anywhere, anytime, and any device.",scanToDownload:"Scan to download",installAndGetAccess:"Install the app and get access to all our cool features.",gotIt:"GOT IT",etc:"etc.",macAppDesktop:"Download Hippo Video Mac desktop app",downloadNow:"Download Now"},campaignGettingStarted:{importContacts:"ADD YOUR VIDEO",importContactsDesc:"Import or record a video to personalize. You can also use the Template Builder inside Hippo video.",createVideo:"PERSONALIZE YOUR VIDEO",createVideoDesc:"Add merge fields inside your video to personalize. Relevant merge fields have already been added in our Template Builder.",sendMail:"IMPORT CONTACTS",sendMailDesc:"Add Multiple email addresses manually or import contacts from your Google/Excel/CSV sheets.",inVideoMeeting:"LAUNCH YOUR VIDEO CAMPAIGN",inVideoMeetingDesc:"Add the email copy and launch the campaign from Hippo Video. Launch it using Email Marketing Software by adding the video email embed code.",sendTestVideoDesc:"Hippo Video has a range of Template Builder categories like Welcome, Custom Discount and more.",sendTestVideo:"SELECT A PERSONALIZED TEMPLATE BUILDER",installExtension:"Install Chrome Extension",installExtensionDesc:"Install the Chrome extension to launch your personalized video email campaigns directly from Gmail.",proTip:"PRO TIP: Add an in-video meeting link to book more meeting with your clients.",just4Steps:"Just 4 steps away from the magic spell!"},thumbnailEdit:{thumbnailPersonalisation:"Thumbnail Personalization",save:"SAVE",cancel:"CANCEL",addPersonalizedText:"ADD PERSONALIZED TEXT",addPlaceholderImage:"ADD PLACEHOLDER IMAGE",personalisationNote1:"Click Add text/image to personalize your thumbnail",personalisationNote2:"Type $ to open the list of merge fields and to add a custom merge field, type ${Your Field Name}",personalisationNote3:"Create a merge field with the name 'logo' to add your company logo to the placeholder image"},emailSettings:{email_label:"Email",removeAccount:"Remove Account",reauthorize:"Reauthorize",configureMailSettings:"CONFIGURE MAIL SETTINGS",others:"Others",setupMailMsg:"SETUP EMAIL ACCOUNT FOR SENDING",setupMsg:"Connect to the email account that'll be used to send your emails.",connectedMsg:"Your email account is now connected to Hippo Video. You can manage your connected account here.",emailId:"Email Id",password:"Password",emailProvider:"Email provider",smtpHost:"SMTP Host",smtpPort:"SMTP port",useSSL:"Use SSL",cancel:"Cancel",apply:"Apply",smtpSettings:"SMTP SETTINGS",gmail:"Gmail",outlook:"Outlook",zoho:"Zoho",yahoo:"Yahoo",godaddy:"GoDaddy",notAValidEmail:"Email ID is not valid",enterPassword:"Please enter the password",emptyPort:"SMTP Port is empty",emptyHost:"SMTP Host is empty",smtpSetupMsg:"Connect your SMTP account to send your emails.",passwordNote:"(password is always encrypted for security)",connectSMTP:"Connect SMTP account",senderName:"Sender Name"},deepIntegration:{startRecording:"Start Recording",stopRecording:"Finish Recording",notSupportedTxt:"Your browser does not support the video",AdvancedOptions:"Advanced Options",Apply:"Apply",Cancel:"Cancel",EnableTelepromter:"Enable Telepromter",DisableTelepromter:"Disable Telepromter",retakeConfirmationDesc:"The video which you have recorded will be lost forever. Are you sure you want to delete & retake the video?",cancel:"Cancel",proceed:"Proceed"},progressMessages:{uploadingFile:"Uploading File",videoUploadedWaiting:"Video uploaded. Waiting to be converted...",errorUploading:"Error while uploading video",preparingFile:"Preparing File",videoIsCreating:"Your video is being created",errorUpdatingState:"Error while updating state",imageUploadedWaiting:"Image uploaded. Waiting to be converted...",doc:{error:"Error while uploading document"}},labelContent:{district:"District",mandal:"Mandal",panchayat:"Panchayat / Ward",aadhar:"Aadhar No"},sidebar:{info:"Info",comments:"Comments",reports:"Reports",emailReplies:"Email Replies",thumbnail:"Thumbnail",titleEndCard:"Title / End Card",timelineActions:"Marketing",trackVideo:"Track Video",personalizeThumbnail:"Thumbnail",personalizeVideo:"Video",personalizeTabHeading:"Personalize Video",embed:"Embed",sendMail:"Send Mail",share:"Share",export:"Export",privacy:"Privacy",subtitles:"Subtitles",settings:"Settings",campaignLink:"Campaign Link",branding:"Branding",titleVirtualBg:"Virtual Background",beta:"Beta",videoSettings:"Video Settings",interactiveVideoCta:"INTERACTIVE VIDEO CTA",campaignReports:"Campaign Reports"},wizComments:{addNewComments:"Add New Comment",comments:"Comments",commentsDisable:"Comments are disabled for this video",sortBy:"Sort by",recent:"Recent",timeline:"Timeline",postAs:"Posting as",enterComments:"Enter your comment here",post:"POST",cancel:"CANCEL",screen:"Screen",webcam:"Webcam",audio:"Audio",start:"START",noComments:"No comments yet",somethingWrong:"Something went wrong. Unable to fetch Comments.",loadingComments:"Loading Comments...",commentsHidden:"Comment Hidden",reply:"Reply",videoAnnotation:"Video Annotation",heyGuest:"Hey Guest,",commentSignUp:"Please sign up or login in order to comment on this video.",signUp:"Sign Up",or:"OR",login:"Log In",continueGuest:"Continue as guest",guestName:"Enter a guest name to continue",continue:"Continue",screenRecordingFree:"Create Screen Recordings for free.",email:"Enter your email",passwordField:"Password - Minimum 6 characters (Optional)",autoGeneratedPassword:"An auto-generated password will be sent to your email if no password is given",signUpFree:"Sign up for free",signInAccount:"Sign in to your account",password:"Password",signIn:"Sign In",wentWrong:"Something went wrong!",signUpLink1:"By signing up, you agree to our ",signUpLink2:"Terms",signUpLink3:"and",signUpLink4:"Privacy policy"},salesDashboard:{dashboard:"SALES DASHBOARD",contactsCreated:"Contacts Created",videoEmailSent:"Video Emails Sent",mailsOpened:"Video Emails Opened",mailsReplied:"Video Emails Replied",videosPlayed:"Videos Played",activeProspects:"Active Leads",pagesLabel:"Pages",createdLabel:"Created",emailedLabel:"Emailed",accessedLabel:"Accessed",playedLabel:"Played",topLandingPages:"Top Sales Pages",topSalesUsers:"Top Sales Users",createAndSend:"Record Videos Instantly",createAndSendDesc:"Record instant videos to make an impact and to speed up your sales cycle.",quickRecord:"QUICK RECORD",signals:"Sales Signals",topSalesEmptyState:"Jeez! your sales users have shown no activity.",topSales:"You’re yet to add users.",topLPEmptyState:"Oh! Your sales pages are yet to be viewed. Create high-impact personalized sales pages from here.",prospectsEmptyState:"We are yet to see any activity from leads.",salesSignalsEmptyState:"No activity from your leads yet.",openYourMail:" just opened your email",viewedYourVideo:" viewed your video right now.",yay:"Yay! ",wow:"Wow! ",clickedVideo:" clicked on your video",playedVideo:" played your video, that's good news!",last30days:"Last 30 days",salesSignalHelp:"Alerts for sales based on customer actions",salesPageStats:"Sales Page Stats",clickedCta:" clicked a CTA on your video"},poweredByFooter:{poweredByText:"Powered By",poweredBySignupTextForIndividual:"Loved it? Create and send mesmerizing videos on your own.",poweredBySignupTextForBusiness:"Loved it? Create and send mesmerizing videos on your own.",signUp:"Sign Up",getFreeAccountForLife:"Get Free Account For Life",signUpForFree:"Sign Up for Free"},deliveryLandingPage:{title:"Send as a Sales Page",preview:"Preview",default:"Default",createNew:"Create new Sales page",myPages:"My Sales Pages",allPages:"All Sales Pages",sharedPages:"Shared Sales Pages",clear:"Clear",filterBy:"Filter by",save:"Save",allPagesEmptyStateText:"No results present for the search!",newLandingPageButtonText:"Create New Sales Page",setDefault:"Set selected page as default sales page",salesPage:"Sales Page",removeSalesPage:"Remove",noSalesPageSelected:"No sales page selected, click plus to add",landingPageDesc:"Add/select/remove sales page for this video"},mailchimpLeadAddModal:{addToListText:"Add leads to Mailchimp",configure:"Configure",manage:"Manage",title:"Add Leads To Mailchimp Account",account:"Mailchimp account:",changeAccount:"Change account",selectAudience:"Select Audience",noListsFound:"No Lists Found",groups:"Groups",noGroupsFound:"No Groups Found",previous:"Previous",next:"Next",finish:"Finish",unableToFetchLists:"Unable to fetch lists from Mailchimp account",unableToFetchGroups:"Unable to fetch groups from Mailchimp account",unableToFetchSubgroups:"Unable to fetch group from Mailchimp account"},bookDemoPage:{headerTitle:"Help us cater the demo for you",headerDesc:"We’ve various integrations for you. Pick the right ones for your business.",productUseMost:"What are the products you use the most ?",errorMsg:"Oops! Looks like you haven’t selected any integration. Choose at least one to proceed further.",noResult:"No Results Found",cancel:"Cancel",schedule:"Schedule"},gitomerPage:{videoPageTitle:"How to Make Great Videos: A Step-by-step Guide",lockVideoDesc:"Up Your Video Selling Game with Jeffrey Gitomer. Upgrade Now to Get Better at Video Selling",lockVideoCTA:"Upgrade & Unlock Videos Now",autoplay:"Autoplay",backTitle:"How to Make Great Videos: A Step-by-step Guide",subTitle:"GREAT VIDEOS ARE BORN FROM GREAT PRACTICES",description:"If you are one of the salespersons among many others who've never recorded prospecting or sales videos, we've got your back. Jeffrey Gitomer will personally coach you to make your videos better. Jeffrey will help you with practical tips to get better at video selling & prospecting.",more:"More",upgradeToView:"UPGRADE To View Full Video",allVideos:"All Videos",all:"all",mostViewed:"Most Viewed",plans:["all","Free","Pro","Growth"],newPlans:["all","Free","Paid"],sortByCriterias:["Most Viewed","Least Viewed","Featured"]},newSalesDashboard:{lastSevenDays:"Last 7 days",lastThirtyDays:"Last 30 days",lastNinetyDays:"Last 90 days",custom:"Custom",salesDashboard:"SALES DASHBOARD",getStarted:"Get Started",filters:"Filters",editDashboard:"Edit Dashboard",loadingText:"Please wait... All good things take time.",videosCreated:"Videos Created",uniqueViewers:"Unique Viewers",attentionSpan:"Attention Span",engagementRate:"Engagement Rate",videoStatsHeading:"Overall Video Statistics",videoStatsHeadingDesc:"Depicts a quick overview of how your videos, including guest videos, testimonials, and video replies, have performed.",myTopProspectingVideos:"My Top Prospecting Videos",showing:" - Showing",downloadAll:"Download All",videoInsightsLockStateText:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",videoInsightsEmptyStateText:"Oops! No data to show. Please create and share videos to view this report.",videoName:"Video Name",createdBy:"Created By",totalPlays:"Total Plays",salesPageHeading:"Overall Sales Page Statistics",salesPageHeadingDesc:"Depicts a quick overview of how your sales pages are performing based on Average Page time, Engagement rate, and Page Loads.",salesPageInsightsLockStateText:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",salesPageInsightsEmptyStateText:"Oops! No data to show. Please create and share sales pages to view this report.",salesPageCreated:"Sales Page Created",totalPageLoads:"Total Page Loads",avgPageTime:"Average page time",myTopProspectingPages:"My Top Prospecting Pages",salesPageName:"Sales Page Name",pageLoads:"Page Loads",bounceRate:"Bounce Rate",videoReplies:"Video Reply",overallDashboardLockStateText:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",topPerformingMediumHeading:"Top Performing Medium",topPerformingMediumHeadingDesc:"Depicts what type of medium is found most successful for engaging with your prospects.",topPerformingMediumEmptyState:"Oops! No data to show. Please create and share videos to view this report.",topPerformingMediumLockState:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",mostEngagingScriptHeading:"Most Engaging Script",mostEngagingScriptHeadingDesc:"Depicts which script is having maximum attention span.",mostEngagingScriptLockStateText:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",mostEngagingScriptEmptyStateText:"Oops! No data to show. Please create engaging scripts and record videos to view this report.",name:"Name",salesSignalsHeading:"Sales Signals",salesSignalsHeadingDesc:"Depicts a timeline report on the recent activities performed by the prospects. This report will only show the activities of the current user’s prospects.",salesSignalsEmptyState:"Oops! No data to show. Please create and share videos to view this report.",salesSignalLockState:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",activeProspectsHeading:"Active Prospects",activeProspectsHeadingDesc:"Depicts a list of active prospects who have engaged with videos, such as visiting a page or clicking on a link.",activeProspectsLockStateText:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",activeProspectsEmptyStateText:"Oops! No data to show. Please create and share videos with prospects to view this report.",nameOfTheProspect:"Name of the prospect",ownersName:"Owner’s name",uniqueVideoPlays:"Unique Video plays",avgAttentionSpan:"Avg Attention span",totalInVideoCtaClicks:"Total In video CTA clicks",totalPageCtaClicks:"Total Page CTA clicks",topSalesRepsHeading:"Top Sales Reps",topSalesRepsHeadingDesc:"Depicts a quick overview of the top-performing sales reps.",topSalesRepsEmptyState:"Oops! No data to show. Please add your team to view this report.",topSalesRepsLockState:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report."},SsoConfig:{SetupMsg:"Setup SSO target url and certificates here",SsoConf:"SSO Configuration",targetUrl:"Target URL",logoutUrl:"Logout URL",domain:"Your IDP domain",cert:"X.509 Certificate",certNote:"Copy and paste values between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----",issuer:"Issuer URL",metadata:"Metadata URL (Optional)",exDomain:"(Ex.) hippovideo.okta.com",exTargetUrl:"Your IdP's Single-Sign-On URL",exIssuer:"Your IdP's Issuer URL.",exCert:"Your IdP's X.509 Certificate here.",exMetadata:"Your IdP's remote metadata URL",exLogoutUrl:"Single Logout URL (Optional)",notValidDomain:"Enter valid Domain",notValidCert:"Enter valid certificate",notValidUrl:"Valid Target URL is required",notValidIssuer:"Enter valid Issuer URL",confirmUpdate:"UPDATE",updateCancel:"CANCEL",updateTitle:"Update SSO Configuration",updateSsoMsg:"SSO is already configured for the given domain. Updating with new details will erase old Saml SSO configurations. Update?",wantToProceed:"Confirm Update?",acsUrl:"https://www.hippovideo.io/users/auth/saml/callback?domain=<your_idp_domain>",acsBaseUrl:"https://www.hippovideo.io/users/auth/saml/callback?domain=",acsLabel:"ACS URL"},userBasedReports:{teamReports:"Team Reports",overallTeamReports:"OVERALL TEAM REPORTS",detailedReport:"Detailed Report",downloadReports:"Download Reports",dateRange:"Date range",lastSevenDays:"Last 7 days",lastThirtyDays:"Last 30 days",lastNinetyDays:"Last 90 days",custom:"Custom",videosCreated:"Videos Created",videosPlayed:"Videos Played",contactsCreated:"Contacts Added",overallVideosShared:"Videos Shared",showingPage:"Showing Page",first:"First",last:"Last",lastAccessedDate:"Last Accessed date",videoAttnSpan:"Video Attention Span",pageTime:"Page Time",uniqueViewers:"Unique Viewers",salesPageCreated:"Sales Pages Created",teamVideoCreated:"Videos created",totalContacts:"Total contacts",videosShared:"Videos Shared",firstName:"First Name",firstNameTip:"The first name of the team member.",avgPageTime:"Avg. Page Time",teamVideoCreatedTip:"Total number of videos created by the team member.",salesPageCreatedTip:"Total number of sales pages created by the team member.",uniqueViewersTip:"Total number of unique viewers who have played the videos.",avgPageTimeTip:"The average amount of time spent on the sales page by the unique viewers.",videoAttnSpanTip:"The average watch percentage of all the videos played by unique viewers.",videosSharedTip:"Total number of videos shared by the team member. The count includes videos shared in emails or through tracking enabled links from Hippo Video and other tools.",lastAccessedDateTip:"The last date on which the account was accessed by the team member. Eligibility conditions include any asset creation, modification, or sharing.",videosCreatedTip:"Total number of videos created by all the users in the account for the selected time period.",videosPlayedTip:"Total number of videos played by the unique viewers for the selected time period.",contactsCreatedTip:"Total contacts added by all the users in the account for the selected time period.",overallVideosSharedTip:"Total number of videos shared by all the users in the account. The count includes videos shared in emails or through tracking enabled links from Hippo Video and other tools.",loadingText:"Please wait... All good things take time.",noReportsFound:"Oops! No results found.",downloadAsCsv:".csv file",downloadAsXls:".xls file",detailedVideosCreated:"Videos Created",detailedVideoPlays:"Videos Played",detailedUniquePlays:"Unique Viewers",detailedPageTime:"Avg Page Time",detailedAttentionSpan:"Avg Video Attention Span",detailedVideosShared:"Videos Shared",currentCountText:"Current",previousCountText:"Previous",videoCreationTooltip:"This widget shows how the top 20 users have performed based on the number of videos created",videoPlayTooltip:"This widget shows how the top 20 users have performed based on the number of videos played",uniquePlayTooltip:"This widget shows how the top 20 users have performed based on the number of unique viewers",avgPageTimeTooltip:"This widget shows how the top 20 users have performed based on the average time spent on a sales page",attnSpanTooltip:"This widget shows how the top 20 users have performed based on the average watch percentage of the videos played",videoShareTooltip:"This widget shows how the top 20 users have performed based on the number of videos sharedin emails or through tracking enabled links from Hippo Video and other tools.",rankText:"Rank",rankFormula:"Position = Previous rank - Current rank",noRankChange:"Indicates that there is no change in the previous and current rank.",previousVideoCreation:"Total number of videos created by the team members in the previous time period.",currentVideoCreation:"Total number of videos created by the team members in the current time period.",previousVideoPlay:"Total number of videos played by the viewers in the previous time period.",currentVideoPlay:"Total number of videos played by the viewers in the current time period.",previousUniquePlay:"Total number of videos played by the unique viewers in the previous time period.",currentUniquePlay:"Total number of videos played by the unique viewers in the current time period.",previousAvgPageTime:"The average amount of time spent on the sales page by the unique viewers in the previous time period.",currentAvgPageTime:"The average amount of time spent on the sales page by the unique viewers in the current time period.",previousAttnSpan:"The average percentage of the videos watched by the unique viewers in the previous time period.",currentAttnSpan:"The average percentage of the videos watched by the unique viewers in the current time period.",previousVideoShare:"Total number of videos shared by the team members in the previous time period.",currentVideoShare:"Total number of videos shared by the team members in the current time period.",relativeRank:"The relative position of the user is calculated based on the difference between the previous and the current rank. The down and up arrow indicates depreciation or improvement respectively."},recorderUi:{reqButton:"REQUEST PERMISSION",Uploadtext:"If you're not ready to record your first video yet, try uploading a video to explore what we have in store for you",permissionsText:"",recordHelp:"Press Record to start!",overlayLighting:"Lighting",videoQualityText:"Video Quality",telepromptertext:"Teleprompter",lightingToolTip1:"Your Lighting",lightingToolTip2:"Status:",mirrorVideo:"Mirror Video",qualityHeading:"Your Video Quality",frameRateText:"Frame rate",resolutionText:"Max resolution supported",camQualityText:"Webcam quality",bestPractices:"Best Practices"},feedback:{unsubscribeSuccessfully:"You have been unsubscribed from the email successfully",unsubscribeErrorMsg:"Sorry, we could not unsubscribe you from the email cadence, Please reach out to support@hippovideo.io",validEmailMsg:"Please enter valid email"}},__tl:{validationMessages:{email:"దయచేసి మీ ఇమెయిల్ను నమోదు చేయండి",title:"దయచేసి శీర్షికను నమోదు చేయండి.",description:"దయచేసి గమనికలను నమోదు చేయండి.",catName:"దయచేసి వర్గం పేరుని నమోదు చేయండి.",phoneNumber:"దయచేసి ఫోన్ నంబర్ను నమోదు చేయండి.",name:"దయచేసి మీ పేరు నమోదు చేయండి.",testimonialName:"దయచేసి ప్రచార పేరుని నమోదు చేయండి.",firstName:"దయచేసి మీ మొదటి పేరుని నమోదు చేయండి.",lastName:"దయచేసి మీ చివరి పేరుని నమోదు చేయండి.",invalidAadhaarNumber:"చెల్లని ఆధార్ నంబర్.",thisFieldIsMandatory:"ఈ ఫీల్డ్ తప్పనిసరి"},wizImport:{note:"గమనిక",importVideo:"వీడియోను అప్లోడ్ చేయండి",importFromLocal:"స్థానిక నుండి దిగుమతి చేయండి",dragdropYourFiles:"మీ వీడియోను ఇక్కడ లాగి & డ్రాప్ చేయండి",browse:"ఎంచుకోండి",cancel:"చేయవద్దు",import:"దిగుమతి",supports:"మద్దతు",formatsWithMaxSize:"గరిష్టంగా ఫైల్ పరిమాణంతో ఫార్మాట్ చేయండి",proceed:"కొనసాగండి",changeFile:"వీడియోను మార్చండి",videosSelected:"ఎంచుకున్న వీడియో",importHelp:"మీరు కేవలం 1 వీడియోను ఎంచుకోవచ్చు.",loading:"లోడ్...",selectedFile:"ఎంచుకున్న వీడియో",videoTitle:"వీడియో శీర్షిక",addToCategory:"వర్గానికి జోడించు",addTags:"ట్యాగ్లను అనుసంధించు",description:"వివరణ",readMore:"మరింత చదవండి",readLess:"తక్కువ చదవండి",shareMsg:"ఇక్కడ ఆంధ్రప్రదేశ్ జన్మభూమి కోసం ఒక వీడియోను రికార్డ్ చేయండి ",unsupported:"ఈ ఫైల్కు మద్దతు లేదు. దయచేసి క్రింది పేర్కొన్న ఫైల్ రకాలను మాత్రమే ఉపయోగించండి."},progressMessages:{uploadingFile:"వీడియో అప్లోడ్ చేయబడుతోంది",videoUploadedWaiting:"వీడియో అప్లోడ్ అయ్యింది. కంప్రెస్ చేయడానికి వేచి ఉంది...",errorUploading:"వీడియోను అప్లోడ్ చేస్తున్నప్పుడు కొంత లోపం సంభవించింది",preparingFile:"వీడియోను సిద్ధం చేయబడుతోంది",videoIsCreating:"మీ వీడియో సృష్టించబడుతోంది"},labelContent:{district:"జిల్లా",mandal:"మండల్",panchayat:"పంచాయతీ / వార్డ్",aadhar:"ఆధార్ నంబర్"}},init:function(e){e||(e="undefined"!=typeof window&&window._i18n&&window._i18n.locale?window._i18n.locale:"undefined"!=typeof document&&document.documentElement.lang?document.documentElement.lang:"undefined"!=typeof navigator&&(navigator.languages||navigator.language||navigator.userLanguage)?((e=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||"root").toLowerCase():"root");var t=this["__"+e]||this.__root;if(t)for(var i in t)this[i]=t[i];var n=function(e,t){for(var i in t)switch(typeof e[i]){case"undefined":e[i]=t[i];break;case"object":n(e[i],t[i])}};n(this,this.__root)}};i.init(),e.exports=i},function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n,r=i(4),o=i.n(r),a=i(3).c.div(n||(n=o()(["\n margin-top: ",";\n margin-left: auto;\n margin-right: auto;\n\n /* Because the css of image-upload-progress-container is not defined properly and you will need to import entire wiz-delivery.scss file for this to work */\n .image-upload-progress-container {\n display: none;\n }\n"])),(function(e){return e.showSimpleEditor?"38px":"0"}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return I}));var n,r,o=i(1),a=i.n(o),s=i(69),l=i.n(s),c=i(3),d=i(95),u=i.n(d),p=i(62),h=i.n(p),f=i(4),m=i.n(f),g=c.c.div(n||(n=m()(["\n .progress-widget-header {\n position: relative;\n display: flex;\n align-items: center;\n width: 80%;\n border-bottom: 1px solid #E6E6E6;\n margin: 0 auto;\n &-progress-warpper {\n position: relative;\n }\n &-status-text {\n color: #000000;\n font: normal normal 600 14px/19px Open Sans;\n }\n &-percent-text {\n font: normal normal 600 14px/19px Open Sans;\n color: #000000;\n position: absolute;\n right: 0;\n }\n img {\n position: absolute;\n top: 11px;\n left: 10px;\n }\n }\n .progress-widget-content {\n width: 80%;\n margin: 0 auto;\n padding: 10px 10px;\n font: normal normal normal 12px/17px Open Sans;\n color: #6F6F6F;\n }\n"]))),v=c.c.div(r||(r=m()(["\n svg {\n width: 30px;\n height: 28px;\n .bg {\n fill: none;\n stroke-width: 2px;\n stroke: #E6E6E6;\n }\n .progress {\n fill: none;\n stroke-width: 2px;\n stroke: #F47A58;\n stroke-linecap: round;\n stroke-dasharray: 62.36;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n stroke-dashoffset: ",";\n transition: stroke-dashoffset 1s ease-in;\n }\n }\n"])),(function(e){return isNaN(e.progress)?"62":e.progress}));function y(e){var t=e.progressPercent,i=void 0===t?0:t,n=Object(o.useMemo)((function(){return 62-i/100*62}),[i]);return a.a.createElement(v,{progress:n},a.a.createElement("svg",null,a.a.createElement("circle",{className:"bg",cx:"15",cy:"15",r:"10"}),a.a.createElement("circle",{className:"progress two",cx:"15",cy:"15",r:"10"})))}var b,w=i(7),S={completedPercent:0,type:"upload"};function C(e){var t=e.recorder,i=e.onUploadComplete,n=e.onUploadError,r=Object(o.useState)(S),s=r[0],l=r[1],c=Object(o.useRef)(),d=Object(w.a)(s);return Object(o.useEffect)((function(){c.current||(c.current=setInterval((function(){try{t.getUploadDetails().then((function(e){return e&&e.completed?(i&&i(),clearInterval(c.current),void(c.current=null)):e&&e.error?(clearInterval(c.current),c.current=null,void n(e.errorType)):void l(e)})).catch((function(e){console.error("UPLOAD STATUS FETCH ERROR ",e),clearInterval(c.current),c.current=null}))}catch(e){console.error("UPLOAD PROGRESS EX ",e),clearInterval(c.current),c.current=null}}),1e3))})),a.a.createElement(g,null,a.a.createElement("div",{className:"progress-widget-header"},a.a.createElement("div",{className:"progress-widget-header-progress-warpper"},a.a.createElement(y,{progressPercent:s.completedPercent}),a.a.createElement("img",{src:Object(w.e)("/svg/rapi/webcam-icon.svg")})),a.a.createElement("div",{className:"progress-widget-header-status-text"},"Uploading video"),a.a.createElement("div",{className:"progress-widget-header-percent-text"},s.completedPercent,"%")),a.a.createElement("div",{className:"progress-widget-content"},a.a.createElement("div",null,d)))}var k,x=c.c.div(b||(b=m()(["\n margin: 0 auto;\n width: 90%;\n .hv-upload-error-screen-header {\n display: flex;\n align-items: center;\n padding-bottom: 10px;\n padding-top: 20px;\n border-bottom: 1px solid #e6e6e6;\n img {\n margin-right: 5px;\n }\n div {\n font: normal normal 600 14px/19px Open Sans;\n }\n }\n\n .hv-upload-error-screen-content {\n &-text {\n font: normal normal normal 12px/17px Open Sans;\n color: #212121;\n padding-top: 10px;\n }\n &-options-wrapper {\n text-align: center;\n padding: 20px 0px;\n }\n }\n"]))),_=i(19);function E(e){var t=e.downloadSources,i=e.onRetryUpload;return a.a.createElement(x,null,a.a.createElement("div",{className:"hv-upload-error-screen-header"},a.a.createElement("img",{src:Object(w.e)("/svg/rapi/error-circle-red.svg")}),a.a.createElement("div",null,"Upload Failed")),a.a.createElement("div",{className:"hv-upload-error-screen-content"},a.a.createElement("div",null,a.a.createElement("div",{className:"hv-upload-error-screen-content-text"},"Your video upload has failed! Below are the few options you can try."),a.a.createElement("div",{className:"hv-upload-error-screen-content-options-wrapper"},a.a.createElement(_.f,{style:{marginRight:"10px"},icon:Object(w.e)("/svg/rapi/download-icon.svg"),text:"Download Video",options:function(){var e=[];if(t)for(var i in t){var n=t[i];e.push({link:n,linkType:"download",downloadName:"Testing the name",linkName:"Download ".concat(i," source")})}return e}(),buttonFeature:_.b.DROPDOWN,dropdownPosition:_.e.TOP}),a.a.createElement(_.f,{text:"Retry Upload",onClickHandler:i})))))}var T=c.c.div(k||(k=m()(["\n max-width: 400px;\n min-width: 300px;\n border: 1px solid #E6E6E6;\n background-color: #ffffff;\n box-shadow: 0px 8px 12px #0000001A;\n border-radius: 8px;\n"])));function P(e){var t=e.recorder,i=e.onUploadComplete,n=Object(o.useState)(!1),r=n[0],s=n[1],l=Object(o.useRef)(),c=function(){var e=u()(h.a.mark((function e(i){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("SETTING UPLOAD ERROR >>> ",i),e.next=3,t.getRecordingObjectUrls();case 3:l.current=e.sent,console.log("SETTING UPLOAD ERROR >>> ",l.current),s(i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return a.a.createElement(T,null,r?a.a.createElement(E,{downloadSources:l.current,onRetryUpload:function(){t.retryUpload(),s(!1)}}):a.a.createElement(C,{recorder:t,onUploadComplete:i,onUploadError:c}))}function I(e,t){var i=R();l.a.render(a.a.createElement(c.a,{theme:t},a.a.createElement(P,{recorder:e,onUploadComplete:A})),i)}var A=function(){l.a.unmountComponentAtNode(document.getElementsByClassName("hv-upload-progress-widget")[0])},R=function(){if(document.getElementsByClassName("hv-upload-progress-widget").length>0)return document.getElementsByClassName("hv-upload-progress-widget")[0];var e=document.createElement("div");return e.className="hv-upload-progress-widget",e.style="position: fixed;bottom: 20px;right: 20px;",document.body.appendChild(e),e}},function(e,t,i){"use strict";var n=i(0),r=i.n(n),o=i(10),a=i(25),s=i.n(a),l=i(2),c=i(8),d=i(154),u=i.n(d),p=(i(82),i(96),i(180),i(200),i(23),i(145),i(103),i(54),i(67),{getImportedImageInfo:function(e){var t=e.upload_type,i={};return"local_file"===t?(i.upload_type="local_file",i.file_name=e.name,i.size=e.size,i.description=e.description||e.name):"existing_media"===t?(i.upload_type="existing_media",i.video_id=e.id):"gdrive"===t?(i.upload_type="gdrive",i.id=e.id,i.token_id=e.token_id):"url"===t&&(i.upload_type="url",i.url=e.url),i.contains_image=!0,i},getMfImage:function(e,t){var i=document.createElement("canvas");i.width=2e3,i.height=1125;var n=i.getContext("2d");n.fillStyle="white",n.fillRect(0,0,i.width,i.height),n.fillStyle="#2a2a2a";var r="image"===t?"360px":"300px";n.font="700 "+r+" Open Sans";var o="image"===t?"IMAGE":"WEBSITE";n.fillText("$"+o+e+"$",100,500),n.fillStyle="#969ca2",n.font="170px Open Sans";var a="G O E S H E R E".split("").join(String.fromCharCode(8201));return n.fillText(a,110,800),i.toDataURL("image/png")},getNewImageMfId:function(e,t){for(var i=[],n=[],r="image"===t,o=0;o<e.clips.length;o++){var a=e.clips[o];"image-mf"===a.footage.type&&(r?void 0!==a.footage.is_website&&"false"!==a.footage.is_website.toString()||(a.footage.image_id?n.push(Number(a.footage.image_id)):n.push(Number(a.footage.id))):a.footage.is_website&&"true"===a.footage.is_website.toString()&&n.push(Number(a.footage.image_id)),i.push(Number(a.footage.id)))}var s=this.getId(i);return{imageId:this.getId(n),footageId:s}},getId:function(e){for(var t=1;e.includes(t);)++t;return t}}),h=(i(90),{getPaletteConfig:function(e,t,i){var n=this,o={};return(HippoVideo.data.api.getProperty("showBrandingColorPalette")||i)&&(o={showSelectionPalette:!1,showPalette:!0,hideAfterPaletteSelect:!0,beforeShow:function(){var e=r()("."+t);return e.find("#showMoreContainer").remove(),e.addClass("palette-view"),e.find(".sp-picker-container .sp-top, .sp-picker-container .sp-input-container").hide(),e.find(".sp-picker-container").prepend("<div id='showMoreContainer'><div id='showMoreOption'>+ More Colors</div></div>"),e.find("#showMoreOption").off("click").on("click",{containerClassName:t,self:n},n.handleShowMore),!0},palette:[e]}),o},handleShowMore:function(e){var t=r()("."+e.data.containerClassName);e.data.self.showColorPicker(t)},showColorPicker:function(e){e.find(".sp-picker-container .sp-top, .sp-picker-container .sp-input-container").show(),e.removeClass("palette-view"),e.find("#showMoreContainer").remove()}}),f=i(5),m=i.n(f),g=i(30),v=i.n(g),y=i(128),b=i.n(y),w=i(9),S=i(22),C=i.n(S),k=i(420),x=i.n(k),_=(i(151),i(280)),E=(i(78),i(182)),T=i.n(E),P=i(37),I=i.n(P),A=i(38),R=i.n(A),O=i(51),N=i.n(O),D=i(55),L=i.n(D),M=i(42),B=i.n(M),F=(i(66),i(201),i(285),i(173),i(700),i(348),i(59),i(63),i(50),i(89),i(110),i(97),i(88),i(52),i(701),i(703),i(710),i(712),i(713),i(714),i(717),i(718),i(719),i(720),i(721),i(722),i(723),i(724),i(726),i(727),i(728),i(729),i(730),i(731),i(732),i(733),i(734),i(735),i(736),i(216),i(175),i(266),i(345),i(131)),V=i.n(F),U=i(227),z=i.n(U),j=i(228),H=i(422),q=i.n(H),$=i(423),W=i.n($),G=i(21);function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=B()(e);if(t){var r=B()(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return L()(this,i)}}var K="/media/search/web",J="/media/library",X="/media/recent",Q="/api/internal/media/gdrive/accounts",Z="/api/internal/google_api/drive/configure",ee="/api/internal/media/gdrive/list",te="/template_demo/fetch_image_url",ie="/video/drive/create",ne="/video/import/gdrive",re="/video/get_all_videos/",oe="/shopify/products",ae="/video_testimonial_setting",se="/video_page/fetch_carousel_link_thumbnail",le="/api/meta/get_content",ce="/video/import/generate_website_preview",de=function(e){N()(i,e);var t=Y(i);function i(){return I()(this,i),t.apply(this,arguments)}return R()(i,[{key:"searchFromWeb",value:function(e,t,i,n,r,o,a){G.default.call({url:K,type:"GET",data:{page:t,count:i,search_from:n,search_type:r,search_query:e},success:o,error:a})}},{key:"fetchTestimonialCategory",value:function(e,t){G.default.call({url:ae,type:"GET",success:e,error:t})}},{key:"fetchCarouselThumbnailLink",value:function(e,t,i){G.default.call({url:se,type:"POST",data:e,success:t,error:i})}},{key:"fetchTestimonial",value:function(e,t,i){G.default.call({url:ae+"/"+e.categoryId+"/"+e.offset,type:"GET",success:t,error:i})}},{key:"searchMediaLibrary",value:function(e,t,i){G.default.call({url:J,type:"GET",data:{genre:e},success:t,error:i})}},{key:"fetchRecentlyUsed",value:function(e,t,i,n){G.default.call({url:X,type:"GET",data:{type:e,page:t},success:i,error:n})}},{key:"fetchShopifyProducts",value:function(e,t,i){var n=oe;e&&(n=n+"?shop="+e),G.default.call({url:n,type:"GET",success:t,error:i})}},{key:"fetchDriveAccounts",value:function(e,t){G.default.call({url:Q,type:"GET",success:e,error:t})}},{key:"configureDrive",value:function(e,t,i){G.default.call({url:Z,type:"POST",data:e,success:t,error:i})}},{key:"fetchFilesFromDrive",value:function(e,t,i){"custom"==e.file_type&&(e.file_type="image, video"),G.default.call({url:ee,type:"GET",data:e,success:t,error:i})}},{key:"importImageAndFetchUrl",value:function(e,t,i){G.default.call({url:te,type:"POST",data:e,success:t,error:i})}},{key:"createVideoFromDrive",value:function(e,t,i){G.default.call({url:ie,type:"POST",data:e,success:t,error:i})}},{key:"importVideoToDrive",value:function(e,t,i){G.default.call({url:ne,type:"POST",data:e,success:t,error:i,timeout:3e5})}},{key:"fetchLibraryVideos",value:function(e,t,i){G.default.call({url:re,type:"GET",data:e,success:t,error:i})}},{key:"getMetaDataContent",value:function(e,t,i){G.default.call({url:le,type:"POST",data:e,success:t,error:i})}},{key:"getPreviewFromWebSiteLink",value:function(e,t,i){G.default.call({url:ce,type:"POST",data:e,success:t,error:i})}}]),i}(s.a.Model),ue=(i(738),i(739),i(740),i(741),i(742),i(743),i(744),i(745),i(746),i(424)),pe=i.n(ue),he=i(116),fe=i.n(he),me=i(281),ge=i.n(me),ve=i(282),ye=i.n(ve);i(747);var be={ACCEPTED_VIDEO_TYPES:["video/quicktime","video/mp4","video/x-flv","video/*"],SUPPORTED_DOC_FORMATS:[".pdf",".ppt",".pptx",".doc",".docx",".txt",".rtf",".xlsx",".csv"],SUPPORTED_IMAGE_FORMATS:[".png",".jpg",".jpeg",".bmp",".gif"],ACCEPT_IMAGE_ONLY_FORMATS:[".png",".jpg",".jpeg",".bmp"]};i(206),i(60),i(270),i(65);function we(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return Se(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Se(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var Ce={isDocument:function(e){if(!e)return!1;var t=e.substring(e.lastIndexOf(".")),i=be.SUPPORTED_DOC_FORMATS.includes(t);return i},isImage:function(e){if(!e)return!1;var t=e.substring(e.lastIndexOf(".")),i=be.SUPPORTED_IMAGE_FORMATS.includes(t);return i},listIncludes:function(e,t){var i,n=t.id,r=we(e);try{for(r.s();!(i=r.n()).done;){if(n===i.value.id)return!0}}catch(e){r.e(e)}finally{r.f()}return!1}},ke=i(283),xe=i.n(ke);i(126),i(757);function _e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=B()(e);if(t){var r=B()(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return L()(this,i)}}var Ee=["image/png","image/jpeg","image/jpg","image/bmp","image/gif"],Te=["webm","mkv","flv","vob","ogv","avi","mov","qt","wmv","yuv","rm","rmvb","asf","amv","mp4","quicktime","m4p","m4v","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv","f4v","f4p","f4a","f4b","swf"],Pe=be.SUPPORTED_IMAGE_FORMATS,Ie=["audio/*"],Ae=be.ACCEPTED_VIDEO_TYPES,Re=be.ACCEPT_IMAGE_ONLY_FORMATS,Oe=be.SUPPORTED_DOC_FORMATS,Ne=["application/pdf"],De="Something went wrong. Please contact support@hippovideo.io",Le=[{category:"audioLibrary",type:"s3"},{category:"existingMedia",type:"existing_media"},{category:"webSearch",type:"url"},{category:"gDrive",type:"gdrive"},{category:"shopify",type:"shopify"},{category:"videoLibrary",type:"video_library"}],Me=function(e){N()(i,e);var t=_e(i);function i(){return I()(this,i),t.apply(this,arguments)}return R()(i,[{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.gDriveToken=void 0,this.nextWebFileId=0,this.totalLocalFiles=0,this.isDrawOpen=!1,this.webSearchPerPage=20,this.recentlyUsedNextPage=0,this.driveNextPageToken=void 0,this.selectList=[],this.driveAccounts=[],this.configuredDriveAccount=void 0,this.configuredDriveUserId=void 0,this.categoriesAndTags={},this.testimonialCategoriesList=void 0,this.isWebSearching=!1,this.isDrawForceClosed=!1,this.isMediaUploading=!1,this.isDriveInitializationChecked=!1,this.isLibraryVideoInitializationChecked=!1,this.contactId=e.contactId,this.contactEmail=e.contactEmail,this.$el=void 0===e.el?r()("#importMediaContainer"):e.el,this.importType=e.type||"image",this.onlyDoc=e.onlyDoc||!1,this.actionType=e.actionType,this.isMultiple=void 0===e.isMultiple||e.isMultiple,this.maximumFilesAllowed=e.maximumFilesAllowed||50,this.maximumPerFileSize=e.maximumPerFileSize||10,this.handleOneFileUpload=e.handleOneFileUpload||!1,this.mediaCategoryId=e.mediaCategoryId,this.isPrimaryVideoPresent=e.isPrimaryVideoPresent,this.showSelectedDrawer=!this.handleOneFileUpload,this.callbackMethodToHandleFiles=e.callbackMethodToHandleFiles||function(){},this.fromAddMore=e.fromAddMore,this.digest=void 0!==e.digest&&e.digest,this.callBack=e.importVideoPreview,this.closeImportCallback=e.closeImportCallback,this.allowCloseImportWhileUploading=void 0===e.allowCloseImportWhileUploading||e.allowCloseImportWhileUploading,this.isProEditImport=void 0!==e.isFromProEdit&&e.isFromProEdit,this.canShowVideoLibrary=this.isProEditImport||e.canShowVideoLibrary,this.callBackProEdit=void 0!==e.callBackProEdit&&e.callBackProEdit,this.canShowImageWebSearch=!("image"!==this.importType&&!e.canShowImageWebSearch),this.canShowShopify=!("image"!==this.importType&&!e.canShowShopify),this.canShowAddViaLink=e.canShowAddViaLink||!1,this.restrict_gif=e.restrict_gif||!1,this.virtualBgImage=e.virtualBgImage;var t=e.fromEdit||!1,i=l.default.getLocalStorageValue("defaultFolderId-"+HippoVideo.data.api.getProperty("userId"));this.selectedCategory=i||0,t&&(this.canShowShopify=!1,this.canShowImageWebSearch=!1),this.virtualBgImage&&(this.canShowShopify=!1),this.saveLibraryVideoAsNewAsset=void 0===e.saveLibraryVideoAsNewAsset||e.saveLibraryVideoAsNewAsset,this.importMediaCallback=e.importMediaCallback,this.showVideoImportPreview=void 0===e.showVideoImportPreview||e.showVideoImportPreview,this.canShowAudioLibrary=!("audio"!==this.importType&&!e.canShowAudioLibrary),this.canShowRecentlyUsed=null==e.canShowRecentlyUsed?!this.isVideoImport():e.canShowRecentlyUsed,this.canShowVideoLibraryMulti=null!=e.canShowVideoLibraryMulti&&e.canShowVideoLibraryMulti,this.isFromVideoPages=null!=e.fromVideoPages&&e.fromVideoPages,this.videoOnly=null!=e.videoOnly&&e.videoOnly,this.actionFrom="importLocalTab",this.canShowCreateVideoOption=!1,this.canShowTestimonial=this.isProEditImport&&HippoVideo.data.api.getProperty("isTestimonialEnabled"),this.canShowGdriveImport=null==e.canShowGdriveImport?!this.digest:e.canShowGdriveImport,this.canImportImageFromLibrary=null!=e.canShowImageLibrary?e.canShowImageLibrary:"image"===this.importType,this.canShowImportFromLocal=null==e.canShowImportFromLocal?!this.digest:e.canShowImportFromLocal,this.isSalesGettingStarted=void 0!==e.isSalesGettingStarted&&e.isSalesGettingStarted,this.cancelRedirect=!0,this.fromSalesForce=e.fromSalesForce||!1,this.isOutlookSpecific=e.isOutlookSpecific||!1,this.leadName=e.leadName,this.isShopifyUser=HippoVideo.AppRegistry.isShopifyUser,this.isFromCarousel=e.isFromCarousel||!1,this.isIntroOutroVideo=e.isIntroOutroVideo||!1,this.renderingFirstTime=!0,this.fileChangeCount=0,this.importStartTime=null,this.customParams=e.customParams,this.importList=[],this.selectedFilesList=this.selectList,this.showAddMoreTemplate=null==e.showAddMoreTemplate||e.showAddMoreTemplate,this.isMultipleImageImport=!1,this.canShowWebLink=e.canShowWebLink||!1,this.virtualBGFromWeblink=e.virtualBGFromWeblink||!1,this.preserveTransparencyEnabled=HippoVideo.data.api.getProperty("preserveTransparencyEnabled"),this.videoLibraryBodyEl=r()("#importVideoLibraryContainer");try{this.Logger=HippoVideo.Class.Logger.getLogger("ImportMediaView")}catch(e){console.log(e)}this.isFromVideoPages&&(this.onVideoSubmit=e.onVideoSubmit,this.pageId=e.pageId,this.alreadySelectedFiles=e.selectedFiles,this.thumbDomain=e.thumbDomain,this.canShowCreateVideoOption=!0),this.onlyDoc&&(this.canShowCreateVideoOption=!1),this.search={type:"image",query:"",page:1,perPage:30},!this.isDocOrVideoImport()&&!this.isImageImport()||this.digest?this.render():(this.cancelRedirect=!1,this.fetchTagsAndCategories(),this.canShowTestimonial&&this.fetchTestimonialCategories())}},{key:"render",value:function(){var e,t=this;switch(this.importType){case"image":e=this.restrict_gif?Re:Pe;break;case"audio":e=Ie;break;case"video":e=Ae,this.isProEditImport&&(e=(e=e+","+Pe)+","+Ie);break;case"doc":e=Oe+","+Pe,this.onlyDoc&&(e=Oe);break;case"custom":e=this.customParams.acceptedFormats}W()(o.default.extend(w.b.wizImport,{title:this.getImportTitle(),type:this.importType,isMultiple:this.isMultiple,fromVideoPages:this.isFromVideoPages,maxFileSize:this.maximumPerFileSize,formatsList:this.getSupportedFormats(),acceptFormats:e,selectedTitle:this.getSelectedTitle(),canShowImportFromLocal:this.canShowImportFromLocal,handleOneFileUpload:this.handleOneFileUpload,isPrimaryVideoPresent:this.isPrimaryVideoPresent,canShowRecentlyUsed:this.canShowRecentlyUsed,canShowAudioLibrary:this.canShowAudioLibrary,canShowVideoLibraryMulti:this.canShowVideoLibraryMulti,canShowImageWebSearch:this.canShowImageWebSearch,canShowGdriveImport:this.canShowGdriveImport,canShowWebLink:this.canShowWebLink,virtualBGFromWeblink:this.virtualBGFromWeblink,canImportImageFromLibrary:this.canImportImageFromLibrary,canShowShopify:this.canShowShopify,canShowVideoLibrary:this.canShowVideoLibrary,canShowTestimonial:this.canShowTestimonial,canUploadImageFromLocal:this.isProEditImport,canUploadAudioFromLocal:this.isProEditImport,testimonialcategories:this.testimonialCategoriesList?this.testimonialCategoriesList.categories:void 0,categories:this.categoriesAndTags.categories,canShowCreateVideoOption:this.canShowCreateVideoOption,isShopifyUser:this.isShopifyUser,canShowAddViaLink:this.canShowAddViaLink,isOnlyDoc:this.onlyDoc}),(function(e,i){t.$el.empty().append(r()(i)),t.initializeEventListeners(),t.initUI(),t.$el.show(),"image"!=t.importType||"shopify"!=t.actionType&&!t.isShopifyUser||(r()("#import").text("Create Video"),r()("#importShopifyTab").click());var n={theme:"hippocategory",width:"element",dropdownCssClass:"et-dropdown-css"};t.isMultiple&&r()("#selectedImageGallery").sortable({containment:"parent",cursor:"move",tolerance:"pointer",items:"> .media-video",placeholder:"image image-placeholder"}),r()("#shopifyProducts").select2(n),r()("#shopifyStores").select2(n)}))}},{key:"initializeEventListeners",value:function(){this.closeImport=this.closeImport.bind(this),this.filesChangeHandler=this.filesChangeHandler.bind(this),this.filesDropHandler=this.filesDropHandler.bind(this),this.playerSlideChanged=this.playerSlideChanged.bind(this),this.fetchRecentlyUsed=this.fetchRecentlyUsed.bind(this),this.showGoogleLogin=this.showGoogleLogin.bind(this),this.videoConverting=this.videoConverting.bind(this),this.handleImportButtonClick=this.handleImportButtonClick.bind(this),this.importVideoFileAndProceed=this.importVideoFileAndProceed.bind(this),this.updateVideoImportDetails=this.updateVideoImportDetails.bind(this),this.enableChangeFileBtn=this.enableChangeFileBtn.bind(this),this.disableChangeFileBtn=this.disableChangeFileBtn.bind(this),this.cancelHandler=this.cancelHandler.bind(this),this._searchCategoriesList=this._searchCategoriesList.bind(this),this._clearCategoriesList=this._clearCategoriesList.bind(this),this.refreshLibrary=this.refreshLibrary.bind(this),this.showReloadBtn=this.showReloadBtn.bind(this),this.initializeShopify=this.initializeShopify.bind(this),this.shopifyProductsChanged=this.shopifyProductsChanged.bind(this),this.shopifyStoreChanged=this.shopifyStoreChanged.bind(this),this.showShopifyGallery=this.showShopifyGallery.bind(this),this.showShopifyLogin=this.showShopifyLogin.bind(this),this.linkAddToDrawer=this.linkAddToDrawer.bind(this),this.openDrawer=this.openCloseDrawer.bind(this,!0),this.closeDrawer=this.openCloseDrawer.bind(this,!1),this.videoCompressing=this.videoCompressing.bind(this),this.showNameAndThumbnailEdit=this.showNameAndThumbnailEdit.bind(this),this._handleLinkIconChange=this._handleLinkIconChange.bind(this),this.filterTags=this.filterTags.bind(this),this.renderTags=this.renderTags.bind(this),this.$el.find("#import").bind("click",this.handleImportButtonClick),this.$el.find("#closeImport, #cancelImport").bind("click",this.closeImport),this.$el.find(".tab").bind("click",{context:this},this.changeTab),this.$el.find("#libraryRefresh").bind("click",{context:this},this.refreshLibrary),this.$el.find("#browseFiles").bind("click",(function(){r()("#importFileUpload")[0].click()})),this.$el.find("#importFileUpload").bind("change",this.filesChangeHandler),this.$el.find(".search-from-web-box").bind("keypress",{context:this},this.searchBoxkeyPressed),this.$el.find(".search-icon").bind("click",{context:this},this.searchImageClicked),this.$el.find("#loadMoreContent").bind("click",{context:this},this.loadMoreImages),this.$el.find("#importLocalBanner, #importLocalContent").bind("dragover",!1).bind("drop",this.filesDropHandler),this.$el.find("#mediaGenre").bind("change",{context:this},this.mediaGenreChanged),this.$el.find("#driveAccessBtn").bind("click",{context:this},this.showGoogleLogin),this.$el.find("#shopifyAccessBtn").bind("click",{context:this},this.showShopifyLogin),this.$el.find("#driveAccounts").bind("change",{context:this},this.driveAccountChanged),this.$el.find("#shopifyProducts").bind("change",{context:this},this.shopifyProductsChanged),this.$el.find("#shopifyStores").bind("change",{context:this},this.shopifyStoreChanged),this.$el.find("#loadMoreContentDrive").bind("click",{context:this},this.loadMoreFromDrive),this.$el.find("#cancelVideoForm").bind("click",{context:this},this.cancelHandler),this.$el.find("#submitVideoForm").bind("click",{context:this},this.updateVideoImportDetails),this.$el.find("#videoCatList").bind("change",{context:this},this.videoCategoryChange),this.$el.find("#importVideoLibraryContainer").bind("scroll",{context:this},o.default.debounce(this.onScrollHandle,300)),this.$el.find(".hv-content-type-tags").bind("click",{context:this},this.handleContentTypeChange),this.$el.find("#testimonialCatList").bind("change",{context:this},this.testimonialCategoryChange),this.$el.find("#importVideoLibrarySearch").bind("keypress",{context:this},this._searchCategoriesList),this.$el.find("#clear-icon").bind("click",{context:this},this._clearCategoriesList),this.$el.find("#loadMoreLibraryVideo").bind("click",{context:this},this.loadMoreFromVideoLibrary),this.$el.find("#createVideoFromImportBtn").bind("click",{context:this},this.showReloadBtn),this.initializeImportViaWebSiteLink=this.initializeImportViaWebSiteLink.bind(this),this.addWebsiteLink=this.addWebsiteLink.bind(this),this.showWebSitePreview=this.showWebSitePreview.bind(this),this.showWebSitePreviewError=this.showWebSitePreviewError.bind(this),this.getFileFromUrl=this.getFileFromUrl.bind(this),this.dataURLtoFile=this.dataURLtoFile.bind(this),this.documentImportSuccessCallback=this.documentImportSuccessCallback.bind(this),this.ImportGdriveVideoSuccessCallback=this.ImportGdriveVideoSuccessCallback.bind(this),this.webLinkUrlChanged=this.webLinkUrlChanged.bind(this),this.showSelectedDrawer&&(this.$el.find("#openDrawHandle").bind("click",this.openDrawer),this.$el.find("#closeDrawHandle").bind("click",this.closeDrawer),this.$el.find(".scroll-arrow").bind("click",{context:this},this.scrollSelectionStrip))}},{key:"initUI",value:function(){this.$el.find("#importFromLocal").removeClass("hide"),this.virtualBGFromWeblink&&this.$el.find("#importViaWebLink").click(),this.isFromVideoPages&&(this.$el.find("#footnote").remove(),(this.isPrimaryVideoPresent||this.isMultiple||!this.isFromCarousel)&&this.$el.find("#importVideoLibraryTabMulti").click()),this.updateSelectedCounter(),setTimeout((function(){var e=r()(window).outerHeight(),t=r()(".import-media-container").outerHeight();e>t?r()(".import-media-container").css("margin-top",Math.floor((e-t)/2)+"px"):r()(".import-media-container").css("margin-top","15px")}),50)}},{key:"fetchTagsAndCategories",value:function(){var e=this;(new v.a).getTagsVideoCategories((function(t){e.isDocumentImport()||e.isImageImport()||(e.maximumPerFileSize=t.import_file_size),e.numImportsExceeded=t.num_imports_exceeded,e.categoriesAndTags=t||{},e.canShowTestimonial||e.render()}),(function(e){c.default.showBannerAlert(De,4e3,"error")}))}},{key:"fetchTestimonialCategories",value:function(){var e=this;(new de).fetchTestimonialCategory((function(t){e.testimonialCategoriesList=t||{},e.render()}),(function(t){e.$el.find(".import-drive-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")}))}},{key:"getSupportedFormats",value:function(){return this.isProEditImport?"MP4, MKV, FLV, MPEG, 3GP, MP3, JPEG, PNG and GIF":this.isVideoImport()?"MP4, MKV, FLV, MPEG, 3GP":this.isAudioImport()?"MP3, WMA, WAV":this.isImageImport()?"JPEG, PNG, BMP":this.isDocumentImport()?"PDF, PPT, PPTX, DOC, DOCX, TXT, RTF, JPG, JPEG, PNG, BMP, GIF":void 0}},{key:"getImportTitle",value:function(){if(this.isProEditImport)return w.b.wizImport.importMedia;var e;switch(this.importType){case"image":e=w.b.wizImport.importImages;break;case"audio":e=w.b.wizImport.importAudio;break;case"video":e="replace"==this.actionType?w.b.wizPreview.replaceVideo:w.b.wizImport.importVideo;break;case"custom":var t=this.customParams.name;e=w.b.wizImport.custom[t].title;break;default:e=w.b.wizImport.importImages}return e}},{key:"getSelectedTitle",value:function(){var e;switch(this.importType){case"image":e=w.b.wizImport.imagesSelected;break;case"audio":e=w.b.wizImport.audiosSelected;break;case"video":e=w.b.wizImport.videosSelected;break;case"custom":var t=this.customParams.name;e=w.b.wizImport.custom[t].selectionTitle;break;default:e=w.b.wizImport.imagesSelected}return e}},{key:"isVideoImport",value:function(){return"video"===this.importType}},{key:"isAudioImport",value:function(){return"audio"===this.importType}},{key:"isImageImport",value:function(){return"image"===this.importType}},{key:"isDocumentImport",value:function(){return"doc"===this.importType}},{key:"isCustomImport",value:function(){return"custom"===this.importType}},{key:"isDocOrVideoImport",value:function(){var e=this.isDocumentImport(),t=this.isVideoImport(),i=this.isCustomImport()&&this.customParams.isDocOrVideoImport,n=e||t||i;return n}},{key:"filesChangeHandler",value:function(e){var t=(e.target||[]).files;return this.importStartTime||(this.importStartTime=(new Date).getTime()/1e3),this.processImportFiles(t),!1}},{key:"filesDropHandler",value:function(e){var t=[],i=(e.originalEvent.dataTransfer||[]).items;this.importStartTime||(this.importStartTime=(new Date).getTime()/1e3),e.preventDefault();for(var n=0;n<i.length;n++)t.push(i[n].getAsFile());this.processImportFiles(t)}},{key:"canUploadVideoinBackground",value:function(e){return void 0!==e?this.isLocalVideoImport=this.isVideoImport()&&!this.isProEditImport&&this.showVideoImportPreview&&"local_file"===e[0].upload_type:void 0===this.isLocalVideoImport&&(this.isLocalVideoImport=this.isVideoImport()&&!this.isProEditImport&&this.showVideoImportPreview&&"gdrive"!==this.getSelectedMedia()[0].upload_type),this.isLocalVideoImport}},{key:"startVideoUploadAfterFileSelection",value:function(){this.canUploadVideoinBackground()&&(this.disableChangeFileBtn(),this.assetId?(this.abortVideoUpload(),this.updateVideoS3Key()):this.importVideoFileAndProceed())}},{key:"processImportFiles",value:function(e){var t=this,i=this.validateAndGetFiles(e),n=i.length,r=0,o=this;if(n>0)for(var a=function(e){var a=i[e];a.id="localFile-".concat(o.totalLocalFiles++),a.sizeFormatted="".concat((a.size/1048576).toFixed(2)," MB"),a.isImagePreview=o.isImageImport(),a.isAudioPreview=o.isAudioImport(),a.isVideoPreview=o.isVideoImport(),a.upload_type="local_file";if(o.isAudioImport()||o.isDocOrVideoImport()){if(!1,a.isImagePreview=!0,a.preview_url="/img/film-hippo.png",++r>=n&&1==n)o.displayLocalFiles(i),o.$el.find("#importLocalBanner").addClass("hide"),t.startVideoUploadAfterFileSelection();else if(n>1)return Ce.isDocument(a.name)||Ce.isImage(a.name)?(t.isMultipleImageImport=!0,t.totalFiles=n,t.validatedImageFiles=i,t.displayLocalFiles(i),o.$el.find("#importLocalBanner").addClass("hide")):(t.hippoYogaLoader=new j.a({id:"importVideoFormContainer"}),t.hippoYogaLoader.render(),t.hippoYogaLoader.updateProgressText(w.b.progressMessages.preparingFile),t.$el.find("#tabContainer, .import-footer, #importFromLocal").toggleClass("hide"),t.totalFiles=n,t.processMultipleVideoImport(i)),"break"}else{var s=new FileReader;s.onload=function(e){a.local_src=e.target.result,a.preview_url=s.result,++r>=n&&(o.displayLocalFiles(i),o.$el.find("#importLocalBanner").addClass("hide"))},s.readAsDataURL(a)}},s=0;s<n;s++){if("break"===a(s))break}}},{key:"imageLoadedCallback",value:function(e){r()(e.target.parentElement).find(".animated-background").fadeOut("slow")}},{key:"searchBoxkeyPressed",value:function(e){var t=e.data.context,i=e.key,n=t.$el.find("#searchFromWebTextBox").val().trim()||"";"Enter"===i&&n&&!t.isWebSearching&&t.searchImages(n,1)}},{key:"searchImageClicked",value:function(e){var t=e.data.context,i=t.$el.find("#searchFromWebTextBox").val().trim()||"";i&&!t.isWebSearching&&t.searchImages(i,1)}},{key:"searchImages",value:function(e,t){var i=this,n=!1;this.isWebSearching=!0,this.$el.find(".search-icon").addClass("hide"),this.$el.find(".import-spin-loading").removeClass("hide"),this.$el.find(".search-from-web-box").val(e),l.default.trackInThirdPartyTools("Import-Pop - Image Web Searching ",{}),(new de).searchFromWeb(e,t,this.webSearchPerPage,"flickr","image",(function(r){e!==i.search.query&&i.$el.find("#importWebContent").empty(),i.displayWebFiles(r),i.search.query=e,n=!r.has_photos,(new de).searchFromWeb(e,t,i.webSearchPerPage,"pexels","image",(function(e){i.displayWebFiles(e),i.$el.find(".search-icon").removeClass("hide"),i.$el.find(".import-spin-loading").addClass("hide"),i.isWebSearching=!1,(n=n&&!e.has_photos)&&0===i.$el.find("#importWebContent .image").length&&!i.isWebSearching?(i.$el.find("#webSearchEmptyState").removeClass("hide"),i.$el.find("#loadMoreContent").addClass("hide")):(i.$el.find("#webSearchEmptyState").addClass("hide"),i.$el.find("#loadMoreContent").removeClass("hide"))}),(function(e){i.isWebSearching=!1,i.$el.find(".search-icon").removeClass("hide"),i.$el.find(".import-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while searching Images from pexels :: ",stackTrace:JSON.stringify(e)})}))}),(function(e){i.isWebSearching=!1,i.$el.find(".search-icon").removeClass("hide"),i.$el.find(".import-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while searching Images from Flickr :: ",stackTrace:JSON.stringify(e)})}))}},{key:"mediaGenreChanged",value:function(e){var t=e.data.context,i=r()(e.target).val();t.searchMediaFromLibrary(i),l.default.trackInThirdPartyTools("Import-Pop - Media Genre changed to ".concat(i),{})}},{key:"searchMediaFromLibrary",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"jazz";this.$el.find(".import-spin-loading").removeClass("hide"),(new de).searchMediaLibrary(t,(function(t){fe()(o.default.extend(w.b.wizImport,{files:t.audio,type:"audio",isSortable:!1,showDelete:!1,isMultiple:e.isMultiple,showControls:!0,showAddMoreTemplate:!1,category:"audioLibrary"}),(function(t,i){e.$el.find("#importLibraryContent").empty().append(r()(i)),e.$el.find(".import-spin-loading").addClass("hide"),e.$el.find("#importLibraryContent .image").unbind().bind("click",{context:e},e.toggleMediaSelection),e.initializeAudioPlayerActions()}))}),(function(t){c.default.showBannerAlert(De,4e3,"error"),e.$el.find(".import-spin-loading").addClass("hide")}))}},{key:"fetchRecentlyUsed",value:function(){var e=this;this.$el.find(".import-recent-spin-loading").removeClass("hide"),this.isFetchingRecentlyUsed=!0,(new de).fetchRecentlyUsed(this.importType,this.recentlyUsedNextPage,(function(t){fe()(o.default.extend(w.b.wizImport,{files:t.urls,type:e.importType,isSortable:!1,showDelete:!1,isMultiple:e.isMultiple,showControls:!0,showAddMoreTemplate:!1,category:"existingMedia"}),(function(i,n){e.recentlyUsedNextPage++,e.isFetchingRecentlyUsed=!1,e.$el.find("#recentlyUsedContent").append(r()(n)),e.$el.find(".import-recent-spin-loading").addClass("hide"),e.$el.find("#recentlyUsedContent .gallery-view").one("load",{context:e},e.imageLoadedCallback),e.$el.find("#recentlyUsedContent .image").unbind().bind("click",{context:e},e.toggleMediaSelection),t.has_more?e.$el.find("#loadMoreContentrecent").unbind().bind("click",e.fetchRecentlyUsed).removeClass("hide"):e.$el.find("#loadMoreContentrecent").addClass("hide"),0===e.$el.find("#recentlyUsedContent .image").length?(e.isFetchingRecentlyUsed=!0,e.$el.find("#recentlyUsedEmptyState").removeClass("hide")):e.$el.find("#recentlyUsedEmptyState").addClass("hide"),e.initializeAudioPlayerActions()}))}),(function(t){e.isFetchingRecentlyUsed=!1,c.default.showBannerAlert(De,4e3,"error"),e.$el.find(".import-recent-spin-loading").addClass("hide")}))}},{key:"loadMoreImages",value:function(e){var t=e.data.context,i=t.search.query||"";i&&!t.isWebSearching&&t.searchImages(i,++t.search.page)}},{key:"toggleMediaSelection",value:function(e){var t=e.data.context,i=t.selectedFilesList,n=e.currentTarget,a=t.getSelectedMedia(),s=r()(n).find("img")[0],d=r()(n).find("input")[0],u=s.dataset.thumbnailurl;if(!r()(e.target).hasClass("player-progress"))if(r()(n).hasClass("selected"))t.removeFileFromSelection(n.id);else if(t.handleOneFileUpload&&1===a.length&&t.removeFileFromSelection(a[0].id),t.getSelectedMedia().length<t.maximumFilesAllowed){r()(n).addClass("selected");var p=n.dataset.isDocument,h=n.dataset.isImage,f=n.dataset.fileExt;if(n.id.includes("local")){var m=o.default.findIndex(i,{id:n.id}),g=i.splice(m,1);g[0].local_src=s.src,g[0].upload_type="local_file",g[0].is_document=p,g[0].is_image=h,g[0].file_ext=f,t.addFilesToSelectedList(g)}else{var v=o.default.where(Le,{category:s.dataset.category})[0]||[],y="audioLibrary"===s.dataset.category?void 0:s.dataset.url;t.isFromVideoPages&&(y=u=d.dataset.thumbnail);var b=n.id;"importImgLibTab"==t.actionFrom&&(y=u=d.dataset.thumbnail,t.isProEditImport&&(b=n.dataset.assetDetails)),t.addFilesToSelectedList([{id:b,upload_type:v.type,url:y,name:s.dataset.name,description:s.dataset.description,bucket:s.dataset.bucket,key:s.dataset.key,thumbnail_url:u,video_id:b,video_token:n.dataset.token,token_id:t.gDriveToken,is_document:p,is_image:h,file_ext:f,duration:s.dataset.duration}])}}else c.default.showBannerAlert("You can select a maximum of ".concat(t.maximumFilesAllowed," ").concat(t.importType," files to import."),3e3,"error"),l.default.trackInThirdPartyTools("Import-Pop - User selecting more than max files ",{}),t.isDrawOpen||t.$el.find("#openDrawHandle")[0].click()}},{key:"scrollSelectionStrip",value:function(e){var t=e.data.context,i=t.$el.find("#selectedImageGallery").innerWidth(),n=t.$el.find("#selectedImageGallery").scrollLeft(),o=r()(e.currentTarget).hasClass("scroll-left")?n-i:n+i;t.$el.find("#selectedImageGallery").animate({scrollLeft:o},"slow")}},{key:"handlePlayPauseMedia",value:function(e){var t=e.data.context,i=e.currentTarget.dataset.footage,n=t.$el.find("#".concat(i," .media-controls")).hasClass("playing");t.$el.find(".image .media-controls").removeClass("playing"),t.$el.find(".image .audio-player").each((function(){this.pause()})),n||(t.$el.find("#".concat(i," .media-controls")).addClass("playing"),t.$el.find("#".concat(i," .audio-player"))[0].play()),e.stopPropagation()}},{key:"handleLoadedMetaData",value:function(e){var t=e.data.context,i=e.currentTarget.dataset.footage;t.$el.find("#".concat(i," .media-duration")).text(Number(this.duration/60).toFixed(2)),t.$el.find("#".concat(i," .player-progress")).slider({orientation:"horizontal",range:"min",min:0,max:this.duration,slide:t.playerSlideChanged}),r()(this).unbind().bind("timeupdate",{context:t},t.handleMediaTimeUpdate),t.$el.find("#".concat(i)).addClass("media-ready")}},{key:"handleMediaTimeUpdate",value:function(e){var t=e.data.context,i=e.currentTarget.dataset.footage;t.$el.find("#".concat(i," .player-progress")).slider("option","value",this.currentTime)}},{key:"playerSlideChanged",value:function(e,t){var i=e.currentTarget.dataset.footage;this.$el.find("#".concat(i," .audio-player"))[0].currentTime=t.value,e.stopPropagation()}},{key:"addLocalFilesToSelectedList",value:function(e){var t=this.getSelectedMedia().length,i=this.maximumFilesAllowed;this.isFromVideoPages&&"importLocalTab"===this.actionFrom?this.addToSelectedList(e):t<i&&(e.length<=i-t?this.addFilesToSelectedList(e):this.addFilesToSelectedList(e.splice(0,i-t)))}},{key:"displayLocalFiles",value:function(e){var t=this;fe()(o.default.extend(w.b.wizImport,{files:e,type:this.importType,isSortable:!1,showDelete:!1,showControls:!0,isMultiple:this.isMultiple,showAddMoreTemplate:this.showAddMoreTemplate,category:"localFile",acceptFormats:this.customParams&&this.customParams.acceptedFormats}),(function(i,n){t.canUploadVideoinBackground(e)&&r()("#importLocalContent .media-video").hide(),t.$el.find("#importLocalContent .secondary-upload").remove(),t.$el.find("#importLocalContent").append(r()(n)),t.$el.find("#importLocalContentContainer").removeClass("hide"),t.addLocalFilesToSelectedList(e),t.initializeLocalGalleryActions(),t.initializeAudioPlayerActions(),t.isDocOrVideoImport()&&t.handleImportButtonClick()}))}},{key:"displayWebFiles",value:function(e){var t=this,i=e.urls||[];i.forEach((function(e){e.id="webFile-".concat(t.nextWebFileId++)})),fe()(o.default.extend(w.b.wizImport,{files:i,type:"image",isSortable:!1,showDelete:!1,showControls:!0,isMultiple:this.isMultiple,showAddMoreTemplate:!1,category:"webSearch"}),(function(e,i){t.$el.find("#importWebContent").append(r()(i)),t.$el.find("#importWebContentContainer").removeClass("hide"),t.$el.find("#importWebBanner").addClass("hide").empty(),t.$el.find("#importWebContent .gallery-view").one("load",{context:t},t.imageLoadedCallback),t.$el.find("#importWebContent .image").unbind().bind("click",{context:t},t.toggleMediaSelection),t.$el.find("#footerPoweredBy, #loadMoreContent").removeClass("hide"),t.$el.find("#footnote").addClass("hide")}))}},{key:"initializeLocalGalleryActions",value:function(){var e=this;this.$el.find("#importLocalContent .gallery-view").one("load",{context:this},this.imageLoadedCallback),this.$el.find("#importLocalContent .gallery-delete").unbind().bind("click",{context:this},this.deleteFile),this.$el.find("#importLocalContent .image").unbind().bind("click",{context:this},this.toggleMediaSelection),this.$el.find("#secondaryUploadContainer").unbind().bind("click",(function(){e.$el.find("#secondaryFileUpload")[0].click()})),this.$el.find("#secondaryFileUpload").unbind().bind("change",this.filesChangeHandler)}},{key:"initializeAudioPlayerActions",value:function(){("audio"===this.importType||this.isProEditImport)&&(this.$el.find(".image .play-icon").unbind().bind("click",{context:this},this.handlePlayPauseMedia),this.$el.find(".image .audio-player").on("loadedmetadata",{context:this},this.handleLoadedMetaData))}},{key:"initializeMediaLibrary",value:function(){0===this.$el.find("#importLibraryContent .image").length&&this.searchMediaFromLibrary()}},{key:"initializeRecentlyUsed",value:function(){0!==this.$el.find("#recentlyUsedContent .image").length||this.isFetchingRecentlyUsed||this.fetchRecentlyUsed()}},{key:"initializeShopify",value:function(e){var t=this;this.$el.find(".import-shopify-spin-loading").removeClass("hide"),this.$el.find(".import-shopify-spin-loading").addClass("show"),this.$el.find("#importshopifyEmptyState").removeClass("hide"),this.$el.find("#importshopifyEmptyState").addClass("hide"),(new de).fetchShopifyProducts(e,(function(i){if(t.products=i,t.products.code>0)r()("#importShopifyBanner").show(),r()("#importshopifyContainer").hide(),t.$el.find(".import-shopify-spin-loading").removeClass("hide"),t.$el.find(".import-web-banner-shopify").removeClass("hide");else{var n,o=[];t.$el.find("#shopifyProducts").empty(),t.$el.find("#shopifyStores").empty(),r()("#importshopifyContainer").show(),t.$el.find("#shopifyProductsFilter").removeClass("hide");for(var a=0;a<t.products.access_params.data.length;a++)n=r()("<option>").text(t.products.access_params.data[a].app_url).attr("value",t.products.access_params.data[a].app_url),t.products.access_params.data[a].app_url==e&&n.attr("selected","selected"),t.$el.find("#shopifyStores").append(n),t.isShopifyUser||a==t.products.access_params.data.length-1&&(n=r()("<option>").text("Add Store").attr("value","Add Store"),t.$el.find("#shopifyStores").append(n));if(n=null,t.products.data.products.length){r()("#shopifyProductWrap").show();for(var s=0;s<t.products.data.products.length;s++)if(t.products.data.products[s].images&&t.products.data.products[s].images.length>0){if(n=r()("<option>").text(t.products.data.products[s].title).attr("value",t.products.data.products[s].id),0==o.length){n.attr("selected","selected");for(var l=0;l<t.products.data.products[s].images.length;l++){var c={id:t.products.data.products[s].images[l].id,url:t.products.data.products[s].images[l].src,upload_type:"url",title:t.products.data.products[s].title};o.push(c)}}t.$el.find("#shopifyProducts").append(n)}}else n=r()("<option>").text("No products found").attr("value",""),t.$el.find("#shopifyProducts").append(n);t.showShopifyGallery(o),t.isShopifyUser&&(t.removeAllFilesFromSelection(),r()("#selectedImageGallery").empty(),t.addFilesToSelectedList(o))}}),(function(e){t.isFetchingDrive=!1,t.$el.find(".import-shopify-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")}))}},{key:"shopifyStoreChanged",value:function(){var e=this;document.getElementById("importshopifyContent").innerHTML="";var t=r()("#shopifyStores :selected").val();"Add Store"==t?(this.$el.find("#importshopifyContainer").addClass("hide"),this.$el.find("#importShopifyBanner").removeClass("hide"),this.$el.find("#importFromShopify").removeClass("hide"),this.isShopifyUser&&(this.removeAllFilesFromSelection(),r()("#selectedImageGallery").empty(),this.addFilesToSelectedList([])),r()("#shopifyGrantAccessCancel").off("click").on("click",(function(){e.$el.find("#importshopifyContainer").removeClass("hide"),e.$el.find("#importShopifyBanner").addClass("hide"),e.initializeShopify()}))):this.initializeShopify(t)}},{key:"shopifyProductsChanged",value:function(e){var t=[];document.getElementById("importshopifyContent").innerHTML="",this.$el.find("#importshopifyEmptyState").removeClass("hide"),this.$el.find("#importshopifyEmptyState").addClass("hide");for(var i=0;i<this.products.data.products.length;i++)if(this.products.data.products[i].id==r()("#shopifyProducts").val()){for(var n=0;n<this.products.data.products[i].images.length;n++){var o={id:this.products.data.products[i].images[n].id,url:this.products.data.products[i].images[n].src,upload_type:"url",title:this.products.data.products[i].title};t.push(o)}this.showShopifyGallery(t),this.isShopifyUser&&(this.removeAllFilesFromSelection(),r()("#selectedImageGallery").empty(),this.addFilesToSelectedList(t))}}},{key:"showShopifyGallery",value:function(e){var t=this;fe()(o.default.extend(w.b.wizImport,{files:e,type:this.importType,isSortable:!1,showDelete:!1,showControls:!0,isMultiple:this.isMultiple,showAddMoreTemplate:!1,category:"shopify"}),(function(e,i){t.isFetchingDrive=!1,t.$el.find("#importshopifyContent").append(r()(i)),t.$el.find(".import-shopify-spin-loading").addClass("hide"),t.$el.find("#importshopifyContent .gallery-view").one("load",{context:t},t.imageLoadedCallback),t.$el.find("#importshopifyContent .image").unbind().bind("click",{context:t},t.toggleMediaSelection),0===t.$el.find("#importshopifyContent .image").length?t.$el.find("#importshopifyEmptyState").removeClass("hide"):t.$el.find("#importshopifyEmptyState").addClass("hide"),json.page_token?(t.driveNextPageToken=json.page_token,t.$el.find("#loadMoreContentDrive").removeClass("hide")):(t.driveNextPageToken=void 0,t.$el.find("#loadMoreContentDrive").addClass("hide"))}))}},{key:"initializeGDrive",value:function(){var e=this;0!==this.$el.find("#importDriveContent .image").length||this.isDriveInitializationChecked||this.isFetchingDrive||(this.$el.find(".import-drive-spin-loading").removeClass("hide"),this.isFetchingDrive=!0,(new de).fetchDriveAccounts((function(t){var i=(t||[]).accounts;if(i.length>0){e.driveAccounts=i,e.updateAccountsSelect();var n=i[0];n.account_email=n.email,e.fetchFilesFromDrive(n)}else e.$el.find("#importDriveBanner").removeClass("hide"),e.$el.find(".import-drive-spin-loading").addClass("hide")}),(function(t){e.isFetchingDrive=!1,e.$el.find(".import-drive-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")})))}},{key:"refreshLibrary",value:function(){this.$el.find("#importVideoLibraryContent").empty(),this.$el.find("#loadMoreLibraryVideo").addClass("hide"),this.$el.find("#importVideoLibrarySearch").val(""),this.isLibraryVideoInitializationChecked=!1,this.isFetchingLibraryVideos=!1,this.initializeVideoLibrary()}},{key:"initializeVideoLibrary",value:function(){var e=this;r()("#importVideoLibraryl").removeClass("hide"),this.$el.find("#importVideoLibraryContent").empty(),this.$el.find("#loadMoreLibraryVideo,#testimonialCatList,#videoCatFilter, #videoLibrarySearch, .tag-filter,.hv-content-type-container").addClass("hide"),this.$el.find("#importVideoLibrarySearch").val(""),this.isFetchingLibraryVideos=!1,ge()(o.default.extend(w.b.wizImport,{categories:this.categoriesAndTags.categories}),(function(t,i){if(!e.isFetchingLibraryVideos){e.renderTags(),e.$el.find(".import-library-spin-loading").removeClass("hide"),e.isFetchingLibraryVideos=!0,e.offset=0;var n=0;e.categoriesAndTags.default_cat_id>0?(n=e.categoriesAndTags.default_cat_id,e.$el.find("#videoCatList").val(n)):e.$el.find("#videoCatList").length>0&&parseInt(e.$el.find("#videoCatList").val())>0&&(n=parseInt(e.$el.find("#videoCatList").val()));var o={offset:0,categoryId:n,fetch_recording_configuration:!0};e.fetchLibraryVideos(o)}e.videoLibraryBodyEl=r()("#importVideoLibraryContainer")}))}},{key:"renderTags",value:function(){this.TagInput=HippoVideo.render(xe.a,{actionHandler:this.filterTags,testId:"import-lib-tags",bordered:!0},document.getElementById("libCategories"))}},{key:"filterTags",value:function(e,t){if(this.filterTagList=e.map((function(e){return t?e.name:e.id})),!t){var i={offset:0,categoryId:this.selectedCategory};this.fetchLibraryVideos(i)}}},{key:"initializeTestimonial",value:function(){var e=this;this.$el.find("#importVideoLibraryContent").empty(),this.$el.find("#loadMoreLibraryVideo,#videoCatList,#videoLibrarySearch,#videoCatFilter, .tag-filter,.hv-content-type-container").addClass("hide"),this.isFetchingTestimonialVideos=!1,ge()(o.default.extend(w.b.wizImport,{testimonialcategories:this.testimonialCategoriesList.categories}),(function(t,i){if(!e.isFetchingTestimonialVideos){e.$el.find(".import-library-spin-loading").removeClass("hide"),e.isFetchingTestimonialVideos=!0,e.offset=0;var n=e.testimonialCategoriesList.categories[0].id;e.$el.find("#testimonialCatList").length>0&&parseInt(e.$el.find("#testimonialCatList").val())>0&&(n=parseInt(e.$el.find("#testimonialCatList").val()));var r={offset:0,categoryId:n};e.fetchTestimonialVideos(r)}}))}},{key:"videoCategoryChange",value:function(e){var t=e.data.context;t.$el.find(".fetching-library-videos-loading").removeClass("hide"),t.offset=0,t.selectedCategory=e.target.value;var i={offset:0,categoryId:e.target.value};t.$el.find("#importVideoLibraryContent").empty(),l.default.setLocalStorageValue("defaultFolderId-"+HippoVideo.data.api.getProperty("userId"),e.target.value),t.fetchLibraryVideos(i)}},{key:"onScrollHandle",value:function(e){var t=e.data.context;if(t.canLoadOnScroll()){var i=t.videoLibraryBodyEl.scrollTop();if(t.videoLibraryBodyEl[0].scrollHeight-i<t.videoLibraryBodyEl[0].clientHeight+5){t.offset=t.offset+20,t.$el.find(".fetching-library-videos-loading").removeClass("hide"),t.$el.find("#loadMoreLibraryVideo").addClass("hide");var n="0"===r()("#videoCatList").val()?"":r()("#videoCatList").val(),o={offset:t.offset,categoryId:n};t.fetchLibraryVideos(o)}}}},{key:"handleContentTypeChange",value:function(e){var t,i=e.data.context;t={offset:0,categoryId:"0"===r()("#videoCatList").val()?"":r()("#videoCatList").val()},r()("#"+e.target.id).hasClass("selected")?(r()("#"+e.target.id).removeClass("selected"),i.$el.find(".fetching-library-videos-loading").removeClass("hide"),i.$el.find("#importVideoLibraryContent").empty()):(r()("#"+e.target.id).addClass("selected"),i.$el.find(".fetching-library-videos-loading").removeClass("hide"),i.$el.find("#importVideoLibraryContent").empty()),i.offset=0,i.fetchLibraryVideos(t)}},{key:"testimonialCategoryChange",value:function(e){var t=e.data.context;t.$el.find(".fetching-videos-loading").removeClass("hide");var i={offset:0,categoryId:e.target.value};t.$el.find("#importVideoLibraryContent").empty(),t.fetchTestimonialVideos(i)}},{key:"fetchLibraryVideos",value:function(e){var t=this;if("importVideoLibrarylTab"==this.actionFrom&&(e.fetch_videos=!0),this.isFromVideoPages){if(e.fetch_videos=this.videoOnly,this.filterTagList&&this.filterTagList.length){var i=this.filterTagList.toString();e.filter_by_tag_ids=i}this.onlyDoc&&(e.fetch_images=!1,e.fetch_videos=!1,e.fetch_documents=!0),this.searchWord&&(e.search_type=1,e.search_word=encodeURIComponent(this.searchWord))}"importImgLibTab"==this.actionFrom&&(e.fetch_images=!0,e.fetch_videos=!1),this.canImportImageFromLibrary||0!=this.videoOnly||"importVideoLibrarylTab"==this.actionFrom||"importImgLibTab"==this.actionFrom||0!=this.onlyDoc?(r()(".hv-content-type-container").addClass("disp-none"),r()("#importVideoLibraryContainer").addClass("hv-content-type-Notpresent")):(e=this.fetchContentTypeChanges(e),r()(".hv-content-type-container").removeClass("disp-none"),r()("#importVideoLibraryContainer").removeClass("hv-content-type-Notpresent")),(new de).fetchLibraryVideos(e,(function(e){"importVideoLibrarylTab"!==t.actionFrom&&"importVideoLibraryTabMulti"!==t.actionFrom&&"importImgLibTab"!==t.actionFrom||t.appendLibraryVideos(e)}),(function(e){t.$el.find(".import-drive-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")}))}},{key:"fetchContentTypeChanges",value:function(e){for(var t=r()(".hv-content-type-tags"),i=0;i<t.length;i++)r()("#"+t[i].id).hasClass("selected")?e[r()("#"+t[i].id).attr("data-id")]=!0:e[r()("#"+t[i].id).attr("data-id")]=!1;return e}},{key:"fetchTestimonialVideos",value:function(e){var t=this;(new de).fetchTestimonial(e,(function(e){t.appendTestimonialVideos(e)}),(function(e){t.isFetchingTestimonialVideos=!1,t.$el.find(".import-drive-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")}))}},{key:"appendTestimonialVideos",value:function(e){var t=this,i=this;0==this.offset?this.json=e:r.a.each(e.categories,(function(e,t){i.json.libraries.push(t)})),ye()(o.default.extend(w.b.wizImport,{libraries:this.json.libraries,current_asset_id:parseInt(window.location.pathname.split("/")[3]),category:"importImgLibTab"==this.actionFrom?"existingMedia":"videoLibrary"}),(function(e,n){t.$el.find(".import-library-spin-loading").addClass("hide"),t.$el.find(".fetching-videos-loading").addClass("hide"),t.$el.find(".fetching-library-videos-loading").addClass("hide"),t.$el.find("#importVideoLibraryContainer,#videoCatFilter, #testimonialCatList, .tag-filter,.hv-content-type-container").removeClass("hide"),t.$el.find("#importVideoLibraryContent").empty().append(r()(n)).removeClass("hide"),i.isFromVideoPages&&0==i.selectedFilesList.length&&0!=i.alreadySelectedFiles.length&&i.addFilesToSelectedList(i.alreadySelectedFiles),t.$el.find("#importVideoLibraryContent .image").unbind().bind("click",{context:t},t.toggleMediaSelection),0===t.$el.find("#importVideoLibraryContent .image").length?t.$el.find("#importVideoLibrayEmptyState").removeClass("hide"):t.$el.find("#importVideoLibrayEmptyState").addClass("hide"),t.json.num_videos>t.offset+20?t.$el.find("#loadMoreLibraryVideo").removeClass("hide"):t.$el.find("#loadMoreLibraryVideo").addClass("hide"),t.mediaCategoryId&&t.$el.find("#importVideoCategories").val(t.mediaCategoryId).trigger("change")}))}},{key:"canLoadOnScroll",value:function(){return!(r()("#importVideoLibraryContent").find(".image").length<=0)&&this.json.num_videos>this.offset+20}},{key:"appendLibraryVideos",value:function(e){var t=this,i=this;0==this.offset||e.is_search?this.json=e:r.a.each(e.libraries,(function(e,t){i.json.libraries.push(t)})),ye()(o.default.extend(w.b.wizImport,{libraries:this.json.libraries,current_asset_id:parseInt(window.location.pathname.split("/")[3]),category:"importImgLibTab"==this.actionFrom?"existingMedia":"videoLibrary"}),(function(e,n){if(t.$el.find(".import-library-spin-loading").addClass("hide"),t.$el.find(".fetching-videos-loading").addClass("hide"),t.$el.find(".fetching-library-videos-loading,#testimonialCatList").addClass("hide"),t.$el.find("#importVideoLibraryContainer, #videoCatFilter,#videoCatList, #videoLibrarySearch,.tag-filter,.hv-content-type-container").removeClass("hide"),t.$el.find("#importVideoLibraryContent").empty().append(r()(n)).removeClass("hide"),i.isFromVideoPages)if(i.renderingFirstTime&&0==i.selectedFilesList.length&&0!=i.alreadySelectedFiles.length)i.addFilesToSelectedList(i.alreadySelectedFiles),i.renderingFirstTime=!1;else if(0!=i.selectedFilesList.length){i.$el.find("#selectedImageGallery").empty();var o=T()(i.selectedFilesList);i.selectedFilesList.length=0,i.addFilesToSelectedList(o)}t.$el.find("#importVideoLibraryContent .image").unbind().bind("click",{context:t},t.toggleMediaSelection),0===t.$el.find("#importVideoLibraryContent .image").length?t.$el.find("#importVideoLibrayEmptyState").removeClass("hide"):t.$el.find("#importVideoLibrayEmptyState").addClass("hide"),t.json.num_videos>t.offset+20?t.$el.find("#loadMoreLibraryVideo").removeClass("hide"):t.$el.find("#loadMoreLibraryVideo").addClass("hide"),t.mediaCategoryId&&t.$el.find("#importVideoCategories").val(t.mediaCategoryId).trigger("change")}))}},{key:"_searchCategoriesList",value:function(e){var t=e.target.value,i=e.data.context;if(13==e.keyCode){var n=this;if(null!=t&&""!==t.trim()){i.$el.find(".fetching-library-videos-loading").removeClass("hide"),t=t.trim(),this.searchWord=t;var o={search_word:encodeURIComponent(t),categoryId:"0"===r()("#videoCatList").val()?"":r()("#videoCatList").val(),from:0,search_type:1};"importVideoLibrarylTab"==this.actionFrom&&(o.fetch_videos=!0),this.isFromVideoPages&&(o.fetch_videos=this.videoOnly,this.filterTagList&&this.filterTagList.length&&(o.filter_by_tag_ids=this.filterTagList)),"importImgLibTab"==this.actionFrom&&(o.fetch_images=!0,o.fetch_videos=!1),this.onlyDoc&&(o.fetch_images=!1,o.fetch_videos=!1,o.fetch_documents=!0),this.canImportImageFromLibrary||0!=this.videoOnly||"importVideoLibrarylTab"==this.actionFrom||"importImgLibTab"==this.actionFrom||(o=i.fetchContentTypeChanges(o)),(new v.a).searchLibrary(o,(function(e){e.is_search=!0,e.key_word=t,n.appendLibraryVideos(e)}))}else{i.$el.find(".fetching-library-videos-loading").removeClass("hide"),i.$el.find("#loadMoreLibraryVideo").addClass("hide");var a="0"===r()("#videoCatList").val()?"":r()("#videoCatList").val(),s={offset:i.offset,categoryId:a};i.fetchLibraryVideos(s)}}t.length>-1?(r()("#searchIcon").addClass("disp-none"),r()("#clear-icon").removeClass("disp-none")):(r()("#searchIcon").removeClass("disp-none"),r()("#clear-icon").addClass("disp-none"))}},{key:"_clearCategoriesList",value:function(e){var t=e.data.context;t.$el.find(".fetching-library-videos-loading").removeClass("hide"),t.$el.find("#loadMoreLibraryVideo").addClass("hide"),r()("#importVideoLibrarySearch").val(""),r()("#searchIcon").removeClass("disp-none"),r()("#clear-icon").addClass("disp-none");var i="0"===r()("#videoCatList").val()?"":r()("#videoCatList").val();t.offset=0;var n={offset:t.offset,categoryId:i};t.fetchLibraryVideos(n)}},{key:"updateAccountsSelect",value:function(e){var t,i=this,n=this.driveAccounts;this.$el.find("#driveAccounts").empty(),(n||[]).forEach((function(n,o){t=r()("<option>").text(n.email).attr("value",n.email),(!e&&0===o||e&&e===n.email)&&t.attr("selected","selected"),i.$el.find("#driveAccounts").append(t)})),this.$el.find("#driveAccounts").append(r()("<option>").text("Add new account").attr("value","new"))}},{key:"showShopifyLogin",value:function(e){var t=this,i=r()("#shopUrl").val();l.default.shopifyGrantAccess(i,(function(){t.$el.find(".import-web-banner-shopify").addClass("hide"),t.$el.find("#importshopifyContainer").removeClass("hide"),t.initializeShopify()})),l.default.trackInThirdPartyTools("Import-Pop - Shopify Login opened",{})}},{key:"showGoogleLogin",value:function(e){var t=this;l.default._openGoogleLogin("gdrive","https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/userinfo.email",(function(e,i,n){var r={auth_code:i,drive_import:!0};t.isDriveInitializationChecked=!0,(new de).configureDrive(r,(function(e){t.$el.find("#importDriveBanner").addClass("hide"),t.$el.find("#importDriveContent").empty(),t.driveAccounts.push(e),t.updateAccountsSelect(e.email),e.account_email=e.email,t.fetchFilesFromDrive(e),l.default.trackInThirdPartyTools("Import-Pop - G-Drive Configured",{})}),(function(e){t.isFetchingDrive=!1,c.default.showBannerAlert(De,4e3,"error")}))})),l.default.trackInThirdPartyTools("Import-Pop - G-Drive Login opened",{})}},{key:"driveAccountChanged",value:function(e){var t=e.data.context,i={},n=t.$el.find("#driveAccounts").val();"new"===n?t.showGoogleLogin():n!==t.configuredDriveAccount&&(i.email=n,i.user_id=(o.default.where(t.driveAccounts,{email:i.email})[0]||{}).user_id,t.$el.find("#importDriveContent").empty(),t.driveNextPageToken=void 0,i.account_email=i.email,t.fetchFilesFromDrive(i),l.default.trackInThirdPartyTools("Import-Pop - G-Drive Account changed",{}))}},{key:"fetchFilesFromDrive",value:function(e){var t=this,i={email:e.email,unique_id:e.user_id,file_type:this.importType,account_email:e.email};this.driveNextPageToken&&(i.page_token=this.driveNextPageToken),this.isFetchingDrive=!0,this.configuredDriveAccount=e.email,this.configuredDriveUserId=e.user_id,this.$el.find(".import-drive-spin-loading").removeClass("hide"),(new de).fetchFilesFromDrive(i,(function(e){var i=e.files;t.gDriveToken=e.token_id,fe()(o.default.extend(w.b.wizImport,{files:i,type:t.importType,isSortable:!1,showDelete:!1,showControls:!0,isMultiple:t.isMultiple,showAddMoreTemplate:!1,category:"gDrive"}),(function(i,n){t.isFetchingDrive=!1,t.$el.find("#importDriveContent").append(r()(n)),t.$el.find("#importDriveContainer, #accountsFilter").removeClass("hide"),t.$el.find(".import-drive-spin-loading").addClass("hide"),t.$el.find("#importDriveContent .gallery-view").one("load",{context:t},t.imageLoadedCallback),t.$el.find("#importDriveContent .image").unbind().bind("click",{context:t},t.toggleMediaSelection),0===t.$el.find("#importDriveContent .image").length?t.$el.find("#importDriveEmptyState").removeClass("hide"):t.$el.find("#importDriveEmptyState").addClass("hide"),e.page_token?(t.driveNextPageToken=e.page_token,t.$el.find("#loadMoreContentDrive").removeClass("hide")):(t.driveNextPageToken=void 0,t.$el.find("#loadMoreContentDrive").addClass("hide")),t.initializeAudioPlayerActions()}))}),(function(e){t.isFetchingDrive=!1,t.$el.find(".import-drive-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")}))}},{key:"loadMoreFromDrive",value:function(e){var t=e.data.context,i=t.configuredDriveAccount,n={email:i,account_email:i,user_id:(o.default.where(t.driveAccounts,{email:i})[0]||{}).user_id};t.fetchFilesFromDrive(n)}},{key:"validateAndGetFiles",value:function(e){var t=this.maximumFilesAllowed;(this.isFromVideoPages||"replace"===this.actionType)&&(this.selectedFilesList=[],t=1);for(var i,n,a,s,d=this.importType,u=this.getSelectedMedia().length,p=[],h=!1,f=!1,m=!1,g=0;g<e.length;g++){"image"==(a=e[g]).type.split("/")[0]&&"doc"==this.importType&&(this.maximumPerFileSize=5);var v=1024*this.maximumPerFileSize*1024;u+p.length>=t?f=!0:a.size>v?m=!0:this.isAudioImport()?a.type.includes("audio/")?p.push(a):h=!0:this.isImageImport()?o.default.contains(Ee,a.type)?p.push(a):h=!0:this.isProEditImport?(s=a.name.split(".").pop().toLowerCase(),o.default.contains(Te,a.type.split("video/")[1])||o.default.contains(Te,s)||o.default.contains(Ee,a.type)||a.type.includes("audio/")?p.push(a):h=!0):this.isVideoImport()?(s=a.name.split(".").pop().toLowerCase(),o.default.contains(Te,a.type.split("video/")[1])||o.default.contains(Te,s)?p.push(a):h=!0):(this.isDocumentImport()||this.isCustomImport())&&p.push(a)}return f&&(i="You can import a maximum of ".concat(t," ").concat(d," files."),n="CVFI - User selected more than max limit of files"),h&&(i="image"===d?"You can select only JPEG, PNG, BMP file types.":w.b.wizImport.unsupported,n="CVFI - User selected incorrect file types"),m&&(i="Please select ".concat(d," files of size less than ").concat(this.maximumPerFileSize," MB each."),n="CVFI - User selected larger files"),h&&f&&(i="Please select a maximum of ".concat(t," ").concat(d," files of valid file types."),n="CVFI - User selected incorrect file types and more number of files"),i&&(i=p.length>0?"".concat(i," Valid files will be imported."):i,c.default.showBannerAlert(i,4e3,"error"),l.default.trackInThirdPartyTools(n,{email:r()("#userEmail").val()})),0===p.length&&r()("#secondaryFileUpload, #importFileUpload").val(""),p}},{key:"getSelectedMedia",value:function(){return o.default.where(this.selectedFilesList,{isIncluded:!0})||[]}},{key:"handleImportButtonClick",value:function(){var e=this,t=[];if(!this.isFromVideoPages||"importVideoLibraryTabMulti"!=this.actionFrom&&"importViaLinkTab"!=this.actionFrom)this.isProEditImport||!this.showVideoImportPreview?(this.$el.find("#tabContainer, .import-body-container").addClass("hide"),this.$el.find("#import, #cancelImport").addClass("hide"),this.$el.find("#submitVideoForm, #cancelVideoForm").removeClass("hide"),this.importVideoFileAndProceed()):this.isDocOrVideoImport()?this.showVideoDetailsForm():"gdrive"==this.selectedFilesList[0].upload_type?this.processImageImportFromDrive():this.sendFilesToInitiator();else{var i=this.selectedFilesList;this.isFromCarousel&&r()("#vpt1AddCarouselVideos").removeClass("disp-none");var n="primary";if(this.isMultiple){n="carousel";var o={},a=0;i.forEach((function(e){o[e.id]=a,a++}));for(var s=[],l=r()("#selectedImageGallery .media-video"),c=0;c<l.length;c++)s.push(i[o[l[c].id]]);i=s}this.onlyDoc&&(n="doc"),i.forEach((function(i){if(i.already_selected)t.push(i),delete i.already_selected,delete i.isIncluded;else if(i.is_custom_link)t.push({id:i.id,thumbnail_url:i.thumbnail_url,file_ext:i.file_ext,is_custom_link:!0,custom_link:i.custom_link,title:i.title});else{var r=i.id.split("-")[0],o=i.id,a=e.thumbDomain+i.video_token,s=i.video_token,l=i.is_document,c=i.is_image,d=i.name,u=i.description,p=i.duration?i.duration.replace(/m|s/g,""):void 0;("primary"==n||c||l)&&(a+="?is_play=false"),t.push({asset_id:parseInt(r),thumbnail_url:a,id:o,token:s,file_ext:i.file_ext,is_document:l,is_image:c,title:d,duration:p,description:u})}}));var d={pageId:this.pageId,type:n,videos:t};this.onVideoSubmit(d),this.cancelRedirect=!1,this.closeImport()}}},{key:"showVideoDetailsForm",value:function(){var e=this,t=this.getSelectedMedia()[0],i=(t=o.default.clone(t)).name;if(this.isMultipleImageImport){for(var n=[],a=0;a<this.totalFiles;a++)n.push(this.validatedImageFiles[a].name);i=n.join(", ")}this.isFromVideoPages&&"importLocalTab"==this.actionFrom&&(t.thumbnail_url="");var s=o.default.extend({},w.b.wizImport,t,{tags:this.categoriesAndTags.tags,categories:this.categoriesAndTags.categories,isCategoryAvailable:this.categoriesAndTags.is_cat_available,isDocument:Ce.isDocument(t.name),isVideo:"video"===this.importType,digest:this.digest,showPreserveTransparency:"video/quicktime"==t.type&&this.preserveTransparencyEnabled,askVideoDetails:!(this.digest||this.isProEditImport||this.isSalesGettingStarted||"replace"==this.actionType),isMultipleImageImport:void 0!==this.isMultipleImageImport&&this.isMultipleImageImport,totalFileNamesText:i,totalFileCount:void 0===this.totalFiles?1:this.totalFiles});pe()(s,(function(t,i){e.$el.find("#tabContainer, .import-body-container").addClass("hide"),e.$el.find("#importVideoFormContainer").empty().append(r()(i)).removeClass("hide"),e.$el.find("#importVideoTitle").unbind("change").bind("change",{context:e},e.handleVideoTitleChange);var n=e.$el.find("#importVideoTitle").val();if(n){var o=n.split(".");o.length>1&&o.pop(),e.$el.find("#importVideoTitle").val(o.join(" "))}e.$el.find("#import, #cancelImport").addClass("hide"),e.$el.find("#submitVideoForm, #cancelVideoForm").removeClass("hide"),e.$el.find("#importVideoCategories").select2({multiple:!0,theme:"hippocategory"}),HippoVideo.render(xe.a,{actionHandler:function(t){return e.filterTags(t,!0)},title:"Add Tags",maxChars:60,testId:"import-video-tags",bordered:!1},document.getElementById("importVideoTags")),e.mediaCategoryId&&e.$el.find("#importVideoCategories").val(e.mediaCategoryId).trigger("change"),e.isMultipleImageImport&&e.$el.find("#cancelVideoForm").toggleClass("hide")}))}},{key:"cancelHandler",value:function(e){var t=e.data.context;if("replace"===t.actionType)r()("#importFileUpload")[0].click();else{var i=t.getSelectedMedia()[0],n=t.$el.find(".tab.active")[0].dataset.panelId;t.$el.find("#".concat(i.id))[0].click(),t.$el.find(".import-body-container, #submitVideoForm, #cancelVideoForm, .import-body-container").addClass("hide"),t.$el.find("#tabContainer, #import, #cancelImport, #".concat(n)).removeClass("hide")}}},{key:"sendFilesToInitiator",value:function(){l.default.trackInThirdPartyTools("Import-Pop - Import Button clicked",{}),this.callbackMethodToHandleFiles(o.default.where(this.selectedFilesList,{isIncluded:!0}),this.importType),this.cancelRedirect=!1,this.closeImport()}},{key:"importVideoFileAndProceed",value:function(){if(this.isMultipleImageImport&&this.validatedImageFiles)return this.fileTags=o.default.clone(this.filterTagList||[]),this.categoriesAndTags.is_cat_available&&(this.categories=this.$el.find("#importVideoCategories").val()),this.$el.find(".import-footer").toggleClass("hide"),this.hippoYogaLoader=new j.a({id:"importVideoFormContainer"}),this.hippoYogaLoader.render(),this.hippoYogaLoader.updateProgressText(w.b.progressMessages.preparingFile),void this.processMultipleImageImport(this.validatedImageFiles);this.submitVideoFormTime=(new Date).getTime()/1e3,this.$el.find("label.error").remove();var e,t,i,n=this.getSelectedMedia()[0];this.preserveTransparency=this.$el.find("#preserveTransparency").prop("checked");var a=!0;if(this.digest||this.isProEditImport||!this.showVideoImportPreview||this.isSalesGettingStarted||"replace"==this.actionType||((e=this.$el.find("#importVideoTitle").val().trim())&&(e=encodeURIComponent(e)),e?((t=this.$el.find("#importVideoDesc").val().trim())&&(t=encodeURIComponent(t)),i=o.default.clone(this.filterTagList||[])):(r()('<label class="error"> '.concat(w.b.wizImport.enterFileName," </label>")).insertBefore(this.$el.find("#importVideoTitle")),a=!1),this.categoriesAndTags.is_cat_available&&(this.categories=this.$el.find("#importVideoCategories").val())),this.sendGitomerTestimonialTrack("import button"),a){if(("importVideoLibrarylTab"===this.actionFrom||"importImgLibTab"===this.actionFrom)&&!this.saveLibraryVideoAsNewAsset){if(this.importMediaCallback){var s=n.id.split("-")[0];return void this.importMediaCallback({contactId:this.contactId,contactEmail:this.contactEmail,assetId:s,fileName:e,categories:this.categories,showVirtualBG:this.isWebcamOnlyVideo(s)})}return void(window.location.href="/video/view/".concat(n.id.split("-")[0]))}e=(e=(e=e||this.contactEmail)||(this.leadName?"Hi "+this.leadName:void 0))||"New Video",this.hippoYogaLoader=new j.a({id:"importVideoFormContainer"}),this.canUploadVideoinBackground()||(this.hippoYogaLoader.render(),this.hippoYogaLoader.updateProgressText(w.b.progressMessages.preparingFile),this.$el.find("#importVideoDetails, .import-footer").toggleClass("hide")),this.isProEditImport?this.callBackProEdit(this.actionFrom,n,this.$el,this.hippoYogaLoader,e,this.configuredDriveUserId):Ce.isDocument(n.name.toLowerCase())||Ce.isImage(n.name.toLowerCase())?this.processDocumentImport(e,t,i,n):"gdrive"===n.upload_type?this.processVideoImportFromDrive(e,t,i,n.id):(this.$el.find("#submitVideoForm").prop("disabled",!0),this.processVideoImport(e,t,i,n,this.preserveTransparency))}l.default.trackInThirdPartyTools("import video done")}},{key:"handleVideoTitleChange",value:function(e){var t=e.data.context;t.$el.find("label.error").remove();var i=t.$el.find("#importVideoTitle").val().trim();i&&(i=encodeURIComponent(i)),i||r()('<label class="error"> '.concat(w.b.wizImport.enterFileName," </label>")).insertBefore(t.$el.find("#importVideoTitle"))}},{key:"_getVideoModel",value:function(){return this.digest?new v.a({digest:this.digest}):new v.a}},{key:"isWebcamOnlyVideo",value:function(e){if(this.json){var t=this.json.libraries.filter((function(t){return t.id==e}))[0];if(t&&t.recording_config&&t.recording_config.webCam&&!t.recording_config.screenRecord)return!0}return!1}},{key:"processMultipleVideoImport",value:function(e){var t=this;e.length<1&&(this.multipleUploadedFiles=void 0,window.location.href="/video/library");var i=e[e.length-1],n=i.name.split(".")[0],r=this,o=(i.size||1)/1024,a=this._getVideoModel(),s={fileName:n,size:o,fromAdvancedEdit:!1,token:this.digest,contactId:this.contactId,initiator:"import_pop",source:(l.default.getQueryParams()||{}).source,isMobile:!1};a.createVideoImport(s,(function(n){var o={bucket:n.upload_bucket,key:n.upload_key,acl:"private",digest:t.digest},s=new V.a(o),l=n.authoring_asset_id,d=n.upload_video_id;t.assetId=l,t.isMediaUploading=!0,t.setWarningOnExit(l),e.pop(),t.multipleUploadedFiles=e,t.hippoYogaLoader.updateProgressText("("+(t.totalFiles-t.multipleUploadedFiles.length)+"/"+t.totalFiles+")"+w.b.progressMessages.uploadingFile),s.uploadFile(i,(function(e){t.hippoYogaLoader.updateProgress(e)}),(function(e){r.isMediaUploading=!1,t.hippoYogaLoader.updateProgressText("("+(t.totalFiles-t.multipleUploadedFiles.length)+"/"+t.totalFiles+")"+w.b.progressMessages.videoUploadedWaiting),a.convertVideo(l,d,!1,!0,r.digest,r.videoConverting,r.errorHandling)}),(function(e){r.isMediaUploading=!1,r.hippoYogaLoader.updateProgressText(w.b.progressMessages.errorUploading),c.default.postErrorsToLog({error:"Error while importing Video :: ",stackTrace:JSON.stringify(e)})})),t.setCategoriesForVideo(l)}),(function(e){r.isMediaUploading=!1,c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while importing Video in createVideoImport :: ",stackTrace:JSON.stringify(e)})}))}},{key:"processDocumentImport",value:function(e,t,i,n){var r=this,o=this,a=n.type,s=(n.size||1)/1024,l=this._getVideoModel(),d=this.categories,u=new FormData;a||(a="image"),u.append("initiator","hippo-website-image"),u.append("file_name",e),u.append("description",t),u.append("file_type",a),u.append("size",s.toString()),null!=d&&u.append("cat_ids",d),u.append("tags",i);var p=n.name.split(".").pop().toLowerCase();u.append("file_ext",p),l.documentImport(u,(function(s){if("gdrive"!=n.upload_type){var l={bucket:s.upload_bucket,key:s.upload_key,acl:"private",digest:r.digest};-1!=Ne.indexOf(a)&&(l.contentType=a);var d=new V.a(l),u=s.authoring_asset_id;s.upload_video_id;r.assetId=u,r.isMediaUploading=!0,r.setWarningOnExit(u),r.hippoYogaLoader.updateProgressText(w.b.progressMessages.uploadingFile),d.uploadFile(n,(function(e){}),(function(t){o.documentImportSuccessCallback(s,u,a,e)}),(function(e){o.isMediaUploading=!1,o.hippoYogaLoader.updateProgressText(w.b.progressMessages.doc.error),c.default.postErrorsToLog({error:"Error while importing Video :: ",stackTrace:JSON.stringify(e)})}))}else{var p={file_id:n.id,tags:(i||[]).join(","),file_name:e,fileType:a,description:t,gdrive_user_id:r.configuredDriveUserId,record_from_mobile:!1,file_extension:"hvr",render_not_required:!1,compress_required:!0};o.ImportGdriveVideoSuccessCallback(s,p,e)}}),(function(e){o.isMediaUploading=!1,c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while importing Video in createVideoImport :: ",stackTrace:JSON.stringify(e)})}))}},{key:"documentImportSuccessCallback",value:function(e,t,i,n){var r=this,o=this,a=this._getVideoModel();o.hippoYogaLoader.updateProgress(80);var s={authoring_id:e.authoring_id,asset_id:t,file_type:"document"};i&&"image"==i.split("/")[0]&&(s.file_type="image",o.imageFileName=n,a.compressVideo(t,!1,!0,o.videoCompressing,o.errorHandling)),this.setCategoriesForVideo(t),a.updateDocState(s,(function(e){if(window.onbeforeunload=function(){},o.isMediaUploading=!1,o.hippoYogaLoader.updateProgress(100),console.log("response file upload",e),i&&"image"!=i.split("/")[0]){var t=o.isFromCarousel?"carousel":o.onlyDoc?"doc":"primary";if(o.importMediaCallback)return void o.importMediaCallback({assetId:o.assetId,mediaLocation:t,fileName:n,response:e,categories:o.categories});null!=o.categories&&1==o.categories.length?window.location.href="/video/category/".concat(o.categories):window.location.href="/video/library"}}),(function(e){c.default.showBannerAlert(w.b.progressMessages.errorUpdatingState,3e3,"error"),setTimeout((function(){window.onbeforeunload=function(){},r.isMediaUploading=!1,o.hippoYogaLoader.updateProgress(100);var e=r.isFromCarousel?"carousel":"primary";if(r.importMediaCallback)return r.importMediaCallback({assetId:r.assetId,mediaLocation:e,fileName:n,categories:r.categories}),void r.closeImport();window.location.href="/video/library"}),3e3)}))}},{key:"processVideoImport",value:function(e,t,i,n,r){var o=this,a=this,s=(n.size||1)/1024;this.videoModel=this._getVideoModel();var d={fileName:e,description:t,size:s,tags:i,fromAdvancedEdit:!1,token:this.digest,contactId:this.contactId,initiator:"import_pop",source:(l.default.getQueryParams()||{}).source,isMobile:!1,isIntroOutroVideo:this.isIntroOutroVideo};this.videoModel.createVideoImport(d,(function(e){var t={bucket:e.upload_bucket,key:e.upload_key,acl:"private",digest:o.digest,enableChangeFileBtn:a.enableChangeFileBtn},i=new V.a(t);o.uploader=i,o.assetId=e.authoring_asset_id,o.upload_key=e.upload_key,o.videoId=e.upload_video_id,o.preserveTransparency=r,o.uploadeVideoId=e.upload_video_id,o.isMediaUploading=!0,o.$el.find("#submitVideoForm").prop("disabled",!1),o.setWarningOnExit(o.assetId),o.hippoYogaLoader&&o.hippoYogaLoader.updateProgressText(w.b.progressMessages.uploadingFile);var s={file_size:n.size,asset_id:o.assetId};o.uploadRateData=s,navigator&&navigator.connection&&(s.rtt=navigator.connection.rtt),o.videoModel.updateImportUploadRate(s),o.setCategoriesForVideo(o.assetId),o.uploadVideoFile(n)}),(function(e){a.isMediaUploading=!1,c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while importing Video in createVideoImport :: ",stackTrace:JSON.stringify(e)})}))}},{key:"enableChangeFileBtn",value:function(){this.$el.find("#cancelVideoForm").prop("disabled",!1)}},{key:"disableChangeFileBtn",value:function(){this.$el.find("#cancelVideoForm").prop("disabled",!0)}},{key:"uploadVideoFile",value:function(e){var t=this,i=(new Date).getTime(),n=this;this.uploader.uploadFile(e,(function(e){n.hippoYogaLoader&&n.hippoYogaLoader.updateProgress(e)}),(function(r){if(t.importStartTime&&t.submitVideoFormTime&&t.Logger){var o=(new Date).getTime()/1e3,a=t.submitVideoFormTime-t.importStartTime,s=o-t.submitVideoFormTime,l=Math.max(s-a,0);try{t.Logger.log(window.HippoVideo.Class.Level.INFO,"Import_video_upload_time: ",[{asset_id:t.assetId,file_size:e.size,form_filling_time:a,current_waiting_time:s,new_waiting_time:l,improvement:100*(1-l/s)}])}catch(e){console.log(e)}}n.isMediaUploading=!1,t.uploadRateData.total_time=(new Date).getTime()-i,t.videoModel.updateImportUploadRate(n.uploadRateData),t.isVideoUploaded=!0,t.initiateVideoConversion()}),(function(e){n.isMediaUploading=!1,t.uploadRateData.total_time=(new Date).getTime()-i,t.uploadRateData.error=!0,t.videoModel.updateImportUploadRate(t.uploadRateData),n.hippoYogaLoader.updateProgressText(w.b.progressMessages.errorUploading),c.default.postErrorsToLog({error:"Error while importing Video :: ",stackTrace:JSON.stringify(e)})}))}},{key:"updateVideoS3Key",value:function(){var e=this;this.fileChangeCount++;var t=this.videoId+"_"+this.fileChangeCount+".mp4",i={fileChangeCount:this.fileChangeCount,mediaId:this.videoId,assetId:this.assetId};this.videoModel.updateS3Key(i,(function(t){e.uploadVideoFile(e.getSelectedMedia()[0])}),(function(e){c.default.postErrorsToLog({error:"Error while updating video s3 key :: ",stackTrace:JSON.stringify(e)})})),this.uploader.userUploadKey=t}},{key:"processVideoImportFromDrive",value:function(e,t,i,n){var r=this,o={file_id:n,tags:(i||[]).join(","),file_name:e,description:t,gdrive_user_id:this.configuredDriveUserId,record_from_mobile:!1};this.contactId&&(o.contact_id=this.contactId),(new de).createVideoFromDrive(o,(function(t){return t.file_size_exceeded?(c.default.showBannerAlert("Please select a file of size less than ".concat(t.allowed_file_size," MB. Selected file cannot be imported"),4e3,"error"),void c.default.postErrorsToLog({error:"File size exceed from GDrive :: "})):t.import_count_exceeded?(c.default.showBannerAlert("".concat(w.b.wizShareI18N.importLimit),4e3,"error"),void c.default.postErrorsToLog({error:"Import limit exceed from GDrive :: "})):void r.ImportGdriveVideoSuccessCallback(t,o,e)}),r.errorHandling)}},{key:"processImageImportFromDrive",value:function(){var e=this;fetch(e.selectedFilesList[0].url).then((function(e){if(e.ok)return e.arrayBuffer();throw new Error("Something went wrong. Please try again later")})).then((function(t){var i=window.btoa(String.fromCharCode.apply(null,new Uint8Array(t)));e.selectedFilesList[0].preview_url="data:image/png;base64,"+i,e.sendFilesToInitiator()})).catch((function(e){c.default.showBannerAlert(e,1500,"error")}))}},{key:"ImportGdriveVideoSuccessCallback",value:function(e,t,i){var n=this,r=this,a=e.authoring_asset_id;t.asset_id=a,r.setCategoriesForVideo(a),r.hippoYogaLoader.updateValues(30,"Importing file from GDrive"),(new de).importVideoToDrive(o.default.extend({},t,e),(function(e){r.hippoYogaLoader.updateProgress(100),z.a.initialize(2e3,void 0,n.digest).getStatus(e.operation_id,(function(e){r.hippoYogaLoader.updateValues(0,e)}),(function(e,t){r.hippoYogaLoader.updateValues(t,e)}),(function(e){HippoVideo&&HippoVideo.AppRegistry&&HippoVideo.AppRegistry.isIntroOutroGlobalSettingsEnabled&&n._getVideoModel().renderImportedVideo(n.assetId);r.hippoYogaLoader.updateProgress(100),r.importMediaCallback?r.importMediaCallback({contactId:r.contactId,contactEmail:r.contactEmail,assetId:a,fileName:i,response:e,categories:r.categories}):window.location.href="/video/view/".concat(a)}),(function(e){r.hippoYogaLoader.updateProgressText(e.reason),c.default.postErrorsToLog({error:"Error while converting Video in Import pop :: ",stackTrace:JSON.stringify(e)})}))}),r.errorHandling)}},{key:"updateVideoImportDetails",value:function(){var e,t,i,n=this.getSelectedMedia()[0];this.preserveTransparency=this.$el.find("#preserveTransparency").prop("checked");var r=!0,a=(n.size||1)/1024;if(this.canUploadVideoinBackground()){if(this.digest||this.isProEditImport||!this.showVideoImportPreview||this.isSalesGettingStarted||"replace"==this.actionType||((e=this.$el.find("#importVideoTitle").val().trim())&&(e=encodeURIComponent(e)),e?((t=this.$el.find("#importVideoDesc").val().trim())&&(t=encodeURIComponent(t)),i=o.default.clone(this.filterTagList||[])):r=!1,this.categoriesAndTags.is_cat_available&&(this.categories=this.$el.find("#importVideoCategories").val())),r){this.hippoYogaLoader.render(),this.hippoYogaLoader.updateProgressText(w.b.progressMessages.preparingFile),this.$el.find("#importVideoDetails, .import-footer").toggleClass("hide"),this.hippoYogaLoader.updateProgressText(w.b.progressMessages.uploadingFile),this.clickedImport=!0,this.setCategoriesForVideo(this.assetId),this.initiateVideoConversion();var s={assetId:this.assetId,fileName:e,description:t,size:a,tags:i};this.videoModel.updateVideoImport(s,(function(e){}),(function(e){c.default.postErrorsToLog({error:"Error while Updating Video details :: ",stackTrace:JSON.stringify(e)})}))}}else this.importVideoFileAndProceed();this.filterTagList=null}},{key:"setCategoriesForVideo",value:function(e){this.categoriesAndTags.is_cat_available&&(this.categories?this.categories.includes(this.mediaCategoryId)||"virtual_bg"==this.actionType||this.categories.push(this.mediaCategoryId):this.mediaCategoryId?this.categories=[this.mediaCategoryId]:this.categories=["recorded"],(new q.a).assignCategories(e,this.categories,(function(e){}),(function(e){c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while setting category for import Video :: ",stackTrace:JSON.stringify(e)})})))}},{key:"initiateVideoConversion",value:function(){(this.clickedImport&&this.isVideoUploaded||!this.canUploadVideoinBackground())&&(this.hippoYogaLoader.updateProgressText(w.b.progressMessages.videoUploadedWaiting),this.preserveTransparency&&this.preserveTransparencyEnabled?this.videoModel.processDirectImport(this.assetId,this.videoId,this.digest,!1,this.videoConverting,this.errorHandling):this.videoModel.convertVideo(this.assetId,this.videoId,!1,!0,this.digest,this.videoConverting,this.errorHandling))}},{key:"videoConverting",value:function(e){var t=this;if(this.multipleUploadedFiles&&this.multipleUploadedFiles.length>0)this.processMultipleVideoImport(this.multipleUploadedFiles);else{var i=this;window.onbeforeunload=function(){},z.a.initialize(2e3,void 0,this.digest).getStatus(e,(function(e){i.hippoYogaLoader.updateValues(0,e)}),(function(e,t){i.hippoYogaLoader.updateValues(t,e)}),(function(e){HippoVideo&&HippoVideo.AppRegistry&&HippoVideo.AppRegistry.isIntroOutroGlobalSettingsEnabled&&t._getVideoModel().renderImportedVideo(t.assetId);if(i.hippoYogaLoader.updateProgress(100),t.digest||t.callBack){i.$el.hide();var n=i.getSelectedMedia()[0];t.callBack({file:n,assetId:t.assetId,mediaId:t.uploadeVideoId})}else{var r=i.getSelectedMedia()[0];if(t.importMediaCallback){var o=t.isFromCarousel?"carousel":"primary";t.importMediaCallback({response:e,contactId:t.contactId,contactEmail:t.contactEmail,assetId:t.assetId,mediaLocation:o,hippoYogaLoader:i.hippoYogaLoader,fileName:r.name,categories:t.categories})}else t.multipleUploadedFiles?t.processMultipleVideoImport(t.multipleUploadedFiles):setTimeout((function(){window.location.href="/video/view/".concat(i.assetId)}),1e3)}}),(function(e){i.hippoYogaLoader.updateProgressText(e.reason),c.default.postErrorsToLog({error:"Error while converting Video in Import pop :: ",stackTrace:JSON.stringify(e)})}))}}},{key:"errorHandling",value:function(e){c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while importing Video :: ",stackTrace:JSON.stringify(e)})}},{key:"setWarningOnExit",value:function(e){window.onbeforeunload=function(t){return(new v.a).setErrorState(e,m.a.authorState.UPLOAD_CANCELLED,!0),""}}},{key:"abortVideoUpload",value:function(){if(this.isVideoImport()&&this.uploader){this.uploader.cancelImport(!1);var e={asset_id:this.assetId,media_id:this.videoId,fileChangeCount:this.fileChangeCount};this.videoModel.deleteUploadedVideoFromS3(e,(function(e){}),(function(e){c.default.postErrorsToLog({error:"error while deleting video file from s3 :: ",stackTrace:JSON.stringify(e)})}))}this.isVideoUploaded=!1}},{key:"closeImport",value:function(e){this.isVideoImport()&&!this.clickedImport&&this.showVideoImportPreview&&(this.abortVideoUpload(),this._getVideoModel().setErrorState(this.assetId,m.a.authorState.UPLOAD_CANCELLED,!0),window.onbeforeunload=function(){},this.isMediaUploading=!1);var t=!0;if(this.fromSalesForce)return this.isOutlookSpecific?void l.default.closeOutlookPreviewTab("cancel"):void l.default.closeCurrentTab();this.isMediaUploading&&(this.allowCloseImportWhileUploading?c.default.showBannerAlert(w.b.wizImport.uploadInBackground,4e3):t=!1),this.cancelRedirect&&this.isShopifyUser&&"image"===this.importType&&!this.fromAddMore?((new v.a).setErrorState(this.assetId,m.a.authorState.CREATE_SLIDESHOW_CANCELLED,!1),window.onbeforeunload=function(){},window.location.href="/video/library"):t&&(this.$el.hide(),this.$el.find("*").unbind(),this.$el.empty(),this.closeImportCallback&&this.closeImportCallback(this.contactEmail,this.contactId))}},{key:"changeTab",value:function(e){var t=e.data.context,i=e.currentTarget.id,n=t.$el.find("#".concat(i)).data("panelId");t.$el.find(".tab").removeClass("active"),t.$el.find("#".concat(i)).addClass("active"),t.$el.find(".import-body-container, #footerPoweredBy").addClass("hide"),t.$el.find("#".concat(n,", #footnote")).removeClass("hide"),t.actionFrom=i,"importWebTab"===i&&""!==t.search.query&&(t.$el.find("#footerPoweredBy").removeClass("hide"),t.$el.find("#footnote").addClass("hide")),"importLibraryTab"===i?t.initializeMediaLibrary():"recentlyUsedTab"===i?t.initializeRecentlyUsed():"importDriveTab"===i?t.initializeGDrive():"importShopifyTab"===i?(document.getElementById("importshopifyContent").innerHTML="",t.initializeShopify()):"importTestimonial"===i?t.initializeTestimonial():"importVideoLibrarylTab"===i||"importVideoLibraryTabMulti"===i||"importImgLibTab"===i?t.initializeVideoLibrary():"importViaLinkTab"===i?t.initializeImportViaLink():"importViaWebLink"===i&&t.initializeImportViaWebSiteLink(),t.updateCurrentSelectionList(i),t.updateSelectedCounter(),l.default.trackInThirdPartyTools("Import-Pop - Tabs switched to ".concat(i),{})}},{key:"initializeImportViaLink",value:function(){var e;this.fromLocalTab&&(this.selectedFilesList=this.selectList),this.renderingFirstTime&&0==this.selectedFilesList.length&&0!=this.alreadySelectedFiles.length?(e=this.alreadySelectedFiles,this.renderingFirstTime=!1):e=this.selectedFilesList?this.selectedFilesList:this.alreadySelectedFiles||[],this.isFromVideoPages&&e&&e.length>0&&this.addFilesToSelectedList(e),this.$el.find("#addLinkBtn").unbind().bind("click",{context:this},this.validateAndUpdateLink),this.$el.find("#resetLinkBtn").unbind().bind("click",{context:this},this.resetAndUpdateLink),this.$el.find("#importCustomLinkTxt").unbind().bind("keypress",{context:this},this.customLinkChange),this.$el.find("#importCustomLinkTxt").unbind().bind("paste",{context:this},this.handlePasteLink),this.$el.find("#checkLinkBtn").unbind().bind("click",{context:this},this.addCustomLink),this.$el.find("#changeCustomThumbnailId").unbind().bind("click",{context:this},this._handleLinkIconChange),this.$el.find("#linkLogoInput").on("change",this._logoPreview),r()(document).off().on("click","#selectedImageGallery .gallery-view",{context:this},this.editCustomLink)}},{key:"customLinkChange",value:function(e){e.data.context.$el.find("#linkErrorId").addClass("disp-none")}},{key:"handlePasteLink",value:function(e){var t=e.data.context;r()("#importCustomLinkTxt").val("");var i=e.originalEvent.clipboardData.getData("text").replace("https://","");t.$el.find("#linkErrorId").addClass("disp-none"),setTimeout((function(){r()("#importCustomLinkTxt").val(i)}),50)}},{key:"editCustomLink",value:function(e){var t=e.data.context,i=r()(this).attr("data-resourceid"),n=t.selectedFilesList.filter((function(e){return e.id==i})),o={status:!0,image_url:n[0].thumbnail_url,title:n[0].title,url:n[0].custom_link};t.closeDrawer(),t.$el.find("#checkLinkBtn").addClass("disp-none"),t.$el.find("#checkLinkBtn").prop("disabled",""),t.$el.find("#importCustomLinkTxt").val(o.url),t.$el.find("#importCustomLinkTxt").prop("disabled","disabled"),t.$el.find("#addLinkBtn").attr("data-update-id",i),t.$el.find("#addLinkBtn").text("Save"),t.showNameAndThumbnailEdit(o)}},{key:"addCustomLink",value:function(e){l.default.trackInThirdPartyTools("sales page - carousel link check btn clicked");var t=e.data.context,i="https://"+t.$el.find("#importCustomLinkTxt").val();if(t.$el.find("#importCustomLinkTxt").val().includes("https://"))c.default.showBannerAlert("Invalid website URL",3e3,"error");else if(""!=t.$el.find("#importCustomLinkTxt").val()&&l.default.isUrlValid(i)){t.$el.find("#linkErrorId").addClass("disp-none"),t.$el.find("#checkLinkBtn").prop("disabled","disabled");var n={url:i,meta_types:m.a.metaDataType.IMAGE_URL+","+m.a.metaDataType.TITLE};(new de).getMetaDataContent(n,t.showNameAndThumbnailEdit),r()("#importCustomLinkTxt").val(t.$el.find("#importCustomLinkTxt").val())}else t.$el.find("#linkErrorId").text(w.b.wizImport.linkErrorMsg),t.$el.find("#linkErrorId").removeClass("disp-none"),t.$el.find("#checkLinkBtn").prop("disabled","")}},{key:"addWebsiteLink",value:function(e){l.default.trackInThirdPartyTools("Website link check btn clicked");var t=this.$el.find("#importWebLinkTxt").val();if(this.$el.find("#websiteErrorMsgDiv").addClass("disp-none"),this.$el.find("#WeblinkErrorId").addClass("disp-none"),this.$el.find("#weblinkErrorMsgContainer").addClass("disp-none"),this.$el.find("#WebsitePreviewImg").hide(),this.selectedFilesList=[],l.default.isUrlValid(t)){this.$el.find("#checkWebsiteLinkBtn").prop("disabled","disabled"),this.$el.find("#websitePreviewDiv").show(),this.$el.find("#importWebsiteSpinner").show();var i=this.constructWebsiteName(t);this.$el.find("#websiteName").val(i);var n={url:t};(new de).getPreviewFromWebSiteLink(n,this.showWebSitePreview,this.showWebSitePreviewError)}else this.$el.find("#WeblinkErrorId").text(w.b.wizImport.websiteLinkErrorMsg),this.$el.find("#WeblinkErrorId").removeClass("disp-none"),this.$el.find("#weblinkErrorMsgContainer").removeClass("disp-none"),this.$el.find("#checkWebsiteLinkBtn").prop("disabled","")}},{key:"webLinkUrlChanged",value:function(){this.$el.find("#importWebLinkTxt").val().length>0?this.$el.find("#checkWebsiteLinkBtn").prop("disabled",""):this.$el.find("#checkWebsiteLinkBtn").prop("disabled","disabled")}},{key:"constructWebsiteName",value:function(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);if(null!=t&&t.length>2&&"string"==typeof t[2]&&t[2].length>0){var i=t[2].split(".")[0];return i.charAt(0).toUpperCase()+i.slice(1)}return null}},{key:"showWebSitePreview",value:function(e){if(e.status){this.$el.find("#importWebsiteSpinner").hide(),this.$el.find("#WebsitePreviewImg").show(),this.$el.find("#WebsitePreviewImg").attr("src",e.link),this.$el.find("#checkWebsiteLinkBtn").prop("disabled",""),this.$el.find("#import").removeAttr("disabled");var t=this.$el.find("#websiteName").val()+".jpg";this.getFileFromUrl(e.link,t)}else this.showWebSitePreviewError()}},{key:"showWebSitePreviewError",value:function(e){this.$el.find("#importWebsiteSpinner").hide(),this.$el.find("#websiteErrorMsgDiv").removeClass("disp-none")}},{key:"initializeImportViaWebSiteLink",value:function(){this.$el.find("#checkWebsiteLinkBtn").unbind().bind("click",{context:this},this.addWebsiteLink),this.$el.find("#checkWebsiteRetryBtn").unbind().bind("click",{context:this},this.addWebsiteLink),this.$el.find("#importWebLinkTxt").unbind().bind("change",{context:this},this.webLinkUrlChanged),this.$el.find("#importWebLinkTxt").unbind().bind("keyup",{context:this},this.webLinkUrlChanged),this.$el.find("#websitePreviewDiv").hide(),this.$el.find("#importWebsiteSpinner").hide(),this.$el.find("#websiteErrorMsgDiv").addClass("disp-none"),this.$el.find("#WebsitePreviewImg").hide(),this.$el.find("#import").attr("disabled","disabled"),this.$el.find("#checkWebsiteLinkBtn").prop("disabled","disabled")}},{key:"_logoPreview",value:function(e){if(l.default.trackInThirdPartyTools("sales page - carousel link thumbnail changed"),e.target.files&&e.target.files[0]){var t=new FileReader;t.onload=function(e){""!=r()("#linkLogoInput").val()&&(r()("#linkLogoInput").val(""),r()("#linkLogoImg").attr("src",e.target.result))},t.readAsDataURL(e.target.files[0])}}},{key:"getFileFromUrl",value:function(e,t){var i=document.createElement("canvas"),n=i.getContext("2d"),r=new Image;r.crossOrigin="anonymous",r.src=e;var o=this;r.onload=function(){var e=r.width,a=r.height;i.width=e,i.height=a,n.drawImage(r,0,0,e,a);var s=i.toDataURL("image/jpeg");o.dataURLtoFile(s,t)}}},{key:"dataURLtoFile",value:function(e,t){var i=this;fetch(e).then((function(e){return e.arrayBuffer()})).then((function(e){return new File([e],t,{type:"image/jpg"})})).then((function(e){i.addFilesToSelectedList([e])}))}},{key:"_handleLinkIconChange",value:function(e){r()("#linkLogoInput").click()}},{key:"showNameAndThumbnailEdit",value:function(e){this.closeDrawer(),this.$el.find("#linkNameField").removeClass("disp-none"),this.$el.find("#checkLinkBtn").addClass("disp-none"),this.$el.find("#importCustomLinkTxt").addClass("disabled"),this.$el.find("#importCustomLinkTxt").addClass("disable-link-input"),this.$el.find("#linkThumbnailField").removeClass("disp-none"),this.$el.find("#linkDisplayOptions").removeClass("disp-none"),this.$el.find("#checkLinkBtn").prop("disabled","");var t=e.image_url||"/img/without_link.png",i=e.title||"",n=e.url||"";this.linkMetaDataResponse=e,r()("#importCustomLinkTxt").length>0&&(n=n.replace("https://","")),e.status?(this.$el.find("#CustomTitleTxt").val(i),this.$el.find("#importCustomLinkTxt").val(n),r()("#linkLogoImg").attr("src",t)):(this.$el.find("#CustomTitleTxt").val(""),r()("#linkLogoImg").attr("src","/img/without_link.png"))}},{key:"resetAndUpdateLink",value:function(e){var t=e.data.context;if(t.$el.find("#addLinkBtn").attr("data-update-id")){var i=t.$el.find("#addLinkBtn").attr("data-update-id");t.removeFileFromSelection(i),t.$el.find("#addLinkBtn").removeAttr("data-update-id"),t.$el.find("#addLinkBtn").text("Add Link")}l.default.trackInThirdPartyTools("sales page - carousel link reset"),t.$el.find("#importCustomLinkTxt").val(""),t.$el.find("#importCustomLinkTxt").focus(),t.$el.find("#addLinkBtn").prop("disabled",""),t.$el.find("#resetLinkBtn").prop("disabled",""),t.$el.find("#linkNameField").addClass("disp-none"),t.$el.find("#linkThumbnailField").addClass("disp-none"),t.$el.find("#linkDisplayOptions").addClass("disp-none"),t.$el.find("#checkLinkBtn").removeClass("disp-none"),t.$el.find("#importCustomLinkTxt").removeClass("disabled"),t.$el.find("#importCustomLinkTxt").removeAttr("disabled"),t.$el.find("#importCustomLinkTxt").removeClass("disable-link-input")}},{key:"validateAndUpdateLink",value:function(e){l.default.trackInThirdPartyTools("sales page - carousel link added");var t=e.data.context;t.$el.find("#addLinkBtn").prop("disabled","disabled"),t.$el.find("#resetLinkBtn").prop("disabled","disabled");var i=t.linkMetaDataResponse.url,n=t.$el.find("#CustomTitleTxt").val(),r=t.$el.find("#linkLogoImg").attr("src");if("/img/without_link.png"==r&&(r=""),r.startsWith("data:image/")){var o={thumbnail:r};(new de).fetchCarouselThumbnailLink(o,(function(e){e.status?t.linkAddToDrawer(n,e.thumbnail,i):t.linkAddToDrawer(n,"",i)}),(function(e){t.linkAddToDrawer(n,"",i)}))}else t.linkAddToDrawer(n,r,i)}},{key:"linkAddToDrawer",value:function(e,t,i){var n=this.$el.find("#addLinkBtn").attr("data-update-id")?this.$el.find("#addLinkBtn").attr("data-update-id"):this.getMaxIdForLink(),r=[];r.push({id:n,title:e,url:t,is_custom_link:!0,custom_link:i,thumbnail_url:t}),this.addFilesToSelectedList(r),this.openDrawer(),this.$el.find("#importCustomLinkTxt").val(""),this.$el.find("#importCustomLinkTxt").focus(),this.$el.find("#addLinkBtn").prop("disabled",""),this.$el.find("#resetLinkBtn").prop("disabled",""),this.$el.find("#linkNameField").addClass("disp-none"),this.$el.find("#linkThumbnailField").addClass("disp-none"),this.$el.find("#linkDisplayOptions").addClass("disp-none"),this.$el.find("#checkLinkBtn").removeClass("disp-none"),this.$el.find("#addLinkBtn").removeAttr("data-update-id"),this.$el.find("#addLinkBtn").text("Add Link"),this.$el.find("#importCustomLinkTxt").removeClass("disabled"),this.$el.find("#importCustomLinkTxt").removeAttr("disabled"),this.$el.find("#importCustomLinkTxt").removeClass("disable-link-input")}},{key:"getMaxIdForLink",value:function(){var e,t=this.selectedFilesList&&this.selectedFilesList.length>0?this.selectedFilesList:this.alreadySelectedFiles||[];if(t){var i=[];for(var n in t){var r=t[n];r.is_custom_link&&i.push(parseInt(r.id))}i.length>0&&(e=Math.max.apply(null,i)+1)}return e||(e=1),e.toString()}},{key:"updateCurrentSelectionList",value:function(e){this.isFromCarousel&&"importLocalTab"===e?(this.fromLocalTab=!0,this.selectedFilesList=this.importList):(this.fromLocalTab=!1,this.selectedFilesList=this.selectList)}},{key:"addFilesToSelectedList",value:function(e){var t=this,i=this;fe()(o.default.extend({},w.b.wizImport,{files:e,type:this.isDocOrVideoImport()?"video":this.importType,isSortable:!1,showDelete:!0,isMultiple:this.isMultiple,showControls:!1,showAddMoreTemplate:!1}),(function(n,o){(t.$el.find("#selectedImageGallery").append(r()(o)),(e||[]).forEach((function(e){delete e.local_src,e.isIncluded=!0,e.is_image_preview&&(e.isImagePreview=!0),Ce.listIncludes(i.selectedFilesList,e)?(i.updateFileList(e),i.$el.find("#selectedImageGallery #"+e.id).length>0&&(i.$el.find("#selectedImageGallery #"+e.id).last().remove(),i.$el.find("#selectedImageGallery img[data-resourceid="+e.id+"]").attr("src",e.thumbnail_url))):i.selectedFilesList.push(e),i.isFromVideoPages?i.$el.find(".import-images-container").find("[data-token=".concat(e.token||e.video_token,"]")).addClass("selected"):i.$el.find("#".concat(e.id)).addClass("selected")})),t.isFromVideoPages&&"importLocalTab"===t.actionFrom)?0===t.getSelectedMedia().length?t.$el.find("#import").attr("disabled","disabled"):t.$el.find("#import").removeAttr("disabled"):(t.updateSelectedCounter(),t.$el.find("#selectedImageGallery .image").removeClass("pull-left"),t.$el.find("#selectedImageGallery .gallery-view").one("load",{context:t},t.imageLoadedCallback),t.$el.find("#selectedImageGallery .gallery-delete").unbind().bind("click",{context:t},t.deleteFile),t.$el.find("#selectedImageGallery").scrollLeft(t.$el.find("#selectedImageGallery")[0].scrollWidth))}))}},{key:"addToSelectedList",value:function(e){var t=this;(e||[]).forEach((function(e){delete e.local_src,e.isIncluded=!0,e.is_image_preview&&(e.isImagePreview=!0),t.selectedFilesList.push(e)}))}},{key:"updateFileList",value:function(e){var t=e.id,i=this.selectedFilesList.findIndex((function(e){return e.id==t}));this.selectedFilesList[i].title=e.title,this.selectedFilesList[i].thumbnail_url=e.thumbnail_url,this.selectedFilesList[i].url=e.url}},{key:"deleteFile",value:function(e){var t=e.currentTarget.dataset.footage;e.data.context.removeFileFromSelection(t)}},{key:"removeFileFromSelection",value:function(e){var t=o.default.findIndex(this.selectedFilesList,{id:e});this.$el.find("#selectedImageGallery #".concat(e)).remove(),this.$el.find("#".concat(e)).removeClass("selected"),e.includes("local")?this.selectedFilesList[t].isIncluded=!1:this.selectedFilesList.splice(t,1),this.updateSelectedCounter()}},{key:"removeAllFilesFromSelection",value:function(){this.selectedFilesList.length=0}},{key:"openCloseDrawer",value:function(e){var t=this;this.$el.find("#openDrawHandle, #closeDrawHandle").addClass("hide"),e?this.$el.find("#selectionDrawer").slideDown("fast",(function(){t.$el.find("#closeDrawHandle").removeClass("hide"),t.$el.find(".main-gallery").addClass("extra-margin")})):this.$el.find("#selectionDrawer").slideUp("fast",(function(){t.$el.find("#closeDrawHandle").removeClass("hide"),t.isFromVideoPages&&"importLocalTab"===t.actionFrom||t.$el.find("#openDrawHandle").removeClass("hide"),t.$el.find(".main-gallery").removeClass("extra-margin")})),this.isDrawOpen=e,this.$el.find("#selectedImageGallery")[0].scrollWidth>=this.$el.find("#selectedImageGallery").innerWidth()?this.$el.find(".scroll-arrow").removeClass("hide"):this.$el.find(".scroll-arrow").addClass("hide")}},{key:"updateSelectedCounter",value:function(){this.$el.find("#selectedFilesCounter").text(0);var e=this.getSelectedMedia().length;this.showSelectedDrawer?(0===e?(this.$el.find("#openDrawHandle").addClass("hide"),this.$el.find("#import").attr("disabled","disabled"),this.isDrawOpen&&(this.isDrawForceClosed=!1,this.$el.find("#closeDrawHandle")[0].click())):(this.$el.find(".import-body").removeClass("no-box-shadow"),this.$el.find("#import").removeAttr("disabled"),this.isDrawOpen||this.$el.find("#openDrawHandle").removeClass("hide"),this.isDrawForceClosed||(this.isDrawForceClosed=!0,this.openDrawer())),e<10&&(e="0".concat(e)),this.$el.find("#selectedFilesCounter").text(e),this.$el.find("#selectedImageGallery")[0].scrollWidth>=this.$el.find("#selectedImageGallery").innerWidth()?this.$el.find(".scroll-arrow").removeClass("hide"):this.$el.find(".scroll-arrow").addClass("hide")):0===e?this.$el.find("#import").attr("disabled","disabled"):this.$el.find("#import").removeAttr("disabled")}},{key:"showReloadBtn",value:function(){this.$el.find("#libraryRefresh").removeClass("hide")}},{key:"sendGitomerTestimonialTrack",value:function(e){r()("#digest").val()==m.a.GITOMER_WIDGET.TOKEN&&l.default.trackInThirdPartyTools("hippo widget - "+e)}},{key:"processMultipleImageImport",value:function(e){var t=this;e.length<1&&(this.multipleUploadedFiles=void 0,this.redirectAfterMultiImport());var i=e[e.length-1],n=i.name.split(".")[0],r=this,o=i.type,a=(i.size||1)/1024,s=this._getVideoModel(),l=this.categories,d=new FormData;d.append("file_name",n),d.append("description",""),d.append("file_type",o),d.append("size",a.toString()),null!=l&&d.append("cat_ids",l),d.append("tags",this.fileTags);var u=i.name.split(".").pop().toLowerCase();d.append("file_ext",u);var p=o&&"image"==o.split("/")[0];s.documentImport(d,(function(o){var a={bucket:o.upload_bucket,key:o.upload_key,acl:"private",digest:t.digest},l=new V.a(a),d=o.authoring_asset_id;t.assetId=d,t.isMediaUploading=!0,t.setWarningOnExit(d),e.pop(),t.multipleUploadedFiles=e,t.hippoYogaLoader.updateProgress(0);var u=p?w.b.progressMessages.imageUploadedWaiting:w.b.progressMessages.uploadingFile;t.hippoYogaLoader.updateProgressText("("+(t.totalFiles-t.multipleUploadedFiles.length)+"/"+t.totalFiles+") "+w.b.progressMessages.uploadingFile),l.uploadFile(i,(function(e){t.hippoYogaLoader.updateProgress(e)}),(function(e){t.hippoYogaLoader.updateProgressText("("+(t.totalFiles-t.multipleUploadedFiles.length)+"/"+t.totalFiles+") "+u),r.isMediaUploading=!1;var i={authoring_id:o.authoring_id,asset_id:d};s.updateDocState(i,(function(e){}),(function(i){c.default.showBannerAlert(w.b.progressMessages.errorUpdatingState,3e3,"error"),setTimeout((function(){window.onbeforeunload=function(){},t.isMediaUploading=!1,r.hippoYogaLoader.updateProgress(100);var i=t.isFromCarousel?"carousel":"primary";t.importMediaCallback?t.importMediaCallback({assetId:t.assetId,mediaLocation:i,fileName:n,response:e,categories:t.categories}):window.location.href="/video/library"}),3e3)})),p?s.compressVideo(d,!1,!0,r.videoCompressing,r.errorHandling):r.processMultipleImageImport(t.multipleUploadedFiles)}),(function(e){r.isMediaUploading=!1,r.hippoYogaLoader.updateProgressText(w.b.progressMessages.doc.error),c.default.postErrorsToLog({error:"Error while importing Document/Image :: ",stackTrace:JSON.stringify(e)})}))}),(function(e){r.isMediaUploading=!1,c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while importing Document/image :: ",stackTrace:JSON.stringify(e)})}))}},{key:"videoCompressing",value:function(e){if(this.multipleUploadedFiles&&this.multipleUploadedFiles.length>0)this.processMultipleImageImport(this.multipleUploadedFiles);else{var t=this;z.a.initialize(2e3).getStatus(e.video,(function(e){t.hippoYogaLoader.updateValues(0,e)}),(function(e,i){t.hippoYogaLoader.updateValues(i,e)}),(function(e){t.hippoYogaLoader.updateProgress(100),t.redirectAfterMultiImport(e)}),(function(e){t.redirectAfterMultiImport(e)}))}}},{key:"redirectAfterMultiImport",value:function(e){window.onbeforeunload=function(){};var t=this.isFromCarousel?"carousel":"primary";this.importMediaCallback?this.importMediaCallback({assetId:this.assetId,mediaLocation:t,fileName:this.imageFileName,response:e,categories:this.categories}):null!=this.categories&&1==this.categories.length?window.location.href="/video/category/".concat(this.categories):window.location.href="/video/library"}}]),i}(s.a.View);i(146),i(147),i(92),i(758),i(759),i(760),i(393),i(763),i(764),i(766),i(769),t.a=s.a.View.extend({initialize:function(e){this.$el=e.$el||r()(e.el),this.origin=e.fromSDK?window._HVDomain||"https://assets.hippovideo.io":"",this.videoPlayerView=e.videoPlayerView,this.assetId=e.assetId,this.token=e.token,this.tokenType=e.tokenType,this.recorder=e.recorder,this.recorderApiModel=e.recorderApiModel,this.digest=e.digest,this.integrationType=e.integration_type,this.embeddedDigest=e.embeddedDigest,this.isPersonalizationEnabled=e.isPersonalizationEnabled,this.customColors=e.customColors,this.overrideWarnOnExit=e.overrideWarnOnExit,this.isPPR=e.isPPR,this.enabled=!1,this.askReloadConfirmation=!1,this.onBoardRequired=this.isOnBoardRequired(),this.currentSelectedText=void 0,this.currentSelectedSticker=void 0,this.currentSelectedCallout=void 0,this.currentSelectedBlur=void 0,this.showingColorPicker=!1,this.blurPlayInterval=void 0,this.isBlurEnabled=e.isBlurEnabled,this.authoringId=e.authoringId,this.footageUrls=e.footageUrls||{},this.closeImportCallback=e.closeImportCallback||function(){},this.openImportCallback=e.openImportCallback||function(){},this.defaultTextAreaValue=w.b.simpleEdit.enterTextHere,this.isMac=window.navigator.userAgent.indexOf("Mac")>=0,this.isTicketVideoPreview=e.isTicketViewPreview,this.isAssignmentVideoPreview=e.isAssignmentVideoPreview,this.isTestimonialVideoPreview=e.isTestimonialVideoPreview,this.isGuestRecording=e.isGuestRecording,this.fromQuickRecord=e.fromQuickRecord,this.canInitializeUI=e.initEditUI,this.initSettingModel(),this.brand_colors=[],this.defaultFontValue="timesnewroman",this.brand_font_color="#000000",this.colorPaletteEnabled=e.colorPaletteEnabled,this.isPPR=e.isPPR,this.fontCache={},this.sessionDetails={addedClips:[],primaryVideo:void 0,secondaryVideo:void 0,trimSliderStart:0,trimSliderEnd:0,totalAddedEffects:0},this.stickerSize=[],this.stickers={1:{name:"Smileys",mainId:1124,startId:945,endId:1935},2:{name:"Animals&Nature",mainId:315,startId:286,endId:434},3:{name:"Food&Drink",mainId:932,startId:854,endId:944},4:{name:"Objects",mainId:1947,startId:1936,endId:2134},5:{name:"Travel&Places",mainId:435,startId:435,endId:547},6:{name:"Activity",mainId:829,startId:547,endId:853},7:{name:"Symbols",mainId:2340,startId:2135,endId:2428},8:{name:"Flags",mainId:25,startId:2,endId:285}},this.callouts=l.default.getAvailableCallouts(),this.calloutsDisplayorder=l.default.getCalloutDisplayorder(),this.selectPrimaryVideo=this.selectPrimaryVideo.bind(this),this.selectSecondaryVideo=this.selectSecondaryVideo.bind(this),this.userEventStart=this.userEventStart.bind(this),this.userEventStop=this.userEventStop.bind(this),this.selectTrim=this.selectTrim.bind(this),this.selectCrop=this.selectCrop.bind(this),this.selectAddText=this.selectAddText.bind(this),this.selectAddCallouts=this.selectAddCallouts.bind(this),this.selectAddStickers=this.selectAddStickers.bind(this),this.selectAddImage=this.selectAddImage.bind(this),this.hanldeImageAspectRatioChange=this.hanldeImageAspectRatioChange.bind(this),this.deleteImage=this.deleteImage.bind(this),this.changeImageOpacity=this.changeImageOpacity.bind(this),this.addImage=this.addImage.bind(this),this.addPersonalizedImage=this.addPersonalizedImage.bind(this),this.processSelectedImage=this.processSelectedImage.bind(this),this.createNewImage=this.createNewImage.bind(this),this.addWebsiteImageBtn=this.addWebsiteImageBtn.bind(this),this.applyCrop=this.applyCrop.bind(this),this.resetCrop=this.resetCrop.bind(this),this.addEnteredText=this.addEnteredText.bind(this),this.textPropertyChanged=this.textPropertyChanged.bind(this),this.textEditableChanged=this.textEditableChanged.bind(this),this.deleteText=this.deleteText.bind(this),this.addNewSticker=this.addNewSticker.bind(this),this.deleteSticker=this.deleteSticker.bind(this),this.stickerPropertyChanged=this.stickerPropertyChanged.bind(this),this.calloutPropertyChanged=this.calloutPropertyChanged.bind(this),this.deleteCallout=this.deleteCallout.bind(this),this.playerTimeUpdate=this.playerTimeUpdate.bind(this),this.makeVideoResizeableDraggable=this.makeVideoResizeableDraggable.bind(this),this.selectBlur=this.selectBlur.bind(this),this.selectAddBlur=this.selectAddBlur.bind(this),this.deleteBlur=this.deleteBlur.bind(this),this.addNewBlur=this.addNewBlur.bind(this),this.blurPropertyChanged=this.blurPropertyChanged.bind(this),this.blurAreaChanged=this.blurAreaChanged.bind(this),this.handleVideoPlay=this.handleVideoPlay.bind(this),this.handleVideoPause=this.handleVideoPause.bind(this),this.handleVideoSeeked=this.handleVideoSeeked.bind(this),this.newComponentDragged=this.newComponentDragged.bind(this),this.newComponentDropped=this.newComponentDropped.bind(this),this.getReloadConfirmationState=this.getReloadConfirmationState.bind(this),this.checkAndPopulateMf=this.checkAndPopulateMf.bind(this),this.playerResized=this.playerResized.bind(this),this.textBoxResized=this.textBoxResized.bind(this),this.initializeAtwho=this.initializeAtwho.bind(this),this.fontLoaded=this.fontLoaded.bind(this),this.markerSelected=this.markerSelected.bind(this),this.globalKeypress=this.globalKeypress.bind(this),this.initSettingModel=this.initSettingModel.bind(this),this.getBrandingInfoSuccess=this.getBrandingInfoSuccess.bind(this),this.cropResizable=this.videoPlayerView.$el.find(".se-crop-resizable"),this.primaryVideoContainer=this.videoPlayerView.$el.find(".primary-video-container"),this.primaryVideoOverflowContainer=this.videoPlayerView.$el.find(".primary-video-overflow-container"),this.secondaryVideoContainer=this.videoPlayerView.$el.find(".secondary-video-container"),this.secondaryVideoOverflowContainer=this.videoPlayerView.$el.find(".secondary-video-overflow-container"),this.infoText=this.$el.find(".default-control-detail .info-text"),c.default.initializeJQueryTouchPunch(),this.$el.find(".se-text-properties").unbind("change").bind("change",this.textPropertyChanged),0!=this.canInitializeUI&&this.initializeUI(),r()(document).bind("mousedown",{that:this},this.globalClick),this.$el.find(".trim-btn").unbind("click").bind("click",this.selectTrim),this.$el.find(".crop-btn").unbind("click").bind("click",this.selectCrop),this.$el.find(".add-text-btn").unbind("click").bind("click",this.selectAddText),this.$el.find(".add-callouts-btn").unbind("click").bind("click",this.selectAddCallouts),this.$el.find(".add-stickers-btn").unbind("click").bind("click",this.selectAddStickers),this.$el.find(".add-image-btn").unbind("click").bind("click",this.selectAddImage),this.$el.find(".apply-crop").unbind("click").bind("click",this.applyCrop),this.$el.find(".reset-crop").unbind("click").bind("click",this.resetCrop),this.$el.find(".add-text").unbind("click").bind("click",this.addEnteredText),this.videoPlayerView.$el.find(".se-text-editable").unbind("keypress").bind("keypress",this.textEditableChanged),this.videoPlayerView.$el.find(".se-clip-time").unbind("click").bind("click",{that:this},this.showClipTimePop),this.videoPlayerView.$el.find(".timer-input-btn").unbind("click").bind("click",{that:this},this.clipInputButtonClicked),this.videoPlayerView.$el.find(".timer-start-input, .timer-stop-input").unbind("keyup").bind("keyup",{that:this},this.clipInputtyped),this.$el.find(".se-sticker-btn").unbind("click").bind("click",{that:this},this.stickerBtnClicked),this.$el.find(".delete-sticker").unbind("click").bind("click",this.deleteSticker),this.$el.find(".sticker-control").unbind("change").bind("change",{that:this},this.stickerPropertyChanged),this.$el.find(".se-callout-btn").unbind("click").bind("click",{that:this},this.calloutBtnClicked),this.$el.find(".delete-callout").unbind("click").bind("click",this.deleteCallout),this.$el.find(".callout-control").unbind("change").bind("change",{that:this},this.calloutPropertyChanged),this.$el.find(".lock-aspect-ratio").unbind("click").bind("click",{that:this},this.lockAspectRatio),this.$el.find(".sticker-family-container").unbind("click").bind("click",{that:this},this.showStickerFamily),this.$el.find(".callout-scroll-right, .callout-scroll-left").unbind("click").bind("click",{that:this},this.scrollCallouts),this.$el.find(".addtext-input-text").unbind("keyup").bind("keyup",{that:this},this.addTextChanged),this.$el.find(".trim-input-btn").unbind("click").bind("click",{that:this},this.trimInputButtonClicked),this.$el.find(".trim-before-input, .trim-after-input").unbind("keyup").bind("keyup",{that:this},this.trimInputTyped),this.$el.find(".trim-before-time").unbind("click").bind("click",{that:this},this.showTrimBeforePop),this.$el.find(".trim-after-time").unbind("click").bind("click",{that:this},this.showTrimAfterPop),this.$el.find("#blurBtn").unbind("click").bind("click",this.selectAddBlur),this.$el.find("#resizeDragBtn").unbind("click").bind("click",this.makeVideoResizeableDraggable),this.$el.find(".delete-blur").unbind("click").bind("click",this.deleteBlur),this.$el.find("#applyBlur").unbind("click").bind("click",{that:this},this.addNewBlur),this.$el.find(".blur-control").unbind("click").bind("click",this.blurPropertyChanged),this.$el.find("#imageOpacitySlider").unbind("change").bind("change",this.changeImageOpacity),this.$el.find("#imageOpacityInput").unbind("change keyup").bind("change keyup",this.changeImageOpacity),this.$el.find("#imageArLock").unbind("change").bind("change",this.hanldeImageAspectRatioChange),this.$el.find("#deleteImage").unbind("click").bind("click",this.deleteImage),this.$el.find("#addImageBtn").unbind("click").bind("click",this.addImage),this.$el.find("#addPersonalizedImageBtn").unbind("click").bind("click",this.addPersonalizedImage),this.$el.find("#addWebsiteImageBtn").unbind("click").bind("click",this.addWebsiteImageBtn),this.$el.find("#imageOpacitySlider").val(100),!(this.isGuestRecording||this.isTicketVideoPreview||this.isAssignmentVideoPreview||this.isTestimonialVideoPreview||"true"!=r()("#isAddImageInVideoEnabled").val())||this.$el.find("#addImageMenuBtn").remove(),this.isTicketVideoPreview&&this.$el.find(".merge-field-container").remove(),document.fonts&&(document.fonts.onloadingdone=this.fontLoaded),this.videoPlayerView.setUpdateHandler(this.playerTimeUpdate),this.videoPlayerView.setPlayPauseHandler(this.handleVideoPlay,!0),this.videoPlayerView.setPlayPauseHandler(this.handleVideoPause,!1),this.videoPlayerView.setSeekedHandler(this.handleVideoSeeked),this.videoPlayerView.setPlayerResizeHandler(this.playerResized),this.userEmail=r()("#userEmail").val(),r()(document).bind("keydown",{that:this},this.globalKeypress),this.applyCustomColors(),this.addCustomFontStyles(),HippoVideo&&HippoVideo.AppRegistry&&HippoVideo.AppRegistry.isDeepIntg&&HippoVideo.AppRegistry.isPersonalizationEnabled&&r()("#addTextBtn").hide()},initSettingModel:function(){var e=this;this.settingModel=new b.a({settingTabName:m.a.wizSetting.BRANDING});var t={};try{if(HippoVideo&&HippoVideo.data&&HippoVideo.data.api&&HippoVideo.data.api.getProperty&&""!=HippoVideo.data.api.getProperty("userEmail"))t={authentication_token:HippoVideo.data.api.getProperty("authToken"),email:encodeURIComponent(HippoVideo.data.api.getProperty("userEmail"))},this.settingModel.fetch({data:t,success:function(t){e.brand_colors=t.get("info").brand_colors,t.get("info").brand_font&&(e.defaultFontValue=t.get("info").brand_font.toLowerCase().replace(/\s/g,""),e.$el.find(".se-font-selector").val(e.defaultFontValue)),t.get("info").brand_font_color&&(e.brand_font_color=t.get("info").brand_font_color),e.setupSpectrum()}});else if(this.digest||this.recorderApiModel){var i=e.getPageSource();this.recorderApiModel?this.recorderApiModel.getBrandingInfo().then((function(t){e.getBrandingInfoSuccess(t,e)})).catch((function(e){console.error(e)})):this.settingModel.getDigestInfo(this.digest,i,(function(t){e.getBrandingInfoSuccess(t,e)}))}}catch(e){console.error(e)}},getBrandingInfoSuccess:function(e,t){t.brand_colors=e.brand_colors,e.brand_font&&(t.defaultFontValue=e.brand_font.toLowerCase().replace(/\s/g,""),t.$el.find(".se-font-selector").val(t.defaultFontValue)),e.brand_font_color&&(t.brand_font_color=e.brand_font_color),t.setupSpectrum()},getPageSource:function(){return"true"==r()("#isTestimonial").val()?"testimonial":r()("#isGuestRecording").val()?"guest":"lessonly"==l.default.getQueryParams().type?"lessonly":"generic_embed"==l.default.getQueryParams().type?"generic_embed":this.integrationType?this.integrationType:""},resizeHandler:function(){this.mediaContainerResized(this.primaryVideoContainer),this.mediaContainerResized(this.secondaryVideoContainer)},initializeUI:function(){var e=this;this.defaultFontValue="timesnewroman",this.$el.find(".trim-slider").slider({range:!0,min:0,max:1e3,step:1,values:[0,1e3],start:function(){e.unselectAllComponents()},slide:function(t,i){e.$el.find(".trim-control-detail input.sliderValue[data-index=0]").val(i.values[0]),e.$el.find(".trim-control-detail input.sliderValue[data-index=1]").val(1e3-i.values[1]),e.trimChanged(),e.trimSliding(i)},stop:function(t){e.$el.find(".trim-before-container, .trim-after-container").removeClass("trim-hovered"),e.trimChanged()}}),this.cropResizable.resizable({containment:e.videoPlayerView.$el.find(".se-crop-scale"),handles:"n, e, w, s, ne, nw, se, sw",resize:function(t,i){e.cropResized(!0)},stop:function(){e.cropStopped()}}),this.makeVideoContainerResizable(this.primaryVideoContainer,this.$el.find(".primaryvid-control-detail .lock-aspect-ratio").is(":checked")),this.primaryVideoContainer.draggable({scroll:!1,opacity:.9,snap:".hippo-video-player, .se-crop-highlighter",snapMode:"both",snapTolerance:10,start:this.userEventStart,stop:function(){e.unselectAllComponents(),e.userEventStop()}}),this.makeVideoContainerResizable(this.secondaryVideoContainer,this.$el.find(".secondaryvid-control-detail .lock-aspect-ratio").is(":checked")),this.secondaryVideoContainer.draggable({scroll:!1,opacity:.9,snap:".hippo-video-player, .primary-video-container, .se-crop-highlighter",snapMode:"both",snapTolerance:10,start:this.userEventStart,stop:function(){e.unselectAllComponents(),e.userEventStop()}}),r()(".primary-video-container, .secondary-video-container").hover((function(){r()(".se-components-hover").removeClass("se-components-hover"),r()(this).addClass("se-components-hover")}),(function(){r()(this).removeClass("se-components-hover")}));var t=l.default.getFontMap(),i=[];for(var n in t)i.push(n);i=i.sort();for(var o=0;o<i.length;o++){n=i[o];this.$el.find(".se-font-selector").append(r()("<option>",{value:n,text:t[n].family,style:"font-family: "+t[n].family+";"})),this.defaultFontValue=t[n].isDefault?n:this.defaultFontValue}this.$el.find(".se-font-selector").val(this.defaultFontValue),this.$el.find(".sticker-btn-container").empty();for(var a in this.stickers){var s=this.stickers[a];this.$el.find(".sticker-btn-container").append(x()({i:a,mainImg:"https://s3.amazonaws.com/hippolms-wiz-static/stickers-preview/s"+s.mainId+".png?v=2"})),this.downloadAndSetStickers(this,a,s.startId,s.endId)}for(var c in this.$el.find(".callout-btn-container").empty(),this.calloutsDisplayorder){a=this.calloutsDisplayorder[c];var d=document.createElement("img");r()(d).addClass("se-callout-btn"),d.id="se-callout-btn-"+a,d.src="https://s3.amazonaws.com/hippolms-wiz-static/callouts/c"+a+".png?v=2",d.crossOrigin="Anonymous",this.$el.find(".callout-btn-container").append(d),this.findCalloutSize(a)}this.$el.find(".se-callout-btn").draggable({scroll:!1,helper:"clone",revert:"invalid",revertDuration:100,start:this.newComponentDragged,stop:this.newComponentDropped}),this.$el.find(".se-sticker-btn").draggable({scroll:!1,appendTo:"body",stack:".se-sticker-btn",helper:"clone",revert:"invalid",revertDuration:100,start:this.newComponentDragged,stop:this.newComponentDropped}),this.videoPlayerView.$el.find(".se-crop-resizable").droppable({accept:".se-sticker-btn, .se-callout-btn",drop:function(t,i){e.componentDropped(i.draggable[0].id,t.pageX-e.videoPlayerView.$el.find(".se-crop-scale").offset().left-40,t.pageY-e.videoPlayerView.$el.find(".se-crop-scale").offset().top-40)}}),this.videoPlayerView.$el.find(".se-clip-time").resizable({containment:r()(".components-time-container"),handles:"e, w",resize:function(e,t){},stop:function(){e.onClipTimeChangeHandler(),e.updateTimeFromClipToPopup(e)}});var u=this.$el.find(".addtext-control-detail .color-picker .sp-replacer"),p=document.createElement("div");r()(p).addClass("text-color-picker"),r()(p).text("A"),r()(u).prepend(p),this.$el.find(".se-font-selector").select2({minimumResultsForSearch:-1,theme:"hippocategory",width:"element",dropdownCssClass:"et-dropdown-css",templateResult:function(e,t){return e.element&&r()(t)[0].style.setProperty("font-family",r()(e.element).css("font-family"),"important"),e.text}}),this.$el.find(".se-fontsize-selector").select2({minimumResultsForSearch:-1,theme:"hippocategory"}),this.isPersonalizationEnabled&&(this.$el.find("#seMfSelector").select2({tags:!0,multiple:!1,theme:"hippocategory",templateResult:function(e,t){return e.element&&r()(t).addClass("selection-in-blue"),e.text}}),this.mfValues=["{Email}","{First Name}","{Last Name}","{Country}","{City}","{Phone Number}","{Company Name}","{Title}","{State}","{Address}"],this.$el.find("#seMfSelector").on("change",{that:this},this.handleMfChange)),this.$el.find(".se-textalign-selector").select2({minimumResultsForSearch:-1,dropdownAutoWidth:!0,theme:"hippocategory",templateSelection:function(t){return'<img width="10" src="'+(e.origin+"/svg/text-"+t.id+"-align.svg")+'"/>'},templateResult:function(t){return t.id||(t.id="center"),'<img width="10" style="margin-right:5px" src="'+(e.origin+"/svg/text-"+t.id+"-align.svg")+'"/>'+t.text},escapeMarkup:function(e){return e}}).next(".select2-container").addClass("textalign-select2"),this.$el.find(".select2-selection__rendered").removeAttr("title"),this.disable(),this.cropResized(!1),this.enableBlurForPlayer()},setupSpectrum:function(){r()(".sp-container").remove();var e=this,t={showInput:!0,preferredFormat:"rgb",clickoutFiresChange:!0,chooseText:"set",color:e.brand_font_color,show:function(){e.showingColorPicker=!0,r()(".seColorContainer").length>0&&r()(".seColorContainer")[0].scrollIntoView({block:"end",behavior:"smooth"})},hide:function(){e.showingColorPicker=!1},move:function(){e._previewColorChange()},change:function(){e._handleColorChange(),e.showingColorPicker=!1},containerClassName:"seColorContainer"};if(this.brand_colors&&this.brand_colors.length>0){var i=h.getPaletteConfig(this.brand_colors,"seColorContainer",this.colorPaletteEnabled);t=Object.assign(t,i)}this.$el.find(".se-color-selector").spectrum(t)},_previewColorChange:function(){if(this.currentSelectedText){var e=this.$el.find(".addtext-control-detail .se-color-choose").spectrum("get").toHexString();r()("#se-component-"+this.currentSelectedText+" .text-el-line").css("color",e)}},_handleColorChange:function(){this.setTextColorInClip()},setTextColorInClip:function(){if(this.currentSelectedText){var e=this.getClipOf(this.currentSelectedText);e&&(e.properties.color=this.$el.find(".addtext-control-detail .se-color-choose").spectrum("get").toHexString(),this.updateProjectJson(),this.reconstructUI())}},downloadAndSetStickers:function(e,t,i,n){if(!(i>=n)){var o=document.createElement("img");r()(o).addClass("se-sticker-btn"),o.id="se-sticker-btn-"+i,o.src="https://s3.amazonaws.com/hippolms-wiz-static/stickers-all/transparent.png?v=2";var a=(i-2)%50*-20,s=-20*Math.floor((i-2)/50);o.style.background="url('https://s3.amazonaws.com/hippolms-wiz-static/stickers-all/stickers_all.png?v=2') "+a+"px "+s+"px",e.$el.find(".sticker-family-container-"+t+" .sticker-family-all").append(o),e.findStickerSize(i),r()(o).unbind("click").bind("click",{that:e},e.stickerBtnClicked),setTimeout((function(){e.downloadAndSetStickers(e,t,i+1,n)}),10)}},enable:function(){this.enabled=!0;try{HippoVideo.data.api.getProperty("isTrimEnabled")&&this.$el.find(".simple-edit-buttons-box").hide()}catch(e){}this.primaryVideoContainer.css("z-index","100"),this.secondaryVideoContainer.css("z-index","101"),this.videoPlayerView.setSimpleEditMode(!0),this.unselectAllControls(),this.videoPlayerView.$el.find(".se-crop-highlighter").css({background:"rgba(72, 72, 72, 0.97)","z-index":"108"}),this.videoPlayerView.$el.css("overflow","visible"),this.videoPlayerView.$el.find(".se-crop-scale").css({top:"0px",left:"0px"}),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),1,1,0,0),r()("#previewPageLeft").addClass("simple-edit-top-pad"),r()(".body-wiz").addClass("tmp-body-wiz").removeClass("body-wiz"),r()(".tmp-body-wiz").css("margin-top","105px"),r()(".tmp-body-wiz").animate({marginTop:"0px"},200),this.videoPlayerView.$el.find(".thumbnail-container").hide(),this.videoPlayerView.$el.find(".play-btn-container").fadeOut(100),this.videoPlayerView.$el.find(".player-touch-guard").hide(),this.snapshot={},this.snapshot.projectJson=l.default.naiveClone(this.projectJson),this.snapshot.trimSliderStart=this.sessionDetails.trimSliderStart,this.snapshot.trimSliderEnd=this.sessionDetails.trimSliderEnd,this.snapshot.addedClips=l.default.naiveClone(this.sessionDetails.addedClips),this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.snapshot.crop={x:this.cropResizable.position().left,y:this.cropResizable.position().top,w:this.cropResizable.width(),h:this.cropResizable.height()},this.cropResizable.removeClass("disp-show").addClass("disp-none"),this.onBoardRequired?(this.onBoardRequired=!1,this.onBoardUser()):(this.$el.find(".default-control-detail").show(),this.infoText.html(" ")),this.reconstructUI(),this.videoPlayerView.resizePlayerForWindow(),this.$el.find("#trimBtn").length>0?this.selectTrim():this.$el.find(".simple-edit-buttons-box .wiz-simple-edit-btn").first().click(),!1===this.overrideWarnOnExit&&(window.onbeforeunload=function(){return"Please save before you close!!"}),this.prefetchAssetsForSimpleEdit()},save:function(){this.disable(),this.disabled(),this.projectJson.simpleEdit=!0,this.projectJson.seSessionDetails=this.sessionDetails,this.renderVideo()},renderVideo:function(e){var t=this;this.recorder?this.recorder.renderVideo({assetId:this.assetId,projectJson:this.getIOAdjustedProjectJSON(),renderFrom:"simple_edit"}).then((function(){l.default.trackInDB("SE-Save",t.userEmail),t.isPPR&&t._getVideoModel().urgent_videos([t.assetId],(function(){u.a.trigger("remountCtaActions"),e&&e.resolve("")}))})).catch((function(t){console.error(err),e&&e.reject("error")})):this._getVideoModel().mergeAndRender(this.assetId,this.getIOAdjustedProjectJSON(),"simple_edit",this.digest,(function(i){l.default.trackInDB("SE-Save",t.userEmail),t.isPPR&&t._getVideoModel().urgent_videos([t.assetId],(function(){u.a.trigger("remountCtaActions"),e&&e.resolve("")}))}),(function(t){console.log("error ",t),e&&e.reject("error")}))},savePPR:function(){var e=this;return new Promise((function(t,i){e.disable(),e.disabled(),e.projectJson.simpleEdit=!0,e.projectJson.seSessionDetails=e.sessionDetails,e.renderVideoPPR().then((function(){t("success")})).catch((function(){i("error")}))}))},renderVideoPPR:function(){var e=this;return new Promise((function(t,i){e.renderVideo({resolve:t,reject:i})}))},cancel:function(){this.cancelCrop(),this.disable(),this.projectJson=this.snapshot.projectJson,this.sessionDetails.trimSliderStart=this.snapshot.trimSliderStart,this.sessionDetails.trimSliderEnd=this.snapshot.trimSliderEnd,this.sessionDetails.addedClips=this.snapshot.addedClips;var e=this;this.reconstructUI(!0,(function(){e.disabled()}))},disable:function(){this.enabled=!1,this.unselectAllComponents(),this.unselectAllControls(),this.primaryVideoContainer.css("z-index","0"),this.primaryVideoContainer.resizable({disabled:!0}),this.primaryVideoContainer.draggable({disabled:!0}),this.secondaryVideoContainer.css("z-index","0"),this.secondaryVideoContainer.resizable({disabled:!0}),this.secondaryVideoContainer.draggable({disabled:!0}),this.videoPlayerView.setSimpleEditMode(!1),this.videoPlayerView.$el.find(".player-border").fadeOut(),this.videoPlayerView.$el.find(".player-touch-guard").show(),r()(".tmp-body-wiz").animate({marginTop:"0px"},200,(function(){r()(".tmp-body-wiz").addClass("body-wiz").removeClass("tmp-body-wiz")})),this.askReloadConfirmation=!1,!1===this.overrideWarnOnExit&&(window.onbeforeunload=void 0)},disabled:function(){this.cropResizable.removeClass("disp-none").addClass("disp-show"),null!=this.projectJson.crop&&this.cropResizable.css({left:this.getValueForPlayer(this.projectJson.crop.x,!0)+"px",top:this.getValueForPlayer(this.projectJson.crop.y,!1)+"px",width:this.getValueForPlayer(this.projectJson.crop.w,!0)+"px",height:this.getValueForPlayer(this.projectJson.crop.h,!1)+"px"}),this.cropResizable.removeClass("disp-show").addClass("disp-none"),this.reconstructUI(),this.cropResized(!1,!1),this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.videoPlayerView.$el.find(".se-text-component, .se-image-component").draggable({disabled:!0}),this.videoPlayerView.$el.find(".se-text-component").unbind("click"),this.videoPlayerView.$el.find(".se-text-component").css({"user-select":"none",cursor:"default"}),this.videoPlayerView.$el.find(".se-crop-highlighter").css({background:"black","z-index":"200"}),this.videoPlayerView.$el.css("overflow","hidden");var e=this.cropResizable.height(),t=this.cropResizable.width(),i=this.videoPlayerView.$el.width(),n=this.videoPlayerView.$el.height(),r=i/t,o=n/e;if(r*e>n){var a=this.cropResizable.position().top,s=i/2-t*o/2-this.cropResizable.position().left;this.videoPlayerView.$el.find(".se-crop-scale").css("top",-a+"px"),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),o,o,this.cropResizable.position().left,a),this.videoPlayerView.$el.find(".se-crop-scale").css("left",s+"px")}else{a=n/2-e*r/2-this.cropResizable.position().top,s=this.cropResizable.position().left;this.videoPlayerView.$el.find(".se-crop-scale").css("left",-s+"px"),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),r,r,s,this.cropResizable.position().top),this.videoPlayerView.$el.find(".se-crop-scale").css("top",a+"px")}this.cropResizable.removeClass("disp-show").addClass("disp-none")},setProjectJson:function(e){if(this.projectJson=e,window.projectJson=this.projectJson,this.projectJson.simpleEdit=!0,null!=this.projectJson.seSessionDetails)this.sessionDetails=this.projectJson.seSessionDetails;else{this.sessionDetails.totalCreatedClips=this.projectJson.clips.length;for(var t=!1,i=0;i<this.projectJson.clips.length;i++){"webcam"==(a=this.projectJson.clips[i]).footage.type&&!0,"screenrecord"==a.footage.type&&(t=!0)}var n=-1,r=[],o=JSON.parse(JSON.stringify(this.projectJson.clips||[]));for(i=0;i<this.projectJson.clips.length;i++){(a=o[i]).properties.xposRaw=this.getValueForPlayer(a.properties.xpos,!0),a.properties.yposRaw=this.getValueForPlayer(a.properties.ypos,!1),a.properties.widthRaw=this.getValueForPlayer(a.properties.width,!0),a.properties.heightRaw=this.getValueForPlayer(a.properties.height,!1),"screenrecord"!=a.footage.type&&"webcam"!=a.footage.type||(n=-1==n?a.footage.duration:Math.min(n,a.footage.duration),r.push(a.footage)),a.footage.containsVideo&&("screenrecord"==a.footage.type||"webcam"==a.footage.type&&!t?(this.sessionDetails.primaryVideo=a.id,this.sessionDetails.totalAddedEffects=(a.effects||[]).length):"webcam"==a.footage.type&&(this.sessionDetails.secondaryVideo=a.id))}for(var i in r)r[i].duration=n}for(i=0;i<this.projectJson.clips.length;i++){var a=this.projectJson.clips[i];this.isImageComponent(a.id)&&("image"==a.footage.type?a.footage.src=this.footageUrls[Number(a.footage.id)]:a.footage.src=p.getMfImage(a.footage.image_id?a.footage.image_id:a.footage.id,a.footage.is_website?"website":"image"))}this.cropResizable.removeClass("disp-none").addClass("disp-show"),null!=this.projectJson.crop&&this.cropResizable.css({left:this.getValueForPlayer(this.projectJson.crop.x,!0)+"px",top:this.getValueForPlayer(this.projectJson.crop.y,!1)+"px",width:this.getValueForPlayer(this.projectJson.crop.w,!0)+"px",height:this.getValueForPlayer(this.projectJson.crop.h,!1)+"px"}),this.cropResizable.removeClass("disp-show").addClass("disp-none"),null==this.sessionDetails.secondaryVideo&&this.secondaryVideoContainer.hide(),this.reconstructUI(),this.cropResized(!1,!1),this.enabled||this.disabled()},mediaContainerResized:function(e){var t=e.find("video");0==t.length&&(t=e.find("img"));var i=e.width()/t.width(),n=e.height()/t.height();t.css("height",""),this.scaleElement(t,i,n)},scaleElement:function(e,t,i,n,r){e.css({"-ms-transform":"scale("+t+","+i+")","-webkit-transform":"scale("+t+","+i+")",transform:"scale("+t+","+i+")","-ms-transform-origin:":null==n?"top left":n+"px "+r+"px","-webkit-transform-origin":null==n?"top left":n+"px "+r+"px","transform-origin":null==n?"top left":n+"px "+r+"px"})},globalClick:function(e){HippoVideo&&HippoVideo.AppRegistry&&HippoVideo.AppRegistry.isDeepIntg&&("saveTextEdit"!==e.target.id&&"cancelTextEdit"!==e.target.id||r()("#"+e.target.id).is(":visible")&&r()("#"+e.target.id).click());var t=e.data.that;t.enabled&&(t.currentSelectedText,0!=t.videoPlayerView.$el.find(".se-text-editable").has(r()(e.target)).length||0!=t.videoPlayerView.$el.find(".se-text-component").has(r()(e.target)).length||r()(e.target).hasClass("se-text-component")||r()(e.target).hasClass("se-text-editable")||null==t.currentSelectedText||r()(e.target).parent().hasClass("atwho-view-ul")||(t.textEditableChanged(),t.videoPlayerView.$el.find(".se-text-editable").is(":visible")?t.closeTextEditable():0==t.$el.find(".addtext-control-detail").has(r()(e.target)).length&&0==t.videoPlayerView.$el.find(".player-controls-container").has(r()(e.target)).length&&0==r()(".sp-picker-container").has(r()(e.target)).length&&0==r()(".sp-palette-container").has(r()(e.target)).length&&t.unselectText()),0!=t.$el.has(r()(e.target)).length||0!=t.videoPlayerView.$el.has(r()(e.target)).length||t.showingColorPicker||r()(e.target).parent().hasClass("atwho-view-ul")||t.unselectAllComponents(),0==t.$el.find(".sticker-family-container").has(r()(e.target)).length&&t.$el.find(".sticker-family-all").hide(),!r()(e.target).hasClass("trim-before-pop")&&0==t.$el.find(".trim-before-pop").has(r()(e.target)).length&&t.$el.find(".trim-before-pop").is(":visible")&&t.$el.find(".trim-before-pop").fadeOut(100),!r()(e.target).hasClass("trim-after-pop")&&0==t.$el.find(".trim-after-pop").has(r()(e.target)).length&&t.$el.find(".trim-after-pop").is(":visible")&&t.$el.find(".trim-after-pop").fadeOut(100))},selectPrimaryVideo:function(){this.enabled&&(this.primaryVideoOverflowContainer.css("overflow","visible"),this.primaryVideoContainer.addClass("edit-video-selected").css("z-index","105").resizable("enable"),this.secondaryVideoContainer.removeClass("edit-video-selected").css("z-index","106").resizable("disable"),this.$el.find(".primaryvid-control-detail").show(),this.$el.find(".secondaryvid-control-detail").hide())},selectSecondaryVideo:function(){this.enabled&&(this.secondaryVideoOverflowContainer.css("overflow","visible"),this.secondaryVideoContainer.addClass("edit-video-selected").css("z-index","105").resizable("enable"),this.primaryVideoContainer.removeClass("edit-video-selected").css("z-index","105").resizable("disable"),this.$el.find(".primaryvid-control-detail").hide(),this.$el.find(".secondaryvid-control-detail").show())},makeVideoResizeableDraggable:function(){this.enabled&&(this.isPPR?l.default.trackInThirdPartyTools("video_preview_Resize_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Resize_save",{email:this.userEmail}),this.unselectAllControls(),this.userEventStart(),this.unselectAllComponents(),this.selectPrimaryVideo(),this.selectControl("resize-draggable-btn"),this.primaryVideoContainer.unbind("mousedown",this.selectPrimaryVideo).bind("mousedown",this.selectPrimaryVideo).draggable("enable"),this.secondaryVideoContainer.unbind("mousedown",this.selectSecondaryVideo).bind("mousedown",this.selectSecondaryVideo).draggable("enable"),this.$el.find(".se-resize-control-detail").show())},unselectClips:function(){this.primaryVideoContainer.unbind("mousedown",this.selectPrimaryVideo).resizable({disabled:!0}).draggable({disabled:!0}),this.secondaryVideoContainer.unbind("mousedown",this.selectSecondaryVideo).resizable({disabled:!0}).draggable({disabled:!0}),this.$el.find(".se-resize-control-detail, .primaryvid-control-detail, .secondaryvid-control-detail").hide(),this.primaryVideoOverflowContainer.css("overflow","hidden"),this.secondaryVideoOverflowContainer.css("overflow","hidden"),this.primaryVideoContainer.css("z-index","100"),this.secondaryVideoContainer.css("z-index","101"),r()(".edit-video-selected").removeClass("edit-video-selected")},userEventStart:function(){this.videoPlayerView.$el.find(".player-border").fadeIn()},userEventStop:function(){this.videoPlayerView.$el.find(".player-border").fadeOut(),this.updateProjectJson()},playerResized:function(e){if(null!=this.projectJson&&(this.enabled||(this.videoPlayerView.$el.find(".se-crop-scale").css({top:"0px",left:"0px"}),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),1,1,0,0)),this.cropResizable.removeClass("disp-none").addClass("disp-show"),null!=this.projectJson.crop&&this.cropResizable.css({left:this.getValueForPlayer(this.projectJson.crop.x,!0)+"px",top:this.getValueForPlayer(this.projectJson.crop.y,!1)+"px",width:this.getValueForPlayer(this.projectJson.crop.w,!0)+"px",height:this.getValueForPlayer(this.projectJson.crop.h,!1)+"px"}),this.cropResizable.removeClass("disp-show").addClass("disp-none"),this.reconstructUI(),this.cropResized(!1,!1),!this.enabled)){this.videoPlayerView.$el.find(".se-crop-resizable").removeClass("disp-none").addClass("disp-show");var t=this.cropResizable.height(),i=this.cropResizable.width(),n=this.videoPlayerView.$el.width(),r=this.videoPlayerView.$el.height(),o=n/i,a=r/t;if(o*t>r){var s=this.cropResizable.position().top,l=n/2-i*a/2-this.cropResizable.position().left;this.videoPlayerView.$el.find(".se-crop-scale").css("top",-s+"px"),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),a,a,this.cropResizable.position().left,s),this.videoPlayerView.$el.find(".se-crop-scale").css("left",l+"px")}else{s=r/2-t*o/2-this.cropResizable.position().top,l=this.cropResizable.position().left;this.videoPlayerView.$el.find(".se-crop-scale").css("left",-l+"px"),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),o,o,l,this.cropResizable.position().top),this.videoPlayerView.$el.find(".se-crop-scale").css("top",s+"px")}this.videoPlayerView.$el.find(".se-crop-resizable").removeClass("disp-show").addClass("disp-none"),this.videoPlayerView.resizeFitThumnbail()}},updateProjectJson:function(){if(this.enabled){var e=l.default.map(this.sessionDetails.trimSliderStart,0,1e3,0,this.videoPlayerView.mediaPlayer.duration),t=l.default.map(this.sessionDetails.trimSliderEnd,0,1e3,0,this.videoPlayerView.mediaPlayer.duration);if(l.default.isNumber(e)&&l.default.isNumber(t))for(var i=0;i<this.projectJson.clips.length;i++){var n=this.projectJson.clips[i];if(this.updateClipPropertiesForProjectJSON(n,e,t),n.id===this.sessionDetails.primaryVideo)for(var o=n.effects||[],a=0;a<o.length;a++)this.updateClipPropertiesForProjectJSON(o[a],e,t)}var s=this.cropResizable.is(":visible");this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.projectJson.crop={x:this.getValueForProject(this.cropResizable.position().left,!0),y:this.getValueForProject(this.cropResizable.position().top,!1),w:Math.min(this.getValueForProject(this.cropResizable.width(),!0),this.projectJson.canvasWidth),h:Math.min(this.getValueForProject(this.cropResizable.height(),!1),this.projectJson.canvasHeight)},s||this.cropResizable.removeClass("disp-show").addClass("disp-none");for(i=0;i<this.projectJson.clips.length;i++){o=(n=this.projectJson.clips[i]).effects||[];null!=this.sessionDetails.primaryVideo&&n.id==this.sessionDetails.primaryVideo&&(n.properties.widthRaw=this.primaryVideoContainer.width(),n.properties.heightRaw=this.primaryVideoContainer.height(),n.properties.xposRaw=this.primaryVideoContainer.position().left,n.properties.yposRaw=this.primaryVideoContainer.position().top,n.properties.width=this.getValueForProject(n.properties.widthRaw,!0),n.properties.height=this.getValueForProject(n.properties.heightRaw,!1),n.properties.xpos=this.getValueForProject(n.properties.xposRaw,!0),n.properties.ypos=this.getValueForProject(n.properties.yposRaw,!1)),null!=this.sessionDetails.secondaryVideo&&n.id==this.sessionDetails.secondaryVideo&&(n.properties.widthRaw=this.secondaryVideoContainer.width(),n.properties.heightRaw=this.secondaryVideoContainer.height(),n.properties.xposRaw=this.secondaryVideoContainer.position().left,n.properties.yposRaw=this.secondaryVideoContainer.position().top,n.properties.width=this.getValueForProject(n.properties.widthRaw,!0),n.properties.height=this.getValueForProject(n.properties.heightRaw,!1),n.properties.xpos=this.getValueForProject(n.properties.xposRaw,!0),n.properties.ypos=this.getValueForProject(n.properties.yposRaw,!1)),-1!==this.sessionDetails.addedClips.indexOf(n.id)&&n.footage.containsImage&&(r()("#se-component-"+n.id).length>0?(n.properties.xposRaw=r()("#se-component-"+n.id).position().left,n.properties.yposRaw=r()("#se-component-"+n.id).position().top,n.properties.widthRaw=r()("#se-component-"+n.id).width(),n.properties.heightRaw=r()("#se-component-"+n.id).height(),n.properties.xpos=this.getValueForProject(n.properties.xposRaw,!0),n.properties.ypos=this.getValueForProject(n.properties.yposRaw,!1),n.properties.width=this.getValueForProject(n.properties.widthRaw,!0),n.properties.height=this.getValueForProject(n.properties.heightRaw,!1)):console.warn("not drawn#se-component-"+n.id)),n.footage.containsText&&(null==n.properties.fontSizeProject&&(n.properties.fontSizeProject=this.getValueForProject(n.properties.fontSize,!0)),n.properties.boundingBoxRaw&&(n.properties.boundingBox=this.getBoundingBoxForProject(n.properties.boundingBoxRaw)))}}},updateClipPropertiesForProjectJSON:function(e,t,i){null!=e.startFrom&&null!=e.endAt?(e.position=e.startFrom-t,0==e.position&&(e.position=.001),e.position>this.videoPlayerView.mediaPlayer.duration-i?e.deleted=!0:e.deleted=!1,e.end=e.endAt-e.startFrom,e.endAt>this.videoPlayerView.mediaPlayer.duration-i&&(e.end=this.videoPlayerView.mediaPlayer.duration-i-e.startFrom),e.end=Math.max(.02,e.end),e.start=0):(e.start=t,e.end=(e.footage?e.footage.duration:e.duration)-i,e.end<e.start&&(e.end=e.start))},reconstructUI:function(e,t){if(this.projectJson){var i=this.videoPlayerView.$el.width()/this.projectJson.canvasWidth,n=this.videoPlayerView.$el.height()/this.projectJson.canvasHeight,o=this,a=!1,s=this.videoPlayerView.$el.find(".se-components-container");s.empty();var c=function(){o.resizeHandler(),t&&!a&&(a=!0,t())};void 0===this.sessionDetails.primaryVideo&&void 0===this.sessionDetails.secondaryVideo&&this.updateProjectJson();var d=l.default.map(this.sessionDetails.trimSliderStart,0,1e3,0,this.videoPlayerView.mediaPlayer.duration),u=l.default.map(this.sessionDetails.trimSliderEnd,0,1e3,0,this.videoPlayerView.mediaPlayer.duration);l.default.isNumber(d)&&l.default.isNumber(u)&&this.videoPlayerView.trim(d,u,!0);for(var p=JSON.parse(JSON.stringify(this.projectJson.clips||[])),h=0;h<this.projectJson.clips.length;h++){var f=p[h];if(null!=this.sessionDetails.primaryVideo&&f.id==this.sessionDetails.primaryVideo&&this.primaryVideoContainer.animate({width:f.properties.width*i+"px",height:f.properties.height*n+"px",left:f.properties.xpos*i+"px",top:f.properties.ypos*n+"px"},e?200:10,c),null!=this.sessionDetails.secondaryVideo&&f.id==this.sessionDetails.secondaryVideo&&this.secondaryVideoContainer.animate({width:f.properties.width*i+"px",height:f.properties.height*n+"px",left:f.properties.xpos*i+"px",top:f.properties.ypos*n+"px"},e?200:10,c),-1!=this.sessionDetails.addedClips.indexOf(f.id)){o=this;if(f.footage.containsText){(g=document.createElement("div")).id="se-component-"+f.id,r()(g).addClass("se-text-component"),f.properties.boundingBox?(f.properties.boundingBoxRaw={x:f.properties.boundingBox.x*i,y:f.properties.boundingBox.y*n,w:f.properties.boundingBox.w*i,h:f.properties.boundingBox.h*n},r()(g).css({left:f.properties.boundingBoxRaw.x+"px",top:f.properties.boundingBoxRaw.y+"px",width:f.properties.boundingBoxRaw.w+"px",height:f.properties.boundingBoxRaw.h+"px"})):r()(g).css({left:f.properties.xpos*i+"px",top:f.properties.ypos*n+"px"}),this.setTextDraggableContainerSize(g,f,!1);var m=document.createElement("div");r()(m).addClass("se-text-container"),this.checkAndPopulateMf(f.properties.text),this.newlineTextToHtml(m,f),r()(g).append(m),r()(g).append('<span class="se-text-delete">x</span>'),r()(g).find(".se-text-delete").bind("click",this.deleteText),r()(g).draggable({scroll:!1,opacity:.9,snap:".hippo-video-player, .se-crop-highlighter",snapMode:"both",snapTolerance:10,start:function(e){o.selectText(e.target.id.split("se-component-")[1]),o.userEventStart()},stop:function(){o.textBoxResized(),o.textPropertyChanged(),o.userEventStop()}}),f.footage.calloutId&&r()(g).draggable("option","containment","#se-component-"+f.footage.calloutId),r()(g).click((function(e){if(!((new Date).getTime()-o.lastTextResizeTime<100)){var t=o.currentSelectedText==e.currentTarget.id.split("se-component-")[1];o.selectText(e.currentTarget.id.split("se-component-")[1]),t&&o.showTextEditable(e.currentTarget.id.split("se-component-")[1])}})),r()(g).hover((function(e){o.currentSelectedText!=e.currentTarget.id.split("se-component-")[1]&&(r()(".se-components-hover").removeClass("se-components-hover"),r()(this).addClass("se-components-hover"))}),(function(e){o.currentSelectedText!=e.currentTarget.id.split("se-component-")[1]&&r()(this).removeClass("se-components-hover")})),s.append(g),f.id==this.currentSelectedText&&this.selectText(f.id,!0),this.setLineHeight(f)}else if(f.footage.containsImage){var g=document.createElement("div"),v=document.createElement("img");v.crossOrigin="Anonymous",g.id="se-component-"+f.id,r()(g).addClass("se-image-component"),f.footage.id<=-1e4?v.src="https://s3.amazonaws.com/hippolms-wiz-static/callouts/c"+(-f.footage.id-1e4)+".png?v=2":this.isImageComponent(f.id)?v.src=f.footage.src:v.src="https://s3.amazonaws.com/hippolms-wiz-static/stickers/s"+(-f.footage.id-100)+".png?v=2",r()(g).css({left:f.properties.xpos*i+"px",top:f.properties.ypos*n+"px",width:f.properties.width*i+"px",height:f.properties.height*n+"px",opacity:f.properties.opacity}),r()(g).draggable({scroll:!1,opacity:.9,snap:".hippo-video-player, .se-crop-highlighter",snapMode:"both",snapTolerance:10,drag:function(e){var t=e.target.id.split("se-component-")[1];null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)&&o.calloutDragged()},start:function(e){var t=e.target.id.split("se-component-")[1];if(null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)){o.selectCallout(t);var i=o.getClipOf(t),n=o.getClipOf(i.footage.textId);n&&n.properties.boundingBoxRaw&&(o.calloutTextBoxSpread={x:l.default.map(n.properties.boundingBoxRaw.x,i.properties.xposRaw,i.properties.xposRaw+i.properties.widthRaw,0,1),y:l.default.map(n.properties.boundingBoxRaw.y,i.properties.yposRaw,i.properties.yposRaw+i.properties.heightRaw,0,1),w:n.properties.boundingBoxRaw.w/i.properties.widthRaw})}else o.selectSticker(t);o.userEventStart()},stop:function(e){var t=e.target.id.split("se-component-")[1];null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)?(o.calloutDragged(),o.calloutPropertyChanged()):o.stickerPropertyChanged(),o.userEventStop(),o.isCalloutImage(t)?o.unselectCallout():o.unselectSticker()}}),r()(g).resizable({handles:"n, e, w, s, ne, nw, se, sw",aspectRatio:f.properties.lockAspectRatio,resize:function(e,t){o.mediaContainerResized(r()(e.target));var i=e.target.id.split("se-component-")[1];null==i&&(i=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(i)&&o.calloutResized(i)},start:function(e){var t=e.target.id.split("se-component-")[1];if(null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)){o.selectCallout(t);var i=o.getClipOf(t),n=o.getClipOf(i.footage.textId);n&&n.properties.boundingBoxRaw&&(o.calloutTextBoxSpread={x:l.default.map(n.properties.boundingBoxRaw.x,i.properties.xposRaw,i.properties.xposRaw+i.properties.widthRaw,0,1),y:l.default.map(n.properties.boundingBoxRaw.y,i.properties.yposRaw,i.properties.yposRaw+i.properties.heightRaw,0,1),w:n.properties.boundingBoxRaw.w/i.properties.widthRaw})}else o.selectSticker(t);o.userEventStart()},stop:function(e){var t=e.target.id.split("se-component-")[1];null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)?(o.calloutResized(t),o.calloutPropertyChanged()):o.stickerPropertyChanged(),o.userEventStop(),o.setAdaptiveBorderForTarget(r()(e.target))}}),this.currentSelectedSticker!=f.id&&this.currentSelectedCallout!=f.id&&r()(g).resizable({disabled:!0}),r()(g).find(".ui-resizable-handle").css("display",""),r()(g).find(".ui-resizable-handle").removeClass("ui-icon ui-icon-gripsmall-diagonal-se"),r()(g).click((function(e){var t=e.target.id.split("se-component-")[1];null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)?o.selectCallout(t):o.selectSticker(t)})),r()(g).hover((function(){r()(".se-components-hover").removeClass("se-components-hover"),r()(this).addClass("se-components-hover")}),(function(){r()(this).removeClass("se-components-hover")})),r()(g).append(v),s.append(g),this.currentSelectedSticker!=f.id&&this.currentSelectedCallout!=f.id||this.setAdaptiveBorderForTarget(r()("#se-component-"+f.id)),o.mediaContainerResized(r()(g))}}}this.initializeAtwho(),this.applyEffects(),this.resizeHandler(),this.playerTimeUpdate()}},checkAndPopulateMf:function(e){if(this.isPersonalizationEnabled)for(var t,i=0,n=e.indexOf("${",0);-1!=n&&-1!=i;){-1!=(i=e.indexOf("}",n))&&(t=e.substring(n+2,i),this.mfValues.includes("{"+t+"}")||(this.mfValues.push("{"+t+"}"),this.$el.find("#seMfSelector").append(r()("<option>"+t+"</option>"))),n=e.indexOf("${",i))}},applyEffects:function(){var e,t=this.getClipOf(this.sessionDetails.primaryVideo),i=this;if(t){var n=t.effects||[],o=this.videoPlayerView.$el.find(".se-effects-components-container");o.empty();for(var a=0;a<n.length;a++){(e=n[a]).xposRaw=this.getValueFromClipPercent(e.xpos,t,!0),e.yposRaw=this.getValueFromClipPercent(e.ypos,t,!1),e.widthRaw=this.getValueFromClipPercent(e.width,t,!0),e.heightRaw=this.getValueFromClipPercent(e.height,t,!1);var s=document.createElement("div");s.id="se-effects-"+e.id,s.className="se-effects",s.style.left=e.xposRaw+"px",s.style.top=e.yposRaw+"px",s.style.width=e.widthRaw+"px",s.style.height=e.heightRaw+"px",r()(s).draggable({scroll:!1,opacity:.9,snap:".hippo-video-player, .se-crop-highlighter",snapMode:"both",snapTolerance:10,containment:".primary-video-container",start:function(e){i.selectBlur(e.target.id.split("se-effects-")[1]),i.userEventStart()},stop:function(e){i.blurAreaChanged(),i.userEventStop()}}).resizable({handles:"n, e, w, s, ne, nw, se, sw",aspectRatio:e.lockAspectRatio,containment:".primary-video-container",start:function(e){var t=e.target.id.split("se-effects-")[1];t||(t=r()(e.target).parent()[0].id.split("se-effects-")[1]),i.selectBlur(t),i.userEventStart()},stop:function(e){i.blurAreaChanged(),i.userEventStop(),i.setAdaptiveBorderForTarget(r()(e.target))}}).mousedown((function(e){i.selectBlur(e.target.id.split("se-effects-")[1]),e.stopPropagation()})),this.currentSelectedBlur!=e.id&&r()(s).resizable({disabled:!0}),r()(s).find(".ui-resizable-handle").css("display",""),r()(s).find(".ui-resizable-handle").removeClass("ui-icon ui-icon-gripsmall-diagonal-se"),o.append(s)}}this.drawBlurLayer()},getValueForPlayer:function(e,t){var i=this.videoPlayerView.$el.width(),n=this.videoPlayerView.$el.height(),r=this.projectJson.canvasWidth,o=this.projectJson.canvasHeight;return t?l.default.roundNumber(e*(i/r),3):l.default.roundNumber(e*(n/o),3)},getValueForProject:function(e,t){var i=this.videoPlayerView.$el.width(),n=this.videoPlayerView.$el.height(),r=this.projectJson.canvasWidth,o=this.projectJson.canvasHeight;return t?l.default.roundNumber(e*(r/i),3):l.default.roundNumber(e*(o/n),3)},getBoundingBoxForProject:function(e){var t={x:this.getValueForProject(e.x,!0),y:this.getValueForProject(e.y,!1),w:this.getValueForProject(e.w,!0),h:this.getValueForProject(e.h,!1)};return null!=e.topPadding&&(t.topPadding=this.getValueForProject(e.topPadding,!1)),t},getValueForClip:function(e,t,i){var n=t.properties.widthRaw,r=t.properties.heightRaw;return i?l.default.roundNumber(l.default.map(e,0,n,0,1),5):l.default.roundNumber(l.default.map(e,0,r,0,1),5)},getValueFromClipPercent:function(e,t,i){var n=t.properties.widthRaw,r=t.properties.heightRaw;return i?l.default.roundNumber(e*n,5):l.default.roundNumber(e*r,5)},onBoardUser:function(){var e=this;this.unselectAllControls(),this.$el.find(".default-control-detail").show(),this.infoText.html("Resize and Move videos.."),this.secondaryVideoOverflowContainer.css("overflow","visible"),this.secondaryVideoContainer.find(".ui-resizable-handle").hide(),r.a.when(this.secondaryVideoContainer.find(".ui-resizable-handle").delay(200).fadeIn(300)).done((function(){r.a.when(e.secondaryVideoContainer.find(".ui-resizable-handle").fadeOut(300)).done((function(){e.secondaryVideoOverflowContainer.css("overflow","hidden"),e.primaryVideoOverflowContainer.css("overflow","visible"),e.primaryVideoContainer.find(".ui-resizable-handle").hide(),r.a.when(e.primaryVideoContainer.find(".ui-resizable-handle").delay(500).fadeIn(300)).done((function(){r.a.when(e.primaryVideoContainer.find(".ui-resizable-handle").fadeOut(300)).done((function(){e.secondaryVideoContainer.find(".ui-resizable-handle").css("display",""),e.primaryVideoContainer.find(".ui-resizable-handle").css("display",""),e.unselectClips(),e.onBoardControls()}))}))}))}))},onBoardControls:function(){var e=this;e.highlightControl(".trim-btn","Trim Video to change start and end points..",(function(){e.highlightControl(".crop-btn","Crop video..",(function(){e.highlightControl(".add-text-btn","Add text to video.",(function(){e.highlightControl(".add-callouts-btn","Add callouts to video",(function(){e.highlightControl(".add-stickers-btn","Add your favourite stickers",(function(){e.infoText.html("Lets go!!"),setTimeout((function(){e.infoText.html(" ")}),1500)}))}))}))}))}))},highlightControl:function(e,t,i){var n=this;n.infoText.delay(300).html(t),n.$el.find(e).animate({opacity:.5},200,(function(){n.$el.find(e).delay(700).animate({opacity:1},200,(function(){i&&i()}))}))},unselectAllControls:function(){this.$el.find(".se-control-detail").hide(),this.unselectCrop(),this.unselectClips(),this.videoPlayerView.$el.find(".components-marker-container").empty()},unselectAllComponents:function(){this.unselectText(),this.unselectSticker(),this.unselectCallout(),this.unselectBlur(),this.primaryVideoOverflowContainer.css("overflow","hidden"),this.secondaryVideoOverflowContainer.css("overflow","hidden")},selectTrim:function(e){null!=e&&(this.askReloadConfirmation=!0),this.isPPR?l.default.trackInThirdPartyTools("video_preview_Trim_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Trim_save",{email:this.userEmail}),this.unselectAllControls(),this.$el.find(".trim-slider").slider("values",[this.sessionDetails.trimSliderStart,1e3-this.sessionDetails.trimSliderEnd]),this.$el.find(".trim-control-detail").fadeIn(100),this.$el.find(".trim-preview-container, .preview-trim-arrow").hide(),this.updateTrimInput(),this.selectControl("trim-btn"),isFinite(this.videoPlayerView.mediaPlayer.duration)||this.$el.find(".trim-before-container, .trim-after-container").hide()},trimInputButtonClicked:function(e){var t=e.data.that,i=e.target,n=l.default.map(t.sessionDetails.trimSliderStart,0,1e3,0,t.videoPlayerView.mediaPlayer.duration),o=t.videoPlayerView.mediaPlayer.duration-l.default.map(t.sessionDetails.trimSliderEnd,0,1e3,0,t.videoPlayerView.mediaPlayer.duration);r.a.contains(t.$el.find(".trim-before-container")[0],i)?r()(i).hasClass("trim-input-btn-minus")?n=Math.max(n-1,0):r()(i).hasClass("trim-input-btn-plus")&&(n=Math.min(n+1,t.videoPlayerView.mediaPlayer.duration)):r.a.contains(t.$el.find(".trim-after-container")[0],i)&&(r()(i).hasClass("trim-input-btn-minus")?o=Math.max(o-1,0):r()(i).hasClass("trim-input-btn-plus")&&(o=Math.min(o+1,t.videoPlayerView.mediaPlayer.duration))),Math.floor(n)>=Math.floor(o)||(t.$el.find(".trim-before-input").val(l.default.strToTime(n)),t.$el.find(".trim-after-input").val(l.default.strToTime(o)),t.trimInputChanged())},trimInputTyped:function(e){var t=e.data.that,i=r()(e.target),n=l.default.map(t.sessionDetails.trimSliderStart,0,1e3,0,t.videoPlayerView.mediaPlayer.duration),o=t.videoPlayerView.mediaPlayer.duration-l.default.map(t.sessionDetails.trimSliderEnd,0,1e3,0,t.videoPlayerView.mediaPlayer.duration);if(38==e.keyCode||40==e.keyCode){if(e.preventDefault(),38==e.keyCode?i.hasClass("trim-before-input")?n=Math.min(n+1,t.videoPlayerView.mediaPlayer.duration):i.hasClass("trim-after-input")&&(o=Math.min(o+1,t.videoPlayerView.mediaPlayer.duration)):40==e.keyCode&&(i.hasClass("trim-before-input")?n=Math.max(n-1,0):i.hasClass("trim-after-input")&&(o=Math.max(o-1,0))),Math.floor(n)>=Math.floor(o))return;t.$el.find(".trim-before-input").val(l.default.strToTime(n)),t.$el.find(".trim-after-input").val(l.default.strToTime(o)),t.trimInputChanged()}else{t=e.data.that;clearTimeout(t.trimInputTypedTimeout),t.trimInputTypedTimeout=setTimeout((function(){t.trimInputChanged()}),500)}},trimInputChanged:function(){var e=l.default.timeToIntWithMillisecond(this.$el.find(".trim-before-input").val()),t=l.default.timeToIntWithMillisecond(this.$el.find(".trim-after-input").val()),i=l.default.map(e,0,this.videoPlayerView.mediaPlayer.duration,0,1e3),n=l.default.map(t,0,this.videoPlayerView.mediaPlayer.duration,0,1e3);parseInt(i)>=parseInt(n)||(this.$el.find(".trim-slider").slider("values",[i,n]),this.$el.find(".trim-control-detail input.sliderValue[data-index=0]").val(i),this.$el.find(".trim-control-detail input.sliderValue[data-index=1]").val(1e3-n)),this.trimChanged()},updateTrimInput:function(){var e=l.default.map(this.sessionDetails.trimSliderStart,0,1e3,0,this.videoPlayerView.mediaPlayer.duration),t=this.videoPlayerView.mediaPlayer.duration-l.default.map(this.sessionDetails.trimSliderEnd,0,1e3,0,this.videoPlayerView.mediaPlayer.duration);if(!isFinite(e)||!isFinite(t))return this.$el.find(".trim-before-time").html("-"),void this.$el.find(".trim-after-time").html("-");e=parseFloat(e).toFixed(3),t=parseFloat(t).toFixed(3),this.$el.find(".trim-before-time").html(l.default.strToTime(e)),this.$el.find(".trim-after-time").html(l.default.strToTime(t)),this.$el.find(".trim-before-input").val(l.default.strToTime(e)),this.$el.find(".trim-after-input").val(l.default.strToTime(t)),this.$el.find(".ruler-dynamic").is(":visible")||(this.drawDynamicRuler(),this.$el.find(".ruler-static").hide(),this.$el.find(".ruler-dynamic").show())},drawDynamicRuler:function(){for(var e=this.$el.find(".ruler-dynamic")[0].width,t=this.$el.find(".ruler-dynamic")[0].height,i=e/this.videoPlayerView.mediaPlayer.duration,n=i,r=2;n<15;r++)n=i*r;var o,a=this.$el.find(".ruler-dynamic")[0],s=a.getContext("2d");s.clearRect(0,0,a.width,a.height),s.lineWidth=1;for(r=0;r<e;r+=n){o=r,s.beginPath(),s.moveTo(r,0),s.lineTo(r,t/2);for(var l=0;l<4;l++)o+=n/5,s.moveTo(o,0),s.lineTo(o,t/3);s.stroke(),s.closePath()}},showTrimBeforePop:function(e){e.data.that.$el.find(".trim-before-pop").fadeIn(100)},showTrimAfterPop:function(e){e.data.that.$el.find(".trim-after-pop").fadeIn(100)},trimSliding:function(e){if(this.$el.find(".trim-preview-video")[0].src.length<=0&&(this.$el.find(".trim-preview-video")[0].src=this.videoPlayerView.mediaPlayer.currentSrc),e.handle==this.$el.find(".trim-slider .ui-slider-handle")[0]){this.$el.find(".trim-before-container").addClass("trim-hovered");var t=l.default.map(this.sessionDetails.trimSliderStart,0,1e3,0,this.videoPlayerView.mediaPlayer.duration);this.$el.find(".trim-preview-video")[0].currentTime=t,this.$el.find(".trim-preview-container").css("left",r()(this.$el.find(".trim-slider .ui-slider-handle")[0]).position().left-r()(".trim-preview-container").width()/2+"px"),this.$el.find(".preview-trim-arrow").css("left",r()(this.$el.find(".trim-slider .ui-slider-handle")[0]).position().left)}else{this.$el.find(".trim-after-container").addClass("trim-hovered");var i=l.default.map(this.sessionDetails.trimSliderEnd,0,1e3,0,this.videoPlayerView.mediaPlayer.duration);this.$el.find(".trim-preview-video")[0].currentTime=this.videoPlayerView.mediaPlayer.duration-i,this.$el.find(".trim-preview-container").css("left",r()(this.$el.find(".trim-slider .ui-slider-handle")[1]).position().left-+r()(".trim-preview-container").width()/2+"px"),this.$el.find(".preview-trim-arrow").css("left",r()(this.$el.find(".trim-slider .ui-slider-handle")[1]).position().left)}this.$el.find(".trim-preview-container, .preview-trim-arrow").show(),clearTimeout(this.trimFadeoutTimeout);var n=this;this.trimFadeoutTimeout=setTimeout((function(){n.$el.find(".trim-preview-container, .preview-trim-arrow").fadeOut(200)}),2e3)},trimChanged:function(){this.trimLeadGenerated=!0,this.sessionDetails.trimSliderStart=this.$el.find(".trim-control-detail input.sliderValue[data-index=0]").val(),this.sessionDetails.trimSliderEnd=this.$el.find(".trim-control-detail input.sliderValue[data-index=1]").val(),this.updateTrimInput(),this.updateProjectJson(),this.reconstructUI()},disableTrim:function(){r()(".trim-btn").addClass("disabled")},selectCrop:function(){this.askReloadConfirmation=!0,this.isPPR?l.default.trackInThirdPartyTools("video_preview_Crop_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Crop_save",{email:this.userEmail}),this.unselectAllControls(),this.unselectAllComponents(),this.$el.find(".crop-control-detail").fadeIn(100),this.cropResizable.resizable("enable"),this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.selectControl("crop-btn")},cropResized:function(e,t){var i=this.cropResizable.is(":visible");if(this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.videoPlayerView.$el.find(".se-crop-highlighter").show(),this.videoPlayerView.$el.find(".se-crop-highlighter-right").css("left",this.cropResizable.position().left+this.cropResizable.width()+"px"),this.videoPlayerView.$el.find(".se-crop-highlighter-left").css("right",this.videoPlayerView.$el.width()-this.cropResizable.position().left+"px"),this.videoPlayerView.$el.find(".se-crop-highlighter-bottom").css({top:this.cropResizable.position().top+this.cropResizable.height()+"px",width:this.cropResizable.width()+2+"px",left:this.cropResizable.position().left-1+"px"}),this.videoPlayerView.$el.find(".se-crop-highlighter-top").css({bottom:this.videoPlayerView.$el.height()-this.cropResizable.position().top+"px",width:this.cropResizable.width()+2+"px",left:this.cropResizable.position().left-1+"px"}),null!=this.projectJson&&(null==t&&r()(".reposition-webcam").is(":checked")||1==t)){var n=this.webcamSnappedLayoutOnCrop();this.secondaryVideoContainer.css({left:n.x+"px",top:n.y+"px"})}null!=this.projectJson&&e&&this.updateProjectJson(),0==i&&this.cropResizable.removeClass("disp-show").addClass("disp-none")},cropStopped:function(){this.cropResizable.position().left<0&&this.cropResizable.css("left","0"),this.cropResizable.position().top<0&&this.cropResizable.css("top","0"),this.cropResizable.position().left+this.cropResizable.width()>this.videoPlayerView.$el.width()&&this.cropResizable.css("width",this.videoPlayerView.$el.width()-this.cropResizable.position().left+"px"),this.cropResizable.position().top+this.cropResizable.height()>this.videoPlayerView.$el.height()&&this.cropResizable.css("height",this.videoPlayerView.$el.height()-this.cropResizable.position().top+"px"),this.cropResized(!0)},applyCrop:function(){this.unselectCrop(),this.$el.find(".default-control-detail").show()},resetCrop:function(){this.cropResizable.css({left:"0",top:"0",width:"100%",height:"100%"}),this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.cropResized(!0),this.unselectCrop(),this.$el.find(".default-control-detail").show()},cancelCrop:function(){this.cropResizable.css({left:this.snapshot.crop.x+"px",top:this.snapshot.crop.y+"px",width:this.snapshot.crop.w+"px",height:this.snapshot.crop.h+"px"}),this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.cropResized(!0,!1),this.unselectCrop(),this.$el.find(".default-control-detail").show()},unselectCrop:function(){this.cropResizable.resizable({disabled:!0}),this.cropResizable.removeClass("disp-show").addClass("disp-none"),this.$el.find(".crop-control-detail").hide()},disableCrop:function(){r()(".crop-btn").addClass("disabled")},handleMfChange:function(e){var t=e.data.that,i=t.$el.find("#seMfSelector").find(":selected").val();if("Merge Fields"!==i){if(t.mfValues.includes("{"+i+"}")){if(t.currentSelectedText){var n=t.getClipOf(t.currentSelectedText);n?(n.properties.textUnwrapped!=this.defaultTextAreaValue?n.properties.textUnwrapped+=" ${"+i+"} ":n.properties.textUnwrapped=" ${"+i+"} ",t.showTextEditable(n.id)):t.addEnteredText("${"+i+"} ")}else t.addEnteredText("${"+i+"} ");t.$el.find("#seMfSelector").val("Merge Fields").trigger("change")}else t.mfValues.push("{"+i+"}"),t.$el.find("#seMfSelector").append(r()("<option selected>"+i+"</option>")).trigger("change"),r()("#select2-seMfSelector-results").find(".select2-results__option--highlighted").remove(),t.initializeAtwho();l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA122,{assetId:this.assetId,email:this.userEmail})}},initializeAtwho:function(){this.isPersonalizationEnabled&&r()("#seTextEditable").atwho({at:"$",data:this.mfValues,limit:this.mfValues.length})},selectAddText:function(){this.askReloadConfirmation=!0,l.default.trackInThirdPartyTools("video_preview_Text_save",{email:this.userEmail}),this.unselectAllControls(),this.$el.find(".addtext-control-detail").fadeIn(100),this.showMarkers("text"),this.selectControl("add-text-btn"),this.isTextClipExist()||this.$el.find(".addtext-control-detail").find("#addTextLink").click()},isTextClipExist:function(){if(this.projectJson&&this.projectJson.clips)for(var e=0;e<this.projectJson.clips.length;e++)if("text"==this.projectJson.clips[e].footage.type)return!0;return!1},addEnteredText:function(e){r()(".addimage-control-detail").css("margin","0px"),(!e||e instanceof r.a.Event)&&(e=this.defaultTextAreaValue);var t=this.getMaxDuration(),i=this.sessionDetails.totalCreatedClips;this.projectJson.trackNames.push("Text - "+e.substring(0,10));var n={containsAudio:!1,containsVideo:!1,containsText:!0,duration:t,type:"text"},o=this.$el.find(".se-font-selector").val(),a=this.$el.find(".se-fontsize-selector").val();null==a&&(a=40);var s=this.$el.find(".se-bold-toggle").is(":checked"),c=this.$el.find(".se-italic-toggle").is(":checked"),d=this;this.getFont(o,s,c,(function(s){var l=d.getMetrics(e,a,s),c={w:l.actualWidth+Math.min(100,Math.max(20,l.actualWidth/10)),h:l.fontHeight+Math.min(100,Math.max(20,l.fontHeight/10))};c.x=d.videoPlayerView.$el.find(".se-crop-highlighter-left").width(),c.x+=(d.videoPlayerView.$el.find(".se-crop-highlighter-right").position().left-d.videoPlayerView.$el.find(".se-crop-highlighter-left").width()-c.w)/2,c.y=d.videoPlayerView.$el.find(".se-crop-highlighter-top").height(),c.y+=(d.videoPlayerView.$el.find(".se-crop-highlighter-bottom").position().top-d.videoPlayerView.$el.find(".se-crop-highlighter-top").height()-c.h)/2;var u={color:"#000000",font:o,fontSize:a,fontSizeProject:d.getValueForProject(a,!0),fadein:0,fadeout:0,opacity:1,text:e,textUnwrapped:e,textAlign:"center",xposRaw:c.x,yposRaw:c.y,xpos:d.getValueForProject(c.x,!0),ypos:d.getValueForProject(c.y,!1),boundingBoxRaw:c,boundingBox:d.getBoundingBoxForProject(c)},p=Math.max(d.videoPlayerView.getCurrentTime(),.001);d.getLuminanceForClip(u.boundingBoxRaw.x,u.boundingBoxRaw.y,u.boundingBoxRaw.w,u.boundingBoxRaw.h)<128&&(u.color="#FFFFFF");var h={deleted:!1,end:3,footage:n,id:i,position:Math.max(p-d.videoPlayerView.trimStart,.001),properties:u,start:0,track:d.projectJson.totalVideoTracks+1,startFrom:p,endAt:Math.min(d.videoPlayerView.getCurrentTime()+3,t)};d.projectJson.totalVideoTracks++,d.projectJson.clips.push(h),d.sessionDetails.addedClips.push(h.id),d.reconstructUI(),d.currentSelectedText=i,d.videoPlayerView.$el.find(".se-text-editable").val(h.properties.text),d.selectText(i),d.sessionDetails.totalCreatedClips++,d.$el.find(".addtext-control-detail .se-color-choose").spectrum("set",d.brand_font_color||h.properties.color),d.$el.find(".addtext-control-detail .color-picker .sp-replacer .text-color-picker").css("color",h.properties.color),d.textPropertyChanged(!0),r()("#se-component-"+i).click()})),l.default.trackInThirdPartyTools("Add text clicked")},getLuminanceForClip:function(e,t,i,n){if(null==e||null==t||null==i||null==n)return null;var r=this.videoPlayerView.$el.find(".primary-video")[0],o=document.createElement("canvas"),a=this.videoPlayerView.$el.width(),s=this.videoPlayerView.$el.height();o.width=a,o.height=s;var l=o.getContext("2d");l.clearRect(0,0,a,s),l.rect(0,0,a,s),l.globalAlpha=1,l.drawImage(r,0,0,a,s);for(var c=l.getImageData(e,t,i,n),d=c.data.length/4,u=0,p=0,h=0,f=0;f<d;f++)u+=c.data[4*f+0],p+=c.data[4*f+1],h+=c.data[4*f+2];return.2126*(u/=d)+.7152*(p/=d)+.0722*(h/=d)},selectText:function(e,t){if(this.enabled){this.currentSelectedText==e||this.fromQuickRecord||(this.unselectAllControls(),this.unselectAllComponents()),this.$el.find("#textPropertiesTab").show(),this.currentSelectedText=e,this.currentSelectedClip=this.getClipOf(e),this.$el.find(".addtext-control-detail").show();var i=this.getClipOf(e);this.videoPlayerView.$el.find(".se-text-editable").val(i.properties.textUnwrapped?i.properties.textUnwrapped:i.properties.text),this.videoPlayerView.$el.find(".se-text-editable").css({"font-family":null!=l.default.getFontMap()[i.properties.font]?l.default.getFontMap()[i.properties.font].css:"","font-size":i.properties.fontSize+"px","font-style":i.properties.italic?"italic":"normal","font-weight":i.properties.bold?"bold":"normal",color:i.properties.color}),this.$el.find(".addtext-input-text").val(i.properties.text),this.$el.find(".se-font-selector").val(this.getFontIfAvailable(i.properties.font)).trigger("change.select2"),this.$el.find(".se-fontsize-selector").val(i.properties.fontSize).trigger("change.select2"),this.$el.find(".se-bold-toggle").prop("checked",i.properties.bold),this.$el.find(".se-italic-toggle").prop("checked",i.properties.italic),this.$el.find(".addtext-control-detail .se-color-choose").spectrum("set",i.properties.color||this.brand_font_color),this.$el.find(".addtext-control-detail .se-shadow-toggle").spectrum("set",i.properties.shadow),this.$el.find(".addtext-control-detail .color-picker .sp-replacer .text-color-picker").css("color",i.properties.color),this.$el.find(".se-textalign-selector").val(i.properties.textAlign?i.properties.textAlign:"left").trigger("change.select2"),r()("#se-component-"+this.currentSelectedText).addClass("se-text-component-selected"),this.setAdaptiveBorderForTarget(r()("#se-component-"+this.currentSelectedText)),r()(".se-components-hover").removeClass("se-components-hover"),this.setTextDraggableContainerSize(r()("#se-component-"+this.currentSelectedText)[0],i,!0),t||this.showClipTime(i),this.selectControl("add-text-btn"),this.showMarkers("text")}},getFontIfAvailable:function(e){if(null==e)return this.defaultFontValue;for(var t in l.default.getFontMap())if(t==e)return e;return this.defaultFontValue},setAdaptiveBorderForTarget:function(e){0!=e.length&&(this.getLuminanceForClip(e.position().left,e.position().top,e.width(),e.height())<128?r()(e).addClass("white"):r()(e).addClass("black"))},unselectText:function(e){if(null!=this.currentSelectedText){this.$el.find("#textPropertiesTab").hide(),e=void 0===e?"callouttext"==this.getClipOf(this.currentSelectedText).footage.type:e,this.closeTextEditable();var t=r()("#se-component-"+this.currentSelectedText);this.currentSelectedText=void 0,this.videoPlayerView.$el.find(".se-text-editable").val(""),this.videoPlayerView.$el.find(".se-text-editable").hide(),t&&r()(t).removeClass("se-text-component-selected black white").resizable("destroy"),this.$el.find(".se-text-component").show(),e?this.showMarkers("calloutimage"):this.showMarkers("text"),this.videoPlayerView.$el.find(".se-clip-time").hide()}},textEditableChanged:function(e){var t=this.getClipOf(this.currentSelectedText);t.properties.textUnwrapped=this.videoPlayerView.$el.find(".se-text-editable").val().trim(),t.properties.textUnwrapped.trim().length||(t.properties.text=""),this.newlineTextToHtml(r()("#se-component-"+this.currentSelectedText+" .se-text-container")[0],t),e&&13==e.keyCode&&!e.shiftKey&&(this.closeTextEditable(),this.unselectText())},addTextChanged:function(e){var t=e.data.that;13==e.keyCode&&t.addEnteredText()},textPropertyChanged:function(e){if(this.currentSelectedText){var t=this.getClipOf(this.currentSelectedText);t&&(t.properties.text=this.getTextFromTextEl(r()("#se-component-"+this.currentSelectedText)).trim(),t.properties.font=this.$el.find(".se-font-selector").val(),t.properties.fontSize=this.$el.find(".se-fontsize-selector").val(),(null==t.properties.fontSizeProject||e&&e.target&&r()(e.target).hasClass("se-fontsize-selector"))&&(t.properties.fontSizeProject=this.getValueForProject(t.properties.fontSize,!0)),t.properties.bold=this.$el.find(".se-bold-toggle").is(":checked"),t.properties.italic=this.$el.find(".se-italic-toggle").is(":checked"),e&&(t.properties.color=this.$el.find(".addtext-control-detail .se-color-choose").spectrum("get").toHexString()),this.$el.find(".addtext-control-detail .color-picker .sp-replacer .text-color-picker").css("color",t.properties.color),t.properties.textAlign=this.$el.find(".se-textalign-selector").val(),t.properties.xposRaw=r()("#se-component-"+this.currentSelectedText).position().left,t.properties.yposRaw=r()("#se-component-"+this.currentSelectedText).position().top,t.properties.xpos=this.getValueForProject(t.properties.xposRaw,!0),t.properties.ypos=this.getValueForProject(t.properties.yposRaw,!1),t.footage.calloutId&&(t.properties.offsetX=r()("#se-component-"+this.currentSelectedText).position().left-r()("#se-component-"+t.footage.calloutId).position().left,t.properties.offsetY=r()("#se-component-"+this.currentSelectedText).position().top-r()("#se-component-"+t.footage.calloutId).position().top),this.updateProjectJson(),this.reconstructUI())}},showTextEditable:function(e){var t=this.getClipOf(e),i=this.getClipElOf(e);this.videoPlayerView.$el.find(".se-text-editable").css({left:i.position().left+"px",top:i.position().top+"px",width:i.width()+"px",height:i.height()+"px","text-align":t.properties.textAlign}),i.fadeOut();var n=this,r=t.properties.textUnwrapped?t.properties.textUnwrapped:t.properties.text;r=r==this.defaultTextAreaValue?"":r,this.videoPlayerView.$el.find(".se-text-editable").val(r),this.videoPlayerView.$el.find(".se-text-editable").fadeIn(150,(function(){n.videoPlayerView.$el.find(".se-text-editable").focus()}))},closeTextEditable:function(){var e=this.getClipOf(this.currentSelectedText);e&&this.setLineHeight(e),this.videoPlayerView.$el.find(".se-text-editable").hide(),this.videoPlayerView.$el.find(".se-text-component").show(),e&&!e.properties.text.trim().length&&r()("#se-component-"+this.currentSelectedText).find(".se-text-delete").click()},deleteText:function(){var e="callouttext"==this.getClipOf(this.currentSelectedText).footage.type;this.removeClip(this.currentSelectedText),this.unselectText(e),this.reconstructUI()},selectAddStickers:function(){this.askReloadConfirmation=!0,this.isPPR?l.default.trackInThirdPartyTools("video_preview_Emoji_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Emoji_save",{email:this.userEmail}),this.unselectAllControls(),this.$el.find(".addsticker-selected").hide(),this.$el.find(".addsticker-initial").show(),this.$el.find(".addsticker-control-detail").fadeIn(100),this.showMarkers("sticker"),this.selectControl("add-stickers-btn")},selectAddImage:function(){this.askReloadConfirmation=!0,this.unselectAllControls(),this.$el.find(".addimage-selected").hide(),this.$el.find(".addimage-initial").show(),this.$el.find(".addimage-control-detail").fadeIn(100),this.selectControl("add-image-btn"),this.isPPR?l.default.trackInThirdPartyTools("video_preview_Image_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA41,{email:this.userEmail})},hanldeImageAspectRatioChange:function(){this.stickerPropertyChanged(),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA413,{email:this.userEmail})},deleteImage:function(){this.deleteSticker(),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA415,{email:this.userEmail})},changeImageOpacity:function(e){this.$el.find("#imageOpacitySlider").val(""===r()(e.currentTarget).val()?0:r()(e.currentTarget).val()),this.$el.find("#imageOpacityInput").val(""===r()(e.currentTarget).val()?"":parseInt(r()(e.currentTarget).val())>100?100:r()(e.currentTarget).val()),this.stickerPropertyChanged(),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA414,{email:this.userEmail})},addImage:function(){this.openImportCallback(),new Me({type:"image",maximumFilesAllowed:1,maximumPerFileSize:5,isMultiple:!1,showAddMoreTemplate:!1,callbackMethodToHandleFiles:this.processSelectedImage,closeImportCallback:this.closeImportCallback}),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA411,{email:this.userEmail})},addPersonalizedImage:function(){var e={component_type:"image-mf"},t=p.getNewImageMfId(this.projectJson,"image");e.id=t.footageId,e.image_id=t.imageId,e.is_website=!1,e.url=p.getMfImage(e.image_id,"image"),e.addToFootageList=!1,this.createNewImage(e),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA412,{email:this.userEmail})},addWebsiteImageBtn:function(){var e={component_type:"image-mf"},t=p.getNewImageMfId(this.projectJson,"website");e.id=t.footageId,e.image_id=t.imageId,e.is_website=!0,e.url=p.getMfImage(e.image_id,"website"),e.addToFootageList=!1,this.createNewImage(e),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA416,{email:this.userEmail})},processSelectedImage:function(e,t){var i=e[0],n=p.getImportedImageInfo(i),r=[n],o=this;this.$el.find("#imageUploadProgessContainer").show(),this.$el.find("#imageUploadProgressText").text(w.b.simpleEdit.prepareToImport),(new v.a).importAssetForSlideShow(JSON.stringify(r),this.assetId,void 0,(function(e){var t=e.video[0];"local_file"==n.upload_type?new V.a({acl:"private",bucket:t.bucket,key:t.key}).uploadFile(i,void 0,(function(e){o.$el.find("#imageUploadProgessContainer").hide(),o.closeImportCallback(),t.component_type="image",t.addToFootageList=!0,o.createNewImage(t)}),(function(e){c.default.showBannerAlert(w.b.simpleEdit.errorMessage,3e3,"error"),c.default.postErrorsToLog({error:"Error while uploading media to S3 for user.",stackTrace:JSON.stringify(e)}),o.$el.find("#imageUploadProgessContainer").hide(),o.closeImportCallback()})):(o.$el.find("#imageUploadProgessContainer").hide(),o.closeImportCallback(),t.component_type="image",t.addToFootageList=!0,o.createNewImage(t))}),(function(e){c.default.showBannerAlert(w.b.simpleEdit.errorMessage,3e3,"error"),c.default.postErrorsToLog({error:"Error while importing slideshow for user.",stackTrace:JSON.stringify(e)}),o.$el.find("#imageUploadProgessContainer").hide(),o.closeImportCallback()}))},createNewImage:function(e){var t=this.sessionDetails.totalCreatedClips,i=this.getMaxDuration();this.projectJson.trackNames.push("Image");var n={containsAudio:!1,containsVideo:!1,containsText:!1,containsImage:!0,id:e.id.toString(),duration:i,type:e.component_type};"image-mf"===e.component_type&&(n.is_website=e.is_website,n.image_id=e.image_id);var r=this.videoPlayerView.$el.find(".se-crop-highlighter-left").width();r+=(this.videoPlayerView.$el.find(".se-crop-highlighter-right").position().left-this.videoPlayerView.$el.find(".se-crop-highlighter-left").width())/2;var o=this.videoPlayerView.$el.find(".se-crop-highlighter-top").height();o+=(this.videoPlayerView.$el.find(".se-crop-highlighter-bottom").position().top-this.videoPlayerView.$el.find(".se-crop-highlighter-top").height())/2;var a=new Image;a.crossOrigin="Anonymous",a.src=e.url;var s=this;a.onload=function(){var l,c=a.width,d=a.height;a.width>s.videoPlayerView.$el.width()?(l=s.videoPlayerView.$el.width()/a.width,c=s.videoPlayerView.$el.width()/3,d=l*a.height/3):a.height>s.videoPlayerView.$el.height()?(l=s.videoPlayerView.$el.height()/a.height,d=s.videoPlayerView.$el.height()/3,c=l*a.width/3):(c=a.width/3,d=a.height/3);var u={fadein:0,fadeout:0,heightRaw:d,widthRaw:c,height:s.getValueForProject(d,!1),width:s.getValueForProject(c,!0),xposRaw:r,yposRaw:o,xpos:s.getValueForProject(r,!0),ypos:s.getValueForProject(o,!1),opacity:1,lockAspectRatio:!0,containsAlpha:!0},p=Math.max(s.videoPlayerView.getCurrentTime(),.001),h={deleted:!1,end:3,footage:n,id:t,position:Math.max(p-s.videoPlayerView.trimStart,.001),properties:u,start:0,track:s.projectJson.totalVideoTracks+1,startFrom:p,endAt:Math.min(s.videoPlayerView.getCurrentTime()+3,i)};s.projectJson.totalVideoTracks++,s.projectJson.clips.push(h),e.addToFootageList&&s.projectJson.footageList.push(e.id),n.src=e.url,s.sessionDetails.addedClips.push(h.id),s.reconstructUI(),s.selectSticker(t),s.sessionDetails.totalCreatedClips++}},isImageComponent:function(e){return"image"==this.getClipOf(e).footage.type||"image-mf"==this.getClipOf(e).footage.type},componentDropped:function(e,t,i){-1!==e.indexOf("se-sticker-btn-")?this.addNewSticker(e.split("se-sticker-btn-")[1],t,i):-1!==e.indexOf("se-callout-btn-")&&this.addNewCallout(e.split("se-callout-btn-")[1],t,i)},stickerBtnClicked:function(e){e.data.that.addNewSticker(e.target.id.split("se-sticker-btn-")[1])},addNewSticker:function(e,t,i){var n=this.sessionDetails.totalCreatedClips,r=this.getMaxDuration();this.projectJson.trackNames.push("Sticker");var o={containsAudio:!1,containsVideo:!1,containsText:!1,containsImage:!0,id:-e-100,duration:r,type:"sticker"};null!=t&&null!=i||(t=this.videoPlayerView.$el.find(".se-crop-highlighter-left").width(),t+=(this.videoPlayerView.$el.find(".se-crop-highlighter-right").position().left-this.videoPlayerView.$el.find(".se-crop-highlighter-left").width())/2,i=this.videoPlayerView.$el.find(".se-crop-highlighter-top").height(),i+=(this.videoPlayerView.$el.find(".se-crop-highlighter-bottom").position().top-this.videoPlayerView.$el.find(".se-crop-highlighter-top").height())/2);var a={fadein:0,fadeout:0,heightRaw:this.stickerSize[e].height/1.5,widthRaw:this.stickerSize[e].width/1.5,height:this.getValueForProject(this.stickerSize[e].height/1.5,!1),width:this.getValueForProject(this.stickerSize[e].width/1.5,!0),xposRaw:t,yposRaw:i,xpos:this.getValueForProject(t,!0),ypos:this.getValueForProject(i,!1),opacity:1,lockAspectRatio:!0},s=Math.max(this.videoPlayerView.getCurrentTime(),.001),l={deleted:!1,end:3,footage:o,id:n,position:Math.max(s-this.videoPlayerView.trimStart,.001),properties:a,start:0,track:this.projectJson.totalVideoTracks+1,startFrom:s,endAt:Math.min(this.videoPlayerView.getCurrentTime()+3,r)};this.projectJson.totalVideoTracks++,this.projectJson.clips.push(l),this.sessionDetails.addedClips.push(l.id),this.reconstructUI(),this.selectSticker(n),this.sessionDetails.totalCreatedClips++},selectSticker:function(e){if(this.enabled){this.unselectAllControls(),this.unselectAllComponents(),this.currentSelectedSticker=e,this.currentSelectedClip=this.getClipOf(e);var t=this.getClipOf(this.currentSelectedSticker);this.isImageComponent(t.id)?(this.$el.find(".addimage-selected #imageOpacitySlider").val(100*t.properties.opacity),this.$el.find(".addimage-selected #imageOpacityInput").val(parseInt(100*t.properties.opacity)),this.$el.find(".addimage-selected #imageArLock").prop("checked",t.properties.lockAspectRatio),this.$el.find(".addimage-control-detail").show(),this.$el.find(".addimage-initial").hide(),this.$el.find(".addimage-selected").show()):(this.$el.find(".addsticker-selected .opacity-val").val(100*t.properties.opacity),this.$el.find(".addsticker-selected .lock-aspect-ratio").prop("checked",t.properties.lockAspectRatio),this.$el.find(".addsticker-control-detail").show(),this.$el.find(".addsticker-initial").hide(),this.$el.find(".addsticker-selected").show());var i=r()("#se-component-"+e);i.resizable("enable"),i.addClass("edit-video-selected"),this.setAdaptiveBorderForTarget(r()("#se-component-"+e)),this.isImageComponent(t.id)?(this.showMarkers("image"),this.selectControl("add-image-btn")):(this.showMarkers("sticker"),this.selectControl("add-stickers-btn")),this.showClipTime(t)}},unselectSticker:function(){null!=this.currentSelectedSticker&&(this.isImageComponent(this.currentSelectedSticker)?(this.currentSelectedSticker=void 0,this.$el.find(".addimage-initial").show(),this.$el.find(".addimage-selected").hide(),this.showMarkers("image")):(this.currentSelectedSticker=void 0,this.$el.find(".addsticker-initial").show(),this.$el.find(".addsticker-selected").hide(),this.showMarkers("sticker")),r()(".se-image-component").resizable({disabled:!0}),r()(".se-image-component").removeClass("edit-video-selected white black"),this.videoPlayerView.$el.find(".se-clip-time").hide())},stickerPropertyChanged:function(){var e=this.getClipOf(this.currentSelectedSticker);this.isImageComponent(this.currentSelectedSticker)?(e.properties.opacity=this.$el.find(".addimage-selected #imageOpacitySlider").val()/100,e.properties.lockAspectRatio=this.$el.find(".addimage-selected #imageArLock").is(":checked")):(e.properties.opacity=this.$el.find(".addsticker-selected .opacity-val").val()/100,e.properties.lockAspectRatio=this.$el.find(".addsticker-selected .lock-aspect-ratio").is(":checked")),this.updateProjectJson(),this.reconstructUI()},deleteSticker:function(){var e=this.currentSelectedSticker;this.unselectSticker(),this.removeClip(e),this.reconstructUI()},findStickerSize:function(e){this.stickerSize[e]={width:128,height:128}},showStickerFamily:function(e){e.data.that.$el.find(".sticker-family-all").hide(),r()(e.target).closest(".sticker-family-container").find(".sticker-family-all").show()},selectAddBlur:function(){"true"===r()("#isBlurEnabled").val()||this.isBlurEnabled?(this.askReloadConfirmation=!0,this.isPPR?l.default.trackInThirdPartyTools("video_preview_Blur_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Blur_save",{email:this.userEmail}),this.unselectAllControls(),this.$el.find("#blurSelected").hide(),this.$el.find("#blurInitial").show(),this.$el.find(".blur-control-detail").fadeIn(100),this.showMarkers("effects"),this.selectControl("add-blur-btn"),r()(".new").hide()):(l.default._upgradeAlertPopup(w.b,C.a),r()(".new").hide())},addNewBlur:function(e,t){if(void 0!==this.sessionDetails.primaryVideo||void 0!==this.sessionDetails.secondaryVideo){var i=this.getMaxDuration(),n=this.getClipOf(this.sessionDetails.primaryVideo)||{},r=Math.max(this.videoPlayerView.getCurrentTime(),.001);null==this.sessionDetails.totalAddedEffects&&(this.sessionDetails.totalAddedEffects=0);var o=this.sessionDetails.totalAddedEffects++,a={id:o,type:"blur",opacity:1,strength:10,widthRaw:this.getValueFromClipPercent(.3,n,!0),heightRaw:this.getValueFromClipPercent(.3,n,!1),xposRaw:this.getValueFromClipPercent(.3,n,!0),yposRaw:this.getValueFromClipPercent(.3,n,!1),lockAspectRatio:!1,start:0,end:3,width:.3,height:.3,xpos:.3,ypos:.3,startFrom:r,endAt:Math.min(this.videoPlayerView.getCurrentTime()+3,i),position:Math.max(r-this.videoPlayerView.trimStart,.001)};n.effects?n.effects.push(a):n.effects=[a],this.reconstructUI(),this.selectBlur(o),l.default.trackInThirdPartyTools("SE - Add New Blur",{email:this.userEmail})}},enableBlurForPlayer:function(){var e=this;this.$el.find("#blurStrength").slider({min:0,max:100,step:1,value:50,slide:e.blurPropertyChanged}),this.$el.find("#blurStrengthText").bind("change",(function(){e.blurPropertyChanged({},{},!0)}))},blurPropertyChanged:function(e,t,i){var n=this.getClipOf(this.sessionDetails.primaryVideo)||{},r=o.default.where(n.effects,{id:Number(this.currentSelectedBlur)})[0]||{};if(i){var a=this.$el.find("#blurStrengthText").val();this.$el.find("#blurStrength").slider("option","value",a)}else{a=this.$el.find("#blurStrength").slider("option","value");this.$el.find("#blurStrengthText").val(a)}r.strength=l.default.map(a,0,100,0,20),r.lockAspectRatio=this.$el.find(".blur-selected .lock-aspect-ratio").is(":checked"),this.updateProjectJson(),this.reconstructUI()},blurAreaChanged:function(){var e=this.getClipOf(this.sessionDetails.primaryVideo)||{},t=o.default.where(e.effects,{id:Number(this.currentSelectedBlur)})[0]||{},i=r()("#se-effects-"+t.id);t.xpos=this.getValueForClip(i.position().left,e,!0),t.ypos=this.getValueForClip(i.position().top,e,!1),t.width=this.getValueForClip(i.width(),e,!0),t.height=this.getValueForClip(i.height(),e,!1),this.reconstructUI()},selectBlur:function(e){if(this.enabled){var t=this.getClipOf(this.sessionDetails.primaryVideo)||{},i=o.default.where(t.effects,{id:Number(e)})[0]||{},n=Math.ceil(l.default.map(i.strength,0,20,0,100));this.unselectAllControls(),this.unselectAllComponents(),this.currentSelectedBlur=e,this.currentSelectedClip=i,this.$el.find("#blurStrengthText").val(n),this.$el.find("#blurStrength").slider("option","value",n),this.$el.find(".blur-selected .lock-aspect-ratio").prop("checked",i.lockAspectRatio),this.$el.find(".blur-control-detail").show(),this.$el.find(".blur-initial").hide(),this.$el.find(".blur-selected").show(),this.showMarkers("effects"),r()("#se-effects-"+e+" .ui-resizable-handle").show(),r()("#se-effects-"+e).resizable("enable").addClass("edit-video-selected"),this.setAdaptiveBorderForTarget(r()("#se-effects-"+e)),this.selectControl("add-blur-btn"),void 0!==i.id&&this.showClipTime(i,!0)}},unselectBlur:function(){null!=this.currentSelectedBlur&&(this.currentSelectedBlur=void 0,this.$el.find(".blur-initial").show(),this.$el.find(".blur-selected").hide(),r()(".se-effects .ui-resizable-handle").hide(),r()(".se-effects").resizable({disabled:!0}).removeClass("edit-video-selected white black"),this.showMarkers("effects"),this.videoPlayerView.$el.find(".se-clip-time").hide())},deleteBlur:function(){for(var e=this.getClipOf(this.sessionDetails.primaryVideo)||{},t=e.effects||[],i=0;i<e.effects.length&&e.effects[i].id!=this.currentSelectedBlur;i++);i!=e.effects.length&&(t.splice(i,1),this.unselectBlur(),this.reconstructUI(),l.default.trackInThirdPartyTools("SE - Delete Blur",{email:this.userEmail}))},drawBlurLayer:function(){if(this.projectJson){var e=this.videoPlayerView.$el.find(".primary-video")[0],t=this.videoPlayerView.$el.find(".se-effects-canvas")[0],i=t.getContext("2d"),n=this.primaryVideoContainer.width(),o=this.primaryVideoContainer.height(),a=(this.getClipOf(this.sessionDetails.primaryVideo)||{}).effects||[];t.width=n,t.height=o,i.clearRect(0,0,n,o);for(var s=0;s<a.length;s++){var c=a[s];if(c&&!(this.videoPlayerView.getCurrentTime()-this.videoPlayerView.trimStart<c.position-.1||this.videoPlayerView.getCurrentTime()-this.videoPlayerView.trimStart>c.position+(c.end-c.start))){i.save(),i.rect(c.xposRaw,c.yposRaw,c.widthRaw,c.heightRaw),i.clip(),i.filter="blur("+c.strength+"px)";var d=l.default.map(c.xposRaw,0,n,0,e.videoWidth),u=l.default.map(c.yposRaw,0,o,0,e.videoHeight),p=l.default.map(c.widthRaw,0,n,0,e.videoWidth),h=l.default.map(c.heightRaw,0,o,0,e.videoHeight);i.drawImage(e,d,u,p,h,c.xposRaw,c.yposRaw,c.widthRaw,c.heightRaw),i.restore(),r()("#se-effects-"+c.id).css({opacity:"1","z-index":"106"})}else r()("#se-effects-"+c.id).css({opacity:"0","z-index":"-1"})}}},getMaxDuration:function(){for(var e=0,t=0;t<this.projectJson.clips.length;t++)e=Math.max(e,this.projectJson.clips[t].end);return e},selectAddCallouts:function(){this.askReloadConfirmation=!0,this.isPPR?l.default.trackInThirdPartyTools("video_preview_Callout_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Callout_save",{email:this.userEmail}),this.unselectAllControls(),this.$el.find(".addcallout-selected").hide(),this.$el.find(".addcallout-initial").show(),this.$el.find(".addcallout-control-detail").fadeIn(100),this.showMarkers("calloutimage"),this.selectControl("add-callouts-btn")},calloutBtnClicked:function(e){e.data.that.addNewCallout(e.target.id.split("se-callout-btn-")[1])},addNewCallout:function(e,t,i){var n=this.sessionDetails.totalCreatedClips,r=this.getMaxDuration();this.projectJson.trackNames.push("Callout-Image");var o={containsAudio:!1,containsVideo:!1,containsText:!1,containsImage:!0,id:-e-1e4,baseId:-e-1e4,duration:r,type:"calloutimage"};null!=t&&null!=i||(t=this.videoPlayerView.$el.find(".se-crop-highlighter-left").width(),t+=(this.videoPlayerView.$el.find(".se-crop-highlighter-right").position().left-this.videoPlayerView.$el.find(".se-crop-highlighter-left").width())/2,i=this.videoPlayerView.$el.find(".se-crop-highlighter-top").height(),i+=(this.videoPlayerView.$el.find(".se-crop-highlighter-bottom").position().top-this.videoPlayerView.$el.find(".se-crop-highlighter-top").height())/2);var a={fadein:0,fadeout:0,heightRaw:this.callouts[e].height/2,widthRaw:this.callouts[e].width/2,height:this.getValueForProject(this.callouts[e].height/2,!1),width:this.getValueForProject(this.callouts[e].width/2,!0),xposRaw:t,yposRaw:i,xpos:this.getValueForProject(t,!0),ypos:this.getValueForProject(i,!1),opacity:1,lockAspectRatio:!0},s=3,l=Math.max(this.videoPlayerView.getCurrentTime(),.001),c={deleted:!1,end:s,footage:o,id:n,position:Math.max(l-this.videoPlayerView.trimStart,.001),properties:a,start:0,track:this.projectJson.totalVideoTracks+1,startFrom:l,endAt:Math.min(this.videoPlayerView.getCurrentTime()+s,r)};if(this.projectJson.totalVideoTracks++,this.projectJson.clips.push(c),this.sessionDetails.addedClips.push(c.id),this.sessionDetails.totalCreatedClips++,this.callouts[e].hasText){var d=this.sessionDetails.totalCreatedClips;this.projectJson.trackNames.push("Callout-Text"),o.textId=d;var u={containsAudio:!1,containsVideo:!1,containsText:!0,containsImage:!1,duration:r,calloutId:n,type:"callouttext"};t+=0;var p={x:a.xposRaw,y:i+=50,w:a.widthRaw,h:a.heightRaw/4},h={text:this.defaultTextAreaValue,textUnwrapped:this.defaultTextAreaValue,font:this.defaultFontValue,fontSize:15,fontSizeProject:this.getValueForProject(15,!0),color:"black",bold:!1,italic:!1,opacity:1,xposRaw:t,yposRaw:i,xpos:this.getValueForProject(t,!0),ypos:this.getValueForProject(i,!1),offsetX:0,offsetY:50,textAlign:"center",boundingBoxRaw:p,boundingBox:this.getBoundingBoxForProject(p)};this.getLuminanceForClip(h.boundingBoxRaw.x,h.boundingBoxRaw.y,h.boundingBoxRaw.w,h.boundingBoxRaw.h)<128&&(h.color="#FFFFFF");s=3,l=Math.max(this.videoPlayerView.getCurrentTime(),.001);var f={deleted:!1,end:s,footage:u,id:d,position:Math.max(l-this.videoPlayerView.trimStart,.001),properties:h,start:0,track:this.projectJson.totalVideoTracks+1,startFrom:l,endAt:Math.min(this.videoPlayerView.getCurrentTime()+s,r)};this.projectJson.totalVideoTracks++,this.projectJson.clips.push(f),this.sessionDetails.addedClips.push(f.id),this.sessionDetails.totalCreatedClips++}this.reconstructUI(),this.selectCallout(n)},selectCallout:function(e){if(this.enabled){this.unselectAllControls(),this.unselectAllComponents(),this.currentSelectedCallout=e,this.currentSelectedClip=this.getClipOf(e),this.$el.find(".addcallout-control-detail").show(),this.$el.find(".addcallout-initial").hide(),this.$el.find(".addcallout-selected").show();var t=this.getClipOf(this.currentSelectedCallout);this.$el.find(".addcallout-selected .opacity-val").val(100*t.properties.opacity),this.$el.find(".addcallout-selected .lock-aspect-ratio").prop("checked",t.properties.lockAspectRatio),this.$el.find(".addcallout-selected .callout-variation").val(t.footage.baseId-t.footage.id);var i=r()("#se-component-"+e);i.resizable("enable"),i.addClass("edit-video-selected"),this.setAdaptiveBorderForTarget(r()("#se-component-"+e)),this.showMarkers("calloutimage"),this.showClipTime(t),this.selectControl("add-callouts-btn")}},unselectCallout:function(){null!=this.currentSelectedCallout&&(this.currentSelectedCallout=void 0,this.$el.find(".addcallout-initial").show(),this.$el.find(".addcallout-selected").hide(),r()(".se-image-component").resizable({disabled:!0}),r()(".se-image-component").removeClass("edit-video-selected white black"),this.showMarkers("calloutimage"),this.videoPlayerView.$el.find(".se-clip-time").hide())},calloutDragged:function(){var e=this.getClipOf(this.currentSelectedCallout),t=this.getClipOf(e.footage.textId);if(null!=t){var i=this.getClipElOf(e.footage.textId);t.properties.boundingBoxRaw?i.css({left:l.default.map(this.calloutTextBoxSpread.x,0,1,e.properties.xposRaw,e.properties.xposRaw+e.properties.widthRaw)+"px",top:l.default.map(this.calloutTextBoxSpread.y,0,1,e.properties.yposRaw,e.properties.yposRaw+e.properties.heightRaw)+"px"}):r()("#se-component-"+e.footage.textId).css({left:r()("#se-component-"+e.id).position().left+t.properties.offsetX+"px",top:r()("#se-component-"+e.id).position().top+t.properties.offsetY+"px"}),t.properties.xposRaw=i.position().left,t.properties.yposRaw=i.position().top,t.properties.xpos=this.getValueForProject(t.properties.xposRaw,!0),t.properties.ypos=this.getValueForProject(t.properties.yposRaw,!1),t&&t.properties.boundingBoxRaw&&(t.properties.boundingBoxRaw.x=t.properties.xposRaw,t.properties.boundingBoxRaw.y=t.properties.yposRaw,t.properties.boundingBox=this.getBoundingBoxForProject(t.properties.boundingBoxRaw))}this.updateProjectJson()},calloutResized:function(e){var t=this.getClipOf(e),i=this.getClipOf(t.footage.textId);i&&i.properties.boundingBoxRaw&&this.calloutTextBoxSpread&&(this.getClipElOf(i.id).css({left:l.default.map(this.calloutTextBoxSpread.x,0,1,t.properties.xposRaw,t.properties.xposRaw+t.properties.widthRaw)+"px",top:l.default.map(this.calloutTextBoxSpread.y,0,1,t.properties.yposRaw,t.properties.yposRaw+t.properties.heightRaw)+"px",width:this.calloutTextBoxSpread.w*t.properties.widthRaw+"px"}),this.textBoxResized(i.id)),this.updateProjectJson()},calloutPropertyChanged:function(){var e=this.getClipOf(this.currentSelectedCallout);e.properties.opacity=this.$el.find(".addcallout-selected .opacity-val").val()/100,e.properties.lockAspectRatio=this.$el.find(".addcallout-selected .lock-aspect-ratio").is(":checked"),e.footage.id=e.footage.baseId-parseInt(this.$el.find(".callout-variation").val()),this.updateProjectJson(),this.reconstructUI()},deleteCallout:function(){var e=this.getClipOf(this.currentSelectedCallout),t=this.getClipOf(e.footage.textId);null!=t&&this.removeClip(t.id),this.removeClip(this.currentSelectedCallout),this.unselectCallout(),this.reconstructUI()},findCalloutSize:function(e){var t=document.createElement("img");t.src="https://s3.amazonaws.com/hippolms-wiz-static/callouts/c"+e+".png?v=2",t.crossOrigin="Anonymous";var i=this;this.callouts[e]&&(this.callouts[e].width=300,this.callouts[e].height=300),t.onload=function(){i.callouts[e]&&(i.callouts[e].width=t.width,i.callouts[e].height=t.height)}},isCalloutImage:function(e){return this.getClipOf(e).footage.id<=-1e4},scrollCallouts:function(e){var t=r()(e.target).hasClass("callout-scroll-left"),i=e.data.that;i.$el.find(".callout-btn-scroll-container").animate({scrollLeft:i.$el.find(".callout-btn-scroll-container").scrollLeft()+200*(t?-1:1)},200)},newComponentDragged:function(){this.videoPlayerView.$el.find(".se-crop-resizable").removeClass("disp-none").addClass("disp-show"),this.videoPlayerView.$el.find(".se-components-droppable").fadeIn(200),this.videoPlayerView.$el.find(".se-components-droppable").css({"z-index":1e3,width:this.videoPlayerView.$el.find(".se-crop-resizable").width()+"px",height:this.videoPlayerView.$el.find(".se-crop-resizable").height()+"px",left:this.videoPlayerView.$el.find(".se-crop-resizable").position().left+"px",top:this.videoPlayerView.$el.find(".se-crop-resizable").position().top+"px"})},newComponentDropped:function(){this.videoPlayerView.$el.find(".se-crop-resizable").removeClass("disp-show").addClass("disp-none"),this.videoPlayerView.$el.find(".se-components-droppable").hide(),this.videoPlayerView.$el.find(".se-components-droppable").css("z-index",0)},getClipOf:function(e){for(var t=void 0,i=0;i<this.projectJson.clips.length;i++)if(this.projectJson.clips[i].id==e){t=this.projectJson.clips[i];break}return t},getClipElOf:function(e){return r()("#se-component-"+e)},removeClip:function(e){e=parseInt(e);for(var t=0;t<this.projectJson.clips.length;t++)if(this.projectJson.clips[t].id==e){this.projectJson.clips.splice(t,1);break}-1!==this.sessionDetails.addedClips.indexOf(e)&&this.sessionDetails.addedClips.splice(this.sessionDetails.addedClips.indexOf(e),1)},lockAspectRatio:function(e){var t=e.data.that;r()(e.target).hasClass("primary-vid-control")?(t.primaryVideoContainer.resizable("destroy"),t.makeVideoContainerResizable(t.primaryVideoContainer,r()(e.target).is(":checked"))):r()(e.target).hasClass("secondary-vid-control")&&(t.secondaryVideoContainer.resizable("destroy"),t.makeVideoContainerResizable(t.secondaryVideoContainer,r()(e.target).is(":checked")))},opacityChanged:function(e){var t=e.data.that;r()(e.target).hasClass("primary-vid-control")?(t.primaryVideoContainer.resizable("destroy"),t.makeVideoContainerResizable(t.primaryVideoContainer,r()(e.target).is(":checked"))):r()(e.target).hasClass("secondary-vid-control")&&(t.secondaryVideoContainer.resizable("destroy"),t.makeVideoContainerResizable(t.secondaryVideoContainer,r()(e.target).is(":checked")))},showClipTime:function(e,t){var i=e.footage?e.footage.type:"blur";this.videoPlayerView.$el.find(".se-clip-time").show();var n=Math.max(l.default.map(e.startFrom,this.videoPlayerView.trimStart,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd,0,this.videoPlayerView.$el.find(".components-time-container").width()),0),o=Math.min(l.default.map(e.endAt,this.videoPlayerView.trimStart,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd,0,this.videoPlayerView.$el.find(".components-time-container").width()),this.videoPlayerView.$el.find(".components-time-container").width());this.videoPlayerView.$el.find(".se-clip-time").resizable("enable"),this.videoPlayerView.$el.find(".se-clip-time").css({left:n+"px",width:o-n+"px"}),this.videoPlayerView.$el.find(".se-clip-time .se-selected-type").html(i.substring(0,1).toUpperCase()),t||this.updateTimeFromClipToPopup(this),r()(".timer-pop-up").show()},playerTimeUpdate:function(){for(var e=0;e<this.sessionDetails.addedClips.length;e++){var t=this.getClipOf(this.sessionDetails.addedClips[e]);null!=t&&(this.videoPlayerView.getCurrentTime()-this.videoPlayerView.trimStart<t.position-.1||this.videoPlayerView.getCurrentTime()-this.videoPlayerView.trimStart>t.position+(t.end-t.start)?this.videoPlayerView.$el.find("#se-component-"+t.id).css({opacity:"0","z-index":"0"}):this.videoPlayerView.$el.find("#se-component-"+t.id).css({opacity:null!=t.properties.opacity?t.properties.opacity:1,"z-index":"107"}))}},handleVideoPlay:function(){var e=this;this.blurPlayInterval=setInterval((function(){e.drawBlurLayer()}),15)},handleVideoPause:function(){clearInterval(this.blurPlayInterval)},handleVideoSeeked:function(){this.drawBlurLayer(),this.setBorderForClipOnVideoSeek()},showMarkers:function(e){var t,i,n=this.videoPlayerView.$el.find(".player-progress").width()+parseInt(r()(".player-progress").css("marginRight"))+parseInt(r()(".player-progress").css("marginLeft"));if(this.videoPlayerView.$el.find(".components-time-container, .components-marker-container").css("width",n+"px"),this.videoPlayerView.$el.find(".components-marker-container").empty(),"effects"===e){t=(this.getClipOf(this.sessionDetails.primaryVideo)||{}).effects||[];for(var o=0;o<t.length;o++)i=Math.max(l.default.map(t[o].startFrom,this.videoPlayerView.trimStart,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd,0,this.videoPlayerView.$el.find(".components-time-container").width()),0),this.videoPlayerView.$el.find(".components-marker-container").append('<span class="se-selected-type" id="effect-'+t[o].id+'" style = "left:'+i+'px">'+t[o].type.substring(0,1).toUpperCase()+"</span>")}else for(o=0;o<this.projectJson.clips.length;o++){var a=this.projectJson.clips[o];a.footage.type==e&&(i=Math.max(l.default.map(a.startFrom,this.videoPlayerView.trimStart,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd,0,this.videoPlayerView.$el.find(".components-time-container").width()),0),this.videoPlayerView.$el.find(".components-marker-container").append('<span class="se-selected-type" id="clip-'+a.id+'" style = "left:'+i+'px">'+a.footage.type.substring(0,1).toUpperCase()+"</span>"))}this.videoPlayerView.$el.find(".se-selected-type").bind("click",{that:this},this.markerSelected)},markerSelected:function(e){var t,i=e.target.id,n=0;if(i.includes("clip"))t=i.split("-")[1],n=this.getClipOf(t).startFrom;else{if(!i.includes("effect"))return;t=i.split("-")[1],effects=(this.getClipOf(this.sessionDetails.primaryVideo)||{}).effects||[],n=(o.default.where(effects,{id:Number(t)})[0]||{}).startFrom}this.videoPlayerView.goToTime(Math.min(Math.max(n,this.videoPlayerView.trimStart),this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd)),this.reconstructUI(),this.selectComponentFromId(t,i.includes("effect"))},selectComponentFromId:function(e,t){t?this.selectBlur(e):(type=this.getClipOf(e).footage.type,"sticker"===type?this.selectSticker(e):"text"===type?this.selectText(e):"calloutimage"===type&&this.selectCallout(e))},makeVideoContainerResizable:function(e,t){var i=this;e.resizable({aspectRatio:t,handles:"n, e, w, s, ne, nw, se, sw",resize:function(e,t){i.mediaContainerResized(r()(e.target))},start:this.userEventStart,stop:function(){i.userEventStop(),i.reconstructUI()}}),this.videoPlayerView.$el.find(".ui-resizable-handle").removeClass("ui-icon ui-icon-gripsmall-diagonal-se")},isOnBoardRequired:function(){return!1},getFont:function(e,t,i,n){var r=this;this.fontCache[e+":"+t+":"+i]?n(this.fontCache[e+":"+t+":"+i]):(e||(console.warn("fontname not set"),e=r.defaultFontValue),Object(_.load)(this.getFontURL(e,t,i),(function(o,a){if(o){var s;for(var l in console.error("error loading font "+e+":"+t+":"+i),r.fontCache)s=r.fontCache[l];s?n(s):(console.warn("trying to load default font"),Object(_.load)(r.getFontURL("montserrat",t,i),(function(e,t){o?console.error("loading default font also failed"):n(t)})))}else r.fontCache[e+":"+t+":"+i]=a,n(a)})))},setLineHeight:function(e){var t=this;null==e.properties.fontSizeProject&&(e.properties.fontSizeProject=this.getValueForProject(e.properties.fontSize));var i=this.getValueForPlayer(e.properties.fontSizeProject,!0);this.getFont(e.properties.font,e.properties.bold,e.properties.italic,(function(n){var o=t.getMetrics(e.properties.text,i,n),a=0;r()("#se-component-"+e.id+" div").each((function(){var e=t.getMetrics(r()(this).text(),i,n);a=Math.max(a,e.actualBoundingBoxAscent-e.actualBoundingBoxDescent)})),a+=(o.fontBoundingBoxAscent-o.fontBoundingBoxDescent)/10,e.properties.lineHeight=t.getValueForProject(a,!1);var s=0,l=0,c=a*r()("#se-component-"+e.id+" .text-el-line").length,d=Math.min(Math.max(10,c/2),40);e.properties.boundingBoxRaw&&(d=(e.properties.boundingBoxRaw.h-c)/2);var u=e.properties.textAlign?e.properties.textAlign:"left";r()("#se-component-"+e.id+" .text-el-line").each((function(){var e=t.getMetrics(r()(this).text(),i,n);l=Math.max(l,e.actualWidth)})),null==e.properties.boundingBoxRaw&&(d=Math.min(Math.max(10,c/2),40),e.properties.boundingBoxRaw={x:e.properties.xposRaw,y:e.properties.yposRaw-d,w:l+2*d,h:c+2*d},e.properties.textAlign=u,t.setTextDraggableContainerSize(r()("#se-component-"+e.id)[0],e,!1)),e.properties.boundingBoxRaw.topPadding=d,e.properties.boundingBox=t.getBoundingBoxForProject(e.properties.boundingBoxRaw),r()("#se-component-"+e.id+" .text-el-line").each((function(){var o=t.getMetrics(r()(this).text(),i,n),l=0;"center"==u?l=(e.properties.boundingBoxRaw.w-o.actualWidth)/2:"right"==u&&(l=e.properties.boundingBoxRaw.w-o.actualWidth),r()(this).css({"line-height":o.fontBoundingBoxAscent-o.fontBoundingBoxDescent+"px",top:s+(o.actualBoundingBoxAscent-o.fontBoundingBoxAscent)+d+"px",left:l+"px"}),s+=a}))}))},setTextDraggableContainerSize:function(e,t,i){var n=this;t.properties.boundingBoxRaw&&(r()(e).css({width:t.properties.boundingBoxRaw.w+"px",height:t.properties.boundingBoxRaw.h+"px"}),i&&(r()(e).resizable({handles:"se",aspectRatio:!1,containment:".primary-video-container",create:function(){r()(this).find(".ui-resizable-handle").removeClass("ui-icon ui-icon-gripsmall-diagonal-se")},stop:function(){n.lastTextResizeTime=(new Date).getTime()},resize:n.textBoxResized}),t.footage.calloutId&&r()(e).resizable("option","containment","#se-component-"+t.footage.calloutId)))},selectControl:function(e){this.$el.find(".se-control-selected").removeClass("se-control-selected"),this.$el.find("."+e).addClass("se-control-selected")},computedDuration:function(){this.resizeHandler(),this.$el.find(".trim-before-container, .trim-after-container").show(),this.reconstructUI(),this.updateTrimInput()},_getVideoModel:function(){if(this.embeddedDigest&&this.embeddedDigest.length>0)var e=new v.a({embedded_digest:this.embeddedDigest});else if(this.digest)e=new v.a({digest:this.digest});else e=new v.a;return e},getReloadConfirmationState:function(){return this.askReloadConfirmation},prefetchAssetsForSimpleEdit:function(){try{var e=new Image;e.src="https://s3.amazonaws.com/hippolms-wiz-static/stickers-all/stickers_all.png?v=2",e.crossOrigin="Anonymous"}catch(e){console.log("Image constructor - Browser not supported!")}},showClipTimePop:function(e){var t=r()(e.target);(t.hasClass("se-clip-time")||t.hasClass("se-selected-type"))&&(e.data.that.updateTimeFromClipToPopup(e.data.that),r()(".timer-pop-up").toggle())},clipInputButtonClicked:function(e){e.stopPropagation();var t=e.data.that,i=t.currentSelectedClip||{},n=e.target.className.indexOf("timer-start-btn")>-1,r=e.target.className.indexOf("plus")>-1;t.calculateTimeAndUpdateClip(n,r,i,t),t.reconstructUI()},clipInputtyped:function(e){e.stopPropagation();var t=e.data.that,i=e.keyCode,n=r()(e.target).hasClass("timer-start-input");if(38===i||40===i)t.calculateTimeAndUpdateClip(n,38===i,t.currentSelectedClip||{},t);else{var o=l.default.timeToInt(r()(".timer-start-input").val()),a=l.default.timeToInt(r()(".timer-stop-input").val());clearTimeout(t.clipTimeInputTimeout),t.isValidClipTime(o,a)?t.setClipTimeAndUpdateValues(o,a,t):t.clipTimeInputTimeout=setTimeout((function(){t.updateTimeFromClipToPopup()}),1e3)}t.reconstructUI()},isValidClipTime:function(e,t){var i=this.videoPlayerView,n=i.mediaPlayer.duration-i.trimEnd;return!(e>=t||e<i.trimStart||t>n||isNaN(e)||isNaN(t))},updateTimeFromClipToPopup:function(e){var t=(e=e||this).currentSelectedClip||{};r()(".timer-start-input").val(l.default.strToTime(t.startFrom)),r()(".timer-stop-input").val(l.default.strToTime(t.endAt))},calculateTimeAndUpdateClip:function(e,t,i,n){var o=i.startFrom,a=i.endAt,s=n.videoPlayerView,c=s.mediaPlayer.duration-s.trimEnd;e?o=t?Math.min(o+1,c):Math.max(o-1,s.trimStart):a=t?Math.min(a+1,c):Math.max(a-1,s.trimStart),o>=a||(r()(".timer-start-input").val(l.default.strToTime(o)),r()(".timer-stop-input").val(l.default.strToTime(a)),n.setClipTimeAndUpdateValues(o,a,n))},setClipTimeAndUpdateValues:function(e,t,i){var n=i.currentSelectedClip||{},r=n.footage?n.footage.type:"blur";n.startFrom=e,n.endAt=t,("calloutimage"===r||"sticker"===r||"text"===r||"blur"===r)&&this.showClipTime(n,!0),this.updateCalloutClipTime(n),this.updateProjectJson()},updateCalloutClipTime:function(e){if(null!=e&&null!=e.footage&&null!=e.footage.type){var t;if("callouttext"==e.footage.type)t=this.getClipOf(e.footage.calloutId);else{if("calloutimage"!=e.footage.type||null==e.footage.textId)return;t=this.getClipOf(e.footage.textId)||{}}t.startFrom=e.startFrom,t.endAt=e.endAt}},onClipTimeChangeHandler:function(){var e=l.default.map(this.videoPlayerView.$el.find(".se-clip-time").position().left,0,this.videoPlayerView.$el.find(".components-time-container").width(),this.videoPlayerView.trimStart,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd),t=l.default.map(this.videoPlayerView.$el.find(".se-clip-time").width(),0,this.videoPlayerView.$el.find(".components-time-container").width(),0,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimStart-this.videoPlayerView.trimEnd),i=this.getSelectedClipOrEffect();null!=i&&(i.startFrom=e,i.endAt=i.startFrom+t,this.updateCalloutClipTime(i),this.updateProjectJson(),this.reconstructUI())},getTextFromTextEl:function(e){for(var t=e.find(".text-el-line").toArray(),i="",n=0;n<t.length;n++)i+=r()(t[n]).text()+(n+1<t.length?"\n":"");return i},newlineTextToHtml:function(e,t){var i=this,n=t.properties.text.split(/[\r\n]+/);for(var o in t.properties.textUnwrapped&&(n=t.properties.textUnwrapped.split(/[\r\n]+/),t.properties.boundingBoxRaw&&t.properties.textUnwrapped&&this.getFont(t.properties.font,t.properties.bold,t.properties.italic,(function(e){for(var r=0;r<n.length;r++){for(var o=n[r].split(/(\$[\s]*\{.*\}|\S+|\s+)/).filter((function(e){return 0!=e.length})),a=[{first:n[r]}],s=o.length-1;s>0;s--)a.push({first:o.slice(0,s).join(""),second:o.slice(s,o.length).join("")});var l=a[a.length-1].first;if(!l.replace(/\s/g,"").startsWith("${"))for(s=l.length-1;s>0;s--)a.push({first:l.slice(0,s),second:[l.slice(s,l.length),o.slice(1,o.length).join("")].join("")});for(var c=0;c<a.length;c++){if(i.getMetrics(a[c].first,i.getValueForPlayer(t.properties.fontSizeProject,!0),e).actualWidth<=t.properties.boundingBoxRaw.w)break}c=Math.min(a.length-1,c),n[r]=a[c].first,a[c].second&&n.splice(r+1,0,a[c].second)}})),t.properties.text=n.join("\n")),r()(e).empty(),n){var a=document.createElement("div");r()(a).append(n[o]),r()(a).addClass("text-el-line"),r()(a).css({"font-family":null!=l.default.getFontMap()[t.properties.font]?l.default.getFontMap()[t.properties.font].css:"","font-size":this.getValueForPlayer(t.properties.fontSizeProject,!0)+"px","font-style":t.properties.italic?"italic":"normal","font-weight":t.properties.bold?"bold":"normal",color:t.properties.color,position:"absolute","line-height":"0.7em"}),r()(e).append(a)}this.setLineHeight(t)},fontLoaded:function(e){if(null!=this.currentSelectedText){var t=this.getClipOf(this.currentSelectedText),i=this.getClipElOf(this.currentSelectedText);this.newlineTextToHtml(i.find(".se-text-container")[0],t)}},textBoxResized:function(e){(e instanceof r.a.Event||null==e)&&(e=this.currentSelectedText);var t=this.getClipOf(e),i=this.getClipElOf(e);t.properties.boundingBoxRaw={x:i.position().left,y:i.position().top,w:i.width(),h:i.height()},t.properties.boundingBox=this.getBoundingBoxForProject(t.properties.boundingBoxRaw),this.newlineTextToHtml(i.find(".se-text-container")[0],t)},webcamSnappedLayoutOnCrop:function(){var e="bottom-left";return this.projectJson&&null!=this.projectJson.webcamPosition&&(e=this.projectJson.webcamPosition),"bottom-left"==e?{x:this.cropResizable.position().left,y:this.cropResizable.position().top+this.cropResizable.height()-this.secondaryVideoContainer.height()}:"bottom-right"==e?{x:this.cropResizable.position().left+this.cropResizable.width()-this.secondaryVideoContainer.width(),y:this.cropResizable.position().top+this.cropResizable.height()-this.secondaryVideoContainer.height()}:"top-right"==e?{x:this.cropResizable.position().left+this.cropResizable.width()-this.secondaryVideoContainer.width(),y:this.cropResizable.position().top}:"top-left"==e?{x:this.cropResizable.position().left,y:this.cropResizable.position().top}:void 0},getProjectJSON:function(){return this.projectJson},getIOAdjustedProjectJSON:function(){var e=l.default.naiveClone(this.projectJson);if(null!=e.ioDetails)try{if(e.ioDetails.intro&&e.ioDetails.intro.theme>0){for(var t=e.ioDetails.intro,i=t.duration,n=i,r=0;r<e.clips.length;r++)e.clips[r].deleted||e.clips[r].properties.isPlaceHolder||(e.clips[r].position=parseInt(e.clips[r].position)+i,n=Math.min(n,e.clips[r].position));var o=e.totalVideoTracks;for(r=0;r<t.clips.length;r++){if(!(d=t.clips[r]).deleted&&!d.properties.isPlaceHolder){var a=r+1;n<i&&(a+=o),a>e.totalVideoTracks&&(e.totalVideoTracks++,e.trackNames.push(d.properties.text)),d.track=a,e.clips.push(d)}}}if(e.ioDetails.outro&&e.ioDetails.outro.theme>0){var s=e.ioDetails.outro,c=0;for(r=0;r<e.clips.length;r++)e.clips[r].deleted||e.clips[r].properties.isPlaceHolder||(c=Math.max(c,parseInt(e.clips[r].position)+e.clips[r].end-e.clips[r].start));for(r=0;r<s.clips.length;r++){var d;if(!(d=s.clips[r]).deleted&&!d.properties.isPlaceHolder)(a=r+1)>=e.totalVideoTracks&&(e.totalVideoTracks++,e.trackNames.push(d.properties.text)),d.position=c,d.track=a,e.clips.push(d)}}}catch(e){console.error(e)}return e},overrideStyle:function(e,t,i){e.each((function(){this.style.setProperty(t,i,"important")}))},applyCustomColors:function(){this.customColors&&(this.customColors.primaryColor&&(this.overrideStyle(this.$el.find(".trim-slider .ui-slider-handle"),"background",this.customColors.primaryColor),this.overrideStyle(this.$el.find(".trim-slider .ui-slider-range"),"border-color",this.customColors.primaryColor)),this.customColors.secondaryColor&&this.overrideStyle(this.$el.find(".trim-slider .ui-slider-range"),"background",this.customColors.secondaryColor),this.customColors.bgColor&&this.overrideStyle(this.$el.find(".trim-slider"),"background",this.customColors.bgColor))},addCustomFontStyles:function(){var e=document.createElement("style");for(var t in l.default.getFontMap()){var i=l.default.getFontMap()[t];e.appendChild(document.createTextNode("@font-face { font-family: '"+i.family+"'; font-style: normal; font-weight: 400; src: url('"+this.getFontURL(t,!1,!1)+"') format('truetype'); }")),e.appendChild(document.createTextNode("@font-face { font-family: '"+i.family+"'; font-style: normal; font-weight: bold; src: url('"+this.getFontURL(t,!0,!1)+"') format('truetype'); }")),e.appendChild(document.createTextNode("@font-face { font-family: '"+i.family+"'; font-style: italic; font-weight: 400; src: url('"+this.getFontURL(t,!1,!0)+"') format('truetype'); }")),e.appendChild(document.createTextNode("@font-face { font-family: '"+i.family+"'; font-style: italic; font-weight: bold; src: url('"+this.getFontURL(t,!0,!0)+"') format('truetype'); }"))}document.head.appendChild(e)},getFontURL:function(e,t,i){var n=e;return t&&i?n+="bi":t?n+="bd":i&&(n+="i"),"https://fontstatic.s3-accelerate.amazonaws.com/"+e+"/"+n+".ttf"},getMetrics:function(e,t,i){for(var n=0,r=0,o=0,a=1/i.unitsPerEm*t,s=i.stringToGlyphs(e.replace(/\s/g,"")),l=0;l<s.length;l++){var c=s[l];if(c.advanceWidth&&(o+=c.advanceWidth*a),l<s.length-1)o+=i.getKerningValue(c,s[l+1])*a;n=Math.max(n,c.yMax),r=Math.min(r,c.yMin)}var d=i.getPath(e,0,0,t);return{actualWidth:d.getBoundingBox().x2-d.getBoundingBox().x1,width:o,actualBoundingBoxAscent:n*a,actualBoundingBoxDescent:r*a,actualHeight:n*a-r*a,fontBoundingBoxAscent:i.ascender*a,fontBoundingBoxDescent:i.descender*a,fontHeight:i.ascender*a-i.descender*a}},globalKeypress:function(e){var t=e.keyCode;0==this.videoPlayerView.$el.find(".timer-pop-up").find(r()(e.target)).length&&(!this.isMac&&46===t||this.isMac&&8===t)&&this.deleteClipOrEffectSelected()},deleteClipOrEffectSelected:function(){null!=this.currentSelectedBlur?this.deleteBlur():null!=this.currentSelectedSticker?this.deleteSticker():null!=this.currentSelectedCallout?this.deleteCallout():null!=this.currentSelectedText&&(this.videoPlayerView.$el.find(".se-text-editable").is(":visible")||this.deleteText())},setBorderForClipOnVideoSeek:function(){var e=this.getSelectedClipOrEffect();null!=e&&(null!=this.currentSelectedBlur?(this.videoPlayerView.$el.find("#se-effects-"+e.id).removeClass("black white"),this.setAdaptiveBorderForTarget(this.videoPlayerView.$el.find("#se-effects-"+e.id))):(this.videoPlayerView.$el.find("#se-component-"+e.id).removeClass("black white"),this.setAdaptiveBorderForTarget(this.videoPlayerView.$el.find("#se-component-"+e.id))))},getSelectedClipOrEffect:function(){var e=null!=this.currentSelectedText?this.currentSelectedText:null!=this.currentSelectedSticker?this.currentSelectedSticker:null!=this.currentSelectedCallout?this.currentSelectedCallout:void 0;if(null!=e)return this.getClipOf(e);if(null!=this.currentSelectedBlur){e=this.currentSelectedBlur;var t=(this.getClipOf(this.sessionDetails.primaryVideo)||{}).effects||[];return o.default.where(t,{id:Number(e)})[0]||{}}}})},function(e,t,i){"use strict";i.d(t,"a",(function(){return f}));var n,r=i(1),o=i.n(r),a=i(69),s=i.n(a),l=i(222),c=i(223),d=i(4),u=i.n(d),p=i(3).c.div(n||(n=u()(["\n position: fixed;\n z-index: 100003;\n width: auto;\n ",";\n ",";\n ",";\n ",";\n"])),(function(e){return"bottom"==e.config.verticalPosition&&"bottom : 0px"}),(function(e){return"top"==e.config.verticalPosition&&"top : 0px"}),(function(e){return"left"==e.config.horizontalPosition&&"left : 0px"}),(function(e){return"right"==e.config.horizontalPosition&&"right : 0px"}));function h(e){var t=e.stream,i=e.recordingConfig,n=Object(r.useRef)(),a=Object(r.useRef)(),s=i?i.webcamShape:"rectangle",d=i?i.webcamPosition:"bottom-left",u=d.split("-")[0],h=d.split("-")[1];console.log("verticalPosition = ",u),console.log("horizontalPosition = ",h);var f={horizontalPosition:h,verticalPosition:u,webcamShape:s};return console.log("webcam preview while recording"),window.videoPreviewRef=n,window.lightingCanvasRef=a,o.a.createElement(p,{config:f},o.a.createElement(l.a,{stream:t,ref:n,recordingConfig:i}),t&&o.a.createElement(c.a,{ref:a}))}function f(e){var t=m();console.log("ROOT ELEMENT ",t),s.a.render(o.a.createElement(h,{stream:e.stream,recordingConfig:e.recordingConfiguration}),t)}var m=function(){if(document.getElementsByClassName("hv-rapi-webcam-preview").length>0)return document.getElementsByClassName("hv-rapi-webcam-preview")[0];var e=document.createElement("div");return e.className="hv-rapi-webcam-preview",document.body.appendChild(e),e}},function(e,t,i){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(r.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(r.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},i(482),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,i(102))},function(e,t,i){"use strict";i.r(t),function(e){i.d(t,"removeWidget",(function(){return U})),i.d(t,"initialize",(function(){return z})),i.d(t,"availableRecordingSupport",(function(){return j})),i.d(t,"RecorderWidget",(function(){return q})),i.d(t,"ImportWidget",(function(){return $})),i.d(t,"EditWidget",(function(){return W}));i(78);var n=i(51),r=i.n(n),o=i(55),a=i.n(o),s=i(42),l=i.n(s),c=i(37),d=i.n(c),u=i(38),p=i.n(u),h=i(77),f=i.n(h),m=i(95),g=i.n(m),v=(i(52),i(23),i(88),i(60),i(65),i(54),i(66),i(110),i(244),i(62)),y=i.n(v),b=i(1),w=i.n(b),S=i(69),C=i.n(S),k=i(31),x=i(6);i.d(t,"AUTHENTICATION_TYPES",(function(){return x.e})),i.d(t,"RECORDER_TYPES",(function(){return x.q}));var _=i(218),E=i(17);i.d(t,"RECORDING_INITIATORS",(function(){return E.c}));var T=i(183),P=i(430),I=i(428),A=i(7),R=i(9);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l()(e);if(t){var r=l()(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return a()(this,i)}}var N,D,L=["sdk_loaded","countdown_timer","countdown_complete","record_initiated","record_started","record_details","record_paused","record_resumed","record_stopped","record_aborted","record_error","video_cancelled","video_submitted","import_progress","import_complete","import_failed","source_uploaded","_initiate_screen_recording_extension","_got_stream"],M=!1,B={},F={screen:"screenRecord",webcam:"webCam",system_audio:"systemAudio",tab_recording:"tabRecording",separate_layer:"separateLayer",from_popup:"fromPopup",aspect_ratio:"aspectRatio",record_config:"recordConfig"};function V(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="";window&&window.performance&&(t="".concat(Math.round(window.performance.now())));for(var i=e.length,n=0;n<10;n++)t+=e.charAt(Math.floor(Math.random()*i));return t}var U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.getElementById("recorder1");try{C.a.unmountComponentAtNode(e)}catch(e){}},z=function(){var e=g()(y.a.mark((function e(t,i){var n,r,o,a,s,l,c,d,u,p,h,m,g,v,b,w,S,C,k;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{console.log("HIPPO SDK CHUNK HOST",HIPPO_VIDEO_SDK_CHUNK_HOST),window.hvExtensionChunkDomain=HIPPO_VIDEO_SDK_CHUNK_HOST}catch(e){console.log(">>> ",e)}if(t){e.next=4;break}return i&&i(null,{error:"INVALID_CONFIGURATION",message:"The configuration passed is invalid"}),e.abrupt("return");case 4:if(n=t.token,r=t.email,o=t.token_type,a=void 0===o?x.e.RECORDER_SDK_TOKEN:o,s=t.environment,l=t.extensionId,c=t.type,d=void 0===c?x.q.GENERIC_RECORDER:c,u=t.initiator,p=void 0===u?E.c.RECORDER_SDK:u,D=l,ee({extensionId:l,integrationType:d}),window._HVDomain=window._HVDomain||"https://www.hippovideo.io",n){e.next=11;break}return i&&i(null,{error:"TOKEN_NOT_FOUND",message:"The token was not passed in the method"}),e.abrupt("return");case 11:return h=new _.a({token:n,email:r,tokenType:a}),e.next=14,h.authenticateToken();case 14:if(m=e.sent,g=m[0],v=m[1],!g){e.next=27;break}if(w=g.data,S=w.user_id,!w.error){e.next=23;break}return i&&i(null,w),e.abrupt("return");case 23:C=V(),B[C]=(b={token:n,tokenType:a,email:r,integrationType:d,initiator:p,userId:S,environment:s,initialized:!0},f()(b,"tokenType",a),f()(b,"extensionId",l),b),Z(n),i&&i({key:C},null);case 27:if(!v){e.next=31;break}return k={error:"NETWORK_ERROR",message:"There was a network error. Please check network connection and try again"},i&&i(null,k),e.abrupt("return");case 31:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();function j(){var e=Object(k.f)();return e.recording&&delete e.recording.system_audio,e}var H=function(){function t(e,i){var n=this,r=i.type,o=i.settings,a=void 0===o?{}:o;if(d()(this,t),!B.hasOwnProperty(e))throw new Error("INVALID_KEY");var s=a.extensionless,l=a.inline;if(this.recordingInProgress=!1,this.recorderSettings=a,this.eventCallbackMap={},B[e].initialized){if(window.HippoVideo||(window.HippoVideo={}),this.eventListenerClass="hvr-evl-".concat((new Date).getTime()),this.recorderClassName="hv-recorder-".concat((new Date).getTime()),this.targetElement,this.extensionless=s,this.videoDimension=function(){var e={},t=window.innerHeight,i=t*(16/9);console.log("sdkmv3 1 videoResHeight videoResWidth : ",window.innerHeight,window.innerWidth,t,i),window.innerWidth<i+120&&(i=window.innerWidth,t=(i-=120)*(9/16));return e.width=i,e.height=t,console.log("sdkmv3 videoDimension : ",e),console.log("sdkmv3 videoResHeight videoResWidth : ",t,i),e}(),l){var c=l.element_id,u=l.element;if(c&&(this.targetElement=document.getElementById(c)),u&&(this.targetElement=u),!this.targetElement&&document.getElementsByTagName("hippo-video-recorder")[0]&&(this.targetElement=document.getElementsByTagName("hippo-video-recorder")[0]),!this.targetElement)return void Q(this.eventCallbackMap,"record_error",{error:"inline_element_not_provided",message:'Parent element for adding recorder not found. Please pass the element id or element or set config "popup" as true.'})}else this.targetElement=(p="hvr-popup-".concat((new Date).getTime()),(h=document.createElement("div")).setAttribute("id",p),h.style.cssText="display:none;z-index: 100003;position: absolute;width: 100%;height: 100%;top: 0;left: 0;justify-content: center;align-items: center;background: rgba(0,0,0,0.72);",document.body.appendChild(h),h),this.popupElement=this.targetElement;var p,h;U(this.targetElement),this.targetElement.innerHTML="";var f=Object(R.a)("hippo_recorder/recorderapi/recorderapi.js");Promise.all(f).then((function(){C.a.render(w.a.createElement(T.b,{settings:a,userId:B[e].userId,type:r,integrationType:B[e].integrationType,initiator:B[e].initiator,tokenType:B[e].tokenType,token:B[e].token,email:B[e].email,extensionId:B[e].extensionId,isExtensionAvailable:M,recorderClassName:n.recorderClassName,eventListenerClass:n.eventListenerClass,eventCallback:function(e){return n._cb(e)},videoDimension:n.videoDimension}),n.targetElement)}))}else Q(this.eventCallbackMap,"record_error",{error:"recorder_not_initialized",message:"Recorder not initialized. Please call initialize method first."})}return p()(t,[{key:"open",value:function(){re(this.eventListenerClass,"open_widget"),this.popupElement&&(this.popupElement.style.display="flex")}},{key:"remove",value:function(){U(this.targetElement),this.popupElement&&(this.popupElement.style.display="none")}},{key:"on",value:function(e,t){L.includes(e)&&(this.eventCallbackMap[e]=t),"sdk_loaded"===e&&this.sdkLoaded&&this.eventCallbackMap[e]()}},{key:"getPageUrl",value:function(){var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.href}},{key:"_cb",value:function(t){if(Q(this.eventCallbackMap,t.type,t.detail),"sdk_loaded"===t.type&&(this.sdkLoaded=!0),"_record_started"===t.type){var i=t.detail||{};this.recordingInProgress=!0,i.showWebcamPreview&&te(i),i.showMarkupTools&&(n=this.recordingConfiguration,r=this.eventListenerClass,function(t,i){e('<div class="hv-focus-overlay" id="hvOverlayDiv" style="display: none;"> <div id="hvOverlayCircle"></div> </div>').appendTo("body"),e('<div id="hvHighLightDiv" class="hv-highlight-div" style="pointer-events: none">').appendTo("body"),e('<canvas id="hvCanvas" style="opacity:0.6;position: absolute;z-index:1000003;top: 0;height: 100%;left: 0;background-color: transparent;width: 100%;"></canvas>').appendTo("body"),function(t,i){e('<style>#hippo-overlay{\r\n\tposition: relative;\r\n\tz-index: 2555555;\r\n}\r\n#hvStop {\r\nmargin-bottom: 3px;\r\n}\r\n#hvPen{\r\nmargin-bottom: 2px;\r\n}\r\n#hvFocusArea{\r\nmargin-bottom: 2px;\r\n}\r\n#hvEraser {\r\nmargin-bottom: 2px;\r\n}\r\n#hvClearScreen{\r\nmargin-bottom: 5px;\r\n}\r\n#hippo-overlay-screenrecord{\r\n\tposition: fixed;\r\n\tleft: 0px;\r\n\tbottom: 0px;\r\n\tdisplay: none;\r\n\tborder: 0px solid gray;\r\n\tborder-radius: 5px !important;\r\n}\r\n#hippo-overlay-time {\r\n\tposition: fixed;\r\n\ttext-align: center;\r\n\ttop: 30%;\r\n\tleft:41.5%;\r\n\twidth: 250px;\r\n\theight:250px;\r\n\tborder-radius: 50%;\r\n\tdisplay: none;\r\n\tbackground-color: rgba(0, 0, 0, 0.5);\r\n\tborder:5px solid #f47a58;\r\n\tfont-family: \'Open Sans\';\r\n background-repeat: no-repeat;\r\n background-position: 50% 50%;\r\n\tbox-sizing: content-box;\r\n}\r\n#hippo-overlay-time span\r\n{\r\n\tfont-size: 3.750em !important;\r\n\tcolor: #f47a58 !important;\r\n\ttop: 85px;\r\n\tleft: 110px;\r\n\tposition: absolute;\r\n\tmargin-left:-11px;\r\n\tline-height: normal;\r\n}\r\n.hippo-embed-countdown {\r\n\tbackground-image: none !important;\r\n\tbackground-color: #fff !important;\r\n\tborder: 11px solid #000 !important;\r\n}\r\n.hippo-embed-countdown #countdown {\r\n\tposition: unset !important;\r\n\tmargin-left: 0 !important;\r\n\tdisplay: inline-block !important;\r\n\tmargin-left: 0 !important;\r\n\tfont-family: sans-serif !important;\r\n\tfont-weight: 600 !important;\r\n\tfont-size: 91px !important;\r\n\tmargin-top: 79px !important;\r\n\tcolor: #000 !important;\r\n\tfont-family: "proxima-nova", "Open Sans", "Helvetica Neue", sans-serif;\r\n}\r\n.hippo-video-countdown {\r\n\tbackground-image: none !important;\r\n\tbackground-color: #fff !important;}\r\n.hippo-video-countdown #countdown {\r\n\tposition: unset !important;\r\n\tmargin-left: 0 !important;\r\n\tdisplay: inline-block !important;\r\n\tmargin-left: 0 !important;\r\n\tfont-family: sans-serif !important;\r\n\tfont-weight: 600 !important;\r\n\tfont-size: 91px !important;\r\n\tmargin-top: 79px !important;\r\n\tfont-family: "proxima-nova", "Open Sans", "Helvetica Neue", sans-serif;\r\n}\r\n\r\n.hv-focus-overlay {\r\n top: 0;\r\n left: 0;\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n pointer-events: none;\r\n z-index: 10000001;\r\n}\r\n\r\n#hvOverlayCircle:after {\r\n content: \'\';\r\n position: absolute;\r\n z-index: 10000000000000000;\r\n left: -75px;\r\n top: -75px;\r\n border-radius: 100%;\r\n width: 150px;\r\n height: 150px;\r\n box-shadow: 0px 0px 0px 3000px rgba(0, 0, 0, 0.39);\r\n pointer-events: none;\r\n}\r\n\r\n.hv-highlight-div{\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n top: 0;\r\n z-index: 10000;\r\n}\r\n\r\n/*Highlight Featues Panel CSS*/\r\n.hv-act-comp-bottom-right {\r\n width: 333px; \r\n position: fixed;\r\n right: 30px;\r\n bottom: 0;\r\n -background-color: #424242;\r\n background-color: rgba(66, 66, 66, 0.8);\r\n max-height: 43px;\r\n -overflow: hidden;\r\n border: 0;\r\n border-radius: 5px 5px 0 0;\r\n cursor: default;\r\n z-index: 10000001;\r\n}\r\n\r\n.hv-act-comp-bottom-left {\r\n position: fixed;\r\n left: 30px;\r\n bottom: 0;\r\n -background-color: #424242;\r\n background-color: rgba(66, 66, 66, 0.8);\r\n max-height: 43px;\r\n -overflow: hidden;\r\n border: 0;\r\n border-radius: 5px 5px 0 0;\r\n cursor: default;\r\n z-index: 10000001;\r\n}\r\n\r\n.hv-highlight-options-div {\r\n -width: 330px;\r\n transition: all 300ms ease-out;\r\n}\r\n.hv-close-highlight-feature-panel {width: 0px;}\r\n/*Highlight Featues Panel CSS Ends*/\r\n\r\n\r\n/*Highlight option Icons and its effects*/\r\n.hv-icon-out-space {\r\n display: inline-block;\r\n padding-top: 13px;\r\n padding-right: 15px;\r\n padding-left: 15px;\r\n padding-bottom: 15px;\r\n cursor: pointer;\r\n}\r\n.hv-icon-out-space img {cursor: pointer;}\r\n.hv-icon-out-space:hover {background-color: #313131;}\r\n\r\n.hv-icon-out-disable {\r\n position: relative;\r\n top: -15px;\r\n opacity: .3;\r\n}\r\n\r\n.hv-icon-out-disable:hover {\r\n background-color: rgba(66, 66, 66, 0.8) !important;\r\n}\r\n\r\n.hv-pause-play {border-radius: 5px 0px 0px 0px;}\r\n\r\n.hv-togarrow-spacer {\r\n position: absolute;\r\n background-color: transparent;\r\n border-left: 1px solid;\r\n display: inline-block;\r\n border-radius: 0 5px 0px 0;\r\n cursor: pointer;\r\n}\r\n.hv-togarrow {padding: 16px 5px 19px 5px;}\r\n.hv-togarrow-left {\r\n padding: 16px 5px 19px 5px;\r\n transform: rotate(-180deg);\r\n}\r\n.hv-togarrow:hover {background-color: #313131;}\r\n\r\n.hv-active-tool {background-color: #313131;}\r\n/*Highlight option Icons and its effects ends*/\r\n\r\n/*Collape*/\r\n.hv-collapsed {\r\n width: 45px;\r\n\r\n background-color: rgba(49, 49, 49, 0.85);\r\n border-radius: 5px;\r\n padding: 10px;\r\n position: absolute;\r\n top: 0;\r\n right: 0px;\r\n max-height: 43px;\r\n cursor: pointer;\r\n transition: all 300ms ease-out;\r\n}\r\n.hv-collapsed-move {right: -30px;}\r\n/*Collape Ends*/\r\n\r\n/*Tooltip Panel*/\r\n.hv-tooltip-panel {\r\n width: 300px;\r\n -background-color: #313131;\r\n background-color: rgba(49, 49, 49, 0.85);\r\n padding: 12px 0px;\r\n border-radius: 5px 5px 0 0;\r\n font-size: 13px;\r\n font-weight: lighter;\r\n color: #ffffff;\r\n text-align: center;\r\n letter-spacing: 0.3px;\r\n margin: 0 auto;\r\n position: absolute;\r\n bottom: 43px;\r\n left: 0;\r\n right: 0;\r\n transition: all 300ms ease-out;\r\n line-height: 17px;\r\n white-space: pre-line;\r\n}\r\n.hv-tooltip-panel-toggle {bottom: -50px;}\r\n/*Tooltip Panel Ends*/\r\n\r\n.disp-none {display: none !important;}\r\n\r\n/*Color Palet*/\r\n.hv-choose-color-panel {\r\n background-color: #313131;\r\n border-radius: 5px 5px 0 0;\r\n max-height: 46px;\r\n overflow: hidden;\r\n position: absolute;\r\n top: -48px;\r\n left: 99px;\r\n line-height: 0;\r\n padding: 13px 5px 13px 10px;\r\n cursor: default;\r\n transition: top 300ms ease;\r\n display: none;\r\n}\r\n.hv-change-color-circle {\r\n width: 20px !important;\r\n height: 20px !important;\r\n border-radius: 100%;\r\n border: 1px solid transparent;\r\n margin-right: 5px;\r\n display: inline-block;\r\n cursor: pointer;\r\n}\r\n\r\n.hv-remove-highlight-div {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\ttop: 0;\r\n\tz-index: 10000;\r\n\tpointer-events: none !important;\r\n}\r\n\r\n.hv-add-highlight-div {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\ttop: 0;\r\n\tz-index: 10000;\r\n}\r\n\r\n.hv-add-eraser {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\ttop: 0;\r\n\tz-index: 10000;\r\n}\r\n\r\n.hv-remove-canvas {\r\n\topacity:0.5;\r\n\tpointer-events: none;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tbackground-color: transparent;\r\n\twidth: 100%;\r\n}\r\n\r\n.hv-add-canvas {\r\n\topacity:0.5;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tpointer-events: all;\r\n\tleft: 0;\r\n\tbackground-color: transparent;\r\n\twidth: 100%;\r\n}\r\n\r\n.hv-add-canvas-eraser {\r\n\topacity:0.5;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tbackground-color: transparent;\r\n\twidth: 100%;\r\n}\r\n\r\n.hv-pause-play{\r\n width: 46px;\r\n height: 44px;\r\n padding: 0px;\r\n text-align: center;\r\n position: relative;\r\n top: -17px;\r\n line-height: 59px;\r\n}\r\n\r\n.hv-black-color {background-color: #000000;}\r\n.hv-red-color {background-color: #ff0000;}\r\n.hv-violet-color {background-color: #8170cd;}\r\n.hv-orange-color {background-color: #ff9a44;}\r\n.hv-green-color {background-color: #7ddc68;}\r\n.hv-blue-color {background-color: #1edde1;}\r\n/*Color Palet Ends*/\r\n\r\n.hv-icon-selected #hvCursorAnimationImg {display: none;}\r\n.hv-icon-selected #hvCursorAnimationImgActive {display: block;}\r\n.hv-icon-unslected #hvCursorAnimationImg {display: block;}\r\n.hv-icon-unslected #hvCursorAnimationImgActive {display: none;}\r\n\r\n.hv-icon-selected #hvPenImg {display: none;}\r\n.hv-icon-selected #hvPenImgActive {display: block;}\r\n.hv-icon-unslected #hvPenImg {display: block;}\r\n.hv-icon-unslected #hvPenImgActive {display: none;}\r\n\r\n.hv-icon-selected #hvFocusImg {display: none;}\r\n.hv-icon-selected #hvFocusImgActive {display: block;}\r\n.hv-icon-unslected #hvFocusImg {display: block;}\r\n.hv-icon-unslected #hvFocusImgActive {display: none;}\r\n\r\n.hv-icon-selected #hvEraseImg {display: none;}\r\n.hv-icon-selected #hvEraseImgActive {display: block;}\r\n.hv-icon-unslected #hvEraseImg {display: block;}\r\n.hv-icon-unslected #hvEraseImgActive {display: none;}\r\n\r\n.hv-icon-selected #hvClearImg {display: none;}\r\n.hv-icon-selected #hvClearImgActive {display: block;}\r\n.hv-icon-unslected #hvClearImg {display: block;}\r\n.hv-icon-unslected #hvClearImgActive {display: none;}\r\n\r\n/*.hv-icon-selected #hvPauseImg {display: none;}\r\n.hv-icon-selected #hvPauseImgActive {display: block;}\r\n.hv-icon-unslected #hvPauseImg {display: block;}\r\n.hv-icon-unslected #hvPauseImgActive {display: none;}*/\r\n\r\n.hv-icon-selected #hvStopImg {display: none;}\r\n.hv-icon-selected #hvStopImgActive {display: block;}\r\n.hv-icon-unslected #hvStopImg {display: block;}\r\n.hv-icon-unslected #hvStopImgActive {display: none;}\r\n\r\n/*intro-div*/\r\n.hv-feature-intro-div {\r\n position: fixed;\r\n top: 0;\r\n overflow: hidden;\r\n width: 100%;\r\n height: 100%;\r\n background-color: rgba(0,0,0,0.8);\r\n z-index: 1000;\r\n}\r\n.hv-feature-intro-div .hv-feature-intro-div-inner {\r\n position: relative;\r\n top: 30%;\r\n width: 800px;\r\n margin: 0 auto;\r\n text-align: center;\r\n color: #fff;\r\n font-weight: 300;\r\n font-size: 16px;\r\n letter-spacing: 0.2px;\r\n line-height: 30px;\r\n}\r\n.hv-arrow-pointer {\r\n position: absolute;\r\n top: 100px;\r\n right: 0;\r\n -webkit-animation: fling-arrow 5s infinite;\r\n animation: fling-arrow 5s infinite;\r\n}\r\n@-webkit-keyframes fling-arrow {\r\n 0% {top: 100px;}\r\n 50% {top: 200px;}\r\n 100% {top: 100px;}\r\n}\r\n@keyframes fling-arrow {\r\n 0% {top: 100px;}\r\n 50% {top: 200px;}\r\n 100% {top: 100px;}\r\n}\r\n.hv-primary-btn-2 {\r\n background-image: linear-gradient(to right, rgb(252, 96, 118) 0%, rgb(255, 154, 68) 51%, rgb(255, 154, 68) 100%);\r\n background-size: 200%;\r\n border-radius: 3px;\r\n box-sizing: border-box;\r\n color: rgb(255, 255, 255);\r\n cursor: pointer;\r\n font-family: "Open Sans";\r\n font-size: 13px;\r\n font-weight: 500;\r\n letter-spacing: 0.2px;\r\n margin: 10px 4px 10px 4px;\r\n padding: 8px 20px 9px 20px;\r\n text-align: center;\r\n text-transform: uppercase;\r\n transition-duration: 0.9s;\r\n transition-property: all;\r\n transition-timing-function: ease;\r\n border: unset;\r\n background-color: unset;\r\n}\r\n.hv-primary-btn {\r\n max-height: 35px;\r\n background-image: linear-gradient(120deg, #fc6076 0%, #ff9a44 100%);\r\n padding-top: 8px;\r\n padding-bottom: 7px;\r\n padding-left: 20px;\r\n padding-right: 20px;\r\n letter-spacing: 0.5px;\r\n transition: 0.5s;\r\n box-shadow: inset 0 0 0 0 #fc6076;\r\n border: 0;\r\n border-radius: 5px;\r\n font-size: 13px;\r\n font-weight: 300;\r\n color: #ffffff;\r\n outline: none;\r\n cursor: pointer;\r\n}\r\n.hv-primary-btn:hover {\r\n background-image: linear-gradient(120deg, #ff9a44 0%, #fc6076 100%);\r\n background-position: right center;\r\n}\r\n.hv-pen-cusor-area{\r\n position: fixed;\r\n\r\n}\r\n.hv-cancel-btn {\r\n\tmargin-right: 10px;\r\n\ttop: 18px;\r\n bottom: 0;\r\n position: relative;\r\n color: #4a90e2 !important;\r\n cursor: pointer;\r\n}\r\n.hv-cancel-btn:hover {\r\n text-decoration: underline;\r\n}\r\n#hippo-overlay-div {\r\n height: 100%;\r\n width: 100%;\r\n background-color: rgba(0,0,0,0.6);\r\n position: fixed;\r\n z-index: 1000001;\r\n top:0;\r\n text-align: center;\r\n}\r\n\r\n#hippo-inner-div {\r\n width: 700px;\r\n left: calc(50% - 350px);\r\n height: 506px;\r\n background-color: #fff;\r\n border-radius: 10px;\r\n position: absolute;\r\n top: 12%;\r\n bottom: 0px;\r\n}\r\n\r\n#hippo-action-div{\r\n position: absolute;\r\n bottom: 10px;\r\n left: 27px;\r\n width: 100%;\r\n}\r\n\r\n.hv-stop-recording-btn{\r\n font-size:14px;\r\n background-size: 200% auto;\r\n background-image: linear-gradient(to right, #fc6076 0%, #ff9a44 31%, #ff9a44 100%);\r\n padding: 8px 30px 8px 30px;\r\n border-radius: 4px;\r\n float: right;\r\n margin-right: 61px;\r\n color: #fff;\r\n cursor: pointer;\r\n}\r\n.hv-webcam-play-btn{\r\n font-size: 14px;\r\n background-color: #8b8b8b;\r\n padding: 8px 30px 8px 30px;\r\n border-radius: 4px;\r\n float: right;\r\n color: #fff;\r\n right: 25px;\r\n margin-left: -30px;\r\n position: relative;\r\n cursor: pointer;\r\n}\r\n\r\n#hv-iframe-overlay-div-drag {\r\n z-index: 100000;\r\n height: 200px;\r\n width: 271px;\r\n}\r\n\r\n.hv-webcam-rectangle-bottom-left{\r\n position: fixed;\r\n bottom:0;\r\n left:0;\r\n height:200px;\r\n z-index:1000000;\r\n border:0;\r\n display:none;\r\n}\r\n\r\n.hv-webcam-rectangle-bottom-right{\r\n position: fixed;\r\n bottom:0;\r\n right:0;\r\n height:200px;\r\n z-index:1000000;\r\n border:0;\r\n display:none;\r\n}\r\n\r\n.hv-webcam-rectangle-top-left{\r\n position: fixed;\r\n top:0;\r\n left:0;\r\n height:200px;\r\n z-index:1000000;\r\n border:0;\r\n display:none;\r\n}\r\n\r\n.hv-webcam-rectangle-top-right{\r\n position: fixed;\r\n top:0;\r\n right:0;\r\n height:200px;\r\n z-index:1000000;\r\n border:0;\r\n display:none;\r\n}\r\ndiv.clickEffect{\r\n position:fixed;\r\n box-sizing:border-box;\r\n border-style:solid;\r\n border-color:#ff160b;\r\n border-radius:50%;\r\n animation:clickEffect 0.6s ease-out;\r\n z-index:10000001;\r\n pointer-events: none;\r\n}\r\n@keyframes clickEffect{\r\n 0%{\r\n opacity:1;\r\n width:0.5em;\r\n height:0.5em;\r\n margin:-0.25em;\r\n border-width:8px;\r\n transform: scale(0.6, 0.6);\r\n }\r\n 100%{\r\n opacity:0.4;\r\n width:15em; height:15em;\r\n margin:-7.5em;\r\n border-width:0.48px;\r\n transform: scale(0.4, 0.4);\r\n }\r\n}\r\n\r\ndiv.clickEffect2{\r\n position:fixed;\r\n box-sizing:border-box;\r\n border-style:solid;\r\n border-color:#ff160b;\r\n border-radius:50%;\r\n animation:clickEffect2 0.6s ease-out;\r\n z-index:10000001;\r\n pointer-events: none;\r\n}\r\n@keyframes clickEffect2{\r\n 0%{\r\n opacity:1;\r\n width:1em;\r\n height:1em;\r\n margin:-0.5em;\r\n border-width:8px;\r\n transform: scale(0.6, 0.6);\r\n }\r\n 100%{\r\n opacity:0.4;\r\n width:15em; height:15em;\r\n margin:-7.5em;\r\n border-width:0.48px;\r\n transform: scale(0.4, 0.4);\r\n }\r\n}\r\n.hv-blink-right, .hv-blink-left{\r\n width: 2px;\r\n height: 2px;\r\n background-color: white;\r\n animation: blink 1s infinite;\r\n opacity:0.1;\r\n border: 1px solid black;\r\n position: fixed;\r\n bottom:0;\r\n display: none;\r\n}\r\n.hv-blink-right{\r\n right: 0;\r\n}\r\n.hv-blink-left{\r\n left: 0;\r\n}\r\n\r\n@keyframes blink {\r\n 0% {transform: scale(1, 1);}\r\n 50% {transform: scale(1.3, 1.3);}\r\n}\r\n#hv-recordingTimer {\r\n font-size: 35px;\r\n font-weight: lighter;\r\n font-family: \'Open Sans\';\r\n color: #ef5253;\r\n text-align: center;\r\n margin-top: 5px !important;\r\n margin-left: 5px;\r\n float: left;\r\n}\r\n\r\n@keyframes fadeInOut {\r\n 0% {opacity: 0}\r\n 50% {opacity: 1}\r\n 100% {opacity: 0}\r\n}\r\n#recording-blinking {\r\n animation: fadeInOut 1s linear infinite;\r\n color: red;\r\n font-size: 12px;\r\n margin-bottom: 8px;\r\n text-align: center;\r\n padding-top: 5px;\r\n}\r\n#recording-blinking img{\r\n margin-right: 5px;\r\n position: relative;\r\n top: 6px;\r\n vertical-align: unset;\r\n}\r\n\r\n.lessonly-recording-frame {\r\n\tfont-family: "proxima-nova", "Open Sans", "Helvetica Neue", sans-serif !important;\r\n}\r\n\r\n.lessonly-recording-frame #hv-previewcontrol-stop {\r\n\twidth: 170px;\r\n\tfloat: right;\r\n\tbackground-color: #4a90e2 !important;\r\n\tbackground-image: unset;\r\n\tborder: 0;\r\n\tbox-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 1px 0 0 #4a90e2, inset 0 2px 0 0 rgba(255, 255, 255, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.09) !important;\r\n\tfont-family: "proxima-nova", "Open Sans", "Helvetica Neue", sans-serif;\r\n\tcolor: #fff;\r\n\tfont-size: 16px;\r\n\tfont-weight: normal;\r\n\tline-height: 20px;\r\n\tpadding: 0 16px;\r\n\tborder-radius: 3px;\r\n\theight: 40px;\r\n\tletter-spacing: normal;\r\n\ttext-transform: unset;\r\n\tmargin: 10px 4px;\r\n}\r\n\r\n.lessonly-recording-frame #hv-recordingTimer {\r\n color: #4a90e2 !important;\r\n font-family: "proxima-nova", "Open Sans", "Helvetica Neue", sans-serif !important;\r\n}\r\n\r\n#hv-iframe-wrapper {\r\n\twidth: 90%;\r\n margin-left: 5%;\r\n background-color: rgba(0,0,0,0.04);\r\n}\r\n.hv-align-right {\r\n\tfloat: right;\r\n}\r\n</style>').appendTo("head"),window._HVDomain;var n,r,o,a=(o="Unknown",-1!=window.navigator.userAgent.indexOf("Windows")&&(o="Windows"),-1!=window.navigator.userAgent.indexOf("Mac")&&(o="Mac"),-1!=window.navigator.userAgent.indexOf("X11")&&(o="UNIX"),-1!=window.navigator.userAgent.indexOf("Linux")&&(o="Linux"),o);if(N={isEraser:!1,isPen:!1,cursorWidth:5,canvas:null,ctx:null,flag:!1,prevX:0,currX:0,prevY:0,currY:0,dot_flag:!1,penColor:"#000000",selectedColor:0,highlightCursorWidth:10,highlightCursorHeight:10,stopIcon:Object(A.e)("/images/hv-highlight-icons/hb-stop.png"),cursorIcon:Object(A.e)("/images/hv-highlight-icons/hb-select.png"),cursorIconActive:Object(A.e)("/images/hv-highlight-icons/hb-select-active.png"),penIcon:Object(A.e)("/images/hv-highlight-icons/hb-pen.png"),penIconActive:Object(A.e)("/images/hv-highlight-icons/hb-pen-active.png"),focusIcon:Object(A.e)("/images/hv-highlight-icons/hb-focus.png"),focusIconActive:Object(A.e)("/images/hv-highlight-icons/hb-focus-active.png"),eraseIcon:Object(A.e)("/images/hv-highlight-icons/hb-erase.png"),eraseIconActive:Object(A.e)("/images/hv-highlight-icons/hb-erase-active.png"),clearIcon:Object(A.e)("/images/hv-highlight-icons/hb-clear.png"),clearIconActive:Object(A.e)("/images/hv-highlight-icons/hb-clear-active.png"),video:Object(A.e)("/images/hv-highlight-icons/hb-video-off.png"),togarrow:Object(A.e)("/images/hv-highlight-icons/hb-toggle-arrow.png"),collapsIcon:Object(A.e)("/images/hv-highlight-icons/collapse-icon.png"),penColorIcon:Object(A.e)("/images/hv-highlight-icons/pen-with-color.svg"),penCursorIcon:Object(A.e)("/images/hv-highlight-icons/pen-cusor.svg"),eraseCursorIcon:Object(A.e)("/images/hv-highlight-icons/erase-cursor.svg"),arrowPointer:Object(A.e)("/images/hv-highlight-icons/arrow-pointer.png"),mouseAnimationIcon:Object(A.e)("/images/hv-highlight-icons/hb-mouse-animation.png"),mouseAnimationIconActive:Object(A.e)("/images/hv-highlight-icons/hb-mouse-animation-active.png"),highlightsColors:["#000000","#ff0000","#8170cd","#ff9a44","#7ddc68","#1edde1"],isAlt:!1,clearAction:"hvCursor",highlightOptions:function(e){var t=e.currentTarget.id;N.selectHiglightOptions(t,!0)},checkColorPanelVisible:function(t){e(".hv-choose-color-panel").is(":visible")&&N.tooltipHide()},pausePlay:function(t){e("#hvPause").hasClass("disp-none")?(e("#hvPlay").addClass("disp-none"),e("#hvPause").removeClass("disp-none"),N.highlightsEvents("hvPlay")):(e("#hvPlay").removeClass("disp-none"),e("#hvPause").addClass("disp-none"),N.highlightsEvents("hvPause"))},pausePlayWebcam:function(t){"hvResumeWebcam"===t.currentTarget.id?(e("#hvResumeWebcam").addClass("disp-none"),e("#hvPauseWebcam").removeClass("disp-none")):(e("#hvResumeWebcam").removeClass("disp-none"),e("#hvPauseWebcam").addClass("disp-none"))},handleStopRecording:function(){console.log("SENDING EVENT ",i,"hv_stop_recording"),oe(i,"markup-tools")},cancelRecording:function(e){},selectHiglightOptions:function(t,i){if("hvClearScreen"!==t&&(N.clearAction=t),e("#"+t).hasClass("hv-active-tool")&&i)return N.resetValues(),N.highlightsEvents("hvCursor"),void N.cursor();if("hvCursor"==t&&!i)return N.resetValues(),void N.cursor();switch(N.resetValues(),e("#"+t).addClass("hv-active-tool"),e("#"+t).removeClass("hv-icon-unslected"),e("#"+t).addClass("hv-icon-selected"),i&&"hvStop"!=t&&N.highlightsEvents(t),"hvPen"!=t&&"hvEraser"!=t&&"hvFocusArea"!=t||e(document).bind("mousemove",N.mouseMove),N.isPen=!1,t){case"hvCursor":N.cursor();break;case"hvCursorAnimation":N.cursorAnimation();break;case"hvPen":N.tooltipHide(),e("#hvHighLightDiv").removeClass("disp-none"),N.pen(),e(".hv-choose-color-panel").show();break;case"hvEraser":N.eraser();break;case"hvClearScreen":N.clearScreen();break;case"hvFocusArea":N.focusArea();break;case"hvStop":N.handleStopRecording()}},resetValues:function(){e(".hv-highlight-option").removeClass("hv-active-tool"),e(".hv-highlight-option").removeClass("hv-icon-selected"),e(".hv-highlight-option").addClass("hv-icon-unslected"),e(".hv-choose-color-panel").hide(),e("#hvHighLightDiv").removeClass("hv-add-highlight-div"),e("#hvHighLightDiv").removeClass("hv-add-eraser"),e("#hvCanvas").removeClass("hv-add-canvas"),e("#hvHighLightDiv").removeClass("hv-remove-highlight-div"),e("#hvCanvas").removeClass("hv-remove-canvas"),e(".hv-pen-cusor-area").remove(),e(document).unbind("mousemove"),document.removeEventListener("mouseup",N.clickEffect)},tooltipHide:function(t){e(".hv-tooltip-panel").hide()},tooltipShow:function(i){if(clearTimeout(r),0!=N.highlightsOpen){e(".hv-tooltip-panel").show();var n=i.currentTarget.id,r=setTimeout((function(){e(".hv-tooltip-panel").hide()}),3e3);switch(n){case"hvCursor":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + M for Cursor");break;case"hvCursorAnimation":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + A for Click Animation");break;case"hvPen":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + H for Highlight \n Hit UP / DOWN arrow to change size \n LEFT / RIGHT arrow to change color");break;case"hvEraser":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + E for Eraser");break;case"hvClearScreen":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + Z for Clear screen");break;case"hvFocusArea":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + F for Focus and ESC for Cursor");break;case"hvPause":case"hvPlay":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + P for Pause and Play");break;case"hvCloseHighlight":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + C for Close");break;case"hvStop":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + S for Stop recording");break;case"disabledState":t.screenRecord?e(".hv-tooltip-panel").text("Upgrade needed"):e(".hv-tooltip-panel").text("")}}},color:function(e){N.highlightsEvents("hvColorChoose"),N.isEraser=!1,N.penColor=e.target.id,N.selectedColor=N.highlightsColors.indexOf(e.target.id),N.setCursor(e.target.id)},draw:function(){N.ctx.beginPath(),1==N.isEraser?N.ctx.globalCompositeOperation="destination-out":N.ctx.globalCompositeOperation="source-over",N.ctx.lineCap="round",N.ctx.moveTo(N.prevX,N.prevY),N.ctx.fillStyle=N.penColor,N.ctx.globalAlpha=1,N.ctx.lineTo(N.currX,N.currY),N.ctx.strokeStyle=N.penColor,N.ctx.lineWidth=N.cursorWidth,N.ctx.stroke()},clearScreen:function(){var e=document.body,t=document.documentElement,i=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);N.canvas.height=i;var n=N.canvas.width,r=N.canvas.height;N.ctx.clearRect(0,0,n,r),N.selectHiglightOptions(N.clearAction,!1)},focusArea:function(){e("#hvHighLightDiv").addClass("hv-remove-highlight-div"),e("#hvCanvas").addClass("hv-remove-canvas");var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);e("body").css({cursor:"default"}),e("#hvHighLightDiv").css("height",n+"px"),e("#hvOverlayDiv").show()},cursor:function(){e("#hvHighLightDiv").css({"pointer-events":"none"});var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);e("body").css({cursor:"default"}),e("#hvHighLightDiv").css("height",n+"px"),e("#hvOverlayDiv").hide(),e("#hvCanvas").addClass("hv-remove-canvas"),e("#hvCanvas").css("height",n+"px")},cursorAnimation:function(){document.addEventListener("mouseup",N.clickEffect),e("#hvHighLightDiv").css({"pointer-events":"none"});var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);e("body").css({cursor:"default"}),e("#hvHighLightDiv").css("height",n+"px"),e("#hvOverlayDiv").hide(),e("#hvCanvas").addClass("hv-remove-canvas"),e("#hvCanvas").css("height",n+"px")},clickEffect:function(e){var t=document.createElement("div");t.className="clickEffect",t.style.top=e.clientY+"px",t.style.left=e.clientX+"px",document.body.appendChild(t),t.addEventListener("animationend",function(){t.parentElement.removeChild(t)}.bind(this));var i=document.createElement("div");i.className="clickEffect2",i.style.top=e.clientY+"px",i.style.left=e.clientX+"px",setTimeout((function(){document.body.appendChild(i),i.addEventListener("animationend",function(){i.parentElement.removeChild(i)}.bind(this))}),200)},pen:function(){N.isEraser=!1,N.isPen=!0,N.setCursor(N.penColor),e("#hvHighLightDiv").addClass("hv-add-highlight-div");var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);e("#hvHighLightDiv").css("height",n+"px"),e("#hvCanvas").removeClass("hv-add-canvas-eraser"),e("#hvCanvas").addClass("hv-add-canvas"),e("#hvCanvas").css("height",n+"px"),e("#hvOverlayDiv").hide();var r='<svg class="hv-pen-cusor-area" xmlns="http://www.w3.org/2000/svg" width="'+N.highlightCursorWidth+'" height="'+N.highlightCursorHeight+'" viewBox="0 0 51 50.969"><metadata><?xpacket begin="\ufeff" id="W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about=""/></rdf:RDF></x:xmpmeta><?xpacket end="w"?></metadata><defs><style>.cls-1 {fill: none;stroke: #313131;stroke-linecap: round;stroke-linejoin: round;stroke-width: 1px;stroke-dasharray: 5 4;}</style></defs><circle class="cls-1" cx="25.5" cy="25.469" r="25"/></svg>';e(r).appendTo("body")},eraser:function(){N.isEraser=!0,e("body").css("cursor","url("+N.eraseCursorIcon+"), auto"),e("#hvHighLightDiv").addClass("hv-add-eraser"),e("#hvCanvas").addClass("hv-add-canvas-eraser"),e("#hvCanvas").css("height",n+"px");var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);e("#hvHighLightDiv").css("height",n+"px"),e("#hvOverlayDiv").hide();var r='<svg class="hv-pen-cusor-area" xmlns="http://www.w3.org/2000/svg" width="'+N.highlightCursorWidth+'" height="'+N.highlightCursorHeight+'" viewBox="0 0 51 50.969"><metadata><?xpacket begin="\ufeff" id="W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about=""/></rdf:RDF></x:xmpmeta><?xpacket end="w"?></metadata><defs><style>.cls-1 {fill: none;stroke: #313131;stroke-linecap: round;stroke-linejoin: round;stroke-width: 1px;stroke-dasharray: 5 4;}</style></defs><circle class="cls-1" cx="25.5" cy="25.469" r="25"/></svg>';e(r).appendTo("body")},mouseMove:function(t){var i=t.pageX,o=t.pageY,a=i/n,s=o/r,l=(Math.floor(100*a),Math.floor(100*s),i+"px"),c=o+"px";e("#hvOverlayCircle").css({transform:"translate("+l+","+c+") translateZ(0px)"})},closeHighlights:function(t){N.tooltipHide(),N.highlightsOpen=!1,t&&N.highlightsEvents("hvCloseHighlight"),e(".hv-tooltip-panel").hide(),e(".hv-highlight-feature-panel").animate({width:"0"},200,(function(){e(".hv-collapsed").removeClass("disp-none")})),e(".hv-highlight-options-div").addClass("hv-close-highlight-feature-panel")},openHighlights:function(t){N.highlightsOpen=!0,t&&N.highlightsEvents("hvOpenHighlight"),e(".hv-highlight-feature-panel").animate({width:"333px"},200),e(".hv-highlight-options-div").removeClass("hv-close-highlight-feature-panel"),e(".hv-highlight-options-div").show().delay(1e3),e(".hv-collapsed").addClass("disp-none")},findxy:function(t,i){"down"==t&&(N.prevX=N.currX,N.prevY=N.currY,N.currX=i.offsetX-N.canvas.offsetLeft,N.currY=i.offsetY-N.canvas.offsetTop,N.currY+=15,N.currX+=5,N.flag=!0,N.dot_flag=!0,N.dot_flag&&(N.ctx.beginPath(),N.ctx.fillStyle=N.penColor,N.ctx.fillRect(N.currX,N.currY,2,2),N.ctx.closePath(),N.dot_flag=!1)),"up"!=t&&"out"!=t||(N.flag=!1),"move"==t&&(e(".hv-pen-cusor-area").css({left:i.offsetX-N.canvas.offsetLeft-e(".hv-pen-cusor-area").width()/2+2,top:i.offsetY-N.canvas.offsetTop-e(".hv-pen-cusor-area").height()/2+17}),N.flag&&(N.prevX=N.currX,N.prevY=N.currY,N.currX=i.offsetX-N.canvas.offsetLeft+5,N.currY=i.offsetY-N.canvas.offsetTop+17,N.draw()))},windowResize:function(){var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);N.canvas.height=n,e("#hvHighLightDiv").css("height",n+"px")},highlightsEvents:function(e){},setCursor:function(t){if(t){if(0==N.isEraser){e("body").addClass("hv-"+t+"-cursor");var i='<svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24.11 23.93"><defs><style>.cls-1,.cls-2{fill:#fff;stroke:#000;stroke-miterlimit:10;}.cls-2{fill-rule:evenodd;}</style></defs><title>highlight with color</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M22.58,1.35a2.91,2.91,0,0,1,0,4.11L21.21,6.82,17.11,2.72l1.37-1.37a2.91,2.91,0,0,1,4.11,0Z"/><polygon class="cls-1" points="2.05 17.77 0.69 23.25 6.16 21.88 19.85 8.19 15.74 4.09 2.05 17.77"/><path class="cls-2" style="fill:'+t+'" d="M20.11,15.94a3.5,3.5,0,1,1-3.5,3.5,3.5,3.5,0,0,1,3.5-3.5Z"/></g></g></svg>',n='url("data:image/svg+xml,'+(i=encodeURIComponent(i.replace(/"/g,"'")))+'"), auto';e("body").css("cursor",n)}}else e("body").css({cursor:"default"})},onkeyupEvent:function(e){18==e.which&&(N.isAlt=!1)},onkeydownEvent:function(t){18==t.which&&(N.isAlt=!0),N.isPen&&[37,38,39,40].indexOf(t.keyCode)>-1&&t.preventDefault(),83==t.which&&1==N.isAlt&&N.stopRecording(),67==t.which&&1==N.isAlt&&(t.preventDefault(),N.closeHighlights(!0)),79==t.which&&1==N.isAlt&&(t.preventDefault(),N.openHighlights(!0)),90==t.which&&1==N.isAlt&&(N.selectHiglightOptions("hvClearScreen",!0),clearScreen()),69==t.which&&1==N.isAlt&&(t.preventDefault(),N.selectHiglightOptions("hvEraser",!0),N.isEraser=!0),72==t.which&&1==N.isAlt&&(N.selectHiglightOptions("hvPen",!0),N.isEraser=!1,N.pen()),70==t.which&&1==N.isAlt&&(t.preventDefault(),N.selectHiglightOptions("hvFocusArea",!0),N.focusArea()),(77==t.which&&1==N.isAlt||27==t.which)&&(N.selectHiglightOptions("hvCursor",!0),N.cursor()),65==t.which&&1==N.isAlt&&N.selectHiglightOptions("hvCursorAnimation",!0),38==t.which&&N.cursorWidth<=200&&(N.cursorWidth+=1,N.highlightCursorWidth+=1,N.highlightCursorHeight+=1,e(".hv-pen-cusor-area").css({width:N.highlightCursorWidth,height:N.highlightCursorHeight})),38==t.which&&N.isAlt,40==t.which&&N.cursorWidth>=5&&(N.cursorWidth-=1,N.highlightCursorWidth-=1,N.highlightCursorHeight-=1,e(".hv-pen-cusor-area").css({width:N.highlightCursorWidth,height:N.highlightCursorHeight})),37==t.which&&0!==N.selectedColor&&(N.selectedColor=N.selectedColor-1,N.penColor=N.highlightsColors[N.selectedColor],N.setCursor(N.penColor)),39==t.which&&5!==N.selectedColor&&(N.selectedColor=N.selectedColor+1,N.penColor=N.highlightsColors[N.selectedColor],N.setCursor(N.penColor))}},!(e(".hv-highlight-feature-panel").length>0)){var s="Press "+("Mac"===a?"Option":"Alt")+" + O for Open",l="Press "+("Mac"===a?"Option":"Alt")+" + H for Highlight",c='<div class="hv-action-component hv-highlight-feature-panel hv-act-comp-bottom-right"> <div class="hv-highlight-options-div"> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvStop"> <img src="'+N.stopIcon+'" id="hvStopImg"/> <img src="'+N.stopIcon+'" id="hvStopImgActive"/> </span> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvCursorAnimation"> <img src="'+N.mouseAnimationIcon+'" id="hvCursorAnimationImg" class=" hv-custom-mouse-pen-cursor" /> <img src="'+N.mouseAnimationIconActive+'" id="hvCursorAnimationImgActive" class=" hv-custom-mouse-pen-cursor" /> </span> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvPen"> <img src="'+N.penIcon+'" id="hvPenImg" /> <img src="'+N.penIconActive+'" id="hvPenImgActive" /> </span> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvFocusArea"> <img src="'+N.focusIcon+'" id="hvFocusImg" /> <img src="'+N.focusIconActive+'" id="hvFocusImgActive" /> </span> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvEraser"> <img src="'+N.eraseIcon+'" class=" hv-custom-mouse-erase-cursor" id="hvEraseImg" /> <img src="'+N.eraseIconActive+'" class=" hv-custom-mouse-erase-cursor" id="hvEraseImgActive" /> </span> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvClearScreen"> <img src="'+N.clearIcon+'" id="hvClearImg" /> <img src="'+N.clearIconActive+'" id="hvClearImgActive" /> </span> <span class="hv-togarrow-spacer hv-close-highlights" id="hvCloseHighlight"><img src="'+N.togarrow+'" class=" hv-togarrow" id="hvTogarrow" /></span> <div class="hv-choose-color-panel"> <div id="#000000" class="hv-change-color-circle hv-black-color"></div> <div id="#ff0000" class="hv-change-color-circle hv-red-color"></div> <div id="#8170cd" class="hv-change-color-circle hv-violet-color"></div> <div id="#ff9a44" class="hv-change-color-circle hv-orange-color"></div> <div id="#7ddc68" class="hv-change-color-circle hv-green-color"></div> <div id="#1edde1" class="hv-change-color-circle hv-blue-color"></div> </div> </div> <div class="hv-collapsed disp-none hv-open-highlights hv-collapsed-move" id="hvOpenHighlight" title="'+s+'"><img src="'+N.collapsIcon+'" class="hv-collapsed-icon" /></div> <div class="hv-tooltip-panel">'+l+"</div> </div>";e(c).appendTo("body"),e(".hv-highlight-option").bind("click",N.highlightOptions),e(".hv-change-color-circle").bind("click",N.color),e(".hv-close-highlights").bind("click",N.closeHighlights),e(".hv-open-highlights").bind("click",N.openHighlights),e(".hv-highlight-option").on("mouseenter",N.tooltipShow),e(".hv-icon-out-disable").on("mouseenter",N.tooltipShow),e(".hv-tooltip-panel").on("mouseenter",N.checkColorPanelVisible),e(".hv-close-highlights").on("mouseover",N.tooltipShow),window.addEventListener("keyup",N.onkeyupEvent),window.addEventListener("keydown",N.onkeydownEvent),window.addEventListener("resize",N.windowResize),N.canvas=document.getElementById("hvCanvas"),N.ctx=N.canvas.getContext("2d"),N.canvas.width=window.innerWidth,N.canvas.height=window.innerHeight,n=N.canvas.width,r=N.canvas.height;var d=document.body,u=document.documentElement,p=Math.max(d.scrollHeight,d.offsetHeight,u.clientHeight,u.scrollHeight,u.offsetHeight);N.canvas.height=p,e("#hvHighLightDiv").css("height",p+"px"),N.selectHiglightOptions("hvCursor"),e("#hvHighLightDiv").css({"pointer-events":"none"}),e("#hvOverlayDiv").hide(),N.canvas.addEventListener("mousemove",(function(e){N.findxy("move",e)}),!1),N.canvas.addEventListener("mousedown",(function(e){N.findxy("down",e)}),!1),N.canvas.addEventListener("mouseup",(function(e){N.findxy("up",e)}),!1),N.canvas.addEventListener("mouseout",(function(e){N.findxy("out",e)}),!1)}}(t,i)}(n,r))}var n,r,o,a,s,l,c;"_show_webcam_preview"===t.type&&te(t.detail||{});if("_remove_webcam_preview"===t.type&&ie(),"_show_upload_progress"===t.type){var d=t.detail||{};o={recorder:d.recorder,theme:d.theme},a=o.recorder,s=o.theme,Object(I.a)(a,s)}"record_stopped"===t.type&&(console.log("RECORDING STOPPED SDK ",M,chrome.runtime),M&&(null===(l=chrome)||void 0===l||null===(c=l.runtime)||void 0===c||c.sendMessage(D,{get_recording_blobs_for_sdk:!0},(function(e){console.log("RESPONSE ",e)}))));"record_stopped"===t.type&&(this.popupElement&&(this.popupElement.style.display="flex"),this.recordingInProgress=!1,ie(),ne()),"record_aborted"===t.type&&(this.recordingInProgress=!1,ie(),ne()),"video_submitted"!==t.type&&"hide_frame"!==t.type||this.popupElement&&(this.popupElement.style.display="none"),"_close_popup"===t.type&&(this.popupElement&&(this.popupElement.style.display="none"),ie(),ne()),"show_frame"===t.type&&this.popupElement&&(this.popupElement.style.display="flex")}}]),t}(),q={create:function(e,t){return new Y(e,{settings:t})}},$={create:function(e,t){return new K(e,{settings:t})}},W={create:function(e,t){return new G(e,{settings:t})}},G=function(e){r()(i,e);var t=O(i);function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:config,r=n.settings;return d()(this,i),t.call(this,e,{type:T.a.EDITOR,settings:r})}return p()(i)}(H),Y=function(e){r()(i,e);var t=O(i);function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:config,r=n.settings;return d()(this,i),t.call(this,e,{type:T.a.RECORDER,settings:r})}return p()(i,[{key:"startRecording",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.recordingInProgress?Q(this.eventCallbackMap,"record_error",{error:"recording_in_progress",message:"A recording is already in progress"}):(e=X(e),J(this.settings,e)?(this.popupElement&&(this.popupElement.style.display="flex"),re(this.eventListenerClass,"start_recording",{recording_configuration:e,extension_available:M})):Q(this.eventCallbackMap,"record_error",{error:"invalid_record_options",message:"The recording options given are invalid"}))}},{key:"stopRecording",value:function(){oe(this.eventListenerClass,"user")}}]),i}(H),K=function(e){r()(i,e);var t=O(i);function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:config,r=n.settings;return d()(this,i),t.call(this,e,{type:T.a.IMPORTER,settings:r})}return p()(i,[{key:"open",value:function(e){this.importMedia(null,e)}},{key:"importMedia",value:function(e,t){re(this.eventListenerClass,"import_video",{file:e,uniqueId:t})}}]),i}(H);function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.screenRecord,n=t.audio,r=t.webCam,o=e.record_config||{},a=o.screen,s=o.webcam,l=o.mic;return!(!(i||n||r||a||s)&&l)}function X(e){var t=Object.assign({},e);for(var i in e)F[i]&&(delete t[i],t[F[i]]=e[i]);return t}function Q(e,t,i){e[t]&&e[t](i)}function Z(t){e("#recording-configuration").remove(),e('<input type=hidden id="recording-configuration" value="" />').appendTo("head");e("#actiontoextension").remove(),e('<input type=hidden id="actiontoextension" value="" />').appendTo("head");var i='<input type=hidden id="hippowiz-ew-digest" value="'.concat(t,'" />');e("#hippowiz-ew-digest").remove(),e(i).appendTo("head")}function ee(e){var t=e.integrationType,i=e.extensionId;try{Object(k.j)({integrationType:t,extensionId:i}).then((function(){M=!0,D=i})).catch((function(e){console.warn("Extension connection could not be established ",e),M=!1}))}catch(e){M=!1}}function te(e){Object(P.a)(e)}function ie(){!function(e){var t=document.getElementsByClassName(e);for(;t.length>0;)t[0].parentNode.removeChild(t[0])}("hv-rapi-webcam-preview")}function ne(){!function(){N&&N.resetValues();e("#hvOverlayDiv, #hvHighLightDiv, #hvCanvas, .hv-highlight-feature-panel").remove(),e("body").css({cursor:"default"})}()}function re(e,t,i){var n;try{n=new CustomEvent(t,{detail:i})}catch(e){(n=document.createEvent("Event")).detail=i,n.initEvent(t,!1,!1)}document.getElementsByClassName(e)[0].dispatchEvent(n)}function oe(e,t){re(e,"hv_stop_recording",{from:t})}}.call(this,i(0))},,function(e,t,i){var n=i(32),r=i(33),o=i(40),a=TypeError;e.exports=function(e,t){var i,s;if("string"===t&&r(i=e.toString)&&!o(s=n(i,e)))return s;if(r(i=e.valueOf)&&!o(s=n(i,e)))return s;if("string"!==t&&r(i=e.toString)&&!o(s=n(i,e)))return s;throw a("Can't convert object to primitive value")}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?n:i)(t)}},function(e,t,i){"use strict";var n=i(13),r=i(79),o=i(40),a=i(41),s=i(139),l=i(155),c=Function,d=n([].concat),u=n([].join),p={},h=function(e,t,i){if(!a(p,t)){for(var n=[],r=0;r<t;r++)n[r]="a["+r+"]";p[t]=c("C,a","return new C("+u(n,",")+")")}return p[t](e,i)};e.exports=l?c.bind:function(e){var t=r(this),i=t.prototype,n=s(arguments,1),a=function(){var i=d(n,s(arguments));return this instanceof a?h(t,i.length,i):t.apply(e,i)};return o(i)&&(a.prototype=i),a}},function(e,t){function i(t,n){return e.exports=i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,i(t,n)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(12);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,i){var n=i(33),r=String,o=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},function(e,t,i){"use strict";var n=i(235),r=i(100);e.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,i){"use strict";var n,r,o,a=i(15),s=i(80),l=i(163),c=i(20),d=i(32),u=i(53),p=i(140),h=i(108),f=i(237),m=i(79),g=i(33),v=i(40),y=i(122),b=i(192),w=i(303).set,S=i(442),C=i(445),k=i(239),x=i(446),_=i(64),E=i(164),T=i(165),P=i(166),I=T.CONSTRUCTOR,A=T.REJECTION_EVENT,R=T.SUBCLASSING,O=_.getterFor("Promise"),N=_.set,D=E&&E.prototype,L=E,M=D,B=c.TypeError,F=c.document,V=c.process,U=P.f,z=U,j=!!(F&&F.createEvent&&c.dispatchEvent),H=function(e){var t;return!(!v(e)||!g(t=e.then))&&t},q=function(e,t){var i,n,r,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&K(t),t.rejection=1),!0===s?i=o:(u&&u.enter(),i=s(o),u&&(u.exit(),r=!0)),i===e.promise?c(B("Promise-chain cycle")):(n=H(i))?d(n,i,l,c):l(i)):c(o)}catch(e){u&&!r&&u.exit(),c(e)}},$=function(e,t){e.notified||(e.notified=!0,S((function(){for(var i,n=e.reactions;i=n.get();)q(i,e);e.notified=!1,t&&!e.rejection&&G(e)})))},W=function(e,t,i){var n,r;j?((n=F.createEvent("Event")).promise=t,n.reason=i,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:i},!A&&(r=c["on"+e])?r(n):"unhandledrejection"===e&&C("Unhandled promise rejection",i)},G=function(e){d(w,c,(function(){var t,i=e.facade,n=e.value;if(Y(e)&&(t=k((function(){l?V.emit("unhandledRejection",n,i):W("unhandledrejection",i,n)})),e.rejection=l||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},K=function(e){d(w,c,(function(){var t=e.facade;l?V.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},J=function(e,t,i){return function(n){e(t,n,i)}},X=function(e,t,i){e.done||(e.done=!0,i&&(e=i),e.value=t,e.state=2,$(e,!0))},Q=function(e,t,i){if(!e.done){e.done=!0,i&&(e=i);try{if(e.facade===t)throw B("Promise can't be resolved itself");var n=H(t);n?S((function(){var i={done:!1};try{d(n,t,J(Q,i,e),J(X,i,e))}catch(t){X(i,t,e)}})):(e.value=t,e.state=1,$(e,!1))}catch(t){X({done:!1},t,e)}}};if(I&&(M=(L=function(e){y(this,M),m(e),d(n,this);var t=O(this);try{e(J(Q,t),J(X,t))}catch(e){X(t,e)}}).prototype,(n=function(e){N(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:void 0})}).prototype=u(M,"then",(function(e,t){var i=O(this),n=U(b(this,L));return i.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?V.domain:void 0,0==i.state?i.reactions.add(n):S((function(){q(n,i)})),n.promise})),r=function(){var e=new n,t=O(e);this.promise=e,this.resolve=J(Q,t),this.reject=J(X,t)},P.f=U=function(e){return e===L||void 0===e?new r(e):z(e)},!s&&g(E)&&D!==Object.prototype)){o=D.then,R||u(D,"then",(function(e,t){var i=this;return new L((function(e,t){d(o,i,e,t)})).then(e,t)}),{unsafe:!0});try{delete D.constructor}catch(e){}p&&p(D,M)}a({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:L}),h(L,"Promise",!1,!0),f("Promise")},function(e,t,i){var n,r,o,a,s,l,c,d,u=i(20),p=i(109),h=i(98).f,f=i(303).set,m=i(304),g=i(443),v=i(444),y=i(163),b=u.MutationObserver||u.WebKitMutationObserver,w=u.document,S=u.process,C=u.Promise,k=h(u,"queueMicrotask"),x=k&&k.value;x||(n=function(){var e,t;for(y&&(e=S.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(e){throw r?a():o=void 0,e}}o=void 0,e&&e.enter()},m||y||v||!b||!w?!g&&C&&C.resolve?((c=C.resolve(void 0)).constructor=C,d=p(c.then,c),a=function(){d(n)}):y?a=function(){S.nextTick(n)}:(f=p(f,u),a=function(){f(n)}):(s=!0,l=w.createTextNode(""),new b(n).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,a()),o=t}},function(e,t,i){var n=i(119),r=i(20);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==r.Pebble},function(e,t,i){var n=i(119);e.exports=/web0s(?!.*chrome)/i.test(n)},function(e,t,i){var n=i(20);e.exports=function(e,t){var i=n.console;i&&i.error&&(1==arguments.length?i.error(e):i.error(e,t))}},function(e,t){var i=function(){this.head=null,this.tail=null};i.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=i},function(e,t,i){var n=i(305),r=i(163);e.exports=!n&&!r&&"object"==typeof window&&"object"==typeof document},function(e,t,i){"use strict";var n=i(15),r=i(32),o=i(79),a=i(166),s=i(239),l=i(193);n({target:"Promise",stat:!0,forced:i(307)},{all:function(e){var t=this,i=a.f(t),n=i.resolve,c=i.reject,d=s((function(){var i=o(t.resolve),a=[],s=0,d=1;l(e,(function(e){var o=s++,l=!1;d++,r(i,t,e).then((function(e){l||(l=!0,a[o]=e,--d||n(a))}),c)})),--d||n(a)}));return d.error&&c(d.value),i.promise}})},function(e,t,i){"use strict";var n=i(15),r=i(80),o=i(165).CONSTRUCTOR,a=i(164),s=i(75),l=i(33),c=i(53),d=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(a)){var u=s("Promise").prototype.catch;d.catch!==u&&c(d,"catch",u,{unsafe:!0})}},function(e,t,i){"use strict";var n=i(15),r=i(32),o=i(79),a=i(166),s=i(239),l=i(193);n({target:"Promise",stat:!0,forced:i(307)},{race:function(e){var t=this,i=a.f(t),n=i.reject,c=s((function(){var a=o(t.resolve);l(e,(function(e){r(a,t,e).then(i.resolve,n)}))}));return c.error&&n(c.value),i.promise}})},function(e,t,i){"use strict";var n=i(15),r=i(32),o=i(166);n({target:"Promise",stat:!0,forced:i(165).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return r(t.reject,void 0,e),t.promise}})},function(e,t,i){"use strict";var n=i(15),r=i(75),o=i(80),a=i(164),s=i(165).CONSTRUCTOR,l=i(453),c=r("Promise"),d=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return l(d&&this===c?a:this,e)}})},function(e,t,i){var n=i(44),r=i(40),o=i(166);e.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var i=o.f(e);return(0,i.resolve)(t),i.promise}},function(e,t,i){var n=i(13),r=i(56),o=Math.floor,a=n("".charAt),s=n("".replace),l=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,i,n,u,p){var h=i+e.length,f=n.length,m=d;return void 0!==u&&(u=r(u),m=c),s(p,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,i);case"'":return l(t,h);case"<":c=u[l(s,1,-1)];break;default:var d=+s;if(0===d)return r;if(d>f){var p=o(d/10);return 0===p?r:p<=f?void 0===n[p-1]?a(s,1):n[p-1]+a(s,1):r}c=n[d-1]}return void 0===c?"":c}))}},function(e,t,i){var n=i(112).default;function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},i=Object.prototype,o=i.hasOwnProperty,a=Object.defineProperty||function(e,t,i){e[t]=i.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function u(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,i){return e[t]=i}}function p(e,t,i,n){var r=t&&t.prototype instanceof m?t:m,o=Object.create(r.prototype),s=new P(n||[]);return a(o,"_invoke",{value:x(e,i,s)}),o}function h(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var f={};function m(){}function g(){}function v(){}var y={};u(y,l,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==i&&o.call(w,l)&&(y=w);var S=v.prototype=m.prototype=Object.create(y);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){var i;a(this,"_invoke",{value:function(r,a){function s(){return new t((function(i,s){!function i(r,a,s,l){var c=h(e[r],e,a);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==n(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(u).then((function(e){d.value=e,s(d)}),(function(e){return i("throw",e,s,l)}))}l(c.arg)}(r,a,i,s)}))}return i=i?i.then(s,s):s()}})}function x(e,t,i){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return A()}for(i.method=r,i.arg=o;;){var a=i.delegate;if(a){var s=_(a,i);if(s){if(s===f)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=h(e,t,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}function _(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(i,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var r=n.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function I(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function t(){for(;++i<e.length;)if(o.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:A}}function A(){return{value:void 0,done:!0}}return g.prototype=v,a(S,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=u(v,d,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,d,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(k.prototype),u(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new k(p(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),u(S,d,"Generator"),u(S,l,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,n){return a.type="throw",a.arg=e,t.next=i,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=o.call(r,"catchLoc"),l=o.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),T(i),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;T(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:I(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";
|
|
140
|
+
*/!function(s){"use strict";o=[i(0),i(767),i(768),i(49)],void 0===(a="function"==typeof(r=function(e){return e.effects={effect:{}},function(){var t,i=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function o(e){var t,i,n,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(i=r.length;i--;)"string"==typeof r[t=r[i]]&&(o[(n=t,n.replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()})))]=r[t]);else for(t in r)"string"==typeof r[t]&&(o[t]=r[t]);return o}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(n.style(e.elem,i,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,n,a,s){var l=e.speed(n,a,s);return this.queue((function(){var n,a=e(this),s=a.attr("class")||"",c=l.children?a.find("*").addBack():a;c=c.map((function(){return{el:e(this),start:o(this)}})),(n=function(){e.each(i,(function(e,i){t[i]&&a[i+"Class"](t[i])}))})(),c=c.map((function(){return this.end=o(this.el[0]),this.diff=function(t,i){var n,o,a={};for(n in i)o=i[n],t[n]!==o&&(r[n]||!e.fx.step[n]&&isNaN(parseFloat(o))||(a[n]=o));return a}(this.start,this.end),this})),a.attr("class",s),c=c.map((function(){var t=this,i=e.Deferred(),n=e.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,n),i.promise()})),e.when.apply(e,c.get()).done((function(){n(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),l.complete.call(a[0])}))}))},e.fn.extend({addClass:(t=e.fn.addClass,function(i,n,r,o){return n?e.effects.animateClass.call(this,{add:i},n,r,o):t.apply(this,arguments)}),removeClass:function(t){return function(i,n,r,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},n,r,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,n,r,o,a){return"boolean"==typeof n||void 0===n?r?e.effects.animateClass.call(this,n?{add:i}:{remove:i},r,o,a):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},n,r,o)}}(e.fn.toggleClass),switchClass:function(t,i,n,r,o){return e.effects.animateClass.call(this,{add:i,remove:t},n,r,o)}})}(),function(){var t;function i(t,i,n,r){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),"function"==typeof i&&(r=i,n=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(r=n,n=i,i={}),"function"==typeof n&&(r=n,n=null),i&&e.extend(t,i),n=n||i.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=r||i.complete,t}function n(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||("string"==typeof t&&!e.effects.effect[t]||("function"==typeof t||"object"==typeof t&&!t.effect))}function r(e,t){var i=t.outerWidth(),n=t.outerHeight(),r=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,i,n,0];return{top:parseFloat(r[1])||0,right:"auto"===r[2]?i:parseFloat(r[2]),bottom:"auto"===r[3]?n:parseFloat(r[3]),left:parseFloat(r[4])||0}}e.expr&&e.expr.pseudos&&e.expr.pseudos.animated&&(e.expr.pseudos.animated=(t=e.expr.pseudos.animated,function(i){return!!e(i).data("ui-effects-animated")||t(i)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var i=0,n=t.length;i<n;i++)null!==t[i]&&e.data("ui-effects-"+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,n=0,r=t.length;n<r;n++)null!==t[n]&&(i=e.data("ui-effects-"+t[n]),e.css(t[n],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},n=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return t.wrap(n),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,n){i[n]=t.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(r),n.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).trigger("focus")),t}}),e.extend(e.effects,{version:"1.13.2",define:function(t,i,n){return n||(n=i,i="effect"),e.effects.effect[t]=n,e.effects.effect[t].mode=i,n},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,r="vertical"!==i?(t||100)/100:1;return{height:e.height()*r,width:e.width()*n,outerHeight:e.outerHeight()*r,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();t>1&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data("ui-effects-style",e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data("ui-effects-style")||"",e.removeData("ui-effects-style")},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(t){var i,n=t.css("position"),r=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data("ui-effects-placeholder",i)),t.css({position:n,left:r.left,top:r.top}),i},removePlaceholder:function(e){var t="ui-effects-placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,i,n,r){return r=r||{},e.each(i,(function(e,i){var o=t.cssUnit(i);o[0]>0&&(r[i]=o[0]*n+o[1])})),r}}),e.fn.extend({effect:function(){var t=i.apply(this,arguments),n=e.effects.effect[t.effect],r=n.mode,o=t.queue,a=o||"fx",s=t.complete,l=t.mode,c=[],d=function(t){var i=e(this),n=e.effects.mode(i,l)||r;i.data("ui-effects-animated",!0),c.push(n),r&&("show"===n||n===r&&"hide"===n)&&i.show(),r&&"none"===n||e.effects.saveStyle(i),"function"==typeof t&&t()};if(e.fx.off||!n)return l?this[l](t.duration,s):this.each((function(){s&&s.call(this)}));function u(i){var o=e(this);function a(){"function"==typeof s&&s.call(o[0]),"function"==typeof i&&i()}t.mode=c.shift(),!1===e.uiBackCompat||r?"none"===t.mode?(o[l](),a()):n.call(o[0],t,(function(){o.removeData("ui-effects-animated"),e.effects.cleanUp(o),"hide"===t.mode&&o.hide(),a()})):(o.is(":hidden")?"hide"===l:"show"===l)?(o[l](),a()):n.call(o[0],t,a)}return!1===o?this.each(d).each(u):this.queue(a,d).queue(a,u)},show:function(e){return function(t){if(n(t))return e.apply(this,arguments);var r=i.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(e.fn.show),hide:function(e){return function(t){if(n(t))return e.apply(this,arguments);var r=i.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(e.fn.hide),toggle:function(e){return function(t){if(n(t)||"boolean"==typeof t)return e.apply(this,arguments);var r=i.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),n=[];return e.each(["em","px","%","pt"],(function(e,t){i.indexOf(t)>0&&(n=[parseFloat(i),t])})),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):r(this.css("clip"),this)},transfer:function(t,i){var n=e(this),r=e(t.to),o="fixed"===r.css("position"),a=e("body"),s=o?a.scrollTop():0,l=o?a.scrollLeft():0,c=r.offset(),d={top:c.top-s,left:c.left-l,height:r.innerHeight(),width:r.innerWidth()},u=n.offset(),p=e("<div class='ui-effects-transfer'></div>");p.appendTo("body").addClass(t.className).css({top:u.top-s,left:u.left-l,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(d,t.duration,t.easing,(function(){p.remove(),"function"==typeof i&&i()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=r(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,i){t[i]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?i(2*e)/2:1-i(-2*e+2)/2}}))}(),e.effects})?r.apply(t,o):r)||(e.exports=a)}()}).call(this,i(0))},function(e,t,i){i(172);var n=i(14),r=n.Service,o=n.apiLoader;o.services.firehose={},n.Firehose=r.defineService("firehose",["2015-08-04"]),Object.defineProperty(o.services.firehose,"2015-08-04",{get:function(){var e=i(546);return e.paginators=i(547).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Firehose},function(e,t,i){i(172);var n=i(14),r=n.Service,o=n.apiLoader;o.services.kinesis={},n.Kinesis=r.defineService("kinesis",["2013-12-02"]),Object.defineProperty(o.services.kinesis,"2013-12-02",{get:function(){var e=i(567);return e.paginators=i(568).pagination,e.waiters=i(569).waiters,e},enumerable:!0,configurable:!0}),e.exports=n.Kinesis},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div id="upgradeDiv"><div class="text-center"><img src="/img/hippo_in_car.png" /></div><div class="text-center upgrade-txt">').f(t.get(["upgradeMessage"],!1),t,"h").w('</div><div class="text-center margin-bottom-2"><a class="button upgrade-btn wiz-primary-btn no-margin">').f(t.getPath(!1,["wizShareI18N","upgrade"]),t,"h").w("</a>").x(t.get(["reviewAllowed"],!1),t,{else:i,block:n},{}).w("</div></div>")}function i(e,t){return e.w('<button class="cancel-btn radius">').f(t.getPath(!1,["wizShareI18N","notNow"]),t,"h").w("</button>")}function n(e,t){return e.w('<span class="or">OR</span><a class="button refer-button wiz-primary-btn no-margin" id="reviewBtn">').f(t.getPath(!1,["wizShareI18N","referAndEarn"]),t,"h").w("</a>")}e.register("templates/wiz/upgrade_popup_template",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/upgrade_popup_template",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div id="beforeSubmit"><form id="contactUsForm" class="pricing-form" onSubmit="return false"><div class="small-12 columns"><label for="right-label" class="hippo-label">').f(t.get(["contactUsYourRequirement"],!1),t,"h").w('</label><textarea rows="4" name="requirements" id="contactUsRequirements"></textarea></div><div class="modal-popup-footer text-center"><button type="submit" id="contactUsSubmit" class="wiz-primary-btn" >').f(t.get(["submit"],!1),t,"h").w('</button></div><center><label for="right-label" class="hippo-label inline-block call-us-at">').x(t.get(["isDemo"],!1),t,{else:i,block:n},{}).w('</label></center><input type="hidden" value="').f(t.get(["action"],!1),t,"h").w('" name="action"><input type="hidden" name="email" id="contactUsEmail" value="').f(t.get(["userEmail"],!1),t,"h").w('"/></form></div><div id="afterSubmit" class="after-submit clear hide"><svg class="svg-icon alert-icon-big"><use xlink:href="/symbol-defs.svg#icon-success-alert"/></svg><label>').f(t.get(["contactUsSuccessMessageOne"],!1),t,"h").w("</label><label>").x(t.get(["isDemo"],!1),t,{else:r,block:o},{}).w('</label><button type="submit" id="contactUsSuccess" class="wiz-primary-btn">').f(t.get(["ok"],!1),t,"h").w("</button></div>")}function i(e,t){return e.f(t.get(["callusAt"],!1),t,"h")}function n(e,t){return e.f(t.get(["callUsAtDemo"],!1),t,"h")}function r(e,t){return e.f(t.get(["callusAt"],!1),t,"h")}function o(e,t){return e.f(t.get(["callUsAtDemo"],!1),t,"h")}e.register("templates/wiz/contact_us_template",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/contact_us_template",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="before-confirm-sent"><div class="text-center line-height-0"><svg class="svg-icon alert-icon-big"><use xlink:href="/symbol-defs.svg#icon-info-big"/></svg></div><div class="text-center upgrade-txt">').f(t.getPath(!1,["wizShareI18N","confirmYourMail"]),t,"h").w('</div><div class="text-center margin-bottom-2"><a href="#" class="button send-confirmtion-btn radius wiz-primary-btn pading-left no-margin">').f(t.getPath(!1,["wizShareI18N","resendConfirmation"]),t,"h").w('</a><button class="cancel-btn radius not-now-btn no-margin">').f(t.getPath(!1,["wizShareI18N","notNow"]),t,"h").w('</button></div></div><div class="after-confirmation-sent hide"><div class="text-center line-height-0"><svg class="svg-icon alert-icon-big"><use xlink:href="/symbol-defs.svg#icon-success-alert"/></svg></div><div class="text-center upgrade-txt">').f(t.getPath(!1,["wizShareI18N","confirmSuccessMsg"]),t,"h").w('</div><div class="text-center margin-bottom-2"><button class="wiz-primary-btn not-now-btn radius no-margin">').f(t.getPath(!1,["wizShareI18N","ok"]),t,"h").w("</button></div></div>")}e.register("templates/wiz/confirm_alert_template",t),t.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/confirm_alert_template",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(0),i(10),i(25),i(572),i(573),i(574)],void 0===(r=function(e,t,i,n){return i.View.extend({template:n,initialize:function(e){this.id=e.id,this.name=e.name,this.placeholder=e.placeholder,this.dateFormat=e.dateFormat,this.altField=e.altField,this.altFormat=e.altFormat,this.onSelectEvent=e.onSelect},render:function(){this.$el.html(this.template({id:this.id,name:this.name,placeholder:this.placeholder})),this.$("input").datepicker({dateFormat:this.dateFormat,altFormat:this.altFormat,altField:this.altField,showAnim:"slideDown",maxDate:new Date,onSelect:this.onSelectEvent})}})}.apply(t,n))||(e.exports=r)},function(e,t,i){(function(){"use strict";i(23),i(78);var e=i(257);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(173),i(66),i(347);var n=e(i(37)),r=e(i(38)),o=e(i(51)),a=e(i(55)),s=e(i(42)),l=e(i(1)),c=e(i(69)),d=e(i(575));function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=(0,s.default)(e);if(t){var r=(0,s.default)(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return(0,a.default)(this,i)}}var p=function(e){console.log(e,"error in file-viewer")},h=function(e){(0,o.default)(i,e);var t=u(i);function i(e){return(0,n.default)(this,i),t.call(this,e)}return(0,r.default)(i,[{key:"componentWillUnmount",value:function(){c.default.unmountComponentAtNode(document.getElementById(this.props.$el))}},{key:"componentDidMount",value:function(){switch(this.getFileType()){case"pdf":case"csv":case"xlsx":case"jpg":case"jpeg":case"gif":case"bmp":case"png":case"docx":document.getElementById(this.props.$el).style.height="".concat(this.props.height,"px")}}},{key:"getFileType",value:function(){return this.props.file.split(/[#?]/)[0].split(".").pop().trim()}},{key:"renderView",value:function(){switch(this.getFileType()){case"pdf":case"csv":case"xlsx":case"jpg":case"jpeg":case"gif":case"bmp":case"png":case"docx":default:return l.default.createElement(d.default,{fileType:this.getFileType(),filePath:this.props.file,onError:p,height:this.props.height})}}},{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,this.renderView())}}]),i}(l.default.Component);t.default=h}).call(window)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.x(t.get(["ef_getting_starter"],!1),t,{block:i},{}).x(t.get(["ef_phone"],!1),t,{block:n},{}).x(t.get(["isFirstVideoCreated"],!1),t,{block:r},{})}function i(e,t){return e.w('<div class="inner-box"><img class="exit-close-btn close-btn" src="/svg/close-newgrey.svg" width="13"><img class="logo" src="/svg/hippo-video-logo.svg" width="140"><h1 class="hp-exit-pop-title">').f(t.get(["leavingAlready"],!1),t,"h").w('</h1><h3 class="hp-exit-pop-subtext">').f(t.get(["missOutGetting"],!1),t,"h").w('</h3><a class="sgs-close-alert hp-exit-pop-btn-text">').f(t.get(["takeMeToProduct"],!1),t,"h").w("</a></div>")}function n(e,t){return e.w('<div class="singup-exitpop-wrapper"><span class="exit-close-btn singup-exitpop-close"></span><h5>').f(t.get(["exitPopTitle"],!1),t,"h").w("</h1><p>").f(t.get(["exitPopDescription"],!1),t,"h").w('</p><img src="/svg/signup-exit-illu.svg" alt="Exit pop illustration" /><a class="wiz-button wiz-primary-btn sgs-close-alert">').f(t.get(["startYourTrialNow"],!1),t,"h").w("</a></div>")}function r(e,t){return e.w('<div class="singup-exitpop-wrapper"><h2>').f(t.get(["videoNotCreatedExitPopupTitle"],!1),t,"h").w("</h2><p>").f(t.get(["videoNotCreatedExitPopupP1"],!1),t,"h").w('</p><img src="/svg/illu-exit.svg" alt="Leaving Already"><div class="hv-exit-footer">\x3c!-- <a class="sgs-close-alert hp-exit-pop-btn-text">').f(t.get(["takeMeToProduct"],!1),t,"h").w('</a> --\x3e<button class="vd-exit-pop-up-cancel-btn hv-btn-negative">').f(t.get(["cancel"],!1),t,"h").w('</button><button class="vd-exit-pop-up-record-btn hv-btn-primary">').f(t.get(["recordAndImport"],!1),t,"h").w("</button></div></div>")}e.register("templates/getting_started/exit_popup",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/getting_started/exit_popup",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w("").x(t.get(["showSupportChat"],!1),t,{block:i},{}).w("")}function i(e,t){return e.x(t.get(["showDriftWidget"],!1),t,{else:n,block:s},{})}function n(e,t){return e.w('<script src="https://wchat.freshchat.com/js/widget.js" async><\/script><script>window.fcSettings = {token: "32e61f7b-f854-41e0-b3c2-ecc2be622f39",host: "https://wchat.freshchat.com",siteId: "HippoVideo",email: "').f(t.get(["email"],!1),t,"h").w('",firstName: "').f(t.get(["first_name"],!1),t,"h").w('",lastName: "').f(t.get(["last_name"],!1),t,"h").w('",phone: "').f(t.get(["phone"],!1),t,"h").w("\",config: {cssNames: { widget: 'custom-freshchat' },headerProperty: {hideChatButton: true}},onInit: function() {window.fcWidget.on('widget:loaded', function() {window.fcWidget.user.setProperties({email: \"").f(t.get(["email"],!1),t,"h").w('",firstName: "').f(t.get(["first_name"],!1),t,"h").w('",lastName: "').f(t.get(["last_name"],!1),t,"h").w('",phone: "').f(t.get(["phone"],!1),t,"h").w('",userType: "').f(t.get(["individual_segment"],!1),t,"h").w('",plan: "').f(t.get(["plan_name"],!1),t,"h").w('",leadOwner: "').f(t.get(["hippo_lead_owner"],!1),t,"h").w('",leadCalendlyLink: "').f(t.get(["hippo_lead_calendly_link"],!1),t,"h").w('",});').x(t.get(["trialExtended"],!1),t,{block:r},{}).w("});}};<\/script><style>#fc_frame[fresh-chat-left] {left: 60px !important;}#fc_frame[fresh-chat-right] {left: auto !important;}#fc_frame{left: auto !important;z-index: 10004 !important;}#fc_frame[fresh-chat-show]{display: block !important;}#fc_frame[fresh-chat-hide]{display: none !important;}#fc_frame{left: 60px !important;bottom: 20px !important;right: auto !important;}</style>").x(t.get(["show_chat_on_left"],!1),t,{block:o},{}).x(t.get(["hide_chat"],!1),t,{block:a},{})}function r(e,t){return e.w('window.fcWidget.user.setProperties({"TrialExtended": "Yes"});')}function o(e,t){return e.w("<style>#fc_frame{left: 60px !important;bottom: 20px !important;}</style>")}function a(e,t){return e.w("<style>#fc_frame{display: none;}</style>")}function s(e,t){return e.w('\x3c!-- Start of Async Drift Code --\x3e<script>"use strict";!function() {var t = window.driftt = window.drift = window.driftt || [];if (!t.init) {if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice."));t.invoked = !0, t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ],t.factory = function(e) {return function() {var n = Array.prototype.slice.call(arguments);return n.unshift(e), t.push(n), t;};}, t.methods.forEach(function(e) {t[e] = t.factory(e);}), t.load = function(t) {var e = 3e5, n = Math.ceil(new Date() / e) * e, o = document.createElement("script");o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + n + "/" + t + ".js";var i = document.getElementsByTagName("script")[0];i.parentNode.insertBefore(o, i);};}}();drift.SNIPPET_VERSION = \'0.3.1\';drift.load(\'7kgk33yz9gcy\');drift.identify("').f(t.get(["id"],!1),t,"h").w('", {email: "').f(t.get(["email"],!1),t,"h").w("\",'Name': \"").f(t.get(["driftName"],!1),t,"h").w("\",'User Type': \"").f(t.get(["individual_segment"],!1),t,"h").w("\",'Plan Name': \"").f(t.get(["full_plan_name"],!1),t,"h").w("\",'Lead Owner': \"").f(t.get(["hippo_lead_owner"],!1),t,"h").w('"})<\/script><style>iframe#drift-widget[drift-chat-right] {left: auto !important;}iframe#drift-widget[drift-chat-left] {left: 70px !important;}#drift-widget-container{z-index: 1000 !important;}#drift-widget-container[drift-chat-show]{display: block !important;}#drift-widget-container[drift-chat-hide]{display: none !important;}</style>').x(t.get(["show_chat_on_left"],!1),t,{block:l},{}).x(t.get(["hide_chat"],!1),t,{block:c},{}).w("\x3c!-- End of Async Drift Code --\x3e")}function l(e,t){return e.w("<style>#drift-widget{left: 70px !important;bottom: 20px !important;}</style>")}function c(e,t){return e.w("<style>#drift-widget-container{display: none;}</style>")}e.register("hippo/templates/SupportChatWidget",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0}(e),function(t,i){var n;return e.render("hippo/templates/SupportChatWidget",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){e.exports=function e(t,i,n){function r(a,s){if(!i[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[a]={exports:{}};t[a][0].call(c.exports,(function(e){return r(t[a][1][e]||e)}),c,c.exports,e,t,i,n)}return i[a].exports}for(var o=!1,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(e,t,i){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},{}],2:[function(e,t,i){var n=e("./utils").getSymbolSize;i.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,i=n(e),r=145===i?26:2*Math.ceil((i-13)/(2*t-2)),o=[i-7],a=1;a<t-1;a++)o[a]=o[a-1]-r;return o.push(6),o.reverse()},i.getPositions=function(e){for(var t=[],n=i.getRowColCoords(e),r=n.length,o=0;o<r;o++)for(var a=0;a<r;a++)0===o&&0===a||0===o&&a===r-1||o===r-1&&0===a||t.push([n[o],n[a]]);return t}},{"./utils":21}],3:[function(e,t,i){function n(e){this.mode=r.ALPHANUMERIC,this.data=e}var r=e("./mode"),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];n.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var i=45*o.indexOf(this.data[t]);i+=o.indexOf(this.data[t+1]),e.put(i,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},t.exports=n},{"./mode":14}],4:[function(e,t,i){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var i=0;i<t;i++)this.putBit(1==(e>>>t-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n},{}],5:[function(e,t,i){function n(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}var r=e("../utils/buffer");n.prototype.set=function(e,t,i,n){var r=e*this.size+t;this.data[r]=i,n&&(this.reservedBit[r]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n},{"../utils/buffer":28}],6:[function(e,t,i){function n(e){this.mode=o.BYTE,this.data=r.from(e)}var r=e("../utils/buffer"),o=e("./mode");n.getBitsLength=function(e){return 8*e},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){for(var t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)},t.exports=n},{"../utils/buffer":28,"./mode":14}],7:[function(e,t,i){var n=e("./error-correction-level"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];i.getBlocksCount=function(e,t){switch(t){case n.L:return r[4*(e-1)+0];case n.M:return r[4*(e-1)+1];case n.Q:return r[4*(e-1)+2];case n.H:return r[4*(e-1)+3];default:return}},i.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return o[4*(e-1)+0];case n.M:return o[4*(e-1)+1];case n.Q:return o[4*(e-1)+2];case n.H:return o[4*(e-1)+3];default:return}}},{"./error-correction-level":8}],8:[function(e,t,i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2},i.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},i.from=function(e,t){if(i.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return t}}},{}],9:[function(e,t,i){var n=e("./utils").getSymbolSize;i.getPositions=function(e){var t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},{"./utils":21}],10:[function(e,t,i){var n=e("./utils"),r=n.getBCHDigit(1335);i.getEncodedBits=function(e,t){for(var i=e.bit<<3|t,o=i<<10;n.getBCHDigit(o)-r>=0;)o^=1335<<n.getBCHDigit(o)-r;return 21522^(i<<10|o)}},{"./utils":21}],11:[function(e,t,i){var n=e("../utils/buffer"),r=n.alloc(512),o=n.alloc(256);!function(){for(var e=1,t=0;t<255;t++)r[t]=e,o[e]=t,256&(e<<=1)&&(e^=285);for(t=255;t<512;t++)r[t]=r[t-255]}(),i.log=function(e){if(e<1)throw new Error("log("+e+")");return o[e]},i.exp=function(e){return r[e]},i.mul=function(e,t){return 0===e||0===t?0:r[o[e]+o[t]]}},{"../utils/buffer":28}],12:[function(e,t,i){function n(e){this.mode=r.KANJI,this.data=e}var r=e("./mode"),o=e("./utils");n.getBitsLength=function(e){return 13*e},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var i=o.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");i-=49472}i=192*(i>>>8&255)+(255&i),e.put(i,13)}},t.exports=n},{"./mode":14,"./utils":21}],13:[function(e,t,i){function n(e,t,n){switch(e){case i.Patterns.PATTERN000:return(t+n)%2==0;case i.Patterns.PATTERN001:return t%2==0;case i.Patterns.PATTERN010:return n%3==0;case i.Patterns.PATTERN011:return(t+n)%3==0;case i.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case i.Patterns.PATTERN101:return t*n%2+t*n%3==0;case i.Patterns.PATTERN110:return(t*n%2+t*n%3)%2==0;case i.Patterns.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r=3,o=3,a=40,s=10;i.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},i.from=function(e){return i.isValid(e)?parseInt(e,10):void 0},i.getPenaltyN1=function(e){for(var t=e.size,i=0,n=0,o=0,a=null,s=null,l=0;l<t;l++){n=o=0,a=s=null;for(var c=0;c<t;c++){var d=e.get(l,c);d===a?n++:(n>=5&&(i+=r+(n-5)),a=d,n=1),(d=e.get(c,l))===s?o++:(o>=5&&(i+=r+(o-5)),s=d,o=1)}n>=5&&(i+=r+(n-5)),o>=5&&(i+=r+(o-5))}return i},i.getPenaltyN2=function(e){for(var t=e.size,i=0,n=0;n<t-1;n++)for(var r=0;r<t-1;r++){var a=e.get(n,r)+e.get(n,r+1)+e.get(n+1,r)+e.get(n+1,r+1);4!==a&&0!==a||i++}return i*o},i.getPenaltyN3=function(e){for(var t=e.size,i=0,n=0,r=0,o=0;o<t;o++){n=r=0;for(var s=0;s<t;s++)n=n<<1&2047|e.get(o,s),s>=10&&(1488===n||93===n)&&i++,r=r<<1&2047|e.get(s,o),s>=10&&(1488===r||93===r)&&i++}return i*a},i.getPenaltyN4=function(e){for(var t=0,i=e.data.length,n=0;n<i;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/i/5)-10)*s},i.applyMask=function(e,t){for(var i=t.size,r=0;r<i;r++)for(var o=0;o<i;o++)t.isReserved(o,r)||t.xor(o,r,n(e,o,r))},i.getBestMask=function(e,t){for(var n=Object.keys(i.Patterns).length,r=0,o=1/0,a=0;a<n;a++){t(a),i.applyMask(a,e);var s=i.getPenaltyN1(e)+i.getPenaltyN2(e)+i.getPenaltyN3(e)+i.getPenaltyN4(e);i.applyMask(a,e),s<o&&(o=s,r=a)}return r}},{}],14:[function(e,t,i){var n=e("./version-check"),r=e("./regex");i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!n.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},i.getBestModeForData=function(e){return r.testNumeric(e)?i.NUMERIC:r.testAlphanumeric(e)?i.ALPHANUMERIC:r.testKanji(e)?i.KANJI:i.BYTE},i.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},i.isValid=function(e){return e&&e.bit&&e.ccBits},i.from=function(e,t){if(i.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return t}}},{"./regex":19,"./version-check":22}],15:[function(e,t,i){function n(e){this.mode=r.NUMERIC,this.data=e.toString()}var r=e("./mode");n.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){var t,i,n;for(t=0;t+3<=this.data.length;t+=3)i=this.data.substr(t,3),n=parseInt(i,10),e.put(n,10);var r=this.data.length-t;r>0&&(i=this.data.substr(t),n=parseInt(i,10),e.put(n,3*r+1))},t.exports=n},{"./mode":14}],16:[function(e,t,i){var n=e("../utils/buffer"),r=e("./galois-field");i.mul=function(e,t){for(var i=n.alloc(e.length+t.length-1),o=0;o<e.length;o++)for(var a=0;a<t.length;a++)i[o+a]^=r.mul(e[o],t[a]);return i},i.mod=function(e,t){for(var i=n.from(e);i.length-t.length>=0;){for(var o=i[0],a=0;a<t.length;a++)i[a]^=r.mul(t[a],o);for(var s=0;s<i.length&&0===i[s];)s++;i=i.slice(s)}return i},i.generateECPolynomial=function(e){for(var t=n.from([1]),o=0;o<e;o++)t=i.mul(t,[1,r.exp(o)]);return t}},{"../utils/buffer":28,"./galois-field":11}],17:[function(e,t,i){function n(e,t){for(var i=e.size,n=f.getPositions(t),r=0;r<n.length;r++)for(var o=n[r][0],a=n[r][1],s=-1;s<=7;s++)if(!(o+s<=-1||i<=o+s))for(var l=-1;l<=7;l++)a+l<=-1||i<=a+l||(s>=0&&s<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===s||6===s)||s>=2&&s<=4&&l>=2&&l<=4?e.set(o+s,a+l,!0,!0):e.set(o+s,a+l,!1,!0))}function r(e,t){for(var i=h.getPositions(t),n=0;n<i.length;n++)for(var r=i[n][0],o=i[n][1],a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2===a||2===a||-2===s||2===s||0===a&&0===s?e.set(r+a,o+s,!0,!0):e.set(r+a,o+s,!1,!0)}function o(e,t,i){var n,r,o=e.size,a=b.getEncodedBits(t,i);for(n=0;n<15;n++)r=1==(a>>n&1),n<6?e.set(n,8,r,!0):n<8?e.set(n+1,8,r,!0):e.set(o-15+n,8,r,!0),n<8?e.set(8,o-n-1,r,!0):n<9?e.set(8,15-n-1+1,r,!0):e.set(8,15-n-1,r,!0);e.set(o-8,8,1,!0)}function a(e,t,i){var n=new u;i.forEach((function(t){n.put(t.mode.bit,4),n.put(t.getLength(),w.getCharCountIndicator(t.mode,e)),t.write(n)}));var r=8*(c.getSymbolTotalCodewords(e)-g.getTotalCodewordsCount(e,t));for(n.getLengthInBits()+4<=r&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);for(var o=(r-n.getLengthInBits())/8,a=0;a<o;a++)n.put(a%2?17:236,8);return function(e,t,i){for(var n=c.getSymbolTotalCodewords(t),r=g.getTotalCodewordsCount(t,i),o=n-r,a=g.getBlocksCount(t,i),s=a-n%a,d=Math.floor(n/a),u=Math.floor(o/a),p=u+1,h=d-u,f=new v(h),m=0,y=new Array(a),b=new Array(a),w=0,S=l.from(e.buffer),C=0;C<a;C++){var k=C<s?u:p;y[C]=S.slice(m,m+k),b[C]=f.encode(y[C]),m+=k,w=Math.max(w,k)}var x,_,E=l.alloc(n),T=0;for(x=0;x<w;x++)for(_=0;_<a;_++)x<y[_].length&&(E[T++]=y[_][x]);for(x=0;x<h;x++)for(_=0;_<a;_++)E[T++]=b[_][x];return E}(n,e,t)}function s(e,t,i,s){var l;if(C(e))l=S.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");var d=t;if(!d){var u=S.rawSplit(e);d=y.getBestVersionForData(u,i)}l=S.fromString(e,d||40)}var h=y.getBestVersionForData(l,i);if(!h)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<h)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+h+".\n")}else t=h;var f=a(t,i,l),g=c.getSymbolSize(t),v=new p(g);return n(v,t),function(e){for(var t=e.size,i=8;i<t-8;i++){var n=i%2==0;e.set(i,6,n,!0),e.set(6,i,n,!0)}}(v),r(v,t),o(v,i,0),t>=7&&function(e,t){for(var i,n,r,o=e.size,a=y.getEncodedBits(t),s=0;s<18;s++)i=Math.floor(s/3),n=s%3+o-8-3,r=1==(a>>s&1),e.set(i,n,r,!0),e.set(n,i,r,!0)}(v,t),function(e,t){for(var i=e.size,n=-1,r=i-1,o=7,a=0,s=i-1;s>0;s-=2)for(6===s&&s--;;){for(var l=0;l<2;l++)if(!e.isReserved(r,s-l)){var c=!1;a<t.length&&(c=1==(t[a]>>>o&1)),e.set(r,s-l,c),-1==--o&&(a++,o=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}}(v,f),isNaN(s)&&(s=m.getBestMask(v,o.bind(null,v,i))),m.applyMask(s,v),o(v,i,s),{modules:v,version:t,errorCorrectionLevel:i,maskPattern:s,segments:l}}var l=e("../utils/buffer"),c=e("./utils"),d=e("./error-correction-level"),u=e("./bit-buffer"),p=e("./bit-matrix"),h=e("./alignment-pattern"),f=e("./finder-pattern"),m=e("./mask-pattern"),g=e("./error-correction-code"),v=e("./reed-solomon-encoder"),y=e("./version"),b=e("./format-info"),w=e("./mode"),S=e("./segments"),C=e("isarray");i.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var i,n,r=d.M;return void 0!==t&&(r=d.from(t.errorCorrectionLevel,d.M),i=y.from(t.version),n=m.from(t.maskPattern),t.toSJISFunc&&c.setToSJISFunction(t.toSJISFunc)),s(e,i,r,n)}},{"../utils/buffer":28,"./alignment-pattern":2,"./bit-buffer":4,"./bit-matrix":5,"./error-correction-code":7,"./error-correction-level":8,"./finder-pattern":9,"./format-info":10,"./mask-pattern":13,"./mode":14,"./reed-solomon-encoder":18,"./segments":20,"./utils":21,"./version":23,isarray:33}],18:[function(e,t,i){function n(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}var r=e("../utils/buffer"),o=e("./polynomial"),a=e("buffer").Buffer;n.prototype.initialize=function(e){this.degree=e,this.genPoly=o.generateECPolynomial(this.degree)},n.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=r.alloc(this.degree),i=a.concat([e,t],e.length+this.degree),n=o.mod(i,this.genPoly),s=this.degree-n.length;if(s>0){var l=r.alloc(this.degree);return n.copy(l,s),l}return n},t.exports=n},{"../utils/buffer":28,"./polynomial":16,buffer:30}],19:[function(e,t,i){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",r="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";i.KANJI=new RegExp(n,"g"),i.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),i.BYTE=new RegExp(r,"g"),i.NUMERIC=new RegExp("[0-9]+","g"),i.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var o=new RegExp("^"+n+"$"),a=new RegExp("^[0-9]+$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i.testKanji=function(e){return o.test(e)},i.testNumeric=function(e){return a.test(e)},i.testAlphanumeric=function(e){return s.test(e)}},{}],20:[function(e,t,i){function n(e){return unescape(encodeURIComponent(e)).length}function r(e,t,i){for(var n,r=[];null!==(n=e.exec(i));)r.push({data:n[0],index:n.index,mode:t,length:n[0].length});return r}function o(e){var t,i,n=r(m.NUMERIC,d.NUMERIC,e),o=r(m.ALPHANUMERIC,d.ALPHANUMERIC,e);return g.isKanjiModeEnabled()?(t=r(m.BYTE,d.BYTE,e),i=r(m.KANJI,d.KANJI,e)):(t=r(m.BYTE_KANJI,d.BYTE,e),i=[]),n.concat(o,t,i).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function a(e,t){switch(t){case d.NUMERIC:return u.getBitsLength(e);case d.ALPHANUMERIC:return p.getBitsLength(e);case d.KANJI:return f.getBitsLength(e);case d.BYTE:return h.getBitsLength(e)}}function s(e){for(var t=[],i=0;i<e.length;i++){var r=e[i];switch(r.mode){case d.NUMERIC:t.push([r,{data:r.data,mode:d.ALPHANUMERIC,length:r.length},{data:r.data,mode:d.BYTE,length:r.length}]);break;case d.ALPHANUMERIC:t.push([r,{data:r.data,mode:d.BYTE,length:r.length}]);break;case d.KANJI:t.push([r,{data:r.data,mode:d.BYTE,length:n(r.data)}]);break;case d.BYTE:t.push([{data:r.data,mode:d.BYTE,length:n(r.data)}])}}return t}function l(e,t){for(var i={},n={start:{}},r=["start"],o=0;o<e.length;o++){for(var s=e[o],l=[],c=0;c<s.length;c++){var u=s[c],p=""+o+c;l.push(p),i[p]={node:u,lastCount:0},n[p]={};for(var h=0;h<r.length;h++){var f=r[h];i[f]&&i[f].node.mode===u.mode?(n[f][p]=a(i[f].lastCount+u.length,u.mode)-a(i[f].lastCount,u.mode),i[f].lastCount+=u.length):(i[f]&&(i[f].lastCount=u.length),n[f][p]=a(u.length,u.mode)+4+d.getCharCountIndicator(u.mode,t))}}r=l}for(h=0;h<r.length;h++)n[r[h]].end=0;return{map:n,table:i}}function c(e,t){var i,n=d.getBestModeForData(e);if((i=d.from(t,n))!==d.BYTE&&i.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+d.toString(i)+".\n Suggested mode is: "+d.toString(n));switch(i!==d.KANJI||g.isKanjiModeEnabled()||(i=d.BYTE),i){case d.NUMERIC:return new u(e);case d.ALPHANUMERIC:return new p(e);case d.KANJI:return new f(e);case d.BYTE:return new h(e)}}var d=e("./mode"),u=e("./numeric-data"),p=e("./alphanumeric-data"),h=e("./byte-data"),f=e("./kanji-data"),m=e("./regex"),g=e("./utils"),v=e("dijkstrajs");i.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(c(t,null)):t.data&&e.push(c(t.data,t.mode)),e}),[])},i.fromString=function(e,t){for(var n=l(s(o(e,g.isKanjiModeEnabled())),t),r=v.find_path(n.map,"start","end"),a=[],c=1;c<r.length-1;c++)a.push(n.table[r[c]].node);return i.fromArray(function(e){return e.reduce((function(e,t){var i=e.length-1>=0?e[e.length-1]:null;return i&&i.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(a))},i.rawSplit=function(e){return i.fromArray(o(e,g.isKanjiModeEnabled()))}},{"./alphanumeric-data":3,"./byte-data":6,"./kanji-data":12,"./mode":14,"./numeric-data":15,"./regex":19,"./utils":21,dijkstrajs:31}],21:[function(e,t,i){var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];i.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},i.getSymbolTotalCodewords=function(e){return r[e]},i.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},i.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},i.isKanjiModeEnabled=function(){return void 0!==n},i.toSJIS=function(e){return n(e)}},{}],22:[function(e,t,i){i.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},{}],23:[function(e,t,i){function n(e,t,n){for(var r=1;r<=40;r++)if(t<=i.getCapacity(r,n,e))return r}function r(e,t){return d.getCharCountIndicator(e,t)+4}function o(e,t){var i=0;return e.forEach((function(e){var n=r(e.mode,t);i+=n+e.getBitsLength()})),i}function a(e,t){for(var n=1;n<=40;n++)if(o(e,n)<=i.getCapacity(n,t,d.MIXED))return n}var s=e("./utils"),l=e("./error-correction-code"),c=e("./error-correction-level"),d=e("./mode"),u=e("./version-check"),p=e("isarray"),h=s.getBCHDigit(7973);i.from=function(e,t){return u.isValid(e)?parseInt(e,10):t},i.getCapacity=function(e,t,i){if(!u.isValid(e))throw new Error("Invalid QR Code version");void 0===i&&(i=d.BYTE);var n=8*(s.getSymbolTotalCodewords(e)-l.getTotalCodewordsCount(e,t));if(i===d.MIXED)return n;var o=n-r(i,e);switch(i){case d.NUMERIC:return Math.floor(o/10*3);case d.ALPHANUMERIC:return Math.floor(o/11*2);case d.KANJI:return Math.floor(o/13);case d.BYTE:default:return Math.floor(o/8)}},i.getBestVersionForData=function(e,t){var i,r=c.from(t,c.M);if(p(e)){if(e.length>1)return a(e,r);if(0===e.length)return 1;i=e[0]}else i=e;return n(i.mode,i.getLength(),r)},i.getEncodedBits=function(e){if(!u.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;s.getBCHDigit(t)-h>=0;)t^=7973<<s.getBCHDigit(t)-h;return e<<12|t}},{"./error-correction-code":7,"./error-correction-level":8,"./mode":14,"./utils":21,"./version-check":22,isarray:33}],24:[function(e,t,i){function n(e,t,i,n,a){var s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(i=t,t=n=void 0):2!==l||t.getContext||(n=i,i=t,t=void 0),new Promise((function(r,a){try{var s=o.create(i,n);r(e(s,t,n))}catch(e){a(e)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=i,i=t,t=n=void 0):3===l&&(t.getContext&&void 0===a?(a=n,n=void 0):(a=n,n=i,i=t,t=void 0));try{var d=o.create(i,n);a(null,e(d,t,n))}catch(e){a(e)}}var r=e("./can-promise"),o=e("./core/qrcode"),a=e("./renderer/canvas"),s=e("./renderer/svg-tag.js");i.create=o.create,i.toCanvas=n.bind(null,a.render),i.toDataURL=n.bind(null,a.renderToDataURL),i.toString=n.bind(null,(function(e,t,i){return s.render(e,i)}))},{"./can-promise":1,"./core/qrcode":17,"./renderer/canvas":25,"./renderer/svg-tag.js":26}],25:[function(e,t,i){var n=e("./utils");i.render=function(e,t,i){var r=i,o=t;void 0!==r||t&&t.getContext||(r=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),r=n.getOptions(r);var a=n.getImageWidth(e.modules.size,r),s=o.getContext("2d"),l=s.createImageData(a,a);return n.qrToImageData(l.data,e,r),function(e,t,i){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=i,t.width=i,t.style.height=i+"px",t.style.width=i+"px"}(s,o,a),s.putImageData(l,0,0),o},i.renderToDataURL=function(e,t,n){var r=n;void 0!==r||t&&t.getContext||(r=t,t=void 0),r||(r={});var o=i.render(e,t,r),a=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(a,s.quality)}},{"./utils":27}],26:[function(e,t,i){function n(e,t){var i=e.a/255,n=t+'="'+e.hex+'"';return i<1?n+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':n}function r(e,t,i){var n=e+t;return void 0!==i&&(n+=" "+i),n}function o(e,t,i){for(var n="",o=0,a=!1,s=0,l=0;l<e.length;l++){var c=Math.floor(l%t),d=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(n+=a?r("M",c+i,.5+d+i):r("m",o,0),o=0,a=!1),c+1<t&&e[l+1]||(n+=r("h",s),s=0)):o++}return n}var a=e("./utils");i.render=function(e,t,i){var r=a.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*r.margin,d=r.color.light.a?"<path "+n(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+n(r.color.dark,"stroke")+' d="'+o(l,s,r.margin)+'"/>',p='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+p+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof i&&i(null,h),h}},{"./utils":27}],27:[function(e,t,i){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var i=parseInt(t.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+t.slice(0,6).join("")}}i.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,i=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:i,scale:i?4:r,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},i.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},i.getImageWidth=function(e,t){var n=i.getScale(e,t);return Math.floor((e+2*t.margin)*n)},i.qrToImageData=function(e,t,n){for(var r=t.modules.size,o=t.modules.data,a=i.getScale(r,n),s=Math.floor((r+2*n.margin)*a),l=n.margin*a,c=[n.color.light,n.color.dark],d=0;d<s;d++)for(var u=0;u<s;u++){var p=4*(d*s+u),h=n.color.light;d>=l&&u>=l&&d<s-l&&u<s-l&&(h=c[o[Math.floor((d-l)/a)*r+Math.floor((u-l)/a)]?1:0]),e[p++]=h.r,e[p++]=h.g,e[p++]=h.b,e[p]=h.a}}},{}],28:[function(e,t,i){"use strict";function n(e,t,i){return n.TYPED_ARRAY_SUPPORT||this instanceof n?"number"==typeof e?a(this,e):function(e,t,i,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?l(e,t,i,n):"string"==typeof t?function(e,t){var i=0|u(t),n=o(e,i),r=n.write(t);return r!==i&&(n=n.slice(0,r)),n}(e,t):c(e,t)}(this,e,t,i):new n(e,t,i)}function r(e){if(e>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return 0|e}function o(e,t){var i;return n.TYPED_ARRAY_SUPPORT?(i=new Uint8Array(t)).__proto__=n.prototype:(null===(i=e)&&(i=new n(t)),i.length=t),i}function a(e,t){var i=o(e,t<0?0:0|r(t));if(!n.TYPED_ARRAY_SUPPORT)for(var a=0;a<t;++a)i[a]=0;return i}function s(e,t){for(var i=t.length<0?0:0|r(t.length),n=o(e,i),a=0;a<i;a+=1)n[a]=255&t[a];return n}function l(e,t,i,r){if(i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");var o;return o=void 0===i&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,i):new Uint8Array(t,i,r),n.TYPED_ARRAY_SUPPORT?o.__proto__=n.prototype:o=s(e,o),o}function c(e,t){if(n.isBuffer(t)){var i=0|r(t.length),a=o(e,i);return 0===a.length||t.copy(a,0,0,i),a}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?o(e,0):s(e,t);if("Buffer"===t.type&&Array.isArray(t.data))return s(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(e,t){t=t||1/0;for(var i,n=e.length,r=null,o=[],a=0;a<n;++a){if((i=e.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function u(e){return n.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:d(e).length)}var p=e("isarray");n.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}();var h=n.TYPED_ARRAY_SUPPORT?2147483647:1073741823;n.TYPED_ARRAY_SUPPORT&&(n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),n.prototype.write=function(e,t,i){void 0===t||void 0===i&&"string"==typeof t?(i=this.length,t=0):isFinite(t)&&(t|=0,isFinite(i)?i|=0:i=void 0);var n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,i,n){return function(e,t,i,n){for(var r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}(d(t,e.length-i),e,i,n)}(this,e,t,i)},n.prototype.slice=function(e,t){var i,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),n.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=n.prototype;else{var o=t-e;i=new n(o,void 0);for(var a=0;a<o;++a)i[a]=this[a+e]}return i},n.prototype.copy=function(e,t,i,r){if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<i&&(r=i),r===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-i&&(r=e.length-t+i);var o,a=r-i;if(this===e&&i<t&&t<r)for(o=a-1;o>=0;--o)e[o+t]=this[o+i];else if(a<1e3||!n.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+t]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+a),t);return a},n.prototype.fill=function(e,t,i){if("string"==typeof e){if("string"==typeof t?(t=0,i=this.length):"string"==typeof i&&(i=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var o;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o<i;++o)this[o]=e;else{var a=n.isBuffer(e)?e:new n(e),s=a.length;for(o=0;o<i-t;++o)this[o+t]=a[o%s]}return this},n.concat=function(e,t){if(!p(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o(null,0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var r=a(null,t),s=0;for(i=0;i<e.length;++i){var l=e[i];if(!n.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(r,s),s+=l.length}return r},n.byteLength=u,n.prototype._isBuffer=!0,n.isBuffer=function(e){return!(null==e||!e._isBuffer)},t.exports.alloc=function(e){var t=new n(e);return t.fill(0),t},t.exports.from=function(e){return new n(e)}},{isarray:33}],29:[function(e,t,i){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function r(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function o(e,t,i){for(var n,o=[],a=t;a<i;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r(n));return o.join("")}i.byteLength=function(e){var t=n(e),i=t[0],r=t[1];return 3*(i+r)/4-r},i.toByteArray=function(e){var t,i,r=n(e),o=r[0],a=r[1],c=new l(function(e,t,i){return 3*(t+i)/4-i}(0,o,a)),d=0,u=a>0?o-4:o;for(i=0;i<u;i+=4)t=s[e.charCodeAt(i)]<<18|s[e.charCodeAt(i+1)]<<12|s[e.charCodeAt(i+2)]<<6|s[e.charCodeAt(i+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===a&&(t=s[e.charCodeAt(i)]<<2|s[e.charCodeAt(i+1)]>>4,c[d++]=255&t),1===a&&(t=s[e.charCodeAt(i)]<<10|s[e.charCodeAt(i+1)]<<4|s[e.charCodeAt(i+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c},i.fromByteArray=function(e){for(var t,i=e.length,n=i%3,r=[],s=0,l=i-n;s<l;s+=16383)r.push(o(e,s,s+16383>l?l:s+16383));return 1===n?(t=e[i-1],r.push(a[t>>2]+a[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],r.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"=")),r.join("")};for(var a=[],s=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,u=c.length;d<u;++d)a[d]=c[d],s[c.charCodeAt(d)]=d;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],30:[function(e,t,i){"use strict";function n(e){if(e>j)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,r.prototype),t}function r(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return s(e)}return o(e,t,i)}function o(e,t,i){if("string"==typeof e)return l(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer))return function(e,t,i){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,t):new Uint8Array(e,t,i),Object.setPrototypeOf(n,r.prototype),n}(e,t,i);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return r.from(n,t,i);var o=d(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return r.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function s(e){return a(e),n(e<0?0:0|u(e))}function l(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!r.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var i=0|p(e,t),o=n(i),a=o.write(e,t);return a!==i&&(o=o.slice(0,a)),o}function c(e){for(var t=e.length<0?0:0|u(e.length),i=n(t),r=0;r<t;r+=1)i[r]=255&e[r];return i}function d(e){if(r.isBuffer(e)){var t=0|u(e.length),i=n(t);return 0===i.length||e.copy(i,0,0,t),i}return void 0!==e.length?"number"!=typeof e.length||F(e.length)?n(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}function u(e){if(e>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return 0|e}function p(e,t){if(r.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return L(e).length;default:if(o)return n?-1:D(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,i);case"utf8":case"utf-8":return x(this,t,i);case"ascii":return _(this,t,i);case"latin1":case"binary":return E(this,t,i);case"base64":return k(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function f(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function m(e,t,i,n,o){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),F(i=+i)&&(i=o?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(o)return-1;i=e.length-1}else if(i<0){if(!o)return-1;i=0}if("string"==typeof t&&(t=r.from(t,n)),r.isBuffer(t))return 0===t.length?-1:g(e,t,i,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):g(e,[t],i,n,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,i,n,r){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var a,s=1,l=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,l/=2,c/=2,i/=2}if(r){var d=-1;for(a=i;a<l;a++)if(o(e,a)===o(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===c)return d*s}else-1!==d&&(a-=a-d),d=-1}else for(i+c>l&&(i=l-c),a=i;a>=0;a--){for(var u=!0,p=0;p<c;p++)if(o(e,a+p)!==o(t,p)){u=!1;break}if(u)return a}return-1}function v(e,t,i,n){i=Number(i)||0;var r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(F(s))return a;e[i+a]=s}return a}function y(e,t,i,n){return M(D(t,e.length-i),e,i,n)}function b(e,t,i,n){return M(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function w(e,t,i,n){return b(e,t,i,n)}function S(e,t,i,n){return M(L(t),e,i,n)}function C(e,t,i,n){return M(function(e,t){for(var i,n,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)i=e.charCodeAt(a),n=i>>8,r=i%256,o.push(r),o.push(n);return o}(t,e.length-i),e,i,n)}function k(e,t,i){return 0===t&&i===e.length?V.fromByteArray(e):V.fromByteArray(e.slice(t,i))}function x(e,t,i){i=Math.min(e.length,i);for(var n=[],r=t;r<i;){var o,a,s,l,c=e[r],d=null,u=c>239?4:c>223?3:c>191?2:1;if(r+u<=i)switch(u){case 1:c<128&&(d=c);break;case 2:128==(192&(o=e[r+1]))&&(l=(31&c)<<6|63&o)>127&&(d=l);break;case 3:o=e[r+1],a=e[r+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(d=l)}null===d?(d=65533,u=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),r+=u}return function(e){var t=e.length;if(t<=H)return String.fromCharCode.apply(String,e);for(var i="",n=0;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=H));return i}(n)}function _(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(127&e[r]);return n}function E(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(e[r]);return n}function T(e,t,i){var n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=t;o<i;++o)r+=$[e[o]];return r}function P(e,t,i){for(var n=e.slice(t,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function I(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,i,n,o,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function R(e,t,i,n,r,o){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function O(e,t,i,n,r){return t=+t,i>>>=0,r||R(e,0,i,4),U.write(e,t,i,n,23,4),i+4}function N(e,t,i,n,r){return t=+t,i>>>=0,r||R(e,0,i,8),U.write(e,t,i,n,52,8),i+8}function D(e,t){t=t||1/0;for(var i,n=e.length,r=null,o=[],a=0;a<n;++a){if((i=e.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function L(e){return V.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,i,n){for(var r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function F(e){return e!=e}var V=e("base64-js"),U=e("ieee754"),z="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;i.Buffer=r,i.SlowBuffer=function(e){return+e!=e&&(e=0),r.alloc(+e)},i.INSPECT_MAX_BYTES=50;var j=2147483647;i.kMaxLength=j,r.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),r.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=function(e,t,i){return o(e,t,i)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array),r.alloc=function(e,t,i){return function(e,t,i){return a(e),e<=0?n(e):void 0!==t?"string"==typeof i?n(e).fill(t,i):n(e).fill(t):n(e)}(e,t,i)},r.allocUnsafe=function(e){return s(e)},r.allocUnsafeSlow=function(e){return s(e)},r.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==r.prototype},r.compare=function(e,t){if(B(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var i=e.length,n=t.length,o=0,a=Math.min(i,n);o<a;++o)if(e[o]!==t[o]){i=e[o],n=t[o];break}return i<n?-1:n<i?1:0},r.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return r.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=r.allocUnsafe(t),o=0;for(i=0;i<e.length;++i){var a=e[i];if(B(a,Uint8Array)&&(a=r.from(a)),!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},r.byteLength=p,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},r.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?x(this,0,e):h.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",t=i.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},z&&(r.prototype[z]=r.prototype.inspect),r.prototype.compare=function(e,t,i,n,o){if(B(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||i>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(n>>>=0),s=(i>>>=0)-(t>>>=0),l=Math.min(a,s),c=this.slice(n,o),d=e.slice(t,i),u=0;u<l;++u)if(c[u]!==d[u]){a=c[u],s=d[u];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},r.prototype.indexOf=function(e,t,i){return m(this,e,t,i,!0)},r.prototype.lastIndexOf=function(e,t,i){return m(this,e,t,i,!1)},r.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,i);case"utf8":case"utf-8":return y(this,e,t,i);case"ascii":return b(this,e,t,i);case"latin1":case"binary":return w(this,e,t,i);case"base64":return S(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var H=4096;r.prototype.slice=function(e,t){var i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,r.prototype),n},r.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||I(e,t,this.length);for(var n=this[e],r=1,o=0;++o<t&&(r*=256);)n+=this[e+o]*r;return n},r.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||I(e,t,this.length);for(var n=this[e+--t],r=1;t>0&&(r*=256);)n+=this[e+--t]*r;return n},r.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||I(e,t,this.length);for(var n=this[e],r=1,o=0;++o<t&&(r*=256);)n+=this[e+o]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*t)),n},r.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||I(e,t,this.length);for(var n=t,r=1,o=this[e+--n];n>0&&(r*=256);)o+=this[e+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},r.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),U.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),U.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),U.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),U.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,i,n){e=+e,t>>>=0,i>>>=0,n||A(this,e,t,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[t]=255&e;++o<i&&(r*=256);)this[t+o]=e/r&255;return t+i},r.prototype.writeUIntBE=function(e,t,i,n){e=+e,t>>>=0,i>>>=0,n||A(this,e,t,i,Math.pow(2,8*i)-1,0);var r=i-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+i},r.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,1,255,0),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},r.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t>>>=0,!n){var r=Math.pow(2,8*i-1);A(this,e,t,i,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o<i&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},r.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t>>>=0,!n){var r=Math.pow(2,8*i-1);A(this,e,t,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},r.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},r.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},r.prototype.writeFloatLE=function(e,t,i){return O(this,e,t,!0,i)},r.prototype.writeFloatBE=function(e,t,i){return O(this,e,t,!1,i)},r.prototype.writeDoubleLE=function(e,t,i){return N(this,e,t,!0,i)},r.prototype.writeDoubleBE=function(e,t,i){return N(this,e,t,!1,i)},r.prototype.copy=function(e,t,i,n){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var o=n-i;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,i,n);else if(this===e&&i<t&&t<n)for(var a=o-1;a>=0;--a)e[a+t]=this[a+i];else Uint8Array.prototype.set.call(e,this.subarray(i,n),t);return o},r.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var a;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(a=t;a<i;++a)this[a]=e;else{var s=r.isBuffer(e)?e:r.from(e,n),l=s.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<i-t;++a)this[a+t]=s[a%l]}return this};var q=/[^+\/0-9A-Za-z-_]/g,$=function(){for(var e=new Array(256),t=0;t<16;++t)for(var i=16*t,n=0;n<16;++n)e[i+n]="0123456789abcdef"[t]+"0123456789abcdef"[n];return e}()},{"base64-js":29,ieee754:32}],31:[function(e,t,i){"use strict";var n={single_source_shortest_paths:function(e,t,i){var r={},o={};o[t]=0;var a,s,l,c,d,u,p,h=n.PriorityQueue.make();for(h.push(t,0);!h.empty();)for(l in s=(a=h.pop()).value,c=a.cost,d=e[s]||{})d.hasOwnProperty(l)&&(u=c+d[l],p=o[l],(void 0===o[l]||p>u)&&(o[l]=u,h.push(l,u),r[l]=s));if(void 0!==i&&void 0===o[i]){var f=["Could not find a path from ",t," to ",i,"."].join("");throw new Error(f)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var i=[],n=t;n;)i.push(n),e[n],n=e[n];return i.reverse(),i},find_path:function(e,t,i){var r=n.single_source_shortest_paths(e,t,i);return n.extract_shortest_path_from_predecessor_list(r,i)},PriorityQueue:{make:function(e){var t,i=n.PriorityQueue,r={};for(t in e=e||{},i)i.hasOwnProperty(t)&&(r[t]=i[t]);return r.queue=[],r.sorter=e.sorter||i.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var i={value:e,cost:t};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};void 0!==t&&(t.exports=n)},{}],32:[function(e,t,i){i.read=function(e,t,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,c=l>>1,d=-7,u=i?r-1:0,p=i?-1:1,h=e[t+u];for(u+=p,o=h&(1<<-d)-1,h>>=-d,d+=s;d>0;o=256*o+e[t+u],u+=p,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=n;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},i.write=function(e,t,i,n,r,o){var a,s,l,c=8*o-r-1,d=(1<<c)-1,u=d>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+u>=1?p/l:p*Math.pow(2,1-u))*l>=2&&(a++,l/=2),a+u>=d?(s=0,a=d):a+u>=1?(s=(t*l-1)*Math.pow(2,r),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,r),a=0));r>=8;e[i+h]=255&s,h+=f,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[i+h]=255&a,h+=f,a/=256,c-=8);e[i+h-f]|=128*m}},{}],33:[function(e,t,i){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}]},{},[24])(24)},function(e,t){e.exports=function(e,t,i,n){var r=i?i.call(n,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var d=e[c],u=t[c];if(!1===(r=i?i.call(n,d,u,c):void 0)||void 0===r&&d!==u)return!1}return!0}},function(e,t,i){"use strict";t.a=function(e){function t(e,t,n){var r=t.trim().split(f);t=r;var o=r.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=i(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=i(e[c]+" ",r[s],n).trim()}return t}function i(e,t,i){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*i&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,i,o){var a=e+";",s=2*t+3*i+4*o;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===I||2===I&&r(l,1)?"-webkit-"+l+l:l}if(0===I||2===I&&!r(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(_,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(u,":-webkit-")+a.replace(u,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(b,"tb");break;case 232:l=a.replace(b,"tb-rl");break;case 220:l=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,i,o).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===i+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function r(e,t){var i=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?i:10);return i=e.substring(i+1,e.length-1),N(2!==t?n:n.replace(k,"$1"),i,t)}function o(e,t){var i=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return i!==t+";"?i.replace(S," or ($1)").substring(4):"("+t+")"}function a(e,t,i,n,r,o,a,s,c,d){for(var u,p=0,h=t;p<O;++p)switch(u=R[p].call(l,e,h,i,n,r,o,a,s,c,d)){case void 0:case!1:case!0:case null:break;default:h=u}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?I=1:(I=2,N=e):I=0),s}function l(e,i){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<O){var l=a(-1,i,s,s,T,E,0,0,0,0);void 0!==l&&"string"==typeof l&&(i=l)}var u=function e(i,s,l,u,p){for(var h,f,m,b,S,C=0,k=0,x=0,_=0,R=0,N=0,L=m=h=0,M=0,B=0,F=0,V=0,U=l.length,z=U-1,j="",H="",q="",$="";M<U;){if(f=l.charCodeAt(M),M===z&&0!==k+_+x+C&&(0!==k&&(f=47===k?10:47),_=x=C=0,U++,z++),0===k+_+x+C){if(M===z&&(0<B&&(j=j.replace(d,"")),0<j.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:j+=l.charAt(M)}f=59}switch(f){case 123:for(h=(j=j.trim()).charCodeAt(0),m=1,V=++M;M<U;){switch(f=l.charCodeAt(M)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(M+1)){case 42:case 47:e:{for(L=M+1;L<z;++L)switch(l.charCodeAt(L)){case 47:if(42===f&&42===l.charCodeAt(L-1)&&M+2!==L){M=L+1;break e}break;case 10:if(47===f){M=L+1;break e}}M=L}}break;case 91:f++;case 40:f++;case 34:case 39:for(;M++<z&&l.charCodeAt(M)!==f;);}if(0===m)break;M++}switch(m=l.substring(V,M),0===h&&(h=(j=j.replace(c,"").trim()).charCodeAt(0)),h){case 64:switch(0<B&&(j=j.replace(d,"")),f=j.charCodeAt(1)){case 100:case 109:case 115:case 45:B=s;break;default:B=A}if(V=(m=e(s,B,m,f,p+1)).length,0<O&&(S=a(3,m,B=t(A,j,F),s,T,E,V,f,p,u),j=B.join(""),void 0!==S&&0===(V=(m=S.trim()).length)&&(f=0,m="")),0<V)switch(f){case 115:j=j.replace(w,o);case 100:case 109:case 45:m=j+"{"+m+"}";break;case 107:m=(j=j.replace(g,"$1 $2"))+"{"+m+"}",m=1===I||2===I&&r("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=j+m,112===u&&(H+=m,m="")}else m="";break;default:m=e(s,t(s,j,F),m,u,p+1)}q+=m,m=F=B=L=h=0,j="",f=l.charCodeAt(++M);break;case 125:case 59:if(1<(V=(j=(0<B?j.replace(d,""):j).trim()).length))switch(0===L&&(h=j.charCodeAt(0),45===h||96<h&&123>h)&&(V=(j=j.replace(" ",":")).length),0<O&&void 0!==(S=a(1,j,s,i,T,E,H.length,u,p,u))&&0===(V=(j=S.trim()).length)&&(j="\0\0"),h=j.charCodeAt(0),f=j.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){$+=j+l.charAt(M);break}default:58!==j.charCodeAt(V-1)&&(H+=n(j,h,f,j.charCodeAt(2)))}F=B=L=h=0,j="",f=l.charCodeAt(++M)}}switch(f){case 13:case 10:47===k?k=0:0===1+h&&107!==u&&0<j.length&&(B=1,j+="\0"),0<O*D&&a(0,j,s,i,T,E,H.length,u,p,u),E=1,T++;break;case 59:case 125:if(0===k+_+x+C){E++;break}default:switch(E++,b=l.charAt(M),f){case 9:case 32:if(0===_+C+k)switch(R){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===_+k+C&&(B=F=1,b="\f"+b);break;case 108:if(0===_+k+C+P&&0<L)switch(M-L){case 2:112===R&&58===l.charCodeAt(M-3)&&(P=R);case 8:111===N&&(P=N)}break;case 58:0===_+k+C&&(L=M);break;case 44:0===k+x+_+C&&(B=1,b+="\r");break;case 34:case 39:0===k&&(_=_===f?0:0===_?f:_);break;case 91:0===_+k+x&&C++;break;case 93:0===_+k+x&&C--;break;case 41:0===_+k+C&&x--;break;case 40:if(0===_+k+C){if(0===h)switch(2*R+3*N){case 533:break;default:h=1}x++}break;case 64:0===k+x+_+C+L+m&&(m=1);break;case 42:case 47:if(!(0<_+C+x))switch(k){case 0:switch(2*f+3*l.charCodeAt(M+1)){case 235:k=47;break;case 220:V=M,k=42}break;case 42:47===f&&42===R&&V+2!==M&&(33===l.charCodeAt(V+2)&&(H+=l.substring(V,M+1)),b="",k=0)}}0===k&&(j+=b)}N=R,R=f,M++}if(0<(V=H.length)){if(B=s,0<O&&(void 0!==(S=a(2,H,B,i,T,E,V,u,p,u))&&0===(H=S).length))return $+H+q;if(H=B.join(",")+"{"+H+"}",0!=I*P){switch(2!==I||r(H,2)||(P=0),P){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}P=0}}return $+H+q}(A,s,i,0,0);return 0<O&&(void 0!==(l=a(-2,u,s,s,T,E,u.length,0,0,0))&&(u=l)),"",P=0,E=T=1,u}var c=/^\0+/g,d=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,E=1,T=1,P=0,I=1,A=[],R=[],O=0,N=null,D=0;return l.use=function e(t){switch(t){case void 0:case null:O=R.length=0;break;default:if("function"==typeof t)R[O++]=t;else if("object"==typeof t)for(var i=0,n=t.length;i<n;++i)e(t[i]);else D=0|!!t}return e},l.set=s,void 0!==e&&s(e),l}},function(e,t,i){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e){e.exports=JSON.parse('{"a":"/api/v1/prompter"}')},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="small-12 columns large-centered video-prompter-container"><ul class="tabs vpr-tab" data-tab id="scriptTypesId"><li class="tab-title active" id="allVideoScriptsTitle"><a href="#allVideoScripts">').f(t.getPath(!1,["videoPrompter","allScripts"]),t,"h").w('</a></li><li class="tab-title" id="myVideoScriptsTitle"><a href="#myVideoScripts">').f(t.getPath(!1,["videoPrompter","myScripts"]),t,"h").w('</a></li><li class="tab-title" id="sharedScriptsTitle"><a href="#sharedScripts">').f(t.getPath(!1,["videoPrompter","shared"]),t,"h").w('</a></li><a id="refreshPrompterPages" class="refresh"><img src="/svg/refresh.svg"></a>').x(t.get(["can_add_new_scripts"],!1),t,{block:i},{}).w('</ul><div class="tabs-content sf-tab-content" id="scriptListId"><div class="content active" id="allVideoScripts">').h("eq",t,{else:n,block:o},{key:t.getPath(!1,["all_scripts","length"]),value:0},"h").w('</div><div class="content" id="myVideoScripts">').h("eq",t,{else:s,block:c},{key:t.getPath(!1,["my_scripts","length"]),value:0},"h").w('</div><div class="content" id="sharedScripts">').h("eq",t,{else:u,block:h},{key:t.getPath(!1,["shared_scripts","length"]),value:0},"h").w('</div></div><div id="testelement"></div><div class="display-video-prompt hide" id="promptSettingsContainer"><div class="large-12 columns prompt-settings" id="promptPropertiesId"><div class="medium-3 columns font-size text-left right-bar" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><h6>').f(t.getPath(!1,["videoPrompter","textSizeChange"]),t,"h").w('</h6><label id="textSizeDecrease" class="minus').x(t.get(["inactive_minus"],!1),t,{block:f},{}).w('"><img src="/svg/minus-ico-white.svg" width="10"></label><label id="textSizeIncrease" class="plus').x(t.get(["inactive_plus"],!1),t,{block:m},{}).w('"><img src="/svg/plus-ico-white.svg" width="10"></label></div><div class="columns medium-3 right-bar linespace-container" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><h6>').f(t.getPath(!1,["videoPrompter","lineSpaceChange"]),t,"h").w('</h6><label id="lineSpaceDecrease" class="minus').x(t.get(["inactive_minus_linespace"],!1),t,{block:g},{}).w('"><img src="/svg/minus-ico-white.svg" width="10"></label><label id="lineSpaceIncrease" class="plus').x(t.get(["inactive_plus_linespace"],!1),t,{block:v},{}).w('"><img src="/svg/plus-ico-white.svg" width="10"></label></div><div class="medium-4 columns slider right-bar"><div class="small-5 columns"><h6>').f(t.getPath(!1,["videoPrompter","speedLabel"]),t,"h").w('</h6></div><div class="small-1 columns text-center speed-minus-container ').x(t.get(["inactive_minus_speed"],!1),t,{block:y},{}).w('"><img id="speedDecreaseId" class="minus" src="/svg/minus-ico-white.svg" width="10"></div><div class="small-4 columns text-center speed-slider-container"><span id="speedSliderId" data-min="1" data-max="10" data-value="5" ></span></div><div class="small-1 columns text-center speed-plus-container left ').x(t.get(["inactive_plus_speed"],!1),t,{block:b},{}).w('"><img id="speedIncreaseId" class="plus" src="/svg/plus-ico-white.svg" width="10"></div></div><div class="medium-2 columns"><a id="changeScriptId" class="change-script">').f(t.getPath(!1,["videoPrompter","changeScript"]),t,"h").w('</a></div></div><div class="large-12 columns telepromterColumnContainer" id="telepromterColumnContainer"><div id="teleprompterId" contentEditable="true" class="small-6 small-offset-3 columns video-teleprompter"></div><div id="teleprompterSiblingDiv"></div></div></div></div>')}function i(e,t){return e.w('<a id="addNewScriptFromPrompt" class="hp-border-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function n(e,t){return e.s(t.get(["all_scripts"],!1),t,{block:r},{})}function r(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function o(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","allScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:a},{}).w("</div>")}function a(e,t){return e.w('<a id="addNewScriptFromAllScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function s(e,t){return e.s(t.get(["my_scripts"],!1),t,{block:l},{})}function l(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function c(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","myScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:d},{}).w("</div>")}function d(e,t){return e.w('<a id="addNewScriptFromMyScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function u(e,t){return e.s(t.get(["shared_scripts"],!1),t,{block:p},{})}function p(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function h(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","sharedEmptyStateText"]),t,"h").w("</h4></div>")}function f(e,t){return e.w(" in-active")}function m(e,t){return e.w(" in-active")}function g(e,t){return e.w(" in-active")}function v(e,t){return e.w(" in-active")}function y(e,t){return e.w(" in-active")}function b(e,t){return e.w(" in-active")}e.register("templates/wiz/video_prompter",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/video_prompter",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="video-prompter-container"><ul class="tabs vpr-tab" data-tab id="scriptTypesId"><li class="tab-title active" id="allVideoScriptsTitle"><a href="#allVideoScripts">').f(t.getPath(!1,["videoPrompter","allScripts"]),t,"h").w('</a></li><li class="tab-title" id="myVideoScriptsTitle"><a href="#myVideoScripts">').f(t.getPath(!1,["videoPrompter","myScripts"]),t,"h").w('</a></li><li class="tab-title" id="sharedScriptsTitle"><a href="#sharedScripts">').f(t.getPath(!1,["videoPrompter","shared"]),t,"h").w('</a></li><a id="refreshPrompterPages" class="refresh"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/refresh.svg"></a>').x(t.get(["can_add_new_scripts"],!1),t,{block:i},{}).w('</ul><div class="tabs-content sf-tab-content" id="scriptListId"><div class="content active" id="allVideoScripts">').h("eq",t,{else:n,block:o},{key:t.getPath(!1,["all_scripts","length"]),value:0},"h").w('</div><div class="content" id="myVideoScripts">').h("eq",t,{else:s,block:c},{key:t.getPath(!1,["my_scripts","length"]),value:0},"h").w('</div><div class="content" id="sharedScripts">').h("eq",t,{else:u,block:h},{key:t.getPath(!1,["shared_scripts","length"]),value:0},"h").w('</div></div><div id="testelement"></div><div class="display-video-prompt hide" id="promptSettingsContainer"><div class="prompt-settings" id="promptPropertiesId"><div class="font-size text-left right-bar col-grid-3" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><div><h6>').f(t.getPath(!1,["videoPrompter","textSizeChange"]),t,"h").w('</h6></div><label id="textSizeDecrease" class="minus').x(t.get(["inactive_minus"],!1),t,{block:f},{}).w('"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/minus-ico-white.svg" width="10"></label><label id="textSizeIncrease" class="plus').x(t.get(["inactive_plus"],!1),t,{block:m},{}).w('"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-white.svg" width="10"></label></div><div class="right-bar linespace-container col-grid-3" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><div><h6>').f(t.getPath(!1,["videoPrompter","lineSpaceChange"]),t,"h").w('</h6></div><label id="lineSpaceDecrease" class="minus').x(t.get(["inactive_minus_linespace"],!1),t,{block:g},{}).w('"><img src="/svg/minus-ico-white.svg" width="10"></label><label id="lineSpaceIncrease" class="plus').x(t.get(["inactive_plus_linespace"],!1),t,{block:v},{}).w('"><img src="/svg/plus-ico-white.svg" width="10"></label></div><div class="slider right-bar"><div><h6>').f(t.getPath(!1,["videoPrompter","speedLabel"]),t,"h").w('</h6></div><div class="speed-minus-container"><img id="speedDecreaseId" class="minus" src="').f(t.get(["origin"],!1),t,"h").w('/svg/minus-ico-white.svg" width="10"></div><div class="speed-slider-container"><span id="speedSliderId" data-min="1" data-max="10" data-value="1" ></span></div><div class="speed-plus-container left"><img id="speedIncreaseId" class="plus" src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-white.svg" width="10"></div></div><div class=""><a id="changeScriptId" class="change-script">').f(t.getPath(!1,["videoPrompter","changeScript"]),t,"h").w('</a></div></div><div class="telepromterColumnContainer" id="telepromterColumnContainer"><div id="teleprompterId" contentEditable="true" class="video-teleprompter"></div><div id="teleprompterSiblingDiv"></div></div></div></div>')}function i(e,t){return e.w('<a id="addNewScriptFromPrompt" class="hp-border-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function n(e,t){return e.s(t.get(["all_scripts"],!1),t,{block:r},{})}function r(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function o(e,t){return e.w('<div class="vpr-empty-state"><img class="empty-state-img" src="').f(t.get(["origin"],!1),t,"h").w('/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","allScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:a},{}).w("</div>")}function a(e,t){return e.w('<a id="addNewScriptFromAllScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function s(e,t){return e.s(t.get(["my_scripts"],!1),t,{block:l},{})}function l(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function c(e,t){return e.w('<div class="vpr-empty-state"><img class="empty-state-img" src="').f(t.get(["origin"],!1),t,"h").w('/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","myScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:d},{}).w("</div>")}function d(e,t){return e.w('<a id="addNewScriptFromMyScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function u(e,t){return e.s(t.get(["shared_scripts"],!1),t,{block:p},{})}function p(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function h(e,t){return e.w('<div class="vpr-empty-state"><img class="empty-state-img" src="').f(t.get(["origin"],!1),t,"h").w('/svg/teleprompter.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","sharedEmptyStateText"]),t,"h").w("</h4></div>")}function f(e,t){return e.w(" in-active")}function m(e,t){return e.w(" in-active")}function g(e,t){return e.w(" in-active")}function v(e,t){return e.w(" in-active")}e.register("templates/wiz/sdk_video_prompter",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/sdk_video_prompter",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="small-12 columns large-centered video-prompter-container"><ul class="tabs vpr-tab" data-tab id="scriptTypesId"><li class=\'tab-title ').h("eq",t,{block:i},{key:t.get(["activeTab"],!1),value:"allVideoScripts"},"h").w('\' id="allVideoScriptsTitle"><a data-tab="allVideoScripts">').f(t.getPath(!1,["videoPrompter","allScripts"]),t,"h").w("</a></li><li class='tab-title ").h("eq",t,{block:n},{key:t.get(["activeTab"],!1),value:"myVideoScripts"},"h").w('\' id="myVideoScriptsTitle"><a data-tab="myVideoScripts">').f(t.getPath(!1,["videoPrompter","myScripts"]),t,"h").w("</a></li><li class='tab-title ").h("eq",t,{block:r},{key:t.get(["activeTab"],!1),value:"sharedScripts"},"h").w('\' id="sharedScriptsTitle"><a data-tab="sharedScripts">').f(t.getPath(!1,["videoPrompter","shared"]),t,"h").w("</a></li>").x(t.get(["can_add_new_scripts"],!1),t,{block:o},{}).w('<a id="refreshPrompterPages" class="refresh"><img src="/svg/refresh.svg"></a></ul><div class="tabs-content sf-tab-content" id="scriptListId"><div class="large-12 columns text-center vpr-empty-state"><input id="scriptSearch" type="search" placeholder="Search..." value="').x(t.get(["initialSearchValue"],!1),t,{block:a},{}).w("\" autoFocus /></div><div class='content ").h("eq",t,{block:s},{key:t.get(["activeTab"],!1),value:"allVideoScripts"},"h").w('\' id="allVideoScripts">').h("eq",t,{else:l,block:d},{key:t.getPath(!1,["all_scripts","length"]),value:0},"h").w("</div><div class='content ").h("eq",t,{block:p},{key:t.get(["activeTab"],!1),value:"myVideoScripts"},"h").w('\' id="myVideoScripts">').h("eq",t,{else:h,block:m},{key:t.getPath(!1,["my_scripts","length"]),value:0},"h").w("</div><div class='content ").h("eq",t,{block:v},{key:t.get(["activeTab"],!1),value:"sharedScripts"},"h").w('\' id="sharedScripts">').h("eq",t,{else:y,block:w},{key:t.getPath(!1,["shared_scripts","length"]),value:0},"h").w('</div></div><div id="testelement"></div><div class="display-video-prompt hide" id="promptSettingsContainer"><div class="large-12 columns prompt-settings" id="promptPropertiesId"><div class="prompt-settings-container"><div class="font-size text-center right-bar" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><h6>').f(t.getPath(!1,["videoPrompter","speedLabel"]),t,"h").w('</h6><span class="scrollDetail"></span><select id="speedOption"><option value="auto">Auto Scroll</option><option value="voice">Voice Flow</option></select><input id="speedRange" class="slideRange" type="range" min="1" max="7" value="2" /><span id="speedCount" class="countRange"></span></div><div class="font-size text-center right-bar" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><h6>').f(t.getPath(!1,["videoPrompter","textSizeChange"]),t,"h").w('</h6><input id="textSizeRange" class="slideRange" type="range" min="20" max="40" value="30" /><span id="textSizeCount" class="countRange"></span></div><div class="font-size text-center right-bar" hv-tooltip="').f(t.getPath(!1,["videoPrompter","propertyHidden"]),t,"h").w('"><h6>').f(t.getPath(!1,["videoPrompter","lineSpaceChange"]),t,"h").w('</h6><input id="lineSpaceRange" class="slideRange" type="range" min="1" max="2.50" value="1.25" step="0.25" /><span id="lineSpaceCount" class="countRange"></span></div></div><div class="text-center"><a id="changeScriptId" class="change-script">').f(t.getPath(!1,["videoPrompter","changeScript"]),t,"h").w('</a></div></div><div class="large-12 columns ').x(t.get(["newRecorderScreen"],!1),t,{else:S,block:C},{}).w(' custom-scroll" id="telepromterColumnContainer"><div id="teleprompterId" contentEditable="true" class="small-6 small-offset-3 columns video-teleprompter"></div><div id="teleprompterSiblingDiv"></div></div><div class="large-12 columns"><div id="scrollDetailModal" class="display-video-prompt-modal"><div class="display-video-prompt-modal-content"><div class="modal-header"><span class="scrollDetailclose">×</span><h5>Speak flow speed detail</h5></div><div class="modal-body"><table><tbody><tr><td><span class="scroll-auto"></span>Auto scroll</td><td>Scroll at a set pace. 1 is slowest, 7 is the fastest.</td></tr><tr><td><span class="scroll-voice"></span>Voice flow</td><td>Voice flow mode enables you to scroll the text as you speak. It scrolls with your voice</td></tr></tbody></table></div></div></div></div></div></div></div>')}function i(e,t){return e.w("active")}function n(e,t){return e.w("active")}function r(e,t){return e.w("active")}function o(e,t){return e.w('<a id="addNewScriptFromPrompt" class="hp-border-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function a(e,t){return e.f(t.get(["initialSearchValue"],!1),t,"h")}function s(e,t){return e.w("active")}function l(e,t){return e.s(t.get(["all_scripts"],!1),t,{block:c},{})}function c(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function d(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter_new.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","allScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:u},{}).w("</div>")}function u(e,t){return e.w('<a id="addNewScriptFromAllScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function p(e,t){return e.w("active")}function h(e,t){return e.s(t.get(["my_scripts"],!1),t,{block:f},{})}function f(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function m(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter_new.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","myScriptEmptyStateText"]),t,"h").w("</h4>").x(t.get(["can_add_new_scripts"],!1),t,{block:g},{}).w("</div>")}function g(e,t){return e.w('<a id="addNewScriptFromMyScripts" class="button wiz-primary-btn">').f(t.getPath(!1,["videoPrompter","addNewScript"]),t,"h").w("</a>")}function v(e,t){return e.w("active")}function y(e,t){return e.s(t.get(["shared_scripts"],!1),t,{block:b},{})}function b(e,t){return e.w('<div class="script-list" id="').f(t.get(["id"],!1),t,"h").w('" data-text="').f(t.get(["script_text"],!1),t,"h").w('">').f(t.get(["title"],!1),t,"h").w("</div>")}function w(e,t){return e.w('<div class="large-12 columns text-center vpr-empty-state"><img class="empty-state-img" src="/svg/teleprompter_new.svg" width="60"><h4>').f(t.getPath(!1,["videoPrompter","sharedEmptyStateText"]),t,"h").w("</h4></div>")}function S(e,t){return e.w("telepromterColumnContainer")}function C(e,t){return e.w("hvteleprompter-column-container")}e.register("templates/wiz/video_prompter_new",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/wiz/video_prompter_new",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n=i(672),r=0;e.exports=function(e){var t=++r;return n(e)+t}},function(e,t,i){var n,r;n=[i(772),i(773),i(686),i(2)],void 0===(r=function({default:e},{default:t},{default:i},{default:n}){return function(r){var o=!1,a=!1,s=!!r.humanizePlayer&&r.humanizePlayer;try{o=HippoVideo.data.api.getProperty("isLessonly"),a=HippoVideo.data.api.getProperty("isPlayer2022")}catch(e){}return o=o||"lessonly"==n.getQueryParams().type||"lessonly"==n.getQueryParams().integration_type,r.isDelivery&&!o&&a&&!r.iosInBrowserFullScreen||s?new i(r):r.isDelivery&&!o||r.isNewPlayer?new t(r):new e(r)}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.x(t.get(["isPrivacy"],!1),t,{else:i,block:te},{})}function i(e,t){return e.x(t.get(["initial"],!1),t,{else:n,block:ee},{})}function n(e,t){return e.w('<div class="hippo-video-player" id=').f(t.get(["id"],!1),t,"h").w('><div class="se-crop-scale">\x3c!-- <canvas class="blurred-bg-video" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px);-webkit-filter: blur(20px);transform: scale(1.2);"></canvas> --\x3e<div class="primary-video-overflow-container"><div class="primary-video-container">').x(t.get(["isImageMode"],!1),t,{else:r,block:f},{}).w("</div></div>").nx(t.get(["isImageMode"],!1),t,{block:m},{}).w('<canvas class="renderless-overlay" style="position: absolute;width: 100%;height: 100%"></canvas></div>').nx(t.get(["isImageMode"],!1),t,{block:v},{}).w('<div id="personalizeChapterId" class="hp-menu-tog hide"><img src="/svg/hamburger-white.svg" width="16"></div><div id="personalizeChaptersListId" class="hp-tog-content hide"><a class="chapter-close" id="chapterCloseId"><img src="/svg/close-gray.svg" width="10"></a><br><div id="chaptersListId"></div></div><div class="error-overlay hide" style="position:absolute;width:100%;height:100%;background: rgba(0,0,0,0.2);z-index:2;background-repeat: no-repeat;background-size: contain;"><div class="error-reason-div"><img src="/svg/warning.svg" class="status-warning" /><div class="error-reason"></div></div></div><div class="player-touch-guard"></div>').nx(t.get(["isImageMode"],!1),t,{block:_},{}).h("select",t,{block:q},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:Y},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:J},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:X},{key:t.get(["privacy"],!1),value:2},"h").w("</div>").nx(t.get(["isImageMode"],!1),t,{block:Q},{})}function r(e,t){return e.x(t.get(["isAudioOnly"],!1),t,{block:o},{}).w('<video class="primary-video" id="primary-video" crossorigin="anonymous" controls playsinline>').h("eq",t,{block:l},{key:t.get(["type"],!1),value:"url"},"h").w("Your browser does not support the video tag.").x(t.get(["subtitlesEnabled"],!1),t,{block:d},{}).w('</video><canvas class="se-effects-canvas"></canvas><div class="se-effects-components-container"></div>').x(t.get(["showSetFrame"],!1),t,{block:h},{})}function o(e,t){return e.w("<div>").x(t.get(["isLessonly"],!1),t,{else:a,block:s},{}).w("</div>")}function a(e,t){return e.w('<img src="/img/onlyaudio.jpg" style="width:100%;height:100%" />')}function s(e,t){return e.w('<img src="/img/onlyaudio_lessonly.jpg" style="width:100%;height:100%" />')}function l(e,t){return e.w(" <source ").x(t.get(["addSourceAudioType"],!1),t,{block:c},{}).w(' crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">")}function c(e,t){return e.w(' type="audio/mp3" ')}function d(e,t){return e.x(t.get(["subtitlesFromServer"],!1),t,{else:u,block:p},{})}function u(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["subtitles"],!1),t,"h").w('" default="">')}function p(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["domain"],!1),t,"h").w("/video_delivery/subtitles/").f(t.get(["token"],!1),t,"h").w('" default="">')}function h(e,t){return e.w('<video class="hidden-video" controls playsinline crossorigin="anonymous" style="display: none;"><source crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">").f(t.getPath(!1,["wizPlayer","browserDoesNotSupport"]),t,"h").w("</video>")}function f(e,t){return e.w('<img src="').f(t.get(["src"],!1),t,"h").w('" class="primary-video" id="gifImage" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;">')}function m(e,t){return e.nx(t.get(["isDelivery"],!1),t,{block:g},{})}function g(e,t){return e.w('<div class="secondary-video-overflow-container"><div class="secondary-video-container"><video class="secondary-video" crossorigin="anonymous" ><source crossorigin="anonymous" src=').f(t.get(["audioSrc"],!1),t,"h").w('></video></div></div><textarea id="seTextEditable" class="se-text-editable custom-scroll hide" spellcheck="false" placeholder="Enter text here"></textarea><div class="se-components-container"></div><div class="se-crop-resizable hide"></div><div class="se-crop-highlighter se-crop-highlighter-top"></div><div class="se-crop-highlighter se-crop-highlighter-left"></div><div class="se-crop-highlighter se-crop-highlighter-bottom"></div><div class="se-crop-highlighter se-crop-highlighter-right"></div>')}function v(e,t){return e.w('<div class="se-components-droppable"></div><div class="player-border"></div>').x(t.get(["thumbnail"],!1),t,{block:y},{}).w('<div class="play-btn-container full-screen-container"><div class="play-center-ico text-center"><img src="/svg/play.svg"></div>').x(t.get(["previewVideo"],!1),t,{block:w},{}).w('</div><div class="replay-btn-container full-screen-container hide"><img src="/img/videoreplay.png" style="width: 20%; display: block; position: relative;top: 30%;margin:auto;z-index:100;"></div><div class="player-loading-overlay full-screen-container hide"><div><img src="/img/videoloading.gif"></div></div>').x(t.get(["isLandingPageVideo"],!1),t,{else:S,block:C},{}).x(t.get(["isMutedAutoPlay"],!1),t,{block:k},{}).x(t.get(["showHoverActions"],!1),t,{block:x},{})}function y(e,t){return e.nx(t.get(["isAudioOnly"],!1),t,{block:b},{})}function b(e,t){return e.w('<div class="thumbnail-container full-screen-container" style="position:absolute;width:100%;height:100%;cursor: pointer;z-index:1"><img src="').f(t.get(["thumbnail"],!1),t,"h").w('" id="playerThumbnail" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;" onerror="this.style.display=\'none\'"></div>')}function w(e,t){return e.w('<video src="').f(t.get(["previewVideo"],!1),t,"h").w('" crossorigin="anonymous" autoplay muted loop />')}function S(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}function C(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}function k(e,t){return e.w('<div class="player-info muted-autoplay cursor-pointer hide"><img src="/svg/mute.svg" alt="volume" /> ').f(t.getPath(!1,["wizPlayer","clickToUnmute"]),t,"h").w("</div>")}function x(e,t){return e.w('<div class="player-actions-container full-screen-container hide"><div class="player-actions text-center"><span class="player-action player-rewind-action"><img src="/svg/rewind.svg" alt="Rewind" /></span><span class="player-action player-play-pause-action"><img src="/svg/play.svg" alt="Play/Pause" /></span><span class="player-action player-forward-action"><img src="/svg/forward.svg" alt="Forward" /></span></div></div>')}function _(e,t){return e.w('<div class="canvas-preview-container ').x(t.get(["showComments"],!1),t,{block:E},{}).w('" id="canvasPreviewContainer" style="display:none;"><img src="/images/loading-more.svg" style="width: 175px;height: 90px;padding: 20px;display:none" id="quick-preview-loading"><canvas class="quickpreview-canvas" width=128 height=72></canvas>').x(t.get(["showComments"],!1),t,{block:T},{}).x(t.get(["showSetFrame"],!1),t,{block:P},{}).w('<input type="hidden" id="canvasHoverTime" /></div><div class="subtitles-line" id="subtitlesTrack"></div><div class="player-controls-container player-controls-inside"><a class="play-pause-button" id="pauseAndPlayBtn"><img src="/svg/play.svg"></a><div class="components-marker-container"></div><div class="components-time-container"><div class="se-clip-time hide"><span class="se-selected-type"></span><div class="timer-pop-up hide"><div class="timer-start-section"><div class="timer-label">').f(t.getPath(!1,["wizPlayer","startTime"]),t,"h").w('</div><input type="text" class="timer-start-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-start-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-start-btn-minus"></div></div></div><div class="timer-stop-section"><div class="timer-label">').f(t.getPath(!1,["wizPlayer","stopTime"]),t,"h").w('</div><input type="text" class="timer-stop-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-stop-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-stop-btn-minus"></div></div></div><div class="timer-div-arrow"></div></div></div></div><div class="notification-line"></div><div class="cta-indicator hide"><div id="ctaIndicatorInner" class="cta-indicator-inner"></div></div><div id="chapterIndicatorId" class="hp-indicator hide"></div><div class="player-progress"><div class="click-area-extended"></div></div><span class="player-currenttime"></span>').x(t.get(["showReactions"],!1),t,{block:I},{}).x(t.get(["canPlayerLogoView"],!1),t,{block:A},{}).w('<div class="actions-container pull-right">').x(t.get(["isContainsAudio"],!1),t,{else:L,block:F},{}).x(t.get(["showSpeedSettings"],!1),t,{block:V},{}).x(t.get(["qualityControl"],!1),t,{block:U},{}).x(t.get(["subtitlesEnabled"],!1),t,{block:z},{}).x(t.get(["fullscreenControl"],!1),t,{block:j},{}).x(t.get(["allowDownload"],!1),t,{block:H},{}).w('</div></div><div class="notification-line-onplay"></div><div class="player-progress for-reactions"><div class="click-area-extended"></div></div><div id="ctaPlayerComps" class="cta-player-comps hide"></div><div id="ctaPlayerAddComp" class="cta-player-add-container hide"></div>')}function E(e,t){return e.w(" canvas-preview-with-comment ")}function T(e,t){return e.w('<div class="preview-add-comment" id="addCommentFromCanvas"><img src="/svg/icon-discussions.svg" /> ').f(t.getPath(!1,["wizPlayer","addComments"]),t,"h").w("</div>")}function P(e,t){return e.w('<h6 class="set-frame-btn">').f(t.getPath(!1,["wizPlayer","setTheFrame"]),t,"h").w("</h6>")}function I(e,t){return e.w('<div class="emoji-wrap"><span><img class="react-now" reaction_id="1" id="reaction_id-1" src="/svg/emoji-type-1.svg" width="16"></span><span><img class="react-now" reaction_id="2" id="reaction_id-2" src="/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now" reaction_id="3" id="reaction_id-3" src="/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now" reaction_id="4" id="reaction_id-4" src="/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now" reaction_id="5" id="reaction_id-5" src="/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now" reaction_id="6" id="reaction_id-6" src="/svg/emoji-type-6.svg" width="16"></span></div>')}function A(e,t){return e.w('<div class="player-logo pull-right">').x(t.get(["playerLogo"],!1),t,{else:R,block:O},{}).w("</div>")}function R(e,t){return e.w('<a href="https://www.hippovideo.io/" target="_blank" class="brand-logo"><img src="/svg/hippo-player-logo.svg" alt="logo" /></a>')}function O(e,t){return e.w("<a ").x(t.get(["addLinkToPlayerLogo"],!1),t,{block:N},{}).w(' target="_blank" class="brand-logo"><img src="').f(t.get(["playerLogo"],!1),t,"h").w('" alt="logo" /></a>')}function N(e,t){return e.x(t.get(["playerLogoLink"],!1),t,{block:D},{})}function D(e,t){return e.w('href="').f(t.get(["playerLogoLink"],!1),t,"h").w('"')}function L(e,t){return e.x(t.get(["isLessonly"],!1),t,{else:M,block:B},{})}function M(e,t){return e.w('<span class="no-audio-box"><img class="audio-img mute player-volume" src="/svg/no-audio-mute.svg" alt="volume" width="15" /><div class="no-audio-pop">This video has no audio</div></span>')}function B(e,t){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function F(e,t){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function V(e,t){return e.w('<span class="controls-btn video-speed-btn"><span class="player-speed-label" style="color: white">1X</span><div class="quality-container" style="display: none;"><ul class="quality-list"><li data-id="0.5">0.5X</li><li data-id="1" class="active">1X</li><li data-id="1.5">1.5X</li><li data-id="2">2X</li><li data-id="5">5X</li></ul></div></span>')}function U(e,t){return e.w('<span class="player-quality controls-btn" id="videoQualityBtn"><img class="player-quality-icon" src="/svg/setting-white.svg" alt="quality" /><div class="quality-container" style="display: none;"><ul class="quality-list"></ul></div></span>')}function z(e,t){return e.w('<span class="player-subtitle controls-btn" id="videoSubtitleBtn"><img class="player-subtitle-icon" src="/img/subtitle-cc.png" alt="subtitle" /></span>')}function j(e,t){return e.w('<span class="player-fullscreen controls-btn" id="videoFullscreenBtn"><img class="player-fullscreen-icon" src="/svg/fullscreen.svg" alt="fullscreen" /></span>')}function H(e,t){return e.w('<span class="player-download controls-btn" id="videoDownloadBtn"><img class="player-download-icon" src="/svg/download-white.svg" alt="download" /></span>')}function q(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:$},{},"h").w(" ")}function $(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",t,{else:W,block:G},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function W(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function G(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function Y(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:K},{},"h").w(" ")}function K(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function J(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function X(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}function Q(e,t){return e.x(t.get(["showReactions"],!1),t,{block:Z},{})}function Z(e,t){return e.w('<div class="emoji-wrap-onplay"><span><img class="react-now-play" reaction_id="1" id="reaction_id-1" src="/svg/emoji-type-1.svg" width="16"></span><span><img class="react-now-play" reaction_id="2" id="reaction_id-2" src="/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now-play" reaction_id="3" id="reaction_id-3" src="/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now-play" reaction_id="4" id="reaction_id-4" src="/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now-play" reaction_id="5" id="reaction_id-5" src="/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now-play" reaction_id="6" id="reaction_id-6" src="/svg/emoji-type-6.svg" width="16"></span></div>')}function ee(e,t){return e.w('<div class="hippo-video-player" id=').f(t.get(["id"],!1),t,"h").w('><div id="personalisedVideoLoading" class="personalised-video-loading-page" style="display: block;"><div class="loader-wrap"><div class="rp-loader"></div></div></div></div>')}function te(e,t){return e.w('<div class="hippo-video-player" id=').f(t.get(["id"],!1),t,"h").w(">").h("select",t,{block:ie},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:ae},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:le},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:ce},{key:t.get(["privacy"],!1),value:2},"h").w("</div>")}function ie(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:ne},{},"h").w(" ")}function ne(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",t,{else:re,block:oe},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function re(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function oe(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function ae(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:se},{},"h").w(" ")}function se(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function le(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function ce(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}e.register("templates/component/videoplayer",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,T.__dustBody=!0,P.__dustBody=!0,I.__dustBody=!0,A.__dustBody=!0,R.__dustBody=!0,O.__dustBody=!0,N.__dustBody=!0,D.__dustBody=!0,L.__dustBody=!0,M.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,V.__dustBody=!0,U.__dustBody=!0,z.__dustBody=!0,j.__dustBody=!0,H.__dustBody=!0,q.__dustBody=!0,$.__dustBody=!0,W.__dustBody=!0,G.__dustBody=!0,Y.__dustBody=!0,K.__dustBody=!0,J.__dustBody=!0,X.__dustBody=!0,Q.__dustBody=!0,Z.__dustBody=!0,ee.__dustBody=!0,te.__dustBody=!0,ie.__dustBody=!0,ne.__dustBody=!0,re.__dustBody=!0,oe.__dustBody=!0,ae.__dustBody=!0,se.__dustBody=!0,le.__dustBody=!0,ce.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/component/videoplayer",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.x(t.get(["isPrivacy"],!1),t,{else:i,block:te},{})}function i(e,t){return e.x(t.get(["initial"],!1),t,{else:n,block:ee},{})}function n(e,t){return e.w('<div class="hippo-video-player new-sdk" id=').f(t.get(["id"],!1),t,"h").w('><div class="se-crop-scale">\x3c!-- <canvas class="blurred-bg-video" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px);-webkit-filter: blur(20px);transform: scale(1.2);"></canvas> --\x3e<div class="primary-video-overflow-container"><div class="primary-video-container">').x(t.get(["isImageMode"],!1),t,{else:r,block:f},{}).w("</div></div>").nx(t.get(["isImageMode"],!1),t,{block:m},{}).w('<canvas class="renderless-overlay" style="position: absolute;width: 100%;height: 100%"></canvas></div>').nx(t.get(["isImageMode"],!1),t,{block:v},{}).w('<div id="personalizeChapterId" class="hp-menu-tog hide"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/hamburger-white.svg" width="16"></div><div id="personalizeChaptersListId" class="hp-tog-content hide"><a class="chapter-close" id="chapterCloseId"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/close-gray.svg" width="10"></a><br><div id="chaptersListId"></div></div><div class="error-overlay hide" style="position:absolute;width:100%;height:100%;background: rgba(0,0,0,0.2);z-index:2;background-repeat: no-repeat;background-size: contain;"><div class="error-reason-div"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/warning.svg" class="status-warning" /><div class="error-reason"></div></div></div><div class="player-touch-guard"></div>').nx(t.get(["isImageMode"],!1),t,{block:_},{}).h("select",t,{block:q},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:Y},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:J},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:X},{key:t.get(["privacy"],!1),value:2},"h").w("</div>").nx(t.get(["isImageMode"],!1),t,{block:Q},{})}function r(e,t){return e.x(t.get(["isAudioOnly"],!1),t,{block:o},{}).w('<video class="primary-video" id="primary-video" crossorigin="anonymous" controls playsinline>').h("eq",t,{block:l},{key:t.get(["type"],!1),value:"url"},"h").w("Your browser does not support the video tag.").x(t.get(["subtitlesEnabled"],!1),t,{block:d},{}).w('</video><canvas class="se-effects-canvas"></canvas><div class="se-effects-components-container"></div>').x(t.get(["showSetFrame"],!1),t,{block:h},{})}function o(e,t){return e.w("<div>").x(t.get(["isLessonly"],!1),t,{else:a,block:s},{}).w("</div>")}function a(e,t){return e.w('<img src="').f(t.get(["origin"],!1),t,"h").w('/img/onlyaudio.jpg" style="width:100%;height:100%" />')}function s(e,t){return e.w('<img src="').f(t.get(["origin"],!1),t,"h").w('/img/onlyaudio_lessonly.jpg" style="width:100%;height:100%" />')}function l(e,t){return e.w(" <source ").x(t.get(["addSourceAudioType"],!1),t,{block:c},{}).w(' crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">")}function c(e,t){return e.w(' type="audio/mp3" ')}function d(e,t){return e.x(t.get(["subtitlesFromServer"],!1),t,{else:u,block:p},{})}function u(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["subtitles"],!1),t,"h").w('" default="">')}function p(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["domain"],!1),t,"h").w("/video_delivery/subtitles/").f(t.get(["token"],!1),t,"h").w('" default="">')}function h(e,t){return e.w('<video class="hidden-video" controls playsinline crossorigin="anonymous" style="display: none;"><source crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">").f(t.getPath(!1,["wizPlayer","browserDoesNotSupport"]),t,"h").w("</video>")}function f(e,t){return e.w('<img src="').f(t.get(["src"],!1),t,"h").w('" class="primary-video" id="gifImage" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;">')}function m(e,t){return e.nx(t.get(["isDelivery"],!1),t,{block:g},{})}function g(e,t){return e.w('<div class="secondary-video-overflow-container"><div class="secondary-video-container"><video class="secondary-video" crossorigin="anonymous" ><source crossorigin="anonymous" src=').f(t.get(["audioSrc"],!1),t,"h").w('></video></div></div><textarea id="seTextEditable" class="se-text-editable custom-scroll hide" spellcheck="false" placeholder="Enter text here"></textarea><div class="se-components-container"></div><div class="se-crop-resizable hide"></div><div class="se-crop-highlighter se-crop-highlighter-top"></div><div class="se-crop-highlighter se-crop-highlighter-left"></div><div class="se-crop-highlighter se-crop-highlighter-bottom"></div><div class="se-crop-highlighter se-crop-highlighter-right"></div>')}function v(e,t){return e.w('<div class="se-components-droppable"></div><div class="player-border"></div>').x(t.get(["thumbnail"],!1),t,{block:y},{}).w('<div class="play-btn-container full-screen-container"><div class="play-center-ico text-center"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/play.svg"></div>').x(t.get(["previewVideo"],!1),t,{block:w},{}).w('</div><div class="replay-btn-container full-screen-container hide"><img src="').f(t.get(["origin"],!1),t,"h").w('/img/videoreplay.png" style="width: 20%; display: block; position: relative;top: 30%;margin:auto;z-index:100;"></div><div class="player-loading-overlay full-screen-container hide"><div><img src="').f(t.get(["origin"],!1),t,"h").w('/img/videoloading.gif"></div></div>').x(t.get(["isLandingPageVideo"],!1),t,{else:S,block:C},{}).x(t.get(["isMutedAutoPlay"],!1),t,{block:k},{}).x(t.get(["showHoverActions"],!1),t,{block:x},{})}function y(e,t){return e.nx(t.get(["isAudioOnly"],!1),t,{block:b},{})}function b(e,t){return e.w('<div class="thumbnail-container full-screen-container" style="position:absolute;width:100%;height:100%;cursor: pointer;z-index:1"><img src="').f(t.get(["thumbnail"],!1),t,"h").w('" id="playerThumbnail" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;" onerror="this.style.display=\'none\'"></div>')}function w(e,t){return e.w('<video src="').f(t.get(["previewVideo"],!1),t,"h").w('" crossorigin="anonymous" autoplay muted loop />')}function S(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}function C(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}function k(e,t){return e.w('<div class="player-info muted-autoplay cursor-pointer hide"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/mute.svg" alt="volume" /> ').f(t.getPath(!1,["wizPlayer","clickToUnmute"]),t,"h").w("</div>")}function x(e,t){return e.w('<div class="player-actions-container full-screen-container hide"><div class="player-actions text-center"><span class="player-action player-rewind-action"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/rewind.svg" alt="Rewind" /></span><span class="player-action player-play-pause-action"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/play.svg" alt="Play/Pause" /></span><span class="player-action player-forward-action"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/forward.svg" alt="Forward" /></span></div></div>')}function _(e,t){return e.w('<div class="canvas-preview-container ').x(t.get(["showComments"],!1),t,{block:E},{}).w('" id="canvasPreviewContainer" style="display:none;"><canvas class="quickpreview-canvas" width=128 height=72></canvas>').x(t.get(["showComments"],!1),t,{block:T},{}).x(t.get(["showSetFrame"],!1),t,{block:P},{}).w('<input type="hidden" id="canvasHoverTime" /></div><div class="subtitles-line" id="subtitlesTrack"></div><div class="player-controls-container player-controls-inside"><a class="play-pause-button" id="pauseAndPlayBtn"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/play.svg"></a><div class="components-marker-container"></div><div class="components-time-container"><div class="se-clip-time hide"><span class="se-selected-type"></span><div class="timer-pop-up hide"><div class="timer-start-section"><div class="timer-label">').f(t.getPath(!1,["wizPlayer","startTime"]),t,"h").w('</div><input type="text" class="timer-start-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-start-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-start-btn-minus"></div></div></div><div class="timer-stop-section"><div class="timer-label">').f(t.getPath(!1,["wizPlayer","stopTime"]),t,"h").w('</div><input type="text" class="timer-stop-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-stop-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-stop-btn-minus"></div></div></div><div class="timer-div-arrow"></div></div></div></div><div class="notification-line"></div><div class="cta-indicator hide"><div id="ctaIndicatorInner" class="cta-indicator-inner"></div></div><div id="chapterIndicatorId" class="hp-indicator hide"></div><div class="player-progress"><div class="click-area-extended"></div></div><span class="player-currenttime"></span>').x(t.get(["showReactions"],!1),t,{block:I},{}).x(t.get(["canPlayerLogoView"],!1),t,{block:A},{}).w('<div class="actions-container pull-right">').x(t.get(["isContainsAudio"],!1),t,{else:L,block:F},{}).x(t.get(["showSpeedSettings"],!1),t,{block:V},{}).x(t.get(["qualityControl"],!1),t,{block:U},{}).x(t.get(["subtitlesEnabled"],!1),t,{block:z},{}).x(t.get(["fullscreenControl"],!1),t,{block:j},{}).x(t.get(["allowDownload"],!1),t,{block:H},{}).w('</div></div><div class="notification-line-onplay"></div><div class="player-progress for-reactions"><div class="click-area-extended"></div></div><div id="ctaPlayerComps" class="cta-player-comps hide"></div><div id="ctaPlayerAddComp" class="cta-player-add-container hide"></div>')}function E(e,t){return e.w(" canvas-preview-with-comment ")}function T(e,t){return e.w('<div class="preview-add-comment" id="addCommentFromCanvas"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/icon-discussions.svg" /> ').f(t.getPath(!1,["wizPlayer","addComments"]),t,"h").w("</div>")}function P(e,t){return e.w('<h6 class="set-frame-btn">').f(t.getPath(!1,["wizPlayer","setTheFrame"]),t,"h").w("</h6>")}function I(e,t){return e.w('<div class="emoji-wrap"><span><img class="react-now" reaction_id="1" id="reaction_id-1" src="').f(t.get(["origin"],!1),t,"h").w('/emoji-type-1.svg" width="16"></span><span><img class="react-now" reaction_id="2" id="reaction_id-2" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now" reaction_id="3" id="reaction_id-3" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now" reaction_id="4" id="reaction_id-4" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now" reaction_id="5" id="reaction_id-5" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now" reaction_id="6" id="reaction_id-6" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-6.svg" width="16"></span></div>')}function A(e,t){return e.w('<div class="player-logo pull-right">').x(t.get(["playerLogo"],!1),t,{else:R,block:O},{}).w("</div>")}function R(e,t){return e.w('<a href="https://www.hippovideo.io/" target="_blank" class="brand-logo"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/hippo-player-logo.svg" alt="logo" /></a>')}function O(e,t){return e.w("<a ").x(t.get(["addLinkToPlayerLogo"],!1),t,{block:N},{}).w(' target="_blank" class="brand-logo"><img src="').f(t.get(["playerLogo"],!1),t,"h").w('" alt="logo" /></a>')}function N(e,t){return e.x(t.get(["playerLogoLink"],!1),t,{block:D},{})}function D(e,t){return e.w('href="').f(t.get(["playerLogoLink"],!1),t,"h").w('"')}function L(e,t){return e.x(t.get(["isLessonly"],!1),t,{else:M,block:B},{})}function M(e,t){return e.w('<span class="no-audio-box"><img class="audio-img mute player-volume" src="').f(t.get(["origin"],!1),t,"h").w('/svg/no-audio-mute.svg" alt="volume" width="15" /><div class="no-audio-pop">This video has no audio</div></span>')}function B(e,t){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="').f(t.get(["origin"],!1),t,"h").w('/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function F(e,t){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="').f(t.get(["origin"],!1),t,"h").w('/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function V(e,t){return e.w('<span class="controls-btn video-speed-btn"><span class="player-speed-label" style="color: white">1X</span><div class="quality-container" style="display: none;"><ul class="quality-list"><li data-id="0.5">0.5X</li><li data-id="1" class="active">1X</li><li data-id="1.5">1.5X</li><li data-id="2">2X</li><li data-id="5">5X</li></ul></div></span>')}function U(e,t){return e.w('<span class="player-quality controls-btn" id="videoQualityBtn"><img class="player-quality-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/setting-white.svg" alt="quality" /><div class="quality-container" style="display: none;"><ul class="quality-list"></ul></div></span>')}function z(e,t){return e.w('<span class="player-subtitle controls-btn" id="videoSubtitleBtn"><img class="player-subtitle-icon" src="').f(t.get(["origin"],!1),t,"h").w('/img/subtitle-cc.png" alt="subtitle" /></span>')}function j(e,t){return e.w('<span class="player-fullscreen controls-btn" id="videoFullscreenBtn"><img class="player-fullscreen-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/fullscreen.svg" alt="fullscreen" /></span>')}function H(e,t){return e.w('<span class="player-download controls-btn" id="videoDownloadBtn"><img class="player-download-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/download-white.svg" alt="download" /></span>')}function q(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:$},{},"h").w(" ")}function $(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/access-denied.svg"><h3>').h("eq",t,{else:W,block:G},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function W(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function G(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function Y(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:K},{},"h").w(" ")}function K(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function J(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function X(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="').f(t.get(["origin"],!1),t,"h").w('/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}function Q(e,t){return e.x(t.get(["showReactions"],!1),t,{block:Z},{})}function Z(e,t){return e.w('<div class="emoji-wrap-onplay"><span><img class="react-now-play" reaction_id="1" id="reaction_id-1" src="').f(t.get(["origin"],!1),t,"h").w('/emoji-type-1.svg" width="16"></span><span><img class="react-now-play" reaction_id="2" id="reaction_id-2" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now-play" reaction_id="3" id="reaction_id-3" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now-play" reaction_id="4" id="reaction_id-4" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now-play" reaction_id="5" id="reaction_id-5" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now-play" reaction_id="6" id="reaction_id-6" src="').f(t.get(["origin"],!1),t,"h").w('/svg/emoji-type-6.svg" width="16"></span></div>')}function ee(e,t){return e.w('<div class="hippo-video-player new-sdk" id=').f(t.get(["id"],!1),t,"h").w('><div id="personalisedVideoLoading" class="personalised-video-loading-page" style="display: block;"><div class="loader-wrap"><div class="rp-loader"></div></div></div></div>')}function te(e,t){return e.w('<div class="hippo-video-player new-sdk" id=').f(t.get(["id"],!1),t,"h").w(">").h("select",t,{block:ie},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:ae},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:le},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:ce},{key:t.get(["privacy"],!1),value:2},"h").w("</div>")}function ie(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:ne},{},"h").w(" ")}function ne(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/access-denied.svg"><h3>').h("eq",t,{else:re,block:oe},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function re(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function oe(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function ae(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:se},{},"h").w(" ")}function se(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function le(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(t.get(["origin"],!1),t,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function ce(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="').f(t.get(["origin"],!1),t,"h").w('/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}e.register("templates/component/sdk_videoplayer",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,T.__dustBody=!0,P.__dustBody=!0,I.__dustBody=!0,A.__dustBody=!0,R.__dustBody=!0,O.__dustBody=!0,N.__dustBody=!0,D.__dustBody=!0,L.__dustBody=!0,M.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,V.__dustBody=!0,U.__dustBody=!0,z.__dustBody=!0,j.__dustBody=!0,H.__dustBody=!0,q.__dustBody=!0,$.__dustBody=!0,W.__dustBody=!0,G.__dustBody=!0,Y.__dustBody=!0,K.__dustBody=!0,J.__dustBody=!0,X.__dustBody=!0,Q.__dustBody=!0,Z.__dustBody=!0,ee.__dustBody=!0,te.__dustBody=!0,ie.__dustBody=!0,ne.__dustBody=!0,re.__dustBody=!0,oe.__dustBody=!0,ae.__dustBody=!0,se.__dustBody=!0,le.__dustBody=!0,ce.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/component/sdk_videoplayer",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.x(t.get(["isPrivacy"],!1),t,{else:i,block:oe},{})}function i(e,t){return e.x(t.get(["initial"],!1),t,{else:n,block:re},{})}function n(e,t){return e.w('<div class="video-container hippo-video-player hv-new-player" id=').f(t.get(["id"],!1),t,"h").w('><div class="thumbnail"><div class="se-crop-scale">\x3c!-- <canvas class="blurred-bg-video" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px);-webkit-filter: blur(20px);transform: scale(1.2);"></canvas> --\x3e<div class="primary-video-overflow-container"><div class="primary-video-container">').x(t.get(["isImageMode"],!1),t,{else:r,block:u},{}).w('</div></div><div class="parallel-video-container"><div class="goback-branching"><img src="/img/back-icon.png" width="25"><span></span></div><div class="goback-branching-new"><div class="left-container"><img src="/img/left.svg" width="25"></div><div class="branching-info"></div></div><div class="branching-menus"></div></div>').nx(t.get(["isImageMode"],!1),t,{block:p},{}).w('</div><canvas class="renderless-overlay" style="position: absolute;width: 100%;height: 100%"></canvas><div class="renderless-inputs-container" style="position: absolute;width: 100%;height: 100%;display:none"></div><div class="renderless-overlay-iframes" style="position: absolute;width: 100%;height: 100%;display:none"></div></div>').nx(t.get(["isImageMode"],!1),t,{block:f},{}).w('<div id="personalizeChapterId" class="hp-menu-tog hide"><img src="/svg/hamburger-white.svg" width="16"></div><div id="personalizeChaptersListId" class="hp-tog-content hide"><a class="chapter-close" id="chapterCloseId"><img src="/svg/close-gray.svg" width="10"></a><br><div id="chaptersListId"></div></div><div class="error-overlay hide" style="position:absolute;width:100%;height:100%;background: rgba(0,0,0,0.2);z-index:2;background-repeat: no-repeat;background-size: contain;"><div class="error-reason-div"><img src="/svg/warning.svg" class="status-warning" /><div class="error-reason"></div></div></div><div class="player-touch-guard"></div>').nx(t.get(["isImageMode"],!1),t,{block:E},{}).h("select",t,{block:J},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:ee},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:ie},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:ne},{key:t.get(["privacy"],!1),value:2},"h").w("</div>")}function r(e,t){return e.w('<video class="primary-video" id="primary-video" crossorigin="anonymous" controls playsinline ').x(t.get(["loop"],!1),t,{block:o},{}).w(">").h("eq",t,{block:a},{key:t.get(["type"],!1),value:"url"},"h").w("Your browser does not support the video tag.").x(t.get(["subtitlesEnabled"],!1),t,{block:s},{}).w('</video><canvas class="se-effects-canvas"></canvas><div class="se-effects-components-container"></div>').x(t.get(["showSetFrame"],!1),t,{block:d},{}).w(" ")}function o(e,t){return e.w(" loop ")}function a(e,t){return e.w('<source crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">")}function s(e,t){return e.x(t.get(["subtitlesFromServer"],!1),t,{else:l,block:c},{})}function l(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["subtitles"],!1),t,"h").w('" default="">')}function c(e,t){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(t.get(["domain"],!1),t,"h").w("/video_delivery/subtitles/").f(t.get(["token"],!1),t,"h").w('" default="">')}function d(e,t){return e.w('<video class="hidden-video" controls playsinline crossorigin="anonymous" style="display: none;"><source crossorigin="anonymous" src=').f(t.get(["src"],!1),t,"h").w(">").f(t.getPath(!1,["wizPlayer","browserDoesNotSupport"]),t,"h").w("</video> ")}function u(e,t){return e.w('<img src="').f(t.get(["src"],!1),t,"h").w('" class="primary-video" id="gifImage" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;"> ')}function p(e,t){return e.w(" ").nx(t.get(["isDelivery"],!1),t,{block:h},{}).w(" ")}function h(e,t){return e.w('<div class="secondary-video-overflow-container" style="top:0"><div class="secondary-video-container"><video class="secondary-video" crossorigin="anonymous"><source crossorigin="anonymous" src=').f(t.get(["audioSrc"],!1),t,"h").w('></video></div></div><textarea id="seTextEditable" class="se-text-editable custom-scroll hide" spellcheck="false" placeholder="Enter text here"></textarea><div class="se-components-container"></div><div class="se-crop-resizable hide"></div><div class="se-crop-highlighter se-crop-highlighter-top"></div><div class="se-crop-highlighter se-crop-highlighter-left"></div><div class="se-crop-highlighter se-crop-highlighter-bottom"></div><div class="se-crop-highlighter se-crop-highlighter-right"></div>')}function f(e,t){return e.w('<div class="se-components-droppable"></div><div class="player-border"></div>').x(t.get(["thumbnail"],!1),t,{block:m},{}).x(t.get(["previewVideo"],!1),t,{block:g},{}).x(t.get(["controls"],!1),t,{block:v},{}).w('<div class="renderless-builder-container" style="position: absolute;width: 100%;height: 100%;display:none;"></div>').x(t.get(["controls"],!1),t,{block:y},{}).w('<div class="player-loading-overlay full-screen-container hide"><div class="inner-container"></div></div>').x(t.get(["isLandingPageVideo"],!1),t,{else:b,block:w},{}).w(" ").x(t.get(["isMutedAutoPlay"],!1),t,{block:S},{}).w(" ").x(t.get(["showHoverActions"],!1),t,{block:x},{}).w(" ")}function m(e,t){return e.w('<div class="thumbnail-container full-screen-container" style="position:absolute;width:100%;height:100%;cursor: pointer;z-index:1"><img src="').f(t.get(["thumbnail"],!1),t,"h").w('" id="playerThumbnail" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;" onerror="this.style.display=\'none\'"></div>')}function g(e,t){return e.w('<div class="play-btn-container full-screen-container"><video src="').f(t.get(["previewVideo"],!1),t,"h").w('" id="preview-video-player" crossorigin="anonymous" playsinline loop /></div>')}function v(e,t){return e.w('<div id="hvMainPlayPause" class="main-play-pause"></div><div id="hvRclickOptions" class="hv-rclick-options hide" oncontextmenu="return false;"><ul><li id="hvRclickCopy" class="hv-rclick-copy">').f(t.getPath(!1,["newPlayer","copyLinkAndThumbnail"]),t,"h").w('</li><li class="hv-rclick-about">').f(t.getPath(!1,["newPlayer","aboutHippoVideo"]),t,"h").w("</li></ul></div>")}function y(e,t){return e.w('<div class="replay-btn-container full-screen-container hide"><span class="final-replybtn final-replybtn-click"><a class="replaythree replaybutton" width="20px" height="24px"><svg id="Layer_1" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 25.2 25.2"><path fill="#f47a58" d="M2.6 15.4c.7 2.5 2.4 4.7 4.8 6.1 4.9 2.8 11.2 1.1 14-3.8s1.1-11.2-3.8-14c-2.4-1.4-5.1-1.7-7.8-1-2.3.6-4.3 2-5.7 3.9l2.8-.2.2 2-4.4.3-2 .2-.2-2-.3-4.4 2-.2.2 2.9c1.7-2.3 4-3.9 6.8-4.7 3.2-.9 6.6-.4 9.5 1.2 6 3.4 8 11.1 4.6 17.1-.3.6-.7 1.1-1.1 1.6-3.8 4.7-10.6 6.1-16 3-2.9-1.7-4.9-4.4-5.8-7.5"/></svg></a></span></div>')}function b(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}function w(e,t){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}function S(e,t){return e.x(t.get(["controls"],!1),t,{block:C},{})}function C(e,t){return e.w('<div class="player-info muted-autoplay cursor-pointer hide"><img src="/svg/mute.svg" alt="volume" /> ').nx(t.get(["isMobilePlayer"],!1),t,{block:k},{}).w("</div>")}function k(e,t){return e.f(t.getPath(!1,["wizPlayer","clickToUnmute"]),t,"h")}function x(e,t){return e.w(" ").x(t.get(["controls"],!1),t,{block:_},{}).w(" ")}function _(e,t){return e.w('<div class="main-controls"><span class="backwardbtn" data-backward-value="5 sec"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"viewBox="70 10 40 40" style="enable-background:new 70 10 40 40;" xml:space="preserve"><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M101.5,23.7v15.5c0,1.1-1.3,1.8-2.2,1.2l-12.8-8.2c-0.9-0.6-0.9-1.9,0-2.4l13.8-8.8 M101.5,20.2"/></g><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M91.2,39.1v0.5c0,1.1-1.3,1.8-2.2,1.2l-12.8-8.2c-0.9-0.6-0.9-1.9,0-2.4L90,21.4 M91.2,20.6"/></g><line transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" x1="90" y1="21.4" x2="90" y2="26.9"/></svg></span><span class="final-plybtn final-plybtn-click main-plyBtn"><a class="playthree playbutton" width="20px" height="24px"><svg viewBox="0 0 24 24" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" style="overflow: visible;"><g transform="translate(0,0)" stroke="#F47A58" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" fill="transparent"><path id="playbtnpath" class="playthreepath" d="M1,1.618034 L1,1.618034 L21.763932,12 L1,22.381966 L1,12 Z" id="Triangle2"></path></g></svg></a></span><span class="forwardbtn" data-forward-value="5 sec"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"viewBox="16 10 40 40" style="enable-background:new 16 10 40 40;" xml:space="preserve"><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M24.5,23.7v15.5c0,1.1,1.3,1.8,2.2,1.2l12.8-8.2c0.9-0.6,0.9-1.9,0-2.4L25.8,21 M24.5,20.2"/></g><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M34.8,39.1v0.5c0,1.1,1.3,1.8,2.2,1.2l12.8-8.2c0.9-0.6,0.9-1.9,0-2.4L36,21.4 M34.8,20.6"/></g><line transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" x1="36" y1="21.4" x2="36" y2="26.9"/></svg></span></div>')}function E(e,t){return e.w('<div class="canvas-preview-container ').nx(t.get(["showComments"],!1),t,{else:T,block:I},{}).w('" id="canvasPreviewContainer" style="display:none;"><canvas class="quickpreview-canvas" width=128 height=72></canvas> ').x(t.get(["showComments"],!1),t,{block:R},{}).w(" ").x(t.get(["showSetFrame"],!1),t,{block:O},{}).w(" ").x(t.get(["showReactions"],!1),t,{block:N},{}).w('<input type="hidden" id="canvasHoverTime" /></div><div class="subtitles-line" id="subtitlesTrack"></div><div class="notification-line-onplay"></div><div class="cta-indicator hide"><div id="ctaIndicatorInner" class="cta-indicator-inner"></div></div><div id="chapterIndicatorId" class="hp-indicator hide"></div><div class="player-progress for-reactions disp-none"><div class="click-area-extended"></div></div>').x(t.get(["controls"],!1),t,{block:D},{}).x(t.get(["canShowDeliveryDownload"],!1),t,{block:Y},{}).x(t.get(["controls"],!1),t,{block:K},{}).w('<div id="ctaPlayerComps" class="cta-player-comps hide"></div><div id="ctaPlayerAddComp" class="cta-player-add-container hide"></div>')}function T(e,t){return e.w(" ").nx(t.get(["showReactions"],!1),t,{block:P},{})}function P(e,t){return e.w(" canvas-only-comment")}function I(e,t){return e.nx(t.get(["showReactions"],!1),t,{block:A},{}).w(" ")}function A(e,t){return e.w(" canvas-only ")}function R(e,t){return e.w('<div class="preview-add-comment" id="addCommentFromCanvas"><img src="/img/icon-discussions-white.png" /></div>')}function O(e,t){return e.w('<h6 class="set-frame-btn">').f(t.getPath(!1,["wizPlayer","setTheFrame"]),t,"h").w("</h6>")}function N(e,t){return e.w('<div class="emoji-wrap"><span><img class="react-now-play" reaction_id="1" id="reaction_id-1" src="/svg/emoji-type-1.svg" width="16"></span><span><img class="react-now-play" reaction_id="2" id="reaction_id-2" src="/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now-play" reaction_id="3" id="reaction_id-3" src="/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now-play" reaction_id="4" id="reaction_id-4" src="/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now-play" reaction_id="5" id="reaction_id-5" src="/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now-play" reaction_id="6" id="reaction_id-6" src="/svg/emoji-type-6.svg" width="16"></span></div>')}function D(e,t){return e.w('<div class="controls clear-float player-controls-wrapper player-controls-container"><div class="playbtn-container final-plybtn-click btn-play-click"><a class="solidply"><svg viewBox="0 0 17 24" width="17px" height="24px"><g stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" fill="#FFFFFF"><path class="solidply1" d="M1,1 L1,1 1,11 16,11 16,11 Z"></path><path class="solidply2" d="M1,11 L1,11 1,22 16,11 16,11 Z"></path></g></svg></a></div><div class="duration-container"><div class="video-buffered-container"></div><div class="end-time-container"><span class="end-time"></span><div class="buffer-container"></div></div><div class="current-time-container"><div class="current-time-bg"></div><span class="current-time"></span></div></div>').x(t.get(["audioControl"],!1),t,{block:L},{}).x(t.get(["settingControl"],!1),t,{block:F},{}).x(t.get(["fullscreenControl"],!1),t,{block:j},{}).w(" ").x(t.get(["canPlayerLogoView"],!1),t,{block:H},{}).w("</div>")}function L(e,t){return e.w('<div class="volume-container">').x(t.get(["isContainsAudio"],!1),t,{else:M,block:B},{}).w("</div>")}function M(e,t){return e.w('<span class="no-audio-box"><img class="audio-img mute player-volume" src="/svg/no-audio-mute.svg" alt="volume" width="15" /><div class="no-audio-pop">This video has no audio</div></span>')}function B(e,t){return e.w('<a class="volumebtn volumeon volume60" height="20px"><img src="/svg/volume.svg"><span class="mute-line"></span><span class="volume-curve"><i class="curve1"></i><i class="curve2"></i><i class="curve3"></i></span></a><div class="volume-slider-wrapper"><div class="volume-slider-container"><div class="volume-slider"></div></div></div>')}function F(e,t){return e.w('<div class="settings-container"><span class="settingsbtn-container"><a class="settingsbtn"><img src="/svg/icon-settings.svg"></a></span><div class="settings-options-wrapper"><div class="settings-options-container"><ul>').x(t.get(["showSpeedSettings"],!1),t,{block:V},{}).x(t.get(["subtitlesEnabled"],!1),t,{block:U},{}).x(t.get(["qualityControl"],!1),t,{block:z},{}).w('</ul><span class="selectedpointer"></span></div></div></div>')}function V(e,t){return e.w('<li id="speedControl"><a id="speedInfo">1x - Speed</a><div class="settings-suboptions-wrapper"><ul class="settings-suboptions" id="speedControlWrapper"><li data-id="0.5"><i></i><a>0.5X</a></li><li class="selected" data-id="1"><i></i><a>1x</a></li><li data-id="1.5"><i></i><a>1.5x</a></li><li data-id="2"><i></i><a>2x</a></li><li data-id="5"><i></i><a>5x</a></li></ul></div></li>')}function U(e,t){return e.w('<li id="subtitles"><a>Subtitles</a><div class="settings-suboptions-wrapper"><ul class="settings-suboptions" id="subtitleWrapper"><li data-value="on"><i></i><a>On</a></li><li class="selected" data-value="off"><i></i><a>Off</a></li></ul></div></li>')}function z(e,t){return e.w('<li id="qualityConrols"><a id="qualityinfo">Auto</a><div class="settings-suboptions-wrapper"><ul class="settings-suboptions" id="qualityControlWrapper"></ul></div></li>')}function j(e,t){return e.w('<div class="screensize-container"><a class="screensizebtn"><i class="ss1"></i><i class="ss2"></i><i class="ss3"></i><i class="ss4"></i></a></div>')}function H(e,t){return e.w('<div class="logo-container">').x(t.get(["playerLogo"],!1),t,{else:q,block:$},{}).w("</div>")}function q(e,t){return e.w('<a href="https://www.hippovideo.io/" target="_blank" rel="noopener"><img src="/svg/hippo-player-logo.svg" alt="logo" /></a>')}function $(e,t){return e.w("<a ").x(t.get(["addLinkToPlayerLogo"],!1),t,{block:W},{}).w(' target="_blank" rel="noopener noreferrer"><img src="').f(t.get(["playerLogo"],!1),t,"h").w('" alt="logo" /></a>')}function W(e,t){return e.x(t.get(["playerLogoLink"],!1),t,{block:G},{})}function G(e,t){return e.w('href="').f(t.get(["playerLogoLink"],!1),t,"h").w('" ')}function Y(e,t){return e.w('<div class="hv-player-download"></div>')}function K(e,t){return e.w('<div class="duration-container duration-container-fullscreen disp-none"><div class="current-time-container"><div class="current-time-bg"></div></div></div>')}function J(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:X},{},"h").w(" ")}function X(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",t,{else:Q,block:Z},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function Q(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function Z(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function ee(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:te},{},"h").w(" ")}function te(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function ie(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function ne(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}function re(e,t){return e.w('<div class="video-container hippo-video-player hv-new-player" id=').f(t.get(["id"],!1),t,"h").w('><div id="personalisedVideoLoading" class="personalised-video-loading-page" style="display: block;"><div class="loader-wrap"><div class="rp-loader"></div></div></div></div>')}function oe(e,t){return e.w('<div class="video-container hippo-video-player hv-new-player" id=').f(t.get(["id"],!1),t,"h").w(">").h("select",t,{block:ae},{key:t.get(["privacy"],!1)},"h").w(" ").h("select",t,{block:de},{key:t.get(["privacy"],!1)},"h").w(" ").h("eq",t,{block:pe},{key:t.get(["privacy"],!1),value:7},"h").w(" ").h("eq",t,{block:he},{key:t.get(["privacy"],!1),value:2},"h").w("</div>")}function ae(e,t){return e.w(" ").h("eq",t,{},{value:0},"h").w(" ").h("eq",t,{},{value:3},"h").w(" ").h("eq",t,{},{value:4},"h").w(" ").h("any",t,{block:se},{},"h").w(" ")}function se(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",t,{else:le,block:ce},{key:t.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function le(e,t){return e.f(t.getPath(!1,["wizPlayer","permissionToView"]),t,"h")}function ce(e,t){return e.f(t.getPath(!1,["wizPlayer","watchExpired"]),t,"h")}function de(e,t){return e.w(" ").h("eq",t,{},{value:5},"h").w(" ").h("eq",t,{},{value:6},"h").w(" ").h("any",t,{block:ue},{},"h").w(" ")}function ue(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","accountDeactivated"]),t,"h").w("</h3></div>")}function pe(e,t){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","limitExceeded"]),t,"h").w('</h3><h3 class="delete-video-msg">').f(t.getPath(!1,["wizPlayer","contactOwner"]),t,"h").w("</h3></div>")}function he(e,t){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(t.getPath(!1,["wizPlayer","enterPassword"]),t,"h").w('"><span class="pwd-error hide">').f(t.getPath(!1,["wizPlayer","passwordInvalid"]),t,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(t.getPath(!1,["wizPlayer","go"]),t,"h").w("</a></div></div>")}e.register("templates/component/NewPlayerView",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,T.__dustBody=!0,P.__dustBody=!0,I.__dustBody=!0,A.__dustBody=!0,R.__dustBody=!0,O.__dustBody=!0,N.__dustBody=!0,D.__dustBody=!0,L.__dustBody=!0,M.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,V.__dustBody=!0,U.__dustBody=!0,z.__dustBody=!0,j.__dustBody=!0,H.__dustBody=!0,q.__dustBody=!0,$.__dustBody=!0,W.__dustBody=!0,G.__dustBody=!0,Y.__dustBody=!0,K.__dustBody=!0,J.__dustBody=!0,X.__dustBody=!0,Q.__dustBody=!0,Z.__dustBody=!0,ee.__dustBody=!0,te.__dustBody=!0,ie.__dustBody=!0,ne.__dustBody=!0,re.__dustBody=!0,oe.__dustBody=!0,ae.__dustBody=!0,se.__dustBody=!0,le.__dustBody=!0,ce.__dustBody=!0,de.__dustBody=!0,ue.__dustBody=!0,pe.__dustBody=!0,he.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/component/NewPlayerView",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="video-container hippo-video-player hv-new-player hvplayer-wrapper" id=').f(t.get(["id"],!1),t,"h").w(">").x(t.get(["isPrivacy"],!1),t,{else:i,block:o},{}).w("</div>")}function i(e,t){return e.x(t.get(["initial"],!1),t,{else:n,block:r},{})}function n(e,t){return e.p("templates/player_2022/player",t,t,{})}function r(e,t){return e.p("templates/player_2022/initial_loader",t,t,{})}function o(e,t){return e.p("templates/player_2022/privacy",t,t,{})}e.register("templates/player_2022/base",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/player_2022/base",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return C}));i(96),i(180),i(23),i(270),i(52),i(60),i(65),i(175),i(82),i(206),i(66),i(73),i(97),i(133),i(63),i(134);var n=i(77),r=i.n(n),o=i(112),a=i.n(o),s=i(1),l=i.n(s),c=i(429),d=i(425),u=i.n(d),p=i(5),h=i.n(p),f=i(46),m=i(426),g=i.n(m),v=i(427),y=i(7);function b(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function S(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function C(t){var i=t.videoPlayerView,n=t.token,o=t.tokenType,d=t.recorder,p=t.recorderApiModel,m=t.isPersonalisationEnabled,w=t.customColors,C=t.footageUrls,k=t.showSimpleEditor,x=t.projectJson,_=t.integrationType,E=t.onSimpleEditorInitialize,T=Object(s.useState)(d.recordDetails),P=T[0],I=T[1],A=Object(s.useContext)(f.a).recorderInitOptions.edit,R=Object(y.c)(),O=Object(s.useRef)(!1),N=Object(s.useRef)(),D=Object(s.useRef)(x),L=Object(s.useRef)();Object(s.useEffect)((function(){if(!P||!P.asset_id)return d.getRecordDetails().then((function(e){I(e)})).catch((function(e){console.error("ERROR IN GETTING RECORD DETAILS ",e)})),function(){d.cancelGetRecordDetails()}}),[d]);return Object(s.useEffect)((function(){N.current&&(N.current.innerHTML+=u()(e.extend(g.a,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?S(Object(i),!0).forEach((function(t){r()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):S(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({shouldHideTrimTimer:"true",integrationType:_,isAddImageEnabled:!1,canShowPersonalization:m,mfValues:h.a.personalization.defaultMergeFields,origin:R},function(){try{var e={};if(A&&"object"===a()(A)&&null!==A)for(var t in A)!1!==A[t]&&"false"!==A[t]||(e[t]="false");return e}catch(e){return{}}}()))),O.current=!0)}),[N]),Object(s.useEffect)((function(){i&&N.current&&P&&O.current&&function(){if(P.asset_id){var e={el:N.current,fromSDK:!0,videoPlayerView:i,integration_type:_,assetId:P&&P.asset_id,token:n,tokenType:o,recorder:d,recorderApiModel:p,isBlurEnabled:!0,embeddedDigest:P&&P.delivery_token,isPersonalizationEnabled:m,customColors:w,authoringId:P&&P.authoring_id,footageUrls:C};L.current?L.current.initialize(e):L.current=new c.a(e),E&&E(L.current)}}()}),[i,N,P,O]),Object(s.useEffect)((function(){if(L.current)if(k){L.current.enable();var e,t=b(N.current.getElementsByClassName("simple-edit-container"));try{for(t.s();!(e=t.n()).done;){e.value.classList.remove("hide")}}catch(e){t.e(e)}finally{t.f()}L.current.height="140px"}else{var i,n=b(N.current.getElementsByClassName("simple-edit-container"));try{for(n.s();!(i=n.n()).done;){i.value.classList.add("hide")}}catch(e){n.e(e)}finally{n.f()}L.current.height="0"}}),[k]),Object(s.useEffect)((function(){return D.current=x,x&&L.current&&i&&(setTimeout((function(){L.current.setProjectJson(x)}),300),i.show()),function(){}}),[x]),Object(s.useEffect)((function(){L.current&&i&&D.current&&(setTimeout((function(){L.current.setProjectJson(x)}),300),i.show())}),[L,i]),l.a.createElement(v.a,{showSimpleEditor:!0,ref:N})}}).call(this,i(10))},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="sticker-family-container sticker-family-container-').f(t.get(["i"],!1),t,"h").w('"><img class="sticker-family-main" src = "').f(t.get(["mainImg"],!1),t,"h").w('" id="sticker-family-main-').f(t.get(["i"],!1),t,"h").w('"><div class="custom-scroll sticker-family-all hide"></div></div>')}e.register("templates/simple_edit/sticker_family",t),t.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/simple_edit/sticker_family",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.x(t.get(["showAsModal"],!1),t,{else:i,block:s},{})}function i(e,t){return e.w('<center class="hippo-progress-loader"><div class="hippo-progress-text" id="progressText"> Preparing File... </div>').x(t.get(["showHippoIcon"],!1),t,{else:n,block:r},{}).w("</center>")}function n(e,t){return e.w('<div class="hippo-branding-loader"><span></span><span></span><span></span><span></span><span></span></div>')}function r(e,t){return e.x(t.get(["isVirtualBg"],!1),t,{else:o,block:a},{}).w('<div class="hippo-progress-container text-left"><div class="hippo-progress-strip"></div><div class="hippo-progress-fill-strip" id="progressFillStrip"></div></div>')}function o(e,t){return e.w('<img class="hippo-progress-gif" src="/img/hippo-yoga.gif">')}function a(e,t){return e.w('<img class="hippo-progress-gif virtualbg-notify-img" src="/img/virtualbg-notify.png">')}function s(e,t){return e.w('<div class="modal-backdrop" id="progressBackdrop"><div class="large-4 large-offset-4 medium-6 medium-offset-3 hippo-progress"><center class="hippo-progress-loader"><div class="hippo-progress-text" id="progressText"> Preparing File... </div>').x(t.get(["showHippoIcon"],!1),t,{else:l,block:c},{}).w("</center></div></div>")}function l(e,t){return e.w('<div class="hippo-branding-loader"><span></span><span></span><span></span><span></span><span></span></div>')}function c(e,t){return e.x(t.get(["isVirtualBg"],!1),t,{else:d,block:u},{}).w('<div class="hippo-progress-container text-left"><div class="hippo-progress-strip"></div><div class="hippo-progress-fill-strip" id="progressFillStrip"></div></div>')}function d(e,t){return e.w('<img class="hippo-progress-gif" src="/img/hippo-yoga.gif">')}function u(e,t){return e.w('<img class="hippo-progress-gif virtualbg-notify-img" src="/img/virtualbg-notify.png">')}e.register("templates/component/hippo_yoga",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/component/hippo_yoga",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(0),i(10),i(25),i(94),i(21)],void 0===(r=function(e,t,i,n,r){"use strict";return r=r.default,i.Model.extend({idAttribute:"id",defaults:{id:null},initialize:function(e){},url:function(){var e=this.attributes.id?this.attributes.id:"";return JSON.parse(n).getVideoCategories+(e?"/"+e:"")},parse:function(e){return e},getVideoCategories:function(e,t){r.call({url:JSON.parse(n).getAllVideoCategories,method:"GET",success:e,error:t})},getMultipleVideoCategories:function(e,t,i,o){r.call({url:JSON.parse(n).getMultipleCategoryVideos+e,method:"POST",data:t,success:i,error:o})},setDefaultVideoCategory:function(e,t,i,o,a){var s={set_default:i,from:t};r.call({url:JSON.parse(n).setDefaultVideoCategory+"/"+e,method:"PUT",data:s,success:o,error:a})},getVideoCategoriesWithToken:function(e,t,i){r.call({url:JSON.parse(n).getVideoCategoriesWithToken+"/"+e,method:"GET",success:t,error:i})},getCategoryDetails:function(e,t,i){r.call({url:JSON.parse(n).getVideoCategories+"/details/"+e,method:"GET",success:t,error:i})},getVideoGroups:function(e,t,i){r.call({url:JSON.parse(n).getVideoGroups+"?asset_id="+e,method:"GET",success:t,error:i})},getVideoCategoriesAndSelected:function(e,t,i){r.call({url:JSON.parse(n).selectedVideoCategories+"/"+e,method:"GET",success:t,error:i})},getVideosOfCategory:function(e,t,i,o){r.call({url:JSON.parse(n).getCategoryVideos+"/"+e+"/"+t,method:"GET",success:i,error:o})},getVideosOfCategoryWithToken:function(e,t,i,o,a){r.call({url:JSON.parse(n).getCategoryVideosWithToken+"/"+e+"/"+t+"/"+i,method:"GET",success:o,error:a})},assignCategories:function(e,t,i,o){var a=new FormData;a.append("asset_id",e),a.append("cat_ids",t),r.call({url:JSON.parse(n).assignCategories,method:"POST",data:a,contentType:!1,processData:!1,success:i,error:o})},assignGroups:function(e,t,i){r.call({url:JSON.parse(n).assignGroups,method:"POST",data:e,success:t,error:i})},assignVideos:function(e,t,i,o){var a=new FormData;a.append("asset_ids",e),a.append("cat_ids",t),r.call({url:JSON.parse(n).assignVideos,method:"POST",data:a,contentType:!1,processData:!1,success:i,error:o})},searchCategories:function(e,t,i,o,a){var s=new FormData;t&&s.append("search_token",e),s.append("is_search",t),s.append("order_type",i);var l=JSON.parse(n).createVideo+"/1/search_category";r.call({url:l,method:"POST",data:s,contentType:!1,processData:!1,success:o,error:a})},assignToTeacher:function(e,t,i,o){var a="asset_id="+e+"&token="+t;r.call({url:JSON.parse(n).createVideo+"/assign_to_teacher",method:"POST",data:a,success:i,error:o})},deleteVideoCategory:function(e,t,i){r.call({url:JSON.parse(n).deleteVideoCategory+"/"+e,method:"DELETE",success:t,error:i})},saveDocumentInfo:function(e,t,i){r.call({url:JSON.parse(n).saveDocumentInfo,method:"POST",data:e,success:t,error:i})},getUsersAndGroups:function(e,t){r.call({url:"/api/internal/get_user_and_group_list",method:"GET",success:e,error:t})},updatePinFolder:function(e,t,i){r.call({url:JSON.parse(n).updatePinFolder,method:"POST",data:e,success:t,error:i})}})}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="container"><div class="row"><div class="large-8 large-offset-2 medium-10 medium-offset-1 small-12 import-media-container"><div class="import-header clearfix"><div class="pull-left"> ').h("eq",t,{else:i,block:n},{key:t.get(["type"],!1),value:"doc"},"h").w(' </div><div class="pull-right"> <img src="/svg/close-gray.svg" alt="close" id="closeImport"/> </div></div><div class="tab-container" id="tabContainer">').x(t.get(["fromVideoPages"],!1),t,{block:a},{}).x(t.get(["canShowImportFromLocal"],!1),t,{block:l},{}).x(t.get(["canShowVideoLibrary"],!1),t,{block:c},{}).x(t.get(["canShowRecentlyUsed"],!1),t,{block:d},{}).nx(t.get(["fromVideoPages"],!1),t,{block:u},{}).x(t.get(["canShowAudioLibrary"],!1),t,{block:h},{}).x(t.get(["canShowGdriveImport"],!1),t,{block:f},{}).x(t.get(["canImportImageFromLibrary"],!1),t,{block:m},{}).x(t.get(["canShowImageWebSearch"],!1),t,{block:g},{}).x(t.get(["canShowTestimonial"],!1),t,{block:v},{}).x(t.get(["canShowShopify"],!1),t,{block:y},{}).x(t.get(["canShowAddViaLink"],!1),t,{block:b},{}).x(t.get(["canShowCreateVideoOption"],!1),t,{block:w},{}).x(t.get(["canShowWebLink"],!1),t,{block:S},{}).w('</div><div class="import-body no-box-shadow">').p("templates/partials/import_from_local",t,t,{}).p("templates/partials/import_recently_used",t,t,{}).p("templates/partials/import_from_web",t,t,{}).p("templates/partials/import_from_library",t,t,{}).p("templates/partials/import_from_drive",t,t,{}).p("templates/partials/import_from_video_library",t,t,{}).p("templates/partials/import_from_shopify",t,t,{}).p("templates/partials/import_from_custom_link",t,t,{}).p("templates/partials/import_from_website_link",t,t,{}).nx(t.get(["handleOneFileUpload"],!1),t,{block:C},{}).w('<div id="importVideoFormContainer" class="hide"></div></div><div class="import-footer text-right clearfix"><div class="powered-by pull-left hide" id="footerPoweredBy"><span class="powered-by-label"> Powered by </span><img src="/svg/flickr-logo.svg" alt="Flickr" /><img src="/img/pexels-logo.png" alt="Pexels" /></div>').x(t.get(["isOnlyDoc"],!1),t,{block:k},{}).w('<div class="pull-left foot-note" id="footnote">').x(t.get(["handleOneFileUpload"],!1),t,{block:x},{}).w("<div>").h("eq",t,{else:T,block:P},{key:t.get(["type"],!1),value:"doc"},"h").w('</div></div><div class="pull-right"><button class="button wiz-secondary-btn wiz-new-secondary-btn radius" id="cancelImport"> ').f(t.get(["cancel"],!1),t,"h").w(' </button><button class="button wiz-primary-btn" id="import" disabled>').h("eq",t,{block:I},{key:t.get(["type"],!1),value:"video"},"h").h("eq",t,{block:A},{key:t.get(["type"],!1),value:"doc"},"h").w(" ").h("ne",t,{block:R},{key:t.get(["type"],!1),value:"video"},"h").w('</button><button class="button wiz-secondary-btn wiz-new-secondary-btn radius hide" id="cancelVideoForm"> ').f(t.get(["changeFile"],!1),t,"h").w(' </button><button class="button wiz-primary-btn hide" id="submitVideoForm"> ').f(t.get(["import"],!1),t,"h").w(" </button></div></div></div></div></div>")}function i(e,t){return e.w(" ").f(t.get(["title"],!1),t,"h").w(" ")}function n(e,t){return e.w(" ").x(t.get(["isOnlyDoc"],!1),t,{else:r,block:o},{})}function r(e,t){return e.w(" ").f(t.get(["importDocument"],!1),t,"h").w(" ")}function o(e,t){return e.w(" ").f(t.get(["importDocumentOnly"],!1),t,"h").w(" ")}function a(e,t){return e.x(t.get(["canShowVideoLibraryMulti"],!1),t,{block:s},{})}function s(e,t){return e.w('<div class="tab" id="importVideoLibraryTabMulti" data-panel-id="importVideoLibraryl"> ').f(t.get(["importFromVideoLibraryMulti"],!1),t,"h").w(" </div>")}function l(e,t){return e.w('<div class="tab active" id="importLocalTab" data-panel-id="importFromLocal"> ').f(t.get(["importFromLocal"],!1),t,"h").w(" </div>")}function c(e,t){return e.w('<div class="tab" id="importVideoLibrarylTab" data-panel-id="importVideoLibraryl"> ').f(t.get(["importFromVideoLibrary"],!1),t,"h").w(" </div>")}function d(e,t){return e.w('<div class="tab" id="recentlyUsedTab" data-panel-id="importRecentlyUsed"> ').f(t.get(["recentlyUsed"],!1),t,"h").w(" </div>")}function u(e,t){return e.x(t.get(["canShowVideoLibraryMulti"],!1),t,{block:p},{})}function p(e,t){return e.w('<div class="tab" id="importVideoLibraryTabMulti" data-panel-id="importVideoLibraryl"> ').f(t.get(["importFromVideoLibraryMulti"],!1),t,"h").w(" </div>")}function h(e,t){return e.w('<div class="tab" id="importLibraryTab" data-panel-id="importFromLibrary"> ').f(t.get(["importFromLibrary"],!1),t,"h").w(" </div>")}function f(e,t){return e.w('<div class="tab" id="importDriveTab" data-panel-id="importFromDrive"> ').f(t.get(["importFromDrive"],!1),t,"h").w(" </div>")}function m(e,t){return e.w('<div class="tab" id="importImgLibTab" data-panel-id="importImageFromLibrary"> ').f(t.get(["importImageFromLib"],!1),t,"h").w(" </div>")}function g(e,t){return e.w('<div class="tab" id="importWebTab" data-panel-id="importFromWeb"> ').f(t.get(["searchFromWeb"],!1),t,"h").w(" </div>")}function v(e,t){return e.w('<div class="tab" id="importTestimonial" data-panel-id="importVideoLibraryl"> ').f(t.get(["importTestimonial"],!1),t,"h").w(" </div>")}function y(e,t){return e.w('<div class="tab" id="importShopifyTab" data-panel-id="importFromShopify"> ').f(t.get(["shopifyTitle"],!1),t,"h").w(" </div>")}function b(e,t){return e.w('<div class="tab" id="importViaLinkTab" data-panel-id="importFromLink"> ').f(t.get(["addViaLinkTitle"],!1),t,"h").w(" </div>")}function w(e,t){return e.w('<div class="additional-options-block"><a id="libraryRefresh" class="button wiz-border-button create-video-btn no-margin hide"><img class="reload-img" src="/svg/retake-orange.svg"></a><a id="createVideoFromImportBtn" class="button wiz-border-button create-video-btn no-margin" target="_blank" href="/video/record">').f(t.get(["createVideo"],!1),t,"h").w("</a></div>")}function S(e,t){return e.w('<div class="tab" id="importViaWebLink" data-panel-id="importFromWebLink"> ').f(t.get(["WebLinkTitle"],!1),t,"h").w(" </div>")}function C(e,t){return e.p("templates/partials/import_selected_drawer",t,t,{}).w('<div class="drawer-handle" id="openDrawHandle"><img src="/svg/arrow-inactive.svg" alt="Left" class="arrow-marker" /></div>')}function k(e,t){return e.w('<div class="pull-left foot-note"><span> ').f(t.get(["note"],!1),t,"h").w(': </span> <div style="display: inline-block"> ').f(t.get(["canBeUsedOnly"],!1),t,"h").w(" </div></div>")}function x(e,t){return e.w(" <span> ").f(t.get(["note"],!1),t,"h").w(": </span> ").h("eq",t,{else:_,block:E},{key:t.get(["type"],!1),value:"doc"},"h").w(" ")}function _(e,t){return e.w(" ").f(t.get(["importHelp"],!1),t,"h").w(" ")}function E(e,t){return e.w(" ").f(t.get(["importPDFOnly"],!1),t,"h").w("<b>").f(t.get(["videoLandingPages"],!1),t,"h").w("</b> ")}function T(e,t){return e.w(" ").f(t.get(["supports"],!1),t,"h").w(" ").f(t.get(["formatsList"],!1),t,"h").w(" ").f(t.get(["formatsWithMaxSize"],!1),t,"h").w(" ").f(t.get(["maxFileSize"],!1),t,"h").w(" MB")}function P(e,t){return e.f(t.get(["canBeUsedOnly"],!1),t,"h").w("<br>").f(t.get(["canBeUsedOnlyImage"],!1),t,"h")}function I(e,t){return e.f(t.get(["proceed"],!1),t,"h")}function A(e,t){return e.f(t.get(["proceed"],!1),t,"h")}function R(e,t){return e.h("ne",t,{block:O},{key:t.get(["type"],!1),value:"doc"},"h")}function O(e,t){return e.f(t.get(["import"],!1),t,"h")}e.register("templates/component/import_media",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,T.__dustBody=!0,P.__dustBody=!0,I.__dustBody=!0,A.__dustBody=!0,R.__dustBody=!0,O.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/component/import_media",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="import-body-container import-video-form" id="importVideoForm"><div class="import-web-content image-gallery main-gallery custom-scroll"><form name="importVideoDetails" id="importVideoDetails"><div class="row"><div class="small-12 clearfix"><label class="small-3 inline cat-form-la pull-left"> ').x(t.get(["isMultipleImageImport"],!1),t,{else:i,block:n},{}).w(' </label><div class="small-8 pull-left image-gallery"><div class="image pull-left import-video-form-preview">').x(t.get(["thumbnail_url"],!1),t,{else:r,block:u},{}).w('</div><div class="pull-left desc-container"><label class="import-file-name"> ').x(t.get(["isMultipleImageImport"],!1),t,{else:p,block:h},{}).w("</label>").x(t.get(["isMultipleImageImport"],!1),t,{else:f,block:g},{}).w("</div></div></div>").x(t.get(["askVideoDetails"],!1),t,{block:v},{}).w('</div></form><div id="videoImportStatusLoading" class="hide"></div></div></div>')}function i(e,t){return e.w(" ").f(t.get(["selectedFile"],!1),t,"h").w(" ")}function n(e,t){return e.w(" ").f(t.get(["selectedFiles"],!1),t,"h").w(" ")}function r(e,t){return e.x(t.get(["isImagePreview"],!1),t,{else:o,block:d},{})}function o(e,t){return e.x(t.get(["isAudioPreview"],!1),t,{else:a,block:c},{})}function a(e,t){return e.x(t.get(["isVideoPreview"],!1),t,{else:s,block:l},{})}function s(e,t){return e.w('<img src="/img/film-hippo.png" alt="Video Thumbnail" class="gallery-view" />')}function l(e,t){return e.w('<video autoplay muted play><source src="').f(t.get(["preview_url"],!1),t,"h").w('" type="').f(t.get(["type"],!1),t,"h").w('"></video>')}function c(e,t){return e.w('<audio controls><source src="').f(t.get(["preview_url"],!1),t,"h").w('" type="').f(t.get(["type"],!1),t,"h").w('"></audio>')}function d(e,t){return e.w('<img src="').f(t.get(["preview_url"],!1),t,"h").w('" alt="Video Thumbnail" class="gallery-view" />')}function u(e,t){return e.w('<img src="').f(t.get(["thumbnail_url"],!1),t,"h").w('" alt="Video Thumbnail" class="gallery-view" />')}function p(e,t){return e.w(" ").f(t.get(["name"],!1),t,"h").w(" ")}function h(e,t){return e.w(" ").f(t.get(["totalFileNamesText"],!1),t,"h").w(" ")}function f(e,t){return e.x(t.get(["sizeFormatted"],!1),t,{block:m},{})}function m(e,t){return e.w('<label class="import-file-size"> ').f(t.get(["sizeFormatted"],!1),t,"h").w(" </label>")}function g(e,t){return e.w('<label class="import-file-size"> ').f(t.get(["totalFileCount"],!1),t,"h").w(" files </label>")}function v(e,t){return e.nx(t.get(["isMultipleImageImport"],!1),t,{block:y},{}).x(t.get(["isCategoryAvailable"],!1),t,{block:S},{}).w('<div class="small-12 clearfix"><label class="small-3 inline cat-form-la pull-left"> ').f(t.get(["addTags"],!1),t,"h").w(' </label><div class="small-8 pull-left"><div id="importVideoTags"></div></div></div>').nx(t.get(["isMultipleImageImport"],!1),t,{block:x},{})}function y(e,t){return e.w('<div class="small-12 clearfix"><label class="small-3 inline cat-form-la pull-left required-mark"> ').x(t.get(["isVideo"],!1),t,{else:b,block:w},{}).w(' </label><div class="small-8 pull-left"><input type="text" name="importVideoTitle" id="importVideoTitle" value="').f(t.get(["name"],!1),t,"h").w('"/></div></div>')}function b(e,t){return e.w(" ").f(t.get(["docTitle"],!1),t,"h").w(" ")}function w(e,t){return e.w(" ").f(t.get(["videoTitle"],!1),t,"h").w(" ")}function S(e,t){return e.w('<div class="small-12 clearfix"><label class="small-3 inline cat-form-la pull-left"> ').f(t.get(["addToCategory"],!1),t,"h").w(' </label><div class="small-8 pull-left"><select name="categories" multiple="multiple" id="importVideoCategories">').s(t.get(["categories"],!1),t,{block:C},{}).w("</select></div></div>")}function C(e,t){return e.w('<option value="').f(t.get(["id"],!1),t,"h").w('"').x(t.get(["is_default_category"],!1),t,{block:k},{}).w("> ").f(t.get(["name"],!1),t,"h").w(" </option>")}function k(e,t){return e.w(" selected")}function x(e,t){return e.w('<div class="small-12 clearfix"><label class="small-3 inline cat-form-la pull-left"> ').f(t.get(["description"],!1),t,"h").w(' </label><div class="small-8 pull-left"><textarea rows="5" name="importVideoDesc" id="importVideoDesc" placeholder="Add Description"></textarea></div></div>').x(t.get(["showPreserveTransparency"],!1),t,{block:_},{})}function _(e,t){return e.w('<div class="small-12 clearfix" id="preserveTransparencyContainer"><label class="small-3 inline cat-form-la pull-left"> ').f(t.get(["preserveTransparency"],!1),t,"h").w(' </label><div class="small-8 pull-left"><input class="wiz-checkbox-blue" type="checkbox" id="preserveTransparency"><label class="" for="preserveTransparency"></label></div></div>')}e.register("templates/partials/import_video_form",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/partials/import_video_form",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t,i){var n,r;n=[i(16),i(18)],void 0===(r=function(e,t){return function(e){function t(e,t){return e.w('<div class="simple-edit-container hide ').x(t.get(["integrationType"],!1),t,{block:i},{}).w('"><div class="simple-edit-controls"><div class="se-control-detail default-control-detail clearfix hide"><span class="info-text"></span></div>').h("ne",t,{block:n},{key:t.get(["trim"],!1),value:"false"},"h").h("ne",t,{block:o},{key:t.get(["crop"],!1),value:"false"},"h").h("ne",t,{block:a},{key:t.get(["image"],!1),value:"false"},"h").h("ne",t,{block:p},{key:t.get(["text"],!1),value:"false"},"h").h("ne",t,{block:v},{key:t.get(["stickers"],!1),value:"false"},"h").h("ne",t,{block:y},{key:t.get(["callout"],!1),value:"false"},"h").h("ne",t,{block:k},{key:t.get(["blur"],!1),value:"false"},"h").h("ne",t,{block:x},{key:t.get(["resize"],!1),value:"false"},"h").w('<div class="simple-edit-buttons-box ').x(t.get(["integrationType"],!1),t,{block:_},{}).w('">').h("ne",t,{block:E},{key:t.get(["trim"],!1),value:"false"},"h").h("ne",t,{block:P},{key:t.get(["crop"],!1),value:"false"},"h").nx(t.get(["fromQuickRecord"],!1),t,{block:A},{}).h("ne",t,{block:D},{key:t.get(["stickers"],!1),value:"false"},"h").h("ne",t,{block:M},{key:t.get(["callouts"],!1),value:"false"},"h").h("ne",t,{block:F},{key:t.get(["blur"],!1),value:"false"},"h").h("ne",t,{block:U},{key:t.get(["resize"],!1),value:"false"},"h").w('</div></div></div><div class="modal-backdrop image-upload-progress-container" id="imageUploadProgessContainer"><div class="text-center loading-container"><div class="progress-text" id="imageUploadProgressText"> </div></div></div>')}function i(e,t){return e.f(t.get(["integrationType"],!1),t,"h").w("-simple-edit")}function n(e,t){return e.w('<div class="se-control-detail clearfix trim-control-detail hide"><img class="ruler ruler-static" src="').f(t.get(["origin"],!1),t,"h").w('/img/ruler-two.png"><canvas class="ruler ruler-dynamic hide" width="1000" height="15"></canvas><input type="text" class="sliderValue" style="display:none" data-index="0" value="0" /><input type="text" class="sliderValue" style="display:none" data-index="1" value="0" /><div class="trim-slider" id="trimSlider"></div>').h("ne",t,{block:r},{key:t.get(["shouldHideTrimTimer"],!1),value:"true"},"h").w('<div class="trim-preview-container"><video class="trim-preview-video"></video></div><div class="preview-trim-arrow"></div></div>')}function r(e,t){return e.w('<div class="trim-before-container"><div class="trim-before-time-element"><div class="arrow right-arrow"></div><span class="trim-before-time"></span></div><div class="trim-before-pop"><span>').f(t.getPath(!1,["simpleEdit","trimStartTime"]),t,"h").w('</span><input type="text" class="trim-before-input"><div class="before-trim-div"><div class="arrow up-arrow trim-input-btn trim-input-btn-plus"></div><div class="arrow down-arrow trim-input-btn trim-input-btn-minus"></div></div><div class="trim-arrow"></div></div></div><div class="trim-after-container"><div class="trim-after-time-element"><div class="arrow left-arrow"></div><span class="trim-after-time"></span></div><div class="trim-after-pop"><span>').f(t.getPath(!1,["simpleEdit","trimEndTime"]),t,"h").w('</span><input type="text" class="trim-after-input"><div class="after-trim-div"><div class="arrow up-arrow trim-input-btn trim-input-btn-plus"></div><div class="arrow down-arrow trim-input-btn trim-input-btn-minus"></div></div><div class="trim-arrow"></div></div></div>')}function o(e,t){return e.w('<div class="se-control-detail clearfix crop-control-detail hide"><div class="pull-left reposition-webcam-container"><input type="checkbox" class="reposition-webcam wiz-checkbox-blue" id="move" checked /><label for="move">').f(t.getPath(!1,["simpleEdit","moveWebcam"]),t,"h").w('</label></div><div class="pull-right text-right"><a class="apply-crop apply-btn" id="cropApplyBtn">').f(t.getPath(!1,["simpleEdit","apply"]),t,"h").w('</a><a class="reset-crop reset-btn" id="cropResetBtn">').f(t.getPath(!1,["simpleEdit","reset"]),t,"h").w("</a></div></div>")}function a(e,t){return e.x(t.get(["isAddImageEnabled"],!1),t,{block:s},{})}function s(e,t){return e.w('<div class="se-control-detail clearfix addimage-control-detail hide">').nx(t.get(["fromQuickRecord"],!1),t,{else:l,block:d},{}).w('<div class="addimage-selected hide"><div class="left"><input type="checkbox" class="wiz-checkbox-blue" id="imageArLock" checked /><label for="imageArLock" class="image-ar-lock">').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w('</label></div><div class="left opacity-container"><span class="left">').f(t.getPath(!1,["simpleEdit","opacity"]),t,"h").w('</span><input class="left slider" type="range" min="0" max="100" id="imageOpacitySlider"><input class="left slider-ip" type="number" min="0" max="100" value="100" id="imageOpacityInput"></div><div class="right delete-btn-container"><div id="deleteImage" class="delete-btn">').f(t.getPath(!1,["simpleEdit","delete"]),t,"h").w("</div></div></div></div>")}function l(e,t){return e.w('\x3c!-- new quick record flow personalization --\x3e<div class="addimage-initial cpv-personalization hide"><div class="add-image-action left add-text hide">\t<img src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-blue.svg"/><span id="addTextLink">\t').f(t.getPath(!1,["simpleEdit","addText"]),t,"h").w('\t</span>\t</div><div class="add-image-action left" id="addImageBtn"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-blue.svg"/><span>').f(t.getPath(!1,["simpleEdit","addImage"]),t,"h").w("</span></div>").x(t.get(["canShowPersonalization"],!1),t,{block:c},{}).w("</div>\x3c!-- end of new quick record flow personalization --\x3e")}function c(e,t){return e.w('<div class="add-image-action left" id="addPersonalizedImageBtn"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-blue.svg"/><span>').f(t.getPath(!1,["simpleEdit","addPersonalizedImage"]),t,"h").w('</span></div><div class="add-image-action left" id="addWebsiteImageBtn"><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/plus-ico-blue.svg"/><span>').f(t.getPath(!1,["simpleEdit","addWebsiteImage"]),t,"h").w("</span></div>")}function d(e,t){return e.w('<div class="addimage-initial hide"><div class="add-image-action left add-text hide">\t<span id="addTextLink">\t').f(t.getPath(!1,["simpleEdit","addText"]),t,"h").w('\t</span>\t</div><div class="add-image-action left" id="addImageBtn"><span>').f(t.getPath(!1,["simpleEdit","addImage"]),t,"h").w("</span></div>").x(t.get(["canShowPersonalization"],!1),t,{block:u},{}).w("</div>")}function u(e,t){return e.w('<div class="add-image-action left" id="addPersonalizedImageBtn"><span>').f(t.getPath(!1,["simpleEdit","addPersonalizedImage"]),t,"h").w('</span></div><div class="left add-image-tooltip"><img src="').f(t.get(["origin"],!1),t,"h").w('/img/help.png"><div class="add-image-tooltip-content">').f(t.getPath(!1,["simpleEdit","addImageInfo"]),t,"h").w('<a href="https://help.hippovideo.io/support/solutions/articles/19000100178-image-personalization" target="_blank">').f(t.getPath(!1,["simpleEdit","learnMore"]),t,"h").w('</a></div></div><div class="add-image-action left" id="addWebsiteImageBtn"><span>').f(t.getPath(!1,["simpleEdit","addWebsiteImage"]),t,"h").w('</span></div><div class="left add-image-tooltip"><img src="').f(t.get(["origin"],!1),t,"h").w('/img/help.png"><div class="add-image-tooltip-content">').f(t.getPath(!1,["simpleEdit","addWebsiteImageInfo"]),t,"h").w('<a href="https://help.hippovideo.io/support/solutions/articles/19000100178-image-personalization" target="_blank">').f(t.getPath(!1,["simpleEdit","learnMore"]),t,"h").w("</a></div></div>")}function p(e,t){return e.w('<div class="se-control-detail clearfix addtext-control-detail hide"><div class="addtext-container"><div id="textPropertiesTab" style="display:none" class="sdk-top-wrap"><div class="sdk-text-wrap"><div class="padding-face se-font mf-custom-selector"><select class="se-text-properties se-font-selector"></select></div><div class="padding-face se-fontsize mf-custom-selector"><select class="se-text-properties se-fontsize-selector"><option value="15">15px</option><option value="17">17px</option><option value="20">20px</option><option value="25">25px</option><option value="35">35px</option><option value="40" selected>40px</option><option value="50">50px</option><option value="60">60px</option><option value="70">70px</option><option value="90">90px</option><option value="110">110px</option></select></div><div class="padding-face alignment-selector"><select class="se-text-properties se-textalign-selector"><option value="left">').f(t.getPath(!1,["simpleEdit","left"]),t,"h").w('</option><option value="center" selected>').f(t.getPath(!1,["simpleEdit","center"]),t,"h").w('</option><option value="right">').f(t.getPath(!1,["simpleEdit","right"]),t,"h").w('</option></select></div></div><div class="sdk-textstyle-wrap"><div class="se-bold-face"><input type="checkbox" id="c1" class="se-text-properties se-bold-toggle chk-btn" /><label for=\'c1\'><b>B</b></label></div><div class="italic-face"><input type="checkbox" id="c2" class="se-text-properties se-italic-toggle chk-btn" /><label for=\'c2\'><i>I</i></label></div><div class=""><div class="padding-face color-picker"><input type = "color" class="se-text-properties se-color-choose se-color-selector"/></div></div></div></div><div class="padding-face for-merge-field"><div class="mf-custom-selector mf-custom-selector-button merge-field-container">').x(t.get(["canShowPersonalization"],!1),t,{block:h},{}).w('</div><div class="padding-face se-add-text-btn text-right"><a class="add-text" id="addTextLink"><img src="').h("eq",t,{else:m,block:g},{key:t.get(["integrationType"],!1),value:"lessonly"},"h").w('" alt="plus" />').f(t.getPath(!1,["simpleEdit","addText"]),t,"h").w("</a></div></div></div></div>")}function h(e,t){return e.w('<div class="mf-selector"><select id="seMfSelector"><option selected>').f(t.getPath(!1,["simpleEdit","mergeFields"]),t,"h").w("</option>").s(t.get(["mfValues"],!1),t,{block:f},{}).w('</select></div><div class="text-right mf-label"><label><div><span class="mf-info-tooltip">').f(t.getPath(!1,["simpleEdit","mfInfoTooltip"]),t,"h").w('</span><img src="').f(t.get(["origin"],!1),t,"h").w('/svg/help1.svg" /></div></label></div>')}function f(e,t){return e.w("<option>").f(t.get(["mf"],!1),t,"h").w("</option>")}function m(e,t){return e.f(t.get(["origin"],!1),t,"h").w("/img/small-plus.png")}function g(e,t){return e.w("/img/small-plus-4a90e2.png")}function v(e,t){return e.w('<div class="se-control-detail clearfix addsticker-control-detail hide"><div class="addsticker-initial hide"><div class="sticker-btn-container clearfix"></div></div><div class="addsticker-selected hide"><div class=""><input type="checkbox" class="lock-aspect-ratio sticker-control wiz-checkbox-blue" id="sticker-lock" checked /><label for="sticker-lock">').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w('</label></div><div class=""><div class="text-right"><span>').f(t.getPath(!1,["simpleEdit","opacity"]),t,"h").w('</span></div><div class=""><select class="opacity-val sticker-control"><option value="0">0</option><option value="25">25</option><option value="50">50</option><option value="75">75</option><option value="100">100</option></select></div></div><div class="text-right"><a class="delete-sticker delete-label" id="deleteSticker">').f(t.getPath(!1,["simpleEdit","delete"]),t,"h").w("</a></div></div></div>")}function y(e,t){return e.w('<div class="se-control-detail clearfix addcallout-control-detail hide"><div class="addcallout-initial clearfix hide"><img class="callout-scroll-left pull-left" src="').h("eq",t,{else:b,block:w},{key:t.get(["integrationType"],!1),value:"lessonly"},"h").w('"><div class="callout-btn-scroll-container pull-left"><div class="callout-btn-container"></div></div><img class="callout-scroll-right pull-right" src="').h("eq",t,{else:S,block:C},{key:t.get(["integrationType"],!1),value:"lessonly"},"h").w('"><div class="callout-scroll-hide-layer"></div></div><div class="addcallout-selected hide"><div class=""><input type="checkbox" class="lock-aspect-ratio callout-control wiz-checkbox-blue" id="callout-lock" checked /><label for="callout-lock">').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w('</label></div><div class="se-callout-internal"><div class=""><span>').f(t.getPath(!1,["simpleEdit","opacity"]),t,"h").w('</span></div><div class=""><select class="opacity-val callout-control"><option value="0">0</option><option value="25">25</option><option value="50">50</option><option value="75">75</option><option value="100" selected>100</option></select></div></div><div class="se-callout-internal"><div class=""><span>').f(t.getPath(!1,["simpleEdit","color"]),t,"h").w('</span></div><div class=""><select class="callout-control callout-variation"><option value="0">').f(t.getPath(!1,["simpleEdit","default"]),t,"h").w('</option><option value="1">').f(t.getPath(!1,["simpleEdit","yellow"]),t,"h").w('</option><option value="2">').f(t.getPath(!1,["simpleEdit","orange"]),t,"h").w('</option><option value="3">').f(t.getPath(!1,["simpleEdit","green"]),t,"h").w('</option><option value="4">').f(t.getPath(!1,["simpleEdit","violet"]),t,"h").w('</option><option value="5">').f(t.getPath(!1,["simpleEdit","blue"]),t,"h").w('</option><option value="6">').f(t.getPath(!1,["simpleEdit","dark"]),t,"h").w('</option><option value="7">').f(t.getPath(!1,["simpleEdit","white"]),t,"h").w('</option></select></div></div><div class="text-right"><a class="delete-callout delete-label" id="deleteCallout">').f(t.getPath(!1,["simpleEdit","delete"]),t,"h").w("</a></div></div></div>")}function b(e,t){return e.f(t.get(["origin"],!1),t,"h").w("/img/sli-aro-left.png")}function w(e,t){return e.w("/img/sli-aro-left-4a90e2.png")}function S(e,t){return e.f(t.get(["origin"],!1),t,"h").w("/img/sli-aro-right.png")}function C(e,t){return e.w("/img/sli-aro-right-4a90e2.png")}function k(e,t){return e.w('<div class="se-control-detail clearfix blur-control-detail text-left hide"><div class="blur-initial hide" id="blurInitial">').f(t.getPath(!1,["simpleEdit","blurDescription"]),t,"h").w('<div class="outline-btn pull-right" id="applyBlur"> ').f(t.getPath(!1,["simpleEdit","addNewBlur"]),t,"h").w(' </div></div><div class="blur-selected clearfix hide" id="blurSelected"><div class="pull-left"><input type="checkbox" class="lock-aspect-ratio blur-control wiz-checkbox-blue" id="blurLock" /><label for="blurLock">').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w('</label></div><div class="pull-left content-box"><div class="props-label pull-left"><span> ').f(t.getPath(!1,["simpleEdit","strength"]),t,"h").w(' </span></div><div class="pull-left"><div class="blur-control" id="blurStrength"></div></div><div class="pull-left"><input type="number" step="1" min="0" max="100" value="25" class="blur-input" id="blurStrengthText" /></div></div><div class="pull-right text-right content-box"><a class="delete-blur delete-label" id="deleteblur">').f(t.getPath(!1,["simpleEdit","delete"]),t,"h").w("</a></div></div></div>")}function x(e,t){return e.w('<div class="se-resize-control-detail hide"><div class="se-control-detail clearfix primaryvid-control-detail hide"><input type="checkbox" class="lock-aspect-ratio primary-vid-control wiz-checkbox-blue" id="lock-three" checked /><label for="lock-three" class="cursor-pointer" >').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w('</label></div><div class="se-control-detail clearfix secondaryvid-control-detail hide"><input type="checkbox" class="lock-aspect-ratio secondary-vid-control wiz-checkbox-blue" id="lock-four" checked /><label for="lock-four">').f(t.getPath(!1,["simpleEdit","lockAspectRatioResize"]),t,"h").w("</label></div></div>")}function _(e,t){return e.f(t.get(["integrationType"],!1),t,"h").w("-se-icon-sprite")}function E(e,t){return e.w('<div class="wiz-simple-edit-btn trim-btn ').x(t.get(["isHideTrim"],!1),t,{block:T},{}).w('" id="trimBtn" tooltip="').f(t.getPath(!1,["simpleEdit","trim"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-trim"></span></div>')}function T(e,t){return e.w(" disp-none ")}function P(e,t){return e.w('<div class="wiz-simple-edit-btn crop-btn ').x(t.get(["isHideCorp"],!1),t,{block:I},{}).w('" id="cropBtn" tooltip="').f(t.getPath(!1,["simpleEdit","crop"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-crop"></span></div>')}function I(e,t){return e.w(" disp-none ")}function A(e,t){return e.h("ne",t,{block:R},{key:t.get(["text"],!1),value:"false"},"h").x(t.get(["isAddImageEnabled"],!1),t,{block:O},{})}function R(e,t){return e.w('<div class="wiz-simple-edit-btn add-text-btn" id="addTextBtn" tooltip="').f(t.getPath(!1,["simpleEdit","text"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-text"></span></div>')}function O(e,t){return e.h("ne",t,{block:N},{key:t.get(["image"],!1),value:"false"},"h")}function N(e,t){return e.w('<div class="wiz-simple-edit-btn add-image-btn" id="addImageMenuBtn" tooltip="').f(t.getPath(!1,["simpleEdit","image"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-image-personalisation"></span></div>')}function D(e,t){return e.w('<div class="wiz-simple-edit-btn add-stickers-btn ').x(t.get(["isHideStickers"],!1),t,{block:L},{}).w('" id="addStickersBtn" tooltip="').f(t.getPath(!1,["simpleEdit","emoji"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-sticker"></span></div>')}function L(e,t){return e.w(" disp-none ")}function M(e,t){return e.w('<div class="wiz-simple-edit-btn add-callouts-btn ').x(t.get(["isHideCallouts"],!1),t,{block:B},{}).w('" id="addCalloutsBtn" tooltip="').f(t.getPath(!1,["simpleEdit","callout"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-callout"></span></div>')}function B(e,t){return e.w(" disp-none ")}function F(e,t){return e.w('<div class="wiz-simple-edit-btn add-blur-btn ').x(t.get(["isHideBlur"],!1),t,{block:V},{}).w('" id="blurBtn" tooltip="').f(t.getPath(!1,["simpleEdit","blur"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-blur"></span></div>')}function V(e,t){return e.w(" disp-none ")}function U(e,t){return e.w('<div class="wiz-simple-edit-btn resize-draggable-btn ').x(t.get(["isResizableNotAllowed"],!1),t,{block:z},{}).w('" id="resizeDragBtn" tooltip="').f(t.getPath(!1,["simpleEdit","resize"]),t,"h").w('" tooltip-position="bottom"><span class="simple-edit-resize"></span></div>')}function z(e,t){return e.w(" disp-none ")}e.register("templates/simple_edit/sdk_controls",t),t.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,l.__dustBody=!0,c.__dustBody=!0,d.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,h.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,y.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,S.__dustBody=!0,C.__dustBody=!0,k.__dustBody=!0,x.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,T.__dustBody=!0,P.__dustBody=!0,I.__dustBody=!0,A.__dustBody=!0,R.__dustBody=!0,O.__dustBody=!0,N.__dustBody=!0,D.__dustBody=!0,L.__dustBody=!0,M.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,V.__dustBody=!0,U.__dustBody=!0,z.__dustBody=!0}(e),function(t,i){var n;return e.render("templates/simple_edit/sdk_controls",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;n=t})),n}}.apply(t,n))||(e.exports=r)},function(e,t){var i={__root:{wizShareI18N:{mailSuccessMsg:"Your E-mail has been sent",integrationsMsg:"Hippo Video is contextually integrated with the following services. Try now",shareYourVideo:"Share your video",cancel:"Cancel",from:"From",to:"To",enterEmailId:"Enter email id",subject:"Subject",content:"Content",mailSentSuccess:"Mail sent successfully",mailInitiationSuccess:"Campaign initiated successfully. You’ll get an email after the processing is done!",grantAccess:"Grant Access",send:"SEND",sendMore:"SEND MORE",share:"Share",export:"Export",shareUrl:"SHARE URL",embedurl:"EMBED URL",slack:"Slack",social:"SOCIAL",email:"Email",googleClassroom:"Google Classroom",newEmail:"New Email",copyAndShare:"Copy and share the video URL through Email or Helpdesk",hippoLinkShareInfo:"We’d recommend sharing with Hippo Video to experience better results",youTubeIconclickInfo:"Please click on the icon below to export to Youtube",copyLink:"Copy link",copyLinkThumbnail:"Copy Link with thumbnail",copyLinkLinkedIn:"Copy Link for LinkedIn",copyLinkOutlook:"Copy Link for Outlook",copyLinkHubspot:"Copy Link for HubSpot",checkOutVideo:"Checkout this video",copiedText:"Copied !",embedVideo:"Embed the video on your website or intranet by pasting the script",videoSize:"Video size",customSize:"Custom Size",responsive:"Responsive",copyCode:"COPY CODE",copied:"COPIED",shareVideo:"Share the video to your pages on social platforms and spread the video",Facebook:"Facebook",twitter:"Twitter",google:"Google Plus",youtube:"Youtube",gDrive:"Drive",freshDesk:"Freshdesk",zendesk:"Zendesk",fbWorkplace:"FB Wrokplace",tagPlaceHolder:"Tags help you to categorize and helps you in search",postThisVideo:"Post this video",onYourWall:"On your wall",toGroup:"To a group",selectGroups:"Select groups",post:"POST",postAsSolution:"Post as solution",postInForum:"Post in Forum",solutionCategory:"Solution Category",selectFolder:"Select Folder",title:"Title",description:"Description",status:"Status",draft:"Draft",published:"Published",type:"Type",permanant:"Permanant",workAround:"Workaround",discussionCategory:"Discussion Category",selectForum:"Select Forum",titleMandatory:"Title",message:"Message",addArticle:"Add Article",addPost:"Add Post",categories:"Categories",selectSection:"Select Section",editPermission:"Permission to Edit",details:"Details",no:"No",yes:"Yes",solutionTopics:"Solution Topics",featureRequiresPaidVersion:"This feature requires a paid version of Hippo Video",featureRequiresPaidVersionTwo:"Love Hippo Video? Leave a review on Chrome web store and enjoy premium features for a month.",featureRequiresPaidVersionThree:"Thanks for your 5 star rating. Its time to claim your reward.",upgraderOrRefer:"Refer your friends or upgrade your account to use this feature.",importExceeded:"Import limit exceeded. Upgrade your account",testimonialExceeded:"Testimonial limit exceeded. Upgrade your account",claim:"claim",review:"review",reviewEnjoy:"review and enjoy premium features",referAndEarn:"REFER AND EARN",upgrade:"UPGRADE",notNow:"NOT NOW",guestConfirmSucces:"Success",guestConfirmMsg1:"Your video is submitted successfully. You can access your video from the following URL :",guestRecordConfirmMsg1:"Your video has been sent successfully to ",guestConfirmMsg2:"",emailTitle:"Email",emailFieldRequirerd:"Email field is required",confirmYourMail:"Please confirm your account to enable sharing",resendConfirmation:"Resend confirmation",confirmSuccessMsg:"Confirmation mail sent successfully",ok:"OK",successfullySubmitted:"Ticket successfully submitted",assignmentSubmitted:"Your assignment has been successfully submitted",assignmentLink:"Assignment Link",notAllowedToEdit:"You are not allowed to edit this video",oembedWordpress:"Using Wordpress?",oembedHelpPage:"Check out our help page",downloadBandwidthLimit:"You have exhausted your bandwidth limit.",oembed:"Use oEmbed URL",embedSeo:"Push video metadata to the page for all search engines to index.",embedSeotip:"Add a video title, description, and subtitles for better indexing by search engines.",playerLogoUpgradeMsg:"Upgrade your account to Business plan for this feature.",thisFeatureNotAvilable:"This feature is not available in your current plan. Please upgrade to GROWTH for using this feature.",importLimit:"Import limit exceeded.Upgrade your account",addAccount:"Add Account",wentWrong:"Sorry, something went wrong",sendEmail:"Send Mail",sendShare:"Send / Share",sendEmailForSales:"Send this via GMail and track the video and get reports",sendViaGmail:"Send Via GMail",emailEmbed:"Email Embed",campaignExceededPrefix:"Looks like you have already sent ",campaignExceededSuffix:" personalized video emails. Purchase addon to send more.",campaignLimitExceeded:"Looks like you do not have personalization add on. Purchase add on to send personalized videos",new_template_creation_failed:"Sorry, unable to create new template.",successfullyAdded:"Successfully added",refresh:"Refresh",personalizeAndShare:"Generate Tracking URL",personalizeAndShareText:"Add details of your contacts here. Copy and send the unique link to track.",landingPage:"Sales Page",copyLinkShare:"Copy link if you want to share video through your favourite tool by filling in prospect email and name to track. Else, you can choose SEND MAIL",pleaseEnterEmail:"Please enter Email To mail Ids",assignmentTitle:"Please enter a title to the assignment",confirmAccount:"Please confirm your account inorder to proceed.",somethingWrong:"Something went wrong.",somethingWentWrong:"Something went wrong!!",successMsg:"Successfully updated",accountConfirm:"Confirm Account",inOrderToShare:"Please confirm your account inorder to share this video.",changePrivacy:"Change Privacy",privacySettings:"This video cannot be shared due to privacy settings",sharePrivatelyCheckboxText:"Pre-generate your personalized video",failedToPregenerate:"Failed to pre-generate your personalized video",pregenerateUpgradeMsg:"Failed to pre-generate your personalized video. Subscribe to Personalization add on to send awesome personalized videos.",scheduleThisMail:"Schedule this mail",scheduleAt:"Schedule At",sharePrivatelyEmptyMsg:"Fill in the contact details to copy the unique video link",SetPage:"SET DEFAULT PAGE",changePage:"Change page",removePage:"Remove",createLandingPage:"Create new sales page",emptySelectedPageDesc:"Create new sales page so video will be displayed inside the sales page.",link:"Link",shareVideoDesc:"Share your video on social media channels of your choice.",exportVideoDesc:"Export your video into any of your favorite platform.",landingPageDesc:"Choose a video sales page, where you want to embed your video.",hubspot:"Hubspot",hubspotHowTo:"How to perform this action in Hubspot?",imageUrl:"IMAGE URL",linkUrl:"LINK URL",emailTemplate:"Email Template",alignment:"Alignment",center:"Center",left:"Left",right:"Right"},wizPreview:{editVideo:"Edit Video",quickEdit:"Quick Edit",proEdit:"Pro Edit",videoInfo:"Video Info",videoComments:"Comments",videoReports:"Reports",videoShare:"Share",videoExport:"Export",videoPrivacy:"Privacy",videoEmbed:"Embed",videoTimelineActions:"Timeline Actions",videoSubtitles:"Subtitles",videoBranding:"Video Branding",videoThumbnail:"Video Thumbnail",videoTitleEndScreen:"Title Screen And End Screen",videoTitle:"Video Title",addToCategory:"Add to folder",addTags:"Add tags",groups:"Groups",addDescription:"Add description",videoTitlePlaceholder:"Enter video title",videoFoldersPlaceholder:"Click to select folder",videoTagsPlaceholder:"Click to select or add tags",videoDescPlaceholder:"Describe your video",videoGroupsPlaceholder:"Select groups",publishVideo:"Publish Video",marketingTools:"Marketing Tools",videoCampaigns:"Video Campaigns",personalization:"Personalization",personalize:"Personalize",customizeVideo:"Customize Video",videoSettings:"Video Settings",atleastOneCategory:"At least one folder should be selected",emailTo:"To",subject:"Subject",content:"Content",toPlaceholder:"Enter email id",subjectPlaceholder:"Enter the subject of the email",contentPlaceholder:"Type in something...",emailTitle:"Send an Email with the attached video",send:"Send",wistiaExport:"Export to Wistia",vimeoExport:"Export to Vimeo",driveExport:"Export to Drive",shopifyExport:"Export to Shopify",youtubeExport:"Export to Youtube",facebookExport:"Export to Facebook",configureSlackMsg:"Configure account and start posting to Slack",postToSlackMsg:"Post videos to your Slack channel from here",addAccount:"Add Account",ctaEmbedForm:"Embed Custom CRM Form",ctaAnnotations:"Annotations",ctaCustomPoll:"Custom Poll",ctaleadForm:"Lead Generation Form",ctaPlaylist:"Promote Your Playlist",ctaCallToAction:"Call To Action",ctaInVideoMeetingLink:"In Video Meeting Link",allowReactions:"Allow Reactions",makeDefault:"Set as default for all videos in the future",allowComments:"Allow Comments",autoPlayVideo:"Auto Play Video",allowDeliveryDownload:"Allow Download",allowPlaybackSpeed:"Allow Playback Speed",generateSubtitles:"Generate Subtitles",uploadSubtitles:"Upload Subtitles",introTitleScreenAdded:"Custom title screen has been added",edit:"Edit",delete:"Delete",endScreenAdd:"Add an end screen to conclude your videos",addEndScreen:"Add End Screen",titleScreenAdd:"Add a title screen to introduce your videos",addTitleScreen:"Add Title Screen",introEndScreenAdded:"Custom end screen has been added",selectFromFrame:"Select a frame from the video",generateGifPreview:"Generate GIF Preview",thumbnailNote:"Note: Gif thumbnail will be displayed when sent as an email",globalDefaultThumbnail:"Set GIF as default for all new videos",uploadDescription:"Do you have an srt or vtt file for this video? Add them directly to this video to get the subtitles.",generateDescription:"With Hippo Video, you can generate subtitles automatically for the video. (Supports only US English)",upload:"Upload",start:"Start",subtitleGenText:"The subtitle was last generated on ",downloadSubtitles:"Download Subtitles as vtt",downloadSrt:"Download Subtitles as srt",visibility:"Visibility",subtitleInfo:"Subtitle Info",subtitleCredits:"Subtitle Credits",removeSubtitle:"Remove Subtitle",downloadSubtitle:"Download Subtitle",regenerateSubtitle:"Regenerate Subtitle",subtitleRemoveWarning:"You are about to remove subtitles from this video. Are you sure?",subtitleCreditsText:"Your credits depend on the plan you have subscribed to. Check how many credits you have left.",subtitlesDeleted:"Subtitles have been deleted",buyCredits:"Buy Credits",generateSubtitle:"Generate Subtitle",cancel:"Cancel",note:"Note: ",usEnglishNote:"Supports only US English",retryVideo:"Video is being processed. Retry after sometime",subtitleFailed:"Failed to generate Subtitles",subtitleWaiting:"Don't wait up. The process may take some time. Click the box below to get a notification when it is done.",subtitleAddon:"Looks like you are out of credits. Purchase addon for subtitle generations",generateSubtitleDesc:"Click on Generate Subtitle button to start adding Subtitle. It will take few minutes to finish adding Subtitles to your video.",subtitlesNotification:"You will be notified once subtitles are generated",subtitlesStatusUpdate:"Subtitles status has been updated successfully",subtitlesStatusUpdateError:"Error updating subtitles status",noAudioAlert:"*This video has no audio to generate subtitles!",maxSizeSubtitles:"Please select a file less than 1 MB of size",allowedSubtitles:"Subtitle files of formats srt and vtt are only supported",subtitlesFailedUpload:"Failed to upload Subtitles",noPermissionToGenerateSubtitle:"You dont have permission to generate subtitles.",noPermissionToUploadSubtitle:"You dont have permission to upload subtitles.",checkStatus:"Check Status",processingMsg:"Your video is being processed. Please try after some time.",minutesRemaining:"Minutes Remaining",recordedOn:"Recorded on",markAsResolved:"Mark as resolved",reopenTicket:"Reopen Ticket",ticketStatusChange:"Are you sure want to change this video status?",guestRecordWithForm:"Your video has been successfully created. Add your details below and click Submit Video Ticket.",guestRecordWithoutForm:"Your video has been successfully created. You can copy the video URL below to share it.",videoNotesPlaceholder:"Add a note",notes:"Notes",email:"Email",name:"Name",submitVideoTicket:"Submit Video Ticket",retake:"Retake",usingWordpress:"Using Wordpress?",checkoutHelpPage:"Check out our Help page",cancelEditing:"Cancel Editing",reportsEmptyStateNoViews:"This video has no views yet. Share this video to get more views.",reportsEmptyStateNoPlays:" viewer has viewed the video. They haven't played the video.",share:"Share",copyLink:"Copy video link",mailSuccess:"Mail triggered successfully",defaultFrame:"Default frame",chooseFrame:"Choose Frame",addTextOrPersonalize:"Add Text / Personalize",pickFromVideo:"Selected frame from video",uploadedFrame:"Uploaded frame",uploadAFrame:"Upload a new frame",uploadFrame:"Upload Frame",thumbnailDescription:"Use default image/GIF/select a frame from the video, or upload your own image as video thumbnail",introOutroSuccess:"Title / End Card updated successfully",subtitleBuyCredits:"Please contact support@hippovideo.io to buy more credits for generating subtitles.",videoCampaign:"Video Campaign",personalizeVideo:"PERSONALIZE VIDEO",personalizeThumbnail:"PERSONALIZE THUMBNAIL",emailCampaignLink:"EMAIL CAMPAIGN LINK",sendVideoEmail:"SEND VIDEO EMAIL",videoCampaignReports:"VIDEO CAMPAIGN REPORTS",notifyMeSuccessMsg:"Once your video has been processed, you will receive an email with a link to your video",old_PPR_banner_msg:"Hey User! We gave a refreshing look for our 'Preview' page. Take a look! Note: The current page will be available only until 31st Dec.",yourVideoBeingProcessed:"Hang on! You are almost there, your video is processing.",notifyMe:"NOTIFY ME",uploading:"Uploading",preProcessing:"Pre processing",processing:"Processing",processingErrorMsg:"Oops! Sorry, your video could not be processed due to some error.",processingSuccessMsg:"Your video has been successfully processed",processed:"processed",preProcessed:"pre processed",uploaded:"uploaded",videoUsage:"Track video usage",inlineEmbed:"Inline Embed",inlineEmbedDesc:"Embed this code on a webpage to play the video inline.",popOverEmbed:"Popover Embed",popOverEmbedDesc:"Embed this code on a webpage to play the video in a pop-up.",videoRetry:"Video is being processed. Retry after sometime",thumbnail:"Thumbnail",text:"Text",emailEmbed:"Email Embed",emailEmbedDesc:"Embed this code in your email HTML editor to generate the video thumbnail.",hubspotEmbed:"HubSpot Embed",hubspotEmbedDesc:"Embed this code on your HubSpot sales page to track your viewers and show them a personalized video.",copyCode:"Copy Code",waitForDownloadMsg:"Hold on while we prepare your video to download.",ok:"OK",clickNotifymeMsg:'Click on "Notify Me" to receive a notification email after the video is processed',close:"CLOSE",gifThumbnail:"GIF Preview",playerTheme:"Player Theme",defaultTheme:"Default",playerLogo:"Player Logo",change:"Change",addLogo:"Add logo",addLinkToPlayerLogoText:"Add link to player logo",save:"Save",reset:"Reset",restoreDefault:"Restore Default",restoreDefaultToolTip:"Restore to defaults settings",Facebook:"Facebook",googleClassroom:"Google Classroom",twitter:"Twitter",google:"Google Plus",slack:"Slack",firstName:"First Name",youtube:"Youtube",gDrive:"Drive",yes:"Yes",no:"No",enterUrl:"Enter URL",clone:"Clone",createGif:"Create GIF",download:"Download",contactSupport:"Something went wrong! Please contact support@hippovideo.io",freshDesk:"Freshdesk",zendesk:"Zendesk",fbWorkplace:"FB Wrokplace",gmailAddonMessage1:"Please ",gmailAddonMessage2:"Install Hippovideo Chrome Extension ",gmailAddonMessage3:'to add this video to the Gmail chain. For now, please go back to Gmail add-on and select the video from "My Library"',addToProduct:"Add to product",guestSubmit:"Submit",guestVideoProcessing:"Your video is being processed please wait...",guestSubmitVideo:"Submit Video",uploadInProgress:"Upload in progress. Please wait",thumbnailProcessing:"Video is in processing state. Please try again later",thumbnailGenFailed:"Thumbnail generation failed. Please contact support@hippovideo.io",thumbnailSize:"Thumbnail Size",changeBackground:"Change Background",virtualBgNote:"Note : Here is a preview of how your video will look with the selected background",virtualBgProgressNote:"Once the video is processed, your video background will change as per your requirements",apply:"Apply",yourVideoReady:"Updating the video background",VirtualBgPopDesc:"Your background is being changed",none:"None",addBackground:"Add Background",docTitlePlaceholder:"Enter document title",docTitle:"Document Name",imageTitle:"Image Name",imageTitlePlaceholder:"Enter image title",replaceVideo:"Replace Video",replaceVideoProgress:"Replacing Video..",replaceSuccessMsg:"Successfully replaced video!",virtualBgInfoNote:"The virtual BG feature is now available in beta to help you change the background of the recorded video. Post beta, this feature will be available only in the Sales Growth and Enterprise plan",subdomainChangeWarningTitle:"Subdomain Edit Alert",subdomainChangeWarning:"Changing your subdomain can affect your old videos and pages. The videos and pages you've shared before won't work once you take this action."},hippoPrivacy:{privacySettings:"PRIVACY SETTINGS",sharingMedium:"SHARING MEDIUM",privacyText:"Privacy settings",privacyHeading:"Select who can see this video.",internal:"Anyone in the org",anyOneWithApiKey:"Any one with API key",setPassword:"Set Password",setExpiry:"Set Expiry",setInterval:"Set Video to Internal",deleteVideo:"Delete Video",setExpiryForKey:"Set Expiry for key",apply:"APPLY",cancel:"CANCEL",internalToAccount:"Internal to the account",onlyYouCanSee:"Only you can see",youCannotShare:"You cannot share as the video is private",youCanShare:"You can share, embed, post to social networks and your help desks",onlyMe:"Only me",anyOneWithLink:"Anyone with the link",canSeeVideo:" can see the video.",withPassword:" and with password",videoExpireOn:" Video will expire on ",somethingWrong:"Something went wrong.",contactSupport:"Something went wrong! Please contact support@hippovideo.io"},guestForm:{videoTicketReplyMsg:"Please click on 'Submit Video Ticket' to add this video as reply to ",videoTicketReplyIntercomMsg:"Please click on 'Submit' to add this video to Intercom conversation",submit:"Submit"},wizCommon:{recordingScreen:"Hippo Video is recording your screen",videoGuestRecordFinish:"Your video URL is copied to clipboard. You can share now",guestRecordFinish:"Your video URL is copied to clipboard. You can share now",thumbnailGuestRecordFinish:"Your video URL is copied with thumbnail to clipboard. You can share now",finsishRecording:"Finish Recording",note:"Note",recordingModeMsg:" - In the recording mode, the screen capturing process will alone be visible. The video capturing from the webcam is done simultaneously in the background and will be available in the final recorded video. Webcam recording will not be visible in recording mode. So do not worry",addNewTestimonial:"ADD NEW TESTIMONIAL",viewVideos:"VIEW VIDEOS",thumbnailCopySuccess:"Image url copied successfully",videoLinkCopySuccess:"Link url copied successfully"},wizRecentVideos:{allVideos:"ALL VIDEOS",videoProcessing:"Video is processing",viewDetails:"View Details",preview:"Preview",edit:"Edit",shares:"Shares",views:"Views",numVideos:"Videos",numUsers:"Users",viewDetail:"VIEW DETAIL",export:"Export"},integAddLink:{startSentence:"Add to ",docs:"G-Docs",classroom:"G-Classroom",d2l:"D2L",gmail:"Gmail",slack:"Slack",slackShare:"Share video on Slack",shopify:"Shopify"},wizCategory:{videoCategories:"Videos & Documents ",videos:"Video Library",createFolder:"CREATE FOLDER",createNewCategory:"Create New Folder",successfullyAddedCategory:"Folder added successfully",successfullyUpdatedCategory:"Folder updated successfully",successfullyAddedAssignment:"Successfully added assignment",successfullyUpdatedAssignment:"Successfully updated assignment",editCategory:"Edit Folder",associateToCategory:"Associate To Category",associateToFolder:"Associate to folder",systemCategory:"System Category",errorUpdatingCategory:"Error occurred while updating folder",successMsgDefaultCategory:"Successfully marked as Default Folder",errorMsgDefaultCategory:"Some Error While trying to mark as Default Folder",resetDefaultFolderMsg:" is no longer the default folder.",notPermitToEditCategory:"You don't have permission to edit this folder",enterCategoryName:"Enter Folder Name",newFolder:"New folder",searchUsersNdGrp:"Search users and groups here",shareWithEveryOne:"Share with everyone in the organization",sharedWithCol:"Shared with",permissionCol:"Permission",categoryName:"Folder Name",share_org_evry:"Everyone in the organisation",owner:"Owner",remove_access:"Remove Access",notAllowed:"Default folder name cannot be edited",catListSearchEmpty:"No folders found",noofChannels:"Channels",noofVideos:"Assets",noofUsers:"Shared Users",viewDetail:"VIEW DETAIL",defaultTag:"DEFAULT",export:"Export",download:"Download",editcat:"Edit Folder",createdBy:"Created by",defaultCategory:"This is a default folder",allVideos:"All Assets",howToUseCategory:"How to use Hippo Video",virtualBgCategory:"Virtual Backgrounds",everyOneInOrganization:"Everyone in the organization",onlyMe:"Only Me",toSpecificUser:"To specific user",viewAll:"View All",allVideoText:"Assets of all folders and users",visibility:"Visibility",educationVisibility:"Assign to",users:"Users",users1:"Users",groups:"Groups",selectUser:"Select users one",selectGroup:"Select groups",folderLink:"Folder Link",copyLink:"Copy Link",copyLinkHubspot:"Copy Link for HubSpot",copyLinkThumbnail:"Copy Link with thumbnail",copyLinkOutlook:"Copy Link for Outlook",copyLinkLinkedIn:"Copy Link for LinkedIn",copied:"Copied !",done:"DONE",ok:"OK",cancel:"Cancel",folderDeleteMsg:"All the videos in this folder will be deleted permanently.",folderDeleteQuestion:"Are you sure you want to delete this folder?",folderDeletePrivate:"Note: On deletion ,The Videos in this folder will no longer be accessible or available to share.",folderDeleteShared:"Note: On deletion,The Videos in this folder will be no longer be accessible by the users the folder is shared with.",assignmentDeleteMsg:"Deleting this assignment will delete all the submitted videos in the folder. New videos can't be submitted either.",delete:"Delete",deleteCategory:"Delete Folder",defaultFolderDeleteMsg:"The default folder cannot be deleted.",defaultFolderDeleteNote:"Note: To delete this folder, set another folder as default folder and then try deleting this.",setDefaultCategory:"Set as Default",pinFolder:"Pin Folder",unpinFolder:"Unpin Folder",resetDefaultCategory:"Reset Default",createNewTestimonial:"CAMPAIGN",testimonialName:"Campaign name",enterTestimonialName:"Enter Campaign Name",description:"Description",edittesttimonial:"Edit Campaign",testimonialDeleteMsg:"All the videos in this campaign will be deleted permanently.",deleteTestimonial:"Delete Campaign",editTestimonial:"Edit Campaign",updateSettingsSuccess:"Settings updated successfully",thumbnail:"Thumbnail",addThumbnail:"Add thumbnail",removeThumbnail:"Remove Thumbnail",changeThumbnail:"Change thumbnail",noVideos:"No videos found.",loadMore:"Load more",saveText:"Save",nextText:"Next",more:"More",recommendedText:"Recommended size (500x500)",imageFormats:"Supported formats: JPG,JPEG,PNG,GIF,BMP",documentInfo:"Document Info",imageInfo:"Image Info",permissions:"Permission",viewPermission:"View",editPermission:"Edit",defaultFolderNotDeleteMsg:"Note: To delete this folder, set another folder as default folder and then try deleting this."},wizIntegrations:{integConnectSuccess:"Hippo Video is enabled for all your agents",fdConnectError:"Error integrating with Freshdesk",fsConnectError:"Error integrating with Freshservice",zenConnectError:"Error integrating with Zendesk",fbWorkplaceConnectError:"Error integrating with Facebook Workplace"},youtubeForm:{title:"Video Title",hvLinkShare:"Share with Hippo Video link",description:"Description",selectChannel:"Channel",privacy:"Privacy",exportLimitUsed:"Sorry, you have exhausted the maximum number of times you can export to youtube. ",subscriptionPageLink:"Upgrade",exportVideoToYoutube:"Export Video to Youtube",export:"EXPORT",cancel:"CANCEL",public:"Public",private:"Private",unListed:"Unlisted",surgeTitle:"Sorry for the Turbulence",surgeMsg:"Due to sudden increase in usage, Youtube is limiting uploads. We've limited upload feature to higher paid plans for now. An alternative to this can be downloading the video and then uploading it on Youtube / GDrive."},gdriveForm:{selectAccount:"Account",title:"Video Title",exportVideoToGrive:"Export Video to Gdrive",export:"EXPORT",cancel:"CANCEL"},vimeoForm:{title:"Video Title",exportVideoToVimeo:"Export Video to Vimeo",description:"Description",category:"Select Category",privacy:"Privacy",chooseCategory:"Choose category",chooseGroups:"Choose Groups",subCategory:"Select Subcategory",selectChannel:"Select Channel",export:"EXPORT",cancel:"CANCEL",show:"Show",hide:"Hide",passwordLabel:"Password",maxSelection:"Only 2 categories can be selected",privacyPublic:"Anyone can see this video",privacyPrivate:"Only I can see this video",privacyPassword:"Only people with a password can see this video",privacyPrivateLink:"Only people with the private link",privacyPrivateLinkDisabled:"Only people with the private link (Vimeo PLUS+PRO+Business users only)",privacyNobody:"Hide this video from Vimeo",privacyNobodyDisabled:"Hide this video from Vimeo (Vimeo PLUS+PRO+Business users only)"},wistiaForm:{title:"Video Title",description:"Description",selectAccount:"Account",selectProject:"Project",exportVideoToWistia:"Export Video to Wisita",noAccountTitle:"Configure an account and start uploading to Wistia",export:"EXPORT",cancel:"CANCEL",addAccount:"Add Account"},facebookForm:{title:"Video Title",description:"Description",selectPage:"Facebook Page",exportVideoToFacebook:"Export Video to Facebook",noAccountTitle:"Configure Facebook business page and start uploading",export:"EXPORT",cancel:"CANCEL",addStore:"Add Stores",configurePage:"Configure"},shopifyForm:{title:"Video Title",description:"Description",exportVideoToShopify:"Export Video to Shopify",addVideoToShopify:"Add Video to Shopify",noAccountTitle:"Configure Shopify store and start uploading",export:"EXPORT",stores:"STORES",store:"STORE",cancel:"CANCEL",configurePage:"Configure",storeName:"Enter Store Name",storeTitle:"Store Name",addStore:"Add Store",chooseProduct:"Choose Product Name",shopifyAccountManagement:"Shopify Account Management",shopifyIntegration:"Shopify Integration",addToProduct:"Add to product",noProductsFound:"No products found",grantAccess:"Grant Access"},shareForReview:{shareVideoButton:"SHARE VIDEO FOR REVIEW",title:"Get your video reviewed",linkTitle:"Share via link",copyLink:"Copy link",addPeople:"Add People",people:"people",sharedWith:"Shared with",addMsg:"Add a note",sendReview:"SEND OUT FOR REVIEW",reviewSentSuccess:"Your video has successfully been shared for review",messagePlaceholder:"Enter the message you wish to convey"},pardotForm:{pardotIntegration:"Pardot Integration",header:"Please enter the salesforce Business Unit ID",connect:"Connect",businessUnitId:"Business Unit ID",pleaseFill:"Please fill the Business Unit ID",email:"Email",password:"Password",userKey:"User key",submit:"SUBMIT",fillAllFields:"Please fill all fields",cancel:"CANCEL",integrationFailed:"Failed to integrate Pardot",integrationSuccess:"Page will reload now. After reload, check the Pardot integration to check integration status.",pardotSuccessMsg:"Successfully integrated to pardot."},customDomain:{enableCustomDomain:"Enable Custom Domain",name:"Domain name",namePH:"Domain name",notesTitle:"Important notes",pointNumber1:"A CNAME entry should be created and mapped to",Url:".hippovideo.io",pointNumber2:"Only http format is supported for custom domain URLs. To avoid the browser from displaying an SSL Certificate warning the user needs to contact Hippo Video Support team (support@hippovideo.io) to get an SSL Certificate",example:"http://",customDomain:"Custom Domain",save:"Save",cancel:"Cancel"},emailTemplates:{header:"List of all email templates for various email types",sNo:"S. No",emailName:"Email Name",emailType:"Email Type",emailSubject:"Email Subject",createdOn:"Created On",createTemplate:"Create New Template",createNewTemplate:"Create New Email Template",editTemplate:"Edit Email Template",search:"Search",save:"Save",cancel:"Cancel",emailTemplateEmpty:"No email templates found",createNewCampaignTemplate:"CREATE NEW TEMPLATE",insertMergeField:"Insert Merge Field"},createNewTemplate:{nameTemplate:"Name your template",namePH:"Name",typeTemplate:"Email template type",subject:"Email subject",subjectPH:"Subject",content:"Content",save:"Save",cancel:"cancel"},Integration:{integrated:"integrated",comingSoon:"COMING SOON",integrate:"integrate",integrationMsg:"Hold on. We are working on this integration",emptyIntegration:"No accounts integrated... ",learnMore:"Learn More",new:"New",install:"Install",connect:"Connect",integrationMsg1:"Is your favorite integration missing?",integrationMsg2:"We shall get it for you.",letUsKnow:"Let us know your requirements",whichOne:"Which one?",enterTheMissingInteg:"Enter the missing integration",shareYourUseCase:"Share your Usecase with us",contactUsRequirmentsValidation:"Please enter your requirements.",showDetails:"Show details",slack:"Slack",zendesk:"Zendesk",freshdesk:"Freshdesk",hideDetails:"Hide details",edit:"EDIT",sync:"SYNC",syncing:"SYNCING...",syncSuccess:"Sync Success",syncError:"Sync Error",manage:"Manage",configure:"Configure",details:"Details",accountAdditionSuccess:"Successfully added account",accountDisconnectSuccess:"Successfully disconnected account",slackTokenRevokeSuccess:"Successfully removed account",accountAdditionError:"Error in adding account. Contact support.",accountDisconnectError:"Error in disconnecting account. Contact support.",slackTokenRevokeError:"Error in removing account. Contact support.",configurationSaveSuccess:"Successfully saved configuration.",configurationSaveError:"Error in saving configuration.",marketing:"MARKETING",support:"SUPPORT",sales:"SALES",teamCommunication:"TEAM COMMUNICATION",campaigns:"CAMPAIGNS",submit:"Submit",integrationRequestSuccess:"Got it! Our team will reach out to you soon.",shopifyRemoved:"Shopify Removed",integEmptyMsg:"No Integrations found",search:"Search",enabled:"Enabled",education:"EDUCATION",clickHere:"Click here",instructionParaTwo:" to learn how to embed your video.",integrationAlreadyExist:"Luckily for you, we already have this integration.",back:"Back",toExplainMore:"Would you like to learn more?",bookDemo:"Book a Demo",bookDemoDesc:"Check out how our platform integrates with your favorite tool",reset:"Reset"},salesforcePopup:{processCompletion:"Please do the below step to complete installation in Production environment of Salesforce.",integSuccessOneLiner:"Your account is successfully integrated with Salesforce",nameLabel:"Full Name",orgLabel:"Organization Name",okay:"Okay",installParaOne:"Hippo Video now integrates with Salesforce Service, Sales cloud - Cases lightening UI. Now create and share videos directly from your Salesforce account.",installParaTwoPartOne:"Click ",installParaTwoPartTwo:"here",installParaTwoPartThree:" to install the Hippo Video widget to your Salesforce account. Follow ",installParaTwoPartFour:"this",installParaTwoPartFive:" help document for detailed instructions on how to install Hippo Video in your Salesforce account.",installParaTwoPartSix:" to provide access to Hippo Video application in Salesforce. This is only for",sfProduction:" production",sfInstance:" instance.",sfSandbox:" Sandbox",sfSandboxClick:" account, click ",installParaTwoPartSeven:"Note: Incase you are testing the package in",installParaTwoPartEight:" to provide access to Hippo Video application in Salesforce."},intercomPopup:{integSuccessOneLiner:"Your account is successfully integrated with Intercom",nameLabel:"Full Name",teamNameLabel:"Team Name",okay:"Okay",installHeading:"Add a visual touch to your live chat inside Intercom. Videos turn your support conversations much easier and lively.",installSubHeading:"Follow the steps below to integrate Hippo Video with Intercom:",stepOne:"Login to your Intercom account.",stepTwo:"Then, search for 'Hippo Video' app in the app store and click on the Install button to start the installation.",stepThree:"To continue, grant permission for Hippo Video to proceed the installation process.",stepFour:"Once Hippo Video is installed successfully, you can enter into a customer conversation and click 'Add Messenger App' icon to see the Hippo Video app."},mailchimpPopup:{disconnectAccountText:"By disconnecting MailChimp integration, you will not be able to add new leads into your existing MailChimp email list further.",continue:"Continue",cancel:"Cancel",save:"Save",disconnectAccLink:"Disconnect Account",doiHelpLink:"What is Double Opt-In?",doi:"Double Opt-In",email:"Email",accountName:"Account Name"},slackPopup:{shareTitle:"Post your video to Slack",workspaces:"Workspaces",channels:"Channels",addAnotherAccount:"Add another workspace",selectChannel:"Select a channel",comment:"Comment",hippoTitle:"Hippo Video",commentPlaceholder:"Add comment here ...",cancel:"Cancel",post:"Post",addAccount:"Add Account",noAccountTitle:"Configure account to start posting to Slack",removeAccount:"Remove Account",manage:"Manage",slackPostSuccess:"Successfully posted to Slack",slackPostError:"Error in posting to Slack. Contact support."},integrationModal:{freshdeskTitle:"Freshdesk Integration",freshserviceTitle:"Freshservice Integration",zendeskTitle:"Zendesk Integration",zohodeskTitle:"Zohodesk Integration",fbWorkplaceTitle:"Facebook Workplace Integration",zendeskEmbedWidgetTitle:"Zendesk Embed Widget",freshdeskEmbedWidgetTitle:"Freshdesk Embed Widget",genericEmbedWidgetTitle:"Generic Embed Widget",slackIntegrationTitle:"Slack Account Management",hubspotIntegrationTitle:"HubSpot Account Management",salesloftIntegrationTitle:"SalesLoft Account Managment",zoomIntegrationTitle:"Zoom Account Management",pardotIntegrationTitle:"Pardot Account Management",salesforceTitle:"Salesforce Integration",intercomTitle:"Intercom Integration",webhookTitle:"Webhook Integration",zapierTitle:"Zapier Integration",mailchimpTitle:"Mailchimp Integration",nextText:"NEXT",cancelText:"CANCEL",copyApiKeyText:"< Go Back",syncText:"SYNC",manageUsers:"Manage Users",closeText:"Close",zoomRemoveAccount:"Zoom account removed successfully",zoomRemoveAccountFailed:"Remove zoom account failed. Please contact support@hippovideo.io",campaignInstructionTitle:"Instructions to embed video"},zohodeskModel:{okay:"Okay",domainText:"Domain",fullName:"Full Name",emailText:"Email"},zapierModel:{header:"Connect your favorite apps to Hippo Video using Zapier",click:"Click",here:" here",stepsHeader:" to connect your apps and automate workflows.",copyApiKey:"Copy API Key",Copied:"Copied"},freshdeskModal:{connect:"CONNECT",sync:"SYNC",appLink:"Hippo Video App",headerStart:"Once you are done installing ",headerEnd:" from Freshdesk Marketplace, you just need to provide your Freshdesk API Key to get started.",stepsHeader:"To get Freshdesk API Key, all you have to do is",stepOne:"Go to Profile settings inside your Freshdesk account.",stepTwo:"Copy the active API key.",okay:"Okay",videoLink:"Watch Video",forEmail:"for email id - ",copyApi:"Copy Api key",copied:"Copied",connectStep:"Sync allows to post video as solutions to Freshdesk from Hippo Video and also syncs users",keyHelp:"Go to your Freshdesk profile settings, copy and paste the Freshdesk API key",domainHelp:"Provide the Freshdesk domain name of your business",emailHelp:"Email registered with Freshdesk",adminEmailPlaceholder:"Enter your Freshdesk Admin Email",domainPlaceholder:"domain.freshdesk.com (Your Freshdesk domain name)",apiKeyPlaceholder:"Paste your Freshdesk Admin API Key",integrationSuccessTitle:"Integration Successful",integrationSuccessStep:"You can now create videos as solutions, ask customers to create video tickets and more. You can now manage users synced from Freshdesk",updateSuccessTitle:"Updated Successfully",ticketCreate:"Create Freshdesk ticket on video ticket submission",manageUsers:"Manage Users",close:"Close"},freshserviceModal:{connect:"CONNECT",sync:"SYNC",appLink:"Hippo Video App",headerStart:"Once you are done installing ",headerEnd:" from Freshservice Marketplace, you just need to provide your Freshservice API Key to get started.",stepsHeader:"To get Freshservice API Key, all you have to do is",stepOne:"Go to Profile settings inside your Freshdesk account.",stepTwo:"Copy the active API key.",okay:"Okay",videoLink:"Watch Video",forEmail:"for email id - ",copyApi:"Copy Api key",copied:"Copied",connectStep:"Sync allows to post video as solutions to Freshdesk from Hippo Video and also syncs users",keyHelp:"Go to your Freshservice profile settings, copy and paste the Freshservice API key",domainHelp:"Provide the Freshservice domain name of your business",emailHelp:"Email registered with Freshservice",adminEmailPlaceholder:"Enter your Freshservice Admin Email",domainPlaceholder:"domain.freshservice.com (Your Freshservice domain name)",apiKeyPlaceholder:"Paste your Freshservice Admin API Key",integrationSuccessTitle:"Integration Successful",integrationSuccessStep:"You can now create videos as solutions, ask customers to create video tickets and more. You can now manage users synced from Freshservice",updateSuccessTitle:"Updated Successfully",ticketCreate:"Create Freshservice ticket on video ticket submission",manageUsers:"Manage Users",close:"Close"},zendeskModal:{connect:"CONNECT",sync:"SYNC",appLink:"Hippo Video App",headerStart:"Once you are done installing ",headerEnd:" from Zendesk Marketplace, you just need to provide your Zendesk API Token to get started.",stepsHeader:"To get Zendesk API Token, all you have to do is",stepOne:"Go to Settings tab inside your Zendesk account.",stepTwo:"Go to API -> Settings",stepThree:"Copy the active API token key.",footerNote:"If you don't have a token already you can generate a new one. Please ensure that you have the Admin privilege",okay:"Okay",videoLink:"Watch Video",forEmail:"for email id - ",copyApi:"Copy Api key",copied:"Copied",connectStep:"Sync allows to post video as solutions to Zendesk from Hippo Video and also syncs users",keyHelp:"Zendesk Access Token",domainHelp:"Zendesk domain name of your business",emailHelp:"Email registered with Zendesk",adminEmailPlaceholder:"Enter your Zendesk Admin Email",domainPlaceholder:"domain.zendesk.com (Your Zendesk domain name)",apiTokenPlaceholder:"Paste your Zendesk API Token",integrationSuccessTitle:"Integration Successful",integrationSuccessStep:"You can now create videos as solutions, ask customers to create video tickets and more. You can now manage users synced from Zendesk",updateSuccessTitle:"Updated Successfully",ticketCreate:"Create Zendesk ticket on video ticket submission",manageUsers:"Manage Users",close:"Close"},zendeskWidgetModal:{customize:"CUSTOMIZE",code:"CODE",customFieldSteps1:"Create a new custom ticket field of type Text",customFieldSteps2:"Field title must be 'Recorded Video URL' ",customFieldSteps3:"Visible and the Editable checkbox must be checked",customFieldSteps4:"Finally after adding, if you click edit on the newly created field, you will find the custom field ID of that field",customFieldSteps5:"Enter that below",copyApi:"Copy Code",copied:"Copied",codeStep1:'Goto "Customize Design" in Zendesk knowledge base',codeStep2:'Click "Edit Theme" and select "New Request page"',codeStep3:"Copy paste the below code at the end of the page.",customIdHelp:"Find Custom field ID by clicking on edit next to the newly created field in Ticket Fields page."},freshdeskWidgetModal:{customize:"CUSTOM FIELD",code:"CODE",customFieldSteps1:"Go to 'Admin' - 'General Settings' -> Ticket Fields'",customFieldSteps2:"Create a new Single Line Text Field",customFieldSteps3:"Field label for agents must be 'Recorded Video URL' ",customFieldSteps4:"'Display to customer' and 'Customer can edit' checkbox must be checked ",customFieldSteps5:'Refer to this <a href="https://watch.hippovideo.io/video/play/pq02En_Q25DM6fqhYVUV5g==" target="_blank" rel="nofollow">video.</a>',copyApi:"Copy Code",copied:"Copied",codeStep1:'Go to "Admin" -> "Portals" and click on the "Customize portal" button',codeStep2:'On the page, click "Layout & Pages" tab and click the option "Portal pages"',codeStep3:'On the Portal pages, select the "New ticket" menu item on the left under the "Tickets" category which will open an editor on the right',codeStep4:'Copy the below code and paste it at the end of the "New ticket" editor'},webhookWidgetModal:{url:"URL",urlPlaceHolder:"Where should we send the data?",secretKey:"Secret Key",secretKeyPlaceHolder:"Verify incoming messages with a secret key",events:"Events",viewing:"Viewing Session",secretKeyRequired:"Secret key is required",eventsRequired:"Select minimum one event to be notified",webhookRequired:"Webhook endpoint is required",webhookSuccessMsg:"Webhook details updated successfully",connectStep:"Use webhooks to hook into events on Hippo Video"},genericWidgetModal:{customize:"GETTING STARTED",code:"CODE",customFieldSteps:"Hippo Video record button can be placed on any of your web pages. All the videos recorded through this button will be available in your library.",copyApi:"Copy Code",copied:"Copied",codeStep:"Copy the script tag and paste it inside head(before all other scrips). Copy the HTML code and paste it wherever you want the record button. All the recording events will be available through the javascriptAPI"},fbWorkplaceModal:{connect:"CONNECT",sync:"SYNC",forEmail:"for email id - ",copyApi:"Copy Api key",keyHelp:"",domainHelp:"",integrationSuccessTitle:"Integration Successful",manageUsers:"Manage Users",close:"Close"},myProfileTab:{clickHereToInsertPic:"Click Here to Insert Profile Picture",clickHereToChangeProfPic:"Click Here to Change Profile Picture"},validationMessages:{email:"Please enter email address.",title:"Please enter title.",description:"Please enter notes.",catName:"Please enter folder name.",phoneNumber:"Please enter phone number.",name:"Please enter your name.",testimonialName:"Please enter campaign name.",firstName:"Please enter your first name.",lastName:"Please enter your last name.",invalidAadhaarNumber:"Invalid aadhaar number.",thisFieldIsMandatory:"This field is mandatory."},simpleEdit:{lockAspectRatioResize:"Lock AspectRatio on Resize",moveWebcam:"Fixed webcam position during crop",apply:"Apply",reset:"Reset",typeYourTextHere:"Type your text here",addText:"Add Text",delete:"DELETE",save:"SAVE",cancel:"CANCEL",color:"Color",shadow:"Shadow",opacity:"Opacity",default:"Default",yellow:"Yellow",orange:"Orange",green:"Green",violet:"Violet",blue:"Blue",dark:"Dark",white:"White",strength:"Strength",addNewBlur:"Add New Blur",blurDescription:"Apply blur to a specific region anywhere in the video.",mfInfoTooltip:"Use merge fields to personalize your video",trimStartTime:"Trim start time",trimEndTime:"Trim end time",trim:"Trim",crop:"Crop",text:"Text",emoji:"Emoji",callout:"Callout",blur:"Blur",resize:"Resize",left:"Left",center:"Center",right:"Right",mergeFields:"Merge Fields",enterTextHere:"Enter text here",addImage:"Add Image",addPersonalizedImage:"Add Personalized Image",addImageInfo:"Add custom images to personalize your video. Examples include images of the prospect, the logo of a company. Note: Enter the URL of the image as a column in the sheet.",image:"Image",errorMessage:"Something went wrong! Please contact support@hippovideo.io",prepareToImport:"Preparing files to import...",new:"BETA",addWebsiteImage:"Add Website Snapshot",addWebsiteImageInfo:"Personalize your video by adding your prospect’s website snapshot. Note: The website URL should be a column in the sheet.",learnMore:" Learn More"},proEdit:{webcamSource:"Webcam Source",audioSource:"Audio Source",webcamPosition:"Webcam Position",webcamSize:"Webcam Size",recordAudioWithWebcam:"Record Audio while recording Webcam video",createNewTrack:"Create new track for every narration",large:"Large",medium:"Medium",small:"Small",bottomLeft:"Bottom Left",bottomRight:"Bottom Right",topLeft:"Top Left",topRight:"Top Right",previewSaveVideo:"If you've completed editing and happy with the preview, save your video.",saveVideo:"SAVE VIDEO",close:"Close",videoPreview:"Video Preview",on:"ON",off:"OFF",addText:"Add Text",add:"Add",apply:"Apply",cancelCaps:"CANCEL",addSmiley:"Add Smiley",addCallout:"Add Callout",webcamNarration:"Webcam Narration",audioNarration:"Audio Narration",textToSpeech:"Text to Speech",browserNotSupported:"Your browser is not supported",finish:"Finish",cancelCamelCase:"Cancel",cancelWarningMsg:"Oops! You're about to quit editing.\n Are you sure you want to cancel?",yes:"Yes",no:"no",voice:"Voice",speed:"Speed",pitch:"Pitch",cancel:"cancel",speechWait:"Generating speech. Please Wait.",preview:" Preview",stop:" Stop ",importWarningMessage:"Import already in progress",generatingSpeech:"Generating Speech."},wizCreate:{createVideoTitle:"Create Video from Images",save:"Save",cancel:"Cancel",seconds:"seconds",second:"second",done:"Done",imageDuration:"Image Duration",fadeInOut:"Fade in/out",selectImages:"Select Images",selectedImages:"Selected Images",imageSettings:"Image Settings",selectAudio:"Select Audio",trimAudio:"Trim Audio",preview:"Preview",on:"ON",off:"OFF",audioFileName:"Audio File name",settingsDescription:"You can describe the settings for your images to be applied in the video. These settings will be applied for every selected image in the video.",audionarrationDescription:"Narrate the image story in your own voice.",audioFileDescription:"Add an audio track to go with your images. You can add it from your system or select one from our audio library.",selectImageDesc:"Add images and rearrange them in sequence",bannerDescription:"Brewing the right video needs the perfect mix of images, video footages and audio tracks. Create those awesome videos by adding still images into your video and audio tracks with Hippo Video.",savePopupText:"Do you want to save the video or continue editing your video?",viewVideo:"Save",editVideo:"Save & Edit",cancelPopupText:"Your video is not yet saved. Would you still like to cancel?",AudioVoiceOver:"Record Voiceover"},wizImport:{importImagesDesc:"You can import images from your system, or you can get images from popular online stock image libraries.",addImages:"Add Images",uploadAudioFile:"Add Audio File",orText:"OR",note:"NOTE",importNote:"You can select a maximum of 25 images of size less than 5 MB each.",dragAndDropHere:"Drag & Drop your files here",dragAndDrop:"Drag & Drop Files",importImages:"Import Images",importAudio:"Import Audio",importVideo:"Import Video",importMedia:"Import Media",importDocument:"Import Document/Image",importDocumentOnly:"Import Document",recentlyUsed:"Recently Used",importFromLocal:"Local",importFromVideoLibrary:"Recorded Videos",importFromLibrary:"Audio Library",searchFreeStockImage:"Search for free stock images",searchImages:"Search Images",searchFromWeb:"Free Stock Images",importTestimonial:"Testimonial Videos",createVideo:"Create Video",importFromDrive:"G-Drive",importImageFromLib:"Library Images",dragdropYourFiles:"Drag and drop your files here, or",browse:"browse",cancel:"Cancel",import:"Import",supports:"Supports",formatsWithMaxSize:"formats with a maximum file size of",proceed:"Proceed",changeFile:"Change File",imagesSelected:"Images Selected",audiosSelected:"Audios Selected",videosSelected:"Videos Selected",importWebText:"Get royalty-free images from popular online stock image libraries.",poweredBy:"Powered by",emptySearchTerm:"No results found. Try giving a different search term.",emptyRecent:"No recent files found.",emptyResults:"No files found.",loadMore:"Load More",importHelp:"You can select only 1 file.",importPDFOnly:"You can upload up to 20 files at a time. Documents can be used only in the ",canBeUsedOnly:"Supports PDF, PPT, PPTX, DOC, DOCX, TXT, RTF, XLSX, CSV formats with a maximum file size of 25 MB",canBeUsedOnlyImage:"Supports JPG, JPEG, PNG, BMP, GIF formats with a maximum file size of 5 MB",videoLandingPages:"video sales pages.",importDriveText:"Grant access to your Google Drive account to import media directly into Hippo Video",importShopifyText:"Grant access to your Shopify account to import media directly into Hippo Video",shopifyDomainInfoTitle:"Enter your Shopify domain name to integrate your store with Hippo Video",shopifyDomainInfoOne:"Go to your Shopify dashboard and in the left sidebar, click on ‘Online Store’",shopifyDomainInfoTwo:"Select ‘Online Store’ under Sales Channels",shopifyDomainInfoThree:"Go to ‘Domains’, Copy the Domain Name and Paste it here",selectRequiredImages:"Select the Required Images for the Video",placeholder:"Enter your Shopify domain name...",products:"Products:",stores:"Stores:",store:"Store:",addStore:"Add Store",grantAccess:"Grant Access",account:"Account :",loading:"Loading...",selectedFile:"Selected File",selectedFiles:"Selected Files",videoTitle:"Video Title",addToCategory:"Add to Folder",addTags:"Add Tags",description:"Description",readMore:"Read More",readLess:"Read Less",seeAllQuestions:"SEE ALL QUESTIONS",seeLessQuestions:"SEE LESS QUESTIONS",shareMsg:"Record a video for AP Janmabhoomi here ",configureMail:"Configure Mail",unsupported:"Currently we do not support this type of file for importing.",enterFileName:"Please enter video title",preserveTransparency:"Preserve Transparency (beta)",categoryLable:"Folder",importFromVideoLibraryMulti:"Import From Library",importFileSizeMsg1:"Please select a file of size less than ",importFileSizeMsg2:" MB. Selected file cannot be imported",errorMsg:"Something went wrong. Please contact support@hippovideo.io",uploadInBackground:"Your video will be uploaded in the background",docTitle:"Title",shopifyTitle:"Shopify",WebLinkTitle:"Web Link",addViaLinkTitle:"Add Via Link",enterLinkLabel:"Enter your valid website URL",websiteErrorMsg:"There was an error processing your website",websiteNoteMsg:"Sorry, we couldn’t identify this website. Please check the URL and try again.",retryBtn:"Retry Processing",websitePreviewTitle:"Website Screenshot Preview",addCustomLinkDesc:"Now, add your website, landing page or any link directly as a carousel on the sales pages. And, check the thumbnail preview below.",addCustomLinkNote:"If the thumbnail is missing from your link, the default thumbnail will be displayed in the carousel.",addCustomLinkLabel:"Note:",customLinkPlaceholder:"www.hippovideo.io",enterTitleLabel:"Title",enterThumbnailLabel:"Thumbnail",customTitlePlaceholder:"Sample Title",titleErrorMsg:"*Enter a valid title",addLinkBtn:"Add Link",resetLinkBtn:"Reset",recommendedThumbnailSize:"Recommended dimension - 619*342",checkLinkBtn:"Verify Link",checkWebsiteLinkBtn:"CHECK",checkWebsiteRetryBtn:"RETRY PROCESSING",websiteLinkErrorMsg:"Enter valid website link.",linkErrorMsg:"*Enter a valid link",fetchLinkErrorMsg:"*Error while fetching url content",search:"search",searchNameAndTags:"Search",custom:{videoOrDocument:{title:"Import Video, Document or Link",selectionTitle:"Videos, Documents and Links Selected"},videoOrDocumentOrImage:{title:"Import Video, Document, Image or Link",selectionTitle:"Videos, Documents and Image Selected"},videoOrImage:{title:"Import Video, Image or Link",selectionTitle:"Videos, Image and Link Selected"},imageOrVideoVirtualBg:{title:"Import Video or Image",selectionTitle:"Videos and Image Selected"},webLink:{title:"Import Website screenshot",selectionTitle:"Website Screenshot Selected"}}},settings:{defaultVideoTemplates:"Default Template Builder",defaultVideoTemplatesText:"You can now add Title/End cards to your videos. Choose to either record a new video or add it from the library. Once you set the Title/End cards, the same will be set as default for all the other videos. You can always change them in the settings here.",addTitleVideo:"ADD TITLE VIDEO",addEndVideo:"ADD END VIDEO",videoAddedSuccessfully:"Video added successfully",videoAddFailed:"Failed to add video",titleVideo:"Title Video",endVideo:"End Video",removedSuccessfully:"Removed successfully",failedRemove:"Failed to remove",introOutroRemoveConfirmation:"Do you want to remove the video. Are you sure?"},ctaActions:{timeLineActions:"INTERACTIVE TIMELINE ACTIONS",annotation:"ANNOTATION",embedCrmForm:"EMBED CUSTOM CRM FORM",embedCrmForm2:"EMBED CRM FORM",embedCrmFormSales:"EMBED MEETING SCHEDULER FORM",hubspotForms:"Hubspot Forms",pardotForms:"Pardot Forms",callToAction:"CALL TO ACTION",select:"Select",form:"LEAD GENERATION FORM",form2:"LEAD GENERATION",question:"CUSTOM POLL",endScreen:"PROMOTE A PLAYLIST",endCard:"IN-VIDEO MEETING LINK",addToVideo:"Add to video:",timeLineDesc:"Drive your viewers to the desired page/take an action through the options below.",annotationDesc:"Send your viewers to a sales page by adding custom annotations.",callToActionDesc:"Send your viewers to a sales page. Choose from HTML, image, and text-based CTAs.",formDesc:"Add a custom form to generate leads through your videos.",questionDesc:"Activate a poll within your videos for quality research and data collection.",endScreenDesc:"Select a video from your library to create a video playlist.",embedCrmFormDesc:"Add lead generation forms from your CRM",endCardDesc:"Design Your Own End Card",embedCrmFormDescSales:"Embed your meeting scheduler form here.",allowViewersToSkip:"Allow viewers to skip",successfullyUploaded:"Successfully uploaded",appliedSuccessfully:"Applied successfully",uploadImage:"Upload Image",changeImage:"Change Image",text:"Text",url:"URL",link:"Link",startTime:"Start Time",endTime:"End Time",apply:"Apply",add:"Add",type:"Type",html:"HTML",image:"Image",time:"Time",skip:"Skip",continue:"Continue",askPhoneNumber:"Ask for Phone number",askCompanyName:"Ask for Company Name",upperText:"Title",lowerText:"Note",question1:"Question",option1:"Option 1",option2:"Option 2",option3:"Option 3",option4:"Option 4",optional:"Optional",chooseFromHippoLibrary:"Choose file from Hippo Video library",addToLast:"Add to last",seconds:"seconds",timelineIsEmpty:"Timeline is empty",emptyTimelineDesc:"No timeline actions created yet.",edit:"Edit",delete:"Delete",annotationAdded:"Annotation added",annotationAddedDesc:"Annotation added description",callToActionAdded:"Call to action added",callToActionAddedDesc:"Call to action added description",formAdded:"Lead Generation Form added",formAddedDesc:"Form added description",quizAdded:"Custom Poll added",quizAddedDesc:"Quiz added description",endScreenAdded:"Promote a Playlist added",endScreenAddedDesc:"added as end screen",embedFormAdded:"Embed custom CRM form added",endCardAdded:"In-Video Meeting Link added",allDataWillBeDeleted:"All data associated with the CTA will be deleted.",ctaDeleteConfirm:"Do you really want to delete this CTA?",selectEndScreenTitle:"Select a video to create a video playlist",selectAnyVideoForEndScreen:"Please select any one video for end screen",selectAnyCtaImage:"Please select any image for call to action",youCantAddEndScreen:"Increase video duration to add end screen for this video.",pleaseEnterText:"Please enter some text.",clickOnThisLink:"Click on this link!",enterTheFollowingDetails:"Enter the following details to continue playing",ctaQuestion:"Enter the following details to continue playing",firstName:"First Name",lastName:"Last Name",emailAddress:"Email Address",phoneNumber:"Phone Number",companyName:"Company Name",play:"Play",submit:"Submit",formNote:"Note",esSelect:"SELECT",esCancel:"CANCEL",loadMore:"Load More",youCantAddCTA:"A second Call to action cannot be added to the same video.",youCantAddForm:"A second Lead Generation Form cannot be added to the same video.",youCantAddQuestion:"A second Custom Poll cannot be added to the same video.",youCantAddSecondEndScreen:"A second Playlist cannot be added to the same video.",youCantAddEmbedForm:"A second Embed crm form cannot be added to the same video.",youCantAddEndCard:"A second End card cannot be added to the same video.",youCantDeleteGlobalCta:"This Cta is set globally. Are you sure you want to delete this?",sampleUrl:"https://www.hippovideo.io",addYourTextHere:"Add your text here",yourTextAppearsHere:"Your text appears here",htmlAdded:"HTML Added.",textAdded:"Text Added",imageAdded:"Image Added",added:"Added",clickHere:"Click Here",fieldName:"Full Name",designation:"Designation",buttonText:"Button Name",buttonLink:"Meeting Link",defaultTitle:"Dwight Schrute",sampleMeetingLink:"https://calendly.com",defaultText:"Assistant (to the) Regional Manager",buttonDefaultText:"SCHEDULE DEMO",setUpDefaultCta:"Enable this CTA at the end of the video",enableToAll:"Enable this CTA to all users in the account",inVideoMeeting:"In-Video Meeting Link",defaultInVideoMeeting:"Default In-Video Meeting Link",save:"SAVE",cancel:"CANCEL",fillAllData:"Please fill all required fields",cantBeText:"Invalid input. Please enter a numerical value",negativeInput:"Invalid input. Days to expire cannot be a negative value.",invalidInput:"Invalid input. Days to expire cannot be more than 999.",scheduleMeeting:"Schedule Meeting",replay:"Replay",allowViewersToPlay:"Gate Video",allowPlayTooltip:"Check this box to pause the video with CRM form.",hubspot:"Hubspot",pardot:"Pardot",portalId:"Portal Id",formId:"Form Id",portalIdIsEmpty:"Portal Id is empty.",hubspotFormIdInfo:"Click to check on how to get form id in Hubspot",hubspotPortalIdInfo:"Click to check on how to get portal id in HubSpot",pardotUserKeyInfo:"Click to check on how to get business unit id from pardot",formIsEmpty:"Select HubSpot form to proceed.",pardotFormIsEmpty:"Select Pardot form to proceed.",formIdIsEmpty:"Form Id is empty.",hubspotFormAdded:"Hubspot form added",pardotFormAdded:"Pardot form added",ctaType:"CTA Type",removeCTA:"REMOVE",meetingLinkAdded:"MEETING LINK ADDED",ctaTextAdded:"CALL TO ACTION ADDED",ctaImageAdded:"IMAGE ADDED",ctaHtmlAdded:"HTML LINK ADDED",desktopPush:"Desktop/Push Notification",desktopPushTooltip:"Get notified when someone watches or replies to your video",desktopPushDesc:"Get notified when someone watches or replies to your video",desktopPushToggle:"Enable/Allow Desktop notification",emailnotify:"Email Notification",emailnotifyTooltip:"This is an email notification that alerts you each time when you get a video reply or when a video is played. It will tell you who watched it and the percentage of the video that was watched.",emailnotifyDesc:"This is an email notification that alerts you each time when you get a video reply or when a video is played. It will tell you who watched it and the percentage of the video that was watched.",videoWatchedFirst:"Video watched for the first time",watchingVideoMore:"Watched video multiple times notification",videoReply:"Replied with video",unknownContactNotification:"Show notification from unknown contacts",globalCategorySettings:"Content Privacy Configuration",globalCategorySettingsTooltip:"By default, content privacy is set to enable sharing for any content created, such as videos or documents, with the entire organization. The creator still has the permission to override the administrator’s privilege and share the folder with their team as they see fit.",globalCategorySettingsDesc:"Turning the global setting 'on' would enable any data such as videos & documents in a folder, sales pages, teleprompter scripts, video templates to be shared with everyone in the organization by default.",globalCategorySettingsNote:"Note: Only the admin can make these changes. Also, these changes will affect the new assets only.",enabledCategoryForEveryoneInOrg:"Share content with the entire organization (On/Off)",timestampSettings:"Settings to show video duration on the thumbnail",timestampSettingsDesc:"Modify or change video duration display on thumbnail using the options below",timestampSettingsNote:"Note: It is a global setting and any changes or modifications here can affect the entire account",dontShowTimestamp:"Do not show video time on the thumbnail",showTimestampMoreThan2mins:"Show video time if it is below 2 min",showTimestampMoreThan5mins:"Show video time if it is below 5 min",customLimitTimestamp:"Set your video duration (below)",timeStampSettingsWarning:"Only the admin can make these changes. Also these changes will affect the new videos only",changeColor:"Change",buttonColour:"Button Colour",videoPrivacySettings:"Video Privacy Setting",videoPrivacySettingsTooltip:"Turning this global setting 'on' would enable the video privacy for all videos by default when shared. Any changes made and saved here will affect only the newly created videos",privacycontent:"Note: The global setting will not be applied to a video if the privacy is changed at the video level",setVideoPassword:"Only people with the password can access the video",videoPassword:"Password",expirydays:"Days to expire"},requireEmail:{heading:"Require email to view",headingDesc:"'Require email to view' enables you to get the email address of the viewer or prospect before watching the video, or accessing the sales page.",toggleContent:"Enable 'Require email to view' by default for all the workflows",textHeading:"Heading Text",headingDefaultText:"Require email to view",subText:"Sub Text",subDefaultText:"Hi there! Please enter your email address \nto view the video inside.",buttonText:"Button Text",buttonDefaultText:"Submit",preview:"Preview",save:"Save"},gdriveImport:{allowAccessMsg:"Hippo Video needs Google Drive access to import your videos. Click continue to proceed.",continueBtn:"CONTINUE",allowAccessTitle:"Hippo Video - Drive Access",installExtension:"Chrome Extension has to be installed to record presentation. Click install to proceed",worksWithChrome:"Record Presentation works only with Google Chrome. "},introOutro:{selectTheme:"SELECT THEME",screenStaysForTitle:"Your video title screen stays on screen for",screenStaysForEnd:"Your video end screen stays on screen for",sec:"sec",none:"None",color:"Color",addNewText:"NEW TEXT",save:"SAVE",cancel:"CANCEL",step1:"Create your video title card in just 3 steps",step2:"Choose a theme or upload your own theme.",step3:"Add text to go with this theme.",step4:"Customize the color and your title screen in good to go.",addIntro:"Add Intro",addOutro:"Add Outro",enterYourText:"Enter your text",introSuccessMsg:"Intro successfully updated",outroSuccessMsg:"Outro successfully updated",introTooltipMsg:"Edit your video title screen",outroTooltipMsg:"Edit your video end screen",introEmptyTooltipMsg:"Add a video title screen",outroEmptyTooltipMsg:"Add a video end screen",addMf:"Add Merge Fields",mfInfoTooltip:"Use merge fields to personalize your video",enterYourTextHere:"Enter your text here...",enterText:"Enter Text",select:"-- Select --",opacity:"Opacity"},askCompanyName:{heading:"Claim Your Unique Hippo Video Account",tooltip:"Your videos will be hosted on this subdomain",companyName:"Company Name",yourCompanyName:"Your company name",hippovideoio:".hippovideo.io",domainName:"Domain Name",accountDomainName:"Account Domain Name",dontForgetToAdd:"Don't forget to add this as a bookmark. ",addBookmark:"Add Bookmark",phone:"Phone",yourPhone:"Your phone number"},campaign:{details:"DETAILS",name:"Testimonial Campaign Name ",namePlaceholder:"Enter a testimonial name for your internal use",nameErrorMsg:"Please enter campaign name.",title:"Testimonial Campaign Title ",titleHelp:"Your recipients will see this title message",titlePlaceholder:"Your recipients will see this title message",titleErrorMsg:"Please enter campaign title.",description:"Custom Message For the Recipients ",descriptionHelp:"Your recipients will see this custom message",descriptionPlaceholder:"Message...",descriptionErrormsg:"Please enter description.",thankuMsg:"Custom Thank you Message ",thankuMsgHelp:"Your recipients will see this message after submitting their video",thankuMsgPlaceholder:"Message...",thankuMsgErrorMsg:"Please enter thank you message.",introVideo:"Add video from the library and introduce this testimonial to the recipient",introVideoHelp:"Add a video from your library to introduce this campaign to your recipients.",removeVideo:"Remove Video",addVideo:"Add Video",loading:"Loading...",chooseVideo:"Choose video",choose:"Choose",cancel:"Cancel",delete:"Delete",deleteCampaign:"Delete Campaign",allVideosDeleteCampaign:"All the videos in this campaign will be deleted permanently.",settings:"SETTINGS",setRecordTime:"Set Record Duration",minutes:"minutes",askUser:"Ask the user for",firstName:"First Name",lastName:"Last Name",email:"Email",notes:"Notes",phoneNumber:"Phone number",on:"ON",off:"OFF",allowOwnVideos:"Allow recipients to upload videos from their system",allowYoutubeLinks:"Allow recipients to submit Youtube links",askConsent:"Ask copyright permission from your recipients",askConsentPlaceholder:"Consent message...",askConsentErrorMsg:"Please enter consent message.",share:"SHARE",codeLink:"Copy Link",copied:"Copied",shareLink:"Share Link",defaultDescription:"Points to be covered in your testimonial. \n 1. What does your company do? \n 2. What problem(s) did you face before you bought/joined [our product/service]? \n 3. What are the benefits you have realized from using our [product/service]? \n 4. What exactly did you like most about [our product/service]? \n 5. Why would you recommend our product to others? (and why?) \n 6. How was your overall experience? \n 7. Is there anything else you would like to add? Or What other benefits do you expect in the future? \n",defaultTitle:"How was your experience",defaultThankuMsg:"Thank you for submitting your video testimonial",defaultConsent:"I agree to grant you permission to use my content for the benefit of your business",notifyEmail:"Notify Testimonial via Email",notifyMailHelp:"When someone submits the testimonial, you'll be notified in the below email",notifyMailPlaceholder:"Enter the email address to notify",notifyMailErrorMsg:"Pease enter valid email address"},videoCampaigns:{replyMailTitle:"Reply with a video for better engagement",replyMailImportVideo:"Import Video",replyMailRecordVideo:"Record video",vidCampDesc:"Hippo Video lets you send personalized video email campaigns from your Mail. Import contacts from your sheet, send personalized emails campaigns and get consolidated performance reports.",askMailAccessText:"Please link your mail account to send emails",mailAllowAccess:"Configure Mail",serverErrMsg:"Sorry, something went wrong.",emailFrom:"From",emailTo:"To",emailCC:"CC",toPlaceholder:"Enter or Import Email IDs",subjectPlaceholder:"Enter the video campaign name",contentPlaceholder:"Type the campaign message..",content:"Content",subject:"Subject",campSuccess:"Video campaign launched successfully for ",campInitiated:"Video campaign initiated successfully for ",campSuccess1:" contacts!",replyMailSuccess:"Reply email sent successfully ",impSuccessfully:" contacts imported successfully",cancel:"Cancel",send:"Send",description:"Add multiple email addresses manually or import contacts from your Google Sheets. Hippo Video will then send individual emails to your recipients by mapping the specified merge fields.",importContacts:"Import Contacts",addContacts:"Add Contacts",here:"here",emailBulbToolTip1Content:"Tip 1: Increase email open rates by adding words like “quick video” in the subject line.",emailBulbToolTip2Content:"Tip 2: We recommend you to add a few lines of text along with your video, maybe a quick recap of the video you’re sending or an introduction will do wonders. Find more video tips like these from Jeffrey Gitomer - King of Sales",addAnother:"Add Another",importContactsGoogle:"Click to import contacts",addContactsTooltip:"Click to add contacts",emailToToolTip:"Separate email would be sent to everyone in this list",allowSheetAccess:"Allow Google Sheet Access",gDriveAccessText:"Hippo Video captures all merge fields from Google Sheets. For Excel and CSV files, convert them to Google Sheets to connect. ",gContactsAccessText:"Import this list directly from Google Contacts",gContactsButton:"Allow Google Contacts Access",gContacts:"Google Contacts",Sheet:"Google Sheet",gmailAddAccount:"Add account",spreadsheetNotFound:"No spreadsheets found",importContactsNote:"Note: Only one file can be selected.",selectFile:"Please select the file and click import contacts",campEmptyToMailMsg:"To mail is empty. Please add or import contacts.",emptyToEmailMsg:"Please enter to email",validEmail:"Please enter valid email id",clear:"CLEAR",sampleFile:"Sample File",mfNote:"Note: Type $ to use merge fields from imported sheet.",selectAccount:"Please choose from account.",thumbnailPersonalization:"PERSONALIZE YOUR THUMBNAIL",thumbnailPersonalizationDesc:"Add merge fields to your thumbnail to create personalized thumbnail",personalization:"PERSONALIZE YOUR VIDEO",personalizationDesc:"Add merge fields inside your video to create your personalized video.",sendVideoEmail:"SEND VIDEO EMAIL",sendVideoEmailDesc:"Send the personalized video you created to your contacts.",personalize:"PERSONALIZE",personalizeVideo:"PERSONALIZE VIDEO",personalizeThumbnail:"PERSONALIZE THUMBNAIL",beta:"BETA",configureMail:"Configure Mail",emailCampaignLinkDesc:"Copy the code and paste it in your mail client/campaign template to send personalized video and thumbnail",emailProvider:"Email Marketing Software",emailMergeTag:"Email Merge Tag",thumbnailSize:"Thumbnail Size",responsive:"Responsive",centerAlign:"Center Align",editCopyLinkMf:"If you’ve added any custom fields in your email marketing software, please copy and paste the same custom field inside the box given below to replace the merge fields inside the code.",editCopyLinkMfErr:"* Merge Fields can't be empty",copyCode:"Copy Code",preview:"Preview",note:"Note: ",thumbnailPersonalizationNote:"Video Thumbnail can be changed in ",gifThumbnailPersonalizationNote:"Personalization not supported for Gif Thumbnail. ",customThumbnailPath:"Customize Video -> Thumbnail",copied:"Copied",Account:"Account",maximumFileSize:"Supports only XLS, XLSX, CSV formats with a maximum file size of 5 MB",SUBMIT:"SUBMIT",CANCEL:"CANCEL",chooseFile:"Choose File",or:"or",dragAndDrop:"Drag and drop your files here, or browse",downloadSample:"Download Sample File",Local:"Desktop",contactImportMsgDrive:"Importing contacts from Google Sheet",errorMessage:"Something went wrong! Please contact support@hippovideo.io",chooseEmailTemplates:"Choose an email template",back:"Back",searchInMail:"Search for email...",createNewTemplate:"New template",createNewEmailTemplate:"Create New Template",insertMergeField:"Insert Merge Field",date:"Date",reply:"Reply",mailSubject:"Subject",emailRepliesKey:"Email Replies",replyEmailKey:"Reply Email",copyCodeWithThumbnailForHubspot:"Copy code for sending sequence emails in HubSpot",campaignStatCategories:{all:"All Contacts",queue:"Mails in Queue",sent:"Mails Sent",failed:"Mails Failed",mail_opened:"Mails Opened",watched_90_100:"Video watched from 90% to 100%",watched_75_90:"Video watched from 75% to 90%",watched_50_75:"Video watched from 50% to 75%",watched_0_50:"Video watched from 0% to 50%",unseen:"Yet to watch video"},campReportState:{sent:"MAILS SENT",inQueue:"YET TO SEND",failed:"MAILS FAILED",opened:"MAILS OPENED",unseen:"UNSEEN",watched_90_100:"90% to 100%",watched_75_90:"75% to 90%",watched_50_75:"50% to 75%",watched_0_50:"0% to 50%",replies:"EMAIL REPLIES"},othersText:"OTHERS",sentUsingOtherProviders:"SENT USING EMAIL MARKETING SOFTWARES",sentUsingHippoVideo:"SENT USING HIPPO VIDEO",emptyCampaignText1:"No campaigns found",emptyCampaignText2:"Click the below button to send a new campaign",sendNewCampaign:"SEND NEW CAMPAIGN",loadMore:"LOAD MORE",videoText:"video",videosText:"videos",createdText:"created",contactText:"contact",contactsText:"contacts",openedTheMail:"opened the mail",repliedTheMail:"replied to the mail",playedText:"played",playedTheVideo:"played the video",mailsSentTo:"Mails sent to",watchedTheVideo:"watched the video",openRateText:"OPEN RATE",playRateText:"PLAY RATE",mailsCap:"MAILS",videosCap:"VIDEOS",mailSentFrom:"Mail sent from",campaignLaunchedFor:"Campaign launched for",yetToOpenMail:"YET TO OPEN MAIL",yetToWatch:"YET TO WATCH",yetToWatchVideo:"YET TO WATCH VIDEO",ofVideoPlayed:"of video played",valueIsMissing:"value is missing",valuesAreMissing:"values are missing",emptySubjectMsg:"Please enter the subject",campEmptySubjectMsg:"Subject is empty. Please enter the subject.",sendCampaignFromOwnMail:"Configure email address",mfFormContent:'Fill in the placeholder value or contact information here to personalize your email or click "SEND" if you dont have any',saveAsList:"Save As List",enterListName:"Enter List Name",fillTheListName:"Fill in the list name",imageUrl:"Image URL",linkUrl:"Link URL",SAVE:"SAVE",editMfForm:"Edit Merge Fields",copyCodeWithThumbnail:"Copy Code With Thumbnail",campaignLinkInfo:"Video thumbnail will not be generated on pasting this code in your platform. However, the receiver will be able to view the video thumbail and play the video."},colorkeyEffect:{ColorkeyTitle:"Key Color-",toleranceValue:"Tolerance Value",toleranceHint:"Adjust degree of color removal"},blurEffect:{blurTitle:"Blur-",strengthTitle:"Strength",lockAspectRatioResize:"Lock aspect ratio on resize",startTime:"Start Time",endTime:"End Time"},effectsTab:{blurTitle:" Video Blur ",ColorkeyTitle:" Chroma Key ",blurHelpText:"Add the blur in your video to hide sensitive information from your viewers.",colorKeyHelpText:"Use the color picker to select the color you want to remove. Add multiple keys to remove multiple colors from your video. The tolerance specifies how closely pixels must match the key color. ",addAnother:" Add Another",addBlur:" Add Blur",addColorKey:" Add Chroma Key",demoVideo:"Demo Video"},toolsAndEffectsTab:{textTooltip:"Add Text",smileyTootltip:"Add Smiley",calloutTooltip:"Add Callout",effectsTooltip:"Select a video/image clip to add effects",addEffectTooltip:"Add Effects",addBlur:"Add Blur",addColorKey:"Add Chroma Key",addImage:"Add Image",addPlaceholderImage:"Add Personalized Image",errorMessage:"Something went wrong! Please contact support@hippovideo.io",prepareToImport:"Preparing files to import...",new:"BETA",addWebsiteSnapshot:"Add Website Snapshot",browserNotSupported:"Not supported with this browser"},rightclickCustomMenu:{copy:"Copy",copyShortcut:"Ctrl + C ",cut:"Cut",cutShortcut:" Ctrl + X ",paste:"Paste",pasteShortcut:" Ctrl + V ",delete:"Delete",deleteShortcut:" Delete ",rippleDelete:"Ripple Delete",rippleDeleteShortcut:" Shift + Delete ",split:"Split",splitShortcut:"Shift + C ",position:"Position",positionShortcut:""},warning:{addEffectWarning:"Select a video or image clip to add effects",renderWarning:"There is no clip present to create a video"},NarrationView:{warningMessage:"Are you sure you want to delete recording ?",yes:"YES",no:"NO",browserNotSupported:"Your browser is not supported",finish:"Finish",cancel:"Cancel"},customTrackers:{pixelId:"Pixel Id",pixelContent:"Track video conversions from Facebook ads, optimize ads based on collected data and build targeted audiences for future ads.",GAContent:"Track your visitors watching the video, play rate, click rate, and measure ROI by setting up analytics tracking.",addEvents:"Add Events",trackFrom:"Track from",cancel:"Cancel",save:"Save",trackFromHelp:"Start tracking your video from a defined start time.",eventsHelp:"Add multiple events relevant to your video category.",success:"Tracker details updated successfully",videoUsage:"Track video usage",pixelMandatory:"Pixel Id is mandatory",GAMandatory:"Google Tracking Id is mandatory",deleted:"Tracking Details has been removed",somethingWentWrong:"Something went wrong!!",luckyOrangeContent:"Track on individual prospect activities and organize filtered and custom-made follow-ups with real-time dashboard analytics and visitor maps.",lOMandatory:"Lucky Orange Tracking Id is mandatory"},dashboard:{lastUpdated:"Last updated on",usageStats:"Usage Stats",tillDate:"Till date",today:"Today",yesterday:"Yesterday",thisWeek:"This week",lastWeek:"Last week",last7Days:"Last 7 days",last30days:"Last 30 days",thisMonth:"This Month",lastMonth:"Last Month",custom:"Custom",impressions:"Impressions",notPlayed:"Not played",played:"Num Plays",numVideos:"Num Videos",totalVideosCreated:"Total videos created",leadsGenerated:"Leads Generated",testimonialsReceived:"Testimonials Received",usersEngaged:"Users engaged",minutesWatched:"Minutes watched",videoCampaigns:"Video campaigns",campaigns:"Campaigns",myPlan:"My Plan",recordingLimit:"Recording Limit",importLimit:"Import Limit",testimonialLimit:"Testimonial Limit",bandwidth:"Bandwidth",upgrade:"UPGRADE",contactUs:"CONTACT US",selectBothDates:"Please select both from and to date",plays:"Plays",engaged:"Engaged",topVideos:"Top Videos",basedOn:"Based on",topCampaigns:"Top Campaigns",noEngagement:"No Engagement",engagementEmptyTxt:"Share your videos to engage more viewers",noCampaignsCreated:"No Campaigns created",campaignsEmptyTxt:"Create and send a personalized video campaign to get leads",callToAction:"Call to action",leadGeneration:"Lead generation",annotations:"Annotations",customPoll:"Custom poll",reactions:"Reactions",comments:"Comments",mailSent:"Mail sent",mailOpened:"Mail opened",videosWatched:"Videos watched",engagement:"Engagement",from:"From",to:"To",embedStats:"Embedded Video Performance",campaignsSent:"Campaigns Sent",mailsSent:"Mails Sent",mailsOpened:"Mails Opened",uniqueViews:"Unique Views",ctaMeeting:"Video Meeting Link",mailsWatched:"Mail Video Watched"},gettingStarted:{gettingStarted:"Getting Started",startImporting:"START IMPORTING",startRecording:"RECORD VIDEO",startCustomizing:"START CUSTOMIZATION",startSlideshow:"CREATE VIDEO SLIDESHOW",startIntegration:"ADD INTEGRATIONS",startTestimonial:"COLLECT TESTIMONIALS",startTickets:"COLLECT VIDEO TICKETS",startManageUsers:"MANAGE USERS",startLeadGen:"START GENERATING LEADS",startGmailAddOn:"INSTALL GMAIL ADD-ON",startVideoEmailCampaign:"SEND VIDEO CAMPAIGNS",videoGuides:"Video Guides",hideThis:"Hide this",trial:"trial",free:"free",paid:"paid",currentVersion:"Your current plan expires in ",version:" version. ",expiresIn:"Expires in ",days:" days.",extendYourTrial:"Talk to us and extend your trial by another 7 days. ",importDesc:"Import your videos to start editing them. Trim, blur, crop, add emojis, callouts, and voice-narrations",importAndEdit:"Import & Edit",importVideosAndEditing:"Import videos and start editing",recordDesc:"Record everyday narratives through webcam, screen recording, and mic option. Create GIFs from videos as well",recordVideo:"Record Video",recordNarratives:"Record everyday narratives",slideShowDesc:"Import your own images or choose from our free stock image library to create stunning video slideshows",slideShowVideo:"Video Slideshow",createSlideShows:"Create stunning video slideshows",customizationDesc:"Customize logo, themes, domain name, CTAs, start and end screens, thumbnails and much more",customizeAndBranding:"Customize & Branding",takeControlOfPlayer:"Take complete control of the player",hostingDesc:"Host videos in the cloud with our secured infrastructure. Generate leads through forms, custom CTAs, polls, annotations, etc",hostAndGenerateLeads:"Host & Generate Leads",secureVideoHosting:"Secure video hosting and lead generation",testimonialDesc:"Ask customers to record video testimonials with a shareable link. They don’t have to sign up to record a testimonial video",collectTestimonial:"Collect Video Testimonials",collectCustomerTestimonial:"Collect customer’s video testimonials",integrationDesc:"Hubspot, LinkedIn Sales navigator, Freshsales, Salesforce, Outlook, Gmail, Pipedrive and more.",setupIntegration:"Setup Integrations",rbacInactiveCardMessage:"You do not have the permission to access this module. Please request your administrator to enable it for your role.",salesPageInactiveCardMessage:"You only have access to the default sales pages in your plan.To create your own sales pages, either ",upgrade:"upgrade",salesPageInactiveCardMessage1:" or contact your administrator to do it for you.",viewdefaultsalespages:"View default Sales Pages",marketplaceIntegration:"Add marketplace integrations",manageUsersDesc:"Activate and deactivate users. Collaborate with your team, assign roles, permissions, and more",manageUsers:"Manage users",assignRolesAndPermissions:"Assign roles and permissions",videoGuidesTitle:"Video Selling Guide",videoGuidesShort:"Videos from your sales coach Jeffrey Gitomer",videoGuidesDesc:"Check out videos from Jeffrey Gitomer on tips to make your videos effective.",videoGuidesCta:"Checkout Videos",guestRecordDesc:"Ask customers to record guest video with a shareable link. They don’t have to sign up to record a guest video",collectGuestVideos:"Collect Guest Videos",collectCustomerGuestVideos:"Collect customer’s guest video",scheduleDemo:"Talk to our specialist ",scheduleMeeting:"Schedule meeting now",scheduleDemoDesc:"Need help implementing your video strategy?",gmailAddOn:"Gmail Add-On",gmailAddOnSales:"Create personalized sales videos.",gmailAddOnDesc:"Record personalized videos for your leads and close more sales. Track the mails’ performance using analytics.",emailCampaigns:"Video Email Campaigns",emailCampaignsDesc:"Import contacts from your sheet, send personalized emails campaigns, and get performance reports.",personalizedVideoCampaign:"Send personalized video email campaigns using Gmail",importContacts:"IMPORT CONTACTS",importContactsDesc:"Add Multiple email addresses manually or import contacts from your Google/Excel/CSV sheets.",createVideo:"CREATE VIDEO",createVideoDesc:"Create videos by using your webcam, screen capture and audio. You can even import videos here.",sendMail:"SEND VIDEO MAIL",sendMailDesc:"Embed your videos in your CRM or email composer to send video emails.",inVideoMeeting:"INCLUDE IN-VIDEO MEETING LINK",inVideoMeetingDesc:"Embed your calendly or meeting scheduler CTA to book meeting directly through your video emails.",sendTestVideoDesc:"Record a quick video and send a test mail to realize the power of the video emails.",sendTestVideo:"PRACTICE A VIDEO MAIL",installExtension:"Install Chrome Extension",installExtensionDesc:"Install the Chrome extension to track all the activity happening with your video emails and get detailed report.",stepsToCreateStellarVideo:"Steps to create a stellar sales video",startWithScript:"Start with video script",chooseVideoBg:"Choose a video background",captureVideo:"Capture your video",recordAudio:"Record clear audio",checkLighting:"Check for even lighting",startWithScriptDes:"Brainstorm the details you want to convey in your video. Then, build your script around it that attracts your customer/prospects.",chooseVideoBgDes:"Explore multiple environments and experiment things around, until you find a setup that suits you.",captureVideoDes:"When you’re recording with a webcam or smartphone, maintain eye contact with the camera lens. Use a tripod if you use your smartphone.",recordAudioDes:"Shoot in a quiet area where there is NO background noise.",checkLightingDes:"Find yourself a window and place your laptop in front of it. Make sure you face the light to avoid having too many shadows.",quickTips:"A quick tip",quickTipsDes:"Always smile while you talk in your video. Make hand gestures when necessary.",sgsCardOneTitle:"Create & Send Video",sgsCardOneSubText:"Record and Send Videos",sgsCardOneHoverText:"Record webcam videos with ease and share them with your prospects, customers and colleagues.",sgsCardOneBtnText:"Create & Send Video",sgsCardThreeTitle:"Sales Pages",sgsCardThreeSubText:"Wow your prospects with Personalized Sales Pages",sgsCardThreeHoverText:"Add custom logos, personalized videos, CTAs for prospects - all this personalized, in a single page",sgsCardThreeBtnText:"Create Personalized Sales Page",sgsCardFourTitle:"Add People",sgsCardFourSubText:"Add, manage and track contacts",sgsCardFourHoverText:"Managing your contacts and planning follow-ups is now super-easy thanks to People tab",sgsCardFourBtnText:"Add People",sgsCardSevenTitle:"Other Downloads",sgsCardSevenSubText:"Try our other effective video tools ",sgsCardSevenHoverText:"Hippo Video Chrome extension & Gmail Add on helps you record & share videos from your Chrome or Gmail itself. Download them now",sgsCardSevenBtnText:"Chrome Extension",sgsCardSevenBtnText2:"Gmail Add on",sgsCardEightTitle:"Practice a video mail",sgsCardEightSubText:"Practice a video mail",sgsCardEightHoverText:"Record a quick video and send a test mail to realize the power of the video emails.",sgsCardEightBtnText:"Practice video mail",sgsCardResponseRate:"Deliver your videos with a personalized sales page. See your response rate increase 3x.",sgsCardShowMeHow:"Show me how",sgsAddTeammates:"Add Teammates",sgsAddTeammatesSub:"Add, manage and collaborate with your team",sgsAddTeammatesDesc:"Add your team into Hippo video. Collaborate and maximize your response rate.",sgsAddTeammatesCta:"Add team members",sgsWelcomeMessage:"Welcome back",sgsBookDemoHeader:"Book a personalized demo",sgsBookDemoContent:"Talk to our video expert to improve your prospect engagement with videos.",sgsLearnHeader:"How to use Hippo Video?",sgsLearnContent:"Learn how to record engaging videos for sales to grab your prospect's attention.",sgsLinkedINheader:"Hippo Video is available on LinkedIn!",sgsLinkedInContent:"Record and send personalized video messages from ",scriptInfo:"Do it now with a script created for you!",createYourFirstVideo:"Create Your First Video",recordYourFirstVideo:"Record Your First Video",recordQuickVideo:"Record a quick video. It’s instant and simple!",firstVideo:"Record your first video and impress your prospects. Stand out from the rest, build trust, and crush your goals with videos that are ",realRelevant:"REAL™ - Relevant, Emotionally engaging, Actionable, and Lively!",learnMore:"Learn More",hiText:"Hi ",WelcomeTo:", Welcome to Hippo Video!",yourFirstTowordsVideos:"We're glad you are here. Hippo Video helps you to build trust, provide value and nurture prospect relationships with the help of REAL and humanized videos. Let's kickstart your video journey now:",gsChrDesc:"Send personalized New Year video greetings using our templates in 4 simple steps",gsChrDescBtn:"Send New Year Greetings",recordNow:"Record now",createNow:"Create now",integrate:"Integrate",invite:"Invite",add:"Add",macAppDesktop:"Download Hippo Video Mac desktop app",downloadNow:"Download Now"},apps:{heading:"You can also record from",chromeExtensionDescription1:"Create videos from",chromeExtensionDescription2:"any browser tab",chromeExtensionDescription3:"and your favorite tools like",chromeExtensionDescription4:"LinkedIn, Gmail, Outlook,",chromeExtensionDescription5:"and so many more.",mobileAppDescription1:"Get the",mobileAppDescription2:"Hippo Video Mobile Application",mobileAppDescription3:"to record & send out videos efficiently from anywhere, anytime, and any device.",scanToDownload:"Scan to download",installAndGetAccess:"Install the app and get access to all our cool features.",gotIt:"GOT IT",etc:"etc.",macAppDesktop:"Download Hippo Video Mac desktop app",downloadNow:"Download Now"},campaignGettingStarted:{importContacts:"ADD YOUR VIDEO",importContactsDesc:"Import or record a video to personalize. You can also use the Template Builder inside Hippo video.",createVideo:"PERSONALIZE YOUR VIDEO",createVideoDesc:"Add merge fields inside your video to personalize. Relevant merge fields have already been added in our Template Builder.",sendMail:"IMPORT CONTACTS",sendMailDesc:"Add Multiple email addresses manually or import contacts from your Google/Excel/CSV sheets.",inVideoMeeting:"LAUNCH YOUR VIDEO CAMPAIGN",inVideoMeetingDesc:"Add the email copy and launch the campaign from Hippo Video. Launch it using Email Marketing Software by adding the video email embed code.",sendTestVideoDesc:"Hippo Video has a range of Template Builder categories like Welcome, Custom Discount and more.",sendTestVideo:"SELECT A PERSONALIZED TEMPLATE BUILDER",installExtension:"Install Chrome Extension",installExtensionDesc:"Install the Chrome extension to launch your personalized video email campaigns directly from Gmail.",proTip:"PRO TIP: Add an in-video meeting link to book more meeting with your clients.",just4Steps:"Just 4 steps away from the magic spell!"},thumbnailEdit:{thumbnailPersonalisation:"Thumbnail Personalization",save:"SAVE",cancel:"CANCEL",addPersonalizedText:"ADD PERSONALIZED TEXT",addPlaceholderImage:"ADD PLACEHOLDER IMAGE",personalisationNote1:"Click Add text/image to personalize your thumbnail",personalisationNote2:"Type $ to open the list of merge fields and to add a custom merge field, type ${Your Field Name}",personalisationNote3:"Create a merge field with the name 'logo' to add your company logo to the placeholder image"},emailSettings:{email_label:"Email",removeAccount:"Remove Account",reauthorize:"Reauthorize",configureMailSettings:"CONFIGURE MAIL SETTINGS",others:"Others",setupMailMsg:"SETUP EMAIL ACCOUNT FOR SENDING",setupMsg:"Connect to the email account that'll be used to send your emails.",connectedMsg:"Your email account is now connected to Hippo Video. You can manage your connected account here.",emailId:"Email Id",password:"Password",emailProvider:"Email provider",smtpHost:"SMTP Host",smtpPort:"SMTP port",useSSL:"Use SSL",cancel:"Cancel",apply:"Apply",smtpSettings:"SMTP SETTINGS",gmail:"Gmail",outlook:"Outlook",zoho:"Zoho",yahoo:"Yahoo",godaddy:"GoDaddy",notAValidEmail:"Email ID is not valid",enterPassword:"Please enter the password",emptyPort:"SMTP Port is empty",emptyHost:"SMTP Host is empty",smtpSetupMsg:"Connect your SMTP account to send your emails.",passwordNote:"(password is always encrypted for security)",connectSMTP:"Connect SMTP account",senderName:"Sender Name"},deepIntegration:{startRecording:"Start Recording",stopRecording:"Finish Recording",notSupportedTxt:"Your browser does not support the video",AdvancedOptions:"Advanced Options",Apply:"Apply",Cancel:"Cancel",EnableTelepromter:"Enable Telepromter",DisableTelepromter:"Disable Telepromter",retakeConfirmationDesc:"The video which you have recorded will be lost forever. Are you sure you want to delete & retake the video?",cancel:"Cancel",proceed:"Proceed"},progressMessages:{uploadingFile:"Uploading File",videoUploadedWaiting:"Video uploaded. Waiting to be converted...",errorUploading:"Error while uploading video",preparingFile:"Preparing File",videoIsCreating:"Your video is being created",errorUpdatingState:"Error while updating state",imageUploadedWaiting:"Image uploaded. Waiting to be converted...",doc:{error:"Error while uploading document"}},labelContent:{district:"District",mandal:"Mandal",panchayat:"Panchayat / Ward",aadhar:"Aadhar No"},sidebar:{info:"Info",comments:"Comments",reports:"Reports",emailReplies:"Email Replies",thumbnail:"Thumbnail",titleEndCard:"Title / End Card",timelineActions:"Marketing",trackVideo:"Track Video",personalizeThumbnail:"Thumbnail",personalizeVideo:"Video",personalizeTabHeading:"Personalize Video",embed:"Embed",sendMail:"Send Mail",share:"Share",export:"Export",privacy:"Privacy",subtitles:"Subtitles",settings:"Settings",campaignLink:"Campaign Link",branding:"Branding",titleVirtualBg:"Virtual Background",beta:"Beta",videoSettings:"Video Settings",interactiveVideoCta:"INTERACTIVE VIDEO CTA",campaignReports:"Campaign Reports"},wizComments:{addNewComments:"Add New Comment",comments:"Comments",commentsDisable:"Comments are disabled for this video",sortBy:"Sort by",recent:"Recent",timeline:"Timeline",postAs:"Posting as",enterComments:"Enter your comment here",post:"POST",cancel:"CANCEL",screen:"Screen",webcam:"Webcam",audio:"Audio",start:"START",noComments:"No comments yet",somethingWrong:"Something went wrong. Unable to fetch Comments.",loadingComments:"Loading Comments...",commentsHidden:"Comment Hidden",reply:"Reply",videoAnnotation:"Video Annotation",heyGuest:"Hey Guest,",commentSignUp:"Please sign up or login in order to comment on this video.",signUp:"Sign Up",or:"OR",login:"Log In",continueGuest:"Continue as guest",guestName:"Enter a guest name to continue",continue:"Continue",screenRecordingFree:"Create Screen Recordings for free.",email:"Enter your email",passwordField:"Password - Minimum 6 characters (Optional)",autoGeneratedPassword:"An auto-generated password will be sent to your email if no password is given",signUpFree:"Sign up for free",signInAccount:"Sign in to your account",password:"Password",signIn:"Sign In",wentWrong:"Something went wrong!",signUpLink1:"By signing up, you agree to our ",signUpLink2:"Terms",signUpLink3:"and",signUpLink4:"Privacy policy"},salesDashboard:{dashboard:"SALES DASHBOARD",contactsCreated:"Contacts Created",videoEmailSent:"Video Emails Sent",mailsOpened:"Video Emails Opened",mailsReplied:"Video Emails Replied",videosPlayed:"Videos Played",activeProspects:"Active Leads",pagesLabel:"Pages",createdLabel:"Created",emailedLabel:"Emailed",accessedLabel:"Accessed",playedLabel:"Played",topLandingPages:"Top Sales Pages",topSalesUsers:"Top Sales Users",createAndSend:"Record Videos Instantly",createAndSendDesc:"Record instant videos to make an impact and to speed up your sales cycle.",quickRecord:"QUICK RECORD",signals:"Sales Signals",topSalesEmptyState:"Jeez! your sales users have shown no activity.",topSales:"You’re yet to add users.",topLPEmptyState:"Oh! Your sales pages are yet to be viewed. Create high-impact personalized sales pages from here.",prospectsEmptyState:"We are yet to see any activity from leads.",salesSignalsEmptyState:"No activity from your leads yet.",openYourMail:" just opened your email",viewedYourVideo:" viewed your video right now.",yay:"Yay! ",wow:"Wow! ",clickedVideo:" clicked on your video",playedVideo:" played your video, that's good news!",last30days:"Last 30 days",salesSignalHelp:"Alerts for sales based on customer actions",salesPageStats:"Sales Page Stats",clickedCta:" clicked a CTA on your video"},poweredByFooter:{poweredByText:"Powered By",poweredBySignupTextForIndividual:"Loved it? Create and send mesmerizing videos on your own.",poweredBySignupTextForBusiness:"Loved it? Create and send mesmerizing videos on your own.",signUp:"Sign Up",getFreeAccountForLife:"Get Free Account For Life",signUpForFree:"Sign Up for Free"},deliveryLandingPage:{title:"Send as a Sales Page",preview:"Preview",default:"Default",createNew:"Create new Sales page",myPages:"My Sales Pages",allPages:"All Sales Pages",sharedPages:"Shared Sales Pages",clear:"Clear",filterBy:"Filter by",save:"Save",allPagesEmptyStateText:"No results present for the search!",newLandingPageButtonText:"Create New Sales Page",setDefault:"Set selected page as default sales page",salesPage:"Sales Page",removeSalesPage:"Remove",noSalesPageSelected:"No sales page selected, click plus to add",landingPageDesc:"Add/select/remove sales page for this video"},mailchimpLeadAddModal:{addToListText:"Add leads to Mailchimp",configure:"Configure",manage:"Manage",title:"Add Leads To Mailchimp Account",account:"Mailchimp account:",changeAccount:"Change account",selectAudience:"Select Audience",noListsFound:"No Lists Found",groups:"Groups",noGroupsFound:"No Groups Found",previous:"Previous",next:"Next",finish:"Finish",unableToFetchLists:"Unable to fetch lists from Mailchimp account",unableToFetchGroups:"Unable to fetch groups from Mailchimp account",unableToFetchSubgroups:"Unable to fetch group from Mailchimp account"},bookDemoPage:{headerTitle:"Help us cater the demo for you",headerDesc:"We’ve various integrations for you. Pick the right ones for your business.",productUseMost:"What are the products you use the most ?",errorMsg:"Oops! Looks like you haven’t selected any integration. Choose at least one to proceed further.",noResult:"No Results Found",cancel:"Cancel",schedule:"Schedule"},gitomerPage:{videoPageTitle:"How to Make Great Videos: A Step-by-step Guide",lockVideoDesc:"Up Your Video Selling Game with Jeffrey Gitomer. Upgrade Now to Get Better at Video Selling",lockVideoCTA:"Upgrade & Unlock Videos Now",autoplay:"Autoplay",backTitle:"How to Make Great Videos: A Step-by-step Guide",subTitle:"GREAT VIDEOS ARE BORN FROM GREAT PRACTICES",description:"If you are one of the salespersons among many others who've never recorded prospecting or sales videos, we've got your back. Jeffrey Gitomer will personally coach you to make your videos better. Jeffrey will help you with practical tips to get better at video selling & prospecting.",more:"More",upgradeToView:"UPGRADE To View Full Video",allVideos:"All Videos",all:"all",mostViewed:"Most Viewed",plans:["all","Free","Pro","Growth"],newPlans:["all","Free","Paid"],sortByCriterias:["Most Viewed","Least Viewed","Featured"]},newSalesDashboard:{lastSevenDays:"Last 7 days",lastThirtyDays:"Last 30 days",lastNinetyDays:"Last 90 days",custom:"Custom",salesDashboard:"SALES DASHBOARD",getStarted:"Get Started",filters:"Filters",editDashboard:"Edit Dashboard",loadingText:"Please wait... All good things take time.",videosCreated:"Videos Created",uniqueViewers:"Unique Viewers",attentionSpan:"Attention Span",engagementRate:"Engagement Rate",videoStatsHeading:"Overall Video Statistics",videoStatsHeadingDesc:"Depicts a quick overview of how your videos, including guest videos, testimonials, and video replies, have performed.",myTopProspectingVideos:"My Top Prospecting Videos",showing:" - Showing",downloadAll:"Download All",videoInsightsLockStateText:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",videoInsightsEmptyStateText:"Oops! No data to show. Please create and share videos to view this report.",videoName:"Video Name",createdBy:"Created By",totalPlays:"Total Plays",salesPageHeading:"Overall Sales Page Statistics",salesPageHeadingDesc:"Depicts a quick overview of how your sales pages are performing based on Average Page time, Engagement rate, and Page Loads.",salesPageInsightsLockStateText:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",salesPageInsightsEmptyStateText:"Oops! No data to show. Please create and share sales pages to view this report.",salesPageCreated:"Sales Page Created",totalPageLoads:"Total Page Loads",avgPageTime:"Average page time",myTopProspectingPages:"My Top Prospecting Pages",salesPageName:"Sales Page Name",pageLoads:"Page Loads",bounceRate:"Bounce Rate",videoReplies:"Video Reply",overallDashboardLockStateText:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",topPerformingMediumHeading:"Top Performing Medium",topPerformingMediumHeadingDesc:"Depicts what type of medium is found most successful for engaging with your prospects.",topPerformingMediumEmptyState:"Oops! No data to show. Please create and share videos to view this report.",topPerformingMediumLockState:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",mostEngagingScriptHeading:"Most Engaging Script",mostEngagingScriptHeadingDesc:"Depicts which script is having maximum attention span.",mostEngagingScriptLockStateText:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",mostEngagingScriptEmptyStateText:"Oops! No data to show. Please create engaging scripts and record videos to view this report.",name:"Name",salesSignalsHeading:"Sales Signals",salesSignalsHeadingDesc:"Depicts a timeline report on the recent activities performed by the prospects. This report will only show the activities of the current user’s prospects.",salesSignalsEmptyState:"Oops! No data to show. Please create and share videos to view this report.",salesSignalLockState:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",activeProspectsHeading:"Active Prospects",activeProspectsHeadingDesc:"Depicts a list of active prospects who have engaged with videos, such as visiting a page or clicking on a link.",activeProspectsLockStateText:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report.",activeProspectsEmptyStateText:"Oops! No data to show. Please create and share videos with prospects to view this report.",nameOfTheProspect:"Name of the prospect",ownersName:"Owner’s name",uniqueVideoPlays:"Unique Video plays",avgAttentionSpan:"Avg Attention span",totalInVideoCtaClicks:"Total In video CTA clicks",totalPageCtaClicks:"Total Page CTA clicks",topSalesRepsHeading:"Top Sales Reps",topSalesRepsHeadingDesc:"Depicts a quick overview of the top-performing sales reps.",topSalesRepsEmptyState:"Oops! No data to show. Please add your team to view this report.",topSalesRepsLockState:"Sorry!! This report is not available in your plan. Please upgrade or contact your administrator to enable this report."},SsoConfig:{SetupMsg:"Setup SSO target url and certificates here",SsoConf:"SSO Configuration",targetUrl:"Target URL",logoutUrl:"Logout URL",domain:"Your IDP domain",cert:"X.509 Certificate",certNote:"Copy and paste values between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----",issuer:"Issuer URL",metadata:"Metadata URL (Optional)",exDomain:"(Ex.) hippovideo.okta.com",exTargetUrl:"Your IdP's Single-Sign-On URL",exIssuer:"Your IdP's Issuer URL.",exCert:"Your IdP's X.509 Certificate here.",exMetadata:"Your IdP's remote metadata URL",exLogoutUrl:"Single Logout URL (Optional)",notValidDomain:"Enter valid Domain",notValidCert:"Enter valid certificate",notValidUrl:"Valid Target URL is required",notValidIssuer:"Enter valid Issuer URL",confirmUpdate:"UPDATE",updateCancel:"CANCEL",updateTitle:"Update SSO Configuration",updateSsoMsg:"SSO is already configured for the given domain. Updating with new details will erase old Saml SSO configurations. Update?",wantToProceed:"Confirm Update?",acsUrl:"https://www.hippovideo.io/users/auth/saml/callback?domain=<your_idp_domain>",acsBaseUrl:"https://www.hippovideo.io/users/auth/saml/callback?domain=",acsLabel:"ACS URL"},userBasedReports:{teamReports:"Team Reports",overallTeamReports:"OVERALL TEAM REPORTS",detailedReport:"Detailed Report",downloadReports:"Download Reports",dateRange:"Date range",lastSevenDays:"Last 7 days",lastThirtyDays:"Last 30 days",lastNinetyDays:"Last 90 days",custom:"Custom",videosCreated:"Videos Created",videosPlayed:"Videos Played",contactsCreated:"Contacts Added",overallVideosShared:"Videos Shared",showingPage:"Showing Page",first:"First",last:"Last",lastAccessedDate:"Last Accessed date",videoAttnSpan:"Video Attention Span",pageTime:"Page Time",uniqueViewers:"Unique Viewers",salesPageCreated:"Sales Pages Created",teamVideoCreated:"Videos created",totalContacts:"Total contacts",videosShared:"Videos Shared",firstName:"First Name",firstNameTip:"The first name of the team member.",avgPageTime:"Avg. Page Time",teamVideoCreatedTip:"Total number of videos created by the team member.",salesPageCreatedTip:"Total number of sales pages created by the team member.",uniqueViewersTip:"Total number of unique viewers who have played the videos.",avgPageTimeTip:"The average amount of time spent on the sales page by the unique viewers.",videoAttnSpanTip:"The average watch percentage of all the videos played by unique viewers.",videosSharedTip:"Total number of videos shared by the team member. The count includes videos shared in emails or through tracking enabled links from Hippo Video and other tools.",lastAccessedDateTip:"The last date on which the account was accessed by the team member. Eligibility conditions include any asset creation, modification, or sharing.",videosCreatedTip:"Total number of videos created by all the users in the account for the selected time period.",videosPlayedTip:"Total number of videos played by the unique viewers for the selected time period.",contactsCreatedTip:"Total contacts added by all the users in the account for the selected time period.",overallVideosSharedTip:"Total number of videos shared by all the users in the account. The count includes videos shared in emails or through tracking enabled links from Hippo Video and other tools.",loadingText:"Please wait... All good things take time.",noReportsFound:"Oops! No results found.",downloadAsCsv:".csv file",downloadAsXls:".xls file",detailedVideosCreated:"Videos Created",detailedVideoPlays:"Videos Played",detailedUniquePlays:"Unique Viewers",detailedPageTime:"Avg Page Time",detailedAttentionSpan:"Avg Video Attention Span",detailedVideosShared:"Videos Shared",currentCountText:"Current",previousCountText:"Previous",videoCreationTooltip:"This widget shows how the top 20 users have performed based on the number of videos created",videoPlayTooltip:"This widget shows how the top 20 users have performed based on the number of videos played",uniquePlayTooltip:"This widget shows how the top 20 users have performed based on the number of unique viewers",avgPageTimeTooltip:"This widget shows how the top 20 users have performed based on the average time spent on a sales page",attnSpanTooltip:"This widget shows how the top 20 users have performed based on the average watch percentage of the videos played",videoShareTooltip:"This widget shows how the top 20 users have performed based on the number of videos sharedin emails or through tracking enabled links from Hippo Video and other tools.",rankText:"Rank",rankFormula:"Position = Previous rank - Current rank",noRankChange:"Indicates that there is no change in the previous and current rank.",previousVideoCreation:"Total number of videos created by the team members in the previous time period.",currentVideoCreation:"Total number of videos created by the team members in the current time period.",previousVideoPlay:"Total number of videos played by the viewers in the previous time period.",currentVideoPlay:"Total number of videos played by the viewers in the current time period.",previousUniquePlay:"Total number of videos played by the unique viewers in the previous time period.",currentUniquePlay:"Total number of videos played by the unique viewers in the current time period.",previousAvgPageTime:"The average amount of time spent on the sales page by the unique viewers in the previous time period.",currentAvgPageTime:"The average amount of time spent on the sales page by the unique viewers in the current time period.",previousAttnSpan:"The average percentage of the videos watched by the unique viewers in the previous time period.",currentAttnSpan:"The average percentage of the videos watched by the unique viewers in the current time period.",previousVideoShare:"Total number of videos shared by the team members in the previous time period.",currentVideoShare:"Total number of videos shared by the team members in the current time period.",relativeRank:"The relative position of the user is calculated based on the difference between the previous and the current rank. The down and up arrow indicates depreciation or improvement respectively."},recorderUi:{reqButton:"REQUEST PERMISSION",Uploadtext:"If you're not ready to record your first video yet, try uploading a video to explore what we have in store for you",permissionsText:"",recordHelp:"Press Record to start!",overlayLighting:"Lighting",videoQualityText:"Video Quality",telepromptertext:"Teleprompter",lightingToolTip1:"Your Lighting",lightingToolTip2:"Status:",mirrorVideo:"Mirror Video",qualityHeading:"Your Video Quality",frameRateText:"Frame rate",resolutionText:"Max resolution supported",camQualityText:"Webcam quality",bestPractices:"Best Practices"},feedback:{unsubscribeSuccessfully:"You have been unsubscribed from the email successfully",unsubscribeErrorMsg:"Sorry, we could not unsubscribe you from the email cadence, Please reach out to support@hippovideo.io",validEmailMsg:"Please enter valid email"}},__tl:{validationMessages:{email:"దయచేసి మీ ఇమెయిల్ను నమోదు చేయండి",title:"దయచేసి శీర్షికను నమోదు చేయండి.",description:"దయచేసి గమనికలను నమోదు చేయండి.",catName:"దయచేసి వర్గం పేరుని నమోదు చేయండి.",phoneNumber:"దయచేసి ఫోన్ నంబర్ను నమోదు చేయండి.",name:"దయచేసి మీ పేరు నమోదు చేయండి.",testimonialName:"దయచేసి ప్రచార పేరుని నమోదు చేయండి.",firstName:"దయచేసి మీ మొదటి పేరుని నమోదు చేయండి.",lastName:"దయచేసి మీ చివరి పేరుని నమోదు చేయండి.",invalidAadhaarNumber:"చెల్లని ఆధార్ నంబర్.",thisFieldIsMandatory:"ఈ ఫీల్డ్ తప్పనిసరి"},wizImport:{note:"గమనిక",importVideo:"వీడియోను అప్లోడ్ చేయండి",importFromLocal:"స్థానిక నుండి దిగుమతి చేయండి",dragdropYourFiles:"మీ వీడియోను ఇక్కడ లాగి & డ్రాప్ చేయండి",browse:"ఎంచుకోండి",cancel:"చేయవద్దు",import:"దిగుమతి",supports:"మద్దతు",formatsWithMaxSize:"గరిష్టంగా ఫైల్ పరిమాణంతో ఫార్మాట్ చేయండి",proceed:"కొనసాగండి",changeFile:"వీడియోను మార్చండి",videosSelected:"ఎంచుకున్న వీడియో",importHelp:"మీరు కేవలం 1 వీడియోను ఎంచుకోవచ్చు.",loading:"లోడ్...",selectedFile:"ఎంచుకున్న వీడియో",videoTitle:"వీడియో శీర్షిక",addToCategory:"వర్గానికి జోడించు",addTags:"ట్యాగ్లను అనుసంధించు",description:"వివరణ",readMore:"మరింత చదవండి",readLess:"తక్కువ చదవండి",shareMsg:"ఇక్కడ ఆంధ్రప్రదేశ్ జన్మభూమి కోసం ఒక వీడియోను రికార్డ్ చేయండి ",unsupported:"ఈ ఫైల్కు మద్దతు లేదు. దయచేసి క్రింది పేర్కొన్న ఫైల్ రకాలను మాత్రమే ఉపయోగించండి."},progressMessages:{uploadingFile:"వీడియో అప్లోడ్ చేయబడుతోంది",videoUploadedWaiting:"వీడియో అప్లోడ్ అయ్యింది. కంప్రెస్ చేయడానికి వేచి ఉంది...",errorUploading:"వీడియోను అప్లోడ్ చేస్తున్నప్పుడు కొంత లోపం సంభవించింది",preparingFile:"వీడియోను సిద్ధం చేయబడుతోంది",videoIsCreating:"మీ వీడియో సృష్టించబడుతోంది"},labelContent:{district:"జిల్లా",mandal:"మండల్",panchayat:"పంచాయతీ / వార్డ్",aadhar:"ఆధార్ నంబర్"}},init:function(e){e||(e="undefined"!=typeof window&&window._i18n&&window._i18n.locale?window._i18n.locale:"undefined"!=typeof document&&document.documentElement.lang?document.documentElement.lang:"undefined"!=typeof navigator&&(navigator.languages||navigator.language||navigator.userLanguage)?((e=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||"root").toLowerCase():"root");var t=this["__"+e]||this.__root;if(t)for(var i in t)this[i]=t[i];var n=function(e,t){for(var i in t)switch(typeof e[i]){case"undefined":e[i]=t[i];break;case"object":n(e[i],t[i])}};n(this,this.__root)}};i.init(),e.exports=i},function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n,r=i(4),o=i.n(r),a=i(3).c.div(n||(n=o()(["\n margin-top: ",";\n margin-left: auto;\n margin-right: auto;\n\n /* Because the css of image-upload-progress-container is not defined properly and you will need to import entire wiz-delivery.scss file for this to work */\n .image-upload-progress-container {\n display: none;\n }\n"])),(function(e){return e.showSimpleEditor?"38px":"0"}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return I}));var n,r,o=i(1),a=i.n(o),s=i(69),l=i.n(s),c=i(3),d=i(95),u=i.n(d),p=i(62),h=i.n(p),f=i(4),m=i.n(f),g=c.c.div(n||(n=m()(["\n .progress-widget-header {\n position: relative;\n display: flex;\n align-items: center;\n width: 80%;\n border-bottom: 1px solid #E6E6E6;\n margin: 0 auto;\n &-progress-warpper {\n position: relative;\n }\n &-status-text {\n color: #000000;\n font: normal normal 600 14px/19px Open Sans;\n }\n &-percent-text {\n font: normal normal 600 14px/19px Open Sans;\n color: #000000;\n position: absolute;\n right: 0;\n }\n img {\n position: absolute;\n top: 11px;\n left: 10px;\n }\n }\n .progress-widget-content {\n width: 80%;\n margin: 0 auto;\n padding: 10px 10px;\n font: normal normal normal 12px/17px Open Sans;\n color: #6F6F6F;\n }\n"]))),v=c.c.div(r||(r=m()(["\n svg {\n width: 30px;\n height: 28px;\n .bg {\n fill: none;\n stroke-width: 2px;\n stroke: #E6E6E6;\n }\n .progress {\n fill: none;\n stroke-width: 2px;\n stroke: #F47A58;\n stroke-linecap: round;\n stroke-dasharray: 62.36;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n stroke-dashoffset: ",";\n transition: stroke-dashoffset 1s ease-in;\n }\n }\n"])),(function(e){return isNaN(e.progress)?"62":e.progress}));function y(e){var t=e.progressPercent,i=void 0===t?0:t,n=Object(o.useMemo)((function(){return 62-i/100*62}),[i]);return a.a.createElement(v,{progress:n},a.a.createElement("svg",null,a.a.createElement("circle",{className:"bg",cx:"15",cy:"15",r:"10"}),a.a.createElement("circle",{className:"progress two",cx:"15",cy:"15",r:"10"})))}var b,w=i(7),S={completedPercent:0,type:"upload"};function C(e){var t=e.recorder,i=e.onUploadComplete,n=e.onUploadError,r=Object(o.useState)(S),s=r[0],l=r[1],c=Object(o.useRef)(),d=Object(w.a)(s);return Object(o.useEffect)((function(){c.current||(c.current=setInterval((function(){try{t.getUploadDetails().then((function(e){return e&&e.completed?(i&&i(),clearInterval(c.current),void(c.current=null)):e&&e.error?(clearInterval(c.current),c.current=null,void n(e.errorType)):void l(e)})).catch((function(e){console.error("UPLOAD STATUS FETCH ERROR ",e),clearInterval(c.current),c.current=null}))}catch(e){console.error("UPLOAD PROGRESS EX ",e),clearInterval(c.current),c.current=null}}),1e3))})),a.a.createElement(g,null,a.a.createElement("div",{className:"progress-widget-header"},a.a.createElement("div",{className:"progress-widget-header-progress-warpper"},a.a.createElement(y,{progressPercent:s.completedPercent}),a.a.createElement("img",{src:Object(w.e)("/svg/rapi/webcam-icon.svg")})),a.a.createElement("div",{className:"progress-widget-header-status-text"},"Uploading video"),a.a.createElement("div",{className:"progress-widget-header-percent-text"},s.completedPercent,"%")),a.a.createElement("div",{className:"progress-widget-content"},a.a.createElement("div",null,d)))}var k,x=c.c.div(b||(b=m()(["\n margin: 0 auto;\n width: 90%;\n .hv-upload-error-screen-header {\n display: flex;\n align-items: center;\n padding-bottom: 10px;\n padding-top: 20px;\n border-bottom: 1px solid #e6e6e6;\n img {\n margin-right: 5px;\n }\n div {\n font: normal normal 600 14px/19px Open Sans;\n }\n }\n\n .hv-upload-error-screen-content {\n &-text {\n font: normal normal normal 12px/17px Open Sans;\n color: #212121;\n padding-top: 10px;\n }\n &-options-wrapper {\n text-align: center;\n padding: 20px 0px;\n }\n }\n"]))),_=i(19);function E(e){var t=e.downloadSources,i=e.onRetryUpload;return a.a.createElement(x,null,a.a.createElement("div",{className:"hv-upload-error-screen-header"},a.a.createElement("img",{src:Object(w.e)("/svg/rapi/error-circle-red.svg")}),a.a.createElement("div",null,"Upload Failed")),a.a.createElement("div",{className:"hv-upload-error-screen-content"},a.a.createElement("div",null,a.a.createElement("div",{className:"hv-upload-error-screen-content-text"},"Your video upload has failed! Below are the few options you can try."),a.a.createElement("div",{className:"hv-upload-error-screen-content-options-wrapper"},a.a.createElement(_.f,{style:{marginRight:"10px"},icon:Object(w.e)("/svg/rapi/download-icon.svg"),text:"Download Video",options:function(){var e=[];if(t)for(var i in t){var n=t[i];e.push({link:n,linkType:"download",downloadName:"Testing the name",linkName:"Download ".concat(i," source")})}return e}(),buttonFeature:_.b.DROPDOWN,dropdownPosition:_.e.TOP}),a.a.createElement(_.f,{text:"Retry Upload",onClickHandler:i})))))}var T=c.c.div(k||(k=m()(["\n max-width: 400px;\n min-width: 300px;\n border: 1px solid #E6E6E6;\n background-color: #ffffff;\n box-shadow: 0px 8px 12px #0000001A;\n border-radius: 8px;\n"])));function P(e){var t=e.recorder,i=e.onUploadComplete,n=Object(o.useState)(!1),r=n[0],s=n[1],l=Object(o.useRef)(),c=function(){var e=u()(h.a.mark((function e(i){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("SETTING UPLOAD ERROR >>> ",i),e.next=3,t.getRecordingObjectUrls();case 3:l.current=e.sent,console.log("SETTING UPLOAD ERROR >>> ",l.current),s(i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return a.a.createElement(T,null,r?a.a.createElement(E,{downloadSources:l.current,onRetryUpload:function(){t.retryUpload(),s(!1)}}):a.a.createElement(C,{recorder:t,onUploadComplete:i,onUploadError:c}))}function I(e,t){var i=R();l.a.render(a.a.createElement(c.a,{theme:t},a.a.createElement(P,{recorder:e,onUploadComplete:A})),i)}var A=function(){l.a.unmountComponentAtNode(document.getElementsByClassName("hv-upload-progress-widget")[0])},R=function(){if(document.getElementsByClassName("hv-upload-progress-widget").length>0)return document.getElementsByClassName("hv-upload-progress-widget")[0];var e=document.createElement("div");return e.className="hv-upload-progress-widget",e.style="position: fixed;bottom: 20px;right: 20px;",document.body.appendChild(e),e}},function(e,t,i){"use strict";var n=i(0),r=i.n(n),o=i(10),a=i(25),s=i.n(a),l=i(2),c=i(8),d=i(154),u=i.n(d),p=(i(82),i(96),i(180),i(200),i(23),i(145),i(103),i(54),i(67),{getImportedImageInfo:function(e){var t=e.upload_type,i={};return"local_file"===t?(i.upload_type="local_file",i.file_name=e.name,i.size=e.size,i.description=e.description||e.name):"existing_media"===t?(i.upload_type="existing_media",i.video_id=e.id):"gdrive"===t?(i.upload_type="gdrive",i.id=e.id,i.token_id=e.token_id):"url"===t&&(i.upload_type="url",i.url=e.url),i.contains_image=!0,i},getMfImage:function(e,t){var i=document.createElement("canvas");i.width=2e3,i.height=1125;var n=i.getContext("2d");n.fillStyle="white",n.fillRect(0,0,i.width,i.height),n.fillStyle="#2a2a2a";var r="image"===t?"360px":"300px";n.font="700 "+r+" Open Sans";var o="image"===t?"IMAGE":"WEBSITE";n.fillText("$"+o+e+"$",100,500),n.fillStyle="#969ca2",n.font="170px Open Sans";var a="G O E S H E R E".split("").join(String.fromCharCode(8201));return n.fillText(a,110,800),i.toDataURL("image/png")},getNewImageMfId:function(e,t){for(var i=[],n=[],r="image"===t,o=0;o<e.clips.length;o++){var a=e.clips[o];"image-mf"===a.footage.type&&(r?void 0!==a.footage.is_website&&"false"!==a.footage.is_website.toString()||(a.footage.image_id?n.push(Number(a.footage.image_id)):n.push(Number(a.footage.id))):a.footage.is_website&&"true"===a.footage.is_website.toString()&&n.push(Number(a.footage.image_id)),i.push(Number(a.footage.id)))}var s=this.getId(i);return{imageId:this.getId(n),footageId:s}},getId:function(e){for(var t=1;e.includes(t);)++t;return t}}),h=(i(90),{getPaletteConfig:function(e,t,i){var n=this,o={};return(HippoVideo.data.api.getProperty("showBrandingColorPalette")||i)&&(o={showSelectionPalette:!1,showPalette:!0,hideAfterPaletteSelect:!0,beforeShow:function(){var e=r()("."+t);return e.find("#showMoreContainer").remove(),e.addClass("palette-view"),e.find(".sp-picker-container .sp-top, .sp-picker-container .sp-input-container").hide(),e.find(".sp-picker-container").prepend("<div id='showMoreContainer'><div id='showMoreOption'>+ More Colors</div></div>"),e.find("#showMoreOption").off("click").on("click",{containerClassName:t,self:n},n.handleShowMore),!0},palette:[e]}),o},handleShowMore:function(e){var t=r()("."+e.data.containerClassName);e.data.self.showColorPicker(t)},showColorPicker:function(e){e.find(".sp-picker-container .sp-top, .sp-picker-container .sp-input-container").show(),e.removeClass("palette-view"),e.find("#showMoreContainer").remove()}}),f=i(5),m=i.n(f),g=i(30),v=i.n(g),y=i(128),b=i.n(y),w=i(9),S=i(22),C=i.n(S),k=i(420),x=i.n(k),_=(i(151),i(280)),E=(i(78),i(182)),T=i.n(E),P=i(37),I=i.n(P),A=i(38),R=i.n(A),O=i(51),N=i.n(O),D=i(55),L=i.n(D),M=i(42),B=i.n(M),F=(i(66),i(201),i(285),i(173),i(700),i(348),i(59),i(63),i(50),i(89),i(110),i(97),i(88),i(52),i(701),i(703),i(710),i(712),i(713),i(714),i(717),i(718),i(719),i(720),i(721),i(722),i(723),i(724),i(726),i(727),i(728),i(729),i(730),i(731),i(732),i(733),i(734),i(735),i(736),i(216),i(175),i(266),i(345),i(131)),V=i.n(F),U=i(227),z=i.n(U),j=i(228),H=i(422),q=i.n(H),$=i(423),W=i.n($),G=i(21);function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=B()(e);if(t){var r=B()(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return L()(this,i)}}var K="/media/search/web",J="/media/library",X="/media/recent",Q="/api/internal/media/gdrive/accounts",Z="/api/internal/google_api/drive/configure",ee="/api/internal/media/gdrive/list",te="/template_demo/fetch_image_url",ie="/video/drive/create",ne="/video/import/gdrive",re="/video/get_all_videos/",oe="/shopify/products",ae="/video_testimonial_setting",se="/video_page/fetch_carousel_link_thumbnail",le="/api/meta/get_content",ce="/video/import/generate_website_preview",de=function(e){N()(i,e);var t=Y(i);function i(){return I()(this,i),t.apply(this,arguments)}return R()(i,[{key:"searchFromWeb",value:function(e,t,i,n,r,o,a){G.default.call({url:K,type:"GET",data:{page:t,count:i,search_from:n,search_type:r,search_query:e},success:o,error:a})}},{key:"fetchTestimonialCategory",value:function(e,t){G.default.call({url:ae,type:"GET",success:e,error:t})}},{key:"fetchCarouselThumbnailLink",value:function(e,t,i){G.default.call({url:se,type:"POST",data:e,success:t,error:i})}},{key:"fetchTestimonial",value:function(e,t,i){G.default.call({url:ae+"/"+e.categoryId+"/"+e.offset,type:"GET",success:t,error:i})}},{key:"searchMediaLibrary",value:function(e,t,i){G.default.call({url:J,type:"GET",data:{genre:e},success:t,error:i})}},{key:"fetchRecentlyUsed",value:function(e,t,i,n){G.default.call({url:X,type:"GET",data:{type:e,page:t},success:i,error:n})}},{key:"fetchShopifyProducts",value:function(e,t,i){var n=oe;e&&(n=n+"?shop="+e),G.default.call({url:n,type:"GET",success:t,error:i})}},{key:"fetchDriveAccounts",value:function(e,t){G.default.call({url:Q,type:"GET",success:e,error:t})}},{key:"configureDrive",value:function(e,t,i){G.default.call({url:Z,type:"POST",data:e,success:t,error:i})}},{key:"fetchFilesFromDrive",value:function(e,t,i){"custom"==e.file_type&&(e.file_type="image, video"),G.default.call({url:ee,type:"GET",data:e,success:t,error:i})}},{key:"importImageAndFetchUrl",value:function(e,t,i){G.default.call({url:te,type:"POST",data:e,success:t,error:i})}},{key:"createVideoFromDrive",value:function(e,t,i){G.default.call({url:ie,type:"POST",data:e,success:t,error:i})}},{key:"importVideoToDrive",value:function(e,t,i){G.default.call({url:ne,type:"POST",data:e,success:t,error:i,timeout:3e5})}},{key:"fetchLibraryVideos",value:function(e,t,i){G.default.call({url:re,type:"GET",data:e,success:t,error:i})}},{key:"getMetaDataContent",value:function(e,t,i){G.default.call({url:le,type:"POST",data:e,success:t,error:i})}},{key:"getPreviewFromWebSiteLink",value:function(e,t,i){G.default.call({url:ce,type:"POST",data:e,success:t,error:i})}}]),i}(s.a.Model),ue=(i(738),i(739),i(740),i(741),i(742),i(743),i(744),i(745),i(746),i(424)),pe=i.n(ue),he=i(116),fe=i.n(he),me=i(281),ge=i.n(me),ve=i(282),ye=i.n(ve);i(747);var be={ACCEPTED_VIDEO_TYPES:["video/quicktime","video/mp4","video/x-flv","video/*"],SUPPORTED_DOC_FORMATS:[".pdf",".ppt",".pptx",".doc",".docx",".txt",".rtf",".xlsx",".csv"],SUPPORTED_IMAGE_FORMATS:[".png",".jpg",".jpeg",".bmp",".gif"],ACCEPT_IMAGE_ONLY_FORMATS:[".png",".jpg",".jpeg",".bmp"]};i(206),i(60),i(270),i(65);function we(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return Se(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Se(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var Ce={isDocument:function(e){if(!e)return!1;var t=e.substring(e.lastIndexOf(".")),i=be.SUPPORTED_DOC_FORMATS.includes(t);return i},isImage:function(e){if(!e)return!1;var t=e.substring(e.lastIndexOf(".")),i=be.SUPPORTED_IMAGE_FORMATS.includes(t);return i},listIncludes:function(e,t){var i,n=t.id,r=we(e);try{for(r.s();!(i=r.n()).done;){if(n===i.value.id)return!0}}catch(e){r.e(e)}finally{r.f()}return!1}},ke=i(283),xe=i.n(ke);i(126),i(757);function _e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=B()(e);if(t){var r=B()(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return L()(this,i)}}var Ee=["image/png","image/jpeg","image/jpg","image/bmp","image/gif"],Te=["webm","mkv","flv","vob","ogv","avi","mov","qt","wmv","yuv","rm","rmvb","asf","amv","mp4","quicktime","m4p","m4v","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv","f4v","f4p","f4a","f4b","swf"],Pe=be.SUPPORTED_IMAGE_FORMATS,Ie=["audio/*"],Ae=be.ACCEPTED_VIDEO_TYPES,Re=be.ACCEPT_IMAGE_ONLY_FORMATS,Oe=be.SUPPORTED_DOC_FORMATS,Ne=["application/pdf"],De="Something went wrong. Please contact support@hippovideo.io",Le=[{category:"audioLibrary",type:"s3"},{category:"existingMedia",type:"existing_media"},{category:"webSearch",type:"url"},{category:"gDrive",type:"gdrive"},{category:"shopify",type:"shopify"},{category:"videoLibrary",type:"video_library"}],Me=function(e){N()(i,e);var t=_e(i);function i(){return I()(this,i),t.apply(this,arguments)}return R()(i,[{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.gDriveToken=void 0,this.nextWebFileId=0,this.totalLocalFiles=0,this.isDrawOpen=!1,this.webSearchPerPage=20,this.recentlyUsedNextPage=0,this.driveNextPageToken=void 0,this.selectList=[],this.driveAccounts=[],this.configuredDriveAccount=void 0,this.configuredDriveUserId=void 0,this.categoriesAndTags={},this.testimonialCategoriesList=void 0,this.isWebSearching=!1,this.isDrawForceClosed=!1,this.isMediaUploading=!1,this.isDriveInitializationChecked=!1,this.isLibraryVideoInitializationChecked=!1,this.contactId=e.contactId,this.contactEmail=e.contactEmail,this.$el=void 0===e.el?r()("#importMediaContainer"):e.el,this.importType=e.type||"image",this.onlyDoc=e.onlyDoc||!1,this.actionType=e.actionType,this.isMultiple=void 0===e.isMultiple||e.isMultiple,this.maximumFilesAllowed=e.maximumFilesAllowed||50,this.maximumPerFileSize=e.maximumPerFileSize||10,this.handleOneFileUpload=e.handleOneFileUpload||!1,this.mediaCategoryId=e.mediaCategoryId,this.isPrimaryVideoPresent=e.isPrimaryVideoPresent,this.showSelectedDrawer=!this.handleOneFileUpload,this.callbackMethodToHandleFiles=e.callbackMethodToHandleFiles||function(){},this.fromAddMore=e.fromAddMore,this.digest=void 0!==e.digest&&e.digest,this.callBack=e.importVideoPreview,this.closeImportCallback=e.closeImportCallback,this.allowCloseImportWhileUploading=void 0===e.allowCloseImportWhileUploading||e.allowCloseImportWhileUploading,this.isProEditImport=void 0!==e.isFromProEdit&&e.isFromProEdit,this.canShowVideoLibrary=this.isProEditImport||e.canShowVideoLibrary,this.callBackProEdit=void 0!==e.callBackProEdit&&e.callBackProEdit,this.canShowImageWebSearch=!("image"!==this.importType&&!e.canShowImageWebSearch),this.canShowShopify=!("image"!==this.importType&&!e.canShowShopify),this.canShowAddViaLink=e.canShowAddViaLink||!1,this.restrict_gif=e.restrict_gif||!1,this.virtualBgImage=e.virtualBgImage;var t=e.fromEdit||!1,i=l.default.getLocalStorageValue("defaultFolderId-"+HippoVideo.data.api.getProperty("userId"));this.selectedCategory=i||0,t&&(this.canShowShopify=!1,this.canShowImageWebSearch=!1),this.virtualBgImage&&(this.canShowShopify=!1),this.saveLibraryVideoAsNewAsset=void 0===e.saveLibraryVideoAsNewAsset||e.saveLibraryVideoAsNewAsset,this.importMediaCallback=e.importMediaCallback,this.showVideoImportPreview=void 0===e.showVideoImportPreview||e.showVideoImportPreview,this.canShowAudioLibrary=!("audio"!==this.importType&&!e.canShowAudioLibrary),this.canShowRecentlyUsed=null==e.canShowRecentlyUsed?!this.isVideoImport():e.canShowRecentlyUsed,this.canShowVideoLibraryMulti=null!=e.canShowVideoLibraryMulti&&e.canShowVideoLibraryMulti,this.isFromVideoPages=null!=e.fromVideoPages&&e.fromVideoPages,this.videoOnly=null!=e.videoOnly&&e.videoOnly,this.actionFrom="importLocalTab",this.canShowCreateVideoOption=!1,this.canShowTestimonial=this.isProEditImport&&HippoVideo.data.api.getProperty("isTestimonialEnabled"),this.canShowGdriveImport=null==e.canShowGdriveImport?!this.digest:e.canShowGdriveImport,this.canImportImageFromLibrary=null!=e.canShowImageLibrary?e.canShowImageLibrary:"image"===this.importType,this.canShowImportFromLocal=null==e.canShowImportFromLocal?!this.digest:e.canShowImportFromLocal,this.isSalesGettingStarted=void 0!==e.isSalesGettingStarted&&e.isSalesGettingStarted,this.cancelRedirect=!0,this.fromSalesForce=e.fromSalesForce||!1,this.isOutlookSpecific=e.isOutlookSpecific||!1,this.leadName=e.leadName,this.isShopifyUser=HippoVideo.AppRegistry.isShopifyUser,this.isFromCarousel=e.isFromCarousel||!1,this.isIntroOutroVideo=e.isIntroOutroVideo||!1,this.renderingFirstTime=!0,this.fileChangeCount=0,this.importStartTime=null,this.customParams=e.customParams,this.importList=[],this.selectedFilesList=this.selectList,this.showAddMoreTemplate=null==e.showAddMoreTemplate||e.showAddMoreTemplate,this.isMultipleImageImport=!1,this.canShowWebLink=e.canShowWebLink||!1,this.virtualBGFromWeblink=e.virtualBGFromWeblink||!1,this.preserveTransparencyEnabled=HippoVideo.data.api.getProperty("preserveTransparencyEnabled"),this.videoLibraryBodyEl=r()("#importVideoLibraryContainer");try{this.Logger=HippoVideo.Class.Logger.getLogger("ImportMediaView")}catch(e){console.log(e)}this.isFromVideoPages&&(this.onVideoSubmit=e.onVideoSubmit,this.pageId=e.pageId,this.alreadySelectedFiles=e.selectedFiles,this.thumbDomain=e.thumbDomain,this.canShowCreateVideoOption=!0),this.onlyDoc&&(this.canShowCreateVideoOption=!1),this.search={type:"image",query:"",page:1,perPage:30},!this.isDocOrVideoImport()&&!this.isImageImport()||this.digest?this.render():(this.cancelRedirect=!1,this.fetchTagsAndCategories(),this.canShowTestimonial&&this.fetchTestimonialCategories())}},{key:"render",value:function(){var e,t=this;switch(this.importType){case"image":e=this.restrict_gif?Re:Pe;break;case"audio":e=Ie;break;case"video":e=Ae,this.isProEditImport&&(e=(e=e+","+Pe)+","+Ie);break;case"doc":e=Oe+","+Pe,this.onlyDoc&&(e=Oe);break;case"custom":e=this.customParams.acceptedFormats}W()(o.default.extend(w.b.wizImport,{title:this.getImportTitle(),type:this.importType,isMultiple:this.isMultiple,fromVideoPages:this.isFromVideoPages,maxFileSize:this.maximumPerFileSize,formatsList:this.getSupportedFormats(),acceptFormats:e,selectedTitle:this.getSelectedTitle(),canShowImportFromLocal:this.canShowImportFromLocal,handleOneFileUpload:this.handleOneFileUpload,isPrimaryVideoPresent:this.isPrimaryVideoPresent,canShowRecentlyUsed:this.canShowRecentlyUsed,canShowAudioLibrary:this.canShowAudioLibrary,canShowVideoLibraryMulti:this.canShowVideoLibraryMulti,canShowImageWebSearch:this.canShowImageWebSearch,canShowGdriveImport:this.canShowGdriveImport,canShowWebLink:this.canShowWebLink,virtualBGFromWeblink:this.virtualBGFromWeblink,canImportImageFromLibrary:this.canImportImageFromLibrary,canShowShopify:this.canShowShopify,canShowVideoLibrary:this.canShowVideoLibrary,canShowTestimonial:this.canShowTestimonial,canUploadImageFromLocal:this.isProEditImport,canUploadAudioFromLocal:this.isProEditImport,testimonialcategories:this.testimonialCategoriesList?this.testimonialCategoriesList.categories:void 0,categories:this.categoriesAndTags.categories,canShowCreateVideoOption:this.canShowCreateVideoOption,isShopifyUser:this.isShopifyUser,canShowAddViaLink:this.canShowAddViaLink,isOnlyDoc:this.onlyDoc}),(function(e,i){t.$el.empty().append(r()(i)),t.initializeEventListeners(),t.initUI(),t.$el.show(),"image"!=t.importType||"shopify"!=t.actionType&&!t.isShopifyUser||(r()("#import").text("Create Video"),r()("#importShopifyTab").click());var n={theme:"hippocategory",width:"element",dropdownCssClass:"et-dropdown-css"};t.isMultiple&&r()("#selectedImageGallery").sortable({containment:"parent",cursor:"move",tolerance:"pointer",items:"> .media-video",placeholder:"image image-placeholder"}),r()("#shopifyProducts").select2(n),r()("#shopifyStores").select2(n)}))}},{key:"initializeEventListeners",value:function(){this.closeImport=this.closeImport.bind(this),this.filesChangeHandler=this.filesChangeHandler.bind(this),this.filesDropHandler=this.filesDropHandler.bind(this),this.playerSlideChanged=this.playerSlideChanged.bind(this),this.fetchRecentlyUsed=this.fetchRecentlyUsed.bind(this),this.showGoogleLogin=this.showGoogleLogin.bind(this),this.videoConverting=this.videoConverting.bind(this),this.handleImportButtonClick=this.handleImportButtonClick.bind(this),this.importVideoFileAndProceed=this.importVideoFileAndProceed.bind(this),this.updateVideoImportDetails=this.updateVideoImportDetails.bind(this),this.enableChangeFileBtn=this.enableChangeFileBtn.bind(this),this.disableChangeFileBtn=this.disableChangeFileBtn.bind(this),this.cancelHandler=this.cancelHandler.bind(this),this._searchCategoriesList=this._searchCategoriesList.bind(this),this._clearCategoriesList=this._clearCategoriesList.bind(this),this.refreshLibrary=this.refreshLibrary.bind(this),this.showReloadBtn=this.showReloadBtn.bind(this),this.initializeShopify=this.initializeShopify.bind(this),this.shopifyProductsChanged=this.shopifyProductsChanged.bind(this),this.shopifyStoreChanged=this.shopifyStoreChanged.bind(this),this.showShopifyGallery=this.showShopifyGallery.bind(this),this.showShopifyLogin=this.showShopifyLogin.bind(this),this.linkAddToDrawer=this.linkAddToDrawer.bind(this),this.openDrawer=this.openCloseDrawer.bind(this,!0),this.closeDrawer=this.openCloseDrawer.bind(this,!1),this.videoCompressing=this.videoCompressing.bind(this),this.showNameAndThumbnailEdit=this.showNameAndThumbnailEdit.bind(this),this._handleLinkIconChange=this._handleLinkIconChange.bind(this),this.filterTags=this.filterTags.bind(this),this.renderTags=this.renderTags.bind(this),this.$el.find("#import").bind("click",this.handleImportButtonClick),this.$el.find("#closeImport, #cancelImport").bind("click",this.closeImport),this.$el.find(".tab").bind("click",{context:this},this.changeTab),this.$el.find("#libraryRefresh").bind("click",{context:this},this.refreshLibrary),this.$el.find("#browseFiles").bind("click",(function(){r()("#importFileUpload")[0].click()})),this.$el.find("#importFileUpload").bind("change",this.filesChangeHandler),this.$el.find(".search-from-web-box").bind("keypress",{context:this},this.searchBoxkeyPressed),this.$el.find(".search-icon").bind("click",{context:this},this.searchImageClicked),this.$el.find("#loadMoreContent").bind("click",{context:this},this.loadMoreImages),this.$el.find("#importLocalBanner, #importLocalContent").bind("dragover",!1).bind("drop",this.filesDropHandler),this.$el.find("#mediaGenre").bind("change",{context:this},this.mediaGenreChanged),this.$el.find("#driveAccessBtn").bind("click",{context:this},this.showGoogleLogin),this.$el.find("#shopifyAccessBtn").bind("click",{context:this},this.showShopifyLogin),this.$el.find("#driveAccounts").bind("change",{context:this},this.driveAccountChanged),this.$el.find("#shopifyProducts").bind("change",{context:this},this.shopifyProductsChanged),this.$el.find("#shopifyStores").bind("change",{context:this},this.shopifyStoreChanged),this.$el.find("#loadMoreContentDrive").bind("click",{context:this},this.loadMoreFromDrive),this.$el.find("#cancelVideoForm").bind("click",{context:this},this.cancelHandler),this.$el.find("#submitVideoForm").bind("click",{context:this},this.updateVideoImportDetails),this.$el.find("#videoCatList").bind("change",{context:this},this.videoCategoryChange),this.$el.find("#importVideoLibraryContainer").bind("scroll",{context:this},o.default.debounce(this.onScrollHandle,300)),this.$el.find(".hv-content-type-tags").bind("click",{context:this},this.handleContentTypeChange),this.$el.find("#testimonialCatList").bind("change",{context:this},this.testimonialCategoryChange),this.$el.find("#importVideoLibrarySearch").bind("keypress",{context:this},this._searchCategoriesList),this.$el.find("#clear-icon").bind("click",{context:this},this._clearCategoriesList),this.$el.find("#loadMoreLibraryVideo").bind("click",{context:this},this.loadMoreFromVideoLibrary),this.$el.find("#createVideoFromImportBtn").bind("click",{context:this},this.showReloadBtn),this.initializeImportViaWebSiteLink=this.initializeImportViaWebSiteLink.bind(this),this.addWebsiteLink=this.addWebsiteLink.bind(this),this.showWebSitePreview=this.showWebSitePreview.bind(this),this.showWebSitePreviewError=this.showWebSitePreviewError.bind(this),this.getFileFromUrl=this.getFileFromUrl.bind(this),this.dataURLtoFile=this.dataURLtoFile.bind(this),this.documentImportSuccessCallback=this.documentImportSuccessCallback.bind(this),this.ImportGdriveVideoSuccessCallback=this.ImportGdriveVideoSuccessCallback.bind(this),this.webLinkUrlChanged=this.webLinkUrlChanged.bind(this),this.showSelectedDrawer&&(this.$el.find("#openDrawHandle").bind("click",this.openDrawer),this.$el.find("#closeDrawHandle").bind("click",this.closeDrawer),this.$el.find(".scroll-arrow").bind("click",{context:this},this.scrollSelectionStrip))}},{key:"initUI",value:function(){this.$el.find("#importFromLocal").removeClass("hide"),this.virtualBGFromWeblink&&this.$el.find("#importViaWebLink").click(),this.isFromVideoPages&&(this.$el.find("#footnote").remove(),(this.isPrimaryVideoPresent||this.isMultiple||!this.isFromCarousel)&&this.$el.find("#importVideoLibraryTabMulti").click()),this.updateSelectedCounter(),setTimeout((function(){var e=r()(window).outerHeight(),t=r()(".import-media-container").outerHeight();e>t?r()(".import-media-container").css("margin-top",Math.floor((e-t)/2)+"px"):r()(".import-media-container").css("margin-top","15px")}),50)}},{key:"fetchTagsAndCategories",value:function(){var e=this;(new v.a).getTagsVideoCategories((function(t){e.isDocumentImport()||e.isImageImport()||(e.maximumPerFileSize=t.import_file_size),e.numImportsExceeded=t.num_imports_exceeded,e.categoriesAndTags=t||{},e.canShowTestimonial||e.render()}),(function(e){c.default.showBannerAlert(De,4e3,"error")}))}},{key:"fetchTestimonialCategories",value:function(){var e=this;(new de).fetchTestimonialCategory((function(t){e.testimonialCategoriesList=t||{},e.render()}),(function(t){e.$el.find(".import-drive-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")}))}},{key:"getSupportedFormats",value:function(){return this.isProEditImport?"MP4, MKV, FLV, MPEG, 3GP, MP3, JPEG, PNG and GIF":this.isVideoImport()?"MP4, MKV, FLV, MPEG, 3GP":this.isAudioImport()?"MP3, WMA, WAV":this.isImageImport()?"JPEG, PNG, BMP":this.isDocumentImport()?"PDF, PPT, PPTX, DOC, DOCX, TXT, RTF, JPG, JPEG, PNG, BMP, GIF":void 0}},{key:"getImportTitle",value:function(){if(this.isProEditImport)return w.b.wizImport.importMedia;var e;switch(this.importType){case"image":e=w.b.wizImport.importImages;break;case"audio":e=w.b.wizImport.importAudio;break;case"video":e="replace"==this.actionType?w.b.wizPreview.replaceVideo:w.b.wizImport.importVideo;break;case"custom":var t=this.customParams.name;e=w.b.wizImport.custom[t].title;break;default:e=w.b.wizImport.importImages}return e}},{key:"getSelectedTitle",value:function(){var e;switch(this.importType){case"image":e=w.b.wizImport.imagesSelected;break;case"audio":e=w.b.wizImport.audiosSelected;break;case"video":e=w.b.wizImport.videosSelected;break;case"custom":var t=this.customParams.name;e=w.b.wizImport.custom[t].selectionTitle;break;default:e=w.b.wizImport.imagesSelected}return e}},{key:"isVideoImport",value:function(){return"video"===this.importType}},{key:"isAudioImport",value:function(){return"audio"===this.importType}},{key:"isImageImport",value:function(){return"image"===this.importType}},{key:"isDocumentImport",value:function(){return"doc"===this.importType}},{key:"isCustomImport",value:function(){return"custom"===this.importType}},{key:"isDocOrVideoImport",value:function(){var e=this.isDocumentImport(),t=this.isVideoImport(),i=this.isCustomImport()&&this.customParams.isDocOrVideoImport,n=e||t||i;return n}},{key:"filesChangeHandler",value:function(e){var t=(e.target||[]).files;return this.importStartTime||(this.importStartTime=(new Date).getTime()/1e3),this.processImportFiles(t),!1}},{key:"filesDropHandler",value:function(e){var t=[],i=(e.originalEvent.dataTransfer||[]).items;this.importStartTime||(this.importStartTime=(new Date).getTime()/1e3),e.preventDefault();for(var n=0;n<i.length;n++)t.push(i[n].getAsFile());this.processImportFiles(t)}},{key:"canUploadVideoinBackground",value:function(e){return void 0!==e?this.isLocalVideoImport=this.isVideoImport()&&!this.isProEditImport&&this.showVideoImportPreview&&"local_file"===e[0].upload_type:void 0===this.isLocalVideoImport&&(this.isLocalVideoImport=this.isVideoImport()&&!this.isProEditImport&&this.showVideoImportPreview&&"gdrive"!==this.getSelectedMedia()[0].upload_type),this.isLocalVideoImport}},{key:"startVideoUploadAfterFileSelection",value:function(){this.canUploadVideoinBackground()&&(this.disableChangeFileBtn(),this.assetId?(this.abortVideoUpload(),this.updateVideoS3Key()):this.importVideoFileAndProceed())}},{key:"processImportFiles",value:function(e){var t=this,i=this.validateAndGetFiles(e),n=i.length,r=0,o=this;if(n>0)for(var a=function(e){var a=i[e];a.id="localFile-".concat(o.totalLocalFiles++),a.sizeFormatted="".concat((a.size/1048576).toFixed(2)," MB"),a.isImagePreview=o.isImageImport(),a.isAudioPreview=o.isAudioImport(),a.isVideoPreview=o.isVideoImport(),a.upload_type="local_file";if(o.isAudioImport()||o.isDocOrVideoImport()){if(!1,a.isImagePreview=!0,a.preview_url="/img/film-hippo.png",++r>=n&&1==n)o.displayLocalFiles(i),o.$el.find("#importLocalBanner").addClass("hide"),t.startVideoUploadAfterFileSelection();else if(n>1)return Ce.isDocument(a.name)||Ce.isImage(a.name)?(t.isMultipleImageImport=!0,t.totalFiles=n,t.validatedImageFiles=i,t.displayLocalFiles(i),o.$el.find("#importLocalBanner").addClass("hide")):(t.hippoYogaLoader=new j.a({id:"importVideoFormContainer"}),t.hippoYogaLoader.render(),t.hippoYogaLoader.updateProgressText(w.b.progressMessages.preparingFile),t.$el.find("#tabContainer, .import-footer, #importFromLocal").toggleClass("hide"),t.totalFiles=n,t.processMultipleVideoImport(i)),"break"}else{var s=new FileReader;s.onload=function(e){a.local_src=e.target.result,a.preview_url=s.result,++r>=n&&(o.displayLocalFiles(i),o.$el.find("#importLocalBanner").addClass("hide"))},s.readAsDataURL(a)}},s=0;s<n;s++){if("break"===a(s))break}}},{key:"imageLoadedCallback",value:function(e){r()(e.target.parentElement).find(".animated-background").fadeOut("slow")}},{key:"searchBoxkeyPressed",value:function(e){var t=e.data.context,i=e.key,n=t.$el.find("#searchFromWebTextBox").val().trim()||"";"Enter"===i&&n&&!t.isWebSearching&&t.searchImages(n,1)}},{key:"searchImageClicked",value:function(e){var t=e.data.context,i=t.$el.find("#searchFromWebTextBox").val().trim()||"";i&&!t.isWebSearching&&t.searchImages(i,1)}},{key:"searchImages",value:function(e,t){var i=this,n=!1;this.isWebSearching=!0,this.$el.find(".search-icon").addClass("hide"),this.$el.find(".import-spin-loading").removeClass("hide"),this.$el.find(".search-from-web-box").val(e),l.default.trackInThirdPartyTools("Import-Pop - Image Web Searching ",{}),(new de).searchFromWeb(e,t,this.webSearchPerPage,"flickr","image",(function(r){e!==i.search.query&&i.$el.find("#importWebContent").empty(),i.displayWebFiles(r),i.search.query=e,n=!r.has_photos,(new de).searchFromWeb(e,t,i.webSearchPerPage,"pexels","image",(function(e){i.displayWebFiles(e),i.$el.find(".search-icon").removeClass("hide"),i.$el.find(".import-spin-loading").addClass("hide"),i.isWebSearching=!1,(n=n&&!e.has_photos)&&0===i.$el.find("#importWebContent .image").length&&!i.isWebSearching?(i.$el.find("#webSearchEmptyState").removeClass("hide"),i.$el.find("#loadMoreContent").addClass("hide")):(i.$el.find("#webSearchEmptyState").addClass("hide"),i.$el.find("#loadMoreContent").removeClass("hide"))}),(function(e){i.isWebSearching=!1,i.$el.find(".search-icon").removeClass("hide"),i.$el.find(".import-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while searching Images from pexels :: ",stackTrace:JSON.stringify(e)})}))}),(function(e){i.isWebSearching=!1,i.$el.find(".search-icon").removeClass("hide"),i.$el.find(".import-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while searching Images from Flickr :: ",stackTrace:JSON.stringify(e)})}))}},{key:"mediaGenreChanged",value:function(e){var t=e.data.context,i=r()(e.target).val();t.searchMediaFromLibrary(i),l.default.trackInThirdPartyTools("Import-Pop - Media Genre changed to ".concat(i),{})}},{key:"searchMediaFromLibrary",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"jazz";this.$el.find(".import-spin-loading").removeClass("hide"),(new de).searchMediaLibrary(t,(function(t){fe()(o.default.extend(w.b.wizImport,{files:t.audio,type:"audio",isSortable:!1,showDelete:!1,isMultiple:e.isMultiple,showControls:!0,showAddMoreTemplate:!1,category:"audioLibrary"}),(function(t,i){e.$el.find("#importLibraryContent").empty().append(r()(i)),e.$el.find(".import-spin-loading").addClass("hide"),e.$el.find("#importLibraryContent .image").unbind().bind("click",{context:e},e.toggleMediaSelection),e.initializeAudioPlayerActions()}))}),(function(t){c.default.showBannerAlert(De,4e3,"error"),e.$el.find(".import-spin-loading").addClass("hide")}))}},{key:"fetchRecentlyUsed",value:function(){var e=this;this.$el.find(".import-recent-spin-loading").removeClass("hide"),this.isFetchingRecentlyUsed=!0,(new de).fetchRecentlyUsed(this.importType,this.recentlyUsedNextPage,(function(t){fe()(o.default.extend(w.b.wizImport,{files:t.urls,type:e.importType,isSortable:!1,showDelete:!1,isMultiple:e.isMultiple,showControls:!0,showAddMoreTemplate:!1,category:"existingMedia"}),(function(i,n){e.recentlyUsedNextPage++,e.isFetchingRecentlyUsed=!1,e.$el.find("#recentlyUsedContent").append(r()(n)),e.$el.find(".import-recent-spin-loading").addClass("hide"),e.$el.find("#recentlyUsedContent .gallery-view").one("load",{context:e},e.imageLoadedCallback),e.$el.find("#recentlyUsedContent .image").unbind().bind("click",{context:e},e.toggleMediaSelection),t.has_more?e.$el.find("#loadMoreContentrecent").unbind().bind("click",e.fetchRecentlyUsed).removeClass("hide"):e.$el.find("#loadMoreContentrecent").addClass("hide"),0===e.$el.find("#recentlyUsedContent .image").length?(e.isFetchingRecentlyUsed=!0,e.$el.find("#recentlyUsedEmptyState").removeClass("hide")):e.$el.find("#recentlyUsedEmptyState").addClass("hide"),e.initializeAudioPlayerActions()}))}),(function(t){e.isFetchingRecentlyUsed=!1,c.default.showBannerAlert(De,4e3,"error"),e.$el.find(".import-recent-spin-loading").addClass("hide")}))}},{key:"loadMoreImages",value:function(e){var t=e.data.context,i=t.search.query||"";i&&!t.isWebSearching&&t.searchImages(i,++t.search.page)}},{key:"toggleMediaSelection",value:function(e){var t=e.data.context,i=t.selectedFilesList,n=e.currentTarget,a=t.getSelectedMedia(),s=r()(n).find("img")[0],d=r()(n).find("input")[0],u=s.dataset.thumbnailurl;if(!r()(e.target).hasClass("player-progress"))if(r()(n).hasClass("selected"))t.removeFileFromSelection(n.id);else if(t.handleOneFileUpload&&1===a.length&&t.removeFileFromSelection(a[0].id),t.getSelectedMedia().length<t.maximumFilesAllowed){r()(n).addClass("selected");var p=n.dataset.isDocument,h=n.dataset.isImage,f=n.dataset.fileExt;if(n.id.includes("local")){var m=o.default.findIndex(i,{id:n.id}),g=i.splice(m,1);g[0].local_src=s.src,g[0].upload_type="local_file",g[0].is_document=p,g[0].is_image=h,g[0].file_ext=f,t.addFilesToSelectedList(g)}else{var v=o.default.where(Le,{category:s.dataset.category})[0]||[],y="audioLibrary"===s.dataset.category?void 0:s.dataset.url;t.isFromVideoPages&&(y=u=d.dataset.thumbnail);var b=n.id;"importImgLibTab"==t.actionFrom&&(y=u=d.dataset.thumbnail,t.isProEditImport&&(b=n.dataset.assetDetails)),t.addFilesToSelectedList([{id:b,upload_type:v.type,url:y,name:s.dataset.name,description:s.dataset.description,bucket:s.dataset.bucket,key:s.dataset.key,thumbnail_url:u,video_id:b,video_token:n.dataset.token,token_id:t.gDriveToken,is_document:p,is_image:h,file_ext:f,duration:s.dataset.duration}])}}else c.default.showBannerAlert("You can select a maximum of ".concat(t.maximumFilesAllowed," ").concat(t.importType," files to import."),3e3,"error"),l.default.trackInThirdPartyTools("Import-Pop - User selecting more than max files ",{}),t.isDrawOpen||t.$el.find("#openDrawHandle")[0].click()}},{key:"scrollSelectionStrip",value:function(e){var t=e.data.context,i=t.$el.find("#selectedImageGallery").innerWidth(),n=t.$el.find("#selectedImageGallery").scrollLeft(),o=r()(e.currentTarget).hasClass("scroll-left")?n-i:n+i;t.$el.find("#selectedImageGallery").animate({scrollLeft:o},"slow")}},{key:"handlePlayPauseMedia",value:function(e){var t=e.data.context,i=e.currentTarget.dataset.footage,n=t.$el.find("#".concat(i," .media-controls")).hasClass("playing");t.$el.find(".image .media-controls").removeClass("playing"),t.$el.find(".image .audio-player").each((function(){this.pause()})),n||(t.$el.find("#".concat(i," .media-controls")).addClass("playing"),t.$el.find("#".concat(i," .audio-player"))[0].play()),e.stopPropagation()}},{key:"handleLoadedMetaData",value:function(e){var t=e.data.context,i=e.currentTarget.dataset.footage;t.$el.find("#".concat(i," .media-duration")).text(Number(this.duration/60).toFixed(2)),t.$el.find("#".concat(i," .player-progress")).slider({orientation:"horizontal",range:"min",min:0,max:this.duration,slide:t.playerSlideChanged}),r()(this).unbind().bind("timeupdate",{context:t},t.handleMediaTimeUpdate),t.$el.find("#".concat(i)).addClass("media-ready")}},{key:"handleMediaTimeUpdate",value:function(e){var t=e.data.context,i=e.currentTarget.dataset.footage;t.$el.find("#".concat(i," .player-progress")).slider("option","value",this.currentTime)}},{key:"playerSlideChanged",value:function(e,t){var i=e.currentTarget.dataset.footage;this.$el.find("#".concat(i," .audio-player"))[0].currentTime=t.value,e.stopPropagation()}},{key:"addLocalFilesToSelectedList",value:function(e){var t=this.getSelectedMedia().length,i=this.maximumFilesAllowed;this.isFromVideoPages&&"importLocalTab"===this.actionFrom?this.addToSelectedList(e):t<i&&(e.length<=i-t?this.addFilesToSelectedList(e):this.addFilesToSelectedList(e.splice(0,i-t)))}},{key:"displayLocalFiles",value:function(e){var t=this;fe()(o.default.extend(w.b.wizImport,{files:e,type:this.importType,isSortable:!1,showDelete:!1,showControls:!0,isMultiple:this.isMultiple,showAddMoreTemplate:this.showAddMoreTemplate,category:"localFile",acceptFormats:this.customParams&&this.customParams.acceptedFormats}),(function(i,n){t.canUploadVideoinBackground(e)&&r()("#importLocalContent .media-video").hide(),t.$el.find("#importLocalContent .secondary-upload").remove(),t.$el.find("#importLocalContent").append(r()(n)),t.$el.find("#importLocalContentContainer").removeClass("hide"),t.addLocalFilesToSelectedList(e),t.initializeLocalGalleryActions(),t.initializeAudioPlayerActions(),t.isDocOrVideoImport()&&t.handleImportButtonClick()}))}},{key:"displayWebFiles",value:function(e){var t=this,i=e.urls||[];i.forEach((function(e){e.id="webFile-".concat(t.nextWebFileId++)})),fe()(o.default.extend(w.b.wizImport,{files:i,type:"image",isSortable:!1,showDelete:!1,showControls:!0,isMultiple:this.isMultiple,showAddMoreTemplate:!1,category:"webSearch"}),(function(e,i){t.$el.find("#importWebContent").append(r()(i)),t.$el.find("#importWebContentContainer").removeClass("hide"),t.$el.find("#importWebBanner").addClass("hide").empty(),t.$el.find("#importWebContent .gallery-view").one("load",{context:t},t.imageLoadedCallback),t.$el.find("#importWebContent .image").unbind().bind("click",{context:t},t.toggleMediaSelection),t.$el.find("#footerPoweredBy, #loadMoreContent").removeClass("hide"),t.$el.find("#footnote").addClass("hide")}))}},{key:"initializeLocalGalleryActions",value:function(){var e=this;this.$el.find("#importLocalContent .gallery-view").one("load",{context:this},this.imageLoadedCallback),this.$el.find("#importLocalContent .gallery-delete").unbind().bind("click",{context:this},this.deleteFile),this.$el.find("#importLocalContent .image").unbind().bind("click",{context:this},this.toggleMediaSelection),this.$el.find("#secondaryUploadContainer").unbind().bind("click",(function(){e.$el.find("#secondaryFileUpload")[0].click()})),this.$el.find("#secondaryFileUpload").unbind().bind("change",this.filesChangeHandler)}},{key:"initializeAudioPlayerActions",value:function(){("audio"===this.importType||this.isProEditImport)&&(this.$el.find(".image .play-icon").unbind().bind("click",{context:this},this.handlePlayPauseMedia),this.$el.find(".image .audio-player").on("loadedmetadata",{context:this},this.handleLoadedMetaData))}},{key:"initializeMediaLibrary",value:function(){0===this.$el.find("#importLibraryContent .image").length&&this.searchMediaFromLibrary()}},{key:"initializeRecentlyUsed",value:function(){0!==this.$el.find("#recentlyUsedContent .image").length||this.isFetchingRecentlyUsed||this.fetchRecentlyUsed()}},{key:"initializeShopify",value:function(e){var t=this;this.$el.find(".import-shopify-spin-loading").removeClass("hide"),this.$el.find(".import-shopify-spin-loading").addClass("show"),this.$el.find("#importshopifyEmptyState").removeClass("hide"),this.$el.find("#importshopifyEmptyState").addClass("hide"),(new de).fetchShopifyProducts(e,(function(i){if(t.products=i,t.products.code>0)r()("#importShopifyBanner").show(),r()("#importshopifyContainer").hide(),t.$el.find(".import-shopify-spin-loading").removeClass("hide"),t.$el.find(".import-web-banner-shopify").removeClass("hide");else{var n,o=[];t.$el.find("#shopifyProducts").empty(),t.$el.find("#shopifyStores").empty(),r()("#importshopifyContainer").show(),t.$el.find("#shopifyProductsFilter").removeClass("hide");for(var a=0;a<t.products.access_params.data.length;a++)n=r()("<option>").text(t.products.access_params.data[a].app_url).attr("value",t.products.access_params.data[a].app_url),t.products.access_params.data[a].app_url==e&&n.attr("selected","selected"),t.$el.find("#shopifyStores").append(n),t.isShopifyUser||a==t.products.access_params.data.length-1&&(n=r()("<option>").text("Add Store").attr("value","Add Store"),t.$el.find("#shopifyStores").append(n));if(n=null,t.products.data.products.length){r()("#shopifyProductWrap").show();for(var s=0;s<t.products.data.products.length;s++)if(t.products.data.products[s].images&&t.products.data.products[s].images.length>0){if(n=r()("<option>").text(t.products.data.products[s].title).attr("value",t.products.data.products[s].id),0==o.length){n.attr("selected","selected");for(var l=0;l<t.products.data.products[s].images.length;l++){var c={id:t.products.data.products[s].images[l].id,url:t.products.data.products[s].images[l].src,upload_type:"url",title:t.products.data.products[s].title};o.push(c)}}t.$el.find("#shopifyProducts").append(n)}}else n=r()("<option>").text("No products found").attr("value",""),t.$el.find("#shopifyProducts").append(n);t.showShopifyGallery(o),t.isShopifyUser&&(t.removeAllFilesFromSelection(),r()("#selectedImageGallery").empty(),t.addFilesToSelectedList(o))}}),(function(e){t.isFetchingDrive=!1,t.$el.find(".import-shopify-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")}))}},{key:"shopifyStoreChanged",value:function(){var e=this;document.getElementById("importshopifyContent").innerHTML="";var t=r()("#shopifyStores :selected").val();"Add Store"==t?(this.$el.find("#importshopifyContainer").addClass("hide"),this.$el.find("#importShopifyBanner").removeClass("hide"),this.$el.find("#importFromShopify").removeClass("hide"),this.isShopifyUser&&(this.removeAllFilesFromSelection(),r()("#selectedImageGallery").empty(),this.addFilesToSelectedList([])),r()("#shopifyGrantAccessCancel").off("click").on("click",(function(){e.$el.find("#importshopifyContainer").removeClass("hide"),e.$el.find("#importShopifyBanner").addClass("hide"),e.initializeShopify()}))):this.initializeShopify(t)}},{key:"shopifyProductsChanged",value:function(e){var t=[];document.getElementById("importshopifyContent").innerHTML="",this.$el.find("#importshopifyEmptyState").removeClass("hide"),this.$el.find("#importshopifyEmptyState").addClass("hide");for(var i=0;i<this.products.data.products.length;i++)if(this.products.data.products[i].id==r()("#shopifyProducts").val()){for(var n=0;n<this.products.data.products[i].images.length;n++){var o={id:this.products.data.products[i].images[n].id,url:this.products.data.products[i].images[n].src,upload_type:"url",title:this.products.data.products[i].title};t.push(o)}this.showShopifyGallery(t),this.isShopifyUser&&(this.removeAllFilesFromSelection(),r()("#selectedImageGallery").empty(),this.addFilesToSelectedList(t))}}},{key:"showShopifyGallery",value:function(e){var t=this;fe()(o.default.extend(w.b.wizImport,{files:e,type:this.importType,isSortable:!1,showDelete:!1,showControls:!0,isMultiple:this.isMultiple,showAddMoreTemplate:!1,category:"shopify"}),(function(e,i){t.isFetchingDrive=!1,t.$el.find("#importshopifyContent").append(r()(i)),t.$el.find(".import-shopify-spin-loading").addClass("hide"),t.$el.find("#importshopifyContent .gallery-view").one("load",{context:t},t.imageLoadedCallback),t.$el.find("#importshopifyContent .image").unbind().bind("click",{context:t},t.toggleMediaSelection),0===t.$el.find("#importshopifyContent .image").length?t.$el.find("#importshopifyEmptyState").removeClass("hide"):t.$el.find("#importshopifyEmptyState").addClass("hide"),json.page_token?(t.driveNextPageToken=json.page_token,t.$el.find("#loadMoreContentDrive").removeClass("hide")):(t.driveNextPageToken=void 0,t.$el.find("#loadMoreContentDrive").addClass("hide"))}))}},{key:"initializeGDrive",value:function(){var e=this;0!==this.$el.find("#importDriveContent .image").length||this.isDriveInitializationChecked||this.isFetchingDrive||(this.$el.find(".import-drive-spin-loading").removeClass("hide"),this.isFetchingDrive=!0,(new de).fetchDriveAccounts((function(t){var i=(t||[]).accounts;if(i.length>0){e.driveAccounts=i,e.updateAccountsSelect();var n=i[0];n.account_email=n.email,e.fetchFilesFromDrive(n)}else e.$el.find("#importDriveBanner").removeClass("hide"),e.$el.find(".import-drive-spin-loading").addClass("hide")}),(function(t){e.isFetchingDrive=!1,e.$el.find(".import-drive-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")})))}},{key:"refreshLibrary",value:function(){this.$el.find("#importVideoLibraryContent").empty(),this.$el.find("#loadMoreLibraryVideo").addClass("hide"),this.$el.find("#importVideoLibrarySearch").val(""),this.isLibraryVideoInitializationChecked=!1,this.isFetchingLibraryVideos=!1,this.initializeVideoLibrary()}},{key:"initializeVideoLibrary",value:function(){var e=this;r()("#importVideoLibraryl").removeClass("hide"),this.$el.find("#importVideoLibraryContent").empty(),this.$el.find("#loadMoreLibraryVideo,#testimonialCatList,#videoCatFilter, #videoLibrarySearch, .tag-filter,.hv-content-type-container").addClass("hide"),this.$el.find("#importVideoLibrarySearch").val(""),this.isFetchingLibraryVideos=!1,ge()(o.default.extend(w.b.wizImport,{categories:this.categoriesAndTags.categories}),(function(t,i){if(!e.isFetchingLibraryVideos){e.renderTags(),e.$el.find(".import-library-spin-loading").removeClass("hide"),e.isFetchingLibraryVideos=!0,e.offset=0;var n=0;e.categoriesAndTags.default_cat_id>0?(n=e.categoriesAndTags.default_cat_id,e.$el.find("#videoCatList").val(n)):e.$el.find("#videoCatList").length>0&&parseInt(e.$el.find("#videoCatList").val())>0&&(n=parseInt(e.$el.find("#videoCatList").val()));var o={offset:0,categoryId:n,fetch_recording_configuration:!0};e.fetchLibraryVideos(o)}e.videoLibraryBodyEl=r()("#importVideoLibraryContainer")}))}},{key:"renderTags",value:function(){this.TagInput=HippoVideo.render(xe.a,{actionHandler:this.filterTags,testId:"import-lib-tags",bordered:!0},document.getElementById("libCategories"))}},{key:"filterTags",value:function(e,t){if(this.filterTagList=e.map((function(e){return t?e.name:e.id})),!t){var i={offset:0,categoryId:this.selectedCategory};this.fetchLibraryVideos(i)}}},{key:"initializeTestimonial",value:function(){var e=this;this.$el.find("#importVideoLibraryContent").empty(),this.$el.find("#loadMoreLibraryVideo,#videoCatList,#videoLibrarySearch,#videoCatFilter, .tag-filter,.hv-content-type-container").addClass("hide"),this.isFetchingTestimonialVideos=!1,ge()(o.default.extend(w.b.wizImport,{testimonialcategories:this.testimonialCategoriesList.categories}),(function(t,i){if(!e.isFetchingTestimonialVideos){e.$el.find(".import-library-spin-loading").removeClass("hide"),e.isFetchingTestimonialVideos=!0,e.offset=0;var n=e.testimonialCategoriesList.categories[0].id;e.$el.find("#testimonialCatList").length>0&&parseInt(e.$el.find("#testimonialCatList").val())>0&&(n=parseInt(e.$el.find("#testimonialCatList").val()));var r={offset:0,categoryId:n};e.fetchTestimonialVideos(r)}}))}},{key:"videoCategoryChange",value:function(e){var t=e.data.context;t.$el.find(".fetching-library-videos-loading").removeClass("hide"),t.offset=0,t.selectedCategory=e.target.value;var i={offset:0,categoryId:e.target.value};t.$el.find("#importVideoLibraryContent").empty(),l.default.setLocalStorageValue("defaultFolderId-"+HippoVideo.data.api.getProperty("userId"),e.target.value),t.fetchLibraryVideos(i)}},{key:"onScrollHandle",value:function(e){var t=e.data.context;if(t.canLoadOnScroll()){var i=t.videoLibraryBodyEl.scrollTop();if(t.videoLibraryBodyEl[0].scrollHeight-i<t.videoLibraryBodyEl[0].clientHeight+5){t.offset=t.offset+20,t.$el.find(".fetching-library-videos-loading").removeClass("hide"),t.$el.find("#loadMoreLibraryVideo").addClass("hide");var n="0"===r()("#videoCatList").val()?"":r()("#videoCatList").val(),o={offset:t.offset,categoryId:n};t.fetchLibraryVideos(o)}}}},{key:"handleContentTypeChange",value:function(e){var t,i=e.data.context;t={offset:0,categoryId:"0"===r()("#videoCatList").val()?"":r()("#videoCatList").val()},r()("#"+e.target.id).hasClass("selected")?(r()("#"+e.target.id).removeClass("selected"),i.$el.find(".fetching-library-videos-loading").removeClass("hide"),i.$el.find("#importVideoLibraryContent").empty()):(r()("#"+e.target.id).addClass("selected"),i.$el.find(".fetching-library-videos-loading").removeClass("hide"),i.$el.find("#importVideoLibraryContent").empty()),i.offset=0,i.fetchLibraryVideos(t)}},{key:"testimonialCategoryChange",value:function(e){var t=e.data.context;t.$el.find(".fetching-videos-loading").removeClass("hide");var i={offset:0,categoryId:e.target.value};t.$el.find("#importVideoLibraryContent").empty(),t.fetchTestimonialVideos(i)}},{key:"fetchLibraryVideos",value:function(e){var t=this;if("importVideoLibrarylTab"==this.actionFrom&&(e.fetch_videos=!0),this.isFromVideoPages){if(e.fetch_videos=this.videoOnly,this.filterTagList&&this.filterTagList.length){var i=this.filterTagList.toString();e.filter_by_tag_ids=i}this.onlyDoc&&(e.fetch_images=!1,e.fetch_videos=!1,e.fetch_documents=!0),this.searchWord&&(e.search_type=1,e.search_word=encodeURIComponent(this.searchWord))}"importImgLibTab"==this.actionFrom&&(e.fetch_images=!0,e.fetch_videos=!1),this.canImportImageFromLibrary||0!=this.videoOnly||"importVideoLibrarylTab"==this.actionFrom||"importImgLibTab"==this.actionFrom||0!=this.onlyDoc?(r()(".hv-content-type-container").addClass("disp-none"),r()("#importVideoLibraryContainer").addClass("hv-content-type-Notpresent")):(e=this.fetchContentTypeChanges(e),r()(".hv-content-type-container").removeClass("disp-none"),r()("#importVideoLibraryContainer").removeClass("hv-content-type-Notpresent")),(new de).fetchLibraryVideos(e,(function(e){"importVideoLibrarylTab"!==t.actionFrom&&"importVideoLibraryTabMulti"!==t.actionFrom&&"importImgLibTab"!==t.actionFrom||t.appendLibraryVideos(e)}),(function(e){t.$el.find(".import-drive-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")}))}},{key:"fetchContentTypeChanges",value:function(e){for(var t=r()(".hv-content-type-tags"),i=0;i<t.length;i++)r()("#"+t[i].id).hasClass("selected")?e[r()("#"+t[i].id).attr("data-id")]=!0:e[r()("#"+t[i].id).attr("data-id")]=!1;return e}},{key:"fetchTestimonialVideos",value:function(e){var t=this;(new de).fetchTestimonial(e,(function(e){t.appendTestimonialVideos(e)}),(function(e){t.isFetchingTestimonialVideos=!1,t.$el.find(".import-drive-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")}))}},{key:"appendTestimonialVideos",value:function(e){var t=this,i=this;0==this.offset?this.json=e:r.a.each(e.categories,(function(e,t){i.json.libraries.push(t)})),ye()(o.default.extend(w.b.wizImport,{libraries:this.json.libraries,current_asset_id:parseInt(window.location.pathname.split("/")[3]),category:"importImgLibTab"==this.actionFrom?"existingMedia":"videoLibrary"}),(function(e,n){t.$el.find(".import-library-spin-loading").addClass("hide"),t.$el.find(".fetching-videos-loading").addClass("hide"),t.$el.find(".fetching-library-videos-loading").addClass("hide"),t.$el.find("#importVideoLibraryContainer,#videoCatFilter, #testimonialCatList, .tag-filter,.hv-content-type-container").removeClass("hide"),t.$el.find("#importVideoLibraryContent").empty().append(r()(n)).removeClass("hide"),i.isFromVideoPages&&0==i.selectedFilesList.length&&0!=i.alreadySelectedFiles.length&&i.addFilesToSelectedList(i.alreadySelectedFiles),t.$el.find("#importVideoLibraryContent .image").unbind().bind("click",{context:t},t.toggleMediaSelection),0===t.$el.find("#importVideoLibraryContent .image").length?t.$el.find("#importVideoLibrayEmptyState").removeClass("hide"):t.$el.find("#importVideoLibrayEmptyState").addClass("hide"),t.json.num_videos>t.offset+20?t.$el.find("#loadMoreLibraryVideo").removeClass("hide"):t.$el.find("#loadMoreLibraryVideo").addClass("hide"),t.mediaCategoryId&&t.$el.find("#importVideoCategories").val(t.mediaCategoryId).trigger("change")}))}},{key:"canLoadOnScroll",value:function(){return!(r()("#importVideoLibraryContent").find(".image").length<=0)&&this.json.num_videos>this.offset+20}},{key:"appendLibraryVideos",value:function(e){var t=this,i=this;0==this.offset||e.is_search?this.json=e:r.a.each(e.libraries,(function(e,t){i.json.libraries.push(t)})),ye()(o.default.extend(w.b.wizImport,{libraries:this.json.libraries,current_asset_id:parseInt(window.location.pathname.split("/")[3]),category:"importImgLibTab"==this.actionFrom?"existingMedia":"videoLibrary"}),(function(e,n){if(t.$el.find(".import-library-spin-loading").addClass("hide"),t.$el.find(".fetching-videos-loading").addClass("hide"),t.$el.find(".fetching-library-videos-loading,#testimonialCatList").addClass("hide"),t.$el.find("#importVideoLibraryContainer, #videoCatFilter,#videoCatList, #videoLibrarySearch,.tag-filter,.hv-content-type-container").removeClass("hide"),t.$el.find("#importVideoLibraryContent").empty().append(r()(n)).removeClass("hide"),i.isFromVideoPages)if(i.renderingFirstTime&&0==i.selectedFilesList.length&&0!=i.alreadySelectedFiles.length)i.addFilesToSelectedList(i.alreadySelectedFiles),i.renderingFirstTime=!1;else if(0!=i.selectedFilesList.length){i.$el.find("#selectedImageGallery").empty();var o=T()(i.selectedFilesList);i.selectedFilesList.length=0,i.addFilesToSelectedList(o)}t.$el.find("#importVideoLibraryContent .image").unbind().bind("click",{context:t},t.toggleMediaSelection),0===t.$el.find("#importVideoLibraryContent .image").length?t.$el.find("#importVideoLibrayEmptyState").removeClass("hide"):t.$el.find("#importVideoLibrayEmptyState").addClass("hide"),t.json.num_videos>t.offset+20?t.$el.find("#loadMoreLibraryVideo").removeClass("hide"):t.$el.find("#loadMoreLibraryVideo").addClass("hide"),t.mediaCategoryId&&t.$el.find("#importVideoCategories").val(t.mediaCategoryId).trigger("change")}))}},{key:"_searchCategoriesList",value:function(e){var t=e.target.value,i=e.data.context;if(13==e.keyCode){var n=this;if(null!=t&&""!==t.trim()){i.$el.find(".fetching-library-videos-loading").removeClass("hide"),t=t.trim(),this.searchWord=t;var o={search_word:encodeURIComponent(t),categoryId:"0"===r()("#videoCatList").val()?"":r()("#videoCatList").val(),from:0,search_type:1};"importVideoLibrarylTab"==this.actionFrom&&(o.fetch_videos=!0),this.isFromVideoPages&&(o.fetch_videos=this.videoOnly,this.filterTagList&&this.filterTagList.length&&(o.filter_by_tag_ids=this.filterTagList)),"importImgLibTab"==this.actionFrom&&(o.fetch_images=!0,o.fetch_videos=!1),this.onlyDoc&&(o.fetch_images=!1,o.fetch_videos=!1,o.fetch_documents=!0),this.canImportImageFromLibrary||0!=this.videoOnly||"importVideoLibrarylTab"==this.actionFrom||"importImgLibTab"==this.actionFrom||(o=i.fetchContentTypeChanges(o)),(new v.a).searchLibrary(o,(function(e){e.is_search=!0,e.key_word=t,n.appendLibraryVideos(e)}))}else{i.$el.find(".fetching-library-videos-loading").removeClass("hide"),i.$el.find("#loadMoreLibraryVideo").addClass("hide");var a="0"===r()("#videoCatList").val()?"":r()("#videoCatList").val(),s={offset:i.offset,categoryId:a};i.fetchLibraryVideos(s)}}t.length>-1?(r()("#searchIcon").addClass("disp-none"),r()("#clear-icon").removeClass("disp-none")):(r()("#searchIcon").removeClass("disp-none"),r()("#clear-icon").addClass("disp-none"))}},{key:"_clearCategoriesList",value:function(e){var t=e.data.context;t.$el.find(".fetching-library-videos-loading").removeClass("hide"),t.$el.find("#loadMoreLibraryVideo").addClass("hide"),r()("#importVideoLibrarySearch").val(""),r()("#searchIcon").removeClass("disp-none"),r()("#clear-icon").addClass("disp-none");var i="0"===r()("#videoCatList").val()?"":r()("#videoCatList").val();t.offset=0;var n={offset:t.offset,categoryId:i};t.fetchLibraryVideos(n)}},{key:"updateAccountsSelect",value:function(e){var t,i=this,n=this.driveAccounts;this.$el.find("#driveAccounts").empty(),(n||[]).forEach((function(n,o){t=r()("<option>").text(n.email).attr("value",n.email),(!e&&0===o||e&&e===n.email)&&t.attr("selected","selected"),i.$el.find("#driveAccounts").append(t)})),this.$el.find("#driveAccounts").append(r()("<option>").text("Add new account").attr("value","new"))}},{key:"showShopifyLogin",value:function(e){var t=this,i=r()("#shopUrl").val();l.default.shopifyGrantAccess(i,(function(){t.$el.find(".import-web-banner-shopify").addClass("hide"),t.$el.find("#importshopifyContainer").removeClass("hide"),t.initializeShopify()})),l.default.trackInThirdPartyTools("Import-Pop - Shopify Login opened",{})}},{key:"showGoogleLogin",value:function(e){var t=this;l.default._openGoogleLogin("gdrive","https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/userinfo.email",(function(e,i,n){var r={auth_code:i,drive_import:!0};t.isDriveInitializationChecked=!0,(new de).configureDrive(r,(function(e){t.$el.find("#importDriveBanner").addClass("hide"),t.$el.find("#importDriveContent").empty(),t.driveAccounts.push(e),t.updateAccountsSelect(e.email),e.account_email=e.email,t.fetchFilesFromDrive(e),l.default.trackInThirdPartyTools("Import-Pop - G-Drive Configured",{})}),(function(e){t.isFetchingDrive=!1,c.default.showBannerAlert(De,4e3,"error")}))})),l.default.trackInThirdPartyTools("Import-Pop - G-Drive Login opened",{})}},{key:"driveAccountChanged",value:function(e){var t=e.data.context,i={},n=t.$el.find("#driveAccounts").val();"new"===n?t.showGoogleLogin():n!==t.configuredDriveAccount&&(i.email=n,i.user_id=(o.default.where(t.driveAccounts,{email:i.email})[0]||{}).user_id,t.$el.find("#importDriveContent").empty(),t.driveNextPageToken=void 0,i.account_email=i.email,t.fetchFilesFromDrive(i),l.default.trackInThirdPartyTools("Import-Pop - G-Drive Account changed",{}))}},{key:"fetchFilesFromDrive",value:function(e){var t=this,i={email:e.email,unique_id:e.user_id,file_type:this.importType,account_email:e.email};this.driveNextPageToken&&(i.page_token=this.driveNextPageToken),this.isFetchingDrive=!0,this.configuredDriveAccount=e.email,this.configuredDriveUserId=e.user_id,this.$el.find(".import-drive-spin-loading").removeClass("hide"),(new de).fetchFilesFromDrive(i,(function(e){var i=e.files;t.gDriveToken=e.token_id,fe()(o.default.extend(w.b.wizImport,{files:i,type:t.importType,isSortable:!1,showDelete:!1,showControls:!0,isMultiple:t.isMultiple,showAddMoreTemplate:!1,category:"gDrive"}),(function(i,n){t.isFetchingDrive=!1,t.$el.find("#importDriveContent").append(r()(n)),t.$el.find("#importDriveContainer, #accountsFilter").removeClass("hide"),t.$el.find(".import-drive-spin-loading").addClass("hide"),t.$el.find("#importDriveContent .gallery-view").one("load",{context:t},t.imageLoadedCallback),t.$el.find("#importDriveContent .image").unbind().bind("click",{context:t},t.toggleMediaSelection),0===t.$el.find("#importDriveContent .image").length?t.$el.find("#importDriveEmptyState").removeClass("hide"):t.$el.find("#importDriveEmptyState").addClass("hide"),e.page_token?(t.driveNextPageToken=e.page_token,t.$el.find("#loadMoreContentDrive").removeClass("hide")):(t.driveNextPageToken=void 0,t.$el.find("#loadMoreContentDrive").addClass("hide")),t.initializeAudioPlayerActions()}))}),(function(e){t.isFetchingDrive=!1,t.$el.find(".import-drive-spin-loading").addClass("hide"),c.default.showBannerAlert(De,4e3,"error")}))}},{key:"loadMoreFromDrive",value:function(e){var t=e.data.context,i=t.configuredDriveAccount,n={email:i,account_email:i,user_id:(o.default.where(t.driveAccounts,{email:i})[0]||{}).user_id};t.fetchFilesFromDrive(n)}},{key:"validateAndGetFiles",value:function(e){var t=this.maximumFilesAllowed;(this.isFromVideoPages||"replace"===this.actionType)&&(this.selectedFilesList=[],t=1);for(var i,n,a,s,d=this.importType,u=this.getSelectedMedia().length,p=[],h=!1,f=!1,m=!1,g=0;g<e.length;g++){"image"==(a=e[g]).type.split("/")[0]&&"doc"==this.importType&&(this.maximumPerFileSize=5);var v=1024*this.maximumPerFileSize*1024;u+p.length>=t?f=!0:a.size>v?m=!0:this.isAudioImport()?a.type.includes("audio/")?p.push(a):h=!0:this.isImageImport()?o.default.contains(Ee,a.type)?p.push(a):h=!0:this.isProEditImport?(s=a.name.split(".").pop().toLowerCase(),o.default.contains(Te,a.type.split("video/")[1])||o.default.contains(Te,s)||o.default.contains(Ee,a.type)||a.type.includes("audio/")?p.push(a):h=!0):this.isVideoImport()?(s=a.name.split(".").pop().toLowerCase(),o.default.contains(Te,a.type.split("video/")[1])||o.default.contains(Te,s)?p.push(a):h=!0):(this.isDocumentImport()||this.isCustomImport())&&p.push(a)}return f&&(i="You can import a maximum of ".concat(t," ").concat(d," files."),n="CVFI - User selected more than max limit of files"),h&&(i="image"===d?"You can select only JPEG, PNG, BMP file types.":w.b.wizImport.unsupported,n="CVFI - User selected incorrect file types"),m&&(i="Please select ".concat(d," files of size less than ").concat(this.maximumPerFileSize," MB each."),n="CVFI - User selected larger files"),h&&f&&(i="Please select a maximum of ".concat(t," ").concat(d," files of valid file types."),n="CVFI - User selected incorrect file types and more number of files"),i&&(i=p.length>0?"".concat(i," Valid files will be imported."):i,c.default.showBannerAlert(i,4e3,"error"),l.default.trackInThirdPartyTools(n,{email:r()("#userEmail").val()})),0===p.length&&r()("#secondaryFileUpload, #importFileUpload").val(""),p}},{key:"getSelectedMedia",value:function(){return o.default.where(this.selectedFilesList,{isIncluded:!0})||[]}},{key:"handleImportButtonClick",value:function(){var e=this,t=[];if(!this.isFromVideoPages||"importVideoLibraryTabMulti"!=this.actionFrom&&"importViaLinkTab"!=this.actionFrom)this.isProEditImport||!this.showVideoImportPreview?(this.$el.find("#tabContainer, .import-body-container").addClass("hide"),this.$el.find("#import, #cancelImport").addClass("hide"),this.$el.find("#submitVideoForm, #cancelVideoForm").removeClass("hide"),this.importVideoFileAndProceed()):this.isDocOrVideoImport()?this.showVideoDetailsForm():"gdrive"==this.selectedFilesList[0].upload_type?this.processImageImportFromDrive():this.sendFilesToInitiator();else{var i=this.selectedFilesList;this.isFromCarousel&&r()("#vpt1AddCarouselVideos").removeClass("disp-none");var n="primary";if(this.isMultiple){n="carousel";var o={},a=0;i.forEach((function(e){o[e.id]=a,a++}));for(var s=[],l=r()("#selectedImageGallery .media-video"),c=0;c<l.length;c++)s.push(i[o[l[c].id]]);i=s}this.onlyDoc&&(n="doc"),i.forEach((function(i){if(i.already_selected)t.push(i),delete i.already_selected,delete i.isIncluded;else if(i.is_custom_link)t.push({id:i.id,thumbnail_url:i.thumbnail_url,file_ext:i.file_ext,is_custom_link:!0,custom_link:i.custom_link,title:i.title});else{var r=i.id.split("-")[0],o=i.id,a=e.thumbDomain+i.video_token,s=i.video_token,l=i.is_document,c=i.is_image,d=i.name,u=i.description,p=i.duration?i.duration.replace(/m|s/g,""):void 0;("primary"==n||c||l)&&(a+="?is_play=false"),t.push({asset_id:parseInt(r),thumbnail_url:a,id:o,token:s,file_ext:i.file_ext,is_document:l,is_image:c,title:d,duration:p,description:u})}}));var d={pageId:this.pageId,type:n,videos:t};this.onVideoSubmit(d),this.cancelRedirect=!1,this.closeImport()}}},{key:"showVideoDetailsForm",value:function(){var e=this,t=this.getSelectedMedia()[0],i=(t=o.default.clone(t)).name;if(this.isMultipleImageImport){for(var n=[],a=0;a<this.totalFiles;a++)n.push(this.validatedImageFiles[a].name);i=n.join(", ")}this.isFromVideoPages&&"importLocalTab"==this.actionFrom&&(t.thumbnail_url="");var s=o.default.extend({},w.b.wizImport,t,{tags:this.categoriesAndTags.tags,categories:this.categoriesAndTags.categories,isCategoryAvailable:this.categoriesAndTags.is_cat_available,isDocument:Ce.isDocument(t.name),isVideo:"video"===this.importType,digest:this.digest,showPreserveTransparency:"video/quicktime"==t.type&&this.preserveTransparencyEnabled,askVideoDetails:!(this.digest||this.isProEditImport||this.isSalesGettingStarted||"replace"==this.actionType),isMultipleImageImport:void 0!==this.isMultipleImageImport&&this.isMultipleImageImport,totalFileNamesText:i,totalFileCount:void 0===this.totalFiles?1:this.totalFiles});pe()(s,(function(t,i){e.$el.find("#tabContainer, .import-body-container").addClass("hide"),e.$el.find("#importVideoFormContainer").empty().append(r()(i)).removeClass("hide"),e.$el.find("#importVideoTitle").unbind("change").bind("change",{context:e},e.handleVideoTitleChange);var n=e.$el.find("#importVideoTitle").val();if(n){var o=n.split(".");o.length>1&&o.pop(),e.$el.find("#importVideoTitle").val(o.join(" "))}e.$el.find("#import, #cancelImport").addClass("hide"),e.$el.find("#submitVideoForm, #cancelVideoForm").removeClass("hide"),e.$el.find("#importVideoCategories").select2({multiple:!0,theme:"hippocategory"}),HippoVideo.render(xe.a,{actionHandler:function(t){return e.filterTags(t,!0)},title:"Add Tags",maxChars:60,testId:"import-video-tags",bordered:!1},document.getElementById("importVideoTags")),e.mediaCategoryId&&e.$el.find("#importVideoCategories").val(e.mediaCategoryId).trigger("change"),e.isMultipleImageImport&&e.$el.find("#cancelVideoForm").toggleClass("hide")}))}},{key:"cancelHandler",value:function(e){var t=e.data.context;if("replace"===t.actionType)r()("#importFileUpload")[0].click();else{var i=t.getSelectedMedia()[0],n=t.$el.find(".tab.active")[0].dataset.panelId;t.$el.find("#".concat(i.id))[0].click(),t.$el.find(".import-body-container, #submitVideoForm, #cancelVideoForm, .import-body-container").addClass("hide"),t.$el.find("#tabContainer, #import, #cancelImport, #".concat(n)).removeClass("hide")}}},{key:"sendFilesToInitiator",value:function(){l.default.trackInThirdPartyTools("Import-Pop - Import Button clicked",{}),this.callbackMethodToHandleFiles(o.default.where(this.selectedFilesList,{isIncluded:!0}),this.importType),this.cancelRedirect=!1,this.closeImport()}},{key:"importVideoFileAndProceed",value:function(){if(this.isMultipleImageImport&&this.validatedImageFiles)return this.fileTags=o.default.clone(this.filterTagList||[]),this.categoriesAndTags.is_cat_available&&(this.categories=this.$el.find("#importVideoCategories").val()),this.$el.find(".import-footer").toggleClass("hide"),this.hippoYogaLoader=new j.a({id:"importVideoFormContainer"}),this.hippoYogaLoader.render(),this.hippoYogaLoader.updateProgressText(w.b.progressMessages.preparingFile),void this.processMultipleImageImport(this.validatedImageFiles);this.submitVideoFormTime=(new Date).getTime()/1e3,this.$el.find("label.error").remove();var e,t,i,n=this.getSelectedMedia()[0];this.preserveTransparency=this.$el.find("#preserveTransparency").prop("checked");var a=!0;if(this.digest||this.isProEditImport||!this.showVideoImportPreview||this.isSalesGettingStarted||"replace"==this.actionType||((e=this.$el.find("#importVideoTitle").val().trim())&&(e=encodeURIComponent(e)),e?((t=this.$el.find("#importVideoDesc").val().trim())&&(t=encodeURIComponent(t)),i=o.default.clone(this.filterTagList||[])):(r()('<label class="error"> '.concat(w.b.wizImport.enterFileName," </label>")).insertBefore(this.$el.find("#importVideoTitle")),a=!1),this.categoriesAndTags.is_cat_available&&(this.categories=this.$el.find("#importVideoCategories").val())),this.sendGitomerTestimonialTrack("import button"),a){if(("importVideoLibrarylTab"===this.actionFrom||"importImgLibTab"===this.actionFrom)&&!this.saveLibraryVideoAsNewAsset){if(this.importMediaCallback){var s=n.id.split("-")[0];return void this.importMediaCallback({contactId:this.contactId,contactEmail:this.contactEmail,assetId:s,fileName:e,categories:this.categories,showVirtualBG:this.isWebcamOnlyVideo(s)})}return void(window.location.href="/video/view/".concat(n.id.split("-")[0]))}e=(e=(e=e||this.contactEmail)||(this.leadName?"Hi "+this.leadName:void 0))||"New Video",this.hippoYogaLoader=new j.a({id:"importVideoFormContainer"}),this.canUploadVideoinBackground()||(this.hippoYogaLoader.render(),this.hippoYogaLoader.updateProgressText(w.b.progressMessages.preparingFile),this.$el.find("#importVideoDetails, .import-footer").toggleClass("hide")),this.isProEditImport?this.callBackProEdit(this.actionFrom,n,this.$el,this.hippoYogaLoader,e,this.configuredDriveUserId):Ce.isDocument(n.name.toLowerCase())||Ce.isImage(n.name.toLowerCase())?this.processDocumentImport(e,t,i,n):"gdrive"===n.upload_type?this.processVideoImportFromDrive(e,t,i,n.id):(this.$el.find("#submitVideoForm").prop("disabled",!0),this.processVideoImport(e,t,i,n,this.preserveTransparency))}l.default.trackInThirdPartyTools("import video done")}},{key:"handleVideoTitleChange",value:function(e){var t=e.data.context;t.$el.find("label.error").remove();var i=t.$el.find("#importVideoTitle").val().trim();i&&(i=encodeURIComponent(i)),i||r()('<label class="error"> '.concat(w.b.wizImport.enterFileName," </label>")).insertBefore(t.$el.find("#importVideoTitle"))}},{key:"_getVideoModel",value:function(){return this.digest?new v.a({digest:this.digest}):new v.a}},{key:"isWebcamOnlyVideo",value:function(e){if(this.json){var t=this.json.libraries.filter((function(t){return t.id==e}))[0];if(t&&t.recording_config&&t.recording_config.webCam&&!t.recording_config.screenRecord)return!0}return!1}},{key:"processMultipleVideoImport",value:function(e){var t=this;e.length<1&&(this.multipleUploadedFiles=void 0,window.location.href="/video/library");var i=e[e.length-1],n=i.name.split(".")[0],r=this,o=(i.size||1)/1024,a=this._getVideoModel(),s={fileName:n,size:o,fromAdvancedEdit:!1,token:this.digest,contactId:this.contactId,initiator:"import_pop",source:(l.default.getQueryParams()||{}).source,isMobile:!1};a.createVideoImport(s,(function(n){var o={bucket:n.upload_bucket,key:n.upload_key,acl:"private",digest:t.digest},s=new V.a(o),l=n.authoring_asset_id,d=n.upload_video_id;t.assetId=l,t.isMediaUploading=!0,t.setWarningOnExit(l),e.pop(),t.multipleUploadedFiles=e,t.hippoYogaLoader.updateProgressText("("+(t.totalFiles-t.multipleUploadedFiles.length)+"/"+t.totalFiles+")"+w.b.progressMessages.uploadingFile),s.uploadFile(i,(function(e){t.hippoYogaLoader.updateProgress(e)}),(function(e){r.isMediaUploading=!1,t.hippoYogaLoader.updateProgressText("("+(t.totalFiles-t.multipleUploadedFiles.length)+"/"+t.totalFiles+")"+w.b.progressMessages.videoUploadedWaiting),a.convertVideo(l,d,!1,!0,r.digest,r.videoConverting,r.errorHandling)}),(function(e){r.isMediaUploading=!1,r.hippoYogaLoader.updateProgressText(w.b.progressMessages.errorUploading),c.default.postErrorsToLog({error:"Error while importing Video :: ",stackTrace:JSON.stringify(e)})})),t.setCategoriesForVideo(l)}),(function(e){r.isMediaUploading=!1,c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while importing Video in createVideoImport :: ",stackTrace:JSON.stringify(e)})}))}},{key:"processDocumentImport",value:function(e,t,i,n){var r=this,o=this,a=n.type,s=(n.size||1)/1024,l=this._getVideoModel(),d=this.categories,u=new FormData;a||(a="image"),u.append("initiator","hippo-website-image"),u.append("file_name",e),u.append("description",t),u.append("file_type",a),u.append("size",s.toString()),null!=d&&u.append("cat_ids",d),u.append("tags",i);var p=n.name.split(".").pop().toLowerCase();u.append("file_ext",p),l.documentImport(u,(function(s){if("gdrive"!=n.upload_type){var l={bucket:s.upload_bucket,key:s.upload_key,acl:"private",digest:r.digest};-1!=Ne.indexOf(a)&&(l.contentType=a);var d=new V.a(l),u=s.authoring_asset_id;s.upload_video_id;r.assetId=u,r.isMediaUploading=!0,r.setWarningOnExit(u),r.hippoYogaLoader.updateProgressText(w.b.progressMessages.uploadingFile),d.uploadFile(n,(function(e){}),(function(t){o.documentImportSuccessCallback(s,u,a,e)}),(function(e){o.isMediaUploading=!1,o.hippoYogaLoader.updateProgressText(w.b.progressMessages.doc.error),c.default.postErrorsToLog({error:"Error while importing Video :: ",stackTrace:JSON.stringify(e)})}))}else{var p={file_id:n.id,tags:(i||[]).join(","),file_name:e,fileType:a,description:t,gdrive_user_id:r.configuredDriveUserId,record_from_mobile:!1,file_extension:"hvr",render_not_required:!1,compress_required:!0};o.ImportGdriveVideoSuccessCallback(s,p,e)}}),(function(e){o.isMediaUploading=!1,c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while importing Video in createVideoImport :: ",stackTrace:JSON.stringify(e)})}))}},{key:"documentImportSuccessCallback",value:function(e,t,i,n){var r=this,o=this,a=this._getVideoModel();o.hippoYogaLoader.updateProgress(80);var s={authoring_id:e.authoring_id,asset_id:t,file_type:"document"};i&&"image"==i.split("/")[0]&&(s.file_type="image",o.imageFileName=n,a.compressVideo(t,!1,!0,o.videoCompressing,o.errorHandling)),this.setCategoriesForVideo(t),a.updateDocState(s,(function(e){if(window.onbeforeunload=function(){},o.isMediaUploading=!1,o.hippoYogaLoader.updateProgress(100),console.log("response file upload",e),i&&"image"!=i.split("/")[0]){var t=o.isFromCarousel?"carousel":o.onlyDoc?"doc":"primary";if(o.importMediaCallback)return void o.importMediaCallback({assetId:o.assetId,mediaLocation:t,fileName:n,response:e,categories:o.categories});null!=o.categories&&1==o.categories.length?window.location.href="/video/category/".concat(o.categories):window.location.href="/video/library"}}),(function(e){c.default.showBannerAlert(w.b.progressMessages.errorUpdatingState,3e3,"error"),setTimeout((function(){window.onbeforeunload=function(){},r.isMediaUploading=!1,o.hippoYogaLoader.updateProgress(100);var e=r.isFromCarousel?"carousel":"primary";if(r.importMediaCallback)return r.importMediaCallback({assetId:r.assetId,mediaLocation:e,fileName:n,categories:r.categories}),void r.closeImport();window.location.href="/video/library"}),3e3)}))}},{key:"processVideoImport",value:function(e,t,i,n,r){var o=this,a=this,s=(n.size||1)/1024;this.videoModel=this._getVideoModel();var d={fileName:e,description:t,size:s,tags:i,fromAdvancedEdit:!1,token:this.digest,contactId:this.contactId,initiator:"import_pop",source:(l.default.getQueryParams()||{}).source,isMobile:!1,isIntroOutroVideo:this.isIntroOutroVideo};this.videoModel.createVideoImport(d,(function(e){var t={bucket:e.upload_bucket,key:e.upload_key,acl:"private",digest:o.digest,enableChangeFileBtn:a.enableChangeFileBtn},i=new V.a(t);o.uploader=i,o.assetId=e.authoring_asset_id,o.upload_key=e.upload_key,o.videoId=e.upload_video_id,o.preserveTransparency=r,o.uploadeVideoId=e.upload_video_id,o.isMediaUploading=!0,o.$el.find("#submitVideoForm").prop("disabled",!1),o.setWarningOnExit(o.assetId),o.hippoYogaLoader&&o.hippoYogaLoader.updateProgressText(w.b.progressMessages.uploadingFile);var s={file_size:n.size,asset_id:o.assetId};o.uploadRateData=s,navigator&&navigator.connection&&(s.rtt=navigator.connection.rtt),o.videoModel.updateImportUploadRate(s),o.setCategoriesForVideo(o.assetId),o.uploadVideoFile(n)}),(function(e){a.isMediaUploading=!1,c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while importing Video in createVideoImport :: ",stackTrace:JSON.stringify(e)})}))}},{key:"enableChangeFileBtn",value:function(){this.$el.find("#cancelVideoForm").prop("disabled",!1)}},{key:"disableChangeFileBtn",value:function(){this.$el.find("#cancelVideoForm").prop("disabled",!0)}},{key:"uploadVideoFile",value:function(e){var t=this,i=(new Date).getTime(),n=this;this.uploader.uploadFile(e,(function(e){n.hippoYogaLoader&&n.hippoYogaLoader.updateProgress(e)}),(function(r){if(t.importStartTime&&t.submitVideoFormTime&&t.Logger){var o=(new Date).getTime()/1e3,a=t.submitVideoFormTime-t.importStartTime,s=o-t.submitVideoFormTime,l=Math.max(s-a,0);try{t.Logger.log(window.HippoVideo.Class.Level.INFO,"Import_video_upload_time: ",[{asset_id:t.assetId,file_size:e.size,form_filling_time:a,current_waiting_time:s,new_waiting_time:l,improvement:100*(1-l/s)}])}catch(e){console.log(e)}}n.isMediaUploading=!1,t.uploadRateData.total_time=(new Date).getTime()-i,t.videoModel.updateImportUploadRate(n.uploadRateData),t.isVideoUploaded=!0,t.initiateVideoConversion()}),(function(e){n.isMediaUploading=!1,t.uploadRateData.total_time=(new Date).getTime()-i,t.uploadRateData.error=!0,t.videoModel.updateImportUploadRate(t.uploadRateData),n.hippoYogaLoader.updateProgressText(w.b.progressMessages.errorUploading),c.default.postErrorsToLog({error:"Error while importing Video :: ",stackTrace:JSON.stringify(e)})}))}},{key:"updateVideoS3Key",value:function(){var e=this;this.fileChangeCount++;var t=this.videoId+"_"+this.fileChangeCount+".mp4",i={fileChangeCount:this.fileChangeCount,mediaId:this.videoId,assetId:this.assetId};this.videoModel.updateS3Key(i,(function(t){e.uploadVideoFile(e.getSelectedMedia()[0])}),(function(e){c.default.postErrorsToLog({error:"Error while updating video s3 key :: ",stackTrace:JSON.stringify(e)})})),this.uploader.userUploadKey=t}},{key:"processVideoImportFromDrive",value:function(e,t,i,n){var r=this,o={file_id:n,tags:(i||[]).join(","),file_name:e,description:t,gdrive_user_id:this.configuredDriveUserId,record_from_mobile:!1};this.contactId&&(o.contact_id=this.contactId),(new de).createVideoFromDrive(o,(function(t){return t.file_size_exceeded?(c.default.showBannerAlert("Please select a file of size less than ".concat(t.allowed_file_size," MB. Selected file cannot be imported"),4e3,"error"),void c.default.postErrorsToLog({error:"File size exceed from GDrive :: "})):t.import_count_exceeded?(c.default.showBannerAlert("".concat(w.b.wizShareI18N.importLimit),4e3,"error"),void c.default.postErrorsToLog({error:"Import limit exceed from GDrive :: "})):void r.ImportGdriveVideoSuccessCallback(t,o,e)}),r.errorHandling)}},{key:"processImageImportFromDrive",value:function(){var e=this;fetch(e.selectedFilesList[0].url).then((function(e){if(e.ok)return e.arrayBuffer();throw new Error("Something went wrong. Please try again later")})).then((function(t){var i=window.btoa(String.fromCharCode.apply(null,new Uint8Array(t)));e.selectedFilesList[0].preview_url="data:image/png;base64,"+i,e.sendFilesToInitiator()})).catch((function(e){c.default.showBannerAlert(e,1500,"error")}))}},{key:"ImportGdriveVideoSuccessCallback",value:function(e,t,i){var n=this,r=this,a=e.authoring_asset_id;t.asset_id=a,r.setCategoriesForVideo(a),r.hippoYogaLoader.updateValues(30,"Importing file from GDrive"),(new de).importVideoToDrive(o.default.extend({},t,e),(function(e){r.hippoYogaLoader.updateProgress(100),z.a.initialize(2e3,void 0,n.digest).getStatus(e.operation_id,(function(e){r.hippoYogaLoader.updateValues(0,e)}),(function(e,t){r.hippoYogaLoader.updateValues(t,e)}),(function(e){HippoVideo&&HippoVideo.AppRegistry&&HippoVideo.AppRegistry.isIntroOutroGlobalSettingsEnabled&&n._getVideoModel().renderImportedVideo(n.assetId);r.hippoYogaLoader.updateProgress(100),r.importMediaCallback?r.importMediaCallback({contactId:r.contactId,contactEmail:r.contactEmail,assetId:a,fileName:i,response:e,categories:r.categories}):window.location.href="/video/view/".concat(a)}),(function(e){r.hippoYogaLoader.updateProgressText(e.reason),c.default.postErrorsToLog({error:"Error while converting Video in Import pop :: ",stackTrace:JSON.stringify(e)})}))}),r.errorHandling)}},{key:"updateVideoImportDetails",value:function(){var e,t,i,n=this.getSelectedMedia()[0];this.preserveTransparency=this.$el.find("#preserveTransparency").prop("checked");var r=!0,a=(n.size||1)/1024;if(this.canUploadVideoinBackground()){if(this.digest||this.isProEditImport||!this.showVideoImportPreview||this.isSalesGettingStarted||"replace"==this.actionType||((e=this.$el.find("#importVideoTitle").val().trim())&&(e=encodeURIComponent(e)),e?((t=this.$el.find("#importVideoDesc").val().trim())&&(t=encodeURIComponent(t)),i=o.default.clone(this.filterTagList||[])):r=!1,this.categoriesAndTags.is_cat_available&&(this.categories=this.$el.find("#importVideoCategories").val())),r){this.hippoYogaLoader.render(),this.hippoYogaLoader.updateProgressText(w.b.progressMessages.preparingFile),this.$el.find("#importVideoDetails, .import-footer").toggleClass("hide"),this.hippoYogaLoader.updateProgressText(w.b.progressMessages.uploadingFile),this.clickedImport=!0,this.setCategoriesForVideo(this.assetId),this.initiateVideoConversion();var s={assetId:this.assetId,fileName:e,description:t,size:a,tags:i};this.videoModel.updateVideoImport(s,(function(e){}),(function(e){c.default.postErrorsToLog({error:"Error while Updating Video details :: ",stackTrace:JSON.stringify(e)})}))}}else this.importVideoFileAndProceed();this.filterTagList=null}},{key:"setCategoriesForVideo",value:function(e){this.categoriesAndTags.is_cat_available&&(this.categories?this.categories.includes(this.mediaCategoryId)||"virtual_bg"==this.actionType||this.categories.push(this.mediaCategoryId):this.mediaCategoryId?this.categories=[this.mediaCategoryId]:this.categories=["recorded"],(new q.a).assignCategories(e,this.categories,(function(e){}),(function(e){c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while setting category for import Video :: ",stackTrace:JSON.stringify(e)})})))}},{key:"initiateVideoConversion",value:function(){(this.clickedImport&&this.isVideoUploaded||!this.canUploadVideoinBackground())&&(this.hippoYogaLoader.updateProgressText(w.b.progressMessages.videoUploadedWaiting),this.preserveTransparency&&this.preserveTransparencyEnabled?this.videoModel.processDirectImport(this.assetId,this.videoId,this.digest,!1,this.videoConverting,this.errorHandling):this.videoModel.convertVideo(this.assetId,this.videoId,!1,!0,this.digest,this.videoConverting,this.errorHandling))}},{key:"videoConverting",value:function(e){var t=this;if(this.multipleUploadedFiles&&this.multipleUploadedFiles.length>0)this.processMultipleVideoImport(this.multipleUploadedFiles);else{var i=this;window.onbeforeunload=function(){},z.a.initialize(2e3,void 0,this.digest).getStatus(e,(function(e){i.hippoYogaLoader.updateValues(0,e)}),(function(e,t){i.hippoYogaLoader.updateValues(t,e)}),(function(e){HippoVideo&&HippoVideo.AppRegistry&&HippoVideo.AppRegistry.isIntroOutroGlobalSettingsEnabled&&t._getVideoModel().renderImportedVideo(t.assetId);if(i.hippoYogaLoader.updateProgress(100),t.digest||t.callBack){i.$el.hide();var n=i.getSelectedMedia()[0];t.callBack({file:n,assetId:t.assetId,mediaId:t.uploadeVideoId})}else{var r=i.getSelectedMedia()[0];if(t.importMediaCallback){var o=t.isFromCarousel?"carousel":"primary";t.importMediaCallback({response:e,contactId:t.contactId,contactEmail:t.contactEmail,assetId:t.assetId,mediaLocation:o,hippoYogaLoader:i.hippoYogaLoader,fileName:r.name,categories:t.categories})}else t.multipleUploadedFiles?t.processMultipleVideoImport(t.multipleUploadedFiles):setTimeout((function(){window.location.href="/video/view/".concat(i.assetId)}),1e3)}}),(function(e){i.hippoYogaLoader.updateProgressText(e.reason),c.default.postErrorsToLog({error:"Error while converting Video in Import pop :: ",stackTrace:JSON.stringify(e)})}))}}},{key:"errorHandling",value:function(e){c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while importing Video :: ",stackTrace:JSON.stringify(e)})}},{key:"setWarningOnExit",value:function(e){window.onbeforeunload=function(t){return(new v.a).setErrorState(e,m.a.authorState.UPLOAD_CANCELLED,!0),""}}},{key:"abortVideoUpload",value:function(){if(this.isVideoImport()&&this.uploader){this.uploader.cancelImport(!1);var e={asset_id:this.assetId,media_id:this.videoId,fileChangeCount:this.fileChangeCount};this.videoModel.deleteUploadedVideoFromS3(e,(function(e){}),(function(e){c.default.postErrorsToLog({error:"error while deleting video file from s3 :: ",stackTrace:JSON.stringify(e)})}))}this.isVideoUploaded=!1}},{key:"closeImport",value:function(e){this.isVideoImport()&&!this.clickedImport&&this.showVideoImportPreview&&(this.abortVideoUpload(),this._getVideoModel().setErrorState(this.assetId,m.a.authorState.UPLOAD_CANCELLED,!0),window.onbeforeunload=function(){},this.isMediaUploading=!1);var t=!0;if(this.fromSalesForce)return this.isOutlookSpecific?void l.default.closeOutlookPreviewTab("cancel"):void l.default.closeCurrentTab();this.isMediaUploading&&(this.allowCloseImportWhileUploading?c.default.showBannerAlert(w.b.wizImport.uploadInBackground,4e3):t=!1),this.cancelRedirect&&this.isShopifyUser&&"image"===this.importType&&!this.fromAddMore?((new v.a).setErrorState(this.assetId,m.a.authorState.CREATE_SLIDESHOW_CANCELLED,!1),window.onbeforeunload=function(){},window.location.href="/video/library"):t&&(this.$el.hide(),this.$el.find("*").unbind(),this.$el.empty(),this.closeImportCallback&&this.closeImportCallback(this.contactEmail,this.contactId))}},{key:"changeTab",value:function(e){var t=e.data.context,i=e.currentTarget.id,n=t.$el.find("#".concat(i)).data("panelId");t.$el.find(".tab").removeClass("active"),t.$el.find("#".concat(i)).addClass("active"),t.$el.find(".import-body-container, #footerPoweredBy").addClass("hide"),t.$el.find("#".concat(n,", #footnote")).removeClass("hide"),t.actionFrom=i,"importWebTab"===i&&""!==t.search.query&&(t.$el.find("#footerPoweredBy").removeClass("hide"),t.$el.find("#footnote").addClass("hide")),"importLibraryTab"===i?t.initializeMediaLibrary():"recentlyUsedTab"===i?t.initializeRecentlyUsed():"importDriveTab"===i?t.initializeGDrive():"importShopifyTab"===i?(document.getElementById("importshopifyContent").innerHTML="",t.initializeShopify()):"importTestimonial"===i?t.initializeTestimonial():"importVideoLibrarylTab"===i||"importVideoLibraryTabMulti"===i||"importImgLibTab"===i?t.initializeVideoLibrary():"importViaLinkTab"===i?t.initializeImportViaLink():"importViaWebLink"===i&&t.initializeImportViaWebSiteLink(),t.updateCurrentSelectionList(i),t.updateSelectedCounter(),l.default.trackInThirdPartyTools("Import-Pop - Tabs switched to ".concat(i),{})}},{key:"initializeImportViaLink",value:function(){var e;this.fromLocalTab&&(this.selectedFilesList=this.selectList),this.renderingFirstTime&&0==this.selectedFilesList.length&&0!=this.alreadySelectedFiles.length?(e=this.alreadySelectedFiles,this.renderingFirstTime=!1):e=this.selectedFilesList?this.selectedFilesList:this.alreadySelectedFiles||[],this.isFromVideoPages&&e&&e.length>0&&this.addFilesToSelectedList(e),this.$el.find("#addLinkBtn").unbind().bind("click",{context:this},this.validateAndUpdateLink),this.$el.find("#resetLinkBtn").unbind().bind("click",{context:this},this.resetAndUpdateLink),this.$el.find("#importCustomLinkTxt").unbind().bind("keypress",{context:this},this.customLinkChange),this.$el.find("#importCustomLinkTxt").unbind().bind("paste",{context:this},this.handlePasteLink),this.$el.find("#checkLinkBtn").unbind().bind("click",{context:this},this.addCustomLink),this.$el.find("#changeCustomThumbnailId").unbind().bind("click",{context:this},this._handleLinkIconChange),this.$el.find("#linkLogoInput").on("change",this._logoPreview),r()(document).off().on("click","#selectedImageGallery .gallery-view",{context:this},this.editCustomLink)}},{key:"customLinkChange",value:function(e){e.data.context.$el.find("#linkErrorId").addClass("disp-none")}},{key:"handlePasteLink",value:function(e){var t=e.data.context;r()("#importCustomLinkTxt").val("");var i=e.originalEvent.clipboardData.getData("text").replace("https://","");t.$el.find("#linkErrorId").addClass("disp-none"),setTimeout((function(){r()("#importCustomLinkTxt").val(i)}),50)}},{key:"editCustomLink",value:function(e){var t=e.data.context,i=r()(this).attr("data-resourceid"),n=t.selectedFilesList.filter((function(e){return e.id==i})),o={status:!0,image_url:n[0].thumbnail_url,title:n[0].title,url:n[0].custom_link};t.closeDrawer(),t.$el.find("#checkLinkBtn").addClass("disp-none"),t.$el.find("#checkLinkBtn").prop("disabled",""),t.$el.find("#importCustomLinkTxt").val(o.url),t.$el.find("#importCustomLinkTxt").prop("disabled","disabled"),t.$el.find("#addLinkBtn").attr("data-update-id",i),t.$el.find("#addLinkBtn").text("Save"),t.showNameAndThumbnailEdit(o)}},{key:"addCustomLink",value:function(e){l.default.trackInThirdPartyTools("sales page - carousel link check btn clicked");var t=e.data.context,i="https://"+t.$el.find("#importCustomLinkTxt").val();if(t.$el.find("#importCustomLinkTxt").val().includes("https://"))c.default.showBannerAlert("Invalid website URL",3e3,"error");else if(""!=t.$el.find("#importCustomLinkTxt").val()&&l.default.isUrlValid(i)){t.$el.find("#linkErrorId").addClass("disp-none"),t.$el.find("#checkLinkBtn").prop("disabled","disabled");var n={url:i,meta_types:m.a.metaDataType.IMAGE_URL+","+m.a.metaDataType.TITLE};(new de).getMetaDataContent(n,t.showNameAndThumbnailEdit),r()("#importCustomLinkTxt").val(t.$el.find("#importCustomLinkTxt").val())}else t.$el.find("#linkErrorId").text(w.b.wizImport.linkErrorMsg),t.$el.find("#linkErrorId").removeClass("disp-none"),t.$el.find("#checkLinkBtn").prop("disabled","")}},{key:"addWebsiteLink",value:function(e){l.default.trackInThirdPartyTools("Website link check btn clicked");var t=this.$el.find("#importWebLinkTxt").val();if(this.$el.find("#websiteErrorMsgDiv").addClass("disp-none"),this.$el.find("#WeblinkErrorId").addClass("disp-none"),this.$el.find("#weblinkErrorMsgContainer").addClass("disp-none"),this.$el.find("#WebsitePreviewImg").hide(),this.selectedFilesList=[],l.default.isUrlValid(t)){this.$el.find("#checkWebsiteLinkBtn").prop("disabled","disabled"),this.$el.find("#websitePreviewDiv").show(),this.$el.find("#importWebsiteSpinner").show();var i=this.constructWebsiteName(t);this.$el.find("#websiteName").val(i);var n={url:t};(new de).getPreviewFromWebSiteLink(n,this.showWebSitePreview,this.showWebSitePreviewError)}else this.$el.find("#WeblinkErrorId").text(w.b.wizImport.websiteLinkErrorMsg),this.$el.find("#WeblinkErrorId").removeClass("disp-none"),this.$el.find("#weblinkErrorMsgContainer").removeClass("disp-none"),this.$el.find("#checkWebsiteLinkBtn").prop("disabled","")}},{key:"webLinkUrlChanged",value:function(){this.$el.find("#importWebLinkTxt").val().length>0?this.$el.find("#checkWebsiteLinkBtn").prop("disabled",""):this.$el.find("#checkWebsiteLinkBtn").prop("disabled","disabled")}},{key:"constructWebsiteName",value:function(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);if(null!=t&&t.length>2&&"string"==typeof t[2]&&t[2].length>0){var i=t[2].split(".")[0];return i.charAt(0).toUpperCase()+i.slice(1)}return null}},{key:"showWebSitePreview",value:function(e){if(e.status){this.$el.find("#importWebsiteSpinner").hide(),this.$el.find("#WebsitePreviewImg").show(),this.$el.find("#WebsitePreviewImg").attr("src",e.link),this.$el.find("#checkWebsiteLinkBtn").prop("disabled",""),this.$el.find("#import").removeAttr("disabled");var t=this.$el.find("#websiteName").val()+".jpg";this.getFileFromUrl(e.link,t)}else this.showWebSitePreviewError()}},{key:"showWebSitePreviewError",value:function(e){this.$el.find("#importWebsiteSpinner").hide(),this.$el.find("#websiteErrorMsgDiv").removeClass("disp-none")}},{key:"initializeImportViaWebSiteLink",value:function(){this.$el.find("#checkWebsiteLinkBtn").unbind().bind("click",{context:this},this.addWebsiteLink),this.$el.find("#checkWebsiteRetryBtn").unbind().bind("click",{context:this},this.addWebsiteLink),this.$el.find("#importWebLinkTxt").unbind().bind("change",{context:this},this.webLinkUrlChanged),this.$el.find("#importWebLinkTxt").unbind().bind("keyup",{context:this},this.webLinkUrlChanged),this.$el.find("#websitePreviewDiv").hide(),this.$el.find("#importWebsiteSpinner").hide(),this.$el.find("#websiteErrorMsgDiv").addClass("disp-none"),this.$el.find("#WebsitePreviewImg").hide(),this.$el.find("#import").attr("disabled","disabled"),this.$el.find("#checkWebsiteLinkBtn").prop("disabled","disabled")}},{key:"_logoPreview",value:function(e){if(l.default.trackInThirdPartyTools("sales page - carousel link thumbnail changed"),e.target.files&&e.target.files[0]){var t=new FileReader;t.onload=function(e){""!=r()("#linkLogoInput").val()&&(r()("#linkLogoInput").val(""),r()("#linkLogoImg").attr("src",e.target.result))},t.readAsDataURL(e.target.files[0])}}},{key:"getFileFromUrl",value:function(e,t){var i=document.createElement("canvas"),n=i.getContext("2d"),r=new Image;r.crossOrigin="anonymous",r.src=e;var o=this;r.onload=function(){var e=r.width,a=r.height;i.width=e,i.height=a,n.drawImage(r,0,0,e,a);var s=i.toDataURL("image/jpeg");o.dataURLtoFile(s,t)}}},{key:"dataURLtoFile",value:function(e,t){var i=this;fetch(e).then((function(e){return e.arrayBuffer()})).then((function(e){return new File([e],t,{type:"image/jpg"})})).then((function(e){i.addFilesToSelectedList([e])}))}},{key:"_handleLinkIconChange",value:function(e){r()("#linkLogoInput").click()}},{key:"showNameAndThumbnailEdit",value:function(e){this.closeDrawer(),this.$el.find("#linkNameField").removeClass("disp-none"),this.$el.find("#checkLinkBtn").addClass("disp-none"),this.$el.find("#importCustomLinkTxt").addClass("disabled"),this.$el.find("#importCustomLinkTxt").addClass("disable-link-input"),this.$el.find("#linkThumbnailField").removeClass("disp-none"),this.$el.find("#linkDisplayOptions").removeClass("disp-none"),this.$el.find("#checkLinkBtn").prop("disabled","");var t=e.image_url||"/img/without_link.png",i=e.title||"",n=e.url||"";this.linkMetaDataResponse=e,r()("#importCustomLinkTxt").length>0&&(n=n.replace("https://","")),e.status?(this.$el.find("#CustomTitleTxt").val(i),this.$el.find("#importCustomLinkTxt").val(n),r()("#linkLogoImg").attr("src",t)):(this.$el.find("#CustomTitleTxt").val(""),r()("#linkLogoImg").attr("src","/img/without_link.png"))}},{key:"resetAndUpdateLink",value:function(e){var t=e.data.context;if(t.$el.find("#addLinkBtn").attr("data-update-id")){var i=t.$el.find("#addLinkBtn").attr("data-update-id");t.removeFileFromSelection(i),t.$el.find("#addLinkBtn").removeAttr("data-update-id"),t.$el.find("#addLinkBtn").text("Add Link")}l.default.trackInThirdPartyTools("sales page - carousel link reset"),t.$el.find("#importCustomLinkTxt").val(""),t.$el.find("#importCustomLinkTxt").focus(),t.$el.find("#addLinkBtn").prop("disabled",""),t.$el.find("#resetLinkBtn").prop("disabled",""),t.$el.find("#linkNameField").addClass("disp-none"),t.$el.find("#linkThumbnailField").addClass("disp-none"),t.$el.find("#linkDisplayOptions").addClass("disp-none"),t.$el.find("#checkLinkBtn").removeClass("disp-none"),t.$el.find("#importCustomLinkTxt").removeClass("disabled"),t.$el.find("#importCustomLinkTxt").removeAttr("disabled"),t.$el.find("#importCustomLinkTxt").removeClass("disable-link-input")}},{key:"validateAndUpdateLink",value:function(e){l.default.trackInThirdPartyTools("sales page - carousel link added");var t=e.data.context;t.$el.find("#addLinkBtn").prop("disabled","disabled"),t.$el.find("#resetLinkBtn").prop("disabled","disabled");var i=t.linkMetaDataResponse.url,n=t.$el.find("#CustomTitleTxt").val(),r=t.$el.find("#linkLogoImg").attr("src");if("/img/without_link.png"==r&&(r=""),r.startsWith("data:image/")){var o={thumbnail:r};(new de).fetchCarouselThumbnailLink(o,(function(e){e.status?t.linkAddToDrawer(n,e.thumbnail,i):t.linkAddToDrawer(n,"",i)}),(function(e){t.linkAddToDrawer(n,"",i)}))}else t.linkAddToDrawer(n,r,i)}},{key:"linkAddToDrawer",value:function(e,t,i){var n=this.$el.find("#addLinkBtn").attr("data-update-id")?this.$el.find("#addLinkBtn").attr("data-update-id"):this.getMaxIdForLink(),r=[];r.push({id:n,title:e,url:t,is_custom_link:!0,custom_link:i,thumbnail_url:t}),this.addFilesToSelectedList(r),this.openDrawer(),this.$el.find("#importCustomLinkTxt").val(""),this.$el.find("#importCustomLinkTxt").focus(),this.$el.find("#addLinkBtn").prop("disabled",""),this.$el.find("#resetLinkBtn").prop("disabled",""),this.$el.find("#linkNameField").addClass("disp-none"),this.$el.find("#linkThumbnailField").addClass("disp-none"),this.$el.find("#linkDisplayOptions").addClass("disp-none"),this.$el.find("#checkLinkBtn").removeClass("disp-none"),this.$el.find("#addLinkBtn").removeAttr("data-update-id"),this.$el.find("#addLinkBtn").text("Add Link"),this.$el.find("#importCustomLinkTxt").removeClass("disabled"),this.$el.find("#importCustomLinkTxt").removeAttr("disabled"),this.$el.find("#importCustomLinkTxt").removeClass("disable-link-input")}},{key:"getMaxIdForLink",value:function(){var e,t=this.selectedFilesList&&this.selectedFilesList.length>0?this.selectedFilesList:this.alreadySelectedFiles||[];if(t){var i=[];for(var n in t){var r=t[n];r.is_custom_link&&i.push(parseInt(r.id))}i.length>0&&(e=Math.max.apply(null,i)+1)}return e||(e=1),e.toString()}},{key:"updateCurrentSelectionList",value:function(e){this.isFromCarousel&&"importLocalTab"===e?(this.fromLocalTab=!0,this.selectedFilesList=this.importList):(this.fromLocalTab=!1,this.selectedFilesList=this.selectList)}},{key:"addFilesToSelectedList",value:function(e){var t=this,i=this;fe()(o.default.extend({},w.b.wizImport,{files:e,type:this.isDocOrVideoImport()?"video":this.importType,isSortable:!1,showDelete:!0,isMultiple:this.isMultiple,showControls:!1,showAddMoreTemplate:!1}),(function(n,o){(t.$el.find("#selectedImageGallery").append(r()(o)),(e||[]).forEach((function(e){delete e.local_src,e.isIncluded=!0,e.is_image_preview&&(e.isImagePreview=!0),Ce.listIncludes(i.selectedFilesList,e)?(i.updateFileList(e),i.$el.find("#selectedImageGallery #"+e.id).length>0&&(i.$el.find("#selectedImageGallery #"+e.id).last().remove(),i.$el.find("#selectedImageGallery img[data-resourceid="+e.id+"]").attr("src",e.thumbnail_url))):i.selectedFilesList.push(e),i.isFromVideoPages?i.$el.find(".import-images-container").find("[data-token=".concat(e.token||e.video_token,"]")).addClass("selected"):i.$el.find("#".concat(e.id)).addClass("selected")})),t.isFromVideoPages&&"importLocalTab"===t.actionFrom)?0===t.getSelectedMedia().length?t.$el.find("#import").attr("disabled","disabled"):t.$el.find("#import").removeAttr("disabled"):(t.updateSelectedCounter(),t.$el.find("#selectedImageGallery .image").removeClass("pull-left"),t.$el.find("#selectedImageGallery .gallery-view").one("load",{context:t},t.imageLoadedCallback),t.$el.find("#selectedImageGallery .gallery-delete").unbind().bind("click",{context:t},t.deleteFile),t.$el.find("#selectedImageGallery").scrollLeft(t.$el.find("#selectedImageGallery")[0].scrollWidth))}))}},{key:"addToSelectedList",value:function(e){var t=this;(e||[]).forEach((function(e){delete e.local_src,e.isIncluded=!0,e.is_image_preview&&(e.isImagePreview=!0),t.selectedFilesList.push(e)}))}},{key:"updateFileList",value:function(e){var t=e.id,i=this.selectedFilesList.findIndex((function(e){return e.id==t}));this.selectedFilesList[i].title=e.title,this.selectedFilesList[i].thumbnail_url=e.thumbnail_url,this.selectedFilesList[i].url=e.url}},{key:"deleteFile",value:function(e){var t=e.currentTarget.dataset.footage;e.data.context.removeFileFromSelection(t)}},{key:"removeFileFromSelection",value:function(e){var t=o.default.findIndex(this.selectedFilesList,{id:e});this.$el.find("#selectedImageGallery #".concat(e)).remove(),this.$el.find("#".concat(e)).removeClass("selected"),e.includes("local")?this.selectedFilesList[t].isIncluded=!1:this.selectedFilesList.splice(t,1),this.updateSelectedCounter()}},{key:"removeAllFilesFromSelection",value:function(){this.selectedFilesList.length=0}},{key:"openCloseDrawer",value:function(e){var t=this;this.$el.find("#openDrawHandle, #closeDrawHandle").addClass("hide"),e?this.$el.find("#selectionDrawer").slideDown("fast",(function(){t.$el.find("#closeDrawHandle").removeClass("hide"),t.$el.find(".main-gallery").addClass("extra-margin")})):this.$el.find("#selectionDrawer").slideUp("fast",(function(){t.$el.find("#closeDrawHandle").removeClass("hide"),t.isFromVideoPages&&"importLocalTab"===t.actionFrom||t.$el.find("#openDrawHandle").removeClass("hide"),t.$el.find(".main-gallery").removeClass("extra-margin")})),this.isDrawOpen=e,this.$el.find("#selectedImageGallery")[0].scrollWidth>=this.$el.find("#selectedImageGallery").innerWidth()?this.$el.find(".scroll-arrow").removeClass("hide"):this.$el.find(".scroll-arrow").addClass("hide")}},{key:"updateSelectedCounter",value:function(){this.$el.find("#selectedFilesCounter").text(0);var e=this.getSelectedMedia().length;this.showSelectedDrawer?(0===e?(this.$el.find("#openDrawHandle").addClass("hide"),this.$el.find("#import").attr("disabled","disabled"),this.isDrawOpen&&(this.isDrawForceClosed=!1,this.$el.find("#closeDrawHandle")[0].click())):(this.$el.find(".import-body").removeClass("no-box-shadow"),this.$el.find("#import").removeAttr("disabled"),this.isDrawOpen||this.$el.find("#openDrawHandle").removeClass("hide"),this.isDrawForceClosed||(this.isDrawForceClosed=!0,this.openDrawer())),e<10&&(e="0".concat(e)),this.$el.find("#selectedFilesCounter").text(e),this.$el.find("#selectedImageGallery")[0].scrollWidth>=this.$el.find("#selectedImageGallery").innerWidth()?this.$el.find(".scroll-arrow").removeClass("hide"):this.$el.find(".scroll-arrow").addClass("hide")):0===e?this.$el.find("#import").attr("disabled","disabled"):this.$el.find("#import").removeAttr("disabled")}},{key:"showReloadBtn",value:function(){this.$el.find("#libraryRefresh").removeClass("hide")}},{key:"sendGitomerTestimonialTrack",value:function(e){r()("#digest").val()==m.a.GITOMER_WIDGET.TOKEN&&l.default.trackInThirdPartyTools("hippo widget - "+e)}},{key:"processMultipleImageImport",value:function(e){var t=this;e.length<1&&(this.multipleUploadedFiles=void 0,this.redirectAfterMultiImport());var i=e[e.length-1],n=i.name.split(".")[0],r=this,o=i.type,a=(i.size||1)/1024,s=this._getVideoModel(),l=this.categories,d=new FormData;d.append("file_name",n),d.append("description",""),d.append("file_type",o),d.append("size",a.toString()),null!=l&&d.append("cat_ids",l),d.append("tags",this.fileTags);var u=i.name.split(".").pop().toLowerCase();d.append("file_ext",u);var p=o&&"image"==o.split("/")[0];s.documentImport(d,(function(o){var a={bucket:o.upload_bucket,key:o.upload_key,acl:"private",digest:t.digest},l=new V.a(a),d=o.authoring_asset_id;t.assetId=d,t.isMediaUploading=!0,t.setWarningOnExit(d),e.pop(),t.multipleUploadedFiles=e,t.hippoYogaLoader.updateProgress(0);var u=p?w.b.progressMessages.imageUploadedWaiting:w.b.progressMessages.uploadingFile;t.hippoYogaLoader.updateProgressText("("+(t.totalFiles-t.multipleUploadedFiles.length)+"/"+t.totalFiles+") "+w.b.progressMessages.uploadingFile),l.uploadFile(i,(function(e){t.hippoYogaLoader.updateProgress(e)}),(function(e){t.hippoYogaLoader.updateProgressText("("+(t.totalFiles-t.multipleUploadedFiles.length)+"/"+t.totalFiles+") "+u),r.isMediaUploading=!1;var i={authoring_id:o.authoring_id,asset_id:d};s.updateDocState(i,(function(e){}),(function(i){c.default.showBannerAlert(w.b.progressMessages.errorUpdatingState,3e3,"error"),setTimeout((function(){window.onbeforeunload=function(){},t.isMediaUploading=!1,r.hippoYogaLoader.updateProgress(100);var i=t.isFromCarousel?"carousel":"primary";t.importMediaCallback?t.importMediaCallback({assetId:t.assetId,mediaLocation:i,fileName:n,response:e,categories:t.categories}):window.location.href="/video/library"}),3e3)})),p?s.compressVideo(d,!1,!0,r.videoCompressing,r.errorHandling):r.processMultipleImageImport(t.multipleUploadedFiles)}),(function(e){r.isMediaUploading=!1,r.hippoYogaLoader.updateProgressText(w.b.progressMessages.doc.error),c.default.postErrorsToLog({error:"Error while importing Document/Image :: ",stackTrace:JSON.stringify(e)})}))}),(function(e){r.isMediaUploading=!1,c.default.showBannerAlert(De,4e3,"error"),c.default.postErrorsToLog({error:"Error while importing Document/image :: ",stackTrace:JSON.stringify(e)})}))}},{key:"videoCompressing",value:function(e){if(this.multipleUploadedFiles&&this.multipleUploadedFiles.length>0)this.processMultipleImageImport(this.multipleUploadedFiles);else{var t=this;z.a.initialize(2e3).getStatus(e.video,(function(e){t.hippoYogaLoader.updateValues(0,e)}),(function(e,i){t.hippoYogaLoader.updateValues(i,e)}),(function(e){t.hippoYogaLoader.updateProgress(100),t.redirectAfterMultiImport(e)}),(function(e){t.redirectAfterMultiImport(e)}))}}},{key:"redirectAfterMultiImport",value:function(e){window.onbeforeunload=function(){};var t=this.isFromCarousel?"carousel":"primary";this.importMediaCallback?this.importMediaCallback({assetId:this.assetId,mediaLocation:t,fileName:this.imageFileName,response:e,categories:this.categories}):null!=this.categories&&1==this.categories.length?window.location.href="/video/category/".concat(this.categories):window.location.href="/video/library"}}]),i}(s.a.View);i(146),i(147),i(92),i(758),i(759),i(760),i(393),i(763),i(764),i(766),i(769),t.a=s.a.View.extend({initialize:function(e){this.$el=e.$el||r()(e.el),this.origin=e.fromSDK?window._HVDomain||"https://assets.hippovideo.io":"",this.videoPlayerView=e.videoPlayerView,this.assetId=e.assetId,this.token=e.token,this.tokenType=e.tokenType,this.recorder=e.recorder,this.recorderApiModel=e.recorderApiModel,this.digest=e.digest,this.integrationType=e.integration_type,this.embeddedDigest=e.embeddedDigest,this.isPersonalizationEnabled=e.isPersonalizationEnabled,this.customColors=e.customColors,this.overrideWarnOnExit=e.overrideWarnOnExit,this.isPPR=e.isPPR,this.enabled=!1,this.askReloadConfirmation=!1,this.onBoardRequired=this.isOnBoardRequired(),this.currentSelectedText=void 0,this.currentSelectedSticker=void 0,this.currentSelectedCallout=void 0,this.currentSelectedBlur=void 0,this.showingColorPicker=!1,this.blurPlayInterval=void 0,this.isBlurEnabled=e.isBlurEnabled,this.authoringId=e.authoringId,this.footageUrls=e.footageUrls||{},this.closeImportCallback=e.closeImportCallback||function(){},this.openImportCallback=e.openImportCallback||function(){},this.defaultTextAreaValue=w.b.simpleEdit.enterTextHere,this.isMac=window.navigator.userAgent.indexOf("Mac")>=0,this.isTicketVideoPreview=e.isTicketViewPreview,this.isAssignmentVideoPreview=e.isAssignmentVideoPreview,this.isTestimonialVideoPreview=e.isTestimonialVideoPreview,this.isGuestRecording=e.isGuestRecording,this.fromQuickRecord=e.fromQuickRecord,this.canInitializeUI=e.initEditUI,this.initSettingModel(),this.brand_colors=[],this.defaultFontValue="timesnewroman",this.brand_font_color="#000000",this.colorPaletteEnabled=e.colorPaletteEnabled,this.isPPR=e.isPPR,this.fontCache={},this.sessionDetails={addedClips:[],primaryVideo:void 0,secondaryVideo:void 0,trimSliderStart:0,trimSliderEnd:0,totalAddedEffects:0},this.stickerSize=[],this.stickers={1:{name:"Smileys",mainId:1124,startId:945,endId:1935},2:{name:"Animals&Nature",mainId:315,startId:286,endId:434},3:{name:"Food&Drink",mainId:932,startId:854,endId:944},4:{name:"Objects",mainId:1947,startId:1936,endId:2134},5:{name:"Travel&Places",mainId:435,startId:435,endId:547},6:{name:"Activity",mainId:829,startId:547,endId:853},7:{name:"Symbols",mainId:2340,startId:2135,endId:2428},8:{name:"Flags",mainId:25,startId:2,endId:285}},this.callouts=l.default.getAvailableCallouts(),this.calloutsDisplayorder=l.default.getCalloutDisplayorder(),this.selectPrimaryVideo=this.selectPrimaryVideo.bind(this),this.selectSecondaryVideo=this.selectSecondaryVideo.bind(this),this.userEventStart=this.userEventStart.bind(this),this.userEventStop=this.userEventStop.bind(this),this.selectTrim=this.selectTrim.bind(this),this.selectCrop=this.selectCrop.bind(this),this.selectAddText=this.selectAddText.bind(this),this.selectAddCallouts=this.selectAddCallouts.bind(this),this.selectAddStickers=this.selectAddStickers.bind(this),this.selectAddImage=this.selectAddImage.bind(this),this.hanldeImageAspectRatioChange=this.hanldeImageAspectRatioChange.bind(this),this.deleteImage=this.deleteImage.bind(this),this.changeImageOpacity=this.changeImageOpacity.bind(this),this.addImage=this.addImage.bind(this),this.addPersonalizedImage=this.addPersonalizedImage.bind(this),this.processSelectedImage=this.processSelectedImage.bind(this),this.createNewImage=this.createNewImage.bind(this),this.addWebsiteImageBtn=this.addWebsiteImageBtn.bind(this),this.applyCrop=this.applyCrop.bind(this),this.resetCrop=this.resetCrop.bind(this),this.addEnteredText=this.addEnteredText.bind(this),this.textPropertyChanged=this.textPropertyChanged.bind(this),this.textEditableChanged=this.textEditableChanged.bind(this),this.deleteText=this.deleteText.bind(this),this.addNewSticker=this.addNewSticker.bind(this),this.deleteSticker=this.deleteSticker.bind(this),this.stickerPropertyChanged=this.stickerPropertyChanged.bind(this),this.calloutPropertyChanged=this.calloutPropertyChanged.bind(this),this.deleteCallout=this.deleteCallout.bind(this),this.playerTimeUpdate=this.playerTimeUpdate.bind(this),this.makeVideoResizeableDraggable=this.makeVideoResizeableDraggable.bind(this),this.selectBlur=this.selectBlur.bind(this),this.selectAddBlur=this.selectAddBlur.bind(this),this.deleteBlur=this.deleteBlur.bind(this),this.addNewBlur=this.addNewBlur.bind(this),this.blurPropertyChanged=this.blurPropertyChanged.bind(this),this.blurAreaChanged=this.blurAreaChanged.bind(this),this.handleVideoPlay=this.handleVideoPlay.bind(this),this.handleVideoPause=this.handleVideoPause.bind(this),this.handleVideoSeeked=this.handleVideoSeeked.bind(this),this.newComponentDragged=this.newComponentDragged.bind(this),this.newComponentDropped=this.newComponentDropped.bind(this),this.getReloadConfirmationState=this.getReloadConfirmationState.bind(this),this.checkAndPopulateMf=this.checkAndPopulateMf.bind(this),this.playerResized=this.playerResized.bind(this),this.textBoxResized=this.textBoxResized.bind(this),this.initializeAtwho=this.initializeAtwho.bind(this),this.fontLoaded=this.fontLoaded.bind(this),this.markerSelected=this.markerSelected.bind(this),this.globalKeypress=this.globalKeypress.bind(this),this.initSettingModel=this.initSettingModel.bind(this),this.getBrandingInfoSuccess=this.getBrandingInfoSuccess.bind(this),this.cropResizable=this.videoPlayerView.$el.find(".se-crop-resizable"),this.primaryVideoContainer=this.videoPlayerView.$el.find(".primary-video-container"),this.primaryVideoOverflowContainer=this.videoPlayerView.$el.find(".primary-video-overflow-container"),this.secondaryVideoContainer=this.videoPlayerView.$el.find(".secondary-video-container"),this.secondaryVideoOverflowContainer=this.videoPlayerView.$el.find(".secondary-video-overflow-container"),this.infoText=this.$el.find(".default-control-detail .info-text"),c.default.initializeJQueryTouchPunch(),this.$el.find(".se-text-properties").unbind("change").bind("change",this.textPropertyChanged),0!=this.canInitializeUI&&this.initializeUI(),r()(document).bind("mousedown",{that:this},this.globalClick),this.$el.find(".trim-btn").unbind("click").bind("click",this.selectTrim),this.$el.find(".crop-btn").unbind("click").bind("click",this.selectCrop),this.$el.find(".add-text-btn").unbind("click").bind("click",this.selectAddText),this.$el.find(".add-callouts-btn").unbind("click").bind("click",this.selectAddCallouts),this.$el.find(".add-stickers-btn").unbind("click").bind("click",this.selectAddStickers),this.$el.find(".add-image-btn").unbind("click").bind("click",this.selectAddImage),this.$el.find(".apply-crop").unbind("click").bind("click",this.applyCrop),this.$el.find(".reset-crop").unbind("click").bind("click",this.resetCrop),this.$el.find(".add-text").unbind("click").bind("click",this.addEnteredText),this.videoPlayerView.$el.find(".se-text-editable").unbind("keypress").bind("keypress",this.textEditableChanged),this.videoPlayerView.$el.find(".se-clip-time").unbind("click").bind("click",{that:this},this.showClipTimePop),this.videoPlayerView.$el.find(".timer-input-btn").unbind("click").bind("click",{that:this},this.clipInputButtonClicked),this.videoPlayerView.$el.find(".timer-start-input, .timer-stop-input").unbind("keyup").bind("keyup",{that:this},this.clipInputtyped),this.$el.find(".se-sticker-btn").unbind("click").bind("click",{that:this},this.stickerBtnClicked),this.$el.find(".delete-sticker").unbind("click").bind("click",this.deleteSticker),this.$el.find(".sticker-control").unbind("change").bind("change",{that:this},this.stickerPropertyChanged),this.$el.find(".se-callout-btn").unbind("click").bind("click",{that:this},this.calloutBtnClicked),this.$el.find(".delete-callout").unbind("click").bind("click",this.deleteCallout),this.$el.find(".callout-control").unbind("change").bind("change",{that:this},this.calloutPropertyChanged),this.$el.find(".lock-aspect-ratio").unbind("click").bind("click",{that:this},this.lockAspectRatio),this.$el.find(".sticker-family-container").unbind("click").bind("click",{that:this},this.showStickerFamily),this.$el.find(".callout-scroll-right, .callout-scroll-left").unbind("click").bind("click",{that:this},this.scrollCallouts),this.$el.find(".addtext-input-text").unbind("keyup").bind("keyup",{that:this},this.addTextChanged),this.$el.find(".trim-input-btn").unbind("click").bind("click",{that:this},this.trimInputButtonClicked),this.$el.find(".trim-before-input, .trim-after-input").unbind("keyup").bind("keyup",{that:this},this.trimInputTyped),this.$el.find(".trim-before-time").unbind("click").bind("click",{that:this},this.showTrimBeforePop),this.$el.find(".trim-after-time").unbind("click").bind("click",{that:this},this.showTrimAfterPop),this.$el.find("#blurBtn").unbind("click").bind("click",this.selectAddBlur),this.$el.find("#resizeDragBtn").unbind("click").bind("click",this.makeVideoResizeableDraggable),this.$el.find(".delete-blur").unbind("click").bind("click",this.deleteBlur),this.$el.find("#applyBlur").unbind("click").bind("click",{that:this},this.addNewBlur),this.$el.find(".blur-control").unbind("click").bind("click",this.blurPropertyChanged),this.$el.find("#imageOpacitySlider").unbind("change").bind("change",this.changeImageOpacity),this.$el.find("#imageOpacityInput").unbind("change keyup").bind("change keyup",this.changeImageOpacity),this.$el.find("#imageArLock").unbind("change").bind("change",this.hanldeImageAspectRatioChange),this.$el.find("#deleteImage").unbind("click").bind("click",this.deleteImage),this.$el.find("#addImageBtn").unbind("click").bind("click",this.addImage),this.$el.find("#addPersonalizedImageBtn").unbind("click").bind("click",this.addPersonalizedImage),this.$el.find("#addWebsiteImageBtn").unbind("click").bind("click",this.addWebsiteImageBtn),this.$el.find("#imageOpacitySlider").val(100),!(this.isGuestRecording||this.isTicketVideoPreview||this.isAssignmentVideoPreview||this.isTestimonialVideoPreview||"true"!=r()("#isAddImageInVideoEnabled").val())||this.$el.find("#addImageMenuBtn").remove(),this.isTicketVideoPreview&&this.$el.find(".merge-field-container").remove(),document.fonts&&(document.fonts.onloadingdone=this.fontLoaded),this.videoPlayerView.setUpdateHandler(this.playerTimeUpdate),this.videoPlayerView.setPlayPauseHandler(this.handleVideoPlay,!0),this.videoPlayerView.setPlayPauseHandler(this.handleVideoPause,!1),this.videoPlayerView.setSeekedHandler(this.handleVideoSeeked),this.videoPlayerView.setPlayerResizeHandler(this.playerResized),this.userEmail=r()("#userEmail").val(),r()(document).bind("keydown",{that:this},this.globalKeypress),this.applyCustomColors(),this.addCustomFontStyles(),HippoVideo&&HippoVideo.AppRegistry&&HippoVideo.AppRegistry.isDeepIntg&&HippoVideo.AppRegistry.isPersonalizationEnabled&&r()("#addTextBtn").hide()},initSettingModel:function(){var e=this;this.settingModel=new b.a({settingTabName:m.a.wizSetting.BRANDING});var t={};try{if(HippoVideo&&HippoVideo.data&&HippoVideo.data.api&&HippoVideo.data.api.getProperty&&""!=HippoVideo.data.api.getProperty("userEmail"))t={authentication_token:HippoVideo.data.api.getProperty("authToken"),email:encodeURIComponent(HippoVideo.data.api.getProperty("userEmail"))},this.settingModel.fetch({data:t,success:function(t){e.brand_colors=t.get("info").brand_colors,t.get("info").brand_font&&(e.defaultFontValue=t.get("info").brand_font.toLowerCase().replace(/\s/g,""),e.$el.find(".se-font-selector").val(e.defaultFontValue)),t.get("info").brand_font_color&&(e.brand_font_color=t.get("info").brand_font_color),e.setupSpectrum()}});else if(this.digest||this.recorderApiModel){var i=e.getPageSource();this.recorderApiModel?this.recorderApiModel.getBrandingInfo().then((function(t){e.getBrandingInfoSuccess(t,e)})).catch((function(e){console.error(e)})):this.settingModel.getDigestInfo(this.digest,i,(function(t){e.getBrandingInfoSuccess(t,e)}))}}catch(e){console.error(e)}},getBrandingInfoSuccess:function(e,t){t.brand_colors=e.brand_colors,e.brand_font&&(t.defaultFontValue=e.brand_font.toLowerCase().replace(/\s/g,""),t.$el.find(".se-font-selector").val(t.defaultFontValue)),e.brand_font_color&&(t.brand_font_color=e.brand_font_color),t.setupSpectrum()},getPageSource:function(){return"true"==r()("#isTestimonial").val()?"testimonial":r()("#isGuestRecording").val()?"guest":"lessonly"==l.default.getQueryParams().type?"lessonly":"generic_embed"==l.default.getQueryParams().type?"generic_embed":this.integrationType?this.integrationType:""},resizeHandler:function(){this.mediaContainerResized(this.primaryVideoContainer),this.mediaContainerResized(this.secondaryVideoContainer)},initializeUI:function(){var e=this;this.defaultFontValue="timesnewroman",this.$el.find(".trim-slider").slider({range:!0,min:0,max:1e3,step:1,values:[0,1e3],start:function(){e.unselectAllComponents()},slide:function(t,i){e.$el.find(".trim-control-detail input.sliderValue[data-index=0]").val(i.values[0]),e.$el.find(".trim-control-detail input.sliderValue[data-index=1]").val(1e3-i.values[1]),e.trimChanged(),e.trimSliding(i)},stop:function(t){e.$el.find(".trim-before-container, .trim-after-container").removeClass("trim-hovered"),e.trimChanged()}}),this.cropResizable.resizable({containment:e.videoPlayerView.$el.find(".se-crop-scale"),handles:"n, e, w, s, ne, nw, se, sw",resize:function(t,i){e.cropResized(!0)},stop:function(){e.cropStopped()}}),this.makeVideoContainerResizable(this.primaryVideoContainer,this.$el.find(".primaryvid-control-detail .lock-aspect-ratio").is(":checked")),this.primaryVideoContainer.draggable({scroll:!1,opacity:.9,snap:".hippo-video-player, .se-crop-highlighter",snapMode:"both",snapTolerance:10,start:this.userEventStart,stop:function(){e.unselectAllComponents(),e.userEventStop()}}),this.makeVideoContainerResizable(this.secondaryVideoContainer,this.$el.find(".secondaryvid-control-detail .lock-aspect-ratio").is(":checked")),this.secondaryVideoContainer.draggable({scroll:!1,opacity:.9,snap:".hippo-video-player, .primary-video-container, .se-crop-highlighter",snapMode:"both",snapTolerance:10,start:this.userEventStart,stop:function(){e.unselectAllComponents(),e.userEventStop()}}),r()(".primary-video-container, .secondary-video-container").hover((function(){r()(".se-components-hover").removeClass("se-components-hover"),r()(this).addClass("se-components-hover")}),(function(){r()(this).removeClass("se-components-hover")}));var t=l.default.getFontMap(),i=[];for(var n in t)i.push(n);i=i.sort();for(var o=0;o<i.length;o++){n=i[o];this.$el.find(".se-font-selector").append(r()("<option>",{value:n,text:t[n].family,style:"font-family: "+t[n].family+";"})),this.defaultFontValue=t[n].isDefault?n:this.defaultFontValue}this.$el.find(".se-font-selector").val(this.defaultFontValue),this.$el.find(".sticker-btn-container").empty();for(var a in this.stickers){var s=this.stickers[a];this.$el.find(".sticker-btn-container").append(x()({i:a,mainImg:"https://s3.amazonaws.com/hippolms-wiz-static/stickers-preview/s"+s.mainId+".png?v=2"})),this.downloadAndSetStickers(this,a,s.startId,s.endId)}for(var c in this.$el.find(".callout-btn-container").empty(),this.calloutsDisplayorder){a=this.calloutsDisplayorder[c];var d=document.createElement("img");r()(d).addClass("se-callout-btn"),d.id="se-callout-btn-"+a,d.src="https://s3.amazonaws.com/hippolms-wiz-static/callouts/c"+a+".png?v=2",d.crossOrigin="Anonymous",this.$el.find(".callout-btn-container").append(d),this.findCalloutSize(a)}this.$el.find(".se-callout-btn").draggable({scroll:!1,helper:"clone",revert:"invalid",revertDuration:100,start:this.newComponentDragged,stop:this.newComponentDropped}),this.$el.find(".se-sticker-btn").draggable({scroll:!1,appendTo:"body",stack:".se-sticker-btn",helper:"clone",revert:"invalid",revertDuration:100,start:this.newComponentDragged,stop:this.newComponentDropped}),this.videoPlayerView.$el.find(".se-crop-resizable").droppable({accept:".se-sticker-btn, .se-callout-btn",drop:function(t,i){e.componentDropped(i.draggable[0].id,t.pageX-e.videoPlayerView.$el.find(".se-crop-scale").offset().left-40,t.pageY-e.videoPlayerView.$el.find(".se-crop-scale").offset().top-40)}}),this.videoPlayerView.$el.find(".se-clip-time").resizable({containment:r()(".components-time-container"),handles:"e, w",resize:function(e,t){},stop:function(){e.onClipTimeChangeHandler(),e.updateTimeFromClipToPopup(e)}});var u=this.$el.find(".addtext-control-detail .color-picker .sp-replacer"),p=document.createElement("div");r()(p).addClass("text-color-picker"),r()(p).text("A"),r()(u).prepend(p),this.$el.find(".se-font-selector").select2({minimumResultsForSearch:-1,theme:"hippocategory",width:"element",dropdownCssClass:"et-dropdown-css",templateResult:function(e,t){return e.element&&r()(t)[0].style.setProperty("font-family",r()(e.element).css("font-family"),"important"),e.text}}),this.$el.find(".se-fontsize-selector").select2({minimumResultsForSearch:-1,theme:"hippocategory"}),this.isPersonalizationEnabled&&(this.$el.find("#seMfSelector").select2({tags:!0,multiple:!1,theme:"hippocategory",templateResult:function(e,t){return e.element&&r()(t).addClass("selection-in-blue"),e.text}}),this.mfValues=["{Email}","{First Name}","{Last Name}","{Country}","{City}","{Phone Number}","{Company Name}","{Title}","{State}","{Address}"],this.$el.find("#seMfSelector").on("change",{that:this},this.handleMfChange)),this.$el.find(".se-textalign-selector").select2({minimumResultsForSearch:-1,dropdownAutoWidth:!0,theme:"hippocategory",templateSelection:function(t){return'<img width="10" src="'+(e.origin+"/svg/text-"+t.id+"-align.svg")+'"/>'},templateResult:function(t){return t.id||(t.id="center"),'<img width="10" style="margin-right:5px" src="'+(e.origin+"/svg/text-"+t.id+"-align.svg")+'"/>'+t.text},escapeMarkup:function(e){return e}}).next(".select2-container").addClass("textalign-select2"),this.$el.find(".select2-selection__rendered").removeAttr("title"),this.disable(),this.cropResized(!1),this.enableBlurForPlayer()},setupSpectrum:function(){r()(".sp-container").remove();var e=this,t={showInput:!0,preferredFormat:"rgb",clickoutFiresChange:!0,chooseText:"set",color:e.brand_font_color,show:function(){e.showingColorPicker=!0,r()(".seColorContainer").length>0&&r()(".seColorContainer")[0].scrollIntoView({block:"end",behavior:"smooth"})},hide:function(){e.showingColorPicker=!1},move:function(){e._previewColorChange()},change:function(){e._handleColorChange(),e.showingColorPicker=!1},containerClassName:"seColorContainer"};if(this.brand_colors&&this.brand_colors.length>0){var i=h.getPaletteConfig(this.brand_colors,"seColorContainer",this.colorPaletteEnabled);t=Object.assign(t,i)}this.$el.find(".se-color-selector").spectrum(t)},_previewColorChange:function(){if(this.currentSelectedText){var e=this.$el.find(".addtext-control-detail .se-color-choose").spectrum("get").toHexString();r()("#se-component-"+this.currentSelectedText+" .text-el-line").css("color",e)}},_handleColorChange:function(){this.setTextColorInClip()},setTextColorInClip:function(){if(this.currentSelectedText){var e=this.getClipOf(this.currentSelectedText);e&&(e.properties.color=this.$el.find(".addtext-control-detail .se-color-choose").spectrum("get").toHexString(),this.updateProjectJson(),this.reconstructUI())}},downloadAndSetStickers:function(e,t,i,n){if(!(i>=n)){var o=document.createElement("img");r()(o).addClass("se-sticker-btn"),o.id="se-sticker-btn-"+i,o.src="https://s3.amazonaws.com/hippolms-wiz-static/stickers-all/transparent.png?v=2";var a=(i-2)%50*-20,s=-20*Math.floor((i-2)/50);o.style.background="url('https://s3.amazonaws.com/hippolms-wiz-static/stickers-all/stickers_all.png?v=2') "+a+"px "+s+"px",e.$el.find(".sticker-family-container-"+t+" .sticker-family-all").append(o),e.findStickerSize(i),r()(o).unbind("click").bind("click",{that:e},e.stickerBtnClicked),setTimeout((function(){e.downloadAndSetStickers(e,t,i+1,n)}),10)}},enable:function(){this.enabled=!0;try{HippoVideo.data.api.getProperty("isTrimEnabled")&&this.$el.find(".simple-edit-buttons-box").hide()}catch(e){}this.primaryVideoContainer.css("z-index","100"),this.secondaryVideoContainer.css("z-index","101"),this.videoPlayerView.setSimpleEditMode(!0),this.unselectAllControls(),this.videoPlayerView.$el.find(".se-crop-highlighter").css({background:"rgba(72, 72, 72, 0.97)","z-index":"108"}),this.videoPlayerView.$el.css("overflow","visible"),this.videoPlayerView.$el.find(".se-crop-scale").css({top:"0px",left:"0px"}),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),1,1,0,0),r()("#previewPageLeft").addClass("simple-edit-top-pad"),r()(".body-wiz").addClass("tmp-body-wiz").removeClass("body-wiz"),r()(".tmp-body-wiz").css("margin-top","105px"),r()(".tmp-body-wiz").animate({marginTop:"0px"},200),this.videoPlayerView.$el.find(".thumbnail-container").hide(),this.videoPlayerView.$el.find(".play-btn-container").fadeOut(100),this.videoPlayerView.$el.find(".player-touch-guard").hide(),this.snapshot={},this.snapshot.projectJson=l.default.naiveClone(this.projectJson),this.snapshot.trimSliderStart=this.sessionDetails.trimSliderStart,this.snapshot.trimSliderEnd=this.sessionDetails.trimSliderEnd,this.snapshot.addedClips=l.default.naiveClone(this.sessionDetails.addedClips),this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.snapshot.crop={x:this.cropResizable.position().left,y:this.cropResizable.position().top,w:this.cropResizable.width(),h:this.cropResizable.height()},this.cropResizable.removeClass("disp-show").addClass("disp-none"),this.onBoardRequired?(this.onBoardRequired=!1,this.onBoardUser()):(this.$el.find(".default-control-detail").show(),this.infoText.html(" ")),this.reconstructUI(),this.videoPlayerView.resizePlayerForWindow(),this.$el.find("#trimBtn").length>0?this.selectTrim():this.$el.find(".simple-edit-buttons-box .wiz-simple-edit-btn").first().click(),!1===this.overrideWarnOnExit&&(window.onbeforeunload=function(){return"Please save before you close!!"}),this.prefetchAssetsForSimpleEdit()},save:function(){this.disable(),this.disabled(),this.projectJson.simpleEdit=!0,this.projectJson.seSessionDetails=this.sessionDetails,this.renderVideo()},renderVideo:function(e){var t=this;this.recorder?this.recorder.renderVideo({assetId:this.assetId,projectJson:this.getIOAdjustedProjectJSON(),renderFrom:"simple_edit"}).then((function(){l.default.trackInDB("SE-Save",t.userEmail),t.isPPR&&t._getVideoModel().urgent_videos([t.assetId],(function(){u.a.trigger("remountCtaActions"),e&&e.resolve("")}))})).catch((function(t){console.error(err),e&&e.reject("error")})):this._getVideoModel().mergeAndRender(this.assetId,this.getIOAdjustedProjectJSON(),"simple_edit",this.digest,(function(i){l.default.trackInDB("SE-Save",t.userEmail),t.isPPR&&t._getVideoModel().urgent_videos([t.assetId],(function(){u.a.trigger("remountCtaActions"),e&&e.resolve("")}))}),(function(t){console.log("error ",t),e&&e.reject("error")}))},savePPR:function(){var e=this;return new Promise((function(t,i){e.disable(),e.disabled(),e.projectJson.simpleEdit=!0,e.projectJson.seSessionDetails=e.sessionDetails,e.renderVideoPPR().then((function(){t("success")})).catch((function(){i("error")}))}))},renderVideoPPR:function(){var e=this;return new Promise((function(t,i){e.renderVideo({resolve:t,reject:i})}))},cancel:function(){this.cancelCrop(),this.disable(),this.projectJson=this.snapshot.projectJson,this.sessionDetails.trimSliderStart=this.snapshot.trimSliderStart,this.sessionDetails.trimSliderEnd=this.snapshot.trimSliderEnd,this.sessionDetails.addedClips=this.snapshot.addedClips;var e=this;this.reconstructUI(!0,(function(){e.disabled()}))},disable:function(){this.enabled=!1,this.unselectAllComponents(),this.unselectAllControls(),this.primaryVideoContainer.css("z-index","0"),this.primaryVideoContainer.resizable({disabled:!0}),this.primaryVideoContainer.draggable({disabled:!0}),this.secondaryVideoContainer.css("z-index","0"),this.secondaryVideoContainer.resizable({disabled:!0}),this.secondaryVideoContainer.draggable({disabled:!0}),this.videoPlayerView.setSimpleEditMode(!1),this.videoPlayerView.$el.find(".player-border").fadeOut(),this.videoPlayerView.$el.find(".player-touch-guard").show(),r()(".tmp-body-wiz").animate({marginTop:"0px"},200,(function(){r()(".tmp-body-wiz").addClass("body-wiz").removeClass("tmp-body-wiz")})),this.askReloadConfirmation=!1,!1===this.overrideWarnOnExit&&(window.onbeforeunload=void 0)},disabled:function(){this.cropResizable.removeClass("disp-none").addClass("disp-show"),null!=this.projectJson.crop&&this.cropResizable.css({left:this.getValueForPlayer(this.projectJson.crop.x,!0)+"px",top:this.getValueForPlayer(this.projectJson.crop.y,!1)+"px",width:this.getValueForPlayer(this.projectJson.crop.w,!0)+"px",height:this.getValueForPlayer(this.projectJson.crop.h,!1)+"px"}),this.cropResizable.removeClass("disp-show").addClass("disp-none"),this.reconstructUI(),this.cropResized(!1,!1),this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.videoPlayerView.$el.find(".se-text-component, .se-image-component").draggable({disabled:!0}),this.videoPlayerView.$el.find(".se-text-component").unbind("click"),this.videoPlayerView.$el.find(".se-text-component").css({"user-select":"none",cursor:"default"}),this.videoPlayerView.$el.find(".se-crop-highlighter").css({background:"black","z-index":"200"}),this.videoPlayerView.$el.css("overflow","hidden");var e=this.cropResizable.height(),t=this.cropResizable.width(),i=this.videoPlayerView.$el.width(),n=this.videoPlayerView.$el.height(),r=i/t,o=n/e;if(r*e>n){var a=this.cropResizable.position().top,s=i/2-t*o/2-this.cropResizable.position().left;this.videoPlayerView.$el.find(".se-crop-scale").css("top",-a+"px"),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),o,o,this.cropResizable.position().left,a),this.videoPlayerView.$el.find(".se-crop-scale").css("left",s+"px")}else{a=n/2-e*r/2-this.cropResizable.position().top,s=this.cropResizable.position().left;this.videoPlayerView.$el.find(".se-crop-scale").css("left",-s+"px"),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),r,r,s,this.cropResizable.position().top),this.videoPlayerView.$el.find(".se-crop-scale").css("top",a+"px")}this.cropResizable.removeClass("disp-show").addClass("disp-none")},setProjectJson:function(e){if(this.projectJson=e,window.projectJson=this.projectJson,this.projectJson.simpleEdit=!0,null!=this.projectJson.seSessionDetails)this.sessionDetails=this.projectJson.seSessionDetails;else{this.sessionDetails.totalCreatedClips=this.projectJson.clips.length;for(var t=!1,i=0;i<this.projectJson.clips.length;i++){"webcam"==(a=this.projectJson.clips[i]).footage.type&&!0,"screenrecord"==a.footage.type&&(t=!0)}var n=-1,r=[],o=JSON.parse(JSON.stringify(this.projectJson.clips||[]));for(i=0;i<this.projectJson.clips.length;i++){(a=o[i]).properties.xposRaw=this.getValueForPlayer(a.properties.xpos,!0),a.properties.yposRaw=this.getValueForPlayer(a.properties.ypos,!1),a.properties.widthRaw=this.getValueForPlayer(a.properties.width,!0),a.properties.heightRaw=this.getValueForPlayer(a.properties.height,!1),"screenrecord"!=a.footage.type&&"webcam"!=a.footage.type||(n=-1==n?a.footage.duration:Math.min(n,a.footage.duration),r.push(a.footage)),a.footage.containsVideo&&("screenrecord"==a.footage.type||"webcam"==a.footage.type&&!t?(this.sessionDetails.primaryVideo=a.id,this.sessionDetails.totalAddedEffects=(a.effects||[]).length):"webcam"==a.footage.type&&(this.sessionDetails.secondaryVideo=a.id))}for(var i in r)r[i].duration=n}for(i=0;i<this.projectJson.clips.length;i++){var a=this.projectJson.clips[i];this.isImageComponent(a.id)&&("image"==a.footage.type?a.footage.src=this.footageUrls[Number(a.footage.id)]:a.footage.src=p.getMfImage(a.footage.image_id?a.footage.image_id:a.footage.id,a.footage.is_website?"website":"image"))}this.cropResizable.removeClass("disp-none").addClass("disp-show"),null!=this.projectJson.crop&&this.cropResizable.css({left:this.getValueForPlayer(this.projectJson.crop.x,!0)+"px",top:this.getValueForPlayer(this.projectJson.crop.y,!1)+"px",width:this.getValueForPlayer(this.projectJson.crop.w,!0)+"px",height:this.getValueForPlayer(this.projectJson.crop.h,!1)+"px"}),this.cropResizable.removeClass("disp-show").addClass("disp-none"),null==this.sessionDetails.secondaryVideo&&this.secondaryVideoContainer.hide(),this.reconstructUI(),this.cropResized(!1,!1),this.enabled||this.disabled()},mediaContainerResized:function(e){var t=e.find("video");0==t.length&&(t=e.find("img"));var i=e.width()/t.width(),n=e.height()/t.height();t.css("height",""),this.scaleElement(t,i,n)},scaleElement:function(e,t,i,n,r){e.css({"-ms-transform":"scale("+t+","+i+")","-webkit-transform":"scale("+t+","+i+")",transform:"scale("+t+","+i+")","-ms-transform-origin:":null==n?"top left":n+"px "+r+"px","-webkit-transform-origin":null==n?"top left":n+"px "+r+"px","transform-origin":null==n?"top left":n+"px "+r+"px"})},globalClick:function(e){HippoVideo&&HippoVideo.AppRegistry&&HippoVideo.AppRegistry.isDeepIntg&&("saveTextEdit"!==e.target.id&&"cancelTextEdit"!==e.target.id||r()("#"+e.target.id).is(":visible")&&r()("#"+e.target.id).click());var t=e.data.that;t.enabled&&(t.currentSelectedText,0!=t.videoPlayerView.$el.find(".se-text-editable").has(r()(e.target)).length||0!=t.videoPlayerView.$el.find(".se-text-component").has(r()(e.target)).length||r()(e.target).hasClass("se-text-component")||r()(e.target).hasClass("se-text-editable")||null==t.currentSelectedText||r()(e.target).parent().hasClass("atwho-view-ul")||(t.textEditableChanged(),t.videoPlayerView.$el.find(".se-text-editable").is(":visible")?t.closeTextEditable():0==t.$el.find(".addtext-control-detail").has(r()(e.target)).length&&0==t.videoPlayerView.$el.find(".player-controls-container").has(r()(e.target)).length&&0==r()(".sp-picker-container").has(r()(e.target)).length&&0==r()(".sp-palette-container").has(r()(e.target)).length&&t.unselectText()),0!=t.$el.has(r()(e.target)).length||0!=t.videoPlayerView.$el.has(r()(e.target)).length||t.showingColorPicker||r()(e.target).parent().hasClass("atwho-view-ul")||t.unselectAllComponents(),0==t.$el.find(".sticker-family-container").has(r()(e.target)).length&&t.$el.find(".sticker-family-all").hide(),!r()(e.target).hasClass("trim-before-pop")&&0==t.$el.find(".trim-before-pop").has(r()(e.target)).length&&t.$el.find(".trim-before-pop").is(":visible")&&t.$el.find(".trim-before-pop").fadeOut(100),!r()(e.target).hasClass("trim-after-pop")&&0==t.$el.find(".trim-after-pop").has(r()(e.target)).length&&t.$el.find(".trim-after-pop").is(":visible")&&t.$el.find(".trim-after-pop").fadeOut(100))},selectPrimaryVideo:function(){this.enabled&&(this.primaryVideoOverflowContainer.css("overflow","visible"),this.primaryVideoContainer.addClass("edit-video-selected").css("z-index","105").resizable("enable"),this.secondaryVideoContainer.removeClass("edit-video-selected").css("z-index","106").resizable("disable"),this.$el.find(".primaryvid-control-detail").show(),this.$el.find(".secondaryvid-control-detail").hide())},selectSecondaryVideo:function(){this.enabled&&(this.secondaryVideoOverflowContainer.css("overflow","visible"),this.secondaryVideoContainer.addClass("edit-video-selected").css("z-index","105").resizable("enable"),this.primaryVideoContainer.removeClass("edit-video-selected").css("z-index","105").resizable("disable"),this.$el.find(".primaryvid-control-detail").hide(),this.$el.find(".secondaryvid-control-detail").show())},makeVideoResizeableDraggable:function(){this.enabled&&(this.isPPR?l.default.trackInThirdPartyTools("video_preview_Resize_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Resize_save",{email:this.userEmail}),this.unselectAllControls(),this.userEventStart(),this.unselectAllComponents(),this.selectPrimaryVideo(),this.selectControl("resize-draggable-btn"),this.primaryVideoContainer.unbind("mousedown",this.selectPrimaryVideo).bind("mousedown",this.selectPrimaryVideo).draggable("enable"),this.secondaryVideoContainer.unbind("mousedown",this.selectSecondaryVideo).bind("mousedown",this.selectSecondaryVideo).draggable("enable"),this.$el.find(".se-resize-control-detail").show())},unselectClips:function(){this.primaryVideoContainer.unbind("mousedown",this.selectPrimaryVideo).resizable({disabled:!0}).draggable({disabled:!0}),this.secondaryVideoContainer.unbind("mousedown",this.selectSecondaryVideo).resizable({disabled:!0}).draggable({disabled:!0}),this.$el.find(".se-resize-control-detail, .primaryvid-control-detail, .secondaryvid-control-detail").hide(),this.primaryVideoOverflowContainer.css("overflow","hidden"),this.secondaryVideoOverflowContainer.css("overflow","hidden"),this.primaryVideoContainer.css("z-index","100"),this.secondaryVideoContainer.css("z-index","101"),r()(".edit-video-selected").removeClass("edit-video-selected")},userEventStart:function(){this.videoPlayerView.$el.find(".player-border").fadeIn()},userEventStop:function(){this.videoPlayerView.$el.find(".player-border").fadeOut(),this.updateProjectJson()},playerResized:function(e){if(null!=this.projectJson&&(this.enabled||(this.videoPlayerView.$el.find(".se-crop-scale").css({top:"0px",left:"0px"}),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),1,1,0,0)),this.cropResizable.removeClass("disp-none").addClass("disp-show"),null!=this.projectJson.crop&&this.cropResizable.css({left:this.getValueForPlayer(this.projectJson.crop.x,!0)+"px",top:this.getValueForPlayer(this.projectJson.crop.y,!1)+"px",width:this.getValueForPlayer(this.projectJson.crop.w,!0)+"px",height:this.getValueForPlayer(this.projectJson.crop.h,!1)+"px"}),this.cropResizable.removeClass("disp-show").addClass("disp-none"),this.reconstructUI(),this.cropResized(!1,!1),!this.enabled)){this.videoPlayerView.$el.find(".se-crop-resizable").removeClass("disp-none").addClass("disp-show");var t=this.cropResizable.height(),i=this.cropResizable.width(),n=this.videoPlayerView.$el.width(),r=this.videoPlayerView.$el.height(),o=n/i,a=r/t;if(o*t>r){var s=this.cropResizable.position().top,l=n/2-i*a/2-this.cropResizable.position().left;this.videoPlayerView.$el.find(".se-crop-scale").css("top",-s+"px"),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),a,a,this.cropResizable.position().left,s),this.videoPlayerView.$el.find(".se-crop-scale").css("left",l+"px")}else{s=r/2-t*o/2-this.cropResizable.position().top,l=this.cropResizable.position().left;this.videoPlayerView.$el.find(".se-crop-scale").css("left",-l+"px"),this.scaleElement(this.videoPlayerView.$el.find(".se-crop-scale"),o,o,l,this.cropResizable.position().top),this.videoPlayerView.$el.find(".se-crop-scale").css("top",s+"px")}this.videoPlayerView.$el.find(".se-crop-resizable").removeClass("disp-show").addClass("disp-none"),this.videoPlayerView.resizeFitThumnbail()}},updateProjectJson:function(){if(this.enabled){var e=l.default.map(this.sessionDetails.trimSliderStart,0,1e3,0,this.videoPlayerView.mediaPlayer.duration),t=l.default.map(this.sessionDetails.trimSliderEnd,0,1e3,0,this.videoPlayerView.mediaPlayer.duration);if(l.default.isNumber(e)&&l.default.isNumber(t))for(var i=0;i<this.projectJson.clips.length;i++){var n=this.projectJson.clips[i];if(this.updateClipPropertiesForProjectJSON(n,e,t),n.id===this.sessionDetails.primaryVideo)for(var o=n.effects||[],a=0;a<o.length;a++)this.updateClipPropertiesForProjectJSON(o[a],e,t)}var s=this.cropResizable.is(":visible");this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.projectJson.crop={x:this.getValueForProject(this.cropResizable.position().left,!0),y:this.getValueForProject(this.cropResizable.position().top,!1),w:Math.min(this.getValueForProject(this.cropResizable.width(),!0),this.projectJson.canvasWidth),h:Math.min(this.getValueForProject(this.cropResizable.height(),!1),this.projectJson.canvasHeight)},s||this.cropResizable.removeClass("disp-show").addClass("disp-none");for(i=0;i<this.projectJson.clips.length;i++){o=(n=this.projectJson.clips[i]).effects||[];null!=this.sessionDetails.primaryVideo&&n.id==this.sessionDetails.primaryVideo&&(n.properties.widthRaw=this.primaryVideoContainer.width(),n.properties.heightRaw=this.primaryVideoContainer.height(),n.properties.xposRaw=this.primaryVideoContainer.position().left,n.properties.yposRaw=this.primaryVideoContainer.position().top,n.properties.width=this.getValueForProject(n.properties.widthRaw,!0),n.properties.height=this.getValueForProject(n.properties.heightRaw,!1),n.properties.xpos=this.getValueForProject(n.properties.xposRaw,!0),n.properties.ypos=this.getValueForProject(n.properties.yposRaw,!1)),null!=this.sessionDetails.secondaryVideo&&n.id==this.sessionDetails.secondaryVideo&&(n.properties.widthRaw=this.secondaryVideoContainer.width(),n.properties.heightRaw=this.secondaryVideoContainer.height(),n.properties.xposRaw=this.secondaryVideoContainer.position().left,n.properties.yposRaw=this.secondaryVideoContainer.position().top,n.properties.width=this.getValueForProject(n.properties.widthRaw,!0),n.properties.height=this.getValueForProject(n.properties.heightRaw,!1),n.properties.xpos=this.getValueForProject(n.properties.xposRaw,!0),n.properties.ypos=this.getValueForProject(n.properties.yposRaw,!1)),-1!==this.sessionDetails.addedClips.indexOf(n.id)&&n.footage.containsImage&&(r()("#se-component-"+n.id).length>0?(n.properties.xposRaw=r()("#se-component-"+n.id).position().left,n.properties.yposRaw=r()("#se-component-"+n.id).position().top,n.properties.widthRaw=r()("#se-component-"+n.id).width(),n.properties.heightRaw=r()("#se-component-"+n.id).height(),n.properties.xpos=this.getValueForProject(n.properties.xposRaw,!0),n.properties.ypos=this.getValueForProject(n.properties.yposRaw,!1),n.properties.width=this.getValueForProject(n.properties.widthRaw,!0),n.properties.height=this.getValueForProject(n.properties.heightRaw,!1)):console.warn("not drawn#se-component-"+n.id)),n.footage.containsText&&(null==n.properties.fontSizeProject&&(n.properties.fontSizeProject=this.getValueForProject(n.properties.fontSize,!0)),n.properties.boundingBoxRaw&&(n.properties.boundingBox=this.getBoundingBoxForProject(n.properties.boundingBoxRaw)))}}},updateClipPropertiesForProjectJSON:function(e,t,i){null!=e.startFrom&&null!=e.endAt?(e.position=e.startFrom-t,0==e.position&&(e.position=.001),e.position>this.videoPlayerView.mediaPlayer.duration-i?e.deleted=!0:e.deleted=!1,e.end=e.endAt-e.startFrom,e.endAt>this.videoPlayerView.mediaPlayer.duration-i&&(e.end=this.videoPlayerView.mediaPlayer.duration-i-e.startFrom),e.end=Math.max(.02,e.end),e.start=0):(e.start=t,e.end=(e.footage?e.footage.duration:e.duration)-i,e.end<e.start&&(e.end=e.start))},reconstructUI:function(e,t){if(this.projectJson){var i=this.videoPlayerView.$el.width()/this.projectJson.canvasWidth,n=this.videoPlayerView.$el.height()/this.projectJson.canvasHeight,o=this,a=!1,s=this.videoPlayerView.$el.find(".se-components-container");s.empty();var c=function(){o.resizeHandler(),t&&!a&&(a=!0,t())};void 0===this.sessionDetails.primaryVideo&&void 0===this.sessionDetails.secondaryVideo&&this.updateProjectJson();var d=l.default.map(this.sessionDetails.trimSliderStart,0,1e3,0,this.videoPlayerView.mediaPlayer.duration),u=l.default.map(this.sessionDetails.trimSliderEnd,0,1e3,0,this.videoPlayerView.mediaPlayer.duration);l.default.isNumber(d)&&l.default.isNumber(u)&&this.videoPlayerView.trim(d,u,!0);for(var p=JSON.parse(JSON.stringify(this.projectJson.clips||[])),h=0;h<this.projectJson.clips.length;h++){var f=p[h];if(null!=this.sessionDetails.primaryVideo&&f.id==this.sessionDetails.primaryVideo&&this.primaryVideoContainer.animate({width:f.properties.width*i+"px",height:f.properties.height*n+"px",left:f.properties.xpos*i+"px",top:f.properties.ypos*n+"px"},e?200:10,c),null!=this.sessionDetails.secondaryVideo&&f.id==this.sessionDetails.secondaryVideo&&this.secondaryVideoContainer.animate({width:f.properties.width*i+"px",height:f.properties.height*n+"px",left:f.properties.xpos*i+"px",top:f.properties.ypos*n+"px"},e?200:10,c),-1!=this.sessionDetails.addedClips.indexOf(f.id)){o=this;if(f.footage.containsText){(g=document.createElement("div")).id="se-component-"+f.id,r()(g).addClass("se-text-component"),f.properties.boundingBox?(f.properties.boundingBoxRaw={x:f.properties.boundingBox.x*i,y:f.properties.boundingBox.y*n,w:f.properties.boundingBox.w*i,h:f.properties.boundingBox.h*n},r()(g).css({left:f.properties.boundingBoxRaw.x+"px",top:f.properties.boundingBoxRaw.y+"px",width:f.properties.boundingBoxRaw.w+"px",height:f.properties.boundingBoxRaw.h+"px"})):r()(g).css({left:f.properties.xpos*i+"px",top:f.properties.ypos*n+"px"}),this.setTextDraggableContainerSize(g,f,!1);var m=document.createElement("div");r()(m).addClass("se-text-container"),this.checkAndPopulateMf(f.properties.text),this.newlineTextToHtml(m,f),r()(g).append(m),r()(g).append('<span class="se-text-delete">x</span>'),r()(g).find(".se-text-delete").bind("click",this.deleteText),r()(g).draggable({scroll:!1,opacity:.9,snap:".hippo-video-player, .se-crop-highlighter",snapMode:"both",snapTolerance:10,start:function(e){o.selectText(e.target.id.split("se-component-")[1]),o.userEventStart()},stop:function(){o.textBoxResized(),o.textPropertyChanged(),o.userEventStop()}}),f.footage.calloutId&&r()(g).draggable("option","containment","#se-component-"+f.footage.calloutId),r()(g).click((function(e){if(!((new Date).getTime()-o.lastTextResizeTime<100)){var t=o.currentSelectedText==e.currentTarget.id.split("se-component-")[1];o.selectText(e.currentTarget.id.split("se-component-")[1]),t&&o.showTextEditable(e.currentTarget.id.split("se-component-")[1])}})),r()(g).hover((function(e){o.currentSelectedText!=e.currentTarget.id.split("se-component-")[1]&&(r()(".se-components-hover").removeClass("se-components-hover"),r()(this).addClass("se-components-hover"))}),(function(e){o.currentSelectedText!=e.currentTarget.id.split("se-component-")[1]&&r()(this).removeClass("se-components-hover")})),s.append(g),f.id==this.currentSelectedText&&this.selectText(f.id,!0),this.setLineHeight(f)}else if(f.footage.containsImage){var g=document.createElement("div"),v=document.createElement("img");v.crossOrigin="Anonymous",g.id="se-component-"+f.id,r()(g).addClass("se-image-component"),f.footage.id<=-1e4?v.src="https://s3.amazonaws.com/hippolms-wiz-static/callouts/c"+(-f.footage.id-1e4)+".png?v=2":this.isImageComponent(f.id)?v.src=f.footage.src:v.src="https://s3.amazonaws.com/hippolms-wiz-static/stickers/s"+(-f.footage.id-100)+".png?v=2",r()(g).css({left:f.properties.xpos*i+"px",top:f.properties.ypos*n+"px",width:f.properties.width*i+"px",height:f.properties.height*n+"px",opacity:f.properties.opacity}),r()(g).draggable({scroll:!1,opacity:.9,snap:".hippo-video-player, .se-crop-highlighter",snapMode:"both",snapTolerance:10,drag:function(e){var t=e.target.id.split("se-component-")[1];null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)&&o.calloutDragged()},start:function(e){var t=e.target.id.split("se-component-")[1];if(null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)){o.selectCallout(t);var i=o.getClipOf(t),n=o.getClipOf(i.footage.textId);n&&n.properties.boundingBoxRaw&&(o.calloutTextBoxSpread={x:l.default.map(n.properties.boundingBoxRaw.x,i.properties.xposRaw,i.properties.xposRaw+i.properties.widthRaw,0,1),y:l.default.map(n.properties.boundingBoxRaw.y,i.properties.yposRaw,i.properties.yposRaw+i.properties.heightRaw,0,1),w:n.properties.boundingBoxRaw.w/i.properties.widthRaw})}else o.selectSticker(t);o.userEventStart()},stop:function(e){var t=e.target.id.split("se-component-")[1];null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)?(o.calloutDragged(),o.calloutPropertyChanged()):o.stickerPropertyChanged(),o.userEventStop(),o.isCalloutImage(t)?o.unselectCallout():o.unselectSticker()}}),r()(g).resizable({handles:"n, e, w, s, ne, nw, se, sw",aspectRatio:f.properties.lockAspectRatio,resize:function(e,t){o.mediaContainerResized(r()(e.target));var i=e.target.id.split("se-component-")[1];null==i&&(i=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(i)&&o.calloutResized(i)},start:function(e){var t=e.target.id.split("se-component-")[1];if(null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)){o.selectCallout(t);var i=o.getClipOf(t),n=o.getClipOf(i.footage.textId);n&&n.properties.boundingBoxRaw&&(o.calloutTextBoxSpread={x:l.default.map(n.properties.boundingBoxRaw.x,i.properties.xposRaw,i.properties.xposRaw+i.properties.widthRaw,0,1),y:l.default.map(n.properties.boundingBoxRaw.y,i.properties.yposRaw,i.properties.yposRaw+i.properties.heightRaw,0,1),w:n.properties.boundingBoxRaw.w/i.properties.widthRaw})}else o.selectSticker(t);o.userEventStart()},stop:function(e){var t=e.target.id.split("se-component-")[1];null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)?(o.calloutResized(t),o.calloutPropertyChanged()):o.stickerPropertyChanged(),o.userEventStop(),o.setAdaptiveBorderForTarget(r()(e.target))}}),this.currentSelectedSticker!=f.id&&this.currentSelectedCallout!=f.id&&r()(g).resizable({disabled:!0}),r()(g).find(".ui-resizable-handle").css("display",""),r()(g).find(".ui-resizable-handle").removeClass("ui-icon ui-icon-gripsmall-diagonal-se"),r()(g).click((function(e){var t=e.target.id.split("se-component-")[1];null==t&&(t=r()(e.target).parent()[0].id.split("se-component-")[1]),o.isCalloutImage(t)?o.selectCallout(t):o.selectSticker(t)})),r()(g).hover((function(){r()(".se-components-hover").removeClass("se-components-hover"),r()(this).addClass("se-components-hover")}),(function(){r()(this).removeClass("se-components-hover")})),r()(g).append(v),s.append(g),this.currentSelectedSticker!=f.id&&this.currentSelectedCallout!=f.id||this.setAdaptiveBorderForTarget(r()("#se-component-"+f.id)),o.mediaContainerResized(r()(g))}}}this.initializeAtwho(),this.applyEffects(),this.resizeHandler(),this.playerTimeUpdate()}},checkAndPopulateMf:function(e){if(this.isPersonalizationEnabled)for(var t,i=0,n=e.indexOf("${",0);-1!=n&&-1!=i;){-1!=(i=e.indexOf("}",n))&&(t=e.substring(n+2,i),this.mfValues.includes("{"+t+"}")||(this.mfValues.push("{"+t+"}"),this.$el.find("#seMfSelector").append(r()("<option>"+t+"</option>"))),n=e.indexOf("${",i))}},applyEffects:function(){var e,t=this.getClipOf(this.sessionDetails.primaryVideo),i=this;if(t){var n=t.effects||[],o=this.videoPlayerView.$el.find(".se-effects-components-container");o.empty();for(var a=0;a<n.length;a++){(e=n[a]).xposRaw=this.getValueFromClipPercent(e.xpos,t,!0),e.yposRaw=this.getValueFromClipPercent(e.ypos,t,!1),e.widthRaw=this.getValueFromClipPercent(e.width,t,!0),e.heightRaw=this.getValueFromClipPercent(e.height,t,!1);var s=document.createElement("div");s.id="se-effects-"+e.id,s.className="se-effects",s.style.left=e.xposRaw+"px",s.style.top=e.yposRaw+"px",s.style.width=e.widthRaw+"px",s.style.height=e.heightRaw+"px",r()(s).draggable({scroll:!1,opacity:.9,snap:".hippo-video-player, .se-crop-highlighter",snapMode:"both",snapTolerance:10,containment:".primary-video-container",start:function(e){i.selectBlur(e.target.id.split("se-effects-")[1]),i.userEventStart()},stop:function(e){i.blurAreaChanged(),i.userEventStop()}}).resizable({handles:"n, e, w, s, ne, nw, se, sw",aspectRatio:e.lockAspectRatio,containment:".primary-video-container",start:function(e){var t=e.target.id.split("se-effects-")[1];t||(t=r()(e.target).parent()[0].id.split("se-effects-")[1]),i.selectBlur(t),i.userEventStart()},stop:function(e){i.blurAreaChanged(),i.userEventStop(),i.setAdaptiveBorderForTarget(r()(e.target))}}).mousedown((function(e){i.selectBlur(e.target.id.split("se-effects-")[1]),e.stopPropagation()})),this.currentSelectedBlur!=e.id&&r()(s).resizable({disabled:!0}),r()(s).find(".ui-resizable-handle").css("display",""),r()(s).find(".ui-resizable-handle").removeClass("ui-icon ui-icon-gripsmall-diagonal-se"),o.append(s)}}this.drawBlurLayer()},getValueForPlayer:function(e,t){var i=this.videoPlayerView.$el.width(),n=this.videoPlayerView.$el.height(),r=this.projectJson.canvasWidth,o=this.projectJson.canvasHeight;return t?l.default.roundNumber(e*(i/r),3):l.default.roundNumber(e*(n/o),3)},getValueForProject:function(e,t){var i=this.videoPlayerView.$el.width(),n=this.videoPlayerView.$el.height(),r=this.projectJson.canvasWidth,o=this.projectJson.canvasHeight;return t?l.default.roundNumber(e*(r/i),3):l.default.roundNumber(e*(o/n),3)},getBoundingBoxForProject:function(e){var t={x:this.getValueForProject(e.x,!0),y:this.getValueForProject(e.y,!1),w:this.getValueForProject(e.w,!0),h:this.getValueForProject(e.h,!1)};return null!=e.topPadding&&(t.topPadding=this.getValueForProject(e.topPadding,!1)),t},getValueForClip:function(e,t,i){var n=t.properties.widthRaw,r=t.properties.heightRaw;return i?l.default.roundNumber(l.default.map(e,0,n,0,1),5):l.default.roundNumber(l.default.map(e,0,r,0,1),5)},getValueFromClipPercent:function(e,t,i){var n=t.properties.widthRaw,r=t.properties.heightRaw;return i?l.default.roundNumber(e*n,5):l.default.roundNumber(e*r,5)},onBoardUser:function(){var e=this;this.unselectAllControls(),this.$el.find(".default-control-detail").show(),this.infoText.html("Resize and Move videos.."),this.secondaryVideoOverflowContainer.css("overflow","visible"),this.secondaryVideoContainer.find(".ui-resizable-handle").hide(),r.a.when(this.secondaryVideoContainer.find(".ui-resizable-handle").delay(200).fadeIn(300)).done((function(){r.a.when(e.secondaryVideoContainer.find(".ui-resizable-handle").fadeOut(300)).done((function(){e.secondaryVideoOverflowContainer.css("overflow","hidden"),e.primaryVideoOverflowContainer.css("overflow","visible"),e.primaryVideoContainer.find(".ui-resizable-handle").hide(),r.a.when(e.primaryVideoContainer.find(".ui-resizable-handle").delay(500).fadeIn(300)).done((function(){r.a.when(e.primaryVideoContainer.find(".ui-resizable-handle").fadeOut(300)).done((function(){e.secondaryVideoContainer.find(".ui-resizable-handle").css("display",""),e.primaryVideoContainer.find(".ui-resizable-handle").css("display",""),e.unselectClips(),e.onBoardControls()}))}))}))}))},onBoardControls:function(){var e=this;e.highlightControl(".trim-btn","Trim Video to change start and end points..",(function(){e.highlightControl(".crop-btn","Crop video..",(function(){e.highlightControl(".add-text-btn","Add text to video.",(function(){e.highlightControl(".add-callouts-btn","Add callouts to video",(function(){e.highlightControl(".add-stickers-btn","Add your favourite stickers",(function(){e.infoText.html("Lets go!!"),setTimeout((function(){e.infoText.html(" ")}),1500)}))}))}))}))}))},highlightControl:function(e,t,i){var n=this;n.infoText.delay(300).html(t),n.$el.find(e).animate({opacity:.5},200,(function(){n.$el.find(e).delay(700).animate({opacity:1},200,(function(){i&&i()}))}))},unselectAllControls:function(){this.$el.find(".se-control-detail").hide(),this.unselectCrop(),this.unselectClips(),this.videoPlayerView.$el.find(".components-marker-container").empty()},unselectAllComponents:function(){this.unselectText(),this.unselectSticker(),this.unselectCallout(),this.unselectBlur(),this.primaryVideoOverflowContainer.css("overflow","hidden"),this.secondaryVideoOverflowContainer.css("overflow","hidden")},selectTrim:function(e){null!=e&&(this.askReloadConfirmation=!0),this.isPPR?l.default.trackInThirdPartyTools("video_preview_Trim_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Trim_save",{email:this.userEmail}),this.unselectAllControls(),this.$el.find(".trim-slider").slider("values",[this.sessionDetails.trimSliderStart,1e3-this.sessionDetails.trimSliderEnd]),this.$el.find(".trim-control-detail").fadeIn(100),this.$el.find(".trim-preview-container, .preview-trim-arrow").hide(),this.updateTrimInput(),this.selectControl("trim-btn"),isFinite(this.videoPlayerView.mediaPlayer.duration)||this.$el.find(".trim-before-container, .trim-after-container").hide()},trimInputButtonClicked:function(e){var t=e.data.that,i=e.target,n=l.default.map(t.sessionDetails.trimSliderStart,0,1e3,0,t.videoPlayerView.mediaPlayer.duration),o=t.videoPlayerView.mediaPlayer.duration-l.default.map(t.sessionDetails.trimSliderEnd,0,1e3,0,t.videoPlayerView.mediaPlayer.duration);r.a.contains(t.$el.find(".trim-before-container")[0],i)?r()(i).hasClass("trim-input-btn-minus")?n=Math.max(n-1,0):r()(i).hasClass("trim-input-btn-plus")&&(n=Math.min(n+1,t.videoPlayerView.mediaPlayer.duration)):r.a.contains(t.$el.find(".trim-after-container")[0],i)&&(r()(i).hasClass("trim-input-btn-minus")?o=Math.max(o-1,0):r()(i).hasClass("trim-input-btn-plus")&&(o=Math.min(o+1,t.videoPlayerView.mediaPlayer.duration))),Math.floor(n)>=Math.floor(o)||(t.$el.find(".trim-before-input").val(l.default.strToTime(n)),t.$el.find(".trim-after-input").val(l.default.strToTime(o)),t.trimInputChanged())},trimInputTyped:function(e){var t=e.data.that,i=r()(e.target),n=l.default.map(t.sessionDetails.trimSliderStart,0,1e3,0,t.videoPlayerView.mediaPlayer.duration),o=t.videoPlayerView.mediaPlayer.duration-l.default.map(t.sessionDetails.trimSliderEnd,0,1e3,0,t.videoPlayerView.mediaPlayer.duration);if(38==e.keyCode||40==e.keyCode){if(e.preventDefault(),38==e.keyCode?i.hasClass("trim-before-input")?n=Math.min(n+1,t.videoPlayerView.mediaPlayer.duration):i.hasClass("trim-after-input")&&(o=Math.min(o+1,t.videoPlayerView.mediaPlayer.duration)):40==e.keyCode&&(i.hasClass("trim-before-input")?n=Math.max(n-1,0):i.hasClass("trim-after-input")&&(o=Math.max(o-1,0))),Math.floor(n)>=Math.floor(o))return;t.$el.find(".trim-before-input").val(l.default.strToTime(n)),t.$el.find(".trim-after-input").val(l.default.strToTime(o)),t.trimInputChanged()}else{t=e.data.that;clearTimeout(t.trimInputTypedTimeout),t.trimInputTypedTimeout=setTimeout((function(){t.trimInputChanged()}),500)}},trimInputChanged:function(){var e=l.default.timeToIntWithMillisecond(this.$el.find(".trim-before-input").val()),t=l.default.timeToIntWithMillisecond(this.$el.find(".trim-after-input").val()),i=l.default.map(e,0,this.videoPlayerView.mediaPlayer.duration,0,1e3),n=l.default.map(t,0,this.videoPlayerView.mediaPlayer.duration,0,1e3);parseInt(i)>=parseInt(n)||(this.$el.find(".trim-slider").slider("values",[i,n]),this.$el.find(".trim-control-detail input.sliderValue[data-index=0]").val(i),this.$el.find(".trim-control-detail input.sliderValue[data-index=1]").val(1e3-n)),this.trimChanged()},updateTrimInput:function(){var e=l.default.map(this.sessionDetails.trimSliderStart,0,1e3,0,this.videoPlayerView.mediaPlayer.duration),t=this.videoPlayerView.mediaPlayer.duration-l.default.map(this.sessionDetails.trimSliderEnd,0,1e3,0,this.videoPlayerView.mediaPlayer.duration);if(!isFinite(e)||!isFinite(t))return this.$el.find(".trim-before-time").html("-"),void this.$el.find(".trim-after-time").html("-");e=parseFloat(e).toFixed(3),t=parseFloat(t).toFixed(3),this.$el.find(".trim-before-time").html(l.default.strToTime(e)),this.$el.find(".trim-after-time").html(l.default.strToTime(t)),this.$el.find(".trim-before-input").val(l.default.strToTime(e)),this.$el.find(".trim-after-input").val(l.default.strToTime(t)),this.$el.find(".ruler-dynamic").is(":visible")||(this.drawDynamicRuler(),this.$el.find(".ruler-static").hide(),this.$el.find(".ruler-dynamic").show())},drawDynamicRuler:function(){for(var e=this.$el.find(".ruler-dynamic")[0].width,t=this.$el.find(".ruler-dynamic")[0].height,i=e/this.videoPlayerView.mediaPlayer.duration,n=i,r=2;n<15;r++)n=i*r;var o,a=this.$el.find(".ruler-dynamic")[0],s=a.getContext("2d");s.clearRect(0,0,a.width,a.height),s.lineWidth=1;for(r=0;r<e;r+=n){o=r,s.beginPath(),s.moveTo(r,0),s.lineTo(r,t/2);for(var l=0;l<4;l++)o+=n/5,s.moveTo(o,0),s.lineTo(o,t/3);s.stroke(),s.closePath()}},showTrimBeforePop:function(e){e.data.that.$el.find(".trim-before-pop").fadeIn(100)},showTrimAfterPop:function(e){e.data.that.$el.find(".trim-after-pop").fadeIn(100)},trimSliding:function(e){if(this.$el.find(".trim-preview-video")[0].src.length<=0&&(this.$el.find(".trim-preview-video")[0].src=this.videoPlayerView.mediaPlayer.currentSrc),e.handle==this.$el.find(".trim-slider .ui-slider-handle")[0]){this.$el.find(".trim-before-container").addClass("trim-hovered");var t=l.default.map(this.sessionDetails.trimSliderStart,0,1e3,0,this.videoPlayerView.mediaPlayer.duration);this.$el.find(".trim-preview-video")[0].currentTime=t,this.$el.find(".trim-preview-container").css("left",r()(this.$el.find(".trim-slider .ui-slider-handle")[0]).position().left-r()(".trim-preview-container").width()/2+"px"),this.$el.find(".preview-trim-arrow").css("left",r()(this.$el.find(".trim-slider .ui-slider-handle")[0]).position().left)}else{this.$el.find(".trim-after-container").addClass("trim-hovered");var i=l.default.map(this.sessionDetails.trimSliderEnd,0,1e3,0,this.videoPlayerView.mediaPlayer.duration);this.$el.find(".trim-preview-video")[0].currentTime=this.videoPlayerView.mediaPlayer.duration-i,this.$el.find(".trim-preview-container").css("left",r()(this.$el.find(".trim-slider .ui-slider-handle")[1]).position().left-+r()(".trim-preview-container").width()/2+"px"),this.$el.find(".preview-trim-arrow").css("left",r()(this.$el.find(".trim-slider .ui-slider-handle")[1]).position().left)}this.$el.find(".trim-preview-container, .preview-trim-arrow").show(),clearTimeout(this.trimFadeoutTimeout);var n=this;this.trimFadeoutTimeout=setTimeout((function(){n.$el.find(".trim-preview-container, .preview-trim-arrow").fadeOut(200)}),2e3)},trimChanged:function(){this.trimLeadGenerated=!0,this.sessionDetails.trimSliderStart=this.$el.find(".trim-control-detail input.sliderValue[data-index=0]").val(),this.sessionDetails.trimSliderEnd=this.$el.find(".trim-control-detail input.sliderValue[data-index=1]").val(),this.updateTrimInput(),this.updateProjectJson(),this.reconstructUI()},disableTrim:function(){r()(".trim-btn").addClass("disabled")},selectCrop:function(){this.askReloadConfirmation=!0,this.isPPR?l.default.trackInThirdPartyTools("video_preview_Crop_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Crop_save",{email:this.userEmail}),this.unselectAllControls(),this.unselectAllComponents(),this.$el.find(".crop-control-detail").fadeIn(100),this.cropResizable.resizable("enable"),this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.selectControl("crop-btn")},cropResized:function(e,t){var i=this.cropResizable.is(":visible");if(this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.videoPlayerView.$el.find(".se-crop-highlighter").show(),this.videoPlayerView.$el.find(".se-crop-highlighter-right").css("left",this.cropResizable.position().left+this.cropResizable.width()+"px"),this.videoPlayerView.$el.find(".se-crop-highlighter-left").css("right",this.videoPlayerView.$el.width()-this.cropResizable.position().left+"px"),this.videoPlayerView.$el.find(".se-crop-highlighter-bottom").css({top:this.cropResizable.position().top+this.cropResizable.height()+"px",width:this.cropResizable.width()+2+"px",left:this.cropResizable.position().left-1+"px"}),this.videoPlayerView.$el.find(".se-crop-highlighter-top").css({bottom:this.videoPlayerView.$el.height()-this.cropResizable.position().top+"px",width:this.cropResizable.width()+2+"px",left:this.cropResizable.position().left-1+"px"}),null!=this.projectJson&&(null==t&&r()(".reposition-webcam").is(":checked")||1==t)){var n=this.webcamSnappedLayoutOnCrop();this.secondaryVideoContainer.css({left:n.x+"px",top:n.y+"px"})}null!=this.projectJson&&e&&this.updateProjectJson(),0==i&&this.cropResizable.removeClass("disp-show").addClass("disp-none")},cropStopped:function(){this.cropResizable.position().left<0&&this.cropResizable.css("left","0"),this.cropResizable.position().top<0&&this.cropResizable.css("top","0"),this.cropResizable.position().left+this.cropResizable.width()>this.videoPlayerView.$el.width()&&this.cropResizable.css("width",this.videoPlayerView.$el.width()-this.cropResizable.position().left+"px"),this.cropResizable.position().top+this.cropResizable.height()>this.videoPlayerView.$el.height()&&this.cropResizable.css("height",this.videoPlayerView.$el.height()-this.cropResizable.position().top+"px"),this.cropResized(!0)},applyCrop:function(){this.unselectCrop(),this.$el.find(".default-control-detail").show()},resetCrop:function(){this.cropResizable.css({left:"0",top:"0",width:"100%",height:"100%"}),this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.cropResized(!0),this.unselectCrop(),this.$el.find(".default-control-detail").show()},cancelCrop:function(){this.cropResizable.css({left:this.snapshot.crop.x+"px",top:this.snapshot.crop.y+"px",width:this.snapshot.crop.w+"px",height:this.snapshot.crop.h+"px"}),this.cropResizable.removeClass("disp-none").addClass("disp-show"),this.cropResized(!0,!1),this.unselectCrop(),this.$el.find(".default-control-detail").show()},unselectCrop:function(){this.cropResizable.resizable({disabled:!0}),this.cropResizable.removeClass("disp-show").addClass("disp-none"),this.$el.find(".crop-control-detail").hide()},disableCrop:function(){r()(".crop-btn").addClass("disabled")},handleMfChange:function(e){var t=e.data.that,i=t.$el.find("#seMfSelector").find(":selected").val();if("Merge Fields"!==i){if(t.mfValues.includes("{"+i+"}")){if(t.currentSelectedText){var n=t.getClipOf(t.currentSelectedText);n?(n.properties.textUnwrapped!=this.defaultTextAreaValue?n.properties.textUnwrapped+=" ${"+i+"} ":n.properties.textUnwrapped=" ${"+i+"} ",t.showTextEditable(n.id)):t.addEnteredText("${"+i+"} ")}else t.addEnteredText("${"+i+"} ");t.$el.find("#seMfSelector").val("Merge Fields").trigger("change")}else t.mfValues.push("{"+i+"}"),t.$el.find("#seMfSelector").append(r()("<option selected>"+i+"</option>")).trigger("change"),r()("#select2-seMfSelector-results").find(".select2-results__option--highlighted").remove(),t.initializeAtwho();l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA122,{assetId:this.assetId,email:this.userEmail})}},initializeAtwho:function(){this.isPersonalizationEnabled&&r()("#seTextEditable").atwho({at:"$",data:this.mfValues,limit:this.mfValues.length})},selectAddText:function(){this.askReloadConfirmation=!0,l.default.trackInThirdPartyTools("video_preview_Text_save",{email:this.userEmail}),this.unselectAllControls(),this.$el.find(".addtext-control-detail").fadeIn(100),this.showMarkers("text"),this.selectControl("add-text-btn"),this.isTextClipExist()||this.$el.find(".addtext-control-detail").find("#addTextLink").click()},isTextClipExist:function(){if(this.projectJson&&this.projectJson.clips)for(var e=0;e<this.projectJson.clips.length;e++)if("text"==this.projectJson.clips[e].footage.type)return!0;return!1},addEnteredText:function(e){r()(".addimage-control-detail").css("margin","0px"),(!e||e instanceof r.a.Event)&&(e=this.defaultTextAreaValue);var t=this.getMaxDuration(),i=this.sessionDetails.totalCreatedClips;this.projectJson.trackNames.push("Text - "+e.substring(0,10));var n={containsAudio:!1,containsVideo:!1,containsText:!0,duration:t,type:"text"},o=this.$el.find(".se-font-selector").val(),a=this.$el.find(".se-fontsize-selector").val();null==a&&(a=40);var s=this.$el.find(".se-bold-toggle").is(":checked"),c=this.$el.find(".se-italic-toggle").is(":checked"),d=this;this.getFont(o,s,c,(function(s){var l=d.getMetrics(e,a,s),c={w:l.actualWidth+Math.min(100,Math.max(20,l.actualWidth/10)),h:l.fontHeight+Math.min(100,Math.max(20,l.fontHeight/10))};c.x=d.videoPlayerView.$el.find(".se-crop-highlighter-left").width(),c.x+=(d.videoPlayerView.$el.find(".se-crop-highlighter-right").position().left-d.videoPlayerView.$el.find(".se-crop-highlighter-left").width()-c.w)/2,c.y=d.videoPlayerView.$el.find(".se-crop-highlighter-top").height(),c.y+=(d.videoPlayerView.$el.find(".se-crop-highlighter-bottom").position().top-d.videoPlayerView.$el.find(".se-crop-highlighter-top").height()-c.h)/2;var u={color:"#000000",font:o,fontSize:a,fontSizeProject:d.getValueForProject(a,!0),fadein:0,fadeout:0,opacity:1,text:e,textUnwrapped:e,textAlign:"center",xposRaw:c.x,yposRaw:c.y,xpos:d.getValueForProject(c.x,!0),ypos:d.getValueForProject(c.y,!1),boundingBoxRaw:c,boundingBox:d.getBoundingBoxForProject(c)},p=Math.max(d.videoPlayerView.getCurrentTime(),.001);d.getLuminanceForClip(u.boundingBoxRaw.x,u.boundingBoxRaw.y,u.boundingBoxRaw.w,u.boundingBoxRaw.h)<128&&(u.color="#FFFFFF");var h={deleted:!1,end:3,footage:n,id:i,position:Math.max(p-d.videoPlayerView.trimStart,.001),properties:u,start:0,track:d.projectJson.totalVideoTracks+1,startFrom:p,endAt:Math.min(d.videoPlayerView.getCurrentTime()+3,t)};d.projectJson.totalVideoTracks++,d.projectJson.clips.push(h),d.sessionDetails.addedClips.push(h.id),d.reconstructUI(),d.currentSelectedText=i,d.videoPlayerView.$el.find(".se-text-editable").val(h.properties.text),d.selectText(i),d.sessionDetails.totalCreatedClips++,d.$el.find(".addtext-control-detail .se-color-choose").spectrum("set",d.brand_font_color||h.properties.color),d.$el.find(".addtext-control-detail .color-picker .sp-replacer .text-color-picker").css("color",h.properties.color),d.textPropertyChanged(!0),r()("#se-component-"+i).click()})),l.default.trackInThirdPartyTools("Add text clicked")},getLuminanceForClip:function(e,t,i,n){if(null==e||null==t||null==i||null==n)return null;var r=this.videoPlayerView.$el.find(".primary-video")[0],o=document.createElement("canvas"),a=this.videoPlayerView.$el.width(),s=this.videoPlayerView.$el.height();o.width=a,o.height=s;var l=o.getContext("2d");l.clearRect(0,0,a,s),l.rect(0,0,a,s),l.globalAlpha=1,l.drawImage(r,0,0,a,s);for(var c=l.getImageData(e,t,i,n),d=c.data.length/4,u=0,p=0,h=0,f=0;f<d;f++)u+=c.data[4*f+0],p+=c.data[4*f+1],h+=c.data[4*f+2];return.2126*(u/=d)+.7152*(p/=d)+.0722*(h/=d)},selectText:function(e,t){if(this.enabled){this.currentSelectedText==e||this.fromQuickRecord||(this.unselectAllControls(),this.unselectAllComponents()),this.$el.find("#textPropertiesTab").show(),this.currentSelectedText=e,this.currentSelectedClip=this.getClipOf(e),this.$el.find(".addtext-control-detail").show();var i=this.getClipOf(e);this.videoPlayerView.$el.find(".se-text-editable").val(i.properties.textUnwrapped?i.properties.textUnwrapped:i.properties.text),this.videoPlayerView.$el.find(".se-text-editable").css({"font-family":null!=l.default.getFontMap()[i.properties.font]?l.default.getFontMap()[i.properties.font].css:"","font-size":i.properties.fontSize+"px","font-style":i.properties.italic?"italic":"normal","font-weight":i.properties.bold?"bold":"normal",color:i.properties.color}),this.$el.find(".addtext-input-text").val(i.properties.text),this.$el.find(".se-font-selector").val(this.getFontIfAvailable(i.properties.font)).trigger("change.select2"),this.$el.find(".se-fontsize-selector").val(i.properties.fontSize).trigger("change.select2"),this.$el.find(".se-bold-toggle").prop("checked",i.properties.bold),this.$el.find(".se-italic-toggle").prop("checked",i.properties.italic),this.$el.find(".addtext-control-detail .se-color-choose").spectrum("set",i.properties.color||this.brand_font_color),this.$el.find(".addtext-control-detail .se-shadow-toggle").spectrum("set",i.properties.shadow),this.$el.find(".addtext-control-detail .color-picker .sp-replacer .text-color-picker").css("color",i.properties.color),this.$el.find(".se-textalign-selector").val(i.properties.textAlign?i.properties.textAlign:"left").trigger("change.select2"),r()("#se-component-"+this.currentSelectedText).addClass("se-text-component-selected"),this.setAdaptiveBorderForTarget(r()("#se-component-"+this.currentSelectedText)),r()(".se-components-hover").removeClass("se-components-hover"),this.setTextDraggableContainerSize(r()("#se-component-"+this.currentSelectedText)[0],i,!0),t||this.showClipTime(i),this.selectControl("add-text-btn"),this.showMarkers("text")}},getFontIfAvailable:function(e){if(null==e)return this.defaultFontValue;for(var t in l.default.getFontMap())if(t==e)return e;return this.defaultFontValue},setAdaptiveBorderForTarget:function(e){0!=e.length&&(this.getLuminanceForClip(e.position().left,e.position().top,e.width(),e.height())<128?r()(e).addClass("white"):r()(e).addClass("black"))},unselectText:function(e){if(null!=this.currentSelectedText){this.$el.find("#textPropertiesTab").hide(),e=void 0===e?"callouttext"==this.getClipOf(this.currentSelectedText).footage.type:e,this.closeTextEditable();var t=r()("#se-component-"+this.currentSelectedText);this.currentSelectedText=void 0,this.videoPlayerView.$el.find(".se-text-editable").val(""),this.videoPlayerView.$el.find(".se-text-editable").hide(),t&&r()(t).removeClass("se-text-component-selected black white").resizable("destroy"),this.$el.find(".se-text-component").show(),e?this.showMarkers("calloutimage"):this.showMarkers("text"),this.videoPlayerView.$el.find(".se-clip-time").hide()}},textEditableChanged:function(e){var t=this.getClipOf(this.currentSelectedText);t.properties.textUnwrapped=this.videoPlayerView.$el.find(".se-text-editable").val().trim(),t.properties.textUnwrapped.trim().length||(t.properties.text=""),this.newlineTextToHtml(r()("#se-component-"+this.currentSelectedText+" .se-text-container")[0],t),e&&13==e.keyCode&&!e.shiftKey&&(this.closeTextEditable(),this.unselectText())},addTextChanged:function(e){var t=e.data.that;13==e.keyCode&&t.addEnteredText()},textPropertyChanged:function(e){if(this.currentSelectedText){var t=this.getClipOf(this.currentSelectedText);t&&(t.properties.text=this.getTextFromTextEl(r()("#se-component-"+this.currentSelectedText)).trim(),t.properties.font=this.$el.find(".se-font-selector").val(),t.properties.fontSize=this.$el.find(".se-fontsize-selector").val(),(null==t.properties.fontSizeProject||e&&e.target&&r()(e.target).hasClass("se-fontsize-selector"))&&(t.properties.fontSizeProject=this.getValueForProject(t.properties.fontSize,!0)),t.properties.bold=this.$el.find(".se-bold-toggle").is(":checked"),t.properties.italic=this.$el.find(".se-italic-toggle").is(":checked"),e&&(t.properties.color=this.$el.find(".addtext-control-detail .se-color-choose").spectrum("get").toHexString()),this.$el.find(".addtext-control-detail .color-picker .sp-replacer .text-color-picker").css("color",t.properties.color),t.properties.textAlign=this.$el.find(".se-textalign-selector").val(),t.properties.xposRaw=r()("#se-component-"+this.currentSelectedText).position().left,t.properties.yposRaw=r()("#se-component-"+this.currentSelectedText).position().top,t.properties.xpos=this.getValueForProject(t.properties.xposRaw,!0),t.properties.ypos=this.getValueForProject(t.properties.yposRaw,!1),t.footage.calloutId&&(t.properties.offsetX=r()("#se-component-"+this.currentSelectedText).position().left-r()("#se-component-"+t.footage.calloutId).position().left,t.properties.offsetY=r()("#se-component-"+this.currentSelectedText).position().top-r()("#se-component-"+t.footage.calloutId).position().top),this.updateProjectJson(),this.reconstructUI())}},showTextEditable:function(e){var t=this.getClipOf(e),i=this.getClipElOf(e);this.videoPlayerView.$el.find(".se-text-editable").css({left:i.position().left+"px",top:i.position().top+"px",width:i.width()+"px",height:i.height()+"px","text-align":t.properties.textAlign}),i.fadeOut();var n=this,r=t.properties.textUnwrapped?t.properties.textUnwrapped:t.properties.text;r=r==this.defaultTextAreaValue?"":r,this.videoPlayerView.$el.find(".se-text-editable").val(r),this.videoPlayerView.$el.find(".se-text-editable").fadeIn(150,(function(){n.videoPlayerView.$el.find(".se-text-editable").focus()}))},closeTextEditable:function(){var e=this.getClipOf(this.currentSelectedText);e&&this.setLineHeight(e),this.videoPlayerView.$el.find(".se-text-editable").hide(),this.videoPlayerView.$el.find(".se-text-component").show(),e&&!e.properties.text.trim().length&&r()("#se-component-"+this.currentSelectedText).find(".se-text-delete").click()},deleteText:function(){var e="callouttext"==this.getClipOf(this.currentSelectedText).footage.type;this.removeClip(this.currentSelectedText),this.unselectText(e),this.reconstructUI()},selectAddStickers:function(){this.askReloadConfirmation=!0,this.isPPR?l.default.trackInThirdPartyTools("video_preview_Emoji_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Emoji_save",{email:this.userEmail}),this.unselectAllControls(),this.$el.find(".addsticker-selected").hide(),this.$el.find(".addsticker-initial").show(),this.$el.find(".addsticker-control-detail").fadeIn(100),this.showMarkers("sticker"),this.selectControl("add-stickers-btn")},selectAddImage:function(){this.askReloadConfirmation=!0,this.unselectAllControls(),this.$el.find(".addimage-selected").hide(),this.$el.find(".addimage-initial").show(),this.$el.find(".addimage-control-detail").fadeIn(100),this.selectControl("add-image-btn"),this.isPPR?l.default.trackInThirdPartyTools("video_preview_Image_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA41,{email:this.userEmail})},hanldeImageAspectRatioChange:function(){this.stickerPropertyChanged(),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA413,{email:this.userEmail})},deleteImage:function(){this.deleteSticker(),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA415,{email:this.userEmail})},changeImageOpacity:function(e){this.$el.find("#imageOpacitySlider").val(""===r()(e.currentTarget).val()?0:r()(e.currentTarget).val()),this.$el.find("#imageOpacityInput").val(""===r()(e.currentTarget).val()?"":parseInt(r()(e.currentTarget).val())>100?100:r()(e.currentTarget).val()),this.stickerPropertyChanged(),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA414,{email:this.userEmail})},addImage:function(){this.openImportCallback(),new Me({type:"image",maximumFilesAllowed:1,maximumPerFileSize:5,isMultiple:!1,showAddMoreTemplate:!1,callbackMethodToHandleFiles:this.processSelectedImage,closeImportCallback:this.closeImportCallback}),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA411,{email:this.userEmail})},addPersonalizedImage:function(){var e={component_type:"image-mf"},t=p.getNewImageMfId(this.projectJson,"image");e.id=t.footageId,e.image_id=t.imageId,e.is_website=!1,e.url=p.getMfImage(e.image_id,"image"),e.addToFootageList=!1,this.createNewImage(e),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA412,{email:this.userEmail})},addWebsiteImageBtn:function(){var e={component_type:"image-mf"},t=p.getNewImageMfId(this.projectJson,"website");e.id=t.footageId,e.image_id=t.imageId,e.is_website=!0,e.url=p.getMfImage(e.image_id,"website"),e.addToFootageList=!1,this.createNewImage(e),l.default.trackInThirdPartyTools(m.a.PERSONALIZATION_ACTIONS.PA416,{email:this.userEmail})},processSelectedImage:function(e,t){var i=e[0],n=p.getImportedImageInfo(i),r=[n],o=this;this.$el.find("#imageUploadProgessContainer").show(),this.$el.find("#imageUploadProgressText").text(w.b.simpleEdit.prepareToImport),(new v.a).importAssetForSlideShow(JSON.stringify(r),this.assetId,void 0,(function(e){var t=e.video[0];"local_file"==n.upload_type?new V.a({acl:"private",bucket:t.bucket,key:t.key}).uploadFile(i,void 0,(function(e){o.$el.find("#imageUploadProgessContainer").hide(),o.closeImportCallback(),t.component_type="image",t.addToFootageList=!0,o.createNewImage(t)}),(function(e){c.default.showBannerAlert(w.b.simpleEdit.errorMessage,3e3,"error"),c.default.postErrorsToLog({error:"Error while uploading media to S3 for user.",stackTrace:JSON.stringify(e)}),o.$el.find("#imageUploadProgessContainer").hide(),o.closeImportCallback()})):(o.$el.find("#imageUploadProgessContainer").hide(),o.closeImportCallback(),t.component_type="image",t.addToFootageList=!0,o.createNewImage(t))}),(function(e){c.default.showBannerAlert(w.b.simpleEdit.errorMessage,3e3,"error"),c.default.postErrorsToLog({error:"Error while importing slideshow for user.",stackTrace:JSON.stringify(e)}),o.$el.find("#imageUploadProgessContainer").hide(),o.closeImportCallback()}))},createNewImage:function(e){var t=this.sessionDetails.totalCreatedClips,i=this.getMaxDuration();this.projectJson.trackNames.push("Image");var n={containsAudio:!1,containsVideo:!1,containsText:!1,containsImage:!0,id:e.id.toString(),duration:i,type:e.component_type};"image-mf"===e.component_type&&(n.is_website=e.is_website,n.image_id=e.image_id);var r=this.videoPlayerView.$el.find(".se-crop-highlighter-left").width();r+=(this.videoPlayerView.$el.find(".se-crop-highlighter-right").position().left-this.videoPlayerView.$el.find(".se-crop-highlighter-left").width())/2;var o=this.videoPlayerView.$el.find(".se-crop-highlighter-top").height();o+=(this.videoPlayerView.$el.find(".se-crop-highlighter-bottom").position().top-this.videoPlayerView.$el.find(".se-crop-highlighter-top").height())/2;var a=new Image;a.crossOrigin="Anonymous",a.src=e.url;var s=this;a.onload=function(){var l,c=a.width,d=a.height;a.width>s.videoPlayerView.$el.width()?(l=s.videoPlayerView.$el.width()/a.width,c=s.videoPlayerView.$el.width()/3,d=l*a.height/3):a.height>s.videoPlayerView.$el.height()?(l=s.videoPlayerView.$el.height()/a.height,d=s.videoPlayerView.$el.height()/3,c=l*a.width/3):(c=a.width/3,d=a.height/3);var u={fadein:0,fadeout:0,heightRaw:d,widthRaw:c,height:s.getValueForProject(d,!1),width:s.getValueForProject(c,!0),xposRaw:r,yposRaw:o,xpos:s.getValueForProject(r,!0),ypos:s.getValueForProject(o,!1),opacity:1,lockAspectRatio:!0,containsAlpha:!0},p=Math.max(s.videoPlayerView.getCurrentTime(),.001),h={deleted:!1,end:3,footage:n,id:t,position:Math.max(p-s.videoPlayerView.trimStart,.001),properties:u,start:0,track:s.projectJson.totalVideoTracks+1,startFrom:p,endAt:Math.min(s.videoPlayerView.getCurrentTime()+3,i)};s.projectJson.totalVideoTracks++,s.projectJson.clips.push(h),e.addToFootageList&&s.projectJson.footageList.push(e.id),n.src=e.url,s.sessionDetails.addedClips.push(h.id),s.reconstructUI(),s.selectSticker(t),s.sessionDetails.totalCreatedClips++}},isImageComponent:function(e){return"image"==this.getClipOf(e).footage.type||"image-mf"==this.getClipOf(e).footage.type},componentDropped:function(e,t,i){-1!==e.indexOf("se-sticker-btn-")?this.addNewSticker(e.split("se-sticker-btn-")[1],t,i):-1!==e.indexOf("se-callout-btn-")&&this.addNewCallout(e.split("se-callout-btn-")[1],t,i)},stickerBtnClicked:function(e){e.data.that.addNewSticker(e.target.id.split("se-sticker-btn-")[1])},addNewSticker:function(e,t,i){var n=this.sessionDetails.totalCreatedClips,r=this.getMaxDuration();this.projectJson.trackNames.push("Sticker");var o={containsAudio:!1,containsVideo:!1,containsText:!1,containsImage:!0,id:-e-100,duration:r,type:"sticker"};null!=t&&null!=i||(t=this.videoPlayerView.$el.find(".se-crop-highlighter-left").width(),t+=(this.videoPlayerView.$el.find(".se-crop-highlighter-right").position().left-this.videoPlayerView.$el.find(".se-crop-highlighter-left").width())/2,i=this.videoPlayerView.$el.find(".se-crop-highlighter-top").height(),i+=(this.videoPlayerView.$el.find(".se-crop-highlighter-bottom").position().top-this.videoPlayerView.$el.find(".se-crop-highlighter-top").height())/2);var a={fadein:0,fadeout:0,heightRaw:this.stickerSize[e].height/1.5,widthRaw:this.stickerSize[e].width/1.5,height:this.getValueForProject(this.stickerSize[e].height/1.5,!1),width:this.getValueForProject(this.stickerSize[e].width/1.5,!0),xposRaw:t,yposRaw:i,xpos:this.getValueForProject(t,!0),ypos:this.getValueForProject(i,!1),opacity:1,lockAspectRatio:!0},s=Math.max(this.videoPlayerView.getCurrentTime(),.001),l={deleted:!1,end:3,footage:o,id:n,position:Math.max(s-this.videoPlayerView.trimStart,.001),properties:a,start:0,track:this.projectJson.totalVideoTracks+1,startFrom:s,endAt:Math.min(this.videoPlayerView.getCurrentTime()+3,r)};this.projectJson.totalVideoTracks++,this.projectJson.clips.push(l),this.sessionDetails.addedClips.push(l.id),this.reconstructUI(),this.selectSticker(n),this.sessionDetails.totalCreatedClips++},selectSticker:function(e){if(this.enabled){this.unselectAllControls(),this.unselectAllComponents(),this.currentSelectedSticker=e,this.currentSelectedClip=this.getClipOf(e);var t=this.getClipOf(this.currentSelectedSticker);this.isImageComponent(t.id)?(this.$el.find(".addimage-selected #imageOpacitySlider").val(100*t.properties.opacity),this.$el.find(".addimage-selected #imageOpacityInput").val(parseInt(100*t.properties.opacity)),this.$el.find(".addimage-selected #imageArLock").prop("checked",t.properties.lockAspectRatio),this.$el.find(".addimage-control-detail").show(),this.$el.find(".addimage-initial").hide(),this.$el.find(".addimage-selected").show()):(this.$el.find(".addsticker-selected .opacity-val").val(100*t.properties.opacity),this.$el.find(".addsticker-selected .lock-aspect-ratio").prop("checked",t.properties.lockAspectRatio),this.$el.find(".addsticker-control-detail").show(),this.$el.find(".addsticker-initial").hide(),this.$el.find(".addsticker-selected").show());var i=r()("#se-component-"+e);i.resizable("enable"),i.addClass("edit-video-selected"),this.setAdaptiveBorderForTarget(r()("#se-component-"+e)),this.isImageComponent(t.id)?(this.showMarkers("image"),this.selectControl("add-image-btn")):(this.showMarkers("sticker"),this.selectControl("add-stickers-btn")),this.showClipTime(t)}},unselectSticker:function(){null!=this.currentSelectedSticker&&(this.isImageComponent(this.currentSelectedSticker)?(this.currentSelectedSticker=void 0,this.$el.find(".addimage-initial").show(),this.$el.find(".addimage-selected").hide(),this.showMarkers("image")):(this.currentSelectedSticker=void 0,this.$el.find(".addsticker-initial").show(),this.$el.find(".addsticker-selected").hide(),this.showMarkers("sticker")),r()(".se-image-component").resizable({disabled:!0}),r()(".se-image-component").removeClass("edit-video-selected white black"),this.videoPlayerView.$el.find(".se-clip-time").hide())},stickerPropertyChanged:function(){var e=this.getClipOf(this.currentSelectedSticker);this.isImageComponent(this.currentSelectedSticker)?(e.properties.opacity=this.$el.find(".addimage-selected #imageOpacitySlider").val()/100,e.properties.lockAspectRatio=this.$el.find(".addimage-selected #imageArLock").is(":checked")):(e.properties.opacity=this.$el.find(".addsticker-selected .opacity-val").val()/100,e.properties.lockAspectRatio=this.$el.find(".addsticker-selected .lock-aspect-ratio").is(":checked")),this.updateProjectJson(),this.reconstructUI()},deleteSticker:function(){var e=this.currentSelectedSticker;this.unselectSticker(),this.removeClip(e),this.reconstructUI()},findStickerSize:function(e){this.stickerSize[e]={width:128,height:128}},showStickerFamily:function(e){e.data.that.$el.find(".sticker-family-all").hide(),r()(e.target).closest(".sticker-family-container").find(".sticker-family-all").show()},selectAddBlur:function(){"true"===r()("#isBlurEnabled").val()||this.isBlurEnabled?(this.askReloadConfirmation=!0,this.isPPR?l.default.trackInThirdPartyTools("video_preview_Blur_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Blur_save",{email:this.userEmail}),this.unselectAllControls(),this.$el.find("#blurSelected").hide(),this.$el.find("#blurInitial").show(),this.$el.find(".blur-control-detail").fadeIn(100),this.showMarkers("effects"),this.selectControl("add-blur-btn"),r()(".new").hide()):(l.default._upgradeAlertPopup(w.b,C.a),r()(".new").hide())},addNewBlur:function(e,t){if(void 0!==this.sessionDetails.primaryVideo||void 0!==this.sessionDetails.secondaryVideo){var i=this.getMaxDuration(),n=this.getClipOf(this.sessionDetails.primaryVideo)||{},r=Math.max(this.videoPlayerView.getCurrentTime(),.001);null==this.sessionDetails.totalAddedEffects&&(this.sessionDetails.totalAddedEffects=0);var o=this.sessionDetails.totalAddedEffects++,a={id:o,type:"blur",opacity:1,strength:10,widthRaw:this.getValueFromClipPercent(.3,n,!0),heightRaw:this.getValueFromClipPercent(.3,n,!1),xposRaw:this.getValueFromClipPercent(.3,n,!0),yposRaw:this.getValueFromClipPercent(.3,n,!1),lockAspectRatio:!1,start:0,end:3,width:.3,height:.3,xpos:.3,ypos:.3,startFrom:r,endAt:Math.min(this.videoPlayerView.getCurrentTime()+3,i),position:Math.max(r-this.videoPlayerView.trimStart,.001)};n.effects?n.effects.push(a):n.effects=[a],this.reconstructUI(),this.selectBlur(o),l.default.trackInThirdPartyTools("SE - Add New Blur",{email:this.userEmail})}},enableBlurForPlayer:function(){var e=this;this.$el.find("#blurStrength").slider({min:0,max:100,step:1,value:50,slide:e.blurPropertyChanged}),this.$el.find("#blurStrengthText").bind("change",(function(){e.blurPropertyChanged({},{},!0)}))},blurPropertyChanged:function(e,t,i){var n=this.getClipOf(this.sessionDetails.primaryVideo)||{},r=o.default.where(n.effects,{id:Number(this.currentSelectedBlur)})[0]||{};if(i){var a=this.$el.find("#blurStrengthText").val();this.$el.find("#blurStrength").slider("option","value",a)}else{a=this.$el.find("#blurStrength").slider("option","value");this.$el.find("#blurStrengthText").val(a)}r.strength=l.default.map(a,0,100,0,20),r.lockAspectRatio=this.$el.find(".blur-selected .lock-aspect-ratio").is(":checked"),this.updateProjectJson(),this.reconstructUI()},blurAreaChanged:function(){var e=this.getClipOf(this.sessionDetails.primaryVideo)||{},t=o.default.where(e.effects,{id:Number(this.currentSelectedBlur)})[0]||{},i=r()("#se-effects-"+t.id);t.xpos=this.getValueForClip(i.position().left,e,!0),t.ypos=this.getValueForClip(i.position().top,e,!1),t.width=this.getValueForClip(i.width(),e,!0),t.height=this.getValueForClip(i.height(),e,!1),this.reconstructUI()},selectBlur:function(e){if(this.enabled){var t=this.getClipOf(this.sessionDetails.primaryVideo)||{},i=o.default.where(t.effects,{id:Number(e)})[0]||{},n=Math.ceil(l.default.map(i.strength,0,20,0,100));this.unselectAllControls(),this.unselectAllComponents(),this.currentSelectedBlur=e,this.currentSelectedClip=i,this.$el.find("#blurStrengthText").val(n),this.$el.find("#blurStrength").slider("option","value",n),this.$el.find(".blur-selected .lock-aspect-ratio").prop("checked",i.lockAspectRatio),this.$el.find(".blur-control-detail").show(),this.$el.find(".blur-initial").hide(),this.$el.find(".blur-selected").show(),this.showMarkers("effects"),r()("#se-effects-"+e+" .ui-resizable-handle").show(),r()("#se-effects-"+e).resizable("enable").addClass("edit-video-selected"),this.setAdaptiveBorderForTarget(r()("#se-effects-"+e)),this.selectControl("add-blur-btn"),void 0!==i.id&&this.showClipTime(i,!0)}},unselectBlur:function(){null!=this.currentSelectedBlur&&(this.currentSelectedBlur=void 0,this.$el.find(".blur-initial").show(),this.$el.find(".blur-selected").hide(),r()(".se-effects .ui-resizable-handle").hide(),r()(".se-effects").resizable({disabled:!0}).removeClass("edit-video-selected white black"),this.showMarkers("effects"),this.videoPlayerView.$el.find(".se-clip-time").hide())},deleteBlur:function(){for(var e=this.getClipOf(this.sessionDetails.primaryVideo)||{},t=e.effects||[],i=0;i<e.effects.length&&e.effects[i].id!=this.currentSelectedBlur;i++);i!=e.effects.length&&(t.splice(i,1),this.unselectBlur(),this.reconstructUI(),l.default.trackInThirdPartyTools("SE - Delete Blur",{email:this.userEmail}))},drawBlurLayer:function(){if(this.projectJson){var e=this.videoPlayerView.$el.find(".primary-video")[0],t=this.videoPlayerView.$el.find(".se-effects-canvas")[0],i=t.getContext("2d"),n=this.primaryVideoContainer.width(),o=this.primaryVideoContainer.height(),a=(this.getClipOf(this.sessionDetails.primaryVideo)||{}).effects||[];t.width=n,t.height=o,i.clearRect(0,0,n,o);for(var s=0;s<a.length;s++){var c=a[s];if(c&&!(this.videoPlayerView.getCurrentTime()-this.videoPlayerView.trimStart<c.position-.1||this.videoPlayerView.getCurrentTime()-this.videoPlayerView.trimStart>c.position+(c.end-c.start))){i.save(),i.rect(c.xposRaw,c.yposRaw,c.widthRaw,c.heightRaw),i.clip(),i.filter="blur("+c.strength+"px)";var d=l.default.map(c.xposRaw,0,n,0,e.videoWidth),u=l.default.map(c.yposRaw,0,o,0,e.videoHeight),p=l.default.map(c.widthRaw,0,n,0,e.videoWidth),h=l.default.map(c.heightRaw,0,o,0,e.videoHeight);i.drawImage(e,d,u,p,h,c.xposRaw,c.yposRaw,c.widthRaw,c.heightRaw),i.restore(),r()("#se-effects-"+c.id).css({opacity:"1","z-index":"106"})}else r()("#se-effects-"+c.id).css({opacity:"0","z-index":"-1"})}}},getMaxDuration:function(){for(var e=0,t=0;t<this.projectJson.clips.length;t++)e=Math.max(e,this.projectJson.clips[t].end);return e},selectAddCallouts:function(){this.askReloadConfirmation=!0,this.isPPR?l.default.trackInThirdPartyTools("video_preview_Callout_save_isPPR",{email:this.userEmail}):l.default.trackInThirdPartyTools("video_preview_Callout_save",{email:this.userEmail}),this.unselectAllControls(),this.$el.find(".addcallout-selected").hide(),this.$el.find(".addcallout-initial").show(),this.$el.find(".addcallout-control-detail").fadeIn(100),this.showMarkers("calloutimage"),this.selectControl("add-callouts-btn")},calloutBtnClicked:function(e){e.data.that.addNewCallout(e.target.id.split("se-callout-btn-")[1])},addNewCallout:function(e,t,i){var n=this.sessionDetails.totalCreatedClips,r=this.getMaxDuration();this.projectJson.trackNames.push("Callout-Image");var o={containsAudio:!1,containsVideo:!1,containsText:!1,containsImage:!0,id:-e-1e4,baseId:-e-1e4,duration:r,type:"calloutimage"};null!=t&&null!=i||(t=this.videoPlayerView.$el.find(".se-crop-highlighter-left").width(),t+=(this.videoPlayerView.$el.find(".se-crop-highlighter-right").position().left-this.videoPlayerView.$el.find(".se-crop-highlighter-left").width())/2,i=this.videoPlayerView.$el.find(".se-crop-highlighter-top").height(),i+=(this.videoPlayerView.$el.find(".se-crop-highlighter-bottom").position().top-this.videoPlayerView.$el.find(".se-crop-highlighter-top").height())/2);var a={fadein:0,fadeout:0,heightRaw:this.callouts[e].height/2,widthRaw:this.callouts[e].width/2,height:this.getValueForProject(this.callouts[e].height/2,!1),width:this.getValueForProject(this.callouts[e].width/2,!0),xposRaw:t,yposRaw:i,xpos:this.getValueForProject(t,!0),ypos:this.getValueForProject(i,!1),opacity:1,lockAspectRatio:!0},s=3,l=Math.max(this.videoPlayerView.getCurrentTime(),.001),c={deleted:!1,end:s,footage:o,id:n,position:Math.max(l-this.videoPlayerView.trimStart,.001),properties:a,start:0,track:this.projectJson.totalVideoTracks+1,startFrom:l,endAt:Math.min(this.videoPlayerView.getCurrentTime()+s,r)};if(this.projectJson.totalVideoTracks++,this.projectJson.clips.push(c),this.sessionDetails.addedClips.push(c.id),this.sessionDetails.totalCreatedClips++,this.callouts[e].hasText){var d=this.sessionDetails.totalCreatedClips;this.projectJson.trackNames.push("Callout-Text"),o.textId=d;var u={containsAudio:!1,containsVideo:!1,containsText:!0,containsImage:!1,duration:r,calloutId:n,type:"callouttext"};t+=0;var p={x:a.xposRaw,y:i+=50,w:a.widthRaw,h:a.heightRaw/4},h={text:this.defaultTextAreaValue,textUnwrapped:this.defaultTextAreaValue,font:this.defaultFontValue,fontSize:15,fontSizeProject:this.getValueForProject(15,!0),color:"black",bold:!1,italic:!1,opacity:1,xposRaw:t,yposRaw:i,xpos:this.getValueForProject(t,!0),ypos:this.getValueForProject(i,!1),offsetX:0,offsetY:50,textAlign:"center",boundingBoxRaw:p,boundingBox:this.getBoundingBoxForProject(p)};this.getLuminanceForClip(h.boundingBoxRaw.x,h.boundingBoxRaw.y,h.boundingBoxRaw.w,h.boundingBoxRaw.h)<128&&(h.color="#FFFFFF");s=3,l=Math.max(this.videoPlayerView.getCurrentTime(),.001);var f={deleted:!1,end:s,footage:u,id:d,position:Math.max(l-this.videoPlayerView.trimStart,.001),properties:h,start:0,track:this.projectJson.totalVideoTracks+1,startFrom:l,endAt:Math.min(this.videoPlayerView.getCurrentTime()+s,r)};this.projectJson.totalVideoTracks++,this.projectJson.clips.push(f),this.sessionDetails.addedClips.push(f.id),this.sessionDetails.totalCreatedClips++}this.reconstructUI(),this.selectCallout(n)},selectCallout:function(e){if(this.enabled){this.unselectAllControls(),this.unselectAllComponents(),this.currentSelectedCallout=e,this.currentSelectedClip=this.getClipOf(e),this.$el.find(".addcallout-control-detail").show(),this.$el.find(".addcallout-initial").hide(),this.$el.find(".addcallout-selected").show();var t=this.getClipOf(this.currentSelectedCallout);this.$el.find(".addcallout-selected .opacity-val").val(100*t.properties.opacity),this.$el.find(".addcallout-selected .lock-aspect-ratio").prop("checked",t.properties.lockAspectRatio),this.$el.find(".addcallout-selected .callout-variation").val(t.footage.baseId-t.footage.id);var i=r()("#se-component-"+e);i.resizable("enable"),i.addClass("edit-video-selected"),this.setAdaptiveBorderForTarget(r()("#se-component-"+e)),this.showMarkers("calloutimage"),this.showClipTime(t),this.selectControl("add-callouts-btn")}},unselectCallout:function(){null!=this.currentSelectedCallout&&(this.currentSelectedCallout=void 0,this.$el.find(".addcallout-initial").show(),this.$el.find(".addcallout-selected").hide(),r()(".se-image-component").resizable({disabled:!0}),r()(".se-image-component").removeClass("edit-video-selected white black"),this.showMarkers("calloutimage"),this.videoPlayerView.$el.find(".se-clip-time").hide())},calloutDragged:function(){var e=this.getClipOf(this.currentSelectedCallout),t=this.getClipOf(e.footage.textId);if(null!=t){var i=this.getClipElOf(e.footage.textId);t.properties.boundingBoxRaw?i.css({left:l.default.map(this.calloutTextBoxSpread.x,0,1,e.properties.xposRaw,e.properties.xposRaw+e.properties.widthRaw)+"px",top:l.default.map(this.calloutTextBoxSpread.y,0,1,e.properties.yposRaw,e.properties.yposRaw+e.properties.heightRaw)+"px"}):r()("#se-component-"+e.footage.textId).css({left:r()("#se-component-"+e.id).position().left+t.properties.offsetX+"px",top:r()("#se-component-"+e.id).position().top+t.properties.offsetY+"px"}),t.properties.xposRaw=i.position().left,t.properties.yposRaw=i.position().top,t.properties.xpos=this.getValueForProject(t.properties.xposRaw,!0),t.properties.ypos=this.getValueForProject(t.properties.yposRaw,!1),t&&t.properties.boundingBoxRaw&&(t.properties.boundingBoxRaw.x=t.properties.xposRaw,t.properties.boundingBoxRaw.y=t.properties.yposRaw,t.properties.boundingBox=this.getBoundingBoxForProject(t.properties.boundingBoxRaw))}this.updateProjectJson()},calloutResized:function(e){var t=this.getClipOf(e),i=this.getClipOf(t.footage.textId);i&&i.properties.boundingBoxRaw&&this.calloutTextBoxSpread&&(this.getClipElOf(i.id).css({left:l.default.map(this.calloutTextBoxSpread.x,0,1,t.properties.xposRaw,t.properties.xposRaw+t.properties.widthRaw)+"px",top:l.default.map(this.calloutTextBoxSpread.y,0,1,t.properties.yposRaw,t.properties.yposRaw+t.properties.heightRaw)+"px",width:this.calloutTextBoxSpread.w*t.properties.widthRaw+"px"}),this.textBoxResized(i.id)),this.updateProjectJson()},calloutPropertyChanged:function(){var e=this.getClipOf(this.currentSelectedCallout);e.properties.opacity=this.$el.find(".addcallout-selected .opacity-val").val()/100,e.properties.lockAspectRatio=this.$el.find(".addcallout-selected .lock-aspect-ratio").is(":checked"),e.footage.id=e.footage.baseId-parseInt(this.$el.find(".callout-variation").val()),this.updateProjectJson(),this.reconstructUI()},deleteCallout:function(){var e=this.getClipOf(this.currentSelectedCallout),t=this.getClipOf(e.footage.textId);null!=t&&this.removeClip(t.id),this.removeClip(this.currentSelectedCallout),this.unselectCallout(),this.reconstructUI()},findCalloutSize:function(e){var t=document.createElement("img");t.src="https://s3.amazonaws.com/hippolms-wiz-static/callouts/c"+e+".png?v=2",t.crossOrigin="Anonymous";var i=this;this.callouts[e]&&(this.callouts[e].width=300,this.callouts[e].height=300),t.onload=function(){i.callouts[e]&&(i.callouts[e].width=t.width,i.callouts[e].height=t.height)}},isCalloutImage:function(e){return this.getClipOf(e).footage.id<=-1e4},scrollCallouts:function(e){var t=r()(e.target).hasClass("callout-scroll-left"),i=e.data.that;i.$el.find(".callout-btn-scroll-container").animate({scrollLeft:i.$el.find(".callout-btn-scroll-container").scrollLeft()+200*(t?-1:1)},200)},newComponentDragged:function(){this.videoPlayerView.$el.find(".se-crop-resizable").removeClass("disp-none").addClass("disp-show"),this.videoPlayerView.$el.find(".se-components-droppable").fadeIn(200),this.videoPlayerView.$el.find(".se-components-droppable").css({"z-index":1e3,width:this.videoPlayerView.$el.find(".se-crop-resizable").width()+"px",height:this.videoPlayerView.$el.find(".se-crop-resizable").height()+"px",left:this.videoPlayerView.$el.find(".se-crop-resizable").position().left+"px",top:this.videoPlayerView.$el.find(".se-crop-resizable").position().top+"px"})},newComponentDropped:function(){this.videoPlayerView.$el.find(".se-crop-resizable").removeClass("disp-show").addClass("disp-none"),this.videoPlayerView.$el.find(".se-components-droppable").hide(),this.videoPlayerView.$el.find(".se-components-droppable").css("z-index",0)},getClipOf:function(e){for(var t=void 0,i=0;i<this.projectJson.clips.length;i++)if(this.projectJson.clips[i].id==e){t=this.projectJson.clips[i];break}return t},getClipElOf:function(e){return r()("#se-component-"+e)},removeClip:function(e){e=parseInt(e);for(var t=0;t<this.projectJson.clips.length;t++)if(this.projectJson.clips[t].id==e){this.projectJson.clips.splice(t,1);break}-1!==this.sessionDetails.addedClips.indexOf(e)&&this.sessionDetails.addedClips.splice(this.sessionDetails.addedClips.indexOf(e),1)},lockAspectRatio:function(e){var t=e.data.that;r()(e.target).hasClass("primary-vid-control")?(t.primaryVideoContainer.resizable("destroy"),t.makeVideoContainerResizable(t.primaryVideoContainer,r()(e.target).is(":checked"))):r()(e.target).hasClass("secondary-vid-control")&&(t.secondaryVideoContainer.resizable("destroy"),t.makeVideoContainerResizable(t.secondaryVideoContainer,r()(e.target).is(":checked")))},opacityChanged:function(e){var t=e.data.that;r()(e.target).hasClass("primary-vid-control")?(t.primaryVideoContainer.resizable("destroy"),t.makeVideoContainerResizable(t.primaryVideoContainer,r()(e.target).is(":checked"))):r()(e.target).hasClass("secondary-vid-control")&&(t.secondaryVideoContainer.resizable("destroy"),t.makeVideoContainerResizable(t.secondaryVideoContainer,r()(e.target).is(":checked")))},showClipTime:function(e,t){var i=e.footage?e.footage.type:"blur";this.videoPlayerView.$el.find(".se-clip-time").show();var n=Math.max(l.default.map(e.startFrom,this.videoPlayerView.trimStart,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd,0,this.videoPlayerView.$el.find(".components-time-container").width()),0),o=Math.min(l.default.map(e.endAt,this.videoPlayerView.trimStart,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd,0,this.videoPlayerView.$el.find(".components-time-container").width()),this.videoPlayerView.$el.find(".components-time-container").width());this.videoPlayerView.$el.find(".se-clip-time").resizable("enable"),this.videoPlayerView.$el.find(".se-clip-time").css({left:n+"px",width:o-n+"px"}),this.videoPlayerView.$el.find(".se-clip-time .se-selected-type").html(i.substring(0,1).toUpperCase()),t||this.updateTimeFromClipToPopup(this),r()(".timer-pop-up").show()},playerTimeUpdate:function(){for(var e=0;e<this.sessionDetails.addedClips.length;e++){var t=this.getClipOf(this.sessionDetails.addedClips[e]);null!=t&&(this.videoPlayerView.getCurrentTime()-this.videoPlayerView.trimStart<t.position-.1||this.videoPlayerView.getCurrentTime()-this.videoPlayerView.trimStart>t.position+(t.end-t.start)?this.videoPlayerView.$el.find("#se-component-"+t.id).css({opacity:"0","z-index":"0"}):this.videoPlayerView.$el.find("#se-component-"+t.id).css({opacity:null!=t.properties.opacity?t.properties.opacity:1,"z-index":"107"}))}},handleVideoPlay:function(){var e=this;this.blurPlayInterval=setInterval((function(){e.drawBlurLayer()}),15)},handleVideoPause:function(){clearInterval(this.blurPlayInterval)},handleVideoSeeked:function(){this.drawBlurLayer(),this.setBorderForClipOnVideoSeek()},showMarkers:function(e){var t,i,n=this.videoPlayerView.$el.find(".player-progress").width()+parseInt(r()(".player-progress").css("marginRight"))+parseInt(r()(".player-progress").css("marginLeft"));if(this.videoPlayerView.$el.find(".components-time-container, .components-marker-container").css("width",n+"px"),this.videoPlayerView.$el.find(".components-marker-container").empty(),"effects"===e){t=(this.getClipOf(this.sessionDetails.primaryVideo)||{}).effects||[];for(var o=0;o<t.length;o++)i=Math.max(l.default.map(t[o].startFrom,this.videoPlayerView.trimStart,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd,0,this.videoPlayerView.$el.find(".components-time-container").width()),0),this.videoPlayerView.$el.find(".components-marker-container").append('<span class="se-selected-type" id="effect-'+t[o].id+'" style = "left:'+i+'px">'+t[o].type.substring(0,1).toUpperCase()+"</span>")}else for(o=0;o<this.projectJson.clips.length;o++){var a=this.projectJson.clips[o];a.footage.type==e&&(i=Math.max(l.default.map(a.startFrom,this.videoPlayerView.trimStart,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd,0,this.videoPlayerView.$el.find(".components-time-container").width()),0),this.videoPlayerView.$el.find(".components-marker-container").append('<span class="se-selected-type" id="clip-'+a.id+'" style = "left:'+i+'px">'+a.footage.type.substring(0,1).toUpperCase()+"</span>"))}this.videoPlayerView.$el.find(".se-selected-type").bind("click",{that:this},this.markerSelected)},markerSelected:function(e){var t,i=e.target.id,n=0;if(i.includes("clip"))t=i.split("-")[1],n=this.getClipOf(t).startFrom;else{if(!i.includes("effect"))return;t=i.split("-")[1],effects=(this.getClipOf(this.sessionDetails.primaryVideo)||{}).effects||[],n=(o.default.where(effects,{id:Number(t)})[0]||{}).startFrom}this.videoPlayerView.goToTime(Math.min(Math.max(n,this.videoPlayerView.trimStart),this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd)),this.reconstructUI(),this.selectComponentFromId(t,i.includes("effect"))},selectComponentFromId:function(e,t){t?this.selectBlur(e):(type=this.getClipOf(e).footage.type,"sticker"===type?this.selectSticker(e):"text"===type?this.selectText(e):"calloutimage"===type&&this.selectCallout(e))},makeVideoContainerResizable:function(e,t){var i=this;e.resizable({aspectRatio:t,handles:"n, e, w, s, ne, nw, se, sw",resize:function(e,t){i.mediaContainerResized(r()(e.target))},start:this.userEventStart,stop:function(){i.userEventStop(),i.reconstructUI()}}),this.videoPlayerView.$el.find(".ui-resizable-handle").removeClass("ui-icon ui-icon-gripsmall-diagonal-se")},isOnBoardRequired:function(){return!1},getFont:function(e,t,i,n){var r=this;this.fontCache[e+":"+t+":"+i]?n(this.fontCache[e+":"+t+":"+i]):(e||(console.warn("fontname not set"),e=r.defaultFontValue),Object(_.load)(this.getFontURL(e,t,i),(function(o,a){if(o){var s;for(var l in console.error("error loading font "+e+":"+t+":"+i),r.fontCache)s=r.fontCache[l];s?n(s):(console.warn("trying to load default font"),Object(_.load)(r.getFontURL("montserrat",t,i),(function(e,t){o?console.error("loading default font also failed"):n(t)})))}else r.fontCache[e+":"+t+":"+i]=a,n(a)})))},setLineHeight:function(e){var t=this;null==e.properties.fontSizeProject&&(e.properties.fontSizeProject=this.getValueForProject(e.properties.fontSize));var i=this.getValueForPlayer(e.properties.fontSizeProject,!0);this.getFont(e.properties.font,e.properties.bold,e.properties.italic,(function(n){var o=t.getMetrics(e.properties.text,i,n),a=0;r()("#se-component-"+e.id+" div").each((function(){var e=t.getMetrics(r()(this).text(),i,n);a=Math.max(a,e.actualBoundingBoxAscent-e.actualBoundingBoxDescent)})),a+=(o.fontBoundingBoxAscent-o.fontBoundingBoxDescent)/10,e.properties.lineHeight=t.getValueForProject(a,!1);var s=0,l=0,c=a*r()("#se-component-"+e.id+" .text-el-line").length,d=Math.min(Math.max(10,c/2),40);e.properties.boundingBoxRaw&&(d=(e.properties.boundingBoxRaw.h-c)/2);var u=e.properties.textAlign?e.properties.textAlign:"left";r()("#se-component-"+e.id+" .text-el-line").each((function(){var e=t.getMetrics(r()(this).text(),i,n);l=Math.max(l,e.actualWidth)})),null==e.properties.boundingBoxRaw&&(d=Math.min(Math.max(10,c/2),40),e.properties.boundingBoxRaw={x:e.properties.xposRaw,y:e.properties.yposRaw-d,w:l+2*d,h:c+2*d},e.properties.textAlign=u,t.setTextDraggableContainerSize(r()("#se-component-"+e.id)[0],e,!1)),e.properties.boundingBoxRaw.topPadding=d,e.properties.boundingBox=t.getBoundingBoxForProject(e.properties.boundingBoxRaw),r()("#se-component-"+e.id+" .text-el-line").each((function(){var o=t.getMetrics(r()(this).text(),i,n),l=0;"center"==u?l=(e.properties.boundingBoxRaw.w-o.actualWidth)/2:"right"==u&&(l=e.properties.boundingBoxRaw.w-o.actualWidth),r()(this).css({"line-height":o.fontBoundingBoxAscent-o.fontBoundingBoxDescent+"px",top:s+(o.actualBoundingBoxAscent-o.fontBoundingBoxAscent)+d+"px",left:l+"px"}),s+=a}))}))},setTextDraggableContainerSize:function(e,t,i){var n=this;t.properties.boundingBoxRaw&&(r()(e).css({width:t.properties.boundingBoxRaw.w+"px",height:t.properties.boundingBoxRaw.h+"px"}),i&&(r()(e).resizable({handles:"se",aspectRatio:!1,containment:".primary-video-container",create:function(){r()(this).find(".ui-resizable-handle").removeClass("ui-icon ui-icon-gripsmall-diagonal-se")},stop:function(){n.lastTextResizeTime=(new Date).getTime()},resize:n.textBoxResized}),t.footage.calloutId&&r()(e).resizable("option","containment","#se-component-"+t.footage.calloutId)))},selectControl:function(e){this.$el.find(".se-control-selected").removeClass("se-control-selected"),this.$el.find("."+e).addClass("se-control-selected")},computedDuration:function(){this.resizeHandler(),this.$el.find(".trim-before-container, .trim-after-container").show(),this.reconstructUI(),this.updateTrimInput()},_getVideoModel:function(){if(this.embeddedDigest&&this.embeddedDigest.length>0)var e=new v.a({embedded_digest:this.embeddedDigest});else if(this.digest)e=new v.a({digest:this.digest});else e=new v.a;return e},getReloadConfirmationState:function(){return this.askReloadConfirmation},prefetchAssetsForSimpleEdit:function(){try{var e=new Image;e.src="https://s3.amazonaws.com/hippolms-wiz-static/stickers-all/stickers_all.png?v=2",e.crossOrigin="Anonymous"}catch(e){console.log("Image constructor - Browser not supported!")}},showClipTimePop:function(e){var t=r()(e.target);(t.hasClass("se-clip-time")||t.hasClass("se-selected-type"))&&(e.data.that.updateTimeFromClipToPopup(e.data.that),r()(".timer-pop-up").toggle())},clipInputButtonClicked:function(e){e.stopPropagation();var t=e.data.that,i=t.currentSelectedClip||{},n=e.target.className.indexOf("timer-start-btn")>-1,r=e.target.className.indexOf("plus")>-1;t.calculateTimeAndUpdateClip(n,r,i,t),t.reconstructUI()},clipInputtyped:function(e){e.stopPropagation();var t=e.data.that,i=e.keyCode,n=r()(e.target).hasClass("timer-start-input");if(38===i||40===i)t.calculateTimeAndUpdateClip(n,38===i,t.currentSelectedClip||{},t);else{var o=l.default.timeToInt(r()(".timer-start-input").val()),a=l.default.timeToInt(r()(".timer-stop-input").val());clearTimeout(t.clipTimeInputTimeout),t.isValidClipTime(o,a)?t.setClipTimeAndUpdateValues(o,a,t):t.clipTimeInputTimeout=setTimeout((function(){t.updateTimeFromClipToPopup()}),1e3)}t.reconstructUI()},isValidClipTime:function(e,t){var i=this.videoPlayerView,n=i.mediaPlayer.duration-i.trimEnd;return!(e>=t||e<i.trimStart||t>n||isNaN(e)||isNaN(t))},updateTimeFromClipToPopup:function(e){var t=(e=e||this).currentSelectedClip||{};r()(".timer-start-input").val(l.default.strToTime(t.startFrom)),r()(".timer-stop-input").val(l.default.strToTime(t.endAt))},calculateTimeAndUpdateClip:function(e,t,i,n){var o=i.startFrom,a=i.endAt,s=n.videoPlayerView,c=s.mediaPlayer.duration-s.trimEnd;e?o=t?Math.min(o+1,c):Math.max(o-1,s.trimStart):a=t?Math.min(a+1,c):Math.max(a-1,s.trimStart),o>=a||(r()(".timer-start-input").val(l.default.strToTime(o)),r()(".timer-stop-input").val(l.default.strToTime(a)),n.setClipTimeAndUpdateValues(o,a,n))},setClipTimeAndUpdateValues:function(e,t,i){var n=i.currentSelectedClip||{},r=n.footage?n.footage.type:"blur";n.startFrom=e,n.endAt=t,("calloutimage"===r||"sticker"===r||"text"===r||"blur"===r)&&this.showClipTime(n,!0),this.updateCalloutClipTime(n),this.updateProjectJson()},updateCalloutClipTime:function(e){if(null!=e&&null!=e.footage&&null!=e.footage.type){var t;if("callouttext"==e.footage.type)t=this.getClipOf(e.footage.calloutId);else{if("calloutimage"!=e.footage.type||null==e.footage.textId)return;t=this.getClipOf(e.footage.textId)||{}}t.startFrom=e.startFrom,t.endAt=e.endAt}},onClipTimeChangeHandler:function(){var e=l.default.map(this.videoPlayerView.$el.find(".se-clip-time").position().left,0,this.videoPlayerView.$el.find(".components-time-container").width(),this.videoPlayerView.trimStart,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimEnd),t=l.default.map(this.videoPlayerView.$el.find(".se-clip-time").width(),0,this.videoPlayerView.$el.find(".components-time-container").width(),0,this.videoPlayerView.mediaPlayer.duration-this.videoPlayerView.trimStart-this.videoPlayerView.trimEnd),i=this.getSelectedClipOrEffect();null!=i&&(i.startFrom=e,i.endAt=i.startFrom+t,this.updateCalloutClipTime(i),this.updateProjectJson(),this.reconstructUI())},getTextFromTextEl:function(e){for(var t=e.find(".text-el-line").toArray(),i="",n=0;n<t.length;n++)i+=r()(t[n]).text()+(n+1<t.length?"\n":"");return i},newlineTextToHtml:function(e,t){var i=this,n=t.properties.text.split(/[\r\n]+/);for(var o in t.properties.textUnwrapped&&(n=t.properties.textUnwrapped.split(/[\r\n]+/),t.properties.boundingBoxRaw&&t.properties.textUnwrapped&&this.getFont(t.properties.font,t.properties.bold,t.properties.italic,(function(e){for(var r=0;r<n.length;r++){for(var o=n[r].split(/(\$[\s]*\{.*\}|\S+|\s+)/).filter((function(e){return 0!=e.length})),a=[{first:n[r]}],s=o.length-1;s>0;s--)a.push({first:o.slice(0,s).join(""),second:o.slice(s,o.length).join("")});var l=a[a.length-1].first;if(!l.replace(/\s/g,"").startsWith("${"))for(s=l.length-1;s>0;s--)a.push({first:l.slice(0,s),second:[l.slice(s,l.length),o.slice(1,o.length).join("")].join("")});for(var c=0;c<a.length;c++){if(i.getMetrics(a[c].first,i.getValueForPlayer(t.properties.fontSizeProject,!0),e).actualWidth<=t.properties.boundingBoxRaw.w)break}c=Math.min(a.length-1,c),n[r]=a[c].first,a[c].second&&n.splice(r+1,0,a[c].second)}})),t.properties.text=n.join("\n")),r()(e).empty(),n){var a=document.createElement("div");r()(a).append(n[o]),r()(a).addClass("text-el-line"),r()(a).css({"font-family":null!=l.default.getFontMap()[t.properties.font]?l.default.getFontMap()[t.properties.font].css:"","font-size":this.getValueForPlayer(t.properties.fontSizeProject,!0)+"px","font-style":t.properties.italic?"italic":"normal","font-weight":t.properties.bold?"bold":"normal",color:t.properties.color,position:"absolute","line-height":"0.7em"}),r()(e).append(a)}this.setLineHeight(t)},fontLoaded:function(e){if(null!=this.currentSelectedText){var t=this.getClipOf(this.currentSelectedText),i=this.getClipElOf(this.currentSelectedText);this.newlineTextToHtml(i.find(".se-text-container")[0],t)}},textBoxResized:function(e){(e instanceof r.a.Event||null==e)&&(e=this.currentSelectedText);var t=this.getClipOf(e),i=this.getClipElOf(e);t.properties.boundingBoxRaw={x:i.position().left,y:i.position().top,w:i.width(),h:i.height()},t.properties.boundingBox=this.getBoundingBoxForProject(t.properties.boundingBoxRaw),this.newlineTextToHtml(i.find(".se-text-container")[0],t)},webcamSnappedLayoutOnCrop:function(){var e="bottom-left";return this.projectJson&&null!=this.projectJson.webcamPosition&&(e=this.projectJson.webcamPosition),"bottom-left"==e?{x:this.cropResizable.position().left,y:this.cropResizable.position().top+this.cropResizable.height()-this.secondaryVideoContainer.height()}:"bottom-right"==e?{x:this.cropResizable.position().left+this.cropResizable.width()-this.secondaryVideoContainer.width(),y:this.cropResizable.position().top+this.cropResizable.height()-this.secondaryVideoContainer.height()}:"top-right"==e?{x:this.cropResizable.position().left+this.cropResizable.width()-this.secondaryVideoContainer.width(),y:this.cropResizable.position().top}:"top-left"==e?{x:this.cropResizable.position().left,y:this.cropResizable.position().top}:void 0},getProjectJSON:function(){return this.projectJson},getIOAdjustedProjectJSON:function(){var e=l.default.naiveClone(this.projectJson);if(null!=e.ioDetails)try{if(e.ioDetails.intro&&e.ioDetails.intro.theme>0){for(var t=e.ioDetails.intro,i=t.duration,n=i,r=0;r<e.clips.length;r++)e.clips[r].deleted||e.clips[r].properties.isPlaceHolder||(e.clips[r].position=parseInt(e.clips[r].position)+i,n=Math.min(n,e.clips[r].position));var o=e.totalVideoTracks;for(r=0;r<t.clips.length;r++){if(!(d=t.clips[r]).deleted&&!d.properties.isPlaceHolder){var a=r+1;n<i&&(a+=o),a>e.totalVideoTracks&&(e.totalVideoTracks++,e.trackNames.push(d.properties.text)),d.track=a,e.clips.push(d)}}}if(e.ioDetails.outro&&e.ioDetails.outro.theme>0){var s=e.ioDetails.outro,c=0;for(r=0;r<e.clips.length;r++)e.clips[r].deleted||e.clips[r].properties.isPlaceHolder||(c=Math.max(c,parseInt(e.clips[r].position)+e.clips[r].end-e.clips[r].start));for(r=0;r<s.clips.length;r++){var d;if(!(d=s.clips[r]).deleted&&!d.properties.isPlaceHolder)(a=r+1)>=e.totalVideoTracks&&(e.totalVideoTracks++,e.trackNames.push(d.properties.text)),d.position=c,d.track=a,e.clips.push(d)}}}catch(e){console.error(e)}return e},overrideStyle:function(e,t,i){e.each((function(){this.style.setProperty(t,i,"important")}))},applyCustomColors:function(){this.customColors&&(this.customColors.primaryColor&&(this.overrideStyle(this.$el.find(".trim-slider .ui-slider-handle"),"background",this.customColors.primaryColor),this.overrideStyle(this.$el.find(".trim-slider .ui-slider-range"),"border-color",this.customColors.primaryColor)),this.customColors.secondaryColor&&this.overrideStyle(this.$el.find(".trim-slider .ui-slider-range"),"background",this.customColors.secondaryColor),this.customColors.bgColor&&this.overrideStyle(this.$el.find(".trim-slider"),"background",this.customColors.bgColor))},addCustomFontStyles:function(){var e=document.createElement("style");for(var t in l.default.getFontMap()){var i=l.default.getFontMap()[t];e.appendChild(document.createTextNode("@font-face { font-family: '"+i.family+"'; font-style: normal; font-weight: 400; src: url('"+this.getFontURL(t,!1,!1)+"') format('truetype'); }")),e.appendChild(document.createTextNode("@font-face { font-family: '"+i.family+"'; font-style: normal; font-weight: bold; src: url('"+this.getFontURL(t,!0,!1)+"') format('truetype'); }")),e.appendChild(document.createTextNode("@font-face { font-family: '"+i.family+"'; font-style: italic; font-weight: 400; src: url('"+this.getFontURL(t,!1,!0)+"') format('truetype'); }")),e.appendChild(document.createTextNode("@font-face { font-family: '"+i.family+"'; font-style: italic; font-weight: bold; src: url('"+this.getFontURL(t,!0,!0)+"') format('truetype'); }"))}document.head.appendChild(e)},getFontURL:function(e,t,i){var n=e;return t&&i?n+="bi":t?n+="bd":i&&(n+="i"),"https://fontstatic.s3-accelerate.amazonaws.com/"+e+"/"+n+".ttf"},getMetrics:function(e,t,i){for(var n=0,r=0,o=0,a=1/i.unitsPerEm*t,s=i.stringToGlyphs(e.replace(/\s/g,"")),l=0;l<s.length;l++){var c=s[l];if(c.advanceWidth&&(o+=c.advanceWidth*a),l<s.length-1)o+=i.getKerningValue(c,s[l+1])*a;n=Math.max(n,c.yMax),r=Math.min(r,c.yMin)}var d=i.getPath(e,0,0,t);return{actualWidth:d.getBoundingBox().x2-d.getBoundingBox().x1,width:o,actualBoundingBoxAscent:n*a,actualBoundingBoxDescent:r*a,actualHeight:n*a-r*a,fontBoundingBoxAscent:i.ascender*a,fontBoundingBoxDescent:i.descender*a,fontHeight:i.ascender*a-i.descender*a}},globalKeypress:function(e){var t=e.keyCode;0==this.videoPlayerView.$el.find(".timer-pop-up").find(r()(e.target)).length&&(!this.isMac&&46===t||this.isMac&&8===t)&&this.deleteClipOrEffectSelected()},deleteClipOrEffectSelected:function(){null!=this.currentSelectedBlur?this.deleteBlur():null!=this.currentSelectedSticker?this.deleteSticker():null!=this.currentSelectedCallout?this.deleteCallout():null!=this.currentSelectedText&&(this.videoPlayerView.$el.find(".se-text-editable").is(":visible")||this.deleteText())},setBorderForClipOnVideoSeek:function(){var e=this.getSelectedClipOrEffect();null!=e&&(null!=this.currentSelectedBlur?(this.videoPlayerView.$el.find("#se-effects-"+e.id).removeClass("black white"),this.setAdaptiveBorderForTarget(this.videoPlayerView.$el.find("#se-effects-"+e.id))):(this.videoPlayerView.$el.find("#se-component-"+e.id).removeClass("black white"),this.setAdaptiveBorderForTarget(this.videoPlayerView.$el.find("#se-component-"+e.id))))},getSelectedClipOrEffect:function(){var e=null!=this.currentSelectedText?this.currentSelectedText:null!=this.currentSelectedSticker?this.currentSelectedSticker:null!=this.currentSelectedCallout?this.currentSelectedCallout:void 0;if(null!=e)return this.getClipOf(e);if(null!=this.currentSelectedBlur){e=this.currentSelectedBlur;var t=(this.getClipOf(this.sessionDetails.primaryVideo)||{}).effects||[];return o.default.where(t,{id:Number(e)})[0]||{}}}})},function(e,t,i){"use strict";i.d(t,"a",(function(){return f}));var n,r=i(1),o=i.n(r),a=i(69),s=i.n(a),l=i(222),c=i(223),d=i(4),u=i.n(d),p=i(3).c.div(n||(n=u()(["\n position: fixed;\n z-index: 100003;\n width: auto;\n ",";\n ",";\n ",";\n ",";\n"])),(function(e){return"bottom"==e.config.verticalPosition&&"bottom : 0px"}),(function(e){return"top"==e.config.verticalPosition&&"top : 0px"}),(function(e){return"left"==e.config.horizontalPosition&&"left : 0px"}),(function(e){return"right"==e.config.horizontalPosition&&"right : 0px"}));function h(e){var t=e.stream,i=e.recordingConfig,n=Object(r.useRef)(),a=Object(r.useRef)(),s=i?i.webcamShape:"rectangle",d=i?i.webcamPosition:"bottom-left",u=d.split("-")[0],h=d.split("-")[1];console.log("verticalPosition = ",u),console.log("horizontalPosition = ",h);var f={horizontalPosition:h,verticalPosition:u,webcamShape:s};return console.log("webcam preview while recording"),window.videoPreviewRef=n,window.lightingCanvasRef=a,o.a.createElement(p,{config:f},o.a.createElement(l.a,{stream:t,ref:n,recordingConfig:i}),t&&o.a.createElement(c.a,{ref:a}))}function f(e){var t=m();console.log("ROOT ELEMENT ",t),s.a.render(o.a.createElement(h,{stream:e.stream,recordingConfig:e.recordingConfiguration}),t)}var m=function(){if(document.getElementsByClassName("hv-rapi-webcam-preview").length>0)return document.getElementsByClassName("hv-rapi-webcam-preview")[0];var e=document.createElement("div");return e.className="hv-rapi-webcam-preview",document.body.appendChild(e),e}},function(e,t,i){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(r.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(r.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},i(482),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,i(102))},function(e,t,i){"use strict";i.r(t),function(e){i.d(t,"removeWidget",(function(){return U})),i.d(t,"initialize",(function(){return z})),i.d(t,"availableRecordingSupport",(function(){return j})),i.d(t,"RecorderWidget",(function(){return q})),i.d(t,"ImportWidget",(function(){return $})),i.d(t,"EditWidget",(function(){return W}));i(78);var n=i(51),r=i.n(n),o=i(55),a=i.n(o),s=i(42),l=i.n(s),c=i(37),d=i.n(c),u=i(38),p=i.n(u),h=i(77),f=i.n(h),m=i(95),g=i.n(m),v=(i(52),i(23),i(88),i(60),i(65),i(54),i(66),i(110),i(244),i(62)),y=i.n(v),b=i(1),w=i.n(b),S=i(69),C=i.n(S),k=i(31),x=i(6);i.d(t,"AUTHENTICATION_TYPES",(function(){return x.e})),i.d(t,"RECORDER_TYPES",(function(){return x.q}));var _=i(218),E=i(17);i.d(t,"RECORDING_INITIATORS",(function(){return E.c}));var T=i(183),P=i(430),I=i(428),A=i(7),R=i(9);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l()(e);if(t){var r=l()(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return a()(this,i)}}var N,D,L=["sdk_loaded","countdown_timer","countdown_complete","record_initiated","record_started","record_details","record_paused","record_resumed","record_stopped","record_aborted","record_error","video_cancelled","video_submitted","import_progress","import_complete","import_failed","source_uploaded","_initiate_screen_recording_extension","_got_stream"],M=!1,B={},F={screen:"screenRecord",webcam:"webCam",system_audio:"systemAudio",tab_recording:"tabRecording",separate_layer:"separateLayer",from_popup:"fromPopup",aspect_ratio:"aspectRatio",record_config:"recordConfig"};function V(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="";window&&window.performance&&(t="".concat(Math.round(window.performance.now())));for(var i=e.length,n=0;n<10;n++)t+=e.charAt(Math.floor(Math.random()*i));return t}var U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.getElementById("recorder1");try{C.a.unmountComponentAtNode(e)}catch(e){}},z=function(){var e=g()(y.a.mark((function e(t,i){var n,r,o,a,s,l,c,d,u,p,h,m,g,v,b,w,S,C,k;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{console.log("HIPPO SDK CHUNK HOST","".concat("https://antojoy-video-server.s3.us-west-2.amazonaws.com/recorder/stable/v0.0.43/app/")),window.hvExtensionChunkDomain="https://antojoy-video-server.s3.us-west-2.amazonaws.com/recorder/stable/v0.0.43/app/"}catch(e){console.log(">>> ",e)}if(t){e.next=4;break}return i&&i(null,{error:"INVALID_CONFIGURATION",message:"The configuration passed is invalid"}),e.abrupt("return");case 4:if(n=t.token,r=t.email,o=t.token_type,a=void 0===o?x.e.RECORDER_SDK_TOKEN:o,s=t.environment,l=t.extensionId,c=t.type,d=void 0===c?x.q.GENERIC_RECORDER:c,u=t.initiator,p=void 0===u?E.c.RECORDER_SDK:u,D=l,ee({extensionId:l,integrationType:d}),window._HVDomain=window._HVDomain||"https://www.hippovideo.io",n){e.next=11;break}return i&&i(null,{error:"TOKEN_NOT_FOUND",message:"The token was not passed in the method"}),e.abrupt("return");case 11:return h=new _.a({token:n,email:r,tokenType:a}),e.next=14,h.authenticateToken();case 14:if(m=e.sent,g=m[0],v=m[1],!g){e.next=27;break}if(w=g.data,S=w.user_id,!w.error){e.next=23;break}return i&&i(null,w),e.abrupt("return");case 23:C=V(),B[C]=(b={token:n,tokenType:a,email:r,integrationType:d,initiator:p,userId:S,environment:s,initialized:!0},f()(b,"tokenType",a),f()(b,"extensionId",l),b),Z(n),i&&i({key:C},null);case 27:if(!v){e.next=31;break}return k={error:"NETWORK_ERROR",message:"There was a network error. Please check network connection and try again"},i&&i(null,k),e.abrupt("return");case 31:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();function j(){var e=Object(k.f)();return e.recording&&delete e.recording.system_audio,e}var H=function(){function t(e,i){var n=this,r=i.type,o=i.settings,a=void 0===o?{}:o;if(d()(this,t),!B.hasOwnProperty(e))throw new Error("INVALID_KEY");var s=a.extensionless,l=a.inline;if(this.recordingInProgress=!1,this.recorderSettings=a,this.eventCallbackMap={},B[e].initialized){if(window.HippoVideo||(window.HippoVideo={}),this.eventListenerClass="hvr-evl-".concat((new Date).getTime()),this.recorderClassName="hv-recorder-".concat((new Date).getTime()),this.targetElement,this.extensionless=s,this.videoDimension=function(){var e={},t=window.innerHeight,i=t*(16/9);console.log("sdkmv3 1 videoResHeight videoResWidth : ",window.innerHeight,window.innerWidth,t,i),window.innerWidth<i+120&&(i=window.innerWidth,t=(i-=120)*(9/16));return e.width=i,e.height=t,console.log("sdkmv3 videoDimension : ",e),console.log("sdkmv3 videoResHeight videoResWidth : ",t,i),e}(),l){var c=l.element_id,u=l.element;if(c&&(this.targetElement=document.getElementById(c)),u&&(this.targetElement=u),!this.targetElement&&document.getElementsByTagName("hippo-video-recorder")[0]&&(this.targetElement=document.getElementsByTagName("hippo-video-recorder")[0]),!this.targetElement)return void Q(this.eventCallbackMap,"record_error",{error:"inline_element_not_provided",message:'Parent element for adding recorder not found. Please pass the element id or element or set config "popup" as true.'})}else this.targetElement=(p="hvr-popup-".concat((new Date).getTime()),(h=document.createElement("div")).setAttribute("id",p),h.style.cssText="display:none;z-index: 100003;position: absolute;width: 100%;height: 100%;top: 0;left: 0;justify-content: center;align-items: center;background: rgba(0,0,0,0.72);",document.body.appendChild(h),h),this.popupElement=this.targetElement;var p,h;U(this.targetElement),this.targetElement.innerHTML="";var f=Object(R.a)("hippo_recorder/recorderapi/recorderapi.js");Promise.all(f).then((function(){C.a.render(w.a.createElement(T.b,{settings:a,userId:B[e].userId,type:r,integrationType:B[e].integrationType,initiator:B[e].initiator,tokenType:B[e].tokenType,token:B[e].token,email:B[e].email,extensionId:B[e].extensionId,isExtensionAvailable:M,recorderClassName:n.recorderClassName,eventListenerClass:n.eventListenerClass,eventCallback:function(e){return n._cb(e)},videoDimension:n.videoDimension}),n.targetElement)}))}else Q(this.eventCallbackMap,"record_error",{error:"recorder_not_initialized",message:"Recorder not initialized. Please call initialize method first."})}return p()(t,[{key:"open",value:function(){re(this.eventListenerClass,"open_widget"),this.popupElement&&(this.popupElement.style.display="flex")}},{key:"remove",value:function(){U(this.targetElement),this.popupElement&&(this.popupElement.style.display="none")}},{key:"on",value:function(e,t){L.includes(e)&&(this.eventCallbackMap[e]=t),"sdk_loaded"===e&&this.sdkLoaded&&this.eventCallbackMap[e]()}},{key:"getPageUrl",value:function(){var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.href}},{key:"_cb",value:function(t){if(Q(this.eventCallbackMap,t.type,t.detail),"sdk_loaded"===t.type&&(this.sdkLoaded=!0),"_record_started"===t.type){var i=t.detail||{};this.recordingInProgress=!0,i.showWebcamPreview&&te(i),i.showMarkupTools&&(n=this.recordingConfiguration,r=this.eventListenerClass,function(t,i){e('<div class="hv-focus-overlay" id="hvOverlayDiv" style="display: none;"> <div id="hvOverlayCircle"></div> </div>').appendTo("body"),e('<div id="hvHighLightDiv" class="hv-highlight-div" style="pointer-events: none">').appendTo("body"),e('<canvas id="hvCanvas" style="opacity:0.6;position: absolute;z-index:1000003;top: 0;height: 100%;left: 0;background-color: transparent;width: 100%;"></canvas>').appendTo("body"),function(t,i){e('<style>#hippo-overlay{\r\n\tposition: relative;\r\n\tz-index: 2555555;\r\n}\r\n#hvStop {\r\nmargin-bottom: 3px;\r\n}\r\n#hvPen{\r\nmargin-bottom: 2px;\r\n}\r\n#hvFocusArea{\r\nmargin-bottom: 2px;\r\n}\r\n#hvEraser {\r\nmargin-bottom: 2px;\r\n}\r\n#hvClearScreen{\r\nmargin-bottom: 5px;\r\n}\r\n#hippo-overlay-screenrecord{\r\n\tposition: fixed;\r\n\tleft: 0px;\r\n\tbottom: 0px;\r\n\tdisplay: none;\r\n\tborder: 0px solid gray;\r\n\tborder-radius: 5px !important;\r\n}\r\n#hippo-overlay-time {\r\n\tposition: fixed;\r\n\ttext-align: center;\r\n\ttop: 30%;\r\n\tleft:41.5%;\r\n\twidth: 250px;\r\n\theight:250px;\r\n\tborder-radius: 50%;\r\n\tdisplay: none;\r\n\tbackground-color: rgba(0, 0, 0, 0.5);\r\n\tborder:5px solid #f47a58;\r\n\tfont-family: \'Open Sans\';\r\n background-repeat: no-repeat;\r\n background-position: 50% 50%;\r\n\tbox-sizing: content-box;\r\n}\r\n#hippo-overlay-time span\r\n{\r\n\tfont-size: 3.750em !important;\r\n\tcolor: #f47a58 !important;\r\n\ttop: 85px;\r\n\tleft: 110px;\r\n\tposition: absolute;\r\n\tmargin-left:-11px;\r\n\tline-height: normal;\r\n}\r\n.hippo-embed-countdown {\r\n\tbackground-image: none !important;\r\n\tbackground-color: #fff !important;\r\n\tborder: 11px solid #000 !important;\r\n}\r\n.hippo-embed-countdown #countdown {\r\n\tposition: unset !important;\r\n\tmargin-left: 0 !important;\r\n\tdisplay: inline-block !important;\r\n\tmargin-left: 0 !important;\r\n\tfont-family: sans-serif !important;\r\n\tfont-weight: 600 !important;\r\n\tfont-size: 91px !important;\r\n\tmargin-top: 79px !important;\r\n\tcolor: #000 !important;\r\n\tfont-family: "proxima-nova", "Open Sans", "Helvetica Neue", sans-serif;\r\n}\r\n.hippo-video-countdown {\r\n\tbackground-image: none !important;\r\n\tbackground-color: #fff !important;}\r\n.hippo-video-countdown #countdown {\r\n\tposition: unset !important;\r\n\tmargin-left: 0 !important;\r\n\tdisplay: inline-block !important;\r\n\tmargin-left: 0 !important;\r\n\tfont-family: sans-serif !important;\r\n\tfont-weight: 600 !important;\r\n\tfont-size: 91px !important;\r\n\tmargin-top: 79px !important;\r\n\tfont-family: "proxima-nova", "Open Sans", "Helvetica Neue", sans-serif;\r\n}\r\n\r\n.hv-focus-overlay {\r\n top: 0;\r\n left: 0;\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n pointer-events: none;\r\n z-index: 10000001;\r\n}\r\n\r\n#hvOverlayCircle:after {\r\n content: \'\';\r\n position: absolute;\r\n z-index: 10000000000000000;\r\n left: -75px;\r\n top: -75px;\r\n border-radius: 100%;\r\n width: 150px;\r\n height: 150px;\r\n box-shadow: 0px 0px 0px 3000px rgba(0, 0, 0, 0.39);\r\n pointer-events: none;\r\n}\r\n\r\n.hv-highlight-div{\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n top: 0;\r\n z-index: 10000;\r\n}\r\n\r\n/*Highlight Featues Panel CSS*/\r\n.hv-act-comp-bottom-right {\r\n width: 333px; \r\n position: fixed;\r\n right: 30px;\r\n bottom: 0;\r\n -background-color: #424242;\r\n background-color: rgba(66, 66, 66, 0.8);\r\n max-height: 43px;\r\n -overflow: hidden;\r\n border: 0;\r\n border-radius: 5px 5px 0 0;\r\n cursor: default;\r\n z-index: 10000001;\r\n}\r\n\r\n.hv-act-comp-bottom-left {\r\n position: fixed;\r\n left: 30px;\r\n bottom: 0;\r\n -background-color: #424242;\r\n background-color: rgba(66, 66, 66, 0.8);\r\n max-height: 43px;\r\n -overflow: hidden;\r\n border: 0;\r\n border-radius: 5px 5px 0 0;\r\n cursor: default;\r\n z-index: 10000001;\r\n}\r\n\r\n.hv-highlight-options-div {\r\n -width: 330px;\r\n transition: all 300ms ease-out;\r\n}\r\n.hv-close-highlight-feature-panel {width: 0px;}\r\n/*Highlight Featues Panel CSS Ends*/\r\n\r\n\r\n/*Highlight option Icons and its effects*/\r\n.hv-icon-out-space {\r\n display: inline-block;\r\n padding-top: 13px;\r\n padding-right: 15px;\r\n padding-left: 15px;\r\n padding-bottom: 15px;\r\n cursor: pointer;\r\n}\r\n.hv-icon-out-space img {cursor: pointer;}\r\n.hv-icon-out-space:hover {background-color: #313131;}\r\n\r\n.hv-icon-out-disable {\r\n position: relative;\r\n top: -15px;\r\n opacity: .3;\r\n}\r\n\r\n.hv-icon-out-disable:hover {\r\n background-color: rgba(66, 66, 66, 0.8) !important;\r\n}\r\n\r\n.hv-pause-play {border-radius: 5px 0px 0px 0px;}\r\n\r\n.hv-togarrow-spacer {\r\n position: absolute;\r\n background-color: transparent;\r\n border-left: 1px solid;\r\n display: inline-block;\r\n border-radius: 0 5px 0px 0;\r\n cursor: pointer;\r\n}\r\n.hv-togarrow {padding: 16px 5px 19px 5px;}\r\n.hv-togarrow-left {\r\n padding: 16px 5px 19px 5px;\r\n transform: rotate(-180deg);\r\n}\r\n.hv-togarrow:hover {background-color: #313131;}\r\n\r\n.hv-active-tool {background-color: #313131;}\r\n/*Highlight option Icons and its effects ends*/\r\n\r\n/*Collape*/\r\n.hv-collapsed {\r\n width: 45px;\r\n\r\n background-color: rgba(49, 49, 49, 0.85);\r\n border-radius: 5px;\r\n padding: 10px;\r\n position: absolute;\r\n top: 0;\r\n right: 0px;\r\n max-height: 43px;\r\n cursor: pointer;\r\n transition: all 300ms ease-out;\r\n}\r\n.hv-collapsed-move {right: -30px;}\r\n/*Collape Ends*/\r\n\r\n/*Tooltip Panel*/\r\n.hv-tooltip-panel {\r\n width: 300px;\r\n -background-color: #313131;\r\n background-color: rgba(49, 49, 49, 0.85);\r\n padding: 12px 0px;\r\n border-radius: 5px 5px 0 0;\r\n font-size: 13px;\r\n font-weight: lighter;\r\n color: #ffffff;\r\n text-align: center;\r\n letter-spacing: 0.3px;\r\n margin: 0 auto;\r\n position: absolute;\r\n bottom: 43px;\r\n left: 0;\r\n right: 0;\r\n transition: all 300ms ease-out;\r\n line-height: 17px;\r\n white-space: pre-line;\r\n}\r\n.hv-tooltip-panel-toggle {bottom: -50px;}\r\n/*Tooltip Panel Ends*/\r\n\r\n.disp-none {display: none !important;}\r\n\r\n/*Color Palet*/\r\n.hv-choose-color-panel {\r\n background-color: #313131;\r\n border-radius: 5px 5px 0 0;\r\n max-height: 46px;\r\n overflow: hidden;\r\n position: absolute;\r\n top: -48px;\r\n left: 99px;\r\n line-height: 0;\r\n padding: 13px 5px 13px 10px;\r\n cursor: default;\r\n transition: top 300ms ease;\r\n display: none;\r\n}\r\n.hv-change-color-circle {\r\n width: 20px !important;\r\n height: 20px !important;\r\n border-radius: 100%;\r\n border: 1px solid transparent;\r\n margin-right: 5px;\r\n display: inline-block;\r\n cursor: pointer;\r\n}\r\n\r\n.hv-remove-highlight-div {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\ttop: 0;\r\n\tz-index: 10000;\r\n\tpointer-events: none !important;\r\n}\r\n\r\n.hv-add-highlight-div {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\ttop: 0;\r\n\tz-index: 10000;\r\n}\r\n\r\n.hv-add-eraser {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\ttop: 0;\r\n\tz-index: 10000;\r\n}\r\n\r\n.hv-remove-canvas {\r\n\topacity:0.5;\r\n\tpointer-events: none;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tbackground-color: transparent;\r\n\twidth: 100%;\r\n}\r\n\r\n.hv-add-canvas {\r\n\topacity:0.5;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tpointer-events: all;\r\n\tleft: 0;\r\n\tbackground-color: transparent;\r\n\twidth: 100%;\r\n}\r\n\r\n.hv-add-canvas-eraser {\r\n\topacity:0.5;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tbackground-color: transparent;\r\n\twidth: 100%;\r\n}\r\n\r\n.hv-pause-play{\r\n width: 46px;\r\n height: 44px;\r\n padding: 0px;\r\n text-align: center;\r\n position: relative;\r\n top: -17px;\r\n line-height: 59px;\r\n}\r\n\r\n.hv-black-color {background-color: #000000;}\r\n.hv-red-color {background-color: #ff0000;}\r\n.hv-violet-color {background-color: #8170cd;}\r\n.hv-orange-color {background-color: #ff9a44;}\r\n.hv-green-color {background-color: #7ddc68;}\r\n.hv-blue-color {background-color: #1edde1;}\r\n/*Color Palet Ends*/\r\n\r\n.hv-icon-selected #hvCursorAnimationImg {display: none;}\r\n.hv-icon-selected #hvCursorAnimationImgActive {display: block;}\r\n.hv-icon-unslected #hvCursorAnimationImg {display: block;}\r\n.hv-icon-unslected #hvCursorAnimationImgActive {display: none;}\r\n\r\n.hv-icon-selected #hvPenImg {display: none;}\r\n.hv-icon-selected #hvPenImgActive {display: block;}\r\n.hv-icon-unslected #hvPenImg {display: block;}\r\n.hv-icon-unslected #hvPenImgActive {display: none;}\r\n\r\n.hv-icon-selected #hvFocusImg {display: none;}\r\n.hv-icon-selected #hvFocusImgActive {display: block;}\r\n.hv-icon-unslected #hvFocusImg {display: block;}\r\n.hv-icon-unslected #hvFocusImgActive {display: none;}\r\n\r\n.hv-icon-selected #hvEraseImg {display: none;}\r\n.hv-icon-selected #hvEraseImgActive {display: block;}\r\n.hv-icon-unslected #hvEraseImg {display: block;}\r\n.hv-icon-unslected #hvEraseImgActive {display: none;}\r\n\r\n.hv-icon-selected #hvClearImg {display: none;}\r\n.hv-icon-selected #hvClearImgActive {display: block;}\r\n.hv-icon-unslected #hvClearImg {display: block;}\r\n.hv-icon-unslected #hvClearImgActive {display: none;}\r\n\r\n/*.hv-icon-selected #hvPauseImg {display: none;}\r\n.hv-icon-selected #hvPauseImgActive {display: block;}\r\n.hv-icon-unslected #hvPauseImg {display: block;}\r\n.hv-icon-unslected #hvPauseImgActive {display: none;}*/\r\n\r\n.hv-icon-selected #hvStopImg {display: none;}\r\n.hv-icon-selected #hvStopImgActive {display: block;}\r\n.hv-icon-unslected #hvStopImg {display: block;}\r\n.hv-icon-unslected #hvStopImgActive {display: none;}\r\n\r\n/*intro-div*/\r\n.hv-feature-intro-div {\r\n position: fixed;\r\n top: 0;\r\n overflow: hidden;\r\n width: 100%;\r\n height: 100%;\r\n background-color: rgba(0,0,0,0.8);\r\n z-index: 1000;\r\n}\r\n.hv-feature-intro-div .hv-feature-intro-div-inner {\r\n position: relative;\r\n top: 30%;\r\n width: 800px;\r\n margin: 0 auto;\r\n text-align: center;\r\n color: #fff;\r\n font-weight: 300;\r\n font-size: 16px;\r\n letter-spacing: 0.2px;\r\n line-height: 30px;\r\n}\r\n.hv-arrow-pointer {\r\n position: absolute;\r\n top: 100px;\r\n right: 0;\r\n -webkit-animation: fling-arrow 5s infinite;\r\n animation: fling-arrow 5s infinite;\r\n}\r\n@-webkit-keyframes fling-arrow {\r\n 0% {top: 100px;}\r\n 50% {top: 200px;}\r\n 100% {top: 100px;}\r\n}\r\n@keyframes fling-arrow {\r\n 0% {top: 100px;}\r\n 50% {top: 200px;}\r\n 100% {top: 100px;}\r\n}\r\n.hv-primary-btn-2 {\r\n background-image: linear-gradient(to right, rgb(252, 96, 118) 0%, rgb(255, 154, 68) 51%, rgb(255, 154, 68) 100%);\r\n background-size: 200%;\r\n border-radius: 3px;\r\n box-sizing: border-box;\r\n color: rgb(255, 255, 255);\r\n cursor: pointer;\r\n font-family: "Open Sans";\r\n font-size: 13px;\r\n font-weight: 500;\r\n letter-spacing: 0.2px;\r\n margin: 10px 4px 10px 4px;\r\n padding: 8px 20px 9px 20px;\r\n text-align: center;\r\n text-transform: uppercase;\r\n transition-duration: 0.9s;\r\n transition-property: all;\r\n transition-timing-function: ease;\r\n border: unset;\r\n background-color: unset;\r\n}\r\n.hv-primary-btn {\r\n max-height: 35px;\r\n background-image: linear-gradient(120deg, #fc6076 0%, #ff9a44 100%);\r\n padding-top: 8px;\r\n padding-bottom: 7px;\r\n padding-left: 20px;\r\n padding-right: 20px;\r\n letter-spacing: 0.5px;\r\n transition: 0.5s;\r\n box-shadow: inset 0 0 0 0 #fc6076;\r\n border: 0;\r\n border-radius: 5px;\r\n font-size: 13px;\r\n font-weight: 300;\r\n color: #ffffff;\r\n outline: none;\r\n cursor: pointer;\r\n}\r\n.hv-primary-btn:hover {\r\n background-image: linear-gradient(120deg, #ff9a44 0%, #fc6076 100%);\r\n background-position: right center;\r\n}\r\n.hv-pen-cusor-area{\r\n position: fixed;\r\n\r\n}\r\n.hv-cancel-btn {\r\n\tmargin-right: 10px;\r\n\ttop: 18px;\r\n bottom: 0;\r\n position: relative;\r\n color: #4a90e2 !important;\r\n cursor: pointer;\r\n}\r\n.hv-cancel-btn:hover {\r\n text-decoration: underline;\r\n}\r\n#hippo-overlay-div {\r\n height: 100%;\r\n width: 100%;\r\n background-color: rgba(0,0,0,0.6);\r\n position: fixed;\r\n z-index: 1000001;\r\n top:0;\r\n text-align: center;\r\n}\r\n\r\n#hippo-inner-div {\r\n width: 700px;\r\n left: calc(50% - 350px);\r\n height: 506px;\r\n background-color: #fff;\r\n border-radius: 10px;\r\n position: absolute;\r\n top: 12%;\r\n bottom: 0px;\r\n}\r\n\r\n#hippo-action-div{\r\n position: absolute;\r\n bottom: 10px;\r\n left: 27px;\r\n width: 100%;\r\n}\r\n\r\n.hv-stop-recording-btn{\r\n font-size:14px;\r\n background-size: 200% auto;\r\n background-image: linear-gradient(to right, #fc6076 0%, #ff9a44 31%, #ff9a44 100%);\r\n padding: 8px 30px 8px 30px;\r\n border-radius: 4px;\r\n float: right;\r\n margin-right: 61px;\r\n color: #fff;\r\n cursor: pointer;\r\n}\r\n.hv-webcam-play-btn{\r\n font-size: 14px;\r\n background-color: #8b8b8b;\r\n padding: 8px 30px 8px 30px;\r\n border-radius: 4px;\r\n float: right;\r\n color: #fff;\r\n right: 25px;\r\n margin-left: -30px;\r\n position: relative;\r\n cursor: pointer;\r\n}\r\n\r\n#hv-iframe-overlay-div-drag {\r\n z-index: 100000;\r\n height: 200px;\r\n width: 271px;\r\n}\r\n\r\n.hv-webcam-rectangle-bottom-left{\r\n position: fixed;\r\n bottom:0;\r\n left:0;\r\n height:200px;\r\n z-index:1000000;\r\n border:0;\r\n display:none;\r\n}\r\n\r\n.hv-webcam-rectangle-bottom-right{\r\n position: fixed;\r\n bottom:0;\r\n right:0;\r\n height:200px;\r\n z-index:1000000;\r\n border:0;\r\n display:none;\r\n}\r\n\r\n.hv-webcam-rectangle-top-left{\r\n position: fixed;\r\n top:0;\r\n left:0;\r\n height:200px;\r\n z-index:1000000;\r\n border:0;\r\n display:none;\r\n}\r\n\r\n.hv-webcam-rectangle-top-right{\r\n position: fixed;\r\n top:0;\r\n right:0;\r\n height:200px;\r\n z-index:1000000;\r\n border:0;\r\n display:none;\r\n}\r\ndiv.clickEffect{\r\n position:fixed;\r\n box-sizing:border-box;\r\n border-style:solid;\r\n border-color:#ff160b;\r\n border-radius:50%;\r\n animation:clickEffect 0.6s ease-out;\r\n z-index:10000001;\r\n pointer-events: none;\r\n}\r\n@keyframes clickEffect{\r\n 0%{\r\n opacity:1;\r\n width:0.5em;\r\n height:0.5em;\r\n margin:-0.25em;\r\n border-width:8px;\r\n transform: scale(0.6, 0.6);\r\n }\r\n 100%{\r\n opacity:0.4;\r\n width:15em; height:15em;\r\n margin:-7.5em;\r\n border-width:0.48px;\r\n transform: scale(0.4, 0.4);\r\n }\r\n}\r\n\r\ndiv.clickEffect2{\r\n position:fixed;\r\n box-sizing:border-box;\r\n border-style:solid;\r\n border-color:#ff160b;\r\n border-radius:50%;\r\n animation:clickEffect2 0.6s ease-out;\r\n z-index:10000001;\r\n pointer-events: none;\r\n}\r\n@keyframes clickEffect2{\r\n 0%{\r\n opacity:1;\r\n width:1em;\r\n height:1em;\r\n margin:-0.5em;\r\n border-width:8px;\r\n transform: scale(0.6, 0.6);\r\n }\r\n 100%{\r\n opacity:0.4;\r\n width:15em; height:15em;\r\n margin:-7.5em;\r\n border-width:0.48px;\r\n transform: scale(0.4, 0.4);\r\n }\r\n}\r\n.hv-blink-right, .hv-blink-left{\r\n width: 2px;\r\n height: 2px;\r\n background-color: white;\r\n animation: blink 1s infinite;\r\n opacity:0.1;\r\n border: 1px solid black;\r\n position: fixed;\r\n bottom:0;\r\n display: none;\r\n}\r\n.hv-blink-right{\r\n right: 0;\r\n}\r\n.hv-blink-left{\r\n left: 0;\r\n}\r\n\r\n@keyframes blink {\r\n 0% {transform: scale(1, 1);}\r\n 50% {transform: scale(1.3, 1.3);}\r\n}\r\n#hv-recordingTimer {\r\n font-size: 35px;\r\n font-weight: lighter;\r\n font-family: \'Open Sans\';\r\n color: #ef5253;\r\n text-align: center;\r\n margin-top: 5px !important;\r\n margin-left: 5px;\r\n float: left;\r\n}\r\n\r\n@keyframes fadeInOut {\r\n 0% {opacity: 0}\r\n 50% {opacity: 1}\r\n 100% {opacity: 0}\r\n}\r\n#recording-blinking {\r\n animation: fadeInOut 1s linear infinite;\r\n color: red;\r\n font-size: 12px;\r\n margin-bottom: 8px;\r\n text-align: center;\r\n padding-top: 5px;\r\n}\r\n#recording-blinking img{\r\n margin-right: 5px;\r\n position: relative;\r\n top: 6px;\r\n vertical-align: unset;\r\n}\r\n\r\n.lessonly-recording-frame {\r\n\tfont-family: "proxima-nova", "Open Sans", "Helvetica Neue", sans-serif !important;\r\n}\r\n\r\n.lessonly-recording-frame #hv-previewcontrol-stop {\r\n\twidth: 170px;\r\n\tfloat: right;\r\n\tbackground-color: #4a90e2 !important;\r\n\tbackground-image: unset;\r\n\tborder: 0;\r\n\tbox-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 1px 0 0 #4a90e2, inset 0 2px 0 0 rgba(255, 255, 255, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.09) !important;\r\n\tfont-family: "proxima-nova", "Open Sans", "Helvetica Neue", sans-serif;\r\n\tcolor: #fff;\r\n\tfont-size: 16px;\r\n\tfont-weight: normal;\r\n\tline-height: 20px;\r\n\tpadding: 0 16px;\r\n\tborder-radius: 3px;\r\n\theight: 40px;\r\n\tletter-spacing: normal;\r\n\ttext-transform: unset;\r\n\tmargin: 10px 4px;\r\n}\r\n\r\n.lessonly-recording-frame #hv-recordingTimer {\r\n color: #4a90e2 !important;\r\n font-family: "proxima-nova", "Open Sans", "Helvetica Neue", sans-serif !important;\r\n}\r\n\r\n#hv-iframe-wrapper {\r\n\twidth: 90%;\r\n margin-left: 5%;\r\n background-color: rgba(0,0,0,0.04);\r\n}\r\n.hv-align-right {\r\n\tfloat: right;\r\n}\r\n</style>').appendTo("head"),window._HVDomain;var n,r,o,a=(o="Unknown",-1!=window.navigator.userAgent.indexOf("Windows")&&(o="Windows"),-1!=window.navigator.userAgent.indexOf("Mac")&&(o="Mac"),-1!=window.navigator.userAgent.indexOf("X11")&&(o="UNIX"),-1!=window.navigator.userAgent.indexOf("Linux")&&(o="Linux"),o);if(N={isEraser:!1,isPen:!1,cursorWidth:5,canvas:null,ctx:null,flag:!1,prevX:0,currX:0,prevY:0,currY:0,dot_flag:!1,penColor:"#000000",selectedColor:0,highlightCursorWidth:10,highlightCursorHeight:10,stopIcon:Object(A.e)("/images/hv-highlight-icons/hb-stop.png"),cursorIcon:Object(A.e)("/images/hv-highlight-icons/hb-select.png"),cursorIconActive:Object(A.e)("/images/hv-highlight-icons/hb-select-active.png"),penIcon:Object(A.e)("/images/hv-highlight-icons/hb-pen.png"),penIconActive:Object(A.e)("/images/hv-highlight-icons/hb-pen-active.png"),focusIcon:Object(A.e)("/images/hv-highlight-icons/hb-focus.png"),focusIconActive:Object(A.e)("/images/hv-highlight-icons/hb-focus-active.png"),eraseIcon:Object(A.e)("/images/hv-highlight-icons/hb-erase.png"),eraseIconActive:Object(A.e)("/images/hv-highlight-icons/hb-erase-active.png"),clearIcon:Object(A.e)("/images/hv-highlight-icons/hb-clear.png"),clearIconActive:Object(A.e)("/images/hv-highlight-icons/hb-clear-active.png"),video:Object(A.e)("/images/hv-highlight-icons/hb-video-off.png"),togarrow:Object(A.e)("/images/hv-highlight-icons/hb-toggle-arrow.png"),collapsIcon:Object(A.e)("/images/hv-highlight-icons/collapse-icon.png"),penColorIcon:Object(A.e)("/images/hv-highlight-icons/pen-with-color.svg"),penCursorIcon:Object(A.e)("/images/hv-highlight-icons/pen-cusor.svg"),eraseCursorIcon:Object(A.e)("/images/hv-highlight-icons/erase-cursor.svg"),arrowPointer:Object(A.e)("/images/hv-highlight-icons/arrow-pointer.png"),mouseAnimationIcon:Object(A.e)("/images/hv-highlight-icons/hb-mouse-animation.png"),mouseAnimationIconActive:Object(A.e)("/images/hv-highlight-icons/hb-mouse-animation-active.png"),highlightsColors:["#000000","#ff0000","#8170cd","#ff9a44","#7ddc68","#1edde1"],isAlt:!1,clearAction:"hvCursor",highlightOptions:function(e){var t=e.currentTarget.id;N.selectHiglightOptions(t,!0)},checkColorPanelVisible:function(t){e(".hv-choose-color-panel").is(":visible")&&N.tooltipHide()},pausePlay:function(t){e("#hvPause").hasClass("disp-none")?(e("#hvPlay").addClass("disp-none"),e("#hvPause").removeClass("disp-none"),N.highlightsEvents("hvPlay")):(e("#hvPlay").removeClass("disp-none"),e("#hvPause").addClass("disp-none"),N.highlightsEvents("hvPause"))},pausePlayWebcam:function(t){"hvResumeWebcam"===t.currentTarget.id?(e("#hvResumeWebcam").addClass("disp-none"),e("#hvPauseWebcam").removeClass("disp-none")):(e("#hvResumeWebcam").removeClass("disp-none"),e("#hvPauseWebcam").addClass("disp-none"))},handleStopRecording:function(){console.log("SENDING EVENT ",i,"hv_stop_recording"),oe(i,"markup-tools")},cancelRecording:function(e){},selectHiglightOptions:function(t,i){if("hvClearScreen"!==t&&(N.clearAction=t),e("#"+t).hasClass("hv-active-tool")&&i)return N.resetValues(),N.highlightsEvents("hvCursor"),void N.cursor();if("hvCursor"==t&&!i)return N.resetValues(),void N.cursor();switch(N.resetValues(),e("#"+t).addClass("hv-active-tool"),e("#"+t).removeClass("hv-icon-unslected"),e("#"+t).addClass("hv-icon-selected"),i&&"hvStop"!=t&&N.highlightsEvents(t),"hvPen"!=t&&"hvEraser"!=t&&"hvFocusArea"!=t||e(document).bind("mousemove",N.mouseMove),N.isPen=!1,t){case"hvCursor":N.cursor();break;case"hvCursorAnimation":N.cursorAnimation();break;case"hvPen":N.tooltipHide(),e("#hvHighLightDiv").removeClass("disp-none"),N.pen(),e(".hv-choose-color-panel").show();break;case"hvEraser":N.eraser();break;case"hvClearScreen":N.clearScreen();break;case"hvFocusArea":N.focusArea();break;case"hvStop":N.handleStopRecording()}},resetValues:function(){e(".hv-highlight-option").removeClass("hv-active-tool"),e(".hv-highlight-option").removeClass("hv-icon-selected"),e(".hv-highlight-option").addClass("hv-icon-unslected"),e(".hv-choose-color-panel").hide(),e("#hvHighLightDiv").removeClass("hv-add-highlight-div"),e("#hvHighLightDiv").removeClass("hv-add-eraser"),e("#hvCanvas").removeClass("hv-add-canvas"),e("#hvHighLightDiv").removeClass("hv-remove-highlight-div"),e("#hvCanvas").removeClass("hv-remove-canvas"),e(".hv-pen-cusor-area").remove(),e(document).unbind("mousemove"),document.removeEventListener("mouseup",N.clickEffect)},tooltipHide:function(t){e(".hv-tooltip-panel").hide()},tooltipShow:function(i){if(clearTimeout(r),0!=N.highlightsOpen){e(".hv-tooltip-panel").show();var n=i.currentTarget.id,r=setTimeout((function(){e(".hv-tooltip-panel").hide()}),3e3);switch(n){case"hvCursor":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + M for Cursor");break;case"hvCursorAnimation":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + A for Click Animation");break;case"hvPen":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + H for Highlight \n Hit UP / DOWN arrow to change size \n LEFT / RIGHT arrow to change color");break;case"hvEraser":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + E for Eraser");break;case"hvClearScreen":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + Z for Clear screen");break;case"hvFocusArea":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + F for Focus and ESC for Cursor");break;case"hvPause":case"hvPlay":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + P for Pause and Play");break;case"hvCloseHighlight":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + C for Close");break;case"hvStop":e(".hv-tooltip-panel").text("Press "+("Mac"===a?"Option":"Alt")+" + S for Stop recording");break;case"disabledState":t.screenRecord?e(".hv-tooltip-panel").text("Upgrade needed"):e(".hv-tooltip-panel").text("")}}},color:function(e){N.highlightsEvents("hvColorChoose"),N.isEraser=!1,N.penColor=e.target.id,N.selectedColor=N.highlightsColors.indexOf(e.target.id),N.setCursor(e.target.id)},draw:function(){N.ctx.beginPath(),1==N.isEraser?N.ctx.globalCompositeOperation="destination-out":N.ctx.globalCompositeOperation="source-over",N.ctx.lineCap="round",N.ctx.moveTo(N.prevX,N.prevY),N.ctx.fillStyle=N.penColor,N.ctx.globalAlpha=1,N.ctx.lineTo(N.currX,N.currY),N.ctx.strokeStyle=N.penColor,N.ctx.lineWidth=N.cursorWidth,N.ctx.stroke()},clearScreen:function(){var e=document.body,t=document.documentElement,i=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);N.canvas.height=i;var n=N.canvas.width,r=N.canvas.height;N.ctx.clearRect(0,0,n,r),N.selectHiglightOptions(N.clearAction,!1)},focusArea:function(){e("#hvHighLightDiv").addClass("hv-remove-highlight-div"),e("#hvCanvas").addClass("hv-remove-canvas");var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);e("body").css({cursor:"default"}),e("#hvHighLightDiv").css("height",n+"px"),e("#hvOverlayDiv").show()},cursor:function(){e("#hvHighLightDiv").css({"pointer-events":"none"});var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);e("body").css({cursor:"default"}),e("#hvHighLightDiv").css("height",n+"px"),e("#hvOverlayDiv").hide(),e("#hvCanvas").addClass("hv-remove-canvas"),e("#hvCanvas").css("height",n+"px")},cursorAnimation:function(){document.addEventListener("mouseup",N.clickEffect),e("#hvHighLightDiv").css({"pointer-events":"none"});var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);e("body").css({cursor:"default"}),e("#hvHighLightDiv").css("height",n+"px"),e("#hvOverlayDiv").hide(),e("#hvCanvas").addClass("hv-remove-canvas"),e("#hvCanvas").css("height",n+"px")},clickEffect:function(e){var t=document.createElement("div");t.className="clickEffect",t.style.top=e.clientY+"px",t.style.left=e.clientX+"px",document.body.appendChild(t),t.addEventListener("animationend",function(){t.parentElement.removeChild(t)}.bind(this));var i=document.createElement("div");i.className="clickEffect2",i.style.top=e.clientY+"px",i.style.left=e.clientX+"px",setTimeout((function(){document.body.appendChild(i),i.addEventListener("animationend",function(){i.parentElement.removeChild(i)}.bind(this))}),200)},pen:function(){N.isEraser=!1,N.isPen=!0,N.setCursor(N.penColor),e("#hvHighLightDiv").addClass("hv-add-highlight-div");var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);e("#hvHighLightDiv").css("height",n+"px"),e("#hvCanvas").removeClass("hv-add-canvas-eraser"),e("#hvCanvas").addClass("hv-add-canvas"),e("#hvCanvas").css("height",n+"px"),e("#hvOverlayDiv").hide();var r='<svg class="hv-pen-cusor-area" xmlns="http://www.w3.org/2000/svg" width="'+N.highlightCursorWidth+'" height="'+N.highlightCursorHeight+'" viewBox="0 0 51 50.969"><metadata><?xpacket begin="\ufeff" id="W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about=""/></rdf:RDF></x:xmpmeta><?xpacket end="w"?></metadata><defs><style>.cls-1 {fill: none;stroke: #313131;stroke-linecap: round;stroke-linejoin: round;stroke-width: 1px;stroke-dasharray: 5 4;}</style></defs><circle class="cls-1" cx="25.5" cy="25.469" r="25"/></svg>';e(r).appendTo("body")},eraser:function(){N.isEraser=!0,e("body").css("cursor","url("+N.eraseCursorIcon+"), auto"),e("#hvHighLightDiv").addClass("hv-add-eraser"),e("#hvCanvas").addClass("hv-add-canvas-eraser"),e("#hvCanvas").css("height",n+"px");var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);e("#hvHighLightDiv").css("height",n+"px"),e("#hvOverlayDiv").hide();var r='<svg class="hv-pen-cusor-area" xmlns="http://www.w3.org/2000/svg" width="'+N.highlightCursorWidth+'" height="'+N.highlightCursorHeight+'" viewBox="0 0 51 50.969"><metadata><?xpacket begin="\ufeff" id="W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about=""/></rdf:RDF></x:xmpmeta><?xpacket end="w"?></metadata><defs><style>.cls-1 {fill: none;stroke: #313131;stroke-linecap: round;stroke-linejoin: round;stroke-width: 1px;stroke-dasharray: 5 4;}</style></defs><circle class="cls-1" cx="25.5" cy="25.469" r="25"/></svg>';e(r).appendTo("body")},mouseMove:function(t){var i=t.pageX,o=t.pageY,a=i/n,s=o/r,l=(Math.floor(100*a),Math.floor(100*s),i+"px"),c=o+"px";e("#hvOverlayCircle").css({transform:"translate("+l+","+c+") translateZ(0px)"})},closeHighlights:function(t){N.tooltipHide(),N.highlightsOpen=!1,t&&N.highlightsEvents("hvCloseHighlight"),e(".hv-tooltip-panel").hide(),e(".hv-highlight-feature-panel").animate({width:"0"},200,(function(){e(".hv-collapsed").removeClass("disp-none")})),e(".hv-highlight-options-div").addClass("hv-close-highlight-feature-panel")},openHighlights:function(t){N.highlightsOpen=!0,t&&N.highlightsEvents("hvOpenHighlight"),e(".hv-highlight-feature-panel").animate({width:"333px"},200),e(".hv-highlight-options-div").removeClass("hv-close-highlight-feature-panel"),e(".hv-highlight-options-div").show().delay(1e3),e(".hv-collapsed").addClass("disp-none")},findxy:function(t,i){"down"==t&&(N.prevX=N.currX,N.prevY=N.currY,N.currX=i.offsetX-N.canvas.offsetLeft,N.currY=i.offsetY-N.canvas.offsetTop,N.currY+=15,N.currX+=5,N.flag=!0,N.dot_flag=!0,N.dot_flag&&(N.ctx.beginPath(),N.ctx.fillStyle=N.penColor,N.ctx.fillRect(N.currX,N.currY,2,2),N.ctx.closePath(),N.dot_flag=!1)),"up"!=t&&"out"!=t||(N.flag=!1),"move"==t&&(e(".hv-pen-cusor-area").css({left:i.offsetX-N.canvas.offsetLeft-e(".hv-pen-cusor-area").width()/2+2,top:i.offsetY-N.canvas.offsetTop-e(".hv-pen-cusor-area").height()/2+17}),N.flag&&(N.prevX=N.currX,N.prevY=N.currY,N.currX=i.offsetX-N.canvas.offsetLeft+5,N.currY=i.offsetY-N.canvas.offsetTop+17,N.draw()))},windowResize:function(){var t=document.body,i=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);N.canvas.height=n,e("#hvHighLightDiv").css("height",n+"px")},highlightsEvents:function(e){},setCursor:function(t){if(t){if(0==N.isEraser){e("body").addClass("hv-"+t+"-cursor");var i='<svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24.11 23.93"><defs><style>.cls-1,.cls-2{fill:#fff;stroke:#000;stroke-miterlimit:10;}.cls-2{fill-rule:evenodd;}</style></defs><title>highlight with color</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M22.58,1.35a2.91,2.91,0,0,1,0,4.11L21.21,6.82,17.11,2.72l1.37-1.37a2.91,2.91,0,0,1,4.11,0Z"/><polygon class="cls-1" points="2.05 17.77 0.69 23.25 6.16 21.88 19.85 8.19 15.74 4.09 2.05 17.77"/><path class="cls-2" style="fill:'+t+'" d="M20.11,15.94a3.5,3.5,0,1,1-3.5,3.5,3.5,3.5,0,0,1,3.5-3.5Z"/></g></g></svg>',n='url("data:image/svg+xml,'+(i=encodeURIComponent(i.replace(/"/g,"'")))+'"), auto';e("body").css("cursor",n)}}else e("body").css({cursor:"default"})},onkeyupEvent:function(e){18==e.which&&(N.isAlt=!1)},onkeydownEvent:function(t){18==t.which&&(N.isAlt=!0),N.isPen&&[37,38,39,40].indexOf(t.keyCode)>-1&&t.preventDefault(),83==t.which&&1==N.isAlt&&N.stopRecording(),67==t.which&&1==N.isAlt&&(t.preventDefault(),N.closeHighlights(!0)),79==t.which&&1==N.isAlt&&(t.preventDefault(),N.openHighlights(!0)),90==t.which&&1==N.isAlt&&(N.selectHiglightOptions("hvClearScreen",!0),clearScreen()),69==t.which&&1==N.isAlt&&(t.preventDefault(),N.selectHiglightOptions("hvEraser",!0),N.isEraser=!0),72==t.which&&1==N.isAlt&&(N.selectHiglightOptions("hvPen",!0),N.isEraser=!1,N.pen()),70==t.which&&1==N.isAlt&&(t.preventDefault(),N.selectHiglightOptions("hvFocusArea",!0),N.focusArea()),(77==t.which&&1==N.isAlt||27==t.which)&&(N.selectHiglightOptions("hvCursor",!0),N.cursor()),65==t.which&&1==N.isAlt&&N.selectHiglightOptions("hvCursorAnimation",!0),38==t.which&&N.cursorWidth<=200&&(N.cursorWidth+=1,N.highlightCursorWidth+=1,N.highlightCursorHeight+=1,e(".hv-pen-cusor-area").css({width:N.highlightCursorWidth,height:N.highlightCursorHeight})),38==t.which&&N.isAlt,40==t.which&&N.cursorWidth>=5&&(N.cursorWidth-=1,N.highlightCursorWidth-=1,N.highlightCursorHeight-=1,e(".hv-pen-cusor-area").css({width:N.highlightCursorWidth,height:N.highlightCursorHeight})),37==t.which&&0!==N.selectedColor&&(N.selectedColor=N.selectedColor-1,N.penColor=N.highlightsColors[N.selectedColor],N.setCursor(N.penColor)),39==t.which&&5!==N.selectedColor&&(N.selectedColor=N.selectedColor+1,N.penColor=N.highlightsColors[N.selectedColor],N.setCursor(N.penColor))}},!(e(".hv-highlight-feature-panel").length>0)){var s="Press "+("Mac"===a?"Option":"Alt")+" + O for Open",l="Press "+("Mac"===a?"Option":"Alt")+" + H for Highlight",c='<div class="hv-action-component hv-highlight-feature-panel hv-act-comp-bottom-right"> <div class="hv-highlight-options-div"> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvStop"> <img src="'+N.stopIcon+'" id="hvStopImg"/> <img src="'+N.stopIcon+'" id="hvStopImgActive"/> </span> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvCursorAnimation"> <img src="'+N.mouseAnimationIcon+'" id="hvCursorAnimationImg" class=" hv-custom-mouse-pen-cursor" /> <img src="'+N.mouseAnimationIconActive+'" id="hvCursorAnimationImgActive" class=" hv-custom-mouse-pen-cursor" /> </span> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvPen"> <img src="'+N.penIcon+'" id="hvPenImg" /> <img src="'+N.penIconActive+'" id="hvPenImgActive" /> </span> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvFocusArea"> <img src="'+N.focusIcon+'" id="hvFocusImg" /> <img src="'+N.focusIconActive+'" id="hvFocusImgActive" /> </span> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvEraser"> <img src="'+N.eraseIcon+'" class=" hv-custom-mouse-erase-cursor" id="hvEraseImg" /> <img src="'+N.eraseIconActive+'" class=" hv-custom-mouse-erase-cursor" id="hvEraseImgActive" /> </span> <span class="hv-highlight-option hv-icon-out-space hv-icon-unslected" id="hvClearScreen"> <img src="'+N.clearIcon+'" id="hvClearImg" /> <img src="'+N.clearIconActive+'" id="hvClearImgActive" /> </span> <span class="hv-togarrow-spacer hv-close-highlights" id="hvCloseHighlight"><img src="'+N.togarrow+'" class=" hv-togarrow" id="hvTogarrow" /></span> <div class="hv-choose-color-panel"> <div id="#000000" class="hv-change-color-circle hv-black-color"></div> <div id="#ff0000" class="hv-change-color-circle hv-red-color"></div> <div id="#8170cd" class="hv-change-color-circle hv-violet-color"></div> <div id="#ff9a44" class="hv-change-color-circle hv-orange-color"></div> <div id="#7ddc68" class="hv-change-color-circle hv-green-color"></div> <div id="#1edde1" class="hv-change-color-circle hv-blue-color"></div> </div> </div> <div class="hv-collapsed disp-none hv-open-highlights hv-collapsed-move" id="hvOpenHighlight" title="'+s+'"><img src="'+N.collapsIcon+'" class="hv-collapsed-icon" /></div> <div class="hv-tooltip-panel">'+l+"</div> </div>";e(c).appendTo("body"),e(".hv-highlight-option").bind("click",N.highlightOptions),e(".hv-change-color-circle").bind("click",N.color),e(".hv-close-highlights").bind("click",N.closeHighlights),e(".hv-open-highlights").bind("click",N.openHighlights),e(".hv-highlight-option").on("mouseenter",N.tooltipShow),e(".hv-icon-out-disable").on("mouseenter",N.tooltipShow),e(".hv-tooltip-panel").on("mouseenter",N.checkColorPanelVisible),e(".hv-close-highlights").on("mouseover",N.tooltipShow),window.addEventListener("keyup",N.onkeyupEvent),window.addEventListener("keydown",N.onkeydownEvent),window.addEventListener("resize",N.windowResize),N.canvas=document.getElementById("hvCanvas"),N.ctx=N.canvas.getContext("2d"),N.canvas.width=window.innerWidth,N.canvas.height=window.innerHeight,n=N.canvas.width,r=N.canvas.height;var d=document.body,u=document.documentElement,p=Math.max(d.scrollHeight,d.offsetHeight,u.clientHeight,u.scrollHeight,u.offsetHeight);N.canvas.height=p,e("#hvHighLightDiv").css("height",p+"px"),N.selectHiglightOptions("hvCursor"),e("#hvHighLightDiv").css({"pointer-events":"none"}),e("#hvOverlayDiv").hide(),N.canvas.addEventListener("mousemove",(function(e){N.findxy("move",e)}),!1),N.canvas.addEventListener("mousedown",(function(e){N.findxy("down",e)}),!1),N.canvas.addEventListener("mouseup",(function(e){N.findxy("up",e)}),!1),N.canvas.addEventListener("mouseout",(function(e){N.findxy("out",e)}),!1)}}(t,i)}(n,r))}var n,r,o,a,s,l,c;"_show_webcam_preview"===t.type&&te(t.detail||{});if("_remove_webcam_preview"===t.type&&ie(),"_show_upload_progress"===t.type){var d=t.detail||{};o={recorder:d.recorder,theme:d.theme},a=o.recorder,s=o.theme,Object(I.a)(a,s)}"record_stopped"===t.type&&(console.log("RECORDING STOPPED SDK ",M,chrome.runtime),M&&(null===(l=chrome)||void 0===l||null===(c=l.runtime)||void 0===c||c.sendMessage(D,{get_recording_blobs_for_sdk:!0},(function(e){console.log("RESPONSE ",e)}))));"record_stopped"===t.type&&(this.popupElement&&(this.popupElement.style.display="flex"),this.recordingInProgress=!1,ie(),ne()),"record_aborted"===t.type&&(this.recordingInProgress=!1,ie(),ne()),"video_submitted"!==t.type&&"hide_frame"!==t.type||this.popupElement&&(this.popupElement.style.display="none"),"_close_popup"===t.type&&(this.popupElement&&(this.popupElement.style.display="none"),ie(),ne()),"show_frame"===t.type&&this.popupElement&&(this.popupElement.style.display="flex")}}]),t}(),q={create:function(e,t){return new Y(e,{settings:t})}},$={create:function(e,t){return new K(e,{settings:t})}},W={create:function(e,t){return new G(e,{settings:t})}},G=function(e){r()(i,e);var t=O(i);function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:config,r=n.settings;return d()(this,i),t.call(this,e,{type:T.a.EDITOR,settings:r})}return p()(i)}(H),Y=function(e){r()(i,e);var t=O(i);function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:config,r=n.settings;return d()(this,i),t.call(this,e,{type:T.a.RECORDER,settings:r})}return p()(i,[{key:"startRecording",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.recordingInProgress?Q(this.eventCallbackMap,"record_error",{error:"recording_in_progress",message:"A recording is already in progress"}):(e=X(e),J(this.settings,e)?(this.popupElement&&(this.popupElement.style.display="flex"),re(this.eventListenerClass,"start_recording",{recording_configuration:e,extension_available:M})):Q(this.eventCallbackMap,"record_error",{error:"invalid_record_options",message:"The recording options given are invalid"}))}},{key:"stopRecording",value:function(){oe(this.eventListenerClass,"user")}}]),i}(H),K=function(e){r()(i,e);var t=O(i);function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:config,r=n.settings;return d()(this,i),t.call(this,e,{type:T.a.IMPORTER,settings:r})}return p()(i,[{key:"open",value:function(e){this.importMedia(null,e)}},{key:"importMedia",value:function(e,t){re(this.eventListenerClass,"import_video",{file:e,uniqueId:t})}}]),i}(H);function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.screenRecord,n=t.audio,r=t.webCam,o=e.record_config||{},a=o.screen,s=o.webcam,l=o.mic;return!(!(i||n||r||a||s)&&l)}function X(e){var t=Object.assign({},e);for(var i in e)F[i]&&(delete t[i],t[F[i]]=e[i]);return t}function Q(e,t,i){e[t]&&e[t](i)}function Z(t){e("#recording-configuration").remove(),e('<input type=hidden id="recording-configuration" value="" />').appendTo("head");e("#actiontoextension").remove(),e('<input type=hidden id="actiontoextension" value="" />').appendTo("head");var i='<input type=hidden id="hippowiz-ew-digest" value="'.concat(t,'" />');e("#hippowiz-ew-digest").remove(),e(i).appendTo("head")}function ee(e){var t=e.integrationType,i=e.extensionId;try{Object(k.j)({integrationType:t,extensionId:i}).then((function(){M=!0,D=i})).catch((function(e){console.warn("Extension connection could not be established ",e),M=!1}))}catch(e){M=!1}}function te(e){Object(P.a)(e)}function ie(){!function(e){var t=document.getElementsByClassName(e);for(;t.length>0;)t[0].parentNode.removeChild(t[0])}("hv-rapi-webcam-preview")}function ne(){!function(){N&&N.resetValues();e("#hvOverlayDiv, #hvHighLightDiv, #hvCanvas, .hv-highlight-feature-panel").remove(),e("body").css({cursor:"default"})}()}function re(e,t,i){var n;try{n=new CustomEvent(t,{detail:i})}catch(e){(n=document.createEvent("Event")).detail=i,n.initEvent(t,!1,!1)}document.getElementsByClassName(e)[0].dispatchEvent(n)}function oe(e,t){re(e,"hv_stop_recording",{from:t})}}.call(this,i(0))},,function(e,t,i){var n=i(32),r=i(33),o=i(40),a=TypeError;e.exports=function(e,t){var i,s;if("string"===t&&r(i=e.toString)&&!o(s=n(i,e)))return s;if(r(i=e.valueOf)&&!o(s=n(i,e)))return s;if("string"!==t&&r(i=e.toString)&&!o(s=n(i,e)))return s;throw a("Can't convert object to primitive value")}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?n:i)(t)}},function(e,t,i){"use strict";var n=i(13),r=i(79),o=i(40),a=i(41),s=i(139),l=i(155),c=Function,d=n([].concat),u=n([].join),p={},h=function(e,t,i){if(!a(p,t)){for(var n=[],r=0;r<t;r++)n[r]="a["+r+"]";p[t]=c("C,a","return new C("+u(n,",")+")")}return p[t](e,i)};e.exports=l?c.bind:function(e){var t=r(this),i=t.prototype,n=s(arguments,1),a=function(){var i=d(n,s(arguments));return this instanceof a?h(t,i.length,i):t.apply(e,i)};return o(i)&&(a.prototype=i),a}},function(e,t){function i(t,n){return e.exports=i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,i(t,n)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){var n=i(12);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,i){var n=i(33),r=String,o=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},function(e,t,i){"use strict";var n=i(235),r=i(100);e.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,i){"use strict";var n,r,o,a=i(15),s=i(80),l=i(163),c=i(20),d=i(32),u=i(53),p=i(140),h=i(108),f=i(237),m=i(79),g=i(33),v=i(40),y=i(122),b=i(192),w=i(303).set,S=i(442),C=i(445),k=i(239),x=i(446),_=i(64),E=i(164),T=i(165),P=i(166),I=T.CONSTRUCTOR,A=T.REJECTION_EVENT,R=T.SUBCLASSING,O=_.getterFor("Promise"),N=_.set,D=E&&E.prototype,L=E,M=D,B=c.TypeError,F=c.document,V=c.process,U=P.f,z=U,j=!!(F&&F.createEvent&&c.dispatchEvent),H=function(e){var t;return!(!v(e)||!g(t=e.then))&&t},q=function(e,t){var i,n,r,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&K(t),t.rejection=1),!0===s?i=o:(u&&u.enter(),i=s(o),u&&(u.exit(),r=!0)),i===e.promise?c(B("Promise-chain cycle")):(n=H(i))?d(n,i,l,c):l(i)):c(o)}catch(e){u&&!r&&u.exit(),c(e)}},$=function(e,t){e.notified||(e.notified=!0,S((function(){for(var i,n=e.reactions;i=n.get();)q(i,e);e.notified=!1,t&&!e.rejection&&G(e)})))},W=function(e,t,i){var n,r;j?((n=F.createEvent("Event")).promise=t,n.reason=i,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:i},!A&&(r=c["on"+e])?r(n):"unhandledrejection"===e&&C("Unhandled promise rejection",i)},G=function(e){d(w,c,(function(){var t,i=e.facade,n=e.value;if(Y(e)&&(t=k((function(){l?V.emit("unhandledRejection",n,i):W("unhandledrejection",i,n)})),e.rejection=l||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},K=function(e){d(w,c,(function(){var t=e.facade;l?V.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},J=function(e,t,i){return function(n){e(t,n,i)}},X=function(e,t,i){e.done||(e.done=!0,i&&(e=i),e.value=t,e.state=2,$(e,!0))},Q=function(e,t,i){if(!e.done){e.done=!0,i&&(e=i);try{if(e.facade===t)throw B("Promise can't be resolved itself");var n=H(t);n?S((function(){var i={done:!1};try{d(n,t,J(Q,i,e),J(X,i,e))}catch(t){X(i,t,e)}})):(e.value=t,e.state=1,$(e,!1))}catch(t){X({done:!1},t,e)}}};if(I&&(M=(L=function(e){y(this,M),m(e),d(n,this);var t=O(this);try{e(J(Q,t),J(X,t))}catch(e){X(t,e)}}).prototype,(n=function(e){N(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:void 0})}).prototype=u(M,"then",(function(e,t){var i=O(this),n=U(b(this,L));return i.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?V.domain:void 0,0==i.state?i.reactions.add(n):S((function(){q(n,i)})),n.promise})),r=function(){var e=new n,t=O(e);this.promise=e,this.resolve=J(Q,t),this.reject=J(X,t)},P.f=U=function(e){return e===L||void 0===e?new r(e):z(e)},!s&&g(E)&&D!==Object.prototype)){o=D.then,R||u(D,"then",(function(e,t){var i=this;return new L((function(e,t){d(o,i,e,t)})).then(e,t)}),{unsafe:!0});try{delete D.constructor}catch(e){}p&&p(D,M)}a({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:L}),h(L,"Promise",!1,!0),f("Promise")},function(e,t,i){var n,r,o,a,s,l,c,d,u=i(20),p=i(109),h=i(98).f,f=i(303).set,m=i(304),g=i(443),v=i(444),y=i(163),b=u.MutationObserver||u.WebKitMutationObserver,w=u.document,S=u.process,C=u.Promise,k=h(u,"queueMicrotask"),x=k&&k.value;x||(n=function(){var e,t;for(y&&(e=S.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(e){throw r?a():o=void 0,e}}o=void 0,e&&e.enter()},m||y||v||!b||!w?!g&&C&&C.resolve?((c=C.resolve(void 0)).constructor=C,d=p(c.then,c),a=function(){d(n)}):y?a=function(){S.nextTick(n)}:(f=p(f,u),a=function(){f(n)}):(s=!0,l=w.createTextNode(""),new b(n).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,a()),o=t}},function(e,t,i){var n=i(119),r=i(20);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==r.Pebble},function(e,t,i){var n=i(119);e.exports=/web0s(?!.*chrome)/i.test(n)},function(e,t,i){var n=i(20);e.exports=function(e,t){var i=n.console;i&&i.error&&(1==arguments.length?i.error(e):i.error(e,t))}},function(e,t){var i=function(){this.head=null,this.tail=null};i.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=i},function(e,t,i){var n=i(305),r=i(163);e.exports=!n&&!r&&"object"==typeof window&&"object"==typeof document},function(e,t,i){"use strict";var n=i(15),r=i(32),o=i(79),a=i(166),s=i(239),l=i(193);n({target:"Promise",stat:!0,forced:i(307)},{all:function(e){var t=this,i=a.f(t),n=i.resolve,c=i.reject,d=s((function(){var i=o(t.resolve),a=[],s=0,d=1;l(e,(function(e){var o=s++,l=!1;d++,r(i,t,e).then((function(e){l||(l=!0,a[o]=e,--d||n(a))}),c)})),--d||n(a)}));return d.error&&c(d.value),i.promise}})},function(e,t,i){"use strict";var n=i(15),r=i(80),o=i(165).CONSTRUCTOR,a=i(164),s=i(75),l=i(33),c=i(53),d=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(a)){var u=s("Promise").prototype.catch;d.catch!==u&&c(d,"catch",u,{unsafe:!0})}},function(e,t,i){"use strict";var n=i(15),r=i(32),o=i(79),a=i(166),s=i(239),l=i(193);n({target:"Promise",stat:!0,forced:i(307)},{race:function(e){var t=this,i=a.f(t),n=i.reject,c=s((function(){var a=o(t.resolve);l(e,(function(e){r(a,t,e).then(i.resolve,n)}))}));return c.error&&n(c.value),i.promise}})},function(e,t,i){"use strict";var n=i(15),r=i(32),o=i(166);n({target:"Promise",stat:!0,forced:i(165).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return r(t.reject,void 0,e),t.promise}})},function(e,t,i){"use strict";var n=i(15),r=i(75),o=i(80),a=i(164),s=i(165).CONSTRUCTOR,l=i(453),c=r("Promise"),d=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return l(d&&this===c?a:this,e)}})},function(e,t,i){var n=i(44),r=i(40),o=i(166);e.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var i=o.f(e);return(0,i.resolve)(t),i.promise}},function(e,t,i){var n=i(13),r=i(56),o=Math.floor,a=n("".charAt),s=n("".replace),l=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,i,n,u,p){var h=i+e.length,f=n.length,m=d;return void 0!==u&&(u=r(u),m=c),s(p,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,i);case"'":return l(t,h);case"<":c=u[l(s,1,-1)];break;default:var d=+s;if(0===d)return r;if(d>f){var p=o(d/10);return 0===p?r:p<=f?void 0===n[p-1]?a(s,1):n[p-1]+a(s,1):r}c=n[d-1]}return void 0===c?"":c}))}},function(e,t,i){var n=i(112).default;function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},i=Object.prototype,o=i.hasOwnProperty,a=Object.defineProperty||function(e,t,i){e[t]=i.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function u(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,i){return e[t]=i}}function p(e,t,i,n){var r=t&&t.prototype instanceof m?t:m,o=Object.create(r.prototype),s=new P(n||[]);return a(o,"_invoke",{value:x(e,i,s)}),o}function h(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var f={};function m(){}function g(){}function v(){}var y={};u(y,l,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==i&&o.call(w,l)&&(y=w);var S=v.prototype=m.prototype=Object.create(y);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){var i;a(this,"_invoke",{value:function(r,a){function s(){return new t((function(i,s){!function i(r,a,s,l){var c=h(e[r],e,a);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==n(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(u).then((function(e){d.value=e,s(d)}),(function(e){return i("throw",e,s,l)}))}l(c.arg)}(r,a,i,s)}))}return i=i?i.then(s,s):s()}})}function x(e,t,i){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return A()}for(i.method=r,i.arg=o;;){var a=i.delegate;if(a){var s=_(a,i);if(s){if(s===f)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=h(e,t,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}function _(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(i,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var r=n.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function I(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function t(){for(;++i<e.length;)if(o.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:A}}function A(){return{value:void 0,done:!0}}return g.prototype=v,a(S,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=u(v,d,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,d,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(k.prototype),u(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new k(p(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),u(S,d,"Generator"),u(S,l,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,n){return a.type="throw",a.arg=e,t.next=i,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=o.call(r,"catchLoc"),l=o.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),T(i),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;T(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:I(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";
|
|
141
141
|
/** @license React v16.14.0
|
|
142
142
|
* react.production.min.js
|
|
143
143
|
*
|