@hippovideo/video-sdk 0.0.0-experimental-57e5188bf2f4-20230412 → 0.0.0-experimental-3f0fc16a9182-20230412

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.
Files changed (46) hide show
  1. package/app/188-bundle-hippo-jg92yxh4ptg-b0e470050ed64c1ef410.js +1 -0
  2. package/app/307-bundle-hippo-jg92yxh4ptg-df96d02d7be681b608e1.js +1 -0
  3. package/app/{520-bundle-hippo-s5wv9kbacp-88f5445625e785134d69.js → 520-bundle-hippo-jg92yxh4ptg-5b14ec0550c41c49a6f9.js} +1 -1
  4. package/app/{307-bundle-hippo-s5wv9kbacp-46ceaa5b69d013f1a160.js → 620-bundle-hippo-jg92yxh4ptg-3535e2a9b44bf0802f2b.js} +1 -1
  5. package/app/693-bundle-hippo-jg92yxh4ptg-44beb732c5c7d51e5148.js +1 -0
  6. package/app/hv_recorder.css +1 -1
  7. package/app/hv_recorder.js +1 -1
  8. package/app/hv_recorder.js.LICENSE.txt +351 -0
  9. package/app/webpack-common-manifest.json +37 -36
  10. package/package.json +1 -1
  11. package/app/188-bundle-hippo-s5wv9kbacp-172cb81eed965b87561f.js +0 -1
  12. package/app/245-bundle-hippo-s5wv9kbacp-df9840613ab18982c9c7.js +0 -2
  13. package/app/245-bundle-hippo-s5wv9kbacp-df9840613ab18982c9c7.js.LICENSE.txt +0 -125
  14. /package/app/{107-bundle-hippo-s5wv9kbacp-3fad86f11646f0cd2296.js → 107-bundle-hippo-jg92yxh4ptg-3fad86f11646f0cd2296.js} +0 -0
  15. /package/app/{157-bundle-hippo-s5wv9kbacp-43ffe4f0105f15644971.js → 157-bundle-hippo-jg92yxh4ptg-43ffe4f0105f15644971.js} +0 -0
  16. /package/app/{238-bundle-hippo-s5wv9kbacp-b61acbf599b47f15e1ff.js → 238-bundle-hippo-jg92yxh4ptg-b61acbf599b47f15e1ff.js} +0 -0
  17. /package/app/{239-bundle-hippo-s5wv9kbacp-29765f212c5b82b9b5c9.js → 239-bundle-hippo-jg92yxh4ptg-29765f212c5b82b9b5c9.js} +0 -0
  18. /package/app/{283-bundle-hippo-s5wv9kbacp-8e24dc0f420ee494af1f.js → 283-bundle-hippo-jg92yxh4ptg-8e24dc0f420ee494af1f.js} +0 -0
  19. /package/app/{362-bundle-hippo-s5wv9kbacp-28bf93bdaaaca6e8a7d1.js → 362-bundle-hippo-jg92yxh4ptg-28bf93bdaaaca6e8a7d1.js} +0 -0
  20. /package/app/{37-bundle-hippo-s5wv9kbacp-9b5af7bec7e324bfea39.js → 37-bundle-hippo-jg92yxh4ptg-9b5af7bec7e324bfea39.js} +0 -0
  21. /package/app/{442-bundle-hippo-s5wv9kbacp-a40760aafd35feb385c9.js → 442-bundle-hippo-jg92yxh4ptg-a40760aafd35feb385c9.js} +0 -0
  22. /package/app/{454-bundle-hippo-s5wv9kbacp-640863e104cb8d4444b5.js → 454-bundle-hippo-jg92yxh4ptg-640863e104cb8d4444b5.js} +0 -0
  23. /package/app/{487-bundle-hippo-s5wv9kbacp-a8a4683af31cd239bdfa.js → 487-bundle-hippo-jg92yxh4ptg-a8a4683af31cd239bdfa.js} +0 -0
  24. /package/app/{520-bundle-hippo-s5wv9kbacp-88f5445625e785134d69.js.LICENSE.txt → 520-bundle-hippo-jg92yxh4ptg-5b14ec0550c41c49a6f9.js.LICENSE.txt} +0 -0
  25. /package/app/{525-bundle-hippo-s5wv9kbacp-9e22fb533f478807c968.js → 525-bundle-hippo-jg92yxh4ptg-9e22fb533f478807c968.js} +0 -0
  26. /package/app/{528-bundle-hippo-s5wv9kbacp-e7c6879087f0bc809436.js → 528-bundle-hippo-jg92yxh4ptg-e7c6879087f0bc809436.js} +0 -0
  27. /package/app/{582-bundle-hippo-s5wv9kbacp-a9eac0a0dff2505acd77.js → 582-bundle-hippo-jg92yxh4ptg-a9eac0a0dff2505acd77.js} +0 -0
  28. /package/app/{605-bundle-hippo-s5wv9kbacp-3d6e46646daa3d9ffc77.js → 605-bundle-hippo-jg92yxh4ptg-3d6e46646daa3d9ffc77.js} +0 -0
  29. /package/app/{611-bundle-hippo-s5wv9kbacp-f7d2a84b0b194f07a962.js → 611-bundle-hippo-jg92yxh4ptg-f7d2a84b0b194f07a962.js} +0 -0
  30. /package/app/{652-bundle-hippo-s5wv9kbacp-2446a2200548df5c62f3.js → 652-bundle-hippo-jg92yxh4ptg-2446a2200548df5c62f3.js} +0 -0
  31. /package/app/{66-bundle-hippo-s5wv9kbacp-d26ab7f3718ca8adb7b9.js → 66-bundle-hippo-jg92yxh4ptg-d26ab7f3718ca8adb7b9.js} +0 -0
  32. /package/app/{660-bundle-hippo-s5wv9kbacp-e4d99213565d245f92b3.js → 660-bundle-hippo-jg92yxh4ptg-e4d99213565d245f92b3.js} +0 -0
  33. /package/app/{692-bundle-hippo-s5wv9kbacp-98e2778801517c6d709f.js → 692-bundle-hippo-jg92yxh4ptg-98e2778801517c6d709f.js} +0 -0
  34. /package/app/{751-bundle-hippo-s5wv9kbacp-d3e1ee01d1e1f8c54119.js → 751-bundle-hippo-jg92yxh4ptg-d3e1ee01d1e1f8c54119.js} +0 -0
  35. /package/app/{771-bundle-hippo-s5wv9kbacp-5a6062e3490ee9261b7e.js → 771-bundle-hippo-jg92yxh4ptg-5a6062e3490ee9261b7e.js} +0 -0
  36. /package/app/{780-bundle-hippo-s5wv9kbacp-4e7a932e3d7564dbfd08.js → 780-bundle-hippo-jg92yxh4ptg-4e7a932e3d7564dbfd08.js} +0 -0
  37. /package/app/{795-bundle-hippo-s5wv9kbacp-fa5dee47c4eb61932834.js → 795-bundle-hippo-jg92yxh4ptg-fa5dee47c4eb61932834.js} +0 -0
  38. /package/app/{823-bundle-hippo-s5wv9kbacp-2b0bbd0da340d8be2937.js → 823-bundle-hippo-jg92yxh4ptg-2b0bbd0da340d8be2937.js} +0 -0
  39. /package/app/{847-bundle-hippo-s5wv9kbacp-a7274fcf2651c06dc9cc.js → 847-bundle-hippo-jg92yxh4ptg-a7274fcf2651c06dc9cc.js} +0 -0
  40. /package/app/{85-bundle-hippo-s5wv9kbacp-cee943b1271f7f21df76.js → 85-bundle-hippo-jg92yxh4ptg-cee943b1271f7f21df76.js} +0 -0
  41. /package/app/{869-bundle-hippo-s5wv9kbacp-ba44b48c8f4a26fe0e40.js → 869-bundle-hippo-jg92yxh4ptg-ba44b48c8f4a26fe0e40.js} +0 -0
  42. /package/app/{881-bundle-hippo-s5wv9kbacp-1e41c84326fac8446b66.js → 881-bundle-hippo-jg92yxh4ptg-1e41c84326fac8446b66.js} +0 -0
  43. /package/app/{892-bundle-hippo-s5wv9kbacp-6dc5a8967bfd8695b74a.js → 892-bundle-hippo-jg92yxh4ptg-6dc5a8967bfd8695b74a.js} +0 -0
  44. /package/app/{907-bundle-hippo-s5wv9kbacp-6b974d5b2e5cef32804d.js → 907-bundle-hippo-jg92yxh4ptg-6b974d5b2e5cef32804d.js} +0 -0
  45. /package/app/{963-bundle-hippo-s5wv9kbacp-abde1d79679a282d1de2.js → 963-bundle-hippo-jg92yxh4ptg-abde1d79679a282d1de2.js} +0 -0
  46. /package/app/{99-bundle-hippo-s5wv9kbacp-97ea9400b435050ace92.js → 99-bundle-hippo-jg92yxh4ptg-97ea9400b435050ace92.js} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[693],{86435:function(e,t,i){var a,s;a=[i(19755),i(13919),i(72316),i(65759),i(80300)],void 0===(s=function(e,t,i,a,s){"use strict";return s=s.default,i.Model.extend({initialize:function(e){},_url:function(){return JSON.parse(a).statsReport},parse:function(e){return e},getEngagementReport:function(e,t,i){var a=this._url()+"/engagement/"+e;s.call({url:a,method:"GET",success:t,error:i})},getOverAllReport:function(e,t,i){var a=this._url()+"/overall/"+e;s.call({url:a,method:"GET",success:t,error:i})},getReactionsReport:function(e,t,i){var a={asset_id:e};s.call({url:"/reactions/report",data:a,success:t,error:i})},getShareReport:function(e,t,i,a){var o=this._url()+"/share/"+t;s.call({url:o,data:e,method:"GET",success:i,error:a})},getLocationStats:function(e,t,i){var a=this._url()+"/viewership/location/"+e;s.call({url:a,method:"GET",success:t,error:i})},getDeviceStats:function(e,t,i){var a=this._url()+"/viewership/device/"+e;s.call({url:a,method:"GET",success:t,error:i})},getRefererStats:function(e,t,i){var a=this._url()+"/viewership/referer/"+e;s.call({url:a,method:"GET",success:t,error:i})},getViewerProfile:function(e,t,i,a,o){var n=this._url()+"/viewer_profile/"+e,l={page:t};i&&(l.hv_vuuid=i);var r=Intl.DateTimeFormat().resolvedOptions().timeZone;null!=r&&r&&0!=r.trim().length&&(l.time_zone=r),s.call({url:n,method:"GET",data:l,success:a,error:o})},getTimeLineReport:function(e,t,i,a){var o=this._url()+"/timeline/"+e;s.call({url:o,method:"GET",data:t,success:i,error:a})},getReportsMetaData:function(e,t,i){var a=this._url()+"/metadata/"+e;s.call({url:a,method:"GET",success:t,error:i})}})}.apply(t,a))||(e.exports=s)},3166:function(e,t,i){var a,s;a=[i(19755),i(13919),i(72316),i(65759),i(80300)],void 0===(s=function(e,t,i,a,s){"use strict";return s=s.default,i.Model.extend({initialize:function(e){this.assetId=e.assetId},url:function(){return JSON.parse(a).getVideoBrandingInfo+this.assetId},parse:function(e){return e},saveVideoBrandingInfo:function(e,t,i){s.call({url:JSON.parse(a).saveVideoBrandingInfo,method:"PUT",data:e,success:t,error:i})},removeVideoLogo:function(e,t,i){s.call({url:JSON.parse(a).removeVideoLogo,method:"DELETE",data:e,success:t,error:i})},restoreVideoBrandingInfo:function(e,t,i){s.call({url:JSON.parse(a).restoreVideoBrandingInfo,method:"PUT",data:e,success:t,error:i})}})}.apply(t,a))||(e.exports=s)},52180:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="cta-rect" id="ctaRect"><input type="hidden" id="cta_id" value="').f(t.get(["cta_id"],!1),t,"h").w('"/><input type="hidden" id="is_global" value="').f(t.get(["is_global"],!1),t,"h").w('"/>').h("select",t,{block:i},{key:t.get(["option"],!1)},"h").w("</div>")}function i(e,t){return e.h("eq",t,{block:a},{value:t.getPath(!1,["cta","TIMELINE_LIST"])},"h").h("eq",t,{block:w},{value:t.getPath(!1,["cta","ANNOTATION"])},"h").h("eq",t,{block:S},{value:t.getPath(!1,["cta","CALL_TO_ACTION"])},"h").h("eq",t,{block:de},{value:t.getPath(!1,["cta","FORM"])},"h").h("eq",t,{block:Pe},{value:t.getPath(!1,["cta","QUESTION"])},"h").h("eq",t,{block:Re},{value:t.getPath(!1,["cta","END_SCREEN"])},"h").h("eq",t,{block:Ge},{value:t.getPath(!1,["cta","EMBED_CRM_FORM"])},"h").h("eq",t,{block:tt},{value:t.getPath(!1,["cta","CTA_MEETING"])},"h").h("eq",t,{block:lt},{value:t.getPath(!1,["cta","SUCCESS_MSG"])},"h")}function a(e,t){return e.w('<div class="text-center cta-right-box"><h3>').f(t.getPath(!1,["ctaActions","timeLineActions"]),t,"h").w("</h3><h5>").f(t.getPath(!1,["ctaActions","timeLineDesc"]),t,"h").w('</h5><hr class="cta-line"><div class="cta-timeline-list" id="ctaTimeLineList">').x(t.getPath(!1,["video_cta","features","cta_meeting"]),t,{block:s},{}).x(t.getPath(!1,["video_cta","features","call_to_action"]),t,{block:n},{}).x(t.getPath(!1,["video_cta","features","annotation"]),t,{block:r},{}).x(t.getPath(!1,["video_cta","features","custom_crm_form"]),t,{block:c},{}).x(t.getPath(!1,["video_cta","features","lead_gen_form"]),t,{block:h},{}).x(t.getPath(!1,["video_cta","features","cta_poll"]),t,{block:m},{}).x(t.getPath(!1,["video_cta","features","promote_playlist"]),t,{block:f},{}).w("</div></div>")}function s(e,t){return e.w('<a class="cta-list-btn ').x(t.get(["endCardAdded"],!1),t,{block:o},{}).w('" id="addEndCardBtn"><img class="head-ico six" src="/svg/cta-endcard-grey.svg">').f(t.getPath(!1,["ctaActions","endCard"]),t,"h").w('<img class="arrow" src="/svg/arrow-white.svg"></a>')}function o(e,t){return e.w(" comp-added ")}function n(e,t){return e.w('<a class="cta-list-btn ').x(t.get(["callToActionAdded"],!1),t,{block:l},{}).w('" id="addCallToActionBtn"><img class="head-ico two" src="/svg/cta-cta-grey.svg">').f(t.getPath(!1,["ctaActions","callToAction"]),t,"h").w('<img class="arrow" src="/svg/arrow-white.svg"></a>')}function l(e,t){return e.w(" comp-added ")}function r(e,t){return e.w('<a class="cta-list-btn" id="addAnnotationBtn"><img class="head-ico one" src="/svg/cta-annotation-grey.svg">').f(t.getPath(!1,["ctaActions","annotation"]),t,"h").w(" ").h("ne",t,{block:d},{key:t.get(["numAnnotations"],!1),value:0},"h").w('<img class="arrow" src="/svg/arrow-white.svg"></a>')}function d(e,t){return e.w("(").f(t.get(["numAnnotations"],!1),t,"h").w(")")}function c(e,t){return e.w('<a class="cta-list-btn ').x(t.get(["embedFormAdded"],!1),t,{block:u},{}).w('" id="addEmbedCrmFormBtn"><img class="head-ico two-one" src="/svg/cta-embed-form-grey.svg">').f(t.getPath(!1,["ctaActions","embedCrmForm"]),t,"h").w('<img class="arrow" src="/svg/arrow-white.svg"></a>')}function u(e,t){return e.w(" comp-added ")}function h(e,t){return e.w('<a class="cta-list-btn ').x(t.get(["formAdded"],!1),t,{block:p},{}).w('" id="addFormBtn"><img class="head-ico three" src="/svg/cta-form-grey.svg">').f(t.getPath(!1,["ctaActions","form"]),t,"h").w('<img class="arrow" src="/svg/arrow-white.svg"></a>')}function p(e,t){return e.w(" comp-added ")}function m(e,t){return e.w('<a class="cta-list-btn ').x(t.get(["questionAdded"],!1),t,{block:v},{}).w('" id="addQuizBtn"><img class="head-ico four" src="/svg/cta-quiz-grey.svg">').f(t.getPath(!1,["ctaActions","question"]),t,"h").w(" ").h("ne",t,{block:g},{key:t.get(["numQuestions"],!1),value:0},"h").w('<img class="arrow" src="/svg/arrow-white.svg"></a>')}function v(e,t){return e.w(" comp-added ")}function g(e,t){return e.w("(").f(t.get(["numQuestions"],!1),t,"h").w(")")}function f(e,t){return e.w('<a class="cta-list-btn ').x(t.get(["endScreenAdded"],!1),t,{block:b},{}).w('" id="addEndScreenBtn"><img class="head-ico five" src="/svg/cta-endscreen-grey.svg">').f(t.getPath(!1,["ctaActions","endScreen"]),t,"h").w('<img class="arrow" src="/svg/arrow-white.svg"></a>')}function b(e,t){return e.w(" comp-added ")}function w(e,t){return e.w('<div class="text-center cta-right-box"><h3>').f(t.getPath(!1,["ctaActions","annotation"]),t,"h").w("</h3><h5>").f(t.getPath(!1,["ctaActions","annotationDesc"]),t,"h").w('</h5><hr class="cta-line"><div class="large-12 columns top-correction-one"><div class="small-2 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","text"]),t,"h").w('<small class="required-alert hide" id="annotationTextAlert">*</small></h6></div><div class="small-10 columns"><input class="text-input" type="text" id="annotationText" ').x(t.get(["text"],!1),t,{block:y},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","clickOnThisLink"]),t,"h").w('"/></div></div><div class="large-12 columns"><div class="small-2 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","url"]),t,"h").w('<small class="required-alert hide" id="annotationUrlAlert">*</small></h6></div><div class="small-10 columns"><input class="text-input" type="text" id="annotationUrl" ').x(t.get(["url"],!1),t,{block:_},{}).w('" placeholder="').f(t.getPath(!1,["ctaActions","sampleUrl"]),t,"h").w('"/></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","startTime"]),t,"h").w('</h6></div><div class="small-4 columns end"><input class="timer-input" type="text" id="startTime" placeholder="00:00" value="').x(t.get(["startTime"],!1),t,{else:k,block:C},{}).w('"/><div class="cta-arrow-up up" id="startTimeUpArrow"></div><div class="cta-arrow-down down" id="startTimeDownArrow"></div></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","endTime"]),t,"h").w('</h6></div><div class="small-4 columns end"><input class="timer-input" type="text" id="endTime" placeholder="00:00" value="').x(t.get(["endTime"],!1),t,{else:P,block:T},{}).w('"/><div class="cta-arrow-up up" id="endTimeUpArrow"></div><div class="cta-arrow-down down" id="endTimeDownArrow"></div></div></div><a class="button cta-apply-btn apply" id="annotationApplyBtn">').f(t.getPath(!1,["ctaActions","apply"]),t,"h").w('</a><a class="button cta-cancel-btn cancel" id="ctaCancel">').f(t.getPath(!1,["ctaActions","cancel"]),t,"h").w("</a></div>")}function y(e,t){return e.w('value="').f(t.get(["text"],!1),t,"h").w('"')}function _(e,t){return e.w('value="').f(t.get(["url"],!1),t,"h").w('"')}function k(e,t){return e.w("00:00")}function C(e,t){return e.f(t.get(["startTime"],!1),t,"h")}function P(e,t){return e.w("00:00")}function T(e,t){return e.f(t.get(["endTime"],!1),t,"h")}function S(e,t){return e.w('<div class="text-center cta-right-box"><h3>').f(t.getPath(!1,["ctaActions","callToAction"]),t,"h").w("</h3><h5>").f(t.getPath(!1,["ctaActions","callToActionDesc"]),t,"h").w('</h5><hr class="cta-line"><div class="large-12 columns top-correction-one"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","type"]),t,"h").w('</h6></div><div class="small-9 columns">').p("templates/cta/call_to_action_select_options",t,t,{}).w('</div></div><div id="ctaHtmlContent" class="large-12 columns call-to-action-add-comp ').x(t.get(["action_type"],!1),t,{else:x,block:A},{}).w('"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","html"]),t,"h").w('</h6></div><div class="small-9 columns"><textarea id="htmlContent" rows="5" cols="30">').x(t.get(["cta_html"],!1),t,{block:B},{}).w('</textarea></div></div><div id="ctaImageContent" class="large-12 columns call-to-action-add-comp ').x(t.get(["action_type"],!1),t,{else:E,block:L},{}).w('"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","image"]),t,"h").w('<small class="required-alert hide" id="callToActionImageAlert">*</small></h6></div><div class="small-9 columns end"><input id="ctaImageUploadBtn" type="file" accept=".jpg,.png,.jpeg" style="visibility:hidden;"/><label id="uploadLabel" for="ctaImageUploadBtn" class="upload-label">').x(t.get(["cta_image"],!1),t,{else:R,block:N},{}).w('</label><img class="hide" id="ctaImage" ').x(t.get(["cta_image"],!1),t,{block:F},{}).w('/></div><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","link"]),t,"h").w('</h6></div><div class="small-9 columns"><input class="text-input" type="text" id="ctaImageLink" ').x(t.get(["cta_link"],!1),t,{block:O},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","sampleUrl"]),t,"h").w('"/></div></div><div id="ctaTextContent" class="large-12 columns call-to-action-add-comp ').x(t.get(["action_type"],!1),t,{block:D},{}).w('"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","text"]),t,"h").w('<small class="required-alert hide" id="ctaTextAlert">*</small></h6></div><div class="small-9 columns"><input class="text-input" type="text" id="ctaText" ').x(t.get(["cta_text"],!1),t,{block:U},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","addYourTextHere"]),t,"h").w('"/></div><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","link"]),t,"h").w('<small class="required-alert hide" id="ctaTextLinkAlert">*</small></h6></div><div class="small-9 columns"><input class="text-input" type="text" id="ctaTextLink" ').x(t.get(["cta_link"],!1),t,{block:z},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","sampleUrl"]),t,"h").w('"/></div></div><div id="ctaHubspotContent" class="large-12 columns call-to-action-add-comp ').x(t.get(["action_type"],!1),t,{else:G,block:H},{}).w('">').x(t.get(["hubspotFormsAvailable"],!1),t,{else:j,block:J},{}).w('</div><div id="ctaPardotContent" class="large-12 columns call-to-action-add-comp ').x(t.get(["action_type"],!1),t,{else:Q,block:Y},{}).w('"><div class="small-3 columns text-left cta-pardot-label ').nx(t.get(["pardotFormsAvailable"],!1),t,{block:X},{}).w('"><h6 class="form-label">').f(t.get(["pardotFormsText"],!1),t,"h").w('</h6></div><div class="small-9 columns cta-pardot-select ').nx(t.get(["pardotFormsAvailable"],!1),t,{block:ee},{}).w('"><select id="pardotFormIds"><option>').f(t.get(["selectText"],!1),t,"h").w("</option>").x(t.get(["pardotFormsAvailable"],!1),t,{block:te},{}).w('</select></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","time"]),t,"h").w('</h6></div><div class="small-4 columns end"><input class="timer-input" type="text" id="startTime" placeholder="00:00" value="').x(t.get(["time"],!1),t,{else:ae,block:se},{}).w('"/><div class="cta-arrow-up up" id="startTimeUpArrow"></div><div class="cta-arrow-down down" id="startTimeDownArrow"></div></div></div><div class="large-12 columns').x(t.get(["action_type"],!1),t,{else:oe,block:ne},{}).w('" id="skipAllowedCheckForCTA"><div class="small-12 columns text-left"><input type="checkbox" class="wiz-checkbox-blue" id="allowSkipCheck" ').x(t.get(["allow_skip"],!1),t,{block:re},{}).w('/><label class="check-label top-correction" for="allowSkipCheck">').f(t.getPath(!1,["ctaActions","allowViewersToSkip"]),t,"h").w('</label><br></div></div><a class="button cta-apply-btn apply" id="callToActionApplyBtn">').f(t.getPath(!1,["ctaActions","apply"]),t,"h").w('</a><a class="button cta-cancel-btn cancel" id="ctaCancel">').f(t.getPath(!1,["ctaActions","cancel"]),t,"h").w("</a></div>")}function x(e,t){return e.w("hide")}function A(e,t){return e.h("ne",t,{block:I},{key:t.get(["action_type"],!1),value:t.getPath(!1,["cta","actionType","HTML"])},"h")}function I(e,t){return e.w("hide")}function B(e,t){return e.f(t.get(["cta_html"],!1),t,"h")}function E(e,t){return e.w("hide")}function L(e,t){return e.h("ne",t,{block:V},{key:t.get(["action_type"],!1),value:t.getPath(!1,["cta","actionType","IMAGE"])},"h")}function V(e,t){return e.w("hide")}function R(e,t){return e.f(t.getPath(!1,["ctaActions","uploadImage"]),t,"h")}function N(e,t){return e.f(t.getPath(!1,["ctaActions","changeImage"]),t,"h")}function F(e,t){return e.w('src="').f(t.get(["cta_image"],!1),t,"h").w('"')}function O(e,t){return e.w('value="').f(t.get(["cta_link"],!1),t,"h").w('"')}function D(e,t){return e.h("ne",t,{block:M},{key:t.get(["action_type"],!1),value:t.getPath(!1,["cta","actionType","TEXT"])},"h")}function M(e,t){return e.w("hide")}function U(e,t){return e.w('value="').f(t.get(["cta_text"],!1),t,"h").w('"')}function z(e,t){return e.w('value="').f(t.get(["cta_link"],!1),t,"h").w('"')}function G(e,t){return e.w("hide")}function H(e,t){return e.h("ne",t,{block:$},{key:t.get(["action_type"],!1),value:t.getPath(!1,["cta","actionType","HUBSPOT"])},"h")}function $(e,t){return e.w("hide")}function j(e,t){return e.w('<div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","portalId"]),t,"h").w('</h6></div><div class="small-9 columns"><input class="text-input" type="text" id="portalIdTxt" ').x(t.get(["portal_id"],!1),t,{block:q},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","portalId"]),t,"h").w('"/></div><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","formId"]),t,"h").w('</h6></div><div class="small-9 columns"><input class="text-input" type="text" id="formIdTxt" ').x(t.get(["form_id"],!1),t,{block:W},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","formId"]),t,"h").w('"/></div><div class="large-12 columns bg-theme-box"><div class="small-6 columns text-left"><h6 class="form-label">Background theme</h6></div><div class="small-6 columns end"><label class="labels">Light</label><div class="switch round small"><input id="hubspotFormBackground" type="checkbox"><label for="hubspotFormBackground" class="hubspotBackgroundSwitch"></label></div> <label class="labels">Dark</label></div></div>')}function q(e,t){return e.w('value="').f(t.get(["portal_id"],!1),t,"h").w('"')}function W(e,t){return e.w('value="').f(t.get(["form_id"],!1),t,"h").w('"')}function J(e,t){return e.w('<div class="small-3 columns text-left"><h6 class="form-label">').f(t.get(["hubspotFormsText"],!1),t,"h").w('</h6></div><div class="small-9 columns"><select id="hubspotFormIds"><option>').f(t.get(["selectText"],!1),t,"h").w("</option>").s(t.get(["hubspotForms"],!1),t,{block:Z},{}).w("</select></div>")}function Z(e,t){return e.w('<option value="').f(t.get(["form_id"],!1),t,"h").w('" >').f(t.get(["form_name"],!1),t,"h").w("</option>")}function Q(e,t){return e.w("hide")}function Y(e,t){return e.h("ne",t,{block:K},{key:t.get(["action_type"],!1),value:t.getPath(!1,["cta","actionType","PARDOT"])},"h")}function K(e,t){return e.w("hide")}function X(e,t){return e.w("disp-none")}function ee(e,t){return e.w("disp-none")}function te(e,t){return e.s(t.get(["pardotForms"],!1),t,{block:ie},{})}function ie(e,t){return e.w("<option data-target='").f(t.get(["embedCode"],!1),t,"h").w("' value=\"").f(t.get(["id"],!1),t,"h").w('" >').f(t.get(["name"],!1),t,"h").w("</option>")}function ae(e,t){return e.w("00:00")}function se(e,t){return e.f(t.get(["time"],!1),t,"h")}function oe(e,t){return e.w(" hide")}function ne(e,t){return e.h("ne",t,{block:le},{key:t.get(["action_type"],!1),value:t.getPath(!1,["cta","actionType","HUBSPOT"])},"h")}function le(e,t){return e.w(" hide")}function re(e,t){return e.w("checked")}function de(e,t){return e.w('<div class="text-center cta-right-box"><h3>').f(t.getPath(!1,["ctaActions","form"]),t,"h").w("</h3><h5>").f(t.getPath(!1,["ctaActions","formDesc"]),t,"h").w('</h5><hr class="cta-line"><div id="cta-form-config-block" class="cta-form-config-block scroll-setting"><div class="large-12 columns"><div class="small-12 columns text-left"><input type="checkbox" class="wiz-checkbox-blue" id="askPhoneCheck" ').x(t.get(["ask_phone"],!1),t,{block:ce},{}).w('/><label class="check-label" for="askPhoneCheck">').f(t.getPath(!1,["ctaActions","askPhoneNumber"]),t,"h").w('</label></div></div><div class="large-12 columns"><div class="small-12 columns text-left"><input type="checkbox" class="wiz-checkbox-blue" id="askCompanyCheck" ').x(t.get(["ask_company"],!1),t,{block:ue},{}).w('/><label class="check-label" for="askCompanyCheck">').f(t.getPath(!1,["ctaActions","askCompanyName"]),t,"h").w('</label></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","upperText"]),t,"h").w('<small class="required-alert hide" id="upperTextAlert">*</small></h6></div><div class="small-9 columns end"><input type="text" id="upperText" value="').x(t.get(["upper_text"],!1),t,{block:he},{}).w('" placeholder="').f(t.getPath(!1,["ctaActions","upperText"]),t,"h").w('"/></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","lowerText"]),t,"h").w('</h6></div><div class="small-9 columns end"><input type="text" id="lowerText" value="').x(t.get(["lower_text"],!1),t,{block:pe},{}).w('" placeholder="').f(t.getPath(!1,["ctaActions","lowerText"]),t,"h").w('"/></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","buttonText"]),t,"h").w('</h6></div><div class="small-9 columns end"><input type="text" class="text-input" id="leadGenBtnText" ').x(t.get(["button_text"],!1),t,{block:me},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","play"]),t,"h").w('"></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","time"]),t,"h").w('</h6></div><div class="small-4 columns end"><input class="timer-input" type="text" id="startTime" placeholder="00:00" value="').x(t.get(["time"],!1),t,{else:ve,block:ge},{}).w('"/><div class="cta-arrow-up up" id="startTimeUpArrow"></div><div class="cta-arrow-down down" id="startTimeDownArrow"></div></div></div><div class="large-12 columns"><div class="small-12 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","buttonColour"]),t,"h").w('</h6></div><div class="small-12 columns end cta-button-colour"><div data-idx="0" class="palette-box small-1 columns"><div data-idx="0" id="paletteColorBox" class="palette-color-box" style="background-color:').x(t.get(["button_color"],!1),t,{else:fe,block:be},{}).w('"></div><span data-idx="0" class="palette-color-box-hex">').x(t.get(["button_color"],!1),t,{else:we,block:ye},{}).w('</span></div><div data-idx="0" class="change-color-container"><a id="changeButtonColor" class="change-palette" data-idx="0"><img src="/svg/edit-58b0c3.svg" width="10">').f(t.getPath(!1,["ctaActions","changeColor"]),t,"h").w('</a><span class="change-palette-picker" style="display:none;" data-idx="0"></span></div></div></div><div class="large-12 columns"><div class="small-12 columns text-left"><input type="checkbox" class="wiz-checkbox-blue" id="allowSkipCheck" ').x(t.get(["allow_skip"],!1),t,{block:_e},{}).w('/><label class="check-label top-correction" for="allowSkipCheck">').f(t.getPath(!1,["ctaActions","allowViewersToSkip"]),t,"h").w('</label><br></div></div><div class="large-12 columns mcform-text"><div class="small-12 columns text-left"><img src="/img/mailchimp-logo.png" /><label class="check-label top-correction" for="subscribeToMailingList">').f(t.getPath(!1,["mailchimpLeadAddModal","addToListText"]),t,"h").w("</label>").x(t.get(["is_mailchimp_configured"],!1),t,{else:ke,block:Ce},{}).w('<br><input type="hidden" id="subscribeToMailingList"></div></div><a class="button cta-apply-btn apply" id="formApplyBtn">').f(t.getPath(!1,["ctaActions","apply"]),t,"h").w('</a><a class="button cta-cancel-btn cancel" id="ctaCancel">').f(t.getPath(!1,["ctaActions","cancel"]),t,"h").w("</a></div></div>")}function ce(e,t){return e.w("checked")}function ue(e,t){return e.w("checked")}function he(e,t){return e.f(t.get(["upper_text"],!1),t,"h")}function pe(e,t){return e.f(t.get(["lower_text"],!1),t,"h")}function me(e,t){return e.w('value="').f(t.get(["button_text"],!1),t,"h").w('"')}function ve(e,t){return e.w("00:00")}function ge(e,t){return e.f(t.get(["time"],!1),t,"h")}function fe(e,t){return e.w("#4ea7bc")}function be(e,t){return e.f(t.get(["button_color"],!1),t,"h")}function we(e,t){return e.w("#4ea7bc")}function ye(e,t){return e.f(t.get(["button_color"],!1),t,"h")}function _e(e,t){return e.w("checked")}function ke(e,t){return e.w("<span id='configureMailchimp'>").f(t.getPath(!1,["mailchimpLeadAddModal","configure"]),t,"h").w("</span>")}function Ce(e,t){return e.w("<span id='manageMailchimp'>").f(t.getPath(!1,["mailchimpLeadAddModal","manage"]),t,"h").w("</span>")}function Pe(e,t){return e.w('<div class="text-center cta-right-box"><h3>').f(t.getPath(!1,["ctaActions","question"]),t,"h").w("</h3><h5>").f(t.getPath(!1,["ctaActions","questionDesc"]),t,"h").w('</h5><hr class="cta-line"><div class="scroll-setting"><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","question1"]),t,"h").w('<small class="required-alert hide" id="questionAlert">*</small></h6></div><div class="small-9 columns end"><input type="text" id="questionTxt" ').x(t.get(["question"],!1),t,{block:Te},{}).w('/></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","option1"]),t,"h").w('<small class="required-alert hide" id="option1Alert">*</small></h6></div><div class="small-9 columns end"><input type="text" class="cta-question-option" id="option1Txt" option-no="1" ').x(t.get(["op1"],!1),t,{block:Se},{}).w('/></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","option2"]),t,"h").w('<small class="required-alert hide" id="option2Alert">*</small></h6></div><div class="small-9 columns end"><input type="text" class="cta-question-option" id="option2Txt" option-no="2" ').x(t.get(["op2"],!1),t,{block:xe},{}).w('/></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","option3"]),t,"h").w('</h6></div><div class="small-9 columns end"><input type="text" class="cta-question-option" id="option3Txt" option-no="3" ').x(t.get(["op3"],!1),t,{block:Ae},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","optional"]),t,"h").w('"/></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","option4"]),t,"h").w('</h6></div><div class="small-9 columns end"><input type="text" class="cta-question-option" id="option4Txt" option-no="4" ').x(t.get(["op4"],!1),t,{block:Ie},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","optional"]),t,"h").w('"/></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","buttonText"]),t,"h").w('</h6></div><div class="small-9 columns end"><input type="text" class="text-input" id="pollBtnText" ').x(t.get(["button_text"],!1),t,{block:Be},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","play"]),t,"h").w('"></div></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","time"]),t,"h").w('</h6></div><div class="small-4 columns end"><input class="timer-input" type="text" id="startTime" placeholder="00:00" value="').x(t.get(["time"],!1),t,{else:Ee,block:Le},{}).w('"/><div class="cta-arrow-up up" id="startTimeUpArrow"></div><div class="cta-arrow-down down" id="startTimeDownArrow"></div></div></div><div class="large-12 columns"><div class="small-12 columns text-left"><input type="checkbox" class="wiz-checkbox-blue" id="allowSkipCheck" ').x(t.get(["allow_skip"],!1),t,{block:Ve},{}).w('/><label class="check-label" for="allowSkipCheck">').f(t.getPath(!1,["ctaActions","allowViewersToSkip"]),t,"h").w('</label></div></div><a class="button cta-apply-btn apply" id="questionApplyBtn">').f(t.getPath(!1,["ctaActions","apply"]),t,"h").w('</a><a class="button cta-cancel-btn cancel" id="ctaCancel">').f(t.getPath(!1,["ctaActions","cancel"]),t,"h").w("</a></div>")}function Te(e,t){return e.w('value="').f(t.get(["question"],!1),t,"h").w('"')}function Se(e,t){return e.w('value="').f(t.get(["op1"],!1),t,"h").w('"')}function xe(e,t){return e.w('value="').f(t.get(["op2"],!1),t,"h").w('"')}function Ae(e,t){return e.w('value="').f(t.get(["op3"],!1),t,"h").w('"')}function Ie(e,t){return e.w('value="').f(t.get(["op4"],!1),t,"h").w('"')}function Be(e,t){return e.w('value="').f(t.get(["button_text"],!1),t,"h").w('"')}function Ee(e,t){return e.w("00:00")}function Le(e,t){return e.f(t.get(["time"],!1),t,"h")}function Ve(e,t){return e.w("checked")}function Re(e,t){return e.w('<div class="text-center cta-right-box"><h3>').f(t.getPath(!1,["ctaActions","endScreen"]),t,"h").w("</h3><h5>").f(t.getPath(!1,["ctaActions","endScreenDesc"]),t,"h").w('</h5><hr class="cta-line"><div class="large-12 columns"><div class="small-12 columns text-left"><a class="import-label" id="endScreenVideoSelectBtn">').f(t.getPath(!1,["ctaActions","chooseFromHippoLibrary"]),t,"h").w('</a><input id="endScreenVideoId" type="hidden" ').x(t.get(["video_id"],!1),t,{block:Ne},{}).w('/></div></div><div class="large-12 columns"><div class="small-3 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","addToLast"]),t,"h").w('</h6></div><div class="small-5 columns end"><select id="lastNumSeconds"><option value="5" ').h("eq",t,{block:Fe},{key:t.get(["last_num_seconds"],!1),value:5},"h").w(">5 ").f(t.getPath(!1,["ctaActions","seconds"]),t,"h").w('</option><option value="6" ').h("eq",t,{block:Oe},{key:t.get(["last_num_seconds"],!1),value:10},"h").w(">6 ").f(t.getPath(!1,["ctaActions","seconds"]),t,"h").w('</option><option value="7" ').h("eq",t,{block:De},{key:t.get(["last_num_seconds"],!1),value:15},"h").w(">7 ").f(t.getPath(!1,["ctaActions","seconds"]),t,"h").w('</option><option value="8" ').h("eq",t,{block:Me},{key:t.get(["last_num_seconds"],!1),value:20},"h").w(">8 ").f(t.getPath(!1,["ctaActions","seconds"]),t,"h").w('</option><option value="9" ').h("eq",t,{block:Ue},{key:t.get(["last_num_seconds"],!1),value:20},"h").w(">9 ").f(t.getPath(!1,["ctaActions","seconds"]),t,"h").w('</option><option value="10" ').h("eq",t,{block:ze},{key:t.get(["last_num_seconds"],!1),value:20},"h").w(">10 ").f(t.getPath(!1,["ctaActions","seconds"]),t,"h").w('</option></select></div></div><a class="button cta-apply-btn apply" id="endScreenApplyBtn">').f(t.getPath(!1,["ctaActions","apply"]),t,"h").w('</a><a class="button cta-cancel-btn cancel" id="ctaCancel">').f(t.getPath(!1,["ctaActions","cancel"]),t,"h").w("</a></div>")}function Ne(e,t){return e.w('value="').f(t.get(["video_id"],!1),t,"h").w('"')}function Fe(e,t){return e.w("selected")}function Oe(e,t){return e.w("selected")}function De(e,t){return e.w("selected")}function Me(e,t){return e.w("selected")}function Ue(e,t){return e.w("selected")}function ze(e,t){return e.w("selected")}function Ge(e,t){return e.w('<div class="text-center cta-right-box"><h3>').f(t.get(["title"],!1),t,"h").w("</h3><h5>").f(t.get(["desc"],!1),t,"h").w('</h5><hr class="cta-line"><div id="ctaHtmlContent" class="large-12 columns"><div class="small-2 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","html"]),t,"h").w('<small class="required-alert hide" id="embedFormContentAlert">*</small></h6></div><div class="small-10 columns"><textarea id="embedFormContent" rows="5" cols="30">').x(t.get(["embed_form"],!1),t,{block:He},{}).w('</textarea></div></div><div class="large-12 columns bg-theme-box"><div class="small-6 columns text-left"><h6 class="form-label">Background theme</h6></div><div class="small-6 columns end"><label class="labels">Light</label><div class="switch round small"><input id="embedFormBackground" type="checkbox" checked><label for="embedFormBackground" class="embedCrmBackgroundSwitch"></label></div> <label class="labels">Dark</label></div></div><div class="large-12 columns"><div class="small-12 columns text-left"><input type="checkbox" class="wiz-checkbox-blue" id="allowPlayCheck" ').x(t.get(["allow_play"],!1),t,{block:$e},{}).w('/><label class="check-label" for="allowPlayCheck">').f(t.getPath(!1,["ctaActions","allowViewersToPlay"]),t,"h").w('</label><span class="help-span" tooltip="').f(t.getPath(!1,["ctaActions","allowPlayTooltip"]),t,"h").w('"><img class="help-text-img help-text-allowplay" src="/svg/help1.svg" width="15"></span></div></div><div class="large-12 columns cta-embed-skip"><div class="small-12 columns text-left"><input type="checkbox" class="wiz-checkbox-blue" id="allowSkipCheck" ').x(t.get(["skip_allowed"],!1),t,{block:je},{}).w('/><label class="check-label" for="allowSkipCheck">').f(t.getPath(!1,["ctaActions","allowViewersToSkip"]),t,"h").w('</label></div></div><div class="large-12 columns"><div id="embedFormStartTimeContainer" class="small-').x(t.get(["allow_play"],!1),t,{else:qe,block:We},{}).w(' columns text-left"><h6 id="ctaEmbedFormTimeLabel" class="form-label">').x(t.get(["allow_play"],!1),t,{else:Je,block:Ze},{}).w('</h6></div><div class="small-4 columns end"><input class="timer-input" type="text" id="startTime" placeholder="00:00" value="').x(t.get(["time"],!1),t,{else:Qe,block:Ye},{}).w('"/><div class="cta-arrow-up up" id="startTimeUpArrow"></div><div class="cta-arrow-down down" id="startTimeDownArrow"></div></div></div><div id="embedFormEndTimeContainer" class="large-12 columns ').x(t.get(["allow_play"],!1),t,{block:Ke},{}).w('"><div class="small-3 columns text-left"><h6 id="ctaEmbedFormTimeLabel" class="form-label">').f(t.getPath(!1,["ctaActions","endTime"]),t,"h").w('</h6></div><div class="small-4 columns end"><input class="timer-input" type="text" id="endTime" placeholder="00:00" value="').x(t.get(["endTime"],!1),t,{else:Xe,block:et},{}).w('"/><div class="cta-arrow-up up" id="endTimeUpArrow"></div><div class="cta-arrow-down down" id="endTimeDownArrow"></div></div></div><a class="button cta-apply-btn apply" id="embedCrmFormApplyBtn">').f(t.getPath(!1,["ctaActions","apply"]),t,"h").w('</a><a class="button cta-cancel-btn cancel" id="ctaCancel">').f(t.getPath(!1,["ctaActions","cancel"]),t,"h").w("</a></div>")}function He(e,t){return e.f(t.get(["embed_form"],!1),t,"h")}function $e(e,t){return e.w("checked")}function je(e,t){return e.w("checked")}function qe(e,t){return e.w("3")}function We(e,t){return e.w("2")}function Je(e,t){return e.f(t.getPath(!1,["ctaActions","startTime"]),t,"h")}function Ze(e,t){return e.f(t.getPath(!1,["ctaActions","time"]),t,"h")}function Qe(e,t){return e.w("00:00")}function Ye(e,t){return e.f(t.get(["time"],!1),t,"h")}function Ke(e,t){return e.w("hide")}function Xe(e,t){return e.w("00:00")}function et(e,t){return e.f(t.get(["endTime"],!1),t,"h")}function tt(e,t){return e.w('<div class="text-center cta-right-box"><h3>').f(t.getPath(!1,["ctaActions","endCard"]),t,"h").w("</h3><h5>").f(t.getPath(!1,["ctaActions","endCardDesc"]),t,"h").w('</h5><hr class="cta-line"><div class="large-12 columns has-quill-toolbar"><div class="small-12 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","fieldName"]),t,"h").w('<small class="required-alert hide" id="fieldNameAlert">*</small></h6></div><div class="small-12 columns end"><div class="text-input cta-display-value" type="text" id="field_name"></div><span id="field_name_placeholder" class="right-label-placeholder disp-none" data-dependent-label="ctaPlayerTitle_placeholder">').f(t.getPath(!1,["ctaActions","defaultTitle"]),t,"h").w('</span><span class="cta-text-limit"><span id="field_name_limit"></span>/<span>100</span></span></div><div id="field_name_quill_editor" class="small-12 columns cta-editor-toolbar cta-component-toolbar"></div></div><div class="large-12 columns has-quill-toolbar"><div class="small-12 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","designation"]),t,"h").w('</h6></div><div class="small-12 columns end"><div id="cta_text" class="text-input cta-display-value"></div><span id="cta_text_placeholder" class="right-label-placeholder disp-none" data-dependent-label="ctaPlayerText_placeholder">').f(t.getPath(!1,["ctaActions","defaultText"]),t,"h").w('</span><span class="cta-text-limit"><span id="cta_text_limit"></span>/<span>100</span></span></div><div id="cta_text_quill_editor" class="small-12 columns cta-editor-toolbar cta-component-toolbar"></div></div><div class="large-12 columns has-quill-toolbar"><div class="small-12 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","buttonText"]),t,"h").w('<small class="required-alert hide" id="endCardButtonTxtAlert">*</small></h6></div><div class="small-12 columns end"><div type="text" class="text-input cta-display-value" id="button_text"></div><span id="button_text_placeholder" class="right-label-placeholder disp-none" data-dependent-label="ctaPlayerButtonText_placeholder">').f(t.getPath(!1,["ctaActions","buttonDefaultText"]),t,"h").w('</span><span class="cta-text-limit"><span id="button_text_limit"></span>/<span>100</span></span></div><div id="button_text_quill_editor" class="small-12 columns cta-editor-toolbar cta-component-toolbar"></div></div><div class="large-12 columns"><div class="small-12 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","buttonLink"]),t,"h").w(' <small class="required-alert hide" id="endCardButtonLinkAlert">*</small></h6></div><div class="small-12 columns end"><input type="text" class="text-input" id="endCardButtonLink" ').x(t.get(["button_link"],!1),t,{block:it},{}).w(' placeholder="').f(t.getPath(!1,["ctaActions","sampleMeetingLink"]),t,"h").w('"/></div></div><div class="large-12 columns"><div class="small-12 columns text-left"><h6 class="form-label">').f(t.getPath(!1,["ctaActions","buttonColour"]),t,"h").w('</h6></div><div class="small-12 columns end cta-button-colour"><div data-idx="0" class="palette-box small-1 columns"><div data-idx="0" id="paletteColorBox" class="palette-color-box" style="background-color:').x(t.get(["button_color"],!1),t,{else:at,block:st},{}).w('"></div><span data-idx="0" class="palette-color-box-hex">').x(t.get(["button_color"],!1),t,{else:ot,block:nt},{}).w('</span></div><div data-idx="0" class="change-color-container"><a id="changeButtonColor" class="change-palette" data-idx="0"><img src="/svg/edit-58b0c3.svg" width="10">').f(t.getPath(!1,["ctaActions","changeColor"]),t,"h").w('</a><span class="change-palette-picker" style="display:none;" data-idx="0"></span></div></div></div><a class="button cta-apply-btn apply" id="endCardApplyBtn">').f(t.getPath(!1,["ctaActions","apply"]),t,"h").w('</a><a class="button cta-cancel-btn cancel" id="ctaCancel">').f(t.getPath(!1,["ctaActions","cancel"]),t,"h").w("</a></div>")}function it(e,t){return e.w('value="').f(t.get(["button_link"],!1),t,"h").w('"')}function at(e,t){return e.w("#4ea7bc")}function st(e,t){return e.f(t.get(["button_color"],!1),t,"h")}function ot(e,t){return e.w("#4ea7bc")}function nt(e,t){return e.f(t.get(["button_color"],!1),t,"h")}function lt(e,t){return e.w('<div class="success-tick"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130.2 130.2"><circle class="path circle" fill="none" stroke="#73AF55" stroke-width="6" stroke-miterlimit="10" cx="65.1" cy="65.1" r="62.1"/><polyline class="path check" fill="none" stroke="#73AF55" stroke-width="6" stroke-linecap="round" stroke-miterlimit="10" points="100.2,40.2 51.5,88.8 29.8,67.5 "/></svg><p>').f(t.getPath(!1,["ctaActions","appliedSuccessfully"]),t,"h").w("</p></div>")}e.register("templates/cta/cta_add_component",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,y.__dustBody=!0,_.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,P.__dustBody=!0,T.__dustBody=!0,S.__dustBody=!0,x.__dustBody=!0,A.__dustBody=!0,I.__dustBody=!0,B.__dustBody=!0,E.__dustBody=!0,L.__dustBody=!0,V.__dustBody=!0,R.__dustBody=!0,N.__dustBody=!0,F.__dustBody=!0,O.__dustBody=!0,D.__dustBody=!0,M.__dustBody=!0,U.__dustBody=!0,z.__dustBody=!0,G.__dustBody=!0,H.__dustBody=!0,$.__dustBody=!0,j.__dustBody=!0,q.__dustBody=!0,W.__dustBody=!0,J.__dustBody=!0,Z.__dustBody=!0,Q.__dustBody=!0,Y.__dustBody=!0,K.__dustBody=!0,X.__dustBody=!0,ee.__dustBody=!0,te.__dustBody=!0,ie.__dustBody=!0,ae.__dustBody=!0,se.__dustBody=!0,oe.__dustBody=!0,ne.__dustBody=!0,le.__dustBody=!0,re.__dustBody=!0,de.__dustBody=!0,ce.__dustBody=!0,ue.__dustBody=!0,he.__dustBody=!0,pe.__dustBody=!0,me.__dustBody=!0,ve.__dustBody=!0,ge.__dustBody=!0,fe.__dustBody=!0,be.__dustBody=!0,we.__dustBody=!0,ye.__dustBody=!0,_e.__dustBody=!0,ke.__dustBody=!0,Ce.__dustBody=!0,Pe.__dustBody=!0,Te.__dustBody=!0,Se.__dustBody=!0,xe.__dustBody=!0,Ae.__dustBody=!0,Ie.__dustBody=!0,Be.__dustBody=!0,Ee.__dustBody=!0,Le.__dustBody=!0,Ve.__dustBody=!0,Re.__dustBody=!0,Ne.__dustBody=!0,Fe.__dustBody=!0,Oe.__dustBody=!0,De.__dustBody=!0,Me.__dustBody=!0,Ue.__dustBody=!0,ze.__dustBody=!0,Ge.__dustBody=!0,He.__dustBody=!0,$e.__dustBody=!0,je.__dustBody=!0,qe.__dustBody=!0,We.__dustBody=!0,Je.__dustBody=!0,Ze.__dustBody=!0,Qe.__dustBody=!0,Ye.__dustBody=!0,Ke.__dustBody=!0,Xe.__dustBody=!0,et.__dustBody=!0,tt.__dustBody=!0,it.__dustBody=!0,at.__dustBody=!0,st.__dustBody=!0,ot.__dustBody=!0,nt.__dustBody=!0,lt.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/cta/cta_add_component",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},26088:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.h("eq",t,{else:i,block:w},{key:t.getPath(!1,["actions","length"]),value:0},"h")}function i(e,t){return e.s(t.get(["actions"],!1),t,{block:a},{})}function a(e,t){return e.w('<div class="cta-timeline large-12 columns"><div class="cta-empty-timeline cta-').f(t.get(["type"],!1),t,"h").w(" ").x(t.get(["is_last"],!1),t,{block:s},{}).w('"><div class="small-1 columns"><div class="timeline-time">').f(t.get(["time"],!1),t,"h").w('</div><div class="timeline-dot"><div class="timeline-dot-inner"></div></div></div><div class="small-11 columns timeline-box-wrap"><div class="large-12 columns timeline-box"><div class="medium-1 columns text-center"><div class="ico-box"><img src="/svg/timeline.svg"></div></div><div class="medium-8 columns">').h("select",t,{block:o},{key:t.get(["type"],!1)},"h").w('</div><div class="medium-3 columns btn-wrap"><div class="small-6 columns edit timeline-edit-btn" cta-type="').f(t.get(["type"],!1),t,"h").w('" cta-id="').f(t.get(["id"],!1),t,"h").w('" is-global="').f(t.get(["is_global"],!1),t,"h").w('"><center><img src="/svg/edit-58b0c3.svg">').f(t.getPath(!1,["ctaActions","edit"]),t,"h").w('</center></div><div class="small-6 columns delete timeline-delete-btn" cta-type="').f(t.get(["type"],!1),t,"h").w('" cta-id="').f(t.get(["id"],!1),t,"h").w('" is-global="').f(t.get(["is_global"],!1),t,"h").w('"><center><img src="/svg/delete-ico-grey.svg">').f(t.getPath(!1,["ctaActions","delete"]),t,"h").w("</center></div></div></div></div></div></div>")}function s(e,t){return e.w("is-last")}function o(e,t){return e.h("eq",t,{block:n},{value:t.getPath(!1,["cta","ANNOTATION"])},"h").h("eq",t,{block:l},{value:t.getPath(!1,["cta","CALL_TO_ACTION"])},"h").h("eq",t,{block:m},{value:t.getPath(!1,["cta","FORM"])},"h").h("eq",t,{block:v},{value:t.getPath(!1,["cta","QUESTION"])},"h").h("eq",t,{block:g},{value:t.getPath(!1,["cta","END_SCREEN"])},"h").h("eq",t,{block:f},{value:t.getPath(!1,["cta","EMBED_CRM_FORM"])},"h").h("eq",t,{block:b},{value:t.getPath(!1,["cta","CTA_MEETING"])},"h")}function n(e,t){return e.w("<h4> ").f(t.getPath(!1,["ctaActions","annotationAdded"]),t,"h").w(" </h4><h5> ").f(t.get(["text"],!1),t,"h").w(" </h5>")}function l(e,t){return e.w("<h4> ").f(t.getPath(!1,["ctaActions","callToActionAdded"]),t,"h").w(" </h4>").h("select",t,{block:r},{key:t.get(["action_type"],!1)},"h")}function r(e,t){return e.h("eq",t,{block:d},{value:t.getPath(!1,["cta","actionType","HTML"])},"h").h("eq",t,{block:c},{value:t.getPath(!1,["cta","actionType","IMAGE"])},"h").h("eq",t,{block:u},{value:t.getPath(!1,["cta","actionType","TEXT"])},"h").h("eq",t,{block:h},{value:t.getPath(!1,["cta","actionType","HUBSPOT"])},"h").h("eq",t,{block:p},{value:t.getPath(!1,["cta","actionType","PARDOT"])},"h")}function d(e,t){return e.w("<h5> ").f(t.getPath(!1,["ctaActions","htmlAdded"]),t,"h").w(" </h5>")}function c(e,t){return e.w("<h5> ").f(t.getPath(!1,["ctaActions","imageAdded"]),t,"h").w(" </h5>")}function u(e,t){return e.w("<h5> ").f(t.get(["cta_text"],!1),t,"h").w(" </h5>")}function h(e,t){return e.w("<h5> ").f(t.getPath(!1,["ctaActions","hubspotFormAdded"]),t,"h").w(" </h5>")}function p(e,t){return e.w("<h5> ").f(t.getPath(!1,["ctaActions","pardotFormAdded"]),t,"h").w(" </h5>")}function m(e,t){return e.w("<h4> ").f(t.getPath(!1,["ctaActions","formAdded"]),t,"h").w(" </h4><h5> ").f(t.get(["upper_text"],!1),t,"h").w(" </h5>")}function v(e,t){return e.w("<h4> ").f(t.getPath(!1,["ctaActions","quizAdded"]),t,"h").w(" </h4><h5> ").f(t.get(["question"],!1),t,"h").w(" </h5>")}function g(e,t){return e.w("<h4> ").f(t.getPath(!1,["ctaActions","endScreenAdded"]),t,"h").w(" </h4><h5> ").f(t.get(["title"],!1),t,"h").w(" ").f(t.getPath(!1,["ctaActions","endScreenAddedDesc"]),t,"h").w(" </h5>")}function f(e,t){return e.w("<h4> ").f(t.getPath(!1,["ctaActions","embedFormAdded"]),t,"h").w(" </h4><h5> ").f(t.get(["embed_form"],!1),t,"h").w(" </h5>")}function b(e,t){return e.w("<h4> ").f(t.getPath(!1,["ctaActions","endCardAdded"]),t,"h").w(" </h4><h5> ").f(t.get(["field_name"],!1),t,"h").w(" </h5>")}function w(e,t){return e.w('<div class="cta-timeline"><div class="cta-empty-timeline empty"><div class="small-1 columns"><div class="timeline-time for-empty">00:00</div><div class="timeline-dot"><div class="timeline-dot-inner"></div></div></div><div class="small-11 columns timeline-box-wrap"><div class="large-12 columns timeline-box"><div class="medium-1 columns text-center"><div class="ico-box"><img src="/svg/timeline.svg"></div></div><div class="medium-8 columns"><h4>').f(t.getPath(!1,["ctaActions","timelineIsEmpty"]),t,"h").w("</h4><h5>").f(t.getPath(!1,["ctaActions","emptyTimelineDesc"]),t,"h").w('</h5></div><div class="medium-3 columns"><p> </p></div></div></div><div class="small-1 columns"><p> </p></div></div></div>')}e.register("templates/cta/cta_timeline",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/cta/cta_timeline",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},81512:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="mcpop-wrapper"><div class="mcpop-container"><div class="mcpop-progress"><ul><li class="mcpop-progressed" data-title="Account">1</li><li data-title="Audience">2</li><li data-title="Groups">3</li></ul></div><div class="mcpop-content"><div class="mcpop-acc" id="accountSection"><h6>').f(t.getPath(!1,["mailchimpLeadAddModal","account"]),t,"h").w("<em>").f(t.get(["email"],!1),t,"h").w('</em><span id="changeMailchimpAcc">').f(t.getPath(!1,["mailchimpLeadAddModal","changeAccount"]),t,"h").w('</span></h6></div><div class="mcpop-input-holder hide" id="audienceSection" data-audience-fetched=\'false\'><div id="audienceData"><label for="" class="mcpop-required">').f(t.getPath(!1,["mailchimpLeadAddModal","selectAudience"]),t,"h").w('</label><select name="" id="audienceDropdown"></select></div><div class="hide" id="emptyAudienceList"><p class="mcpop-infomsg">').f(t.getPath(!1,["mailchimpLeadAddModal","noListsFound"]),t,"h").w('</p></div></div><div class="mcpop-input-holder hide" id="groupSection" data-groups-fetched=\'false\'><div id="groupData"><label>').f(t.getPath(!1,["mailchimpLeadAddModal","groups"]),t,"h").w('</label><input id="mailchimpGroupInput" list="allGroups" placeholder="Search Groups"/><datalist id="allGroups" class=\'group-datalist\'></datalist><div id=\'groupContainer\' class="mcpop-grp-container"></div></div><div class="hide" id="emptyAudienceGroup"><p class="mcpop-infomsg">').f(t.getPath(!1,["mailchimpLeadAddModal","noGroupsFound"]),t,"h").w('</p></div></div> </div></div><div class="mcpop-footer" data-current-tab=\'account\' id="mailchimpFooter"><button class="btn-grey flt_left hide" id="mailchimpPrevBtn">').f(t.getPath(!1,["mailchimpLeadAddModal","previous"]),t,"h").w('</button><button class="wiz-primary-btn flt_right" id="mailchimpNextBtn">').f(t.getPath(!1,["mailchimpLeadAddModal","next"]),t,"h").w('</button><button class="wiz-primary-btn flt_right hide" id="mailchimpFinishBtn">').f(t.getPath(!1,["mailchimpLeadAddModal","finish"]),t,"h").w("</button></div></div>")}e.register("templates/integrations/mailchimp_popup_template",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/integrations/mailchimp_popup_template",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},53406:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<p class="content-title">').f(t.get(["videoUsage"],!1),t,"h").w('</p><div id="customTrackingMarketing" class="custom-tracking-marketing"><div id="customTrackerSelection" class="custom-tracker-selection"><div class="accordion-toggle no-top-border" id="pixelTrackerContent" trackingType=1><img src="/img/video-share-embed-blue.png" class="fb-icon"><span class="fb-pixel-name">facebook pixel</span><span class="toggle-arrow"></span><label class="detail-lines">').f(t.get(["pixelContent"],!1),t,"h").w("</label></div>").x(t.get(["isPixelEnabled"],!1),t,{block:i},{}).w('<div class="accordion-toggle" id="gaTrackerContent" trackingType=2><img src="/img/google-analytics-icon.png" class="fb-icon"><span class="fb-pixel-name">google analytics</span><span class="toggle-arrow"></span><label class="detail-lines">').f(t.get(["GAContent"],!1),t,"h").w("</label></div>").x(t.get(["isGAEnabled"],!1),t,{block:s},{}).w('<div class="accordion-toggle" id="luckyOrangeTrackerContent" trackingType=7><img src="/img/lucky-orange-icon.png" class="fb-icon"><span class="fb-pixel-name">Lucky orange</span><span class="toggle-arrow"></span><label class="detail-lines">').f(t.get(["luckyOrangeContent"],!1),t,"h").w("</label></div>").x(t.get(["isLuckyOrangeEnabled"],!1),t,{block:n},{}).w("</div></div>")}function i(e,t){return e.w('<section class="accordion-content"><div id="facebookPixel" class="custom-tracking clearfix" data="facebookPixelContent"><div class="small-12 columns"><div class="small-3 columns"><label class="kq-label info-label inline">').f(t.get(["pixelId"],!1),t,"h").w('</label></div><div class="small-9 columns"><input rows="5" id="videoPixelId" value="').f(t.get(["video_description"],!1),t,"h").w('" placeholder="" /></div></div><div class="small-12 columns"><div class="small-3 columns"><label class="kq-label info-label inline">').f(t.get(["addEvents"],!1),t,"h").w(' <img src="/img/help.png" class="help-icon" title="').f(t.get(["eventsHelp"],!1),t,"h").w('" /></label></div><div class="small-9 columns tag-wrap"><select id="pixelTags" multiple="multiple">').s(t.get(["pixelTags"],!1),t,{block:a},{}).w('</select></div></div><div class="small-12 columns"><div class="small-3 columns text-left"><label class="kq-label inline" for="appt-time inline">').f(t.get(["trackFrom"],!1),t,"h").w('<img src="/img/help.png" class="help-icon" title="').f(t.get(["trackFromHelp"],!1),t,"h").w('" /></label></div><div class="small-4 columns end"><input class="timer-input" type="text" id="pixelTime" value="00:00"><div class="tracking-arrow-up up startTimeUpArrow" id="startTimeUpArrow" trackingType=1></div><div class="tracking-arrow-down down startTimeDownArrow" id="startTimeDownArrow" trackingType=1></div></div><div class="small-4 columns"></div></div><div class="small-12 columns text-right"><button type="button" id="cancelCustomTracking" trackingType=1 class="secondary radius">').f(t.get(["cancel"],!1),t,"h").w('</button><button type="button" id="pixelCode" trackingType=1 class="wiz-primary-btn custom-tracking-save">').f(t.get(["save"],!1),t,"h").w("</button></div></div></section>")}function a(e,t){return e.w('<option value="').f(t.getPath(!1,["pixelTags",t.get(["$idx"],!1)]),t,"h").w('"> ').f(t.getPath(!1,["pixelTags",t.get(["$idx"],!1)]),t,"h").w(" </option>")}function s(e,t){return e.w('<section class="accordion-content"><div id="googleAnalytics" class="custom-tracking clearfix" data="GAContent"><div class="small-12 columns"><div class="small-3 columns"><label class="kq-label info-label inline">Tracking Id</label></div><div class="small-9 columns"><input rows="5" id="videoGAId" value="').f(t.get(["video_description"],!1),t,"h").w('" placeholder="" /></div></div><div class="small-12 columns"><div class="small-3 columns"><label class="kq-label info-label inline">').f(t.get(["addEvents"],!1),t,"h").w(' <img src="/img/help.png" class="help-icon" title="').f(t.get(["eventsHelp"],!1),t,"h").w('" /></label></div><div class="small-9 columns tag-wrap"><select type="text" id="GATags" multiple placeholder="').f(t.get(["videoTagsPlaceholder"],!1),t,"h").w('" >').s(t.get(["GATags"],!1),t,{block:o},{}).w('</select></div></div><div class="small-12 columns"><div class="small-3 columns text-left"><label class="kq-label inline" for="appt-time inline">').f(t.get(["trackFrom"],!1),t,"h").w('<img src="/img/help.png" class="help-icon" title="').f(t.get(["trackFromHelp"],!1),t,"h").w('" /></label></div><div class="small-4 columns end"><input class="timer-input" type="text" id="GATime" value="00:00"><div class="tracking-arrow-up up startTimeUpArrow" id="startTimeUpArrow" trackingType=2></div><div class="tracking-arrow-down down startTimeDownArrow" id="startTimeDownArrow" trackingType=2></div></div><div class="small-4 columns"></div></div><div class="small-12 columns text-right"><button type="button" id="cancelCustomTracking" trackingType=2 class="secondary radius">').f(t.get(["cancel"],!1),t,"h").w('</button><button type="button" id="GACode" trackingType=2 class="wiz-primary-btn custom-tracking-save">').f(t.get(["save"],!1),t,"h").w("</button></div></div></section>")}function o(e,t){return e.w('<option value="').f(t.getPath(!1,["GATags",t.get(["$idx"],!1)]),t,"h").w('"> ').f(t.getPath(!1,["GATags",t.get(["$idx"],!1)]),t,"h").w(" </option>")}function n(e,t){return e.w('<section class="accordion-content"><div id="luckyOrange" class="custom-tracking clearfix" data="luckyOrangeTrackerContent"><div class="small-12 columns"><div class="small-3 columns"><label class="kq-label info-label inline">Tracking Id</label></div><div class="small-9 columns"><input rows="5" id="videoLOId" value="').f(t.get(["video_description"],!1),t,"h").w('" placeholder="" /></div></div><div class="small-12 columns"><div class="small-3 columns text-left"><label class="kq-label inline" for="appt-time inline">').f(t.get(["trackFrom"],!1),t,"h").w('<img src="/img/help.png" class="help-icon" title="').f(t.get(["trackFromHelp"],!1),t,"h").w('" /></label></div><div class="small-4 columns end"><input class="timer-input" type="text" id="LOTime" value="00:00"><div class="tracking-arrow-up up startTimeUpArrow" id="startTimeUpArrow" trackingType=7></div><div class="tracking-arrow-down down startTimeDownArrow" id="startTimeDownArrow" trackingType=7></div></div><div class="small-4 columns"></div></div><div class="small-12 columns text-right"><button type="button" id="cancelCustomTracking" trackingType=7 class="secondary radius">').f(t.get(["cancel"],!1),t,"h").w('</button><button type="button" id="LOCode" trackingType=7 class="wiz-primary-btn custom-tracking-save">').f(t.get(["save"],!1),t,"h").w("</button></div></div></section>")}e.register("templates/preview/custom_tracking",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/custom_tracking",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},45674:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.x(t.get(["canShowEditActions"],!1),t,{block:i},{})}function i(e,t){return e.x(t.get(["canShowSimpleEdit"],!1),t,{else:a,block:c},{})}function a(e,t){return e.x(t.get(["canShowAdvEdit"],!1),t,{else:s,block:n},{})}function s(e,t){return e.x(t.get(["canShowPersonaliseEdit"],!1),t,{block:o},{})}function o(e,t){return e.w('<a id="editDropDownBtn" class="button wiz-primary-btn edit-dropdown-btn preview-top-btn preview-edit" data-dropdown="edit-dropdown" aria-controls="edit-dropdown" aria-expanded="false" data-options="is_hover:true; hover_timeout:100"> ').f(t.get(["editVideo"],!1),t,"h").w(' </a><ul id="edit-dropdown" class="f-dropdown dropdown-options" data-dropdown-content aria-hidden="true" tabindex="-1"><li class="text-left"><a id="renderPersEditButton"> Personalize (Beta) </a></li></ul>')}function n(e,t){return e.x(t.get(["canShowPersonaliseEdit"],!1),t,{else:l,block:r},{})}function l(e,t){return e.w('<button id="editButton" class="button wiz-primary-btn edit-btn preview-top-btn"> ').f(t.get(["editVideo"],!1),t,"h").w(" </button>")}function r(e,t){return e.w('<a id="editDropDownBtn" class="button wiz-primary-btn edit-dropdown-btn preview-top-btn preview-edit" data-dropdown="edit-dropdown" aria-controls="edit-dropdown" aria-expanded="false" data-options="is_hover:true; hover_timeout:100"> ').f(t.get(["editVideo"],!1),t,"h").w(' </a><ul id="edit-dropdown" class="f-dropdown dropdown-options" data-dropdown-content aria-hidden="true" tabindex="-1"><li class="text-left"><a id="proEditButton"> ').f(t.get(["proEdit"],!1),t,"h").w(" </a></li>").x(t.get(["canShowPersonaliseEdit"],!1),t,{block:d},{}).w("</ul>")}function d(e,t){return e.w('<li class="text-left"><a id="renderPersEditButton"> Personalize (Beta)</a></li>')}function c(e,t){return e.w('<a id="editDropDownBtn" class="button wiz-primary-btn edit-dropdown-btn preview-top-btn preview-edit" data-dropdown="edit-dropdown" aria-controls="edit-dropdown" aria-expanded="false" data-options="is_hover:true; hover_timeout:100"> ').f(t.get(["editVideo"],!1),t,"h").w(' </a><ul id="edit-dropdown" class="f-dropdown dropdown-options" data-dropdown-content aria-hidden="true" tabindex="-1"><li class="text-left"><a id="simpleEditButton"> ').f(t.get(["quickEdit"],!1),t,"h").w(" </a></li>").x(t.get(["canShowAdvEdit"],!1),t,{block:u},{}).x(t.get(["canShowPersonaliseEdit"],!1),t,{block:h},{}).w("</ul>")}function u(e,t){return e.w('<li class="text-left"><a id="proEditButton"> ').f(t.get(["proEdit"],!1),t,"h").w(" </a></li>")}function h(e,t){return e.w('<li class="text-left"><a id="renderPersEditButton"> Personalize (Beta)</a></li>')}e.register("templates/preview/edit_video_button",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/edit_video_button",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},77481:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="small-12"><div class="tab-warning-content"><center><img src="/svg/confirm-account-icon.svg" alt="Sign Up"/><p class="content-desc"> You have to Sign Up To access your video permanently and to record unlimited videos with the complete power of Hippo Video! </p><a href="/users/sign_up" class="button wiz-primary-btn radius preview-upgrade-btn"> Sign Up </a></center></div></div>')}e.register("templates/preview/guest_signup",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/guest_signup",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},86189:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="hvsubtitles-alert-wrapper disp-none"><div id="addSubtitleErrorPopup" class="hvsubtitles-alert-container"><p>Cannot add this subtitle to your video as another subtitle with the same name is already published.</p><span id="closeWindow" class="hvsubtitles-alert-close"><img src="/svg/close-icon-white.svg" alt="close"></span></div><div id="removeSubtitlePopup" class="hvsubtitles-alert-container hvsubtitles-confirmation"><h4>Are you sure?</h4><p id="removeSubtitleMessage">You are about to remove subtitles from this video.</p><div class="hvsubtitles-alert-footer"><button class="hv-btn-nobg" id="cancelRemoveSubtitles">NO</button><button class="hv-btn-primary" id="confirmRemoveSubtitles">DELETE</button></div></div><div id="downloadSubtitlePopup" class="hvsubtitles-alert-container hvsubtitles-confirmation"><h4>Download subtitle</h4><p>Select the format in which you want to download the subtitle file</p><select name="subtitleDownloadFileType" id="subtitleDownloadFileType"><option value="vtt">.vtt</option><option value="srt">.srt</option></select><div class="hvsubtitles-alert-footer"><button class="hv-btn-nobg" id="cancelDownload" >CANCEL</button><button class="hv-btn-primary" id="confirmDownload">DOWNLOAD</button></div></div></div>')}e.register("templates/preview/multilingual_subtitles/alerts",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/multilingual_subtitles/alerts",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},91191:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.x(t.get(["isVideoProcessing"],!1),t,{else:i,block:a},{})}function i(e,t){return e.p("templates/preview/multilingual_subtitles/subtitles",t,t,{})}function a(e,t){return e.p("templates/preview/multilingual_subtitles/video_processing",t,t,{})}e.register("templates/preview/multilingual_subtitles/base",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/multilingual_subtitles/base",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},92429:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.x(t.get(["showSubtitles"],!1),t,{block:i},{})}function i(e,t){return e.w('<div class="hvsubtitles-container"><div class="hvsubtitles-tools"><div class="hvsubtitles-checkbox hvsubtitles-tools-select"><input type="checkbox" name="" id="hvsubtitleSelectAll"><label for="hvsubtitleSelectAll">Select all</label><span id="selectedSubtitleNumber"></span></div><div class="hvsubtitles-tools-btns"><button id="downloadSelectedSubsAsZip"><img src="/svg/download-doc-grey.svg" alt="Download"> Download</button><button id="deleteSelectedSubtitles"><img src="/svg/delete-new-grey.svg" alt="Delete"> Delete</button></div></div><div class="hvsubtitles-table"><table><thead><tr><th>Language</th><th>Filename</th><th>Type</th><th>Status</th><th>Action</th></tr></thead><tbody>').s(t.get(["subtitle_list"],!1),t,{block:a},{}).w('</tbody></table></div></div><div id="subtitleWarning"></div>')}function a(e,t){return e.w('<tr><td><div class="hvsubtitles-checkbox" ').x(t.get(["default_subtitle"],!1),t,{else:s,block:o},{}).w('><input type="checkbox" class="hvsubtitles-individual-checkbox" id="select-').f(t.get(["id"],!1),t,"h").w('" data-subid="').f(t.get(["id"],!1),t,"h").w('"><label for="select-').f(t.get(["id"],!1),t,"h").w('">').f(t.get(["language"],!1),t,"h").w("</label></div></td><td>").f(t.get(["file_name"],!1),t,"h").w("</td><td>").f(t.get(["subtitle_type"],!1),t,"h").w('</td><td><div class="hvsubtitles-switch ').h("ne",t,{block:n},{key:t.get(["status"],!1),value:2},"h").w(' "><input type="checkbox" class="subtitle-publish" data-subid="').f(t.get(["id"],!1),t,"h").w('" id="publish-').f(t.get(["id"],!1),t,"h").w('" ').h("eq",t,{block:l},{key:t.get(["is_subtitles_enabled"],!1),value:1},"h").w('><label for="publish-').f(t.get(["id"],!1),t,"h").w('" data-draft="Draft" data-published="Published"></label></div><div class="hvsubtitles-generating-container ').h("eq",t,{block:r},{key:t.get(["status"],!1),value:2},"h").w('" data-subid="').f(t.get(["id"],!1),t,"h").w('"><div class="hvsubtitles-generating-info" data-subid="').f(t.get(["id"],!1),t,"h").w('"><p>Generating...</p><div class="hvsubtitles-generating-progress"><span data-subid="').f(t.get(["id"],!1),t,"h").w('"></span></div></div><div class="hvsubtitles-error-info disp-none" data-subid="').f(t.get(["id"],!1),t,"h").w('"><p>Generation Failed</p></div></div></td><td class="hvsubtitles-user-actions-drop"><div class="hvsubtitles-notify-me disp-none" data-subid="').f(t.get(["id"],!1),t,"h").w('">Notify me</div><span class="hvsubtitles-more-action" data-subid="').f(t.get(["id"],!1),t,"h").w('"><img src="/svg/more-blue.svg" alt="more"></span><div class="hvsubtitles-more-drop"><ul class="hvsubtitles-more-actionlist" ><li data-moreaction-for="delete" data-subid="').f(t.get(["id"],!1),t,"h").w('" >Delete</li><li data-moreaction-for="replace" data-subid="').f(t.get(["id"],!1),t,"h").w('" >Replace</li>').h("ne",t,{block:d},{key:t.get(["transcriber"],!1),value:3},"h").nx(t.get(["default_subtitle"],!1),t,{block:c},{}).h("eq",t,{block:h},{key:t.get(["status"],!1),value:2},"h").w("</ul>").p("templates/preview/multilingual_subtitles/table_drop",t,t,{}).p("templates/preview/multilingual_subtitles/replace_drop",t,t,{}).w("</div></td></tr>")}function s(e,t){return e.w(" ")}function o(e,t){return e.w('data-default="Default"')}function n(e,t){return e.w(" disp-none ")}function l(e,t){return e.w(" checked ")}function r(e,t){return e.w(" disp-none ")}function d(e,t){return e.w('<li data-moreaction-for="regenerate" data-subid="').f(t.get(["id"],!1),t,"h").w('" >Regenerate</li>')}function c(e,t){return e.h("eq",t,{block:u},{key:t.get(["status"],!1),value:2},"h")}function u(e,t){return e.w('<li data-moreaction-for="default" data-subid="').f(t.get(["id"],!1),t,"h").w('" >Set as default</li>')}function h(e,t){return e.w('<li data-moreaction-for="download" data-subid="').f(t.get(["id"],!1),t,"h").w('">Download</li>')}e.register("templates/preview/multilingual_subtitles/container",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/multilingual_subtitles/container",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},84881:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="hvsubtitles-drop-container"><ul>').x(t.get(["canGenerateSubtitle"],!1),t,{block:i},{}).x(t.get(["importSubtitlesEnabled"],!1),t,{block:s},{}).w('</ul><div class="hvsubtitles-drop-generate disp-none"><h4>Autogenerate subtitle</h5><h5>Subtitle Credits</h6><p>Your credits depend on the plan you have subscribed to.</p><div class="hvsubtitles-drop-credits"><span class="hvsubtitles-drop-insufficient ').nx(t.get(["isLowCredit"],!1),t,{block:o},{}).w('"><img src="/svg/info-icon-white.svg" alt="info"/> Insufficient Credit Limit</span><i>').f(t.get(["subtitle_credits_remaining"],!1),t,"h").w(' Minutes Remaining</i><div data-start-credit="0" data-end-credit="').f(t.get(["total_subtitle_credits_avail"],!1),t,"h").w('"><span style="width: ').f(t.get(["creditBarWidth"],!1),t,"h").w(';"></span></div><a href="/settings/subscription">Add Credits</a></div><div class="hvsubtitles-drop-language"><h6>Language</h6><select id="subtitleLanguageForGeneration"><option value="0" disabled selected>Choose language</option>').s(t.get(["subtitle_language"],!1),t,{block:n},{}).w('</select></div><p id="subtitleGenerateLanguageEmptyError" style="display: none;">Choose a valid Language</p><div class="hvsubtitles-drop-footer"><button class="hvsubtitles-drop-cancel hv-btn-nobg">Cancel</button><button class="hv-btn-primary" id="generateSubtitleButton">Generate</button>\x3c!-- add class \'no-pointer-events\' for disabling --\x3e</div></div><div class="hvsubtitles-drop-upload disp-none"><h4>Upload a subtitle</h5><div class="hvsubtitles-drop-language"><h6>Language</h6><input id="uploadSubtitleLanguage" type="text" placeholder="Enter language name" /></div><p id="subtitleLanguageEmptyError" style="display: none;">Enter a Language</p><h5>Select file</h6><p id="uploadFileName"></p><p>You can upload a .srt or .vtt type file.</p><button class="hv-btn-primary hvsubtitles-drop-file" id="chooseSubtitleFileBtn">Choose file</button><p id="subtitleFileEmptyError" style="display: none;">Choose a valid file</p><div class="hvsubtitles-drop-footer"><button class="hvsubtitles-drop-cancel hv-btn-nobg">Cancel</button><input type="file" id="subtitleImportFile" name="subtitle-file" style="display: none;" accept=".srt, .vtt" /><button class="hv-btn-primary" id="uploadSubtitleFileBtn">Upload</button>\x3c!-- add class \'no-pointer-events\' for disabling --\x3e</div></div></div>')}function i(e,t){return e.nx(t.get(["isSupportUser"],!1),t,{block:a},{})}function a(e,t){return e.w('<li data-list-for="generate">Generate a subtitle</li>')}function s(e,t){return e.w('<li data-list-for="upload">Upload a subtitle</li> ')}function o(e,t){return e.w("disp-none")}function n(e,t){return e.w("<option value=").f(t.get(["subtile_lang"],!1),t,"h").w(">").f(t.get(["subtile_lang"],!1),t,"h").w("</option>")}e.register("templates/preview/multilingual_subtitles/drop",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/multilingual_subtitles/drop",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},21155:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="hvsubtitles-editwarn-wrapper"><div class="hvsubtitles-editwarn-container"><p>You’ve added some add-ons to this video!<br/>Editing might affect them. Do you wish to continue?</p><div class="hvsubtitles-editwarn-list"><ul><li class="clear-float"><img src="/svg/info-icon-yellow.svg" alt="info"><h5>Subtiltes</h5><span>Resolve</span></li><li class="clear-float"><img src="/svg/info-icon-yellow.svg" alt="info"><h5>CTA</h5><span>Resolve</span></li></ul></div></div></div>')}e.register("templates/preview/multilingual_subtitles/edit-warning",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/multilingual_subtitles/edit-warning",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},1490:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="hvsubtitles-header"><div class="hvsubtitles-header-left"><h3>Subtitles / Captions</h3><p>Display the audio in your video in a text form during playback for better accessibility and SEO.</p></div><div class="hvsubtitles-header-right"><span class="hvsubtitles-header-plus"><img src="/svg/plus-ico-orange.svg" alt="subtitles option" /></span>').p("templates/preview/multilingual_subtitles/drop",t,t,{}).w("</div></div>")}e.register("templates/preview/multilingual_subtitles/header",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/multilingual_subtitles/header",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},80763:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="hvsubtitles-drop-replace disp-none"><div id="replaceSubtitlePopup"><h4 class="header-text">Replace a subtitle</h5><p id="subtitleLanguageEmptyError" style="display: none;">Enter a Language</p><h5 class="select-text">Select file</h6><p id="replaceFileName-').f(t.get(["id"],!1),t,"h").w('" class="replace-filename"></p><p class="replace-text">You can upload a .srt or .vtt type file.</p><button class="hv-btn-primary hvsubtitles-drop-file" id="chooseReplaceSubtitleBtn">Choose file</button><p id="replaceFileEmptyError-').f(t.get(["id"],!1),t,"h").w('" class="replace-fileemptyerror" style="display: none;">Choose a valid file</p><div class="hvsubtitles-drop-footer"><button class="hvsubtitles-replace-cancel hv-btn-nobg">Cancel</button><input type="file" id="subtitleReplaceFile" name="subtitle-file" style="display: none;" accept=".srt, .vtt" /><button class="hv-btn-primary" id="replaceSubtitleFileBtn">Replace</button>\x3c!-- add class \'no-pointer-events\' for disabling --\x3e</div></div></div>')}e.register("templates/preview/multilingual_subtitles/replace_drop",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/multilingual_subtitles/replace_drop",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},52561:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="hvsubtitles-wrapper">').p("templates/preview/multilingual_subtitles/header",t,t,{}).p("templates/preview/multilingual_subtitles/container",t,t,{}).p("templates/preview/multilingual_subtitles/alerts",t,t,{}).w("</div>")}e.register("templates/preview/multilingual_subtitles/subtitles",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/multilingual_subtitles/subtitles",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},7525:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="hvsubtitles-tabledrop-container disp-none"><div class="hvsubtitles-tabledrop-generate"><h5>Subtitle Credits</h6><p>Your credits depend on the plan you have subscribed to.</p><div class="hvsubtitles-tabledrop-credits"><span class="hvsubtitles-tabledrop-insufficient ').nx(t.get(["isLowCredit"],!1),t,{block:i},{}).w('"><img src="/svg/info-icon-white.svg" alt="info"/> Insufficient Credit Limit</span><i>').f(t.get(["subtitle_credits_remaining"],!1),t,"h").w(' Minutes Remaining</i><div data-start-credit="0" data-end-credit="').f(t.get(["total_subtitle_credits_avail"],!1),t,"h").w('"><span style="width: ').f(t.get(["creditBarWidth"],!1),t,"h").w(';"></span></div><a href="/settings/subscription">Add Credits</a></div><div class="hvsubtitles-tabledrop-footer"><button class="hvsubtitles-tabledrop-cancel hv-btn-nobg">Cancel</button><button class="hv-btn-primary" id="regenerateSubtitle" data-subid="').f(t.get(["id"],!1),t,"h").w("\">Generate</button>\x3c!-- add class 'no-pointer-events' for disabling --\x3e</div></div></div>")}function i(e,t){return e.w("disp-none")}e.register("templates/preview/multilingual_subtitles/table_drop",t),t.__dustBody=!0,i.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/multilingual_subtitles/table_drop",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},86856:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="small-12"><div class="tab-warning-content"><center><img src="/svg/icon-info-blue.svg" alt="Information"/><p class="content-desc"> ').f(t.get(["processingMsg"],!1),t,"h").w(' </p><button class="button wiz-primary-btn radius preview-upgrade-btn" id="checkVideoStatus"> ').f(t.get(["checkStatus"],!1),t,"h").w(" </button></center></div></div>")}e.register("templates/preview/multilingual_subtitles/video_processing",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/multilingual_subtitles/video_processing",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},10879:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="small-12 column vt-tab-container preview-tab-content hide"><div class="small-2 column vt-subtab-container"><div class="vt-subtab vt-subtab-active" id="pixelTrackerContent" trackingType=1 data-alert="pixel_alert">Facebook pixel</div><div class="vt-subtab" id="gaTrackerContent" trackingType=2 data-alert="ga_alert">Google analytics</div><div class="vt-subtab" id="loTrackerContent" trackingType=7 data-alert="luckyOrange_alert">Lucky orange</div></div><div class="small-10 column"><div id="customTrackingMarketing" class="custom-tracking-marketing"><div id="customTrackerSelection" class="custom-tracker-selection">').x(t.get(["isPixelEnabled"],!1),t,{else:i,block:a},{}).x(t.get(["isGAEnabled"],!1),t,{else:o,block:n},{}).x(t.get(["isLuckyOrangeEnabled"],!1),t,{else:r,block:d},{}).w("</div></div></div><div>")}function i(e,t){return e.w('<div class= "upgrade_content" id ="pixel_alert"></div>')}function a(e,t){return e.w('<section class="accordion-content" style="display: block;" id="facebookPixelContent"><div id="facebookPixel" class="custom-tracking clearfix" data="facebookPixelContent"><div class="small-12 columns"><div class="small-3 columns"><label class="kq-label info-label inline">').f(t.get(["pixelId"],!1),t,"h").w('</label></div><div class="small-9 columns"><input rows="5" id="videoPixelId" value="').f(t.get(["video_description"],!1),t,"h").w('" placeholder="" /></div></div><div class="small-12 columns"><div class="small-3 columns"><label class="kq-label info-label inline">').f(t.get(["addEvents"],!1),t,"h").w(' <img src="/img/help.png" class="help-icon" title="').f(t.get(["eventsHelp"],!1),t,"h").w('" /></label></div><div class="small-9 columns tag-wrap"><select id="pixelTags" multiple="multiple">').s(t.get(["pixelTags"],!1),t,{block:s},{}).w('</select></div></div><div class="small-12 columns"><div class="small-3 columns text-left"><label class="kq-label inline" for="appt-time inline">').f(t.get(["trackFrom"],!1),t,"h").w('<img src="/img/help.png" class="help-icon" title="').f(t.get(["trackFromHelp"],!1),t,"h").w('" /></label></div><div class="small-4 columns end"><input class="timer-input" type="text" id="pixelTime" value="00:00"><div class="tracking-arrow-up up startTimeUpArrow" id="startTimeUpArrow" trackingType=1></div><div class="tracking-arrow-down down startTimeDownArrow" id="startTimeDownArrow" trackingType=1></div></div><div class="small-4 columns"></div></div><div class="small-12 columns text-right"><button type="button" id="cancelCustomTracking" trackingType=1 class="secondary radius">').f(t.get(["cancel"],!1),t,"h").w('</button><button type="button" id="pixelCode" trackingType=1 class="wiz-primary-btn custom-tracking-save">').f(t.get(["save"],!1),t,"h").w("</button></div></div></section>")}function s(e,t){return e.w('<option value="').f(t.getPath(!1,["pixelTags",t.get(["$idx"],!1)]),t,"h").w('"> ').f(t.getPath(!1,["pixelTags",t.get(["$idx"],!1)]),t,"h").w(" </option>")}function o(e,t){return e.w('<div class= "upgrade_content" id ="ga_alert"></div>')}function n(e,t){return e.w('<section class="accordion-content" id="GAContent"><div id="googleAnalytics" class="custom-tracking clearfix" data="GAContent"><div class="small-12 columns"><div class="small-3 columns"><label class="kq-label info-label inline">Tracking Id</label></div><div class="small-9 columns"><input rows="5" id="videoGAId" value="').f(t.get(["video_description"],!1),t,"h").w('" placeholder="" /></div></div><div class="small-12 columns"><div class="small-3 columns"><label class="kq-label info-label inline">').f(t.get(["addEvents"],!1),t,"h").w(' <img src="/img/help.png" class="help-icon" title="').f(t.get(["eventsHelp"],!1),t,"h").w('" /></label></div><div class="small-9 columns tag-wrap"><select type="text" id="GATags" multiple placeholder="').f(t.get(["videoTagsPlaceholder"],!1),t,"h").w('" >').s(t.get(["GATags"],!1),t,{block:l},{}).w('</select></div></div><div class="small-12 columns"><div class="small-3 columns text-left"><label class="kq-label inline" for="appt-time inline">').f(t.get(["trackFrom"],!1),t,"h").w('<img src="/img/help.png" class="help-icon" title="').f(t.get(["trackFromHelp"],!1),t,"h").w('" /></label></div><div class="small-4 columns end"><input class="timer-input" type="text" id="GATime" value="00:00"><div class="tracking-arrow-up up startTimeUpArrow" id="startTimeUpArrow" trackingType=2></div><div class="tracking-arrow-down down startTimeDownArrow" id="startTimeDownArrow" trackingType=2></div></div><div class="small-4 columns"></div></div><div class="small-12 columns text-right"><button type="button" id="cancelCustomTracking" trackingType=2 class="secondary radius">').f(t.get(["cancel"],!1),t,"h").w('</button><button type="button" id="GACode" trackingType=2 class="wiz-primary-btn custom-tracking-save">').f(t.get(["save"],!1),t,"h").w("</button></div></div></section>")}function l(e,t){return e.w('<option value="').f(t.getPath(!1,["GATags",t.get(["$idx"],!1)]),t,"h").w('"> ').f(t.getPath(!1,["GATags",t.get(["$idx"],!1)]),t,"h").w(" </option>")}function r(e,t){return e.w('<div class="upgrade_content" id="luckyOrange_alert"></div>')}function d(e,t){return e.w('<section class="accordion-content" id="luckyOrangeTrackerContent"><div id="luckyOrange" class="custom-tracking clearfix" data="luckyOrangeTrackerContent"><div class="small-12 columns"><div class="small-3 columns"><label class="kq-label info-label inline">Tracking Id</label></div><div class="small-9 columns"><input rows="5" id="videoLOId" value="').f(t.get(["video_description"],!1),t,"h").w('" placeholder="" /></div></div><div class="small-12 columns"><div class="small-3 columns text-left"><label class="kq-label inline" for="appt-time inline">').f(t.get(["trackFrom"],!1),t,"h").w('<img src="/img/help.png" class="help-icon" title="').f(t.get(["trackFromHelp"],!1),t,"h").w('" /></label></div><div class="small-4 columns end"><input class="timer-input" type="text" id="LOTime" value="00:00"><div class="tracking-arrow-up up startTimeUpArrow" id="startTimeUpArrow" trackingType=7></div><div class="tracking-arrow-down down startTimeDownArrow" id="startTimeDownArrow" trackingType=7></div></div><div class="small-4 columns"></div></div><div class="small-12 columns text-right"><button type="button" id="cancelCustomTracking" trackingType=7 class="secondary radius">').f(t.get(["cancel"],!1),t,"h").w('</button><button type="button" id="LOCode" trackingType=7 class="wiz-primary-btn custom-tracking-save">').f(t.get(["save"],!1),t,"h").w("</button></div></div></section>")}e.register("templates/preview/new/custom_tracking",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/new/custom_tracking",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},59324:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="small-12"><div class="tab-warning-content tab-warning-content-upper"><div class="no_views_container"><div class="no_views_containerimg"></div>').h("eq",t,{else:i,block:a},{key:t.get(["total_views"],!1),value:0},"h").w("</div></div></div>")}function i(e,t){return e.w('<p class="content-desc">').f(t.get(["total_views"],!1),t,"h").f(t.get(["reportsEmptyStateNoPlays"],!1),t,"h").w("</p> ")}function a(e,t){return e.w('<div class="no_views_containercontent"><h3>Currently this video has not been shared</h3><p>Please share your video to see real-time progress on how your video is performing to get actionable insights and followup your prospects to close more deals easier and faster.</P>')}e.register("templates/preview/new/new_reports_empty_state",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/new/new_reports_empty_state",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},93331:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w("\x3c!-- ").x(t.get(["canShowThumbnail"],!1),t,{block:i},{}).w(" --\x3e\x3c!-- ").x(t.get(["canShowIntroOutro"],!1),t,{block:d},{}).w(" --\x3e\x3c!-- ").x(t.get(["canShowVirtualBg"],!1),t,{block:h},{}).w(" --\x3e")}function i(e,t){return e.w('<div class="small-12 video-thumbnail-container preview-tab-content hide" id="videoThumbnailContainer"><p class="content-title"> ').f(t.get(["videoThumbnail"],!1),t,"h").w(" </p>").x(t.get(["isGuestUser"],!1),t,{else:a,block:r},{}).w("</div>")}function a(e,t){return e.x(t.get(["isSupportUser"],!1),t,{else:s,block:l},{})}function s(e,t){return e.x(t.get(["isThumbnailEnabled"],!1),t,{else:o,block:n},{})}function o(e,t){return e.p("templates/preview/upgrade",t,t,{})}function n(e,t){return e.w('<div class="small-12" id="thumbnailContainer"></div>')}function l(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function r(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function d(e,t){return e.w('<div class="small-12 video-intro-outro-container preview-tab-content hide" id="videoIntroOutroContainer"><p class="content-title"> ').f(t.get(["videoTitleEndScreen"],!1),t,"h").w(" </p>").x(t.get(["isSupportUser"],!1),t,{else:c,block:u},{}).w("</div>")}function c(e,t){return e.w('<div class="small-12 intro-outro-section"><div class="small-12 hide" id="titleScreenAddedPreview"><p class="content-desc"> ').f(t.get(["introTitleScreenAdded"],!1),t,"h").w(' </p><div class="small-12 intro-outro-preview"><img src="/img/theme-orange.png" alt="Title Screen" /><div class="intro-outro-actions"><span class="intro-outro-edit cursor-pointer" id="titleScreenEdit" data-type="intro"> ').f(t.get(["edit"],!1),t,"h").w(' </span><span class="intro-outro-delete" data-type="intro"> ').f(t.get(["delete"],!1),t,"h").w(' </span></div></div></div><div class="small-12" id="titleScreenAdd"><p class="content-desc"> ').f(t.get(["titleScreenAdd"],!1),t,"h").w(' </p><div class="intro-outro-add" id="addIntroScreen" data-type="intro"> ').f(t.get(["addTitleScreen"],!1),t,"h").w(' </div></div></div><div class="small-12 intro-outro-section"><div class="small-12 hide" id="endScreenAddedPreview"><p class="content-desc"> ').f(t.get(["introEndScreenAdded"],!1),t,"h").w(' </p><div class="small-12 intro-outro-preview"><img src="/img/theme-orange.png" alt="End Screen" /><div class="intro-outro-actions"><span class="intro-outro-edit cursor-pointer" id="endScreenEdit" data-type="outro"> ').f(t.get(["edit"],!1),t,"h").w(' </span><span class="intro-outro-delete" data-type="outro"> ').f(t.get(["delete"],!1),t,"h").w(' </span></div></div></div><div class="small-12" id="endScreenAdd"><p class="content-desc"> ').f(t.get(["endScreenAdd"],!1),t,"h").w(' </p><div class="intro-outro-add" id="addOutroScreen" data-type="outro"> ').f(t.get(["addEndScreen"],!1),t,"h").w(" </div></div></div>")}function u(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function h(e,t){return e.w('<div class="small-12 video-virtualbg-container preview-tab-content hide" id="videoVirtualbgContainer"><p class="content-title"> ').f(t.get(["changeBackground"],!1),t,"h").w(' </p><div class="sidebar-virtualbg-wrapper">').x(t.get(["canShowVirtualBgBetaNotification"],!1),t,{block:p},{}).w('<div class="sidebar-virtualbg-preview"><div class="masked-preview"><video id="virtualBgVideoPreview" src="https://hippolms-wiz-static.s3-accelerate.amazonaws.com/virtualbg/preview/1.mp4" crossorigin="anonymous" autoplay="" muted="" loop=""></video><img src="undefined" alt="" class="sidebar-virtualbg-custombg"> <img src="/img/spokesperson.gif" alt="" class="sidebar-virtualbg-imgoverlay"> </div><span class="sidebar-virtualbg-note">').f(t.get(["virtualBgNote"],!1),t,"h").w('</span><span class="sidebar-virtualbg-progress-note disp-none">').f(t.get(["virtualBgProgressNote"],!1),t,"h").w('</span></div><div class="sidebar-virtualbg-lists"><ul><li class="selected-virtualbg virtualbg-cancel virtualbg-selection" data-id="0"><div class="virtualbg-add-cancel"><img src="/svg/cancel-grey.svg" alt="" /><p>').f(t.get(["none"],!1),t,"h").w('</p></div></li><li class="virtualbg-selection virtualbg-add" data-id="add"><div class="virtualbg-add-cancel virtualbg-add-bg"><img src="/svg/add-grey.svg" alt="" /><div class="thumb-loading custombg-loading hide"><div class="color-loading"><div class="loading-bar"></div><div class="loading-bar"></div>\t</div></div><p>').f(t.get(["addBackground"],!1),t,"h").w('</p></div></li></ul></div><div class="sidebar-virtualbg-btns"><button class="hv-btn-primary virtualbg-apply">').f(t.get(["apply"],!1),t,"h").w('</button></div></div><div class="sidebar-virtualbg-loader disp-none"><div class="sidebar-virtualbg-info"><span class="virtualbg-percent">10%</span><div class="virtualbg-loader"><span id="virtualbg-progress" style="width: 10%;"></span></div><h6 class="virtualbg-message">').f(t.get(["yourVideoReady"],!1),t,"h").w("</h6></div></div></div>")}function p(e,t){return e.w('<div class="hv-notification-banner virtual-bg">').f(t.get(["virtualBgInfoNote"],!1),t,"h").w(' <img class="close-1" src="/img/icon-close.png" ></div>')}e.register("templates/preview/new/video_customization",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/new/video_customization",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},81161:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('\x3c!-- <div class="small-12 video-info-container preview-tab-content" id="videoInfoContainer"> --\x3e\x3c!-- <p class="content-title"> ').f(t.get(["videoInfo"],!1),t,"h").w(' </p> --\x3e\x3c!-- <div class="small-12"><label class="info-label"> ').f(t.get(["videoTitle"],!1),t,"h").w(' </label><input type="text" id="videoTitle" value="').f(t.get(["video_title"],!1),t,"h").w('" placeholder="').f(t.get(["videoTitlePlaceholder"],!1),t,"h").w('" ').x(t.get(["isReadOnlyTextFields"],!1),t,{block:i},{}).w(" /></div> --\x3e\x3c!-- ").x(t.get(["canShowTagsFolder"],!1),t,{block:a},{}).w(' --\x3e\x3c!-- <div class="small-12"><label class="info-label"> ').f(t.get(["addDescription"],!1),t,"h").w(' </label><textarea rows="5" id="videoDescription" placeholder="').f(t.get(["videoDescPlaceholder"],!1),t,"h").w('" ').x(t.get(["isReadOnlyTextFields"],!1),t,{block:o},{}).w(">").x(t.get(["video_description"],!1),t,{block:n},{}).w("</textarea></div> --\x3e\x3c!-- ").x(t.get(["isTicketVideoPreview"],!1),t,{block:l},{}).w(" --\x3e\x3c!-- ").x(t.get(["canShowAssignmentSubmit"],!1),t,{block:c},{}).w(" --\x3e\x3c!-- </div> --\x3e").x(t.get(["canShowComments"],!1),t,{block:u},{}).x(t.get(["canShowReports"],!1),t,{block:g},{})}function i(e,t){return e.w(" readonly ")}function a(e,t){return e.w('<div class="small-12"><label class="info-label"> ').f(t.get(["addToCategory"],!1),t,"h").w(' </label><input type="text" id="videoCategories" placeholder="').f(t.get(["videoFoldersPlaceholder"],!1),t,"h").w('" /></div>').x(t.get(["canShowGroups"],!1),t,{block:s},{}).w('<div class="small-12"><label class="info-label"> ').f(t.get(["addTags"],!1),t,"h").w(' </label><input type="text" id="videoTags" placeholder="').f(t.get(["videoTagsPlaceholder"],!1),t,"h").w('" /></div>')}function s(e,t){return e.w('<div class="small-12"><label class="info-label"> ').f(t.get(["groups"],!1),t,"h").w(' </label><input type="text" id="videoGroups" placeholder="').f(t.get(["videoGroupsPlaceholder"],!1),t,"h").w('" /></div>')}function o(e,t){return e.w(" readonly ")}function n(e,t){return e.f(t.get(["video_description"],!1),t,"h")}function l(e,t){return e.w('<div class="row clearfix"><div class="small-6 "><label class="info-label recorded-label"> ').f(t.get(["recordedOn"],!1),t,"h").w(" : ").f(t.get(["display_date"],!1),t,"h").w('</label></div><div class="small-6 pull-right text-right"><label class="resolve-ticket" id="resolveTicket">').h("eq",t,{else:r,block:d},{key:t.get(["ticket_status"],!1),value:1},"h").w("</label></div></div>")}function r(e,t){return e.w(" ").f(t.get(["reopenTicket"],!1),t,"h").w(" ")}function d(e,t){return e.w(" ").f(t.get(["markAsResolved"],!1),t,"h").w(" ")}function c(e,t){return e.w('<div class="small-12 text-center" id="assignmentSubmitPanel"><button class="button cancel-btn radius" id="cancelAssignment"> ').f(t.get(["cancel"],!1),t,"h").w(' </button><button class="button wiz-primary-btn radius" id="saveAssignment"> ').f(t.get(["submit"],!1),t,"h").w(" </button></div>")}function u(e,t){return e.w('<div class="small-12 preview-tab-content comments-bottom-tab hide" id="videoCommentsContainer">').x(t.get(["isGuestUser"],!1),t,{else:h,block:v},{}).w("</div>")}function h(e,t){return e.x(t.get(["isCommentsEnabled"],!1),t,{else:p,block:m},{})}function p(e,t){return e.p("templates/preview/upgrade",t,t,{})}function m(e,t){return e.w('<div class="small-6 column"><div class="preview-video" id="previewVideo"></div></div><div class="small-6 column"><div id="commentsContainer"></div></div>')}function v(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function g(e,t){return e.w('<div class="small-12 newVideo-reports-container preview-tab-content hide" id="videoReportsContainer">').x(t.get(["isGuestUser"],!1),t,{else:f,block:b},{}).w("</div>")}function f(e,t){return e.w('<div class="small-12 clearfix hide" id="reportsContainer"><div class="newReports-container"><div class="small-4 newReports-view-box"><div><img src="/img/Group 1689.png" class="reports-img"><span class="newReports-label"> ').f(t.get(["totalPlaysSc"],!1),t,"h").w(' </span></div><span class="newReports-value" id="reportsTotalPlays"> 00 </span></div><div class="small-4 newReports-view-box"><div><img src="/img/Group 1692.png" class="reports-img"><span class="newReports-label"> ').f(t.get(["uniqueViewersSc"],!1),t,"h").w(' </span></div><span class="newReports-value" id="reportsUniqueUsers"> 00 </span></div><div class="small-4 newReports-view-box"><div><img src="/img/Group 1699.png" class="reports-img"><span class="newReports-label"> ').f(t.get(["avgWatchRateSc"],!1),t,"h").w(' </span></div><span class="newReports-value" id="reportsAvgWatchRate"> 00 </span></div></div><div class=" newReports-container"><div class="small-4 newReports-view-box"><div><img src="/img/Group 1705.png" class="newReports-img"><span class="newReports-label"> ').f(t.get(["fullyWatchedSc"],!1),t,"h").w(' </span></div><span class="newReports-value" id="reportsFullyWatched"> 00 </span></div><div class="small-4 newReports-view-box"><div><img src="/img/Group 1702.png" class="reports-img"><span class="newReports-label"> ').f(t.get(["actionSc"],!1),t,"h").w(' </span></div><span class="newReports-value" id="reportsActions"> 00 </span></div><div class="small-4 newReports-view-box"><div><img src="/img/Group 1700.png" class="newReports-img"><span class="newReports-label"> ').f(t.get(["popularRegionSc"],!1),t,"h").w(' </span></div><span class="newReports-value newReports-area_content" id="reportRegion"> NA </span></div></div><div class="small-12 text-center"><button class="hippo-ui__btn hv-btn-primary" id="detailedReports"> ').f(t.get(["detailedReports"],!1),t,"h").w(" </button></div></div>")}function b(e,t){return e.p("templates/preview/guest_signup",t,t,{})}e.register("templates/preview/new/video_info",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/new/video_info",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},27225:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.x(t.get(["canShowCTA"],!1),t,{block:i},{}).x(t.get(["canShowcustomTrackers"],!1),t,{block:d},{}).w("\x3c!-- ").x(t.get(["canShowPersonalisationTab"],!1),t,{block:c},{}).w(" --\x3e").x(t.get(["canShowVideoCampaignsTab"],!1),t,{block:C},{})}function i(e,t){return e.w('<div class="small-12 video-marketing-container preview-tab-content hide" id="videoCTAContainer">').x(t.get(["isGuestUser"],!1),t,{else:a,block:r},{}).w("</div>")}function a(e,t){return e.x(t.get(["isSupportUser"],!1),t,{else:s,block:l},{})}function s(e,t){return e.x(t.getPath(!1,["ctaPlanParams","enabled"]),t,{else:o,block:n},{})}function o(e,t){return e.p("templates/preview/upgrade",t,t,{})}function n(e,t){return e.w('<div id="ctaAddPanel" class="cta-add-panel"><div class="loading-container hide" id="videoActionsLoading"><div class="color-loading"><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="cta-loading-test">Fetching...</div></div></div><div class="large-11 columns large-centered cta-body-wrap cta-comp-container" id="videoActionsLoadingIsppr"><div class="medium-4 columns cta-right-panel"><div class="cta-component np-cta-right-container skeletal"><div class="skeletal-title skeletal-loader"></div><div class="skeletal-content-line-1 skeletal-loader"></div><div class="skeletal-content-line-2 skeletal-loader"></div><div class="skeletal-box skeletal-loader"></div><div class="skeletal-box skeletal-loader"></div><div class="skeletal-box skeletal-loader"></div><div class="skeletal-box skeletal-loader"></div><div class="skeletal-box skeletal-loader"></div><div class="skeletal-box skeletal-loader"></div><div class="skeletal-box skeletal-loader"></div></div>\x3c!-- <div class="cta-component np-cta-right-container hide" id="ctaComponent"></div> --\x3e</div><div class="medium-7 columns cta-left-panel"><div class="cta-player-box cta-component player-skeletal"><div class="player-skeletal-video-player skeletal-loader"></div></div></div><div class="medium-1 columns"></div></div><div class="large-11 columns large-centered cta-body-wrap cta-comp-container"><div class="medium-4 columns cta-right-panel"><div class="cta-component np-cta-right-container hide" id="ctaComponent"></div></div><div class="medium-7 columns cta-left-panel"><div class="cta-player-box" id="ctaPlayerBox"></div> <div class="large-12 columns large-centered" id="ctaTimeline"></div><div class="cta-player-component" id="ctaPlayerComponent"></div></div><div class="medium-1 columns"></div></div><div id="modalPopup"></div><div id="pardot-integ-popup"></div></div>')}function l(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function r(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function d(e,t){return e.w('<div class="small-12 custom-tracking-tab-container preview-tab-content hide" id="videoCustomTrackingContainer" ><div class="large-6"><div class="subtab video-custom-tracking-subtab"></div></div></div>')}function c(e,t){return e.w('<div class="small-12 thumbnail-personalization-tab-container preview-tab-content hide" id="thumbnailPersonalizationContainer"><p class="content-title"> ').f(t.get(["personalizeThumbnail"],!1),t,"h").w(" </p>").x(t.get(["isGuestUser"],!1),t,{else:u,block:g},{}).w('</div><div class="small-12 video-personalization-tab-container preview-tab-content hide" id="videoPersonalizationContainer"><p class="content-title"> ').f(t.get(["personalizeVideo"],!1),t,"h").w(" </p>").x(t.get(["isGuestUser"],!1),t,{else:f,block:k},{}).w("</div>")}function u(e,t){return e.x(t.get(["isSupportUser"],!1),t,{else:h,block:v},{})}function h(e,t){return e.x(t.get(["canShowThumbnailPersonalization"],!1),t,{else:p,block:m},{})}function p(e,t){return e.p("templates/preview/upgrade",t,t,{})}function m(e,t){return e.w('<div class="small-12" id="thumbnailPersonalizeConatiner"></div>')}function v(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function g(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function f(e,t){return e.x(t.get(["isSupportUser"],!1),t,{else:b,block:_},{})}function b(e,t){return e.x(t.get(["canShowVideoPersonalization"],!1),t,{else:w,block:y},{})}function w(e,t){return e.p("templates/preview/upgrade",t,t,{})}function y(e,t){return e.w('<div class="small-12" id="videoPersonalizeConatiner"></div>')}function _(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function k(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function C(e,t){return e.w('<div class="small-12 email-campaign-link-tab-container preview-tab-content hide" id="emailCampaignLinkContainer">').x(t.get(["isGuestUser"],!1),t,{else:P,block:I},{}).w('</div><div class="small-12 video-campaign-container preview-tab-content hide" id="videoCampaignContainer">').x(t.get(["isGuestUser"],!1),t,{else:B,block:N},{}).w('</div><div class="small-12 video-campaign-reports-container preview-tab-content hide" id="videoCampaignReportsContainer"><div id="campaignReportsRefreshBtn" class="campaign-reports-refresh-btn" data-refresh-type="campaignListView" tooltip-hippo="').f(t.get(["refresh"],!1),t,"h").w('" flow="left"><img src="/svg/refresh.svg"></div>').x(t.get(["isGuestUser"],!1),t,{else:F,block:z},{}).w("</div>")}function P(e,t){return e.x(t.get(["isSupportUser"],!1),t,{else:T,block:A},{})}function T(e,t){return e.x(t.get(["canShowCampaignLink"],!1),t,{else:S,block:x},{})}function S(e,t){return e.p("templates/preview/upgrade",t,t,{})}function x(e,t){return e.w('<div class="small-12 campaign-link-container" id="campaignLinkContainer"></div>')}function A(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function I(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function B(e,t){return e.x(t.get(["isSupportUser"],!1),t,{else:E,block:R},{})}function E(e,t){return e.x(t.get(["canShowVideoCampaigns"],!1),t,{else:L,block:V},{})}function L(e,t){return e.p("templates/preview/upgrade",t,t,{})}function V(e,t){return e.w('<div class="small-12" id="campaignContainer" class="video-campaign-container"></div>')}function R(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function N(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function F(e,t){return e.x(t.get(["isSupportUser"],!1),t,{else:O,block:U},{})}function O(e,t){return e.x(t.get(["canShowVideoCampaigns"],!1),t,{else:D,block:M},{})}function D(e,t){return e.p("templates/preview/upgrade",t,t,{})}function M(e,t){return e.w('<div class="small-12 video-campaign-reports-container custom-scroll" id="campaignReportsContainer" class="video-campaign-reports-container"></div>')}function U(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function z(e,t){return e.p("templates/preview/guest_signup",t,t,{})}e.register("templates/preview/new/video_marketing_tools",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,y.__dustBody=!0,_.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,P.__dustBody=!0,T.__dustBody=!0,S.__dustBody=!0,x.__dustBody=!0,A.__dustBody=!0,I.__dustBody=!0,B.__dustBody=!0,E.__dustBody=!0,L.__dustBody=!0,V.__dustBody=!0,R.__dustBody=!0,N.__dustBody=!0,F.__dustBody=!0,O.__dustBody=!0,D.__dustBody=!0,M.__dustBody=!0,U.__dustBody=!0,z.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/new/video_marketing_tools",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},36303:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="small-12 column video-settings-wrapper vs-tab-container preview-tab-content hide"><div class="small-2 column hide vs-subtab-container">').x(t.get(["canShowSettings"],!1),t,{block:i},{}).x(t.get(["canShowSubtitles"],!1),t,{block:a},{}).x(t.get(["canShowBranding"],!1),t,{block:s},{}).x(t.get(["canShowPrivacy"],!1),t,{block:o},{}).w('</div><div class="small-10 column">').x(t.get(["canShowSubtitles"],!1),t,{block:n},{}).x(t.get(["canShowBranding"],!1),t,{block:h},{}).x(t.get(["canShowSettings"],!1),t,{block:y},{}).x(t.get(["canShowPrivacy"],!1),t,{block:V},{}).w('<div class="small-12 preview-tab-content hide" id="videoSettingsEmptyContainer"><p> Video setting not enabled </p></div></div><div>')}function i(e,t){return e.w('<div class="vs-subtab vs-subtab-active" id="videoSettingsSubTab" data-target="videoSettingsContainer">Settings</div>')}function a(e,t){return e.w('<div class="vs-subtab" id="videoSubtitleSubTab" data-target="videoSubtitlesContainer">Subtitles<span class="tab-new">NEW</span></div>')}function s(e,t){return e.w('<div class="vs-subtab" id="videoBrandingSubTab" data-target="videoBrandingContainer">Branding</div>')}function o(e,t){return e.w('<div class="vs-subtab" id="videoPrivacySubTab" data-target="videoPrivacyContainer">Privacy</div>')}function n(e,t){return e.w('<div class="small-12 large-9 sub-box-top video-subtitles-container preview-tab-content hide" id="videoSubtitlesContainer">').x(t.get(["isGuestUser"],!1),t,{else:l,block:u},{}).w("</div>")}function l(e,t){return e.w('<div class="').nx(t.get(["isSubtitlesEnabled"],!1),t,{block:r},{}).w('"> ').x(t.get(["isSubtitlesEnabled"],!1),t,{else:d,block:c},{}).w(" </div>")}function r(e,t){return e.w("sub-box")}function d(e,t){return e.p("templates/preview/upgrade",t,t,{})}function c(e,t){return e.w('<div class="small-12" id="subtitlesContainer"></div>')}function u(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function h(e,t){return e.w('<div class="small-12 video-branding-container preview-tab-content hide" id="videoBrandingContainer"><div class="columns large-8 sub-box sub-box-top"><div class="small-12 columns settings-row"><div class="small-12 medium-12 large-4 columns"><span class="hv-setting-label">').f(t.getPath(!1,["wizPreview","playerTheme"]),t,"h").w('</span></div><div class="small-12 medium-12 large-8 columns"><div class="small-1 columns theme-sample"><div id="samplePlayerTheme" class="t-color-box"></div></div><div class="small-3 columns"><label id="themeColorLabel">').f(t.getPath(!1,["wizPreview","defaultTheme"]),t,"h").w('</label></div><div class="small-8 columns button-container"><a id="changePlayerThemeId" class="change-btn"><img src="/svg/edit-58b0c3.svg" width="10">').f(t.get(["change"],!1),t,"h").w('</a></div></div></div><hr class="bottom-line"><div class="small-12 columns settings-row"><div class="small-12 medium-12 large-4 columns"><span class="hv-setting-label">').f(t.getPath(!1,["wizPreview","playerLogo"]),t,"h").w('</span></div><div class="small-12 medium-12 large-8 columns"><div class="small-4 columns player-logo-img-container"><div class="header-logo-box"><img id="playerLogoImg" src="').x(t.get(["player_logo"],!1),t,{else:p,block:m},{}).w('"/></div></div><div class="small-7 columns button-container" id="playerLogoAddContainer"><a id="addPlayerLogo" class="change-btn ').x(t.get(["player_logo"],!1),t,{block:v},{}).w('"><img src="/img/create-plus.png" width="10">').f(t.getPath(!1,["wizPreview","addLogo"]),t,"h").w('</a></div><div class="small-3 columns button-container" id="playerLogoChangeContainer"><a id="changePlayerLogo" class="change-btn ').nx(t.get(["player_logo"],!1),t,{block:g},{}).w('"><img src="/svg/edit-58b0c3.svg" width="10">').f(t.getPath(!1,["wizPreview","change"]),t,"h").w('</a></div><div class="small-3 columns delete-btn-container" id="playerLogoDeleteContainer"><span id="deleteLogoLoading" class="branding-spinner delete-spinner hide"></span><a id="deletePlayerLogo" class="delete-btn ').nx(t.get(["player_logo"],!1),t,{block:f},{}).w('"><img src="/svg/delete-icon-grey.svg" width="10"></a></div></div></div><div class="small-12 columns settings-row"><div class="small-12 medum-12 large-8 large-offset-4 columns player-logo-add-link"><input type="checkbox" class="branding-c wiz-checkbox-blue" id="playerLogoCheck"/><label class="" for="playerLogoCheck">').f(t.getPath(!1,["wizPreview","addLinkToPlayerLogoText"]),t,"h").w('</label></div><div id="playerLogoUrl" class="small-12 medim-12 large-8 large-offset-4 columns player-logo-url hide"><input id="playerLogoLink" class="url-input error-msg-view ').nx(t.get(["add_link_to_player_logo"],!1),t,{block:b},{}).w('" value="').x(t.get(["player_logo_link"],!1),t,{block:w},{}).w('" type="text" placeholder="').f(t.get(["enterUrl"],!1),t,"h").w('"><span id="playerLogoLinkErrMsg" class="error-text hide"></span></div></div><div class="small-12 columns settings-row branding-btn-container"><div class="small-5 columns restore-container"><a id="brandingResetBtn"><img src="/svg/retake.svg" width="13"/>').f(t.get(["restoreDefault"],!1),t,"h").w('</a><span tooltip="').f(t.get(["restoreDefaultToolTip"],!1),t,"h").w('"><img src="/img/how-tip.png" width="15"></span></div><div class="small-3 columns"><a id="brandingSaveBtn" class="button wiz-primary-btn radius">').f(t.get(["save"],!1),t,"h").w('</a><div class="hide" id="saveBrandingLoading"><div class="save-overlay"><center><span class="branding-spinner save-spinner"></span></center></div></div></div></div><div id="brandingThemePop"></div></div></div>')}function p(e,t){return e.w("/svg/hippo-video-logo-white.svg")}function m(e,t){return e.f(t.get(["player_logo"],!1),t,"h")}function v(e,t){return e.w("disp-none")}function g(e,t){return e.w("disp-none")}function f(e,t){return e.w("disp-none")}function b(e,t){return e.w("hide")}function w(e,t){return e.f(t.get(["player_logo_link"],!1),t,"h")}function y(e,t){return e.w('<div class="small-12 video-settings-container preview-tab-content new-setting hide" id="videoSettingsContainer">').x(t.get(["isGuestUser"],!1),t,{else:_,block:L},{}).w("</div>")}function _(e,t){return e.w('<div class="sub-box sub-box-top clear-float">').nx(t.get(["isContactAssociatedVideo"],!1),t,{block:k},{}).nx(t.get(["isGIFPreview"],!1),t,{block:P},{}).w("</div>")}function k(e,t){return e.w('<div class="small-12 clearfix settings-row"><div class="small-8 pull-left"> ').f(t.get(["allowComments"],!1),t,"h").w(' </div><div class="small-4 pull-right text-right"><div class="switch-part"><div class="integration-switch-wrapper"><input type="checkbox" id="commentsSwitch" class="integration-switch settings-switch" ').x(t.get(["comments_enabled"],!1),t,{block:C},{}).w(' /><label class="slider" for="commentsSwitch"></label></div></div></div></div><input type="checkbox" name="set_comments" id="setDefaultComments" class="ui-checkbox-two comments-reactions-checkbox"><label for="setDefaultComments" class="video-settings-checkbox set-comments-class checkbox-label disp-none">').f(t.get(["makeDefault"],!1),t,"h").w("</label>")}function C(e,t){return e.w(" checked ")}function P(e,t){return e.nx(t.get(["isContactAssociatedVideo"],!1),t,{block:T},{}).w('<div class="small-12 clearfix settings-row"><div class="small-8 pull-left"> ').f(t.get(["autoPlayVideo"],!1),t,"h").w(' </div><div class="small-4 pull-right text-right"><div class="switch-part"><div class="integration-switch-wrapper"><input type="checkbox" id="autoPlaySwitch" class="integration-switch settings-switch" ').x(t.get(["autoplay_enabled"],!1),t,{block:x},{}).w('/><label class="slider" for="autoPlaySwitch"></label></div></div></div></div><input type="checkbox" name="set_autoplay" id="setDefaultAutoplay" class="ui-checkbox-two comments-reactions-checkbox"><label for="setDefaultAutoplay" class="video-settings-checkbox set-autoplay-class checkbox-label disp-none">').f(t.get(["makeDefault"],!1),t,"h").w("</label>").x(t.get(["deliveryDownloadAllowed"],!1),t,{block:A},{}).x(t.get(["playbackSpeedAllowed"],!1),t,{block:B},{}).w('<div class="new-setting-button disp-none"><button class="button wiz-primary-btn radius pull-right default-video-settings disp-none" id="videoChangesSaveBtn"> ').f(t.get(["apply"],!1),t,"h").w(' </button><button class="button wiz-secondary-btn wiz-new-secondary-btn radius pull-right default-video-settings disp-none" id="videoChangesCancelBtn"> ').f(t.get(["cancel"],!1),t,"h").w(" </button></div>")}function T(e,t){return e.w('<div class="small-12 clearfix settings-row"><div class="small-8 pull-left"> ').f(t.get(["allowReactions"],!1),t,"h").w(' </div><div class="small-4 pull-right text-right"><div class="switch-part"><div class="integration-switch-wrapper"><input type="checkbox" id="reactionsSwitch" class="integration-switch settings-switch" ').x(t.get(["reactions_enabled"],!1),t,{block:S},{}).w('/><label class="slider" for="reactionsSwitch"></label></div></div></div></div><input type="checkbox" name="set_reactions" id="setDefaultReactions" class="ui-checkbox-two comments-reactions-checkbox"><label for="setDefaultReactions" class="video-settings-checkbox set-reactions-class checkbox-label disp-none">').f(t.get(["makeDefault"],!1),t,"h").w("</label>")}function S(e,t){return e.w(" checked ")}function x(e,t){return e.w(" checked ")}function A(e,t){return e.w('<div class="small-12 clearfix settings-row"><div class="small-8 pull-left"> ').f(t.get(["allowDeliveryDownload"],!1),t,"h").w(' </div><div class="small-4 pull-right text-right"><div class="switch-part"><div class="integration-switch-wrapper"><input type="checkbox" id="downloadSwitch" class="integration-switch settings-switch" ').x(t.get(["delivery_download_enabled"],!1),t,{block:I},{}).w(' /><label class="slider" for="downloadSwitch"></label></div></div></div></div>')}function I(e,t){return e.w(" checked ")}function B(e,t){return e.w('<div class="small-12 clearfix settings-row"><div class="small-8 pull-left"> ').f(t.get(["allowPlaybackSpeed"],!1),t,"h").w(' </div><div class="small-4 pull-right text-right"><div class="switch-part"><div class="integration-switch-wrapper"><input type="checkbox" id="allowPlaybackSpeedSwitch" class="integration-switch settings-switch" ').x(t.get(["playbackSpeedEnabled"],!1),t,{block:E},{}).w('/><label class="slider" for="allowPlaybackSpeedSwitch"></label></div></div></div></div>')}function E(e,t){return e.w(" checked ")}function L(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function V(e,t){return e.w('<div class="small-12 video-privacy-container preview-tab-content pv-new-mo hide" id="videoPrivacyContainer">\x3c!-- <p class="content-title"> ').f(t.get(["videoPrivacy"],!1),t,"h").w(" </p> --\x3e").x(t.get(["isGuestUser"],!1),t,{else:R,block:O},{}).w("</div>")}function R(e,t){return e.x(t.get(["isSupportUser"],!1),t,{else:N,block:F},{})}function N(e,t){return e.w('<div class="small-12" id="privacyContainer"></div>')}function F(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function O(e,t){return e.p("templates/preview/guest_signup",t,t,{})}e.register("templates/preview/new/video_settings",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,y.__dustBody=!0,_.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,P.__dustBody=!0,T.__dustBody=!0,S.__dustBody=!0,x.__dustBody=!0,A.__dustBody=!0,I.__dustBody=!0,B.__dustBody=!0,E.__dustBody=!0,L.__dustBody=!0,V.__dustBody=!0,R.__dustBody=!0,N.__dustBody=!0,F.__dustBody=!0,O.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/new/video_settings",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},22991:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="row preview-sidebar hide" id="previewSideBar"><div class="hvnewpreview-bottom-tabs">').p("templates/preview/sidebar_accordion_new",t,t,{}).w('</div><div class="preview-sidebar-content hvnewpreview-bottom-content" id="previewSideBarContent"><div id="previewSidebarContainer" class="sidebar-content-container custom-scroll preview-new-style"><div class="preview-save-container hide" id="previewSaveMessage"><span class="spinner-loading preview-save-spinner"></span><span class="preview-save-text"> Saving </span></div>').p("templates/preview/new/video_info",t,t,{}).p("templates/preview/new/video_marketing_tools",t,t,{}).p("templates/preview/new/video_settings",t,t,{}).w("</div></div></div>")}e.register("templates/preview/preview_sidebar_new",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/preview_sidebar_new",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},56372:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<ul id="sidebarAccordion" class="accordion video-accordion custom-scroll" data-accordion role="tablist"><li class="accordion-navigation"><a href="#videoInfoTab" role="tab" id="videoInfoTab-heading" class="accordion-title" aria-controls="videoInfoTab">').f(t.get(["videoInfo"],!1),t,"h").w('</a><div id="videoInfoTab" class="content active video-tabs" role="tabpanel" aria-labelledby="videoInfoTab-heading"><div id="videoInfo" class="subtab-container active-subtab" data-target="videoInfoContainer"><div class="subtab video-info-subtab active-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","info"]),t,"h").w("</div></div>").x(t.get(["canShowComments"],!1),t,{block:i},{}).x(t.get(["canShowReports"],!1),t,{block:a},{}).w("</div></li>").x(t.get(["canShowCustomizeTab"],!1),t,{block:s},{}).x(t.get(["canShowMarketingTab"],!1),t,{block:r},{}).x(t.get(["canShowPersonalisationTab"],!1),t,{block:u},{}).x(t.get(["canShowVideoCampaignsTab"],!1),t,{block:m},{}).x(t.get(["canShowPublishTab"],!1),t,{block:f},{}).x(t.get(["canShowSettingsTab"],!1),t,{block:k},{}).w("</ul>")}function i(e,t){return e.w('<div id="videoComments" class="subtab-container comments-tab-container" data-target="videoCommentsContainer"><div class="subtab video-comments-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","comments"]),t,"h").w("</div></div>")}function a(e,t){return e.w('<div id="videoReports" class="subtab-container reports-tab-container" data-target="videoReportsContainer"><div class="subtab video-reports-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","reports"]),t,"h").w("</div></div>")}function s(e,t){return e.w('<li class="accordion-navigation"><a href="#videoCustomizeTab" role="tab" id="videoCustomizeTab-heading" class="accordion-title" aria-controls="videoCustomizeTab">').f(t.get(["customizeVideo"],!1),t,"h").w('</a><div id="videoCustomizeTab" class="content video-tabs video-tabs-second" role="tabpanel" aria-labelledby="videoCustomizeTab-heading">').x(t.get(["canShowThumbnail"],!1),t,{block:o},{}).x(t.get(["canShowIntroOutro"],!1),t,{block:n},{}).w(" ").x(t.get(["canShowVirtualBg"],!1),t,{block:l},{}).w("</div></li>")}function o(e,t){return e.w('<div id="videoThumbnail" class="subtab-container thumbnail-tab-container" data-target="videoThumbnailContainer"><div class="subtab video-thumbnail-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","thumbnail"]),t,"h").w("</div></div>")}function n(e,t){return e.w('<div id="videoIntroOutro" class="subtab-container intro-tab-container" data-target="videoIntroOutroContainer"><div class="subtab video-introoutro-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","titleEndCard"]),t,"h").w("</div></div>")}function l(e,t){return e.w('<div id="videoVirtualBg" class="subtab-container virtualbg-tab-container" data-target="videoVirtualbgContainer"><div class="subtab video-virtualbg-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","titleVirtualBg"]),t,"h").w("</div></div>")}function r(e,t){return e.w('<li class="accordion-navigation"><a href="#videoMarkettingTab" role="tab" id="videoMarkettingTab-heading" class="accordion-title" aria-controls="videoMarkettingTab">').f(t.get(["marketingTools"],!1),t,"h").w('</a><div id="videoMarkettingTab" class="content video-tabs video-tabs-second" role="tabpanel" aria-labelledby="videoMarkettingTab-heading">').x(t.get(["canShowCTA"],!1),t,{block:d},{}).x(t.get(["canShowcustomTrackers"],!1),t,{block:c},{}).w("</div></li>")}function d(e,t){return e.w('<div id="videoCTA" class="subtab-container cta-tab-container" data-target="videoCTAContainer"><div class="subtab video-cta-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","timelineActions"]),t,"h").w("</div></div>")}function c(e,t){return e.w('<div id="videoCustomTracking" class="subtab-container custom-tracking-tab-container" data-target="videoCustomTrackingContainer"><div class="subtab video-custom-tracking-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","trackVideo"]),t,"h").w("</div></div>")}function u(e,t){return e.w('<li class="accordion-navigation"><a href="#personlizationTab" role="tab" id="personlizationTab-heading" class="accordion-title" aria-controls="personlizationTab">').f(t.getPath(!1,["sidebar","personalizeTabHeading"]),t,"h").w('</a><div id="personlizationTab" class="content video-tabs video-tabs-second" role="tabpanel" aria-labelledby="personlizationTab-heading">').x(t.get(["canShowThumbnailPersonalization"],!1),t,{block:h},{}).x(t.get(["canShowVideoPersonalization"],!1),t,{block:p},{}).w(" </div></li>")}function h(e,t){return e.w('<div id="thumbnailPersonalization" class="subtab-container thumbnail-personalization-tab-container" data-target="thumbnailPersonalizationContainer"><div class="subtab thumbnail-personalization-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","personalizeThumbnail"]),t,"h").w("</div></div>")}function p(e,t){return e.w('<div id="videoPersonalization" class="subtab-container video-personalization-tab-container" data-target="videoPersonalizationContainer"><div class="subtab video-personalization-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","personalizeVideo"]),t,"h").w("</div></div>")}function m(e,t){return e.w('<li class="accordion-navigation"><a href="#videoCampaignsTab" role="tab" id="videoCampaignsTab-heading" class="accordion-title" aria-controls="videoCampignsTab">').f(t.get(["videoCampaigns"],!1),t,"h").w('</a><div id="videoCampaignsTab" class="content video-tabs video-tabs-second" role="tabpanel" aria-labelledby="videoCampaignsTab-heading">').x(t.get(["canShowCampaignLink"],!1),t,{block:v},{}).x(t.get(["canShowVideoCampaigns"],!1),t,{block:g},{}).w("</div></li>")}function v(e,t){return e.w('<div id="emailCampaignLink" class="subtab-container email-campaign-link-tab-container" data-target="emailCampaignLinkContainer"><div class="subtab video-campaign-link-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","campaignLink"]),t,"h").w("</div></div>")}function g(e,t){return e.w('<div id="videoCampaign" class="subtab-container video-campaign-tab-container" data-target="videoCampaignContainer"><div class="subtab video-campaign-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","sendMail"]),t,"h").w('</div></div><div id="videoCampaignReports" class="subtab-container video-campaign-reports-container" data-target="videoCampaignReportsContainer"><div class="subtab video-reports-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","reports"]),t,"h").w("</div></div> ")}function f(e,t){return e.w('<li class="accordion-navigation"><a href="#videoPublishTab" role="tab" id="videoPublishTab-heading" class="accordion-title" aria-controls="videoPublishTab">').f(t.get(["publishVideo"],!1),t,"h").w('</a><div id="videoPublishTab" class="content video-tabs" role="tabpanel" aria-labelledby="videoPublishTab-heading">').x(t.get(["canShowShare"],!1),t,{block:b},{}).x(t.get(["canShowExport"],!1),t,{block:w},{}).x(t.get(["canShowPrivacy"],!1),t,{block:y},{}).x(t.get(["canShowEmbed"],!1),t,{block:_},{}).w("</div></li>")}function b(e,t){return e.w('<div id="videoShare" class="subtab-container share-tab-container" data-target="videoShareContainer"><div class="subtab video-share-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","share"]),t,"h").w("</div></div>")}function w(e,t){return e.w('<div id="videoExport" class="subtab-container export-tab-container" data-target="videoExportContainer"><div class="subtab video-export-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","export"]),t,"h").w("</div></div>")}function y(e,t){return e.w('<div id="videoPrivacy" class="subtab-container privacy-tab-container" data-target="videoPrivacyContainer"><div class="subtab video-privacy-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","privacy"]),t,"h").w("</div></div>")}function _(e,t){return e.w('<div id="videoEmbed" class="subtab-container embed-tab-container" data-target="videoEmbedContainer"><div class="subtab video-embed-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","embed"]),t,"h").w("</div></div>")}function k(e,t){return e.w('<li class="accordion-navigation"><a href="#videoSettingsTab" role="tab" id="videoSettingsTab-heading" class="accordion-title" aria-controls="videoSettingsTab">').f(t.get(["videoSettings"],!1),t,"h").w('</a><div id="videoSettingsTab" class="content video-tabs video-tabs-second" role="tabpanel" aria-labelledby="videoSettingsTab-heading">').x(t.get(["canShowSubtitles"],!1),t,{block:C},{}).x(t.get(["canShowBranding"],!1),t,{block:P},{}).x(t.get(["canShowSettings"],!1),t,{block:T},{}).w("</div></li>")}function C(e,t){return e.w('<div id="videoSubtitle" class="subtab-container subtitles-tab-container" data-target="videoSubtitlesContainer"><div class="subtab video-subtitles-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","subtitles"]),t,"h").w("</div></div>")}function P(e,t){return e.w('<div id="videoBranding" class="subtab-container" data-target="videoBrandingContainer"><div class="subtab video-branding-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","branding"]),t,"h").w("</div></div>")}function T(e,t){return e.w('<div id="videoSettings" class="subtab-container settings-tab-container" data-target="videoSettingsContainer"><div class="subtab video-settings-subtab"></div><div class="subtab-text">').f(t.getPath(!1,["sidebar","settings"]),t,"h").w("</div></div>")}e.register("templates/preview/sidebar_accordion",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,y.__dustBody=!0,_.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,P.__dustBody=!0,T.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/sidebar_accordion",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},89330:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<ul id="sidebarAccordion" class="accordion video-accordion custom-scroll" data-accordion role="tablist">\x3c!-- <li><div id="videoInfo" class="subtab-container active-subtab" data-target="videoInfoContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","info"]),t,"h").w("</div></div></li> --\x3e").x(t.get(["canShowReports"],!1),t,{block:i},{}).w("\x3c!-- ").x(t.get(["canShowVideoCampaigns"],!1),t,{block:a},{}).w(" --\x3e").x(t.get(["canShowMarketingTab"],!1),t,{block:s},{}).x(t.get(["canShowcustomTrackers"],!1),t,{block:n},{}).x(t.get(["canShowThumbnail"],!1),t,{block:l},{}).x(t.get(["canShowIntroOutro"],!1),t,{block:r},{}).w("\x3c!-- ").x(t.get(["canShowVirtualBg"],!1),t,{block:d},{}).w(" --\x3e").x(t.get(["canShowThumbnailPersonalization"],!1),t,{block:c},{}).x(t.get(["canShowVideoPersonalization"],!1),t,{block:u},{}).x(t.get(["canShowThumbnailPersonalization"],!1),t,{block:h},{}).x(t.get(["canShowVideoPersonalization"],!1),t,{block:p},{}).x(t.get(["canShowCampaignLink"],!1),t,{block:m},{}).x(t.get(["canShowShare"],!1),t,{block:v},{}).x(t.get(["canShowExport"],!1),t,{block:g},{}).x(t.get(["canShowEmbed"],!1),t,{block:f},{}).x(t.get(["canShowSettings"],!1),t,{block:b},{}).x(t.get(["canShowComments"],!1),t,{block:T},{}).x(t.get(["canShowVideoCampaigns"],!1),t,{block:S},{}).w("</ul>")}function i(e,t){return e.w('<li><div id="videoReports" class="subtab-container reports-tab-container active-subtab" data-target="videoReportsContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","reports"]),t,"h").w("</div></div></li>")}function a(e,t){return e.w('<li><div id="videoCampaignReports" class="subtab-container video-campaign-reports-container" data-target="videoCampaignReportsContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","campaignReports"]),t,"h").w("</div></div></li>")}function s(e,t){return e.x(t.get(["canShowCTA"],!1),t,{block:o},{})}function o(e,t){return e.w('<li class="hvsubtab-info-wrapper"><div id="videoCTA" class="subtab-container cta-tab-container" data-target="videoCTAContainer"><div class="subtab-text"> ').f(t.getPath(!1,["sidebar","interactiveVideoCta"]),t,"h").w('</div></div><div class="hvsubtab-info-container disp-none" data-type="cta" id="ctaResolvePrompt"><img src="/svg/info-icon-yellow.svg" alt="info"><div class="hvsubtab-info-box clear-float"><p>Alter CTA to match the edited video</p><button class="dismiss-resolution-button" data-type="cta">Dismiss</button></div></div></li>')}function n(e,t){return e.w('<li><div id="videoCustomTracking" class="subtab-container custom-tracking-tab-container" data-target="videoCustomTrackingContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","trackVideo"]),t,"h").w("</div></div></li>")}function l(e,t){return e.w('<li class="disp-none"><div id="videoThumbnail" class="subtab-container thumbnail-tab-container" data-target="videoThumbnailContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","thumbnail"]),t,"h").w("</div></div></li>")}function r(e,t){return e.w('<li class="disp-none"><div id="videoIntroOutro" class="subtab-container intro-tab-container" data-target="videoIntroOutroContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","titleEndCard"]),t,"h").w("</div></div></li>")}function d(e,t){return e.w('<li><div id="videoVirtualBg" class="subtab-container virtualbg-tab-container" data-target="videoVirtualbgContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","titleVirtualBg"]),t,"h").w('</div><i class="beta-indicator">').f(t.getPath(!1,["sidebar","beta"]),t,"h").w("</i></div></li>")}function c(e,t){return e.w('<li class="disp-none"><div id="thumbnailPersonalization" class="subtab-container thumbnail-personalization-tab-container" data-target="thumbnailPersonalizationContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","personalizeThumbnail"]),t,"h").w("</div></div></li>")}function u(e,t){return e.w('<li class="disp-none"><div id="videoPersonalization" class="subtab-container video-personalization-tab-container" data-target="videoPersonalizationContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","personalizeVideo"]),t,"h").w("</div></div></li>")}function h(e,t){return e.w('<li class="disp-none"><div id="thumbnailPersonalization" class="subtab-container thumbnail-personalization-tab-container" data-target="thumbnailPersonalizationContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","personalizeThumbnail"]),t,"h").w("</div></div></li>")}function p(e,t){return e.w('<li class="disp-none"><div id="videoPersonalization" class="subtab-container video-personalization-tab-container" data-target="videoPersonalizationContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","personalizeVideo"]),t,"h").w("</div></div></li>")}function m(e,t){return e.w('<li class="disp-none"><div id="emailCampaignLink" class="subtab-container email-campaign-link-tab-container" data-target="emailCampaignLinkContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","campaignLink"]),t,"h").w("</div></div></li>")}function v(e,t){return e.w('<li class="disp-none"><div id="videoShare" class="subtab-container share-tab-container" data-target="videoShareContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","share"]),t,"h").w("</div></div></li>")}function g(e,t){return e.w('<li class="disp-none"><div id="videoExport" class="subtab-container export-tab-container" data-target="videoExportContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","export"]),t,"h").w("</div></div></li>")}function f(e,t){return e.w('<li class="disp-none"><div id="videoEmbed" class="subtab-container embed-tab-container" data-target="videoEmbedContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","embed"]),t,"h").w("</div></div></li>")}function b(e,t){return e.w('<li class="hvsubtab-info-wrapper"><div id="videoSettings" class="subtab-container settings-tab-container" data-target="').x(t.get(["canShowSettings"],!1),t,{else:w,block:P},{}).w('"><div class="subtab-text">').f(t.getPath(!1,["sidebar","videoSettings"]),t,"h").w('</div></div><div class="hvsubtab-info-container disp-none" data-type="subtitle" id="subtitleResolvePrompt"><img src="/svg/info-icon-yellow.svg" alt="info"><div class="hvsubtab-info-box clear-float"><p>Alter subtiles to match the edited video</p><button class="dismiss-resolution-button" data-type="subtitle">Dismiss</button></div></div></li>')}function w(e,t){return e.x(t.get(["canShowSubtitles"],!1),t,{else:y,block:C},{})}function y(e,t){return e.x(t.get(["canShowBranding"],!1),t,{else:_,block:k},{})}function _(e,t){return e.w("videoSettingsEmptyContainer")}function k(e,t){return e.w("videoBrandingContainer")}function C(e,t){return e.w("videoSubtitlesContainer")}function P(e,t){return e.w("videoSettingsContainer")}function T(e,t){return e.w('<li><div id="videoComments" class="subtab-container comments-tab-container" data-target="videoCommentsContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","comments"]),t,"h").w("</div></div></li>")}function S(e,t){return e.w('\x3c!-- <li><div id="videoCampaign" class="subtab-container video-campaign-tab-container" data-target="videoCampaignContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","sendMail"]),t,"h").w('</div></div></li> --\x3e<li class="disp-none"><div id="videoCampaignReports" class="subtab-container video-campaign-reports-container" data-target="videoCampaignReportsContainer"><div class="subtab-text">').f(t.getPath(!1,["sidebar","reports"]),t,"h").w("</div></div></li>")}e.register("templates/preview/sidebar_accordion_new",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,y.__dustBody=!0,_.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,P.__dustBody=!0,T.__dustBody=!0,S.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/sidebar_accordion_new",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},14438:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="small-12"><div class="tab-warning-content"><center><img src="').f(t.get(["staticImgDomain"],!1),t,"h").w('/svg/warning.svg" alt="Contact Admin"/><p class="content-desc"> Please contact your admin to get access to this feature </p></center></div></div>')}e.register("templates/preview/support_user_warning",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/support_user_warning",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},59925:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="row privacy-settings-container"><div class="small-12"><p class="content-desc"> ').f(t.get(["privacyHeading"],!1),t,"h").w(' </p><form name="privacy-form" id="privacyForm"><input type="radio" name="privacy_type" value="1" class="ui-radio with-link" id="withOnlyMe"').h("eq",t,{block:i},{key:t.get(["privacyType"],!1),value:1},"h").w('/><label for="withOnlyMe"> ').f(t.get(["onlyMe"],!1),t,"h").w(" </label><br>").x(t.get(["teamPrivacyAllowed"],!1),t,{block:a},{}).w('<input type="radio" name="privacy_type" value="2" class="ui-radio with-link" id="withLink"').h("eq",t,{block:o},{key:t.get(["privacyType"],!1),value:2},"h").w(' /><label for="withLink"> ').f(t.get(["anyOneWithLink"],!1),t,"h").w(' </label><br><div class="small-11 small-offset-1 any-one-with-link clearfix ').h("ne",t,{block:n},{key:t.get(["privacyType"],!1),value:2},"h").w('" id="anyOneWithLinkOptions"><div class="small-12 columns"><div class="small-12 medium-12 large-5 columns"><input type="checkbox" name="set_password" id="setPassword" class="ui-checkbox-two with-link-password"').x(t.get(["password"],!1),t,{block:l},{}).w('/><label for="setPassword"> ').f(t.get(["setPassword"],!1),t,"h").w(' </label></div><div class="small-12 medium-12 large-7 columns ').nx(t.get(["password"],!1),t,{block:r},{}).w('" id="privacyPasswordField"><input type="text" value="').f(t.get(["password"],!1),t,"h").w('" name="password" class="form-control password-input"></div></div><div class="small-12 columns"><div class="small-12 medium-12 large-5 columns"><input type="checkbox" name="set_expiry" id="setExpiry" class="ui-checkbox-two with-link-expiry" ').x(t.get(["expiry_time"],!1),t,{block:d},{}).w('/><label for="setExpiry"> ').f(t.get(["setExpiry"],!1),t,"h").w(' </label></div><div class="small-12 medium-12 large-7 columns left ').nx(t.get(["expiry_time"],!1),t,{block:c},{}).w("\" id=\"privacyCalendarField\"><div class='input-group date' id='datetimepicker5'><input type='text' value=\"").f(t.get(["display_time"],!1),t,"h").w('" class="form-control date_time_box" id="availFromBox" name="expiry_time"/><label for="availFromBox"><svg class="svg-icon calendar-icon" id="calander-icon"><use xlink:href="/symbol-defs.svg#icon-calendar" /></svg></label></div></div></div><div class="small-12 text-right ').nx(t.get(["password"],!1),t,{block:u},{}).w('" id="privacyButtonBar"><button class="button wiz-primary-btn radius" id="saveBtn"> ').f(t.get(["apply"],!1),t,"h").w(' </button><button class="button cancel-btn radius" id="cancelBtn"> ').f(t.get(["cancel"],!1),t,"h").w(" </button></div></div></form></div></div>")}function i(e,t){return e.w(" checked ")}function a(e,t){return e.w('<input type="radio" name="privacy_type" value="4" class="ui-radio with-link" id="withInternal"').h("eq",t,{block:s},{key:t.get(["privacyType"],!1),value:4},"h").w('/><label for="withInternal"> ').f(t.get(["internal"],!1),t,"h").w(" </label><br>")}function s(e,t){return e.w(" checked ")}function o(e,t){return e.w(" checked ")}function n(e,t){return e.w(" hide ")}function l(e,t){return e.w(" checked ")}function r(e,t){return e.w(" hide ")}function d(e,t){return e.w(" checked ")}function c(e,t){return e.w(" hide ")}function u(e,t){return e.w(" ").nx(t.get(["expiry_time"],!1),t,{block:h},{}).w(" ")}function h(e,t){return e.w(" hide ")}e.register("templates/preview/video_privacy",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/video_privacy",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},19646:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="row privacy-settings-containers"><div class="small-12"><p class="content-desc"> ').f(t.get(["privacyHeading"],!1),t,"h").w(' </p><form name="privacy-form" id="privacyForm"><div class="box"><input type="radio" name="privacy_type" value="1" class="ui-radio with-link" id="withOnlyMe"').h("eq",t,{block:i},{key:t.get(["privacyType"],!1),value:1},"h").w(' /><label for="withOnlyMe"> <img src="/svg/user-fill-grey.svg" width="15" > ').f(t.get(["onlyMe"],!1),t,"h").w(" </label><br><small>Only you can see the video</small></div>").x(t.get(["teamPrivacyAllowed"],!1),t,{block:a},{}).w('<div class="box"><input type="radio" name="privacy_type" value="2" class="ui-radio with-link" id="withLink"').h("eq",t,{block:o},{key:t.get(["privacyType"],!1),value:2},"h").w(' /><label for="withLink"> <img src="/svg/user-fill-grey.svg" width="15" > ').f(t.get(["anyOneWithLink"],!1),t,"h").w(' </label><br><small>Anyone with the link can see the video</small><div class="small-12 small-offset-0 any-one-with-link clearfix ').h("ne",t,{block:n},{key:t.get(["privacyType"],!1),value:2},"h").w('" id="anyOneWithLinkOptions"><div class="small-12 columns"><div class="small-12 medium-12 large-12 columns"><input type="checkbox" name="set_password" id="setPassword" class="ui-checkbox-two with-link-password"').x(t.get(["password"],!1),t,{block:l},{}).w('/><label for="setPassword"> ').f(t.get(["setPassword"],!1),t,"h").w(' </label><br><small class="p-sm">Only people with the password can access the video</small></div><div class="small-12 medium-12 input_box columns end ').nx(t.get(["password"],!1),t,{block:r},{}).w('" id="privacyPasswordField"><input type="text" value="').f(t.get(["password"],!1),t,"h").w('" name="password" class="form-control password-input bottom-remove"></div></div><br><div class="small-12 columns"><br><div class="small-12 medium-12 large-12 columns"><input type="checkbox" name="set_expiry" id="setExpiry" class="ui-checkbox-two with-link-expiry" ').x(t.get(["expiry_time"],!1),t,{block:d},{}).w('/><label for="setExpiry"> ').f(t.get(["setExpiry"],!1),t,"h").w(' </label></div><div class="small-12 left ').nx(t.get(["expiry_time"],!1),t,{block:c},{}).w("\" id=\"privacyCalendarField\"><div class='input-group expiry_container date medium-12 input_box columns end' id='datetimepicker5'><input type='text' value=\"").f(t.get(["display_time"],!1),t,"h").w('" class="form-control date_time_box bottom-remove" id="availFromBox" name="expiry_time"/><label for="availFromBox" class="date_label"><svg class="svg-icon calendar-icon" id="calander-icon"><use xlink:href="/symbol-defs.svg#icon-calendar" /></svg></label></div></div></div>').x(t.get(["video_privacy_settings"],!1),t,{block:u},{}).w('<div class="small-12 text-right ').nx(t.get(["password"],!1),t,{block:h},{}).w('" id="privacyButtonBar"><button class="button wiz-primary-btn radius" id="saveBtn"> ').f(t.get(["apply"],!1),t,"h").w(" </button></div></div></div></form></div></div>")}function i(e,t){return e.w(" checked ")}function a(e,t){return e.w('<div class="box hide"><input type="radio" name="privacy_type" value="4" class="ui-radio with-link" id="withInternal"').h("eq",t,{block:s},{key:t.get(["privacyType"],!1),value:4},"h").w('/><label for="withInternal"> <img src="/svg/user-fill-grey.svg" width="15" > ').f(t.get(["internal"],!1),t,"h").w(" </label><br><small>Only people in your organisation can access the video</small></div>")}function s(e,t){return e.w(" checked ")}function o(e,t){return e.w(" checked ")}function n(e,t){return e.w(" hide ")}function l(e,t){return e.w(" checked ")}function r(e,t){return e.w(" hide ")}function d(e,t){return e.w(" checked ")}function c(e,t){return e.w(" hide ")}function u(e,t){return e.w('<div class="small-12 columns info-text"><img src="/svg/Icon ionic-ios-information-circle-outline.svg" class="info-icon"/><a class="info-link" href="/settings/video#video_privacy_setting">Click here</a> to set the privacy and expiry for all videos by default</div>')}function h(e,t){return e.w(" ").nx(t.get(["expiry_time"],!1),t,{block:p},{}).w(" ")}function p(e,t){return e.w(" hide ")}e.register("templates/preview/video_privacy_new",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/video_privacy_new",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},7319:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('\x3c!-- <div class="small-12" id="VideoShareExportContainer"> --\x3e\x3c!-- <div class="small-12 video-share-container preview-tab-content hide" id="videoShareContainer"><p class="content-title"> ').f(t.get(["videoShare"],!1),t,"h").w(" </p>").h("ne",t,{else:i,block:a},{key:t.get(["shouldAskConfirmation"],!1),type:"string",value:"true"},"h").w("</div> --\x3e\x3c!-- ").x(t.get(["canShowExport"],!1),t,{block:n},{}).w(" --\x3e\x3c!-- </div> --\x3e").x(t.get(["canShowPrivacy"],!1),t,{block:d},{}).w("\x3c!-- ").x(t.get(["canShowEmbed"],!1),t,{block:m},{}).w(" --\x3e")}function i(e,t){return e.w('<div class=\'small-12\' id="confirmationMaskLayer"><div class="tab-warning-content"><center><img src="/svg/lock-icon.svg" alt="Locked"/><p class="content-desc"> ').f(t.get(["inOrderToShare"],!1),t,"h").w(' </p><button class="button wiz-primary-btn radius show-confirmation" id="confirmAccount"> ').f(t.get(["accountConfirm"],!1),t,"h").w(" </button></center></div></div>")}function a(e,t){return e.w("<div class='row ").h("eq",t,{block:s},{key:t.get(["privacyType"],!1),type:"string",value:"1"},"h").w('\' id="shareMailContainer"><div class="small-12 sidebar-share-strip" id="shareContainer"></div></div><div class=\'small-12 ').h("ne",t,{block:o},{key:t.get(["privacyType"],!1),type:"string",value:"1"},"h").w('\' id="shareMaskLayer"><div class="tab-warning-content"><center><img src="/svg/lock-icon.svg" alt="Locked"/><p class="content-desc"> ').f(t.get(["privacySettings"],!1),t,"h").w(' </p><button class="button wiz-primary-btn radius" id="changePrivacyBtn"> ').f(t.get(["changePrivacy"],!1),t,"h").w(" </button></center></div></div>")}function s(e,t){return e.w(" hide ")}function o(e,t){return e.w(" hide ")}function n(e,t){return e.w('<div class="small-12 video-export-container preview-tab-content hide" id="videoExportContainer"><p class="content-title"> ').f(t.get(["videoExport"],!1),t,"h").w(" </p>").h("ne",t,{else:l,block:r},{key:t.get(["shouldAskConfirmation"],!1),type:"string",value:"true"},"h").w("</div>")}function l(e,t){return e.w('<div class=\'small-12\' id="confirmationMaskLayer"><div class="tab-warning-content"><center><img src="/svg/lock-icon.svg" alt="Locked"/><p class="content-desc"> ').f(t.get(["inOrderToShare"],!1),t,"h").w(' </p><button class="button wiz-primary-btn radius show-confirmation" id="confirmAccount"> ').f(t.get(["accountConfirm"],!1),t,"h").w(" </button></center></div></div>")}function r(e,t){return e.w('<div class="small-12 sidebar-share-strip" id="exportContainer"></div>')}function d(e,t){return e.w('<div class="small-12 video-privacy-container preview-tab-content pv-new-mo hide" id="videoPrivacyContainer">\x3c!-- <p class="content-title"> ').f(t.get(["videoPrivacy"],!1),t,"h").w(" </p> --\x3e").x(t.get(["isGuestUser"],!1),t,{else:c,block:p},{}).w("</div>")}function c(e,t){return e.x(t.get(["isSupportUser"],!1),t,{else:u,block:h},{})}function u(e,t){return e.w('<div class="small-12" id="privacyContainer"></div>')}function h(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function p(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function m(e,t){return e.w('<div class="small-12 video-embed-container preview-tab-content hide" id="videoEmbedContainer"><p class="content-title"> ').f(t.get(["videoEmbed"],!1),t,"h").w(" </p>").x(t.get(["isGuestUser"],!1),t,{else:v,block:y},{}).w("</div>")}function v(e,t){return e.x(t.get(["isEmbedEnabled"],!1),t,{else:g,block:f},{})}function g(e,t){return e.p("templates/preview/upgrade",t,t,{})}function f(e,t){return e.h("ne",t,{else:b,block:w},{key:t.get(["shouldAskConfirmation"],!1),type:"string",value:"true"},"h")}function b(e,t){return e.w('<div class=\'small-12\' id="confirmationMaskLayer"><div class="tab-warning-content"><center><img src="/svg/lock-icon.svg" alt="Locked"/><p class="content-desc"> ').f(t.get(["inOrderToShare"],!1),t,"h").w(' </p><button class="button wiz-primary-btn radius show-confirmation" id="confirmAccount"> ').f(t.get(["accountConfirm"],!1),t,"h").w(" </button></center></div></div>")}function w(e,t){return e.w('<div class="small-12" id="embedContainer"></div>')}function y(e,t){return e.p("templates/preview/guest_signup",t,t,{})}e.register("templates/preview/video_publish_new",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,y.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/video_publish_new",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},1744:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.x(t.get(["canShowSubtitles"],!1),t,{block:i},{}).x(t.get(["canShowBranding"],!1),t,{block:d},{}).x(t.get(["canShowSettings"],!1),t,{block:f},{})}function i(e,t){return e.w('<div class="small-12 video-subtitles-container preview-tab-content hide" id="videoSubtitlesContainer"><p class="content-title"> ').f(t.get(["videoSubtitles"],!1),t,"h").w(" </p>").x(t.get(["isGuestUser"],!1),t,{else:a,block:r},{}).w("</div>")}function a(e,t){return e.x(t.get(["isSupportUser"],!1),t,{else:s,block:l},{})}function s(e,t){return e.x(t.get(["isSubtitlesEnabled"],!1),t,{else:o,block:n},{})}function o(e,t){return e.p("templates/preview/upgrade",t,t,{})}function n(e,t){return e.w('<div class="small-12" id="subtitlesContainer"></div>')}function l(e,t){return e.p("templates/preview/support_user_warning",t,t,{})}function r(e,t){return e.p("templates/preview/guest_signup",t,t,{})}function d(e,t){return e.w('<div class="small-12 video-branding-container preview-tab-content hide" id="videoBrandingContainer"><p class="content-title"> ').f(t.get(["videoBranding"],!1),t,"h").w(' </p><div class="small-12 columns settings-row"><div class="small-12 medium-12 large-4 columns"><span class="hv-setting-label">').f(t.getPath(!1,["wizPreview","playerTheme"]),t,"h").w('</span></div><div class="small-12 medium-12 large-8 columns"><div class="small-1 columns theme-sample"><div id="samplePlayerTheme" class="t-color-box"></div></div><div class="small-3 columns"><label id="themeColorLabel">').f(t.getPath(!1,["wizPreview","defaultTheme"]),t,"h").w('</label></div><div class="small-8 columns button-container"><a id="changePlayerThemeId" class="change-btn"><img src="/svg/edit-58b0c3.svg" width="10">').f(t.get(["change"],!1),t,"h").w('</a></div></div></div><div class="small-12 columns settings-row"><div class="small-12 medium-12 large-4 columns"><span class="hv-setting-label">').f(t.getPath(!1,["wizPreview","playerLogo"]),t,"h").w('</span></div><div class="small-12 medium-12 large-8 columns"><div class="small-4 columns player-logo-img-container"><div class="header-logo-box"><img id="playerLogoImg" src="').x(t.get(["player_logo"],!1),t,{else:c,block:u},{}).w('"/></div></div><div class="small-7 columns button-container" id="playerLogoAddContainer"><a id="addPlayerLogo" class="change-btn ').x(t.get(["player_logo"],!1),t,{block:h},{}).w('"><img src="/img/create-plus.png" width="10">').f(t.getPath(!1,["wizPreview","addLogo"]),t,"h").w('</a></div><div class="small-3 columns button-container" id="playerLogoChangeContainer"><a id="changePlayerLogo" class="change-btn ').nx(t.get(["player_logo"],!1),t,{block:p},{}).w('"><img src="/svg/edit-58b0c3.svg" width="10">').f(t.getPath(!1,["wizPreview","change"]),t,"h").w('</a></div><div class="small-3 columns delete-btn-container" id="playerLogoDeleteContainer"><span id="deleteLogoLoading" class="branding-spinner delete-spinner hide"></span><a id="deletePlayerLogo" class="delete-btn ').nx(t.get(["player_logo"],!1),t,{block:m},{}).w('"><img src="/svg/delete-icon-grey.svg" width="10"></a></div></div></div><div class="small-12 columns settings-row"><div class="small-12 medum-12 large-8 large-offset-4 columns player-logo-add-link"><input type="checkbox" class="branding-c wiz-checkbox-blue" id="playerLogoCheck"/><label class="" for="playerLogoCheck">').f(t.getPath(!1,["wizPreview","addLinkToPlayerLogoText"]),t,"h").w('</label></div><div id="playerLogoUrl" class="small-12 medim-12 large-8 large-offset-4 columns player-logo-url hide"><input id="playerLogoLink" class="url-input error-msg-view ').nx(t.get(["add_link_to_player_logo"],!1),t,{block:v},{}).w('" value="').x(t.get(["player_logo_link"],!1),t,{block:g},{}).w('" type="text" placeholder="').f(t.get(["enterUrl"],!1),t,"h").w('"><span id="playerLogoLinkErrMsg" class="error-text hide"></span></div></div><div class="small-12 columns settings-row branding-btn-container"><div class="small-5 columns restore-container"><a id="brandingResetBtn"><img src="/svg/retake.svg" width="13"/>').f(t.get(["restoreDefault"],!1),t,"h").w('</a><span tooltip="').f(t.get(["restoreDefaultToolTip"],!1),t,"h").w('"><img src="/img/how-tip.png" width="15"></span></div><div class="small-3 columns"><a id="brandingSaveBtn" class="button wiz-primary-btn radius">').f(t.get(["save"],!1),t,"h").w('</a><div class="hide" id="saveBrandingLoading"><div class="save-overlay"><center><span class="branding-spinner save-spinner"></span></center></div></div></div></div><div id="brandingThemePop"></div></div>')}function c(e,t){return e.w("/svg/hippo-video-logo-white.svg")}function u(e,t){return e.f(t.get(["player_logo"],!1),t,"h")}function h(e,t){return e.w("disp-none")}function p(e,t){return e.w("disp-none")}function m(e,t){return e.w("disp-none")}function v(e,t){return e.w("hide")}function g(e,t){return e.f(t.get(["player_logo_link"],!1),t,"h")}function f(e,t){return e.w('<div class="small-12 video-settings-container preview-tab-content hide" id="videoSettingsContainer"><p class="content-title"> ').f(t.get(["videoSettings"],!1),t,"h").w(" </p>").x(t.get(["isGuestUser"],!1),t,{else:b,block:I},{}).w("</div>")}function b(e,t){return e.nx(t.get(["isContactAssociatedVideo"],!1),t,{block:w},{}).nx(t.get(["isGIFPreview"],!1),t,{block:_},{})}function w(e,t){return e.w('<div class="small-12 clearfix settings-row"><div class="small-8 pull-left"> ').f(t.get(["allowComments"],!1),t,"h").w(' </div><div class="small-4 pull-right text-right"><div class="switch-part"><div class="integration-switch-wrapper"><input type="checkbox" id="commentsSwitch" class="integration-switch settings-switch" ').x(t.get(["comments_enabled"],!1),t,{block:y},{}).w(' /><label class="slider" for="commentsSwitch"></label></div></div></div></div><input type="checkbox" name="set_comments" id="setDefaultComments" class="ui-checkbox-two comments-reactions-checkbox"><label for="setDefaultComments" class="video-settings-checkbox set-comments-class checkbox-label disp-none">').f(t.get(["makeDefault"],!1),t,"h").w("</label>")}function y(e,t){return e.w(" checked ")}function _(e,t){return e.nx(t.get(["isContactAssociatedVideo"],!1),t,{block:k},{}).w('<div class="small-12 clearfix settings-row"><div class="small-8 pull-left"> ').f(t.get(["autoPlayVideo"],!1),t,"h").w(' </div><div class="small-4 pull-right text-right"><div class="switch-part"><div class="integration-switch-wrapper"><input type="checkbox" id="autoPlaySwitch" class="integration-switch settings-switch" ').x(t.get(["autoplay_enabled"],!1),t,{block:P},{}).w('/><label class="slider" for="autoPlaySwitch"></label></div></div></div></div><input type="checkbox" name="set_autoplay" id="setDefaultAutoplay" class="ui-checkbox-two comments-reactions-checkbox"><label for="setDefaultAutoplay" class="video-settings-checkbox set-autoplay-class checkbox-label disp-none">').f(t.get(["makeDefault"],!1),t,"h").w("</label>").x(t.get(["deliveryDownloadAllowed"],!1),t,{block:T},{}).x(t.get(["playbackSpeedAllowed"],!1),t,{block:x},{}).w('<button class="button wiz-secondary-btn wiz-new-secondary-btn radius pull-right default-video-settings disp-none" id="videoChangesCancelBtn"> ').f(t.get(["cancel"],!1),t,"h").w(' </button><button class="button wiz-primary-btn radius pull-right default-video-settings disp-none" id="videoChangesSaveBtn"> ').f(t.get(["apply"],!1),t,"h").w(" </button>")}function k(e,t){return e.w('<div class="small-12 clearfix settings-row"><div class="small-8 pull-left"> ').f(t.get(["allowReactions"],!1),t,"h").w(' </div><div class="small-4 pull-right text-right"><div class="switch-part"><div class="integration-switch-wrapper"><input type="checkbox" id="reactionsSwitch" class="integration-switch settings-switch" ').x(t.get(["reactions_enabled"],!1),t,{block:C},{}).w('/><label class="slider" for="reactionsSwitch"></label></div></div></div></div><input type="checkbox" name="set_reactions" id="setDefaultReactions" class="ui-checkbox-two comments-reactions-checkbox"><label for="setDefaultReactions" class="video-settings-checkbox set-reactions-class checkbox-label disp-none">').f(t.get(["makeDefault"],!1),t,"h").w("</label>")}function C(e,t){return e.w(" checked ")}function P(e,t){return e.w(" checked ")}function T(e,t){return e.w('<div class="small-12 clearfix settings-row"><div class="small-8 pull-left"> ').f(t.get(["allowDeliveryDownload"],!1),t,"h").w(' </div><div class="small-4 pull-right text-right"><div class="switch-part"><div class="integration-switch-wrapper"><input type="checkbox" id="downloadSwitch" class="integration-switch settings-switch" ').x(t.get(["delivery_download_enabled"],!1),t,{block:S},{}).w(' /><label class="slider" for="downloadSwitch"></label></div></div></div></div>')}function S(e,t){return e.w(" checked ")}function x(e,t){return e.w('<div class="small-12 clearfix settings-row"><div class="small-8 pull-left"> ').f(t.get(["allowPlaybackSpeed"],!1),t,"h").w(' </div><div class="small-4 pull-right text-right"><div class="switch-part"><div class="integration-switch-wrapper"><input type="checkbox" id="allowPlaybackSpeedSwitch" class="integration-switch settings-switch" ').x(t.get(["playbackSpeedEnabled"],!1),t,{block:A},{}).w('/><label class="slider" for="allowPlaybackSpeedSwitch"></label></div></div></div></div>')}function A(e,t){return e.w(" checked ")}function I(e,t){return e.p("templates/preview/guest_signup",t,t,{})}e.register("templates/preview/video_settings",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,y.__dustBody=!0,_.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,P.__dustBody=!0,T.__dustBody=!0,S.__dustBody=!0,x.__dustBody=!0,A.__dustBody=!0,I.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/preview/video_settings",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},12038:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="large-11 columns large-centered"><div class="small-12 columns text-center"><img src="/img/video_assignment-succes_icon.svg" /></div><div class="small-12 columns"><label for="right-label" class="inline cat-form-la text-center">').f(t.getPath(!1,["wizShareI18N","assignmentSubmitted"]),t,"h").w('</label></div><div class="small-12 columns copy-link-box"><div class="small-3 columns"><label for="right-label" class="inline cat-form-la">').f(t.getPath(!1,["wizShareI18N","assignmentLink"]),t,"h").w('</label></div><div class="small-9 columns"><div class="small-8 columns"><input type="text" id="catUrl" value=\'').f(t.get(["url"],!1),t,"h").w('\' readonly="readonly" class="" /></div><div class="small-4 columns"><span class="postfix copy-link cpy-lnk-btn" id="copyAssignmentLink" data-copytarget="#catUrl"><img src="/svg/copy-icon-green.svg">').f(t.getPath(!1,["wizShareI18N","copyLink"]),t,"h").w('</span><span class="postfix copyed-link cpy-lnk-btn disp-none">').f(t.getPath(!1,["wizShareI18N","copiedText"]),t,"h").w("</span></div></div></div></div>")}e.register("templates/wiz/_assignment_success_template",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/wiz/_assignment_success_template",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},82379:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w(' <div id="comments" class="comments-section hide">').nx(t.get(["shouldHideTitle"],!1),t,{block:i},{}).w('<div class="comments-disabled hide" id="commentsDisableWarning"> ').f(t.getPath(!1,["wizComments","commentsDisable"]),t,"h").w(' </div><div class="comment-header clearfix"><div class="comment-new-section pull-left" id="addNewComment"><img src="/svg/icon-discussions.svg" alt="comment-icon" /><span class="comment-new-header uuuuu"> ').f(t.getPath(!1,["wizComments","addNewComments"]),t,"h").w(' </span></div><div class="comments-sort pull-right"><span> ').f(t.getPath(!1,["wizComments","sortBy"]),t,"h").w(' </span><div class="button-group"><a class="button active-button" id="sortByRecent"> ').f(t.getPath(!1,["wizComments","recent"]),t,"h").w(' </a><a class="button" id="sortByTimeline"> ').f(t.getPath(!1,["wizComments","timeline"]),t,"h").w(' </a></div></div></div><div class="comments-list custom-scroll" id="commentsList"><div class="comments-and-replies" id="newCommentSection" style="display:none;"><div class="comment-row comment-add-new"><div id="fallBackProfilePic" class="commenter-photo pull-left commenter-name hide"> </div><img id="profilePic" class="commenter-photo pull-left" alt="user-img" /><span class="comment-video-time" id="newCommentTime"> 2:00 </span><div class="comment-box"><div class="comment-card"><div class="main-comment-section face"><div class="comment-content"><div class="commenter-email"><span class="comment-time"> ').f(t.getPath(!1,["wizComments","postAs"]),t,"h").w(' </span><span id="displayName"></span></div><div class="comment-textbox"><textarea class="input-fields" name="message" id="userComment" placeholder="').f(t.getPath(!1,["wizComments","enterComments"]),t,"h").w('"></textarea></div></div><div class="main-btn-toolbar button-toolbar"><div class="clearfix">').x(t.get(["guest_digest"],!1),t,{block:a},{}).w('<div class="primary-actions pull-right"><button id="addComment" class="button comment-prim-btn"> ').f(t.getPath(!1,["wizComments","post"]),t,"h").w(' </button><a id="cancelAddComment"> ').f(t.getPath(!1,["wizComments","cancel"]),t,"h").w(' </a></div></div></div></div><div class="record-options-container face back" id="recordOptions"><div class="record-options"><div class="record-options-group record-option" id="screenRecord"><img src="/svg/screen-record-on.svg" class="option-image"/><img src="/svg/screen-record-off.svg" class="option-image hide"/><div class="option-name"> ').f(t.getPath(!1,["wizComments","screen"]),t,"h").w(' </div><div class="checkbox-container active-container"><img src="/svg/tick-white.svg" alt="tick" class="tick-icon"/></div></div><div class="record-options-group record-option" id="webcamRecord"><img src="/svg/web-cam-on.svg" class="option-image"/><img src="/svg/web-cam-off.svg" class="option-image hide"/><div class="option-name"> ').f(t.getPath(!1,["wizComments","webcam"]),t,"h").w(' </div><div class="checkbox-container active-container"><img src="/svg/tick-white.svg" alt="tick" class="tick-icon"/></div></div><div class="record-options-group record-option" id="audioRecord"><img src="/svg/audio-on.svg" class="option-image"/><img src="/svg/audio-off.svg" class="option-image hide"/><div class="option-name"> ').f(t.getPath(!1,["wizComments","audio"]),t,"h").w(' </div><div class="checkbox-container active-container"><img src="/svg/tick-white.svg" alt="tick" class="tick-icon"/></div></div><div class="button-toolbar"><button class="button wiz-primary-btn record-video" id="recordVideo" disabled="disabled"> ').f(t.getPath(!1,["wizComments","start"]),t,"h").w(' </button><a id="cancelRecordVideoOptions" class="cancel-record-video-options"> ').f(t.getPath(!1,["wizComments","cancel"]),t,"h").w(' </a></div></div><div class="record-msg-container" id="recordMsgContainer"></div></div></div></div></div></div></div><div id="emptyComments" class="empty-comments hide"> ').f(t.getPath(!1,["wizComments","noComments"]),t,"h").w(' </div><div id="errorComments" class="empty-comments hide"> ').f(t.getPath(!1,["wizComments","somethingWrong"]),t,"h").w(' </div></div><div id="commentsLoading"><div class="color-loading"><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><span> ').f(t.getPath(!1,["wizComments","loadingComments"]),t,"h").w(' </span></div></div><div class="modal-backdrop"><div id="signupLoginContainer" class="signup-login-container"></div></div>')}function i(e,t){return e.w('<div class="comments-title-section"><span class="comments-title"><span class="comments-title-header"> ').f(t.getPath(!1,["wizComments","comments"]),t,"h").w(' </span><span class="comment-counter" id="commentCounter"> 00 </span></span></div>')}function a(e,t){return e.w('<div class="record-video-btn video-record pull-left hide" id="recordVideoBtn"><div tooltip="').f(t.getPath(!1,["wizComments","videoAnnotation"]),t,"h").w('" tooltip-position="right"><img class="cm-video-ico" src="/svg/comment-create-video.svg" alt="Video" /></div></div>')}e.register("templates/wiz/comments",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/wiz/comments",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},4681:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.s(t.get(["comments_and_replies"],!1),t,{block:i},{isAdmin:t.get(["is_admin"],!1),isAssetOwner:t.get(["is_asset_owner"],!1)})}function i(e,t){return e.w('<div class="comments-and-replies all-comments ').x(t.get(["is_hidden"],!1),t,{block:a},{}).w('" id=').f(t.get(["comment_id"],!1),t,"h").w('><div class="comment-row">').h("eq",t,{else:s,block:o},{key:t.get(["prof_pic"],!1),value:"avatar"},"h").w('<span class="comment-video-time"> ').h("getFormattedTime",t,{block:c},{time:t.get(["video_time"],!1)},"h").w(' </span><div class="comment-box"><div class="comment-content"><p class="commenter-email">').h("eq",t,{else:u,block:h},{key:t.get(["user_name"],!1),value:""},"h").w('<span class="comment-time" style="margin-left: 15px;">- ').f(t.get(["time"],!1),t,"h").w(' </span><span class="pull-right hidden-comment-text ').nx(t.get(["is_hidden"],!1),t,{block:p},{}).w('"> ').f(t.getPath(!1,["wizComments","commentsHidden"]),t,"h").w(' </span></p><p class="comment actual-comment"> ').h("renderComment",t,{block:m},{comment:t.get(["comment"],!1)},"h").w(' </p></div></div><div class="comment-reply comment-actions"><div class="reply-image"></div><span> ').f(t.getPath(!1,["wizComments","reply"]),t,"h").w(" </span></div>").x(t.get(["is_logged_in_user"],!1),t,{block:v},{}).nx(t.get(["isDeliveryPage"],!1),t,{block:g},{}).w("</div>").p("templates/wiz/comments_reply",t,t,{}).w("</div>")}function a(e,t){return e.w(" comment-dull ")}function s(e,t){return e.w('<img class="commenter-photo pull-left" src=').f(t.get(["prof_pic"],!1),t,"h").w(' alt="user-img" />')}function o(e,t){return e.w('<div class="commenter-photo pull-left commenter-name"><div>').h("eq",t,{else:n,block:r},{key:t.get(["user_name"],!1),value:""},"h").w("</div></div>")}function n(e,t){return e.h("getFirstLetter",t,{block:l},{name:t.get(["user_name"],!1)},"h")}function l(e,t){return e.w(" ")}function r(e,t){return e.h("getFirstLetter",t,{block:d},{name:t.get(["user_email"],!1)},"h")}function d(e,t){return e.w(" ")}function c(e,t){return e.w(" ")}function u(e,t){return e.f(t.get(["user_name"],!1),t,"h")}function h(e,t){return e.f(t.get(["user_email"],!1),t,"h")}function p(e,t){return e.w(" hide ")}function m(e,t){return e.w(" ")}function v(e,t){return e.w('<div class="comment-edit comment-actions"><div class="edit-icon"></div></div>')}function g(e,t){return e.x(t.get(["isAdmin"],!1),t,{else:f,block:k},{})}function f(e,t){return e.x(t.get(["isAssetOwner"],!1),t,{block:b},{})}function b(e,t){return e.w('<div class="comment-hide comment-actions ').x(t.get(["is_hidden"],!1),t,{block:w},{}).w('"><div class="hider ').x(t.get(["is_hidden"],!1),t,{else:y,block:_},{}).w('"></div></div>')}function w(e,t){return e.w(" comment-hidden ")}function y(e,t){return e.w(" hide-icon ")}function _(e,t){return e.w(" unhide-icon ")}function k(e,t){return e.w('<div class="comment-hide comment-actions ').x(t.get(["is_hidden"],!1),t,{block:C},{}).w('"><div class="hider ').x(t.get(["is_hidden"],!1),t,{else:P,block:T},{}).w('"></div></div>')}function C(e,t){return e.w(" comment-hidden ")}function P(e,t){return e.w(" hide-icon ")}function T(e,t){return e.w(" unhide-icon ")}e.register("templates/wiz/comments_render",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,y.__dustBody=!0,_.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,P.__dustBody=!0,T.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/wiz/comments_render",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},22745:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w(" ").s(t.get(["replies"],!1),t,{block:i},{isAdmin:t.get(["is_admin"],!1),isAssetOwner:t.get(["is_asset_owner"],!1)}).x(t.get(["has_more_replies"],!1),t,{block:P},{})}function i(e,t){return e.w('<div class="reply-comments"><div class="comment-row ').x(t.get(["is_hidden"],!1),t,{block:a},{}).w('" id=').f(t.get(["reply_id"],!1),t,"h").w(">").h("eq",t,{else:s,block:o},{key:t.get(["prof_pic"],!1),value:"avatar"},"h").w('<div class="comment-box"><div class="comment-content"><p class="commenter-email">').h("eq",t,{else:c,block:u},{key:t.get(["user_name"],!1),value:""},"h").w('<span class="comment-time" style="margin-left: 15px;">- ').f(t.get(["time"],!1),t,"h").w(' </span></p><p class="comment reply-comment"> ').h("renderComment",t,{block:h},{comment:t.get(["reply"],!1)},"h").w(" </p></div></div>").x(t.get(["is_logged_in_user"],!1),t,{block:p},{}).nx(t.get(["isDeliveryPage"],!1),t,{block:m},{}).w("</div></div>")}function a(e,t){return e.w(" reply-dull ")}function s(e,t){return e.w('<img class="commenter-photo pull-left" src=').f(t.get(["prof_pic"],!1),t,"h").w(' alt="user-img" />')}function o(e,t){return e.w('<div class="commenter-photo pull-left commenter-name"><div>').h("eq",t,{else:n,block:r},{key:t.get(["user_name"],!1),value:""},"h").w("</div></div>")}function n(e,t){return e.h("getFirstLetter",t,{block:l},{name:t.get(["user_name"],!1)},"h")}function l(e,t){return e.w(" ")}function r(e,t){return e.h("getFirstLetter",t,{block:d},{name:t.get(["user_email"],!1)},"h")}function d(e,t){return e.w(" ")}function c(e,t){return e.f(t.get(["user_name"],!1),t,"h")}function u(e,t){return e.f(t.get(["user_email"],!1),t,"h")}function h(e,t){return e.w(" ")}function p(e,t){return e.w('<div class="reply-edit comment-actions"><div class="edit-icon"></div></div>')}function m(e,t){return e.x(t.get(["isAdmin"],!1),t,{else:v,block:y},{})}function v(e,t){return e.x(t.get(["isAssetOwner"],!1),t,{block:g},{})}function g(e,t){return e.w('<div class="reply-hide comment-actions ').x(t.get(["is_hidden"],!1),t,{block:f},{}).w('"><div class="hider ').x(t.get(["is_hidden"],!1),t,{else:b,block:w},{}).w('"></div></div>')}function f(e,t){return e.w(" reply-hidden ")}function b(e,t){return e.w(" hide-icon ")}function w(e,t){return e.w(" unhide-icon ")}function y(e,t){return e.w('<div class="reply-hide comment-actions ').x(t.get(["is_hidden"],!1),t,{block:_},{}).w('"><div class="hider ').x(t.get(["is_hidden"],!1),t,{else:k,block:C},{}).w('"></div></div>')}function _(e,t){return e.w(" reply-hidden ")}function k(e,t){return e.w(" hide-icon ")}function C(e,t){return e.w(" unhide-icon ")}function P(e,t){return e.w('<div class="reply-load-more" id="more-').f(t.get(["comment_id"],!1),t,"h").w('" data-nextstart=').f(t.get(["next_start"],!1),t,"h").w("> ").f(t.getPath(!1,["wizComments","showMoreReplies"]),t,"h").w(" </div>")}e.register("templates/wiz/comments_reply",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0,n.__dustBody=!0,l.__dustBody=!0,r.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,h.__dustBody=!0,p.__dustBody=!0,m.__dustBody=!0,v.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,y.__dustBody=!0,_.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,P.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/wiz/comments_reply",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},94955:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="large-11 columns large-centered player-theme-pop"><div class="medium-8 columns"><div class="player-theme-container"><div class="pt-thumbnail"><img src="/images/player-dummy-image.png"><div class="pt-main-controls"><span class="pt-final-plybtn pt-final-plybtn-click"><a class="pt-playthree pt-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="pt-playbtnpath" class="pt-playthreepath" d="M1,1.618034 L1,1.618034 L21.763932,12 L1,22.381966 L1,12 Z" id="Triangle2"></path></g></svg></a></span></div></div><div class="pt-controls clear-float"><div class="pt-playbtn-container pt-final-plybtn-click pt-btn-play-click"><a class="pt-solidply"><svg viewBox="0 0 17 24" width="17px" height="24px"><g stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" fill="#FFFFFF"><path class="pt-solidply1" d="M1,1 L1,1 1,11 16,11 16,11 Z"></path><path class="pt-solidply2" d="M1,11 L1,11 1,22 16,11 16,11 Z"></path></g></svg></a></div><div class="pt-duration-container"><div class="pt-end-time-container"><span class="pt-end-time">04:00</span><div class="pt-buffer-container"></div></div><div class="pt-current-time-container"><div class="pt-current-time-bg"></div></div></div><div class="pt-volume-container"><a class="pt-volumebtn" height="20px"><img src="/svg/volume.svg"><span class="pt-volume-curve"><i class="curve1"></i><i class="curve2"></i><i class="curve3"></i></span></a><div class="pt-volume-slider-wrapper"><div class="pt-volume-slider-container"><div class="pt-volume-slider"></div></div></div></div><div class="pt-settings-container"><span class="pt-settingsbtn-container"><a class="pt-settingsbtn"><img src="/svg/icon-settings.svg"></a></span></div><div class="pt-screensize-container"><a class="pt-screensizebtn"><i class="pt-ss1"></i><i class="pt-ss2"></i><i class="pt-ss3"></i><i class="pt-ss4"></i></a></div><div class="pt-logo-container"><a href="javascript:void()"><img src="').f(t.get(["staticImgDomain"],!1),t,"h").w('/svg/hippo-video-logo.svg"></a></div></div></div></div><div class="medium-4 columns"><div class="small-11 columns"><div class="color-pic"><input type=\'color\' name="color" id="flat" /></div><h4 class="restore-back"><a id="restoreDefaultThemeId">').f(t.getPath(!1,["brandingSetting","restoreDefaultTheme"]),t,"h").w('</a></h4></div></div></div><div class="large-11 columns large-centered text-right"><a id="playerThemeNextBtn" class="button wiz-primary-btn">').f(t.getPath(!1,["brandingSetting","set"]),t,"h").w('</a><a id="playerThemeCancelBtn" class="button cancel-btn">').f(t.getPath(!1,["brandingSetting","cancel"]),t,"h").w("</a></div>")}e.register("templates/wiz/setting/player_theme_pop",t),t.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/wiz/setting/player_theme_pop",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},11686:function(e,t,i){var a,s;a=[i(11329),i(68446)],void 0===(s=function(e,t){return function(e){function t(e,t){return e.w('<div class="large-4 medium-6 small-11 columns large-centered medium-centered small-centered login-panel clearfix"><div class="devise-panel clearfix"><div class="top-fix"><div class="close-icon"><a class="close-reveal-modal" id="closePopup" aria-label="Close">&#215;</a></div><div class="text-center"><img src="/img/hippo-wiz-icon-64.png" class="lgo-hippo-icon" /></div><div id="signupLoginOptionsSection"><div class="row popup-title"> ').f(t.getPath(!1,["wizComments","heyGuest"]),t,"h").w(' </div><div class="row message-container"><div class="small-12 columns text-center message">').nx(t.get(["is_paid_user"],!1),t,{block:i},{}).w('</div></div><div class="row text-center popup-footer">').nx(t.get(["is_paid_user"],!1),t,{block:a},{}).w('<div class="guest-section"><a id="guestLink" class="guest-link" style="').x(t.get(["is_paid_user"],!1),t,{block:s},{}).w('"> ').f(t.getPath(!1,["wizComments","continueGuest"]),t,"h").w(' </a><div id="guestSection" class="guest-name ').nx(t.get(["is_paid_user"],!1),t,{block:o},{}).w('"><div class="row message-container"><input type="text" class="small-10 large-3 medium-5 guest-name-box input-fields" placeholder="').f(t.getPath(!1,["wizComments","guestName"]),t,"h").w('" id="guestUserName" autofocus=true/><button id="postAsGuest" class="secondary-btn wiz-btn-space radius"> ').f(t.getPath(!1,["wizComments","continue"]),t,"h").w(' </button></div></div></div></div></div><div id="signupSection" class="hide"><div class="large-8 medium-9 small-10 columns large-centered medium-centered clearfix"><div class="small-12 columns new-sign-up-div"><div class="error-message hide" id="errorMessage"></div><form id="signupForm" onsubmit="return false"><input type="email" placeholder="').f(t.getPath(!1,["wizComments","email"]),t,"h").w('" id="userEmail" autofocus=true/><input type="password" placeholder="').f(t.getPath(!1,["wizComments","passwordField"]),t,"h").w('" id="userPassword" /><span tooltip="').f(t.getPath(!1,["wizComments","autoGeneratedPassword"]),t,"h").w('" tooltip-position="right" class="pass-help"><img src="/img/help.png" class="pass-img-help"></span><div class="button-toolbar text-center"><button class="button wiz-primary-btn sign-form-btn-space" id="createAccount"> ').f(t.getPath(!1,["wizComments","signUpFree"]),t,"h").w(' </button><button class="sign-in-google" id="signupWithGoogle"><div class="google-logo-container"><img src="/img/btn_google_signin_light_normal_web@2x.png" alt="google" /></div></button><label class="tc-pp">').f(t.getPath(!1,["wizComments","signUpLink1"]),t,"h").w('<a href="https://www.hippovideo.io/terms_of_service.html" target="_blank">').f(t.getPath(!1,["wizComments","signUpLink2"]),t,"h").w("</a> ").f(t.getPath(!1,["wizComments","signUpLink3"]),t,"h").w(' <a href="https://www.hippovideo.io/privacy_policy.html" target="_blank">').f(t.getPath(!1,["wizComments","signUpLink4"]),t,"h").w('</a></label></div></form></div></div></div><div id="loginSection" class="hide"><div class="large-8 medium-9 small-10 columns large-centered medium-centered clearfix"><div class="small-12 columns new-sign-up-div"><div class="error-message hide" id="errorMessage"></div><form id="signinForm" onsubmit="return false"><input type="email" placeholder="').f(t.getPath(!1,["wizComments","email"]),t,"h").w('" id="loginEmail" /><input type="password" placeholder="').f(t.getPath(!1,["wizComments","password"]),t,"h").w('" id="loginPassword" /><div class="button-toolbar text-center"><button class="button wiz-primary-btn sign-form-btn-space" id="signInBtn"> ').f(t.getPath(!1,["wizComments","signIn"]),t,"h").w(' </button></div></form></div></div></div></div></div></div><script src="https://apis.google.com/js/api:client.js"><\/script>')}function i(e,t){return e.f(t.getPath(!1,["wizComments","commentSignUp"]),t,"h")}function a(e,t){return e.w('<button id="signupBtn" class="wiz-primary-btn radius"> ').f(t.getPath(!1,["wizComments","signUp"]),t,"h").w(' </button><span class="or-text"> ').f(t.getPath(!1,["wizComments","or"]),t,"h").w(' </span><button id="loginBtn" class="wiz-primary-btn radius"> ').f(t.getPath(!1,["wizComments","login"]),t,"h").w(" </button>")}function s(e,t){return e.w("display:none;")}function o(e,t){return e.w(" hide ")}e.register("templates/wiz/signup_login",t),t.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,o.__dustBody=!0}(e),function(t,i){var a;return e.render("templates/wiz/signup_login",t,(function(e,t){if("function"==typeof i)try{i(e,t)}catch(e){}if(e)throw e;a=t})),a}}.apply(t,a))||(e.exports=s)},38616:function(e,t,i){var a,s;a=[i(19755),i(13919),i(72316),i(65759),i(80300)],void 0===(s=function(e,t,i,a,s){"use strict";return s=s.default,i.Model.extend({initialize:function(){},url:function(){},parse:function(e){},addFacebookAccount:function(e,t,i){s.call({url:JSON.parse(a).addFacebookAccount,data:JSON.stringify(e),method:"POST",success:t,error:i})},uploadToFacebook:function(e,t,i,o){s.call({url:JSON.parse(a).createVideo+"/"+e+"/facebook_upload",data:JSON.stringify(t),method:"POST",success:i,error:o})},getFacebookPages:function(e,t,i){s.call({url:JSON.parse(a).fetchFacebookPages,data:{asset_id:e},method:"GET",success:t,error:i})},addGdriveAccount:function(e,t,i){s.call({url:JSON.parse(a).addGdriveAccount,data:e,method:"POST",success:t,error:i})},uploadToGDrive:function(e,t,i,o){s.call({url:JSON.parse(a).createVideo+"/"+e+"/gdrive_upload",data:t,method:"POST",success:i,error:o})},uploadToYoutube:function(e,t,i,o){s.call({url:JSON.parse(a).createVideo+"/"+e+"/youtube_upload",data:t,method:"POST",success:i,error:o})},uploadToVimeo:function(e,t,i,o){s.call({url:JSON.parse(a).createVideo+"/"+e+"/vimeo_upload",data:JSON.stringify(t),method:"POST",success:i,error:o})},getYoutubeChannels:function(e,t,i){console.log(JSON.parse(a).youtubeChannels),s.call({url:JSON.parse(a).youtubeChannels,data:e,method:"POST",success:t,error:i})},getGooogleAccounts:function(e,t,i){s.call({url:JSON.parse(a).getGoogleAccounts,data:JSON.stringify(e),async:!1,method:"POST",success:t,error:i})},vimeoPreUploadRequest:function(e,t,i){s.call({url:JSON.parse(a).vimeoPreUploadRequest,data:JSON.stringify(e),method:"POST",success:t,error:i})},getWistiaAccounts:function(e,t,i){s.call({url:JSON.parse(a).getWistiaAccounts,data:JSON.stringify(e),method:"POST",success:t,error:i})},addWistiaAccount:function(e,t,i){s.call({url:JSON.parse(a).addWistiaAccount,data:JSON.stringify(e),method:"POST",success:t,error:i})},uploadToWistia:function(e,t,i,o){s.call({url:JSON.parse(a).createVideo+"/"+e+"/wistia_upload",data:JSON.stringify(t),method:"POST",success:i,error:o})},shareToFacebook:function(e,t,i){s.call({url:JSON.parse(a).fbWorkplaceshare,data:JSON.stringify(e),method:"POST",cache:!1,dataType:"json",contentType:!1,processData:!1,success:t,error:i})},mailchimpConnect:function(e,t,i){s.call({url:JSON.parse(a).mailchimpConnect,data:JSON.stringify(e),method:"POST",success:t,error:i})},mailchimpSaveConfig:function(e,t,i){s.call({url:JSON.parse(a).mailchimpsaveConfig,method:"POST",data:e,success:t,error:i})},mailchimpDisconnect:function(e,t){s.call({url:JSON.parse(a).mailchimpDisconnect,method:"POST",success:e,error:t})},slackIntegrate:function(e,t,i){s.call({url:JSON.parse(a).slackIntegrate,data:JSON.stringify(e),method:"POST",success:t,error:i})},getSlackWorkspaces:function(e,t,i){s.call({url:JSON.parse(a).fetchSlackWorkspaces,data:"fetch_domain="+e,method:"GET",success:t,error:i})},revokeSlackToken:function(e,t,i){s.call({url:JSON.parse(a).slackRevoke,data:JSON.stringify(e),method:"POST",success:t,error:i})},postToSlack:function(e,t,i){s.call({url:JSON.parse(a).postToSlack,data:JSON.stringify(e),method:"POST",dataType:"json",success:t,error:i})},postFreshdesk:function(e,t,i,o,n){if("topic"===i)var l={topic:e};else l={solution:e};s.call({url:JSON.parse(a).shareToFreshdesk+t+"/"+i,data:JSON.stringify(l),method:"POST",cache:!1,dataType:"json",contentType:!1,processData:!1,success:o,error:n})},getDiscussionCategories:function(e,t){s.call({url:JSON.parse(a).discussionCategories,method:"GET",success:e,error:t})},getFolders:function(e,t,i,o){s.call({url:JSON.parse(a).freshdesk+e+"/"+t,method:"GET",success:i,error:o})},getSection:function(e,t,i,o){s.call({url:JSON.parse(a).getZendeskSection+e+"/"+t,method:"GET",success:i,error:o})},postZendesk:function(e,t,i,o,n){if("section"===i)var l=JSON.parse(a).zendeskArticle+t,r={article:e};else l=JSON.parse(a).zendeskTopics,r={post:e};console.log("jsonData",r),r[""],s.call({url:l,data:JSON.stringify(r),method:"POST",cache:!1,dataType:"json",contentType:!1,processData:!1,success:o,error:n})},saveGuestRecordDetails:function(e,t,i,o){s.call({url:JSON.parse(a).saveGuestRecordDetails+"/"+t,data:JSON.stringify(e),method:"POST",cache:!1,dataType:"json",contentType:!1,processData:!1,success:i,error:o})},saveTestimonialRecordDetails:function(e,t,i,o){s.call({url:JSON.parse(a).saveTestimonialRecordDetails+"/"+t,data:JSON.stringify(e),method:"POST",cache:!1,dataType:"json",contentType:!1,processData:!1,success:i,error:o})},getPrivacySetting:function(e,t,i){s.call({url:JSON.parse(a).getPrivacySetting+"/"+e,method:"GET",success:t,error:i})},savePrivacySetting:function(e,t,i,o){s.call({url:JSON.parse(a).createVideo+"/"+e+"/set_privacy",data:JSON.stringify(t),method:"POST",success:i,error:o})},isAllowDelete:function(e,t,i,o,n){var l=JSON.parse(a).isDeleteAllowed;null!=t&&(l+="/"+t);var r=new FormData;r.append("asset_ids",e),r.append("contains_image_asset",i),s.call({url:l,data:r,method:"POST",contentType:!1,processData:!1,success:o,error:n})},getAssignmentToken:function(e,t,i){s.call({url:JSON.parse(a).createVideo+"/"+e+"/get_assignment_token",method:"GET",success:t,error:i})}})}.apply(t,a))||(e.exports=s)},81693:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return Gt}}),i(12419);var a=i(15671),s=i(43144),o=i(60136),n=i(82963),l=i(61120),r=(i(82526),i(41817),i(73210),i(74916),i(15306),i(9653),i(92222),i(26699),i(32023),i(69826),i(41539),i(54747),i(40561),i(13919)),d=i(72316),c=i.n(d),u=i(83958),h=i(42152),p=i.n(h),m=i(60112),v=i.n(m),g=i(12352),f=i(85614),b=i.n(f),w=i(45925),y=i.n(w),_=i(38482),k=i.n(_),C=i(2692),P=i(952),T=i.n(P),S=i(78059),x=(i(66992),i(78783),i(33948),i(60285),i(41637),i(47042),i(86435)),A=i.n(x),I=i(73368),B=i.n(I),E=i(97081),L=i.n(E),V=(i(68309),i(51532),i(23123),i(88674),i(17727),i(91058),i(39714),i(19755)),R=i.n(V),N=i(4681),F=i.n(N),O=i(82379),D=i.n(O),M=i(22745),U=i.n(M),z=i(67581),G=i.n(z),H=i(11686),$=i.n(H),j=i(80300),q=i(19755),W=i(13919);var J=function(e){(0,o.Z)(d,e);var t,i,r=(t=d,i=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}}(),function(){var e,a=(0,l.Z)(t);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(a,arguments,s)}else e=a.apply(this,arguments);return(0,n.Z)(this,e)});function d(){return(0,a.Z)(this,d),r.apply(this,arguments)}return(0,s.Z)(d,[{key:"initialize",value:function(e){this.loggedInStatus=!1,this.authToken="",this.userEmail="",this.isPaidPlan=e.isPaidPlan,this.render(),q("#signupBtn").bind("click",{context:this},this.openSignupSection),q("#loginBtn").bind("click",this.openLoginSection),q("#signInBtn").bind("click",{context:this},this.performSignIn),q("#createAccount").bind("click",{context:this},this.performSignUp),q("#guestLink").bind("click",this.openGuestSection)}},{key:"render",value:function(){q("#signupLoginContainer").empty(),q("#signupLoginContainer").append($()(W.extend(G(),{is_paid_user:this.isPaidPlan})))}},{key:"openSignupSection",value:function(e){var t,i=e.data.context;q("#signupLoginOptionsSection").addClass("hide"),q("#signupSection").removeClass("hide"),gapi.load("auth2",(function(){var e={cookiepolicy:"single_host_origin"};window.location.hostname.includes("localhost")||window.location.hostname.includes("stage")?e.client_id="545792173243-j7c0qsehnht1ncch7hdjpdhh8oqmkitt.apps.googleusercontent.com":e.client_id="989612280692-8vs3vmbppgd16ijvnk7uf4nrg3404tqv.apps.googleusercontent.com",t=gapi.auth2.init(e);var a=document.getElementById("signupWithGoogle");t.attachClickHandler(a,{},(function(e){var t={userName:e.getBasicProfile().getName(),email:e.getBasicProfile().getEmail(),refresh_token:e.getAuthResponse(!0).access_token};i.completeSignUp(t,!0)}),(function(e){console.log("Error logging in with Google!")}))})),e.preventDefault()}},{key:"openLoginSection",value:function(e){q("#signupLoginOptionsSection").addClass("hide"),q("#loginSection").removeClass("hide")}},{key:"openGuestSection",value:function(e){q("#guestSection, #guestLink").toggleClass("hide")}},{key:"performSignIn",value:function(e){var t={email:q("#loginEmail").val(),password:q("#loginPassword").val()},i=e.data.context;j.default.call({data:t,url:"/api/sign_in.json",method:"POST"}).done((function(e){var t=e.success,a=e.message;a=a||e.error_msg,t?(i.loggedInStatus=!0,i.authToken=e.authentication_token,i.userEmail=e.email):q("#loginSection #errorMessage").removeClass("hide").text(a)})).fail((function(e){q("#loginSection #errorMessage").removeClass("hide").text(e.message||VideoI18N.wizComments.wentWrong),console.log("failed")})),e.preventDefault()}},{key:"performSignUp",value:function(e){var t={email:q("#userEmail").val(),password:q("#userPassword").val()||""},i=e.data.context;q("#createAccount").addClass("disabled-signup-btn"),i.completeSignUp(t,!1),e.preventDefault()}},{key:"completeSignUp",value:function(e,t){var i=this;e.referer_url="comments_delivery",e.time_zone=Intl.DateTimeFormat().resolvedOptions().timeZone;var a=t?"/api/internal/chrome_signup.json":"/api/sign_up.json";j.default.call({data:e,url:a,method:"POST"}).done((function(e){var t=e.status,a=e.error;if(t){var s=e.user_obj;i.loggedInStatus=!0,i.authToken=s.authentication_token,i.userEmail=s.email}else q("#createAccount").removeClass("disabled-signup-btn"),q("#signupSection #errorMessage").removeClass("hide").text(a)})).fail((function(e){q("#createAccount").removeClass("disabled-signup-btn"),q("#signupSection #errorMessage").removeClass("hide").text(error.message||VideoI18N.wizComments.wentWrong),console.log("failed")}))}}]),d}(c().View),Z=i(11329),Q=i.n(Z);var Y=function(e){(0,o.Z)(c,e);var t,i,d=(t=c,i=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}}(),function(){var e,a=(0,l.Z)(t);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(a,arguments,s)}else e=a.apply(this,arguments);return(0,n.Z)(this,e)});function c(){return(0,a.Z)(this,c),d.apply(this,arguments)}return(0,s.Z)(c,[{key:"initialize",value:function(e){var t=this;Q().helpers.getFormattedTime=function(e,t,i,a){var s=a.time,o=u.default.strToTime(s);return o=o.slice(0,o.length-4),e.write(o)},Q().helpers.getFirstLetter=function(e,t,i,a){var s=a.name||"";return e.write(s.substring(0,1))},Q().helpers.renderComment=function(e,i,a,s){return e.write(t.getSanitizedCommentWithLink(s.comment||""))}}},{key:"initComments",value:function(e,t,i){var a=this,s=e.show_comments,o=e.show_reactions;this.showVideoComments=e.show_video_comments,this.assetId=e.asset_id,this.isPaidPlan=e.is_paid_user,this.guest_digest=e.guest_digest,this.playerTheme=e.player_theme,this.videoPlayerView=t,this.isDeliveryPage=i,this.esaDigest=e.esa_digest,this.isLoggedInUser=!1,this.shouldRefresh=!1,this.showLoginForGuest=!0,this.isAdmin=!1,this.isAssetOwner=!1,this.sortBy="created_at",this.reactionsData=null,this._upgradeAlertPopup=this._upgradeAlertPopup.bind(this),this.showFooter(),this.getUserInfo(),this.playerWidth=e.playerWidth,this.isPPR=e.isPPR,s&&(this.getCommentsList(),this.promoteComments(),this.initializeComments()),o&&(this.initializeReactionsListener(),setTimeout((function(){a.markReactionsOnPlayer(!0)}),3e3)),this.isPlayer2022=!1;try{this.isPlayer2022=HippoVideo.data.api.getProperty("isPlayer2022")}catch(e){}}},{key:"getUserInfo",value:function(){var e=this;R().ajax({url:"/api/internal/video/delivery/user_info",method:"GET",data:{esa_digest:this.esaDigest}}).then((function(t){e.loadCurrentUserInfo(t)})).fail((function(t){e.userInfo={},console.log("Failed to load user info")}))}},{key:"getCommentsList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,a=this.sortBy||"created_at",s=this.prepareParams(),o={sort_by:a};o.enable_comment=u.default.isQueryParamPresent(window.location.href,"show_comments"),this.makeNetworkRequest({data:r.default.extend(s,o,t),url:"/comments/index",method:"GET"}).then((function(t){i&&R()(".all-comments").remove(),e.loadComments(t)})).catch((function(e){console.log("Unable to fetch comments!",e),R()("#errorComments").removeClass("hide"),R()("#comments, #commentsLoading").toggleClass("hide")}))}},{key:"loadComments",value:function(e){var t=e||{},i=t.count;t.isDeliveryPage=this.isDeliveryPage,F()(r.default.extend(G(),t),(function(e,t){R()("#commentsList").append(R()(t))})),R()("#comments").removeClass("hide"),R()("#commentsLoading").addClass("hide"),R()("#commentCounter").text(i),0===i?(R()("#emptyComments").removeClass("hide"),R()(".comments-sort").addClass("hide"),R()("#commentsList").removeClass("custom-scroll"),this.openAddComment({},!0)):(R()("#emptyComments").addClass("hide"),R()(".comments-sort").removeClass("hide"),R()("#commentsList").addClass("custom-scroll"),u.default.isQueryParamPresent(window.location.href,"show_comments")&&this.openAddComment({},!0)),this.hasLoadMore=e.has_more_comments,this.nextLoadStart=e.next_start,this.isAssetOwner=e.is_asset_owner,this.isAdmin=e.is_admin,this.isCommentsEnabled=e.is_comments_enabled,this.setCommentStatus(),this.bindRedundantListeners(),this.playerTheme&&"#000000"!=this.playerTheme&&(R()(".comment-box").attr("style","background:rgb(255,255,255) !important;border-color:rgb(210, 210, 210);"),R()(".reply-comments").find(".comment-box").attr("style","background:rgb(246, 246, 246 !important;"),R()(".commenter-name").attr("style","background:rgb(255,255,255)"),R()(".comment-actions").attr("style","border-color:rgb(210, 210, 210)"),R()(".comment-actions").find("span").attr("style","color:rgb(110, 187, 203)"),R()(".comment-actions").find(".reply-image").attr("style","background-image:url(/svg/reply-58b0c3.svg)"),R()(".comment-actions").find(".edit-icon").attr("style","background-image:url(/svg/edit-58b0c3.svg)"))}},{key:"initializeComments",value:function(){var e=this;this.toggleCommentsStatus=this.toggleCommentsStatus.bind(this),this.proceedWithGuestLogin=this.proceedWithGuestLogin.bind(this),this.openAddComment=this.openAddComment.bind(this),this.handleCallbackFromPlayer=this.handleCallbackFromPlayer.bind(this),R()("#addNewComment").on("click",this.openAddComment),R()("#addComment").on("click",{context:this},this.postComment),R()("#sortByRecent").on("click",{context:this,sortBy:"created_at"},this.sortComments),R()("#sortByTimeline").on("click",{context:this,sortBy:"video_time"},this.sortComments),R()("#commentsList").on("scroll",{context:this},this.checkScrollEnd),R()("#cancelAddComment").on("click",{context:this},this.closeAddComment),this.bindRedundantListeners(),this.bindVideoCommentListener(),this.isDeliveryPage&&setTimeout((function(){e.markCommentsOnPlayer()}),3e3)}},{key:"bindRedundantListeners",value:function(){R()(".comment-reply").off("click").on("click",{context:this},this.openReplyComment),R()(".comment-edit").off("click").on("click",{context:this},this.openEditComment),R()(".reply-edit").off("click").on("click",{context:this},this.openEditReply),R()(".comment-hide").off("click").on("click",{context:this},this.toggleCommentHide),R()(".reply-hide").off("click").on("click",{context:this},this.toggleReplyHide),R()(".comment-video-time").off("click").on("click",{context:this},this.gotoTimeInVideo),R()(".reply-load-more").off("click").on("click",{context:this},this.loadMoreReplies)}},{key:"bindVideoCommentListener",value:function(){R()(".record-video").off("click").on("click",{context:this},this.startVideoCommentRecording),R()(".record-options-group").off("click").on("click",this.recordOptionsClicked),this.showVideoComments?R()(".record-video-btn").off("click").on("click",this.showVideoRecordOptions):R()(".record-video-btn").off("click").on("click",this._upgradeAlertPopup),R()(".cancel-record-video-options").off("click").on("click",this.cancelVideoRecordOptions)}},{key:"_upgradeAlertPopup",value:function(){g.default._upgradeAlertPopup()}},{key:"initializeReactionsListener",value:function(){var e=this,t=this.videoPlayerView;t.mediaPlayer.addEventListener("play",(function(){clearInterval(e.schedulerId);var i=e;e.schedulerId=setInterval((function(){var e=Math.round(10*t.mediaPlayer.currentTime)/10;i.reactionsData&&i.reactionsData.has(e)&&(R()('[reaction_time="'+e+'"]').addClass("react-emoji"),R()('[reaction_time="'+e+'"]').css("display","inline-block"),setTimeout((function(){R()('[reaction_time="'+e+'"]').removeClass("react-emoji")}),3e3))}),100)}),!1),R()(".react-now-play").on("click",{context:this},this.handleReactionsCallbackFromPlayer),t.mediaPlayer.addEventListener("pause",(function(){clearInterval(e.schedulerId)}),!1)}},{key:"markCommentsOnPlayer",value:function(){var e=this.prepareParams(),t=this.videoPlayerView.mediaPlayer.duration;this.makeNetworkRequest({url:"/comments/fetch_comment_ids",data:e,method:"GET"}).then((function(e){var i=e.video_time_and_ids||[];for(var a in i){var s=document.createElement("span");s.className="comment-marker",s.id="".concat(a,"-").concat(i[a]),s.style.left="".concat(Math.ceil(100/t*a),"%"),R()(".player-progress").append(s)}})).catch((function(e){}))}},{key:"markReactionsOnPlayer",value:function(e,t,i){var a=this;if(this.isDeliveryPage||e){var s;s=t?{asset_id:t}:{token:decodeURIComponent(this.videoPlayerView.token)};var o,n=i;i||(n=this.videoPlayerView.mediaPlayer.duration),this.makeNetworkRequest({url:"/reactions/index",data:s,method:"GET"}).then((function(e){g.default.trackInThirdPartyTools("Reactions disyed on load",{email:a.userInfo.user_email||""});var t=(e||[]).reactions,i=new Map;t.forEach((function(e){o=Math.ceil(100/n*e.video_time/10);var t=e.video_time/10;i.set(t,e),R()(".notification-line").append("<div class='emoji-div' style='margin-left:".concat(o,"%'><img src='/svg/emoji-type-").concat(e.reaction_type,".svg' reaction_id='").concat(e.reaction_type,"' width='15'></div>")),R()(".notification-line-onplay").append("<div class='emoji-div-onplay' reaction_time='".concat(t,"' style='margin-left:").concat(o,"%;display:none'><img class=\"\" src='/svg/emoji-type-").concat(e.reaction_type,".svg' reaction_id='").concat(e.reaction_type,"' width='15'></div>"))})),a.reactionsData=i})).catch((function(e){console.log("Reaction marking error!"+e),g.default.trackInThirdPartyTools("Error while loading reactions",{email:a.userInfo.user_email||""})}))}}},{key:"loadCurrentUserInfo",value:function(e){var t=e.prof_pic,i=e.user_name||e.user_email;if(this.isLoggedInUser="nil"!==e.user_email,this.isEsaUser=e.esa_mail_id||e.esa_user_name,!this.isLoggedInUser&&this.isEsaUser&&(i=e.esa_mail_id?e.esa_mail_id:e.esa_user_name,this.showLoginForGuest=!1,this.guestUserName=i),this.showVideoComments,"avatar"!==t)R()("#profilePic").attr("src",t).removeClass("hide"),R()("#fallBackProfilePic").addClass("hide");else{var a=document.createElement("div");a.innerText=i.substring(0,1),a.className="guest-name-dp",R()("#fallBackProfilePic").append(a).removeClass("hide"),R()("#profilePic").addClass("hide")}R()("#displayName").text(i),e.user_name=i,this.userInfo=e}},{key:"openAddComment",value:function(e,t){var i,a,s,o;null!==(i=this.videoPlayerView)&&void 0!==i&&i.playing&&!t&&this.videoPlayerView._handlePlayPauseBtnClick();var n=(e.canvasTime?e.canvasTime:null===(a=this.videoPlayerView)||void 0===a?void 0:a.getCurrentTime())||0;n=n>(null===(s=this.videoPlayerView)||void 0===s?void 0:s.mediaPlayer.duration)?null===(o=this.videoPlayerView)||void 0===o?void 0:o.mediaPlayer.duration:n;var l=u.default.strToTime(n)||0;R()("#newCommentTime").text(l.slice(0,l.length-4)),window.location.href.includes("/video/embed/")&&parent.postMessage({type:"hv_add_new_comment",msgData:{currentPlayerTime:n,commentDisplayTime:l.slice(0,l.length-4)}},"*"),R()("#newCommentSection").slideDown(),this.currentCommentTime=n,this.stopPromotingComments(),t||(R()("#commentsList").scrollTop(0),R()("#userComment").val("").focus())}},{key:"openReplyComment",value:function(e){var t=e.data.context,i=R()("#newCommentSection").clone()||[],a=e.target.closest(".comment-row");R()(".reply-comment-section").remove(),R()(".comment-reply").removeClass("hide"),i.addClass("reply-comment-section"),i[0].id="newReplyCommentSection",(i.find("#addComment")||[])[0].id="addReplyComment",(i.find("#cancelAddComment")||[])[0].id="cancelReplyComment",(i.find("#userComment")||[])[0].id="userReplyComment",(i.find("#newCommentTime")||[])[0].remove(),i.insertAfter(a),R()("#newReplyCommentSection").slideDown(),R()(a).find(".comment-reply").addClass("hide"),R()("#cancelReplyComment").on("click",t.closeReplyComment),R()("#addReplyComment").on("click",{context:t},t.postReplyComment),R()("#userReplyComment").val("").focus(),t.bindVideoCommentListener(),t.stopPromotingComments()}},{key:"openEditComment",value:function(e){var t=e.data.context,i=R()("#newCommentSection").clone()||[],a=e.target.closest(".comments-and-replies"),s=a.id,o=document.createElement("input");o.type="hidden",o.value=s,o.id="editCommentIdValue",R()(".edit-comment-section").remove(),R()(".comments-and-replies").removeClass("hide"),i.addClass("edit-comment-section"),i[0].id="editCommentSection",(i.find("#addComment")||[])[0].id="saveEditComment",(i.find("#cancelAddComment")||[])[0].id="cancelEditComment",(i.find("#userComment")||[])[0].id="editCommentText",(i.find("#newCommentTime")||[])[0].remove(),i.append(o),i.insertAfter(a),R()("#editCommentText").val(R()(a).find(".actual-comment").text()),R()("#".concat(s)).addClass("hide"),R()("#editCommentSection").slideDown(),R()("#cancelEditComment").on("click",t.closeEditComment),R()("#saveEditComment").on("click",{context:t},t.postEditComment),t.bindVideoCommentListener()}},{key:"openEditReply",value:function(e){var t=e.data.context,i=R()("#newCommentSection").clone()||[],a=e.target.closest(".comments-and-replies"),s=e.target.closest(".comment-row"),o=s.id,n=a.id,l=document.createElement("input");l.type="hidden",l.value="".concat(n,",").concat(o),l.id="editReplyIdValue",R()(".edit-reply-section").remove(),i.addClass("edit-reply-section"),i[0].id="editReplySection",(i.find("#addComment")||[])[0].id="saveEditReply",(i.find("#cancelAddComment")||[])[0].id="cancelEditReply",(i.find("#userComment")||[])[0].id="editReplyText",(i.find("#newCommentTime")||[])[0].remove(),i.append(l),i.insertAfter(s),R()("#editReplyText").val(R()(s).find(".reply-comment").text()),R()("#".concat(o)).addClass("hide"),R()("#editReplySection").slideDown(),R()("#cancelEditReply").on("click",t.closeEditReply),R()("#saveEditReply").on("click",{context:t},t.postEditReply),t.bindVideoCommentListener()}},{key:"postComment",value:function(e){var t=e.data.context,i=t.shouldRefresh,a=t.showLoginForGuest,s=t.guestUserName,o=t.isLoggedInUser,n=t.isAdmin,l=t.isAssetOwner,d=R()("#userComment").val(),c=t.currentCommentTime,h=t.prepareParams(),p={comment:d,video_time:c,data_digest:document.location.pathname.split(/[/ ]+/).pop()};if(!o&&a)return t.showLoginPopup(t),void(t.isReply=!1);o||(h.user_name=s),i&&(h.authentication_token=t.authToken,h.email=t.userEmail),u.default.isQueryParamPresent(window.location.href,"show_comments")&&(h.enable_comment=!0),R()(".comment-prim-btn").attr("disabled","disabled"),g.default.trackInThirdPartyTools("video_preview_Post_comments".concat(this.isPPR?"_isPPR":"")),t.makeNetworkRequest({data:r.default.extend(h,p),url:"/comments/create",method:"POST"}).then((function(e){var a=[],d=t.userInfo||{},c=parseInt(R()("#commentCounter").text())||0;if(R()("#commentCounter").text(c+1),h.user_name=o?d.user_name:s,h.prof_pic=d.prof_pic,h.time="Now",h.comment_id=e.comment_id,h.isDeliveryPage=t.isDeliveryPage,a.push(h),F()(r.default.extend(G(),{comments_and_replies:a,is_logged_in_user:o,is_admin:n,is_asset_owner:l}),(function(e,t){R()(t).insertAfter(R()("#newCommentSection"))})),R()("#newCommentSection").slideUp(),R()("#emptyComments").addClass("hide"),R()(".comments-sort").removeClass("hide"),R()("#commentsList").addClass("custom-scroll"),u.default.showBannerAlert(e.message,2e3),t.bindRedundantListeners(),i)return window.location.reload(),void R()("#newCommentSection").slideUp()})).catch((function(e){u.default.showBannerAlert(e.message||"Something went wrong!",2e3)})).finally((function(){R()(".comment-prim-btn").removeAttr("disabled")})),R()("#addNewComment").show()}},{key:"postReplyComment",value:function(e){var t=e.data.context,i=t.shouldRefresh,a=t.showLoginForGuest,s=t.guestUserName,o=t.isLoggedInUser,n=t.isAssetOwner,l=t.isAdmin,d=R()("#userReplyComment").val(),c=e.target.closest(".comments-and-replies"),h=c.parentElement.id,p=t.prepareParams(),m={comment_id:h,reply:d,user_name:"Guest",data_digest:document.location.pathname.split(/[/ ]+/).pop()};if(!o&&a)return t.showLoginPopup(t),void(t.isReply=!0);o||(m.user_name=s),i&&(m.authentication_token=t.authToken,m.email=t.userEmail),R()(".comment-prim-btn").attr("disabled","disabled"),t.makeNetworkRequest({data:r.default.extend(m,p),url:"/reply/create",method:"POST"}).then((function(e){var a=[],r=t.userInfo||{};if(m.user_name=o?r.user_name:s,m.prof_pic=r.prof_pic,m.time="Now",m.reply_id=e.reply_id,a.push(m),U()({replies:a,is_logged_in_user:o,is_admin:l,is_asset_owner:n},(function(e,t){R()(c.parentElement).append(R()(t))})),R()("#newReplyCommentSection").slideUp(),R()(".comment-reply").removeClass("hide"),u.default.showBannerAlert(e.message,2e3),t.bindRedundantListeners(),i)return window.location.reload(),void R()("#newReplyCommentSection").slideUp()})).catch((function(e){u.default.showBannerAlert(e.message||"Something went wrong!",2e3),console.log("Reply Adding Failed!")})).finally((function(){R()(".comment-prim-btn").removeAttr("disabled")}))}},{key:"postEditComment",value:function(e){var t=e.data.context,i=R()("#editCommentText").val(),a=R()("#editCommentIdValue").val(),s=t.prepareParams(),o={comment:i,comment_id:a};R()(".comment-prim-btn").attr("disabled","disabled"),t.makeNetworkRequest({data:r.default.extend(o,s),url:"/comments/update",method:"POST"}).then((function(e){i=t.getSanitizedCommentWithLink(i),R()("#".concat(a)).find(".actual-comment").html(i),R()("#".concat(a)).removeClass("hide"),R()("#editCommentSection").slideUp(),u.default.showBannerAlert(e.message,2e3)})).catch((function(e){u.default.showBannerAlert(e.message||"Something went wrong!",2e3),console.log("Comment Update Failed!")})).finally((function(){R()(".comment-prim-btn").removeAttr("disabled")}))}},{key:"postEditReply",value:function(e){var t=e.data.context,i=R()("#editReplyText").val(),a=R()("#editReplyIdValue").val()||"",s=(a.split(",")[0],a.split(",")[1]),o=t.prepareParams(),n={reply:i,reply_id:s};R()(".comment-prim-btn").attr("disabled","disabled"),t.makeNetworkRequest({data:r.default.extend(n,o),url:"/reply/update",method:"POST"}).then((function(e){i=t.getSanitizedCommentWithLink(i),R()("#".concat(s)).find(".reply-comment").html(i),R()("#".concat(s)).removeClass("hide"),R()("#editReplySection").slideUp(),u.default.showBannerAlert(e.message,2e3)})).catch((function(e){u.default.showBannerAlert(e.message||"Something went wrong!",2e3),console.log("Reply Update Failed!")})).finally((function(){R()(".comment-prim-btn").removeAttr("disabled")}))}},{key:"closeAddComment",value:function(e){g.default.trackInThirdPartyTools("video_preview_Cancel_comments".concat(this.isPPR?"_isPPR":""));var t=e.data.context;R()("#newCommentSection").slideUp(),R()("#userComment").val().includes("www.hippovideo.io/video/play/")&&g.default.trackInThirdPartyTools("Comment box with video url is cancelled without posting it",{email:t.userInfo.user_email||""}),R()("#addNewComment").show()}},{key:"closeReplyComment",value:function(e){R()("#newReplyCommentSection").slideUp("fast",(function(){R()(".reply-comment-section").remove(),R()(".comment-reply").removeClass("hide")})),R()(this).unbind(e)}},{key:"closeEditComment",value:function(e){var t=R()("#editCommentIdValue").val();R()("#editCommentSection").slideUp("fast",(function(){R()("#".concat(t)).removeClass("hide"),R()(".edit-comment-section").remove()})),R()(this).unbind(e)}},{key:"closeEditReply",value:function(e){var t=R()("#editReplyIdValue").val()||"";R()("#editReplySection").slideUp("fast",(function(){R()("#".concat(t.split(",")[1])).removeClass("hide"),R()(".edit-reply-section").remove()})),R()(this).unbind(e)}},{key:"sortComments",value:function(e){var t=e.data,i=t.context,a=t.sortBy;i.sortBy!==a&&(R()("#sortByRecent, #sortByTimeline").toggleClass("active-button"),R()("#commentsLoading").toggleClass("hide"),i.sortBy=a,i.getCommentsList({},!0)),i.sortBy=a,i.stopPromotingComments()}},{key:"toggleCommentHide",value:function(e){var t=e.data.context,i=e.target.closest(".comment-hide"),a=R()(i).hasClass("comment-hidden")?"/comments/unhide":"/comments/hide",s=t.prepareParams(),o=e.target.closest(".comments-and-replies");s.comment_id=o.id,t.makeNetworkRequest({url:a,data:s,method:"POST"}).then((function(e){R()(i).toggleClass("comment-hidden"),R()(o).toggleClass("comment-dull"),R()(o).find(".hidden-comment-text").toggleClass("hide"),R()(o).find(".hider").toggleClass("hide-icon").toggleClass("unhide-icon"),u.default.showBannerAlert(e.message,2e3)})).catch((function(e){u.default.showBannerAlert(e.message,2e3)}))}},{key:"toggleReplyHide",value:function(e){var t=e.data.context,i=e.target.closest(".reply-hide"),a=R()(i).hasClass("reply-hidden")?"/replies/unhide":"/replies/hide",s=t.prepareParams(),o=e.target.closest(".comment-row");s.reply_id=o.id,t.makeNetworkRequest({data:s,url:a,method:"POST"}).then((function(e){R()(i).toggleClass("reply-hidden"),R()(o).toggleClass("reply-dull"),R()(o).find(".hider").toggleClass("hide-icon").toggleClass("unhide-icon"),u.default.showBannerAlert(e.message,2e3)})).catch((function(e){u.default.showBannerAlert(e.message,2e3)}))}},{key:"loadMoreReplies",value:function(e){var t=this,i=e.data.context,a=e.target,s=e.target.closest(".comments-and-replies"),o=i.prepareParams(),n=a.id.split("-")[1];o.next_start=a.dataset.nextstart,o.comment_id=n,n&&(R()(a).text("Loading...").css("pointer-events","none"),i.makeNetworkRequest({data:o,url:"/replies/index",method:"GET"}).then((function(e){R()(a).remove();var i={is_admin:t.isAdmin,is_asset_owner:t.isAssetOwner,comment_id:n};U()(r.default.extend(e,i),(function(e,t){R()(s).append(R()(t))}))})).catch((function(e){R()(a).text("show more replies").css("pointer-events","auto"),u.default.showBannerAlert(e.message,2e3)})))}},{key:"gotoTimeInVideo",value:function(e){var t=e.data.context,i=e.target,a=R()(i).text().trim()||"",s=(u.default.timeToInt(a)||1)-1;t.videoPlayerView.mediaPlayer.currentTime=s,t.videoPlayerView.play(),R()("html, body").scrollTop(0)}},{key:"showVideoRecordOptions",value:function(e){var t=e.target.closest(".comment-add-new");R()(t).find(".comment-box").addClass("card-turn-up")}},{key:"cancelVideoRecordOptions",value:function(e){var t=e?e.target.closest(".comment-add-new"):".comment-add-new";R()(t).find(".comment-box").removeClass("card-turn-up"),R()(".record-msg-container").text("")}},{key:"recordOptionsClicked",value:function(e){var t=e.target.closest(".record-option");R()(t).find(".checkbox-container").toggleClass("active-container").find(".tick-icon").toggleClass("hide"),R()(t).find(".option-image").toggleClass("hide")}},{key:"startVideoCommentRecording",value:function(e){var t=e.target.closest(".record-options-container"),i=R()(t).find(".record-option"),a={screenRecord:R()(i[0]).find(".checkbox-container").hasClass("active-container"),webCam:R()(i[1]).find(".checkbox-container").hasClass("active-container"),audio:R()(i[2]).find(".checkbox-container").hasClass("active-container"),resolution:"1080",tabRecording:!1,separateLayer:!1,fromPopup:!0,initiator:"generic_embed"};0===R()(".checkbox-container.active-container").length?R()(".record-msg-container").text("Please select an option to record"):(window.hippoWidget.startRecording(a),R()(e.target.closest(".comment-row")).find(".input-fields").addClass("video-url-textbox"))}},{key:"showLoginPopup",value:function(e){R()(".modal-backdrop")[0].style.display="block",e.signupLoginForm=new J({isPaidPlan:e.isPaidPlan}),e.startPollingForAction(),R()("#postAsGuest").off("click").on("click",e.proceedWithGuestLogin),R()("#closePopup").off("click").on("click",this.closeLoginSignupPop)}},{key:"proceedWithGuestLogin",value:function(){var e=R()("#guestUserName").val();this.guestUserName=e,this.showLoginForGuest=!1,this.closeLoginSignupPop(),R()("#displayName").text(e),R()(".guest-name-dp").text(e.substring(0,1)),this.isReply?R()("#addReplyComment").trigger("click"):R()("#addComment").trigger("click")}},{key:"closeLoginSignupPop",value:function(){R()(".modal-backdrop")[0].style.display="none",R()("#signupLoginFrameContainer").addClass("hide")}},{key:"startPollingForAction",value:function(){var e=this;clearTimeout(this.pollTimer),this.pollTimer=setInterval((function(){var t=e.signupLoginForm;t.loggedInStatus&&(clearInterval(e.pollTimer),e.closeLoginSignupPop(),e.isLoggedInUser=!0,e.shouldRefresh=!0,e.authToken=t.authToken,e.userEmail=t.userEmail,e.isReply?R()("#addReplyComment").trigger("click"):R()("#addComment").trigger("click"))}),500)}},{key:"checkScrollEnd",value:function(e){var t=e.data.context;R()("#commentsList").innerHeight()+R()("#commentsList").scrollTop()>=R()("#commentsList")[0].scrollHeight&&t.hasLoadMore&&(R()("#commentsLoading").removeClass("hide"),clearTimeout(t.loadMoreCommentsTimeout),t.loadMoreCommentsTimeout=setTimeout((function(){t.getCommentsList({next_start:t.nextLoadStart+1})}),500))}},{key:"initializeVideoComments",value:function(){var e=this;if(this.guest_digest){var t=g.default.getEnvironment(),i=document.createElement("script");"production"===t?i.src="https://s3.amazonaws.com/hippovideo-embed-widget/js/hippovideo-embed-script.js":"stage"===t?(window.hippovideoEnvironment="stage",i.src="https://s3.amazonaws.com/hippovideo-embed-widget-stage/js/hippovideo-embed-script.js"):(window.hippovideoEnvironment="development",i.src="http://localhost:3000/embedscript.js"),i.async=!0,window.setDigestOnStart=!0,window.hippovideoDigest=this.guest_digest,window.hvintegtype="generic_embed",window.hippoWidget={loadedCallbacks:[],isLoaded:!1,onLoad:function(e){1==window.hippoWidget.isLoaded?e():window.hippoWidget.loadedCallbacks.push(e)}},document.head.appendChild(i),R()("#recordVideoBtn").removeClass("hide");try{var a=window.hippoWidget||{};a.onLoad((function(){R()("#recordVideo").removeAttr("disabled"),a.on("record_initiated",(function(){R()(".record-msg-container").text("Recording Initiated"),R()(".record-video").attr("disabled","disabled"),g.default.trackInThirdPartyTools("Video comment creation attempted",{email:e.userInfo.user_email||""})})),a.on("record_started",(function(){R()(".record-msg-container").text("Recording Started")})),a.on("record_paused",(function(){R()(".record-msg-container").text("Recording Paused")})),a.on("record_resumed",(function(){R()(".record-msg-container").text("Recording Started")})),a.on("record_stopped",(function(){R()(".record-msg-container").text("Recording Stopped"),R()(".record-video").removeAttr("disabled")})),a.on("record_aborted",(function(){R()(".record-msg-container").text("Recording Aborted"),R()(".record-video").removeAttr("disabled"),console.log("Recording Aborted")})),a.on("video_submitted",(function(t){e.videoRecordComplete(t.recorded_url),console.log("Recording Completed URL: ",t.recorded_url),R()("#videoURL").removeClass("hide"),R()("#videoURL").find("input").val(t.recorded_url),R()(".record-video").removeAttr("disabled")})),a.on("record_error",(function(t){var i="Something Went wrong!";"extension_required"===t.error&&(i="Extension required for recording screen!"),R()(".record-msg-container").text(i),console.log("Record Error!",t),R()(".record-video").removeAttr("disabled"),u.default.postErrorsToLog({stackTrace:(t.error||"").toString(),email:e.userInfo.user_email})}))}))}catch(e){console.log("Unable to load Embed script!"),R()(".record-video").removeAttr("disabled")}}}},{key:"videoRecordComplete",value:function(e){var t=R()(".video-url-textbox").val()||"";R()(".video-url-textbox").val("".concat(t," Video Url is : ").concat(e)).removeClass("video-url-textbox"),this.cancelVideoRecordOptions(),g.default.trackInThirdPartyTools("Video comment created",{email:this.userInfo.user_email||""})}},{key:"showFooter",value:function(){R()(".footer-content").addClass("hide"),setTimeout((function(){R()(".footer-content").removeClass("hide")}),3e3)}},{key:"toggleCommentsStatus",value:function(e){this.isCommentsEnabled=e,this.setCommentStatus()}},{key:"setCommentStatus",value:function(){this.isDeliveryPage||(this.isCommentsEnabled?(R()("#commentsDisableWarning").addClass("hide"),R()(".comment-header, .comment-actions").removeClass("hide")):(R()("#commentsDisableWarning").removeClass("hide"),R()(".comment-header, .comment-actions, #emptyComments").addClass("hide"),R()("#cancelAddComment")[0].click()))}},{key:"promoteComments",value:function(){g.default._getCookie("commentsPromotionShown")&&this.isDeliveryPage&&R()(".arrow-mark").removeClass("hide")}},{key:"stopPromotingComments",value:function(){g.default.setLocalStorageValue("commentsPromotionShown",!0),R()(".arrow-mark").addClass("hide")}},{key:"handleCallbackFromPlayer",value:function(e){var t=R()("#canvasHoverTime").val(),i=this.videoPlayerView;i.playing&&i.pause(),this.isDeliveryPage||R()("#commentsMenu").trigger("click"),this.openAddComment({canvasTime:t}),console.log("callback handler called!")}},{key:"handleReactionsCallbackFromPlayer",value:function(e){var t,i,a;if(void 0===this.videoPlayerView||null===this.videoPlayerView){var s=e.data.context;i=s.videoPlayerView,a=s}else i=this.videoPlayerView,a=this;t=i.mediaPlayer.duration;var o=a.playerWidth,n=i.getCurrentTime(),l=o/t*n/o*100,r=10*n,d=e.currentTarget.attributes.reaction_id.nodeValue,c=o/t*R()("#canvasHoverTime").val()/o*100;a.isPlayer2022&&(l=c);var h={token:i.token,reaction_type:d,video_time:r},p=Math.round(10*n)/10,m={reaction_type:d,video_time:p,reacted_by_me:1};if(a.reactionsData&&a.reactionsData.has(p)){var v=a.reactionsData.get(p);if("reacted_by_me"in v&&v.reaction_type==m.reaction_type)return R()(".notification-line").append("<div class='emoji-div fly-in' style='margin-left:".concat(l,"%'><img src='/svg/emoji-type-").concat(d,".svg' reaction_id='").concat(d,"' width='15'></div>")),R()(".notification-line-onplay").append("<div class='emoji-div-onplay react-emoji' reaction_time='".concat(p,"' style='margin-left:").concat(l,"%'><img class=\"\" src='/svg/emoji-type-").concat(d,".svg' reaction_id='").concat(d,"' width='15'></div>")),void setTimeout((function(){R()(".emoji-div").removeClass("fly-in")}),4e3)}a.reactionsData.set(p,m),a.makeNetworkRequest({data:h,url:"/reactions/create",method:"POST"}).then((function(e){R()(".notification-line").append("<div class='emoji-div fly-in' style='margin-left:".concat(l,"%'><img src='/svg/emoji-type-").concat(d,".svg' reaction_id='").concat(d,"' width='15'></div>")),R()(".notification-line-onplay").append("<div class='emoji-div-onplay react-emoji' reaction_time='".concat(p,"' style='margin-left:").concat(l,"%'><img class=\"\" src='/svg/emoji-type-").concat(d,".svg' reaction_id='").concat(d,"' width='15'></div>")),setTimeout((function(){R()(".emoji-div").removeClass("fly-in")}),4e3)})).catch((function(e){u.default.showBannerAlert(e.message,2e3)}))}},{key:"getSanitizedCommentWithLink",value:function(e){var t=u.default.escapeHTML(e);try{return t.replace(/(http|https)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/gim,'<a href="$&" target="_blank" rel="noreferrer noopener"> $& </a>')}catch(e){return console.log("Regex change failed"),t}}},{key:"prepareParams",value:function(){var e={esa_digest:this.esaDigest};return this.isDeliveryPage?e.token=decodeURIComponent(this.videoPlayerView.token):e.asset_id=this.assetId,e}},{key:"makeNetworkRequest",value:function(e){return new Promise((function(t,i){var a={"X-CSRF-Token":R()('meta[name="csrf-token"]').attr("content")};!e.method&&e.type&&(e.method=e.type),!e.headers&&e.method&&"GET"!==e.method.toUpperCase&&(e.headers=a),R().ajax(e).then((function(e){0===e.code?t(e):i(e)})).fail((function(e){i(e)}))}))}},{key:"hideCommentsLoading",value:function(){R()("#commentsLoading").addClass("hide")}}]),c}(c().View),K=i(38616),X=i.n(K),ee=i(59925),te=i.n(ee),ie=i(19646),ae=i.n(ie),se=i(19755);var oe=function(e){(0,o.Z)(c,e);var t,i,d=(t=c,i=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}}(),function(){var e,a=(0,l.Z)(t);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(a,arguments,s)}else e=a.apply(this,arguments);return(0,n.Z)(this,e)});function c(){return(0,a.Z)(this,c),d.apply(this,arguments)}return(0,s.Z)(c,[{key:"initialize",value:function(e){this.assetId=e.assetId,this.privacyType=e.privacyType,this.teamPrivacyAllowed=e.teamPrivacyAllowed,this.$el=se("#".concat(e.elContainer)),this.isPPR=e.isPPR||!1,this.PrivacyTemplate=te(),this.isPPR&&(this.PrivacyTemplate=ae()),this.render()}},{key:"render",value:function(){var e=this,t=HippoVideo.data.api.getProperty("isVideoPrivacySettingEnabled");(new(X())).getPrivacySetting(this.assetId,(function(i){e.PrivacyTemplate(r.default.extend(C.videoI18N_v2.hippoPrivacy,{privacyType:e.privacyType,teamPrivacyAllowed:e.teamPrivacyAllowed,video_privacy_settings:t},i.privacy_setting),(function(t,i){e.$el.empty().append(se(i)),e.initializeEventListeners()}))}))}},{key:"initializeEventListeners",value:function(){this.radioOptionClicked=this.radioOptionClicked.bind(this),this.togglePasswordField=this.togglePasswordField.bind(this),this.toggleExpiryField=this.toggleExpiryField.bind(this),this.savePrivacySettings=this.savePrivacySettings.bind(this),this.delegate("click","#saveBtn",this.savePrivacySettings),this.delegate("change",".with-link",this.radioOptionClicked),this.delegate("change","#setPassword",this.togglePasswordField),this.delegate("change","#setExpiry",this.toggleExpiryField),this.$el.find("#availFromBox").datetimepicker({timepicker:!0}).change()}},{key:"radioOptionClicked",value:function(e){"2"===e.currentTarget.value?this.$el.find("#anyOneWithLinkOptions").removeClass("hide"):this.$el.find("#anyOneWithLinkOptions").addClass("hide"),this.savePrivacySettings(e),"withOnlyMe"===e.target.id&&e.target.checked?this.isPPR?g.default.trackInThirdPartyTools("video_preview_privacy_only_me_isPPR"):g.default.trackInThirdPartyTools("video_preview_privacy_only_me"):"withInternal"===e.target.id&&e.target.checked?this.isPPR?g.default.trackInThirdPartyTools("video_preview_privacy_anyone_in_the_org_isPPR"):g.default.trackInThirdPartyTools("video_preview_privacy_anyone_in_the_org"):"withLink"===e.target.id&&e.target.checked&&(this.isPPR?g.default.trackInThirdPartyTools("video_preview_privacy_anyone_with_link_isPPR"):g.default.trackInThirdPartyTools("video_preview_privacy_anyone_with_link"))}},{key:"togglePasswordField",value:function(e){e.currentTarget.checked?(this.$el.find("#privacyPasswordField").removeClass("hide"),this.$el.find("#privacyPasswordField .password-input").focus(),this.isPPR?g.default.trackInThirdPartyTools("video_preview_privacy_set_password_isPPR"):g.default.trackInThirdPartyTools("video_preview_privacy_set_password")):this.$el.find("#privacyPasswordField").addClass("hide"),this.$el.find("#privacyButtonBar").removeClass("hide")}},{key:"toggleExpiryField",value:function(e){e.currentTarget.checked?(this.$el.find("#privacyCalendarField").removeClass("hide"),this.$el.find("#privacyCalendarField .date_label").click(),this.isPPR?g.default.trackInThirdPartyTools("video_preview_privacy_set_expiry_isPPR"):g.default.trackInThirdPartyTools("video_preview_privacy_set_expiry")):this.$el.find("#privacyCalendarField").addClass("hide"),this.$el.find("#privacyButtonBar").removeClass("hide")}},{key:"savePrivacySettings",value:function(e){var t=this;this.isPPR?g.default.trackInThirdPartyTools("video_preview_privacy_apply_isPPR"):g.default.trackInThirdPartyTools("video_preview_privacy_apply");var i={};if(this.$el.find("#privacyForm").serializeArray().forEach((function(e){i[e.name]=e.value})),this.$el.find("#setPassword").prop("checked")&&"2"===i.privacy_type||(i.password=null),this.$el.find("#setExpiry").prop("checked")&&"2"===i.privacy_type||(i.expiry_time=null),i.expiry_time){var a=new Date(i.expiry_time);i.expiry_time=a.toUTCString()}se("#previewSaveMessage").removeClass("hide"),(new(X())).savePrivacySetting(this.assetId,i,(function(e){e.status?(u.default.showBannerAlert(e.message,"3000"),"1"===i.privacy_type?(se("#privacyMaskLayer, #shareMaskLayer").removeClass("hide"),se("#shareMailContainer").addClass("hide"),t.isPPR&&(se(".ppr-preview-maskLayer").addClass("privacyWarning"),se("#copy-link-actions-button-bar").addClass("disabledButton"),se("#share-link-actions-button-bar").addClass("disabledButton"))):(se("#privacyMaskLayer, #shareMaskLayer").addClass("hide"),se("#shareMailContainer").removeClass("hide"),t.isPPR&&(se(".ppr-preview-maskLayer").removeClass("privacyWarning"),se("#copy-link-actions-button-bar").removeClass("disabledButton"),se("#share-link-actions-button-bar").removeClass("disabledButton")))):u.default.showBannerAlert(e.error_msg,4e3,"error"),setTimeout((function(){se("#previewSaveMessage").addClass("hide")}),500)}),(function(e){se("#previewSaveMessage").addClass("hide"),console.log("Failed to store privacy settings"),u.default.showBannerAlert(C.videoI18N_v2.hippoPrivacy.somethingWrong,"4000","error")})),e.preventDefault()}}]),c}(c().View),ne=i(76679),le=i(12282),re=(i(47941),i(38880),i(49337),i(4942)),de=(i(57327),i(21249),i(91191)),ce=i.n(de),ue=(i(86856),i(52561),i(1490),i(84881),i(92429),i(7525),i(80763),i(86189),i(21155),i(19755));function he(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function pe(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?he(Object(i),!0).forEach((function(t){(0,re.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):he(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var me=["srt","vtt"],ve=function(e){(0,o.Z)(c,e);var t,i,d=(t=c,i=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}}(),function(){var e,a=(0,l.Z)(t);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(a,arguments,s)}else e=a.apply(this,arguments);return(0,n.Z)(this,e)});function c(){return(0,a.Z)(this,c),d.apply(this,arguments)}return(0,s.Z)(c,[{key:"initialize",value:function(e){this.alertBox=void 0,this.videoDuration=void 0,this.availableCredits=void 0,this.assetId=e.assetId,this.isPPR=e.isPPR,this.canShowSubtitleResolution=e.canShowSubtitleResolution,this.videoPlayerView=e.videoPlayerView,this.containsAudio=e.containsAudio,this.file=null,this.fileName=null,this.videoModel=new(y()),this.$el=ue("#".concat(e.elContainer)),this.render(),this.canGenerateSubtitle=HippoVideo.data.api.getProperty("canGenerateSubtitle"),this.importSubtitlesEnabled=!0,console.log("Setting value ",this.canGenerateSubtitle," ",this.importSubtitlesEnabled),this.subtitlesSelected=[]}},{key:"render",value:function(e){var t=this;this.videoModel.getSubtitleCredits(this.assetId,(function(i){if(console.log("subs",i),0===i.code){t.duration=i.duration/60,t.availableCredits=i.total_subtitle_credits_avail-i.used_subtitle_credits_avail;var a=t.duration>t.availableCredits,s=i.used_subtitle_credits_avail/i.total_subtitle_credits_avail*100+"%",o=i.is_subtitles_enabled>0;t.subtitle_list=i.subtitle_list,t.videoSettings=i.video_settings,t.mediaId=i.media_id,t.subtitlesSelected=[],t.subtitle_language=i.subtitle_language,t.canShowSubtitleResolution?ue("#subtitleResolvePrompt").removeClass("disp-none"):ue("#subtitleResolvePrompt").addClass("disp-none");var n=!0;if(t.subtitle_list&&t.subtitle_list.length>0){for(var l=0;l<t.subtitle_list.length;l++)t.videoSettings.last_media_id==t.subtitle_list[l].media_id&&ue("#subtitleResolvePrompt").addClass("disp-none");v().trigger("reactStoreDispatch",{actionName:"setSubtitleList",payload:{subtitle_list:t.subtitle_list}})}else n=!1,ue("#subtitleResolvePrompt").addClass("disp-none"),v().trigger("reactStoreDispatch",{actionName:"setSubtitleList",payload:{subtitle_list:[]}});ce()(r.default.extend({},C.videoI18N_v2.wizPreview,i,{isLowCredit:a,creditBarWidth:s,containsAudio:t.containsAudio,availableCredits:t.availableCredits,isVideoProcessing:!1,assetId:t.assetId,canGenerateSubtitle:t.canGenerateSubtitle,importSubtitlesEnabled:t.importSubtitlesEnabled,showSubtitles:n,subtitle_language:t.subtitle_language,isSupportUser:g.default.isSupportUser()}),(function(e,i){t.$el.empty().append(ue(i)),t.undelegateEvents(),t.initializeEventListeners(),document.querySelector("#subtitlesVisibilityToggle").checked=o}))}else 100===i.code?(ce()(r.default.extend({},C.videoI18N_v2.wizPreview,i,{containsAudio:t.containsAudio,isVideoProcessing:!0}),(function(e,i){t.undelegateEvents(),t.$el.empty().append(ue(i)),t.initializeEventListeners()})),e&&u.default.showBannerAlert(i.msg,3e3)):u.default.showBannerAlert(i.msg,3e3,"error")}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizShareI18N.somethingWentWrong,3e3,"error")}))}},{key:"initializeEventListeners",value:function(){this.notifyUser=this.notifyUser.bind(this),this.removeSubtitle=this.removeSubtitle.bind(this),this.openFileUpload=this.openFileUpload.bind(this),this.checkVideoStatus=this.checkVideoStatus.bind(this),this.handleSubtitleFileUpload=this.handleSubtitleFileUpload.bind(this),this.toggleSubtitleType=this.toggleSubtitleType.bind(this),this.downloadSelectedSubtitle=this.downloadSelectedSubtitle.bind(this),this.showDownloadConfirmationModal=this.showDownloadConfirmationModal.bind(this),this.cancelSubtitleDownload=this.cancelSubtitleDownload.bind(this),this.confirmSubtitleDownload=this.confirmSubtitleDownload.bind(this),this.closeSubtitlePopModal=this.closeSubtitlePopModal.bind(this),this.changeSubtitleFileType=this.changeSubtitleFileType.bind(this),this.downloadAllSelectedSubtitle=this.downloadAllSelectedSubtitle.bind(this),this.showHideSubtitleGenPage=this.showHideSubtitleGenPage.bind(this),this.showWarningForRemoveSubtitle=this.showWarningForRemoveSubtitle.bind(this),this.checkIfLanguageAlreadyExists=this.checkIfLanguageAlreadyExists.bind(this),this.showLanguageAlreadyExistsMessage=this.showLanguageAlreadyExistsMessage.bind(this),this.cancelSubtitleDelete=this.cancelSubtitleDelete.bind(this),this.confirmSubtitleDelete=this.confirmSubtitleDelete.bind(this),this.deleteSelectedSubtitles=this.deleteSelectedSubtitles.bind(this),this.setSubtitleAsDefault=this.setSubtitleAsDefault.bind(this),this.regenerateSubtitle=this.regenerateSubtitle.bind(this),this.setSubtitleSelectedNumber=this.setSubtitleSelectedNumber.bind(this),this.checkAndProceedForSubtitleGeneration=this.checkAndProceedForSubtitleGeneration.bind(this),this.toggleSubtitleViewStatus=this.toggleSubtitleViewStatus.bind(this),this.toggleSubtitlePublishStatus=this.toggleSubtitlePublishStatus.bind(this),this.removeSubtitleGenerateOption=this.removeSubtitleGenerateOption.bind(this),this.subtitlePlus=this.subtitlePlus.bind(this),this.subtitleDroplist=this.subtitleDroplist.bind(this),this.resetSubtitleDrop=this.resetSubtitleDrop.bind(this),this.cancelReplace=this.cancelReplace.bind(this),this.subtitleMoreAction=this.subtitleMoreAction.bind(this),this.subtitleMoreActionList=this.subtitleMoreActionList.bind(this),this.resetSubtitleTableDrop=this.resetSubtitleTableDrop.bind(this),this.validateSubtitleupload=this.validateSubtitleupload.bind(this),this.startSubtitleFileUpload=this.startSubtitleFileUpload.bind(this),this.replaceSubtitleUpload=this.replaceSubtitleUpload.bind(this),this.selectSubtitle=this.selectSubtitle.bind(this),this.selectAllSubtitles=this.selectAllSubtitles.bind(this),this.generateMultilingualSubtitle=this.generateMultilingualSubtitle.bind(this),this.pingForSubtitleGeneration=this.pingForSubtitleGeneration.bind(this),this.hideSubtitleDropDowns=this.hideSubtitleDropDowns.bind(this),this.delegate("change","#subtitlesSwitch",this.toggleSubtitleType),this.delegate("change",".hvsubtitles-individual-checkbox",this.selectSubtitle),this.delegate("change","#hvsubtitleSelectAll",this.selectAllSubtitles),this.delegate("change","#subtitlesVisibilityToggle",this.toggleSubtitleViewStatus),this.delegate("change",".subtitle-publish",this.toggleSubtitlePublishStatus),this.delegate("click","#chooseSubtitleFileBtn",this.openFileUpload),this.delegate("click","#chooseReplaceSubtitleBtn",this.openFileUpload),this.delegate("click","#downloadSelectedSubsAsZip",this.downloadAllSelectedSubtitle),this.delegate("click",".hvsubtitles-notify-me",this.notifyUser),this.delegate("click","#removeSubtitle",this.showWarningForRemoveSubtitle),this.delegate("change","#subtitleImportFile",this.handleSubtitleFileUpload),this.delegate("change","#subtitleReplaceFile",this.handleSubtitleFileUpload),this.delegate("click","#checkVideoStatus",this.checkVideoStatus),this.delegate("click","#uploadSubtitleFileBtn",this.startSubtitleFileUpload),this.delegate("click","#replaceSubtitleFileBtn",this.replaceSubtitleUpload),this.delegate("click","#buyCreditsButton",(function(){u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitleBuyCredits,5e3)})),this.delegate("click","#generateSubtitleBtn, #cancelGenerateSubtitle",this.showHideSubtitleGenPage),this.delegate("click","#generateSubtitle",this.checkAndProceedForSubtitleGeneration),this.delegate("click",".hvsubtitles-header-plus",this.subtitlePlus),this.delegate("click",".hvsubtitles-drop-container ul li",this.subtitleDroplist),this.delegate("click",".hvsubtitles-drop-cancel",this.resetSubtitleDrop),this.delegate("click",".hvsubtitles-replace-cancel",this.cancelReplace),this.delegate("click",".hvsubtitles-more-action",this.subtitleMoreAction),this.delegate("click",".hvsubtitles-more-actionlist li",this.subtitleMoreActionList),this.delegate("click",".hvsubtitles-tabledrop-cancel",this.resetSubtitleTableDrop),this.delegate("click","#generateSubtitleButton",this.generateMultilingualSubtitle),this.delegate("click","#cancelDownload",this.cancelSubtitleDownload),this.delegate("click","#confirmDownload",this.confirmSubtitleDownload),this.delegate("change","#subtitleDownloadFileType",this.changeSubtitleFileType),this.delegate("click","#cancelRemoveSubtitles",this.cancelSubtitleDelete),this.delegate("click","#confirmRemoveSubtitles",this.confirmSubtitleDelete),this.delegate("click","#deleteSelectedSubtitles",this.deleteSelectedSubtitles),this.delegate("click","#closeWindow",this.closeSubtitlePopModal),this.delegate("click","#regenerateSubtitle",this.regenerateSubtitle),ue("#videoSubtitlesContainer").on("click",this.hideSubtitleDropDowns),this.pollForSubtitles()}},{key:"removeSubtitleGenerateOption",value:function(e){this.canGenerateSubtitle||(this.$el.find("#uploadSubtitlesContainer").removeClass("hide"),this.$el.find("#generateSubtitlesContainer").addClass("hide"),this.$el.find("#subtitle-generate-switcher").addClass("hide"))}},{key:"pollForSubtitles",value:function(){if(this.subtitle_list)for(var e=0;e<this.subtitle_list.length;e++){var t=this.subtitle_list[e];4==t.transcriber&&[3,4,9,13,17].includes(t.status)?(ue('.hvsubtitles-generating-info[data-subid="'+t.id+'"]').addClass("disp-none"),ue('.hvsubtitles-error-info[data-subid="'+t.id+'"]').removeClass("disp-none")):4==t.transcriber&&2!=t.status&&(ue('.hvsubtitles-more-action[data-subid="'+t.id+'"]').addClass("disp-none"),ue('.hvsubtitles-notify-me[data-subid="'+t.id+'"]').removeClass("disp-none"),this.pingForSubtitleGeneration(t.id)),this.subtitlesSelected&&this.subtitlesSelected.length>0&&this.subtitlesSelected.includes(t.id)&&ue("#select-"+t.id).prop("checked",!0)}}},{key:"toggleSubtitleType",value:function(e){this.$el.find(".generate-subtitles, .upload-subtitles").toggleClass("active-option"),this.$el.find("#generateSubtitlesContainer, #uploadSubtitlesContainer").toggleClass("hide")}},{key:"toggleSubtitleViewStatus",value:function(e){this.videoModel.UpdateSubtitlesStatus(this.assetId,null,document.querySelector("#subtitlesVisibilityToggle").checked,(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesStatusUpdate,3e3)}),(function(e){}))}},{key:"selectSubtitle",value:function(e){var t=ue(e.currentTarget).attr("data-subid");ue(e.currentTarget).is(":checked")?this.subtitlesSelected.push(t):this.subtitlesSelected=this.subtitlesSelected.filter((function(e,i,a){return e!=t})),this.setSubtitleSelectedNumber()}},{key:"setSubtitleSelectedNumber",value:function(){this.subtitlesSelected.length>0?ue("#selectedSubtitleNumber").html(this.subtitlesSelected.length+" selected"):ue("#selectedSubtitleNumber").html("")}},{key:"downloadAllSelectedSubtitle",value:function(e){this.subtitlesSelected.length>0&&this.showDownloadConfirmationModal(this.subtitlesSelected)}},{key:"selectAllSubtitles",value:function(e){if(ue(e.currentTarget).is(":checked")){ue(".hvsubtitles-individual-checkbox").prop("checked",!0);var t=ue(".hvsubtitles-individual-checkbox");this.subtitlesSelected=[];for(var i=0;i<t.length;i++)this.subtitlesSelected.push(ue(t[i]).attr("data-subid"))}else this.subtitlesSelected=[],ue(".hvsubtitles-individual-checkbox").prop("checked",!1);this.setSubtitleSelectedNumber()}},{key:"toggleSubtitlePublishStatus",value:function(e){var t=ue(e.currentTarget).attr("data-subid");v().trigger("reactStoreDispatch",{actionName:"setSubtitleList",payload:{subtitle_list:this.subtitle_list.map((function(i){return Number(t)===i.id?pe(pe({},i),{},{is_subtitles_enabled:Number(ue(e.currentTarget).is(":checked"))}):i}))}}),this.videoModel.UpdateSubtitlesStatus(this.assetId,t,ue(e.currentTarget).is(":checked"),(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesStatusUpdate,3e3)}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesStatusUpdateError,3e3,e)}))}},{key:"openFileUpload",value:function(e){this.isPPR?g.default.trackInThirdPartyTools("video_preview_subtitle_upload_isPPR"):g.default.trackInThirdPartyTools("video_preview_subtitle_upload"),"replaceSubtitlePopup"!=ue(ue(e.currentTarget).parents()[0]).attr("id")?this.$el.find("#subtitleImportFile")[0].click():this.$el.find("#subtitleReplaceFile")[0].click()}},{key:"showHideSubtitleGenPage",value:function(){this.$el.find("#startGenerateSubtitles, #subtitleEmptyForm").toggleClass("hide"),this.isPPR?g.default.trackInThirdPartyTools("video_preview_subtitle_start_isPPR",{assetId:this.assetId}):g.default.trackInThirdPartyTools("video_preview_subtitle_start",{assetId:this.assetId})}},{key:"notifyUser",value:function(e){var t=ue(e.currentTarget).attr("data-subid");this.videoModel.subtitlesNotifyUser(this.assetId,t,(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesNotification,3e3)}),(function(e){}))}},{key:"checkVideoStatus",value:function(){this.render(!0)}},{key:"handleSubtitleFileUpload",value:function(e){var t=(e.target.files||[])[0];return t.size>1e6?(u.default.showBannerAlert(C.videoI18N_v2.wizPreview.maxSizeSubtitles,3e3,"error"),void(e.currentTarget.value="")):r.default.indexOf(me,t.name.split(".").pop().toLowerCase())<0?(u.default.showBannerAlert(C.videoI18N_v2.wizPreview.allowedSubtitles,3e3,"error"),void(e.currentTarget.value="")):(this.file=t,this.fileName=t.name,void(this.fileName&&("subtitleReplaceFile"==ue(e.currentTarget).attr("id")?ue("#replaceFileName-"+this.replaceId).text(this.fileName):ue("#uploadFileName").text(this.fileName))))}},{key:"generateMultilingualSubtitle",value:function(){var e=this;if(this.canGenerateSubtitle){if(this.validateSubtitleGenerate()){var t=new FormData;t.append("asset_id",this.assetId),t.append("language",ue("#subtitleLanguageForGeneration").val()),this.videoModel.generateMultilingualSubtitle(t,(function(t){0===t.code?(e.render(),e.initializeSubtitleOnPlayer(t)):u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesFailedUpload,3e3,"error"),ue(".hvsubtitles-drop-container").removeClass("opened")}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesFailedUpload,3e3,"error"),ue(".hvsubtitles-drop-container").removeClass("opened")})),g.default.trackInThirdPartyTools("New Preview: Subtitle File Generate Clicked",{assetId:this.assetId})}}else u.default.showBannerAlert(C.videoI18N_v2.wizPreview.noPermissionToGenerateSubtitle,3e3,"error")}},{key:"validateSubtitleGenerate",value:function(){var e=!0,t=ue("#subtitleLanguageForGeneration").val();return null!=t&&0!=t||(ue("#subtitleGenerateLanguageEmptyError").show(),e=!1),e&&this.checkIfLanguageAlreadyExists(t)&&(e=!1,this.showLanguageAlreadyExistsMessage()),null===this.duration?(u.default.showBannerAlert(C.videoI18N_v2.wizPreview.retryVideo,3e3,"error"),e=!1):this.duration>this.availableCredits&&(u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitleAddon,3e3,"error"),e=!1),e}},{key:"validateSubtitleupload",value:function(){var e=!0;null!=this.fileName&&null!=this.file||(ue("#subtitleFileEmptyError").show(),e=!1);var t=ue("#uploadSubtitleLanguage").val();return null!=t&&null!=t&&0!==t.trim().length&&0!=t||(ue("#subtitleLanguageEmptyError").show(),e=!1),e&&this.checkIfLanguageAlreadyExists(t)&&(e=!1,this.showLanguageAlreadyExistsMessage()),e}},{key:"checkIfLanguageAlreadyExists",value:function(e){if(this.subtitle_list)for(var t=0;t<this.subtitle_list.length;t++)if(this.subtitle_list[t].language.toLowerCase()==e.toLowerCase())return!0;return!1}},{key:"showLanguageAlreadyExistsMessage",value:function(){ue(".hvsubtitles-alert-wrapper").removeClass("disp-none"),ue(".hvsubtitles-alert-container").hide(),ue("#addSubtitleErrorPopup").show(),this.resetSubtitleDrop()}},{key:"regenerateSubtitle",value:function(e){var t=this;if(this.canGenerateSubtitle){var i=ue(e.currentTarget).attr("data-subid"),a=new FormData;a.append("asset_id",this.assetId),a.append("sub_id",i),this.videoModel.regenerateMultilingualSubtitle(a,(function(e){0===e.code?(t.render(),t.initializeSubtitleOnPlayer(e)):u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesFailedUpload,3e3,"error")}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesFailedUpload,3e3,"error")})),g.default.trackInThirdPartyTools("New Preview: Subtitle File Regenerate Clicked",{assetId:this.assetId})}else u.default.showBannerAlert(C.videoI18N_v2.wizPreview.noPermissionToGenerateSubtitle,3e3,"error")}},{key:"startSubtitleFileUpload",value:function(){var e=this;if(this.importSubtitlesEnabled){if(this.validateSubtitleupload()){var t=new FormData;t.append("file[0]",this.file),t.append("fileName",this.fileName),t.append("asset_id",this.assetId),t.append("language",ue("#uploadSubtitleLanguage").val()),this.videoModel.importSubtitles(t,(function(t){0===t.code?(e.render(),e.initializeSubtitleOnPlayer(t)):u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesFailedUpload,3e3,"error"),ue(".hvsubtitles-drop-container").removeClass("opened")}),(function(e){ue(".hvsubtitles-drop-container").removeClass("opened"),u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesFailedUpload,3e3,"error")})),g.default.trackInThirdPartyTools("New Preview: Subtitle File Upload Clicked",{assetId:this.assetId})}}else u.default.showBannerAlert(C.videoI18N_v2.wizPreview.noPermissionToUploadSubtitle,3e3,"error")}},{key:"replaceSubtitleUpload",value:function(e){var t=this,i=!0;if(null!=this.fileName&&null!=this.file||(ue("#replaceFileEmptyError-"+this.replaceId).show(),i=!1),i){var a=new FormData;a.append("file[0]",this.file),a.append("fileName",this.fileName),a.append("asset_id",this.assetId),a.append("sub_id",this.replaceId),this.videoModel.replaceSubtitles(a,(function(e){0===e.code?(t.render(),t.initializeSubtitleOnPlayer(e),u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesStatusReplace,3e3)):u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesFailedReplace,3e3,"error")}))}}},{key:"downloadSelectedSubtitle",value:function(e){g.default.trackInThirdPartyTools("New Preview: Download Subtitle Clicked",{assetId:this.assetId});var t=this.subtitleFileType&&"srt"==this.subtitleFileType;this.videoModel.downloadSubtitle(this.assetId,e,t,(function(e){0===e.code?u.default.downloadFile(e.url):u.default.showBannerAlert(C.videoI18N_v2.wizShareI18N.somethingWentWrong,3e3,"error")}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizShareI18N.somethingWentWrong,3e3,"error")}))}},{key:"removeSubtitle",value:function(e){var t=this;g.default.trackInThirdPartyTools("New Preview: Remove Subtitle Clicked",{assetId:this.assetId}),this.videoModel.removeSubtitle(this.assetId,e,(function(i){t.$el.find(".subtitle-row").addClass("hide"),t.$el.find("#subtitleEmptyForm").removeClass("hide"),t.render(),u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesDeleted,3e3),ue(".primary-video").find("track").remove(),ue("#subtitlesTrack, .player-subtitle").hide(),t.subtitlesSelected=t.subtitlesSelected.filter((function(t,i,a){return t!=e}))}),(function(e){u.default.showBannerAlert(e.msg,3e3,"error")}))}},{key:"deleteSelectedSubtitles",value:function(e){this.subtitlesSelected.length>0&&this.showWarningForRemoveSubtitle(this.subtitlesSelected)}},{key:"showWarningForRemoveSubtitle",value:function(e){ue(".hvsubtitles-alert-wrapper").removeClass("disp-none"),ue(".hvsubtitles-alert-container").hide(),ue("#removeSubtitlePopup").show(),this.deleteSubIds=e,ue("#removeSubtitleMessage").html("You are about to remove "+this.deleteSubIds.length+" subtitles from this video.")}},{key:"cancelSubtitleDelete",value:function(){this.deleteSubIds=null,this.closeSubtitlePopModal()}},{key:"confirmSubtitleDelete",value:function(){this.removeSubtitle(this.deleteSubIds),this.deleteSubIds=null,this.closeSubtitlePopModal()}},{key:"showDownloadConfirmationModal",value:function(e){ue(".hvsubtitles-alert-wrapper").removeClass("disp-none"),ue(".hvsubtitles-alert-container").hide(),ue("#downloadSubtitlePopup").show(),this.downloadSubIds=e}},{key:"cancelSubtitleDownload",value:function(){this.downloadSubIds=null,this.closeSubtitlePopModal()}},{key:"confirmSubtitleDownload",value:function(){this.downloadSelectedSubtitle(this.downloadSubIds),this.downloadSubIds=null,this.closeSubtitlePopModal()}},{key:"closeSubtitlePopModal",value:function(){ue(".hvsubtitles-alert-wrapper").addClass("disp-none"),ue(".hvsubtitles-alert-container").hide()}},{key:"changeSubtitleFileType",value:function(e){this.subtitleFileType=ue("#subtitleDownloadFileType").val()}},{key:"checkAndProceedForSubtitleGeneration",value:function(){var e=this;null===this.duration?u.default.showBannerAlert(C.videoI18N_v2.wizPreview.retryVideo,3e3,"error"):this.duration>this.availableCredits?u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitleAddon,3e3,"error"):(g.default.trackInThirdPartyTools("New Preview: Going for Subtitle Generation",{assetId:this.assetId}),this.videoModel.generateSubtitles(this.assetId,(function(t){0===t.code?e.pingForSubtitleGeneration(t.id):u.default.showBannerAlert(t.msg,3e3,"error")}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitleFailed,3e3,"error")})))}},{key:"pingForSubtitleGeneration",value:function(e){var t=this;this.$el.find(".subtitle-row").addClass("hide"),this.$el.find("#subtitleInProgress").removeClass("hide"),this.videoModel.checkSubtitleStatus(this.assetId,e,(function(i){0===i.code&&("Completed"===i.status?(t.render(),t.initializeSubtitleOnPlayer(i)):"Error"===i.status?(t.render(),u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitleFailed,6e3,"error")):setTimeout((function(){var a=Math.min(Math.max(25,i.progress),100);ue('.hvsubtitles-generating-progress span[data-subid="'+e+'"]').css("width",a+"%"),t.pingForSubtitleGeneration(e)}),2500))}),(function(e){}))}},{key:"initializeSubtitleOnPlayer",value:function(e){}},{key:"subtitlePlus",value:function(){ue("#uploadSubtitleLanguage").val(""),ue("#subtitleFileEmptyError").hide(),ue("#subtitleLanguageForGeneration").val(0),ue("#subtitleLanguageEmptyError").hide(),this.file=null,this.fileName=null,ue("#uploadFileName").text(""),ue(".hvsubtitles-drop-container").hasClass("opened")?ue(".hvsubtitles-drop-container").removeClass("opened"):(this.resetSubtitleDrop(),ue(".hvsubtitles-drop-container").addClass("opened")),g.default.checkElementIsDefined(".hvsubtitles-table")&&(ue(".hvsubtitles-more-drop").removeClass("opened"),ue(".hvsubtitles-more-actionlist").removeClass("disp-none"),ue(".hvsubtitles-tabledrop-container").addClass("disp-none"))}},{key:"subtitleDroplist",value:function(e){var t=ue(e.currentTarget).attr("data-list-for");ue(".hvsubtitles-drop-container ul").addClass("disp-none"),"generate"==t?(ue(".hvsubtitles-drop-upload").addClass("disp-none"),ue(".hvsubtitles-drop-generate").removeClass("disp-none")):"upload"==t&&(ue(".hvsubtitles-drop-generate").addClass("disp-none"),ue(".hvsubtitles-drop-upload").removeClass("disp-none"))}},{key:"resetSubtitleDrop",value:function(){ue(".hvsubtitles-drop-container ul").removeClass("disp-none"),ue(".hvsubtitles-drop-generate, .hvsubtitles-drop-upload").addClass("disp-none"),ue(".hvsubtitles-drop-container").removeClass("opened")}},{key:"cancelReplace",value:function(){ue(".hvsubtitles-more-drop").removeClass("opened"),ue("#replaceFileEmptyError-"+this.replaceId).addClass("disp-none"),ue(".hvsubtitles-drop-replace").addClass("disp-none"),ue("#replaceFileName-"+this.replaceId).text(),ue("#replaceFileName-"+this.replaceId).hide(),ue("#replaceSubtitlePopup").hide()}},{key:"subtitleMoreAction",value:function(e){ue(e.currentTarget).siblings(".hvsubtitles-more-drop").hasClass("opened")?ue(e.currentTarget).siblings(".hvsubtitles-more-drop").removeClass("opened"):(ue(".hvsubtitles-more-drop").removeClass("opened"),ue(e.currentTarget).siblings(".hvsubtitles-more-drop").addClass("opened"),ue(".hvsubtitles-drop-replace").addClass("disp-none")),this.resetSubtitleTableDrop(),ue(".hvsubtitles-drop-container").removeClass("opened")}},{key:"subtitleMoreActionList",value:function(e){var t=ue(e.currentTarget).attr("data-moreaction-for"),i=ue(e.currentTarget).attr("data-subid");ue(".hvsubtitles-more-actionlist").addClass("disp-none"),"regenerate"==t?ue(e.currentTarget).parent(".hvsubtitles-more-actionlist").siblings(".hvsubtitles-tabledrop-container").removeClass("disp-none"):"delete"==t?(this.showWarningForRemoveSubtitle([i]),ue(".hvsubtitles-more-drop").removeClass("opened")):"default"==t?(this.setSubtitleAsDefault(i),ue(".hvsubtitles-more-drop").removeClass("opened")):"download"==t?(ue(".hvsubtitles-more-drop").removeClass("opened"),this.showDownloadConfirmationModal([i])):"replace"==t?(this.replaceId=i,this.file=null,this.fileName=null,ue(e.currentTarget).parent(".hvsubtitles-more-actionlist").siblings(".hvsubtitles-drop-replace").removeClass("disp-none"),ue("#replaceSubtitlePopup").show()):ue(".hvsubtitles-more-drop").removeClass("opened")}},{key:"setSubtitleAsDefault",value:function(e){var t=this;this.videoModel.updateSubtitleAsDefault(this.assetId,e,(function(e){t.render()}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizPreview.subtitlesStatusUpdateError,3e3,e)}))}},{key:"resetSubtitleTableDrop",value:function(){ue(".hvsubtitles-more-actionlist").removeClass("disp-none"),ue(".hvsubtitles-tabledrop-container").addClass("disp-none")}},{key:"hideSubtitleDropDowns",value:function(e){ue(".hvsubtitles-user-actions-drop").find(e.target).length>0||ue(".hvsubtitles-more-drop").removeClass("opened"),ue(".hvsubtitles-header-right").find(e.target).length>0||ue(".hvsubtitles-drop-container").removeClass("opened")}}]),c}(c().View),ge=i(58486),fe=i(10879),be=i.n(fe),we=(i(20454),i(3161)),ye=i.n(we),_e=i(19755);var ke=function(e){(0,o.Z)(c,e);var t,i,d=(t=c,i=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}}(),function(){var e,a=(0,l.Z)(t);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(a,arguments,s)}else e=a.apply(this,arguments);return(0,n.Z)(this,e)});function c(){return(0,a.Z)(this,c),d.apply(this,arguments)}return(0,s.Z)(c,[{key:"initialize",value:function(e){this.$el=_e("#".concat(e.elContainer)),this.assetId=e.assetId,this.videoPlayerView=e.videoPlayerView,this.videoModel=new(y()),this.isPixelEnabled=e.isPixelEnabled,this.isGAEnabled=e.isGAEnabled,this.isLuckyOrangeEnabled=e.isLuckyOrangeEnabled,this.upgradeTemplate="",this.render()}},{key:"initializeEventListeners",value:function(){this.openCustomTrackingTab=this.openCustomTrackingTab.bind(this),this.addTracker=this.addTracker.bind(this),this._startTimeUp=this._startTimeUp.bind(this),this._startTimeDown=this._startTimeDown.bind(this),this.loadTemplate=this.loadTemplate.bind(this),this.delegate("click",".startTimeUpArrow",this._startTimeUp),this.delegate("click",".startTimeDownArrow",this._startTimeDown),this.delegate("click",".custom-tracking-save",this.addTracker),this.delegate("click","#pixelTrackerContent",this.openCustomTrackingTab),this.delegate("click","#gaTrackerContent",this.openCustomTrackingTab),this.delegate("click","#luckyOrangeTrackerContent",this.openCustomTrackingTab),this.delegate("click","#cancelCustomTracking",this.closeTrackingContent),this.delegate("click","#cancelCustomTracking",this.closeTrackingContent),this.delegate("click",".upgrade-btn",this.openPricingPage)}},{key:"render",value:function(){var e=this;this.videoModel.getCustomTrackers(this.assetId,(function(t){e.data=t;for(var i=0;i<e.data.video_custom_tracking.length;i++){var a=e.data.video_custom_tracking[i];a.tracker===b().customTrackers.PIXEL?e.pixelData=a:a.tracker===b().customTrackers.GA?e.GAData=a:a.tracker===b().customTrackers.LUCKY_ORANGE&&(e.LOData=a)}var s={upgradeMessage:C.videoI18N_v2.wizShareI18N.featureRequiresPaidVersion};e.upgradeTemplate=ye()(r.default.extend(s,C.videoI18N_v2)),e.loadTemplate()}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.customTrackers.somethingWentWrong,3e3,"error")}))}},{key:"openPricingPage",value:function(){window.location.href="/settings/subscription"}},{key:"loadTemplate",value:function(){var e=this;be()(r.default.extend({},C.videoI18N_v2.customTrackers,{isPixelEnabled:this.isPixelEnabled,isGAEnabled:this.isGAEnabled,isLuckyOrangeEnabled:this.isLuckyOrangeEnabled,pixelTags:this.pixelData?this.pixelData.tags:[],GATags:this.GAData?this.GAData.tags:[]}),(function(t,i){e.$el.empty().append(_e(i)),e.initializeEventListeners()})),this.$el.find("#pixelTags, #GATags").select2({tags:!0,multiple:!0,theme:"hippo",tokenSeparators:[","," "],dropdownCssClass:"disp-none"}),this.pixelData&&this.$el.find("#pixelTags").val(this.pixelData.tags).trigger("change"),this.GAData&&this.$el.find("#GATags").val(this.GAData.tags).trigger("change");var t=this;_e((function(){_e(".vt-subtab").click((function(e){console.log("click event",e),_e(".accordion-content").hide(),_e(".upgrade_content").hide(),_e(".vt-subtab").removeClass("vt-subtab-active"),_e("#"+e.currentTarget.id).addClass("vt-subtab-active"),e.currentTarget.attributes.trackingtype.value!=b().customTrackers.PIXEL+""||t.isPixelEnabled?e.currentTarget.attributes.trackingtype.value==b().customTrackers.PIXEL+""&&(g.default.trackInThirdPartyTools("video_preview_track_video_fb_pixel_isPPR",{assetId:this.assetId}),_e("#facebookPixelContent").show()):(g.default.trackInThirdPartyTools("Pixel Tracking updgrade",{assetId:this.assetId}),_e("#".concat(e.currentTarget.dataset.alert)).show(),_e("#".concat(e.currentTarget.dataset.alert)).empty().append(t.upgradeTemplate)),e.currentTarget.attributes.trackingtype.value!=b().customTrackers.GA+""||t.isGAEnabled?e.currentTarget.attributes.trackingtype.value==b().customTrackers.GA+""&&(g.default.trackInThirdPartyTools("video_preview_track_video_google_analytics_isPPR",{assetId:this.assetId}),_e("#GAContent").show()):(g.default.trackInThirdPartyTools("GA Tracking upgrade",{assetId:this.assetId}),_e("#".concat(e.currentTarget.dataset.alert)).show(),_e("#".concat(e.currentTarget.dataset.alert)).empty().append(t.upgradeTemplate)),e.currentTarget.attributes.trackingtype.value!=b().customTrackers.LUCKY_ORANGE+""||t.isLuckyOrangeEnabled?e.currentTarget.attributes.trackingtype.value==b().customTrackers.LUCKY_ORANGE+""&&(g.default.trackInThirdPartyTools("video_preview_track_video_lucky_orange_isPPR",{assetId:this.assetId}),_e("#luckyOrangeTrackerContent").show()):(g.default.trackInThirdPartyTools("Lucky Orange Tracking upgrade",{assetId:this.assetId}),_e("#".concat(e.currentTarget.dataset.alert)).show(),_e("#".concat(e.currentTarget.dataset.alert)).empty().append(t.upgradeTemplate))}))}))}},{key:"closeTrackingContent",value:function(){g.default.trackInThirdPartyTools("video_preview_track_video_cancel_isPPR"),_e(".accordion-content").not(_e(this).next()).slideUp(300)}},{key:"getDuration",value:function(){return this.duration&&this.duration>0?this.duration:this.videoPlayerView.mediaPlayer.duration}},{key:"_incrTime",value:function(e,t){var i=g.default.timeToInt(t);i+=1;var a=this.getDuration();i>a&&(i=a);var s=g.default.strToTimeWithHr(i);_e("#"+e).val(s)}},{key:"_decrTime",value:function(e,t){var i=g.default.timeToInt(t);(i-=1)<0&&(i=0);var a=g.default.strToTimeWithHr(i);_e("#"+e).val(a)}},{key:"_startTimeUp",value:function(e){var t="",i="";e.currentTarget.attributes.trackingtype.value==b().customTrackers.PIXEL+""?(t="pixelTime",i=_e("#pixelTime").val()):e.currentTarget.attributes.trackingtype.value==b().customTrackers.GA+""?(t="GATime",i=_e("#GATime").val()):e.currentTarget.attributes.trackingtype.value==b().customTrackers.LUCKY_ORANGE+""&&(t="LOTime",i=_e("#LOTime").val()),this._incrTime(t,i)}},{key:"_startTimeDown",value:function(e){var t="",i="";e.currentTarget.attributes.trackingtype.value==b().customTrackers.PIXEL+""?(t="pixelTime",i=_e("#pixelTime").val()):e.currentTarget.attributes.trackingtype.value==b().customTrackers.GA+""?(t="GATime",i=_e("#GATime").val()):e.currentTarget.attributes.trackingtype.value==b().customTrackers.LUCKY_ORANGE+""&&(t="LOTime",i=_e("#LOTime").val()),this._decrTime(t,i)}},{key:"openCustomTrackingTab",value:function(e){e.currentTarget.attributes.trackingtype.value==b().customTrackers.PIXEL+""?this.pixelData&&(_e("#videoPixelId").val(this.pixelData.tracking_id),_e("#pixelTime").val(g.default.strToTimeWithHr(this.pixelData.time_to_load))):e.currentTarget.attributes.trackingtype.value==b().customTrackers.GA+""?this.GAData&&(_e("#videoGAId").val(this.GAData.tracking_id),_e("#GATime").val(g.default.strToTimeWithHr(this.GAData.time_to_load))):e.currentTarget.attributes.trackingtype.value==b().customTrackers.LUCKY_ORANGE+""&&this.LOData&&(_e("#videoLOId").val(this.LOData.tracking_id),_e("#LOTime").val(g.default.strToTimeWithHr(this.LOData.time_to_load)))}},{key:"deleteTracker",value:function(e){this.videoModel.deleteCustomTrackers(this.assetId,e,(function(e){u.default.showBannerAlert(C.videoI18N_v2.customTrackers.deleted,6e3)}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.customTrackers.somethingWentWrong,3e3,"error")}))}},{key:"addTracker",value:function(e){if(!_e("#videoPixelId").val()&&!_e("#videoGAId").val()&&!_e("#videoLOId").val())return g.default.trackInThirdPartyTools("video_preview_track_video_save_isPPR",{assetId:this.assetId}),void(e.currentTarget.attributes.trackingtype.value==b().customTrackers.PIXEL+""?this.pixelData&&""!=this.pixelData.tracking_id?(this.deleteTracker(e.currentTarget.attributes.trackingtype.value),_e("#videoPixelId").val(""),_e("#pixelTime").val(g.default.strToTimeWithHr(0)),_e("#pixelTags").empty()):u.default.showBannerAlert(C.videoI18N_v2.customTrackers.pixelMandatory,3e3,"error"):e.currentTarget.attributes.trackingtype.value==b().customTrackers.GA+""?this.GAData&&""!=this.GAData.tracking_id?(this.deleteTracker(e.currentTarget.attributes.trackingtype.value),_e("#videoGAId").val(""),_e("#GATime").val(g.default.strToTimeWithHr(0)),_e("#GATags").empty()):u.default.showBannerAlert(C.videoI18N_v2.customTrackers.GAMandatory,3e3,"error"):e.currentTarget.attributes.trackingtype.value==b().customTrackers.LUCKY_ORANGE+""&&(this.LOData&&""!=this.LOData.tracking_id?(this.deleteTracker(e.currentTarget.attributes.trackingtype.value),_e("#videoLOId").val(""),_e("#LOTime").val(g.default.strToTimeWithHr(0))):u.default.showBannerAlert(C.videoI18N_v2.customTrackers.lOMandatory,3e3,"error")));var t={};if(e.currentTarget.attributes.trackingtype.value==b().customTrackers.PIXEL+""){var i=g.default.timeToInt(_e("#pixelTime").val())>0?g.default.timeToInt(_e("#pixelTime").val()):0;t={asset_id:this.assetId,tracking_id:_e("#videoPixelId").val(),tags:_e("#pixelTags").val(),tracking_type:e.target.attributes.trackingtype.value,time:i,time_to_load:i},this.pixelData=t}else if(e.currentTarget.attributes.trackingtype.value==b().customTrackers.GA+""){var a=g.default.timeToInt(_e("#GATime").val())>0?g.default.timeToInt(_e("#GATime").val()):0;t={asset_id:this.assetId,tracking_id:_e("#videoGAId").val(),tags:_e("#GATags").val(),tracking_type:e.target.attributes.trackingtype.value,time:a,time_to_load:a},this.GAData=t}else if(e.currentTarget.attributes.trackingtype.value==b().customTrackers.LUCKY_ORANGE+""){var s=g.default.timeToInt(_e("#LOTime").val())>0?g.default.timeToInt(_e("#LOTime").val()):0;t={asset_id:this.assetId,tracking_id:_e("#videoLOId").val(),tags:"",tracking_type:e.target.attributes.trackingtype.value,time:s,time_to_load:s},this.LOData=t}_e(".custom-tracking-save").attr("disabled","disabled"),this.videoModel.addCustomTrackers(this.assetId,t,(function(e){_e(".custom-tracking-save").attr("disabled",!1),u.default.showBannerAlert(C.videoI18N_v2.customTrackers.success,6e3)}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.customTrackers.somethingWentWrong,3e3,"error")}))}}]),c}(c().View),Ce=(i(19601),i(94955)),Pe=i.n(Ce),Te=(i(25911),i(18966)),Se=i(13919);var xe="#ff9a44",Ae=function(e){(0,o.Z)(d,e);var t,i,r=(t=d,i=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}}(),function(){var e,a=(0,l.Z)(t);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(a,arguments,s)}else e=a.apply(this,arguments);return(0,n.Z)(this,e)});function d(){return(0,a.Z)(this,d),r.apply(this,arguments)}return(0,s.Z)(d,[{key:"initialize",value:function(e){this.globalPlayerTheme=e.globalPlayerTheme||xe,this.changeThemeForPreview=this.changeThemeForPreview.bind(this),this.restoreDefaultTheme=this.restoreDefaultTheme.bind(this),this.playerThemeNext=this.playerThemeNext.bind(this),this.playerThemeCancel=this.playerThemeCancel.bind(this),this.restorePlayerCtrls=this.restorePlayerCtrls.bind(this)}},{key:"openPlayerThemePop",value:function(e,t){if("false"!=R()("#playerThemesEnabled").val()){e=0==e?xe:e;var i=R()("#themeColorLabel").text(),a="Default"!=i&&i,s=!1,o=!1,n=(0,le.getStaticImageUrl)();if(a){var l=g.default.convertHexToRGB(a);s="rgba("+l.r+", "+l.g+", "+l.b+", 0.7)",o=g.default.convertRGBToHSL(l.r,l.g,l.b).l>80}this.openPlayerTheme=new(k())({title:C.videoSettingI18N_v2.brandingSetting.playerTheme,body:Pe()(Se.extend(C.videoSettingI18N_v2,{player_theme:a,player_theme_rgba:s,isInverse:o},{staticImgDomain:n})),el:R()("#brandingThemePop"),id:"themePop",showConfirm:!1,showIcon:!1,size:"medium-fixed"}),this.openPlayerTheme.showModal();var r={flat:!0,showInput:!0,preferredFormat:"hex",clickoutFiresChange:!0,chooseText:"set",color:e,move:this.changeThemeForPreview,containerClassName:"brandingColorContainer"};if(t&&t.length>0){var d=Te.Z.getPaletteConfig(t,"brandingColorContainer");r=Object.assign(r,d)}R()("#flat").spectrum(r),R()(".sp-input-container").append("<label>"+C.videoSettingI18N_v2.brandingSetting.color+"</label>"),R()("#restoreDefaultThemeId").on("click",this.restoreDefaultTheme),R()("#playerThemeNextBtn").on("click",this.playerThemeNext),R()("#playerThemeCancelBtn").on("click",this.playerThemeCancel),R()("#themePop .sp-input").on("keyup",this.changeThemeForPreview),this.changeThemeForPreview()}else g.default._upgradeAlertPopup(C.videoI18N_v2,T())}},{key:"restoreDefaultTheme",value:function(){this.globalPlayerTheme&&this.globalPlayerTheme!=xe?(R()("#themePop .sp-input").val(this.globalPlayerTheme),this.changeThemeForPreview()):(R()("#themePop .sp-input").val(xe),R()(".player-play-i").css("background-color",xe),R()(".control-con").css("background-color",xe),this.restorePlayerCtrls())}},{key:"playerThemeNext",value:function(){var e=R()("#themePop .sp-input")[0].value;R()(".t-color-box").css("background-color",e),e!=xe?R()("#themeColorLabel").text(e):R()("#themeColorLabel").text("Default"),g.default.trackInThirdPartyTools("player theme changed"),this.openPlayerTheme.hideModal()}},{key:"playerThemeCancel",value:function(){this.openPlayerTheme.hideModal()}},{key:"changeThemeForPreview",value:function(){var e=R()("#themePop .sp-input")[0].value,t=g.default.convertHexToRGB(e);if(t){var i="rgba("+t.r+", "+t.g+", "+t.b+", 0.7)",a=(t.r,t.g,t.b,"");e!=xe?(R()(".player-theme-container .pt-thumbnail .pt-main-controls .pt-playthree svg g").attr("stroke",e),a+=".player-theme-container .pt-current-time-bg { background-image : linear-gradient(to right, ".concat(i,", ").concat(e,") !important}"),a+=".player-theme-container .pt-volume-slider:before, .player-theme-container .pt-volume-slider:after { background-color: ".concat(e," }"),this.getStyleContainer().innerHTML=a):this.restoreDefaultTheme()}}},{key:"getStyleContainer",value:function(){var e=document.getElementById("customStyle");return e||((e=document.createElement("style")).id="customStyle",document.head.appendChild(e)),e}},{key:"restorePlayerCtrls",value:function(){var e="#ff9a44";R()(".player-theme-container .pt-thumbnail .pt-main-controls .pt-playthree svg g").attr("stroke",e);var t="";t+=".player-theme-container .pt-current-time-bg { background-image : linear-gradient(to right, ".concat("#fc6076",", ").concat(e,") !important}"),t+=".player-theme-container .pt-volume-slider:before, .player-theme-container .pt-volume-slider:after { background-color: ".concat(e," }"),this.getStyleContainer().innerHTML=t}},{key:"destroy",value:function(){this.undelegateEvents()}}]),d}(c().View),Ie=i(85651),Be=i.n(Ie),Ee=i(3166),Le=i.n(Ee),Ve=i(19755);var Re="#000000",Ne=function(e){(0,o.Z)(d,e);var t,i,r=(t=d,i=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}}(),function(){var e,a=(0,l.Z)(t);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(a,arguments,s)}else e=a.apply(this,arguments);return(0,n.Z)(this,e)});function d(){return(0,a.Z)(this,d),r.apply(this,arguments)}return(0,s.Z)(d,[{key:"initialize",value:function(e){this.$el=Ve("#".concat(e.elContainer)),this.assetId=e.assetId,this.brandingPlanParams=e.brandingPlanParams||{},this.videoBrandingModel=new(Le())({assetId:this.assetId});var t=this;this.videoBrandingModel.on("sync",(function(e){t.render()})),this.videoBrandingModel.fetch()}},{key:"render",value:function(){this.initEventListeners(),this.initBrandingInfo()}},{key:"initBrandingInfo",value:function(){if(this.brandingInfo=this.videoBrandingModel.attributes.info,this.brandingInfo){var e={globalPlayerTheme:this.brandingInfo.global_player_theme,globalPlayerLogo:this.brandingInfo.global_player_logo};this.brandingUtils=new Ae(e),this.brand_colors=this.brandingInfo.brand_colors;var t=this.brandingInfo.player_theme||this.brandingInfo.global_player_theme||Re,i=this.brandingInfo.player_logo||this.brandingInfo.global_player_logo||"/svg/hippo-video-logo-white.svg",a=this.brandingInfo.add_link_to_player_logo||this.brandingInfo.global_add_link_to_player_logo||!1,s=this.brandingInfo.player_logo_link||this.brandingInfo.global_player_logo_link||"";this.brandingInfo.remove_player_logo&&(i="/svg/hippo-video-logo-white.svg"),this.brandingInfo.remove_player_url&&(s="",a=!1),this.setBrandingInfo(t,i,a,s)}}},{key:"setBrandingInfo",value:function(e,t,i,a){e&&(e==Re?this.$el.find("#themeColorLabel").text("Default"):this.$el.find("#themeColorLabel").text(e),this.$el.find("#samplePlayerTheme").css("background-color",e)),t&&(this.$el.find("#playerLogoImg").attr("src",t),this.brandingInfo.player_logo?(this.$el.find("#addPlayerLogo").addClass("disp-none"),this.$el.find("#changePlayerLogo").removeClass("disp-none"),this.$el.find("#deletePlayerLogo").removeClass("disp-none")):this.brandingInfo.global_player_logo?(this.$el.find("#addPlayerLogo").addClass("disp-none"),this.$el.find("#changePlayerLogo").removeClass("disp-none"),this.brandingInfo.remove_player_logo?this.$el.find("#deletePlayerLogo").addClass("disp-none"):this.$el.find("#deletePlayerLogo").removeClass("disp-none")):(this.$el.find("#addPlayerLogo").removeClass("disp-none"),this.$el.find("#changePlayerLogo").addClass("disp-none"),this.$el.find("#deletePlayerLogo").addClass("disp-none"))),1==i?(this.$el.find("#playerLogoCheck").prop("checked","checked"),this.$el.find("#playerLogoUrl").removeClass("hide"),a&&this.$el.find("#playerLogoLink").val(a)):0==i&&(this.$el.find("#playerLogoCheck").prop("checked",""),this.$el.find("#playerLogoUrl").addClass("hide"),a&&this.$el.find("#playerLogoLink").val(a))}},{key:"initEventListeners",value:function(){this.bindThisForMethods(),this.delegate("click","#playerLogoCheck",this._selectPlayerLogoLink),this.delegate("click","#changePlayerThemeId",this.openPlayerThemePop),this.delegate("click","#addPlayerLogo",this.addPlayerLogo),this.delegate("click","#changePlayerLogo",this.addPlayerLogo),this.delegate("click","#deletePlayerLogo",this.deletePlayerLogo),this.delegate("click","#brandingSaveBtn",this.saveVideoBrandingInfo),this.delegate("click","#brandingResetBtn",this.restoreVideoBrandingInfo)}},{key:"bindThisForMethods",value:function(){this._selectPlayerLogoLink=this._selectPlayerLogoLink.bind(this),this.addPlayerLogo=this.addPlayerLogo.bind(this),this.deletePlayerLogo=this.deletePlayerLogo.bind(this),this.deleteConfirm=this.deleteConfirm.bind(this),this.openPlayerThemePop=this.openPlayerThemePop.bind(this),this.saveVideoBrandingInfo=this.saveVideoBrandingInfo.bind(this),this.setBrandingInfo=this.setBrandingInfo.bind(this),this.restoreVideoBrandingInfo=this.restoreVideoBrandingInfo.bind(this)}},{key:"_selectPlayerLogoLink",value:function(){this.$el.find("#playerLogoCheck").prop("checked")?(this.$el.find("#playerLogoUrl").removeClass("hide"),this.$el.find("#playerLogoLink").focus()):this.$el.find("#playerLogoUrl").addClass("hide")}},{key:"openPlayerThemePop",value:function(){var e=this.brandingInfo.player_theme||this.brandingInfo.gloabl_player_theme||!1;this.brandingUtils.openPlayerThemePop(e,this.brand_colors)}},{key:"addPlayerLogo",value:function(){this.page="player_logo",this.playerImageView=new(Be())(this.page),g.default.trackInThirdPartyTools("player logo added")}},{key:"deletePlayerLogo",value:function(){new(B())({body:T().deleteLogoConfirm,el:Ve("#alertPopUp"),id:"dummyId",showConfirm:!0,showIcon:!0,onYes:this.deleteConfirm,size:"small"}).showModal()}},{key:"deleteConfirm",value:function(){var e=this,t={asset_id:this.assetId};this.$el.find("#deleteLogoLoading").removeClass("hide"),this.videoBrandingModel.removeVideoLogo(t,(function(t){t.status&&(e.$el.find("#playerLogoImg").attr("src","/svg/hippo-video-logo-white.svg"),e.brandingInfo.global_player_logo?(e.$el.find("#addPlayerLogo").addClass("disp-none"),e.$el.find("#changePlayerLogo").removeClass("disp-none")):(e.$el.find("#changePlayerLogo").addClass("disp-none"),e.$el.find("#addPlayerLogo").removeClass("disp-none")),e.$el.find("#deletePlayerLogo").addClass("disp-none"),e.playerImageView&&(e.playerImageView.destroy(),e.playerImageView=!1)),e.$el.find("#deleteLogoLoading").addClass("hide"),g.default.showBannerAlert(t.msg,2e3)}),(function(t){e.$el.find("#deleteLogoLoading").addClass("hide"),g.default.showBannerAlert(T().somethingWentWrong,2e3)}))}},{key:"saveVideoBrandingInfo",value:function(){this.$el.find("#saveBrandingLoading").removeClass("hide");var e={asset_id:this.assetId},t=!1;if(this.playerImageView&&this.playerImageView.changed){var i=this.$el.find("#playerLogoImg").attr("src");e.pl_img=i,t=!0}var a=this.$el.find("#themeColorLabel").text();a="Default"!=a&&a,this.brandingInfo.player_theme!=a&&this.brandingInfo.global_player_theme!=a&&(e.theme=a,t=!0);var s=this.$el.find("#playerLogoCheck").is(":checked");this.brandingInfo.add_link_to_player_logo!=s&&(e.add_link_to_pl=s,t=!0),this.brandingInfo.global_add_link_to_player_logo&&!s&&(e.add_link_to_pl=s,e.pl_url=this.brandingInfo.global_player_logo_link,e.remove_pl_link=!1,t=!0),(this.brandingInfo.add_link_to_player_logo!=s&&!s||"/svg/hippo-video-logo-white.svg"===this.$el.find("#playerLogoImg").attr("src"))&&(e.remove_pl_link=!0,t=!0);var o=this.$el.find("#playerLogoLink").val();if(this.brandingInfo.player_logo_link!=o&&this.brandingInfo.global_player_logo_link!=o&&(e.pl_url=o,t=!0),!t)return g.default.showBannerAlert(T().noChanges,2e3),void this.$el.find("#saveBrandingLoading").addClass("hide");var n=this;this.videoBrandingModel.saveVideoBrandingInfo(e,(function(t){n.$el.find("#saveBrandingLoading").addClass("hide"),g.default.showBannerAlert(t.msg,2e3),t.status&&(e.theme&&(n.brandingInfo.player_theme=e.theme),e.pl_img&&(n.brandingInfo.player_logo=e.pl_img,n.$el.find("#deletePlayerLogo").removeClass("disp-none")),n.brandingInfo.add_link_to_player_logo=e.add_link_to_pl,e.pl_url&&(n.brandingInfo.player_logo_link=e.pl_url),n.playerImageView&&(n.playerImageView.changed=!1)),Ve("#changePlayerLogo").is(":visible")&&Ve("#deletePlayerLogo").removeClass("disp-none")}),(function(e){n.$el.find("#saveBrandingLoading").addClass("hide"),g.default.showBannerAlert(T().somethingWentWrong,2e3)}))}},{key:"restoreVideoBrandingInfo",value:function(){var e=this,t={asset_id:this.assetId};this.$el.find("#brandingResetBtn img").addClass("rotate-anim"),this.videoBrandingModel.restoreVideoBrandingInfo(t,(function(t){g.default.showBannerAlert(t.msg,2e3);var i=e.brandingInfo.global_player_theme||Re,a=e.brandingInfo.global_player_logo||"/svg/hippo-video-logo-white.svg",s=e.brandingInfo.global_add_link_to_player_logo||!1,o=e.brandingInfo.global_player_logo_link||"";e.brandingInfo.player_theme=void 0,e.brandingInfo.player_logo=void 0,e.brandingInfo.add_link_to_player_logo=void 0,e.brandingInfo.player_logo_link=void 0,e.setBrandingInfo(i,a,s,o),e.$el.find("#brandingResetBtn img").removeClass("rotate-anim")}),(function(t){g.default.showBannerAlert(T().somethingWentWrong,2e3),e.$el.find("#brandingResetBtn img").removeClass("rotate-anim")}))}},{key:"destroy",value:function(){this.undelegateEvents(),this.$el.empty()}}]),d}(c().View),Fe=i(22991),Oe=i.n(Fe),De=i(59324),Me=i.n(De),Ue=i(12038),ze=i.n(Ue),Ge=(i(62813),i(43105),i(82414),i(81161),i(7319),i(1744),i(93331),i(18178),i(77481),i(27225),i(56372),i(89330),i(36303),i(14438),i(53406),i(11260)),He=i(96467),$e=i.n(He),je=i(71100),qe=i.n(je),We=i(3365),Je=i.n(We),Ze=i(55059),Qe=i(52180),Ye=i.n(Qe),Ke=i(26088),Xe=i.n(Ke),et=i(15968),tt=i.n(et),it=(i(33636),i(46277),i(23923)),at=i.n(it),st=i(81460),ot=i(27856),nt=i.n(ot),lt=(i(18e3),i(81512)),rt=i.n(lt),dt=i(39419),ct=i.n(dt),ut=i(31081),ht=i.n(ut),pt=i(96700),mt=c().View.extend({events:{"click #addAnnotationBtn":"openAnnotationComp","click #annotationApplyBtn":"saveAnnotation","click #addCallToActionBtn":"openCallToActionComp","click .hubspotBackgroundSwitch":"hubspotBackgroundSwitch","click .embedCrmBackgroundSwitch":"embedCrmBackgroundSwitch","click #callToActionApplyBtn":"saveCallToAction","click #addFormBtn":"openFormComp","click #questionApplyBtn":"saveQuestion","click #formApplyBtn":"saveForm","click #addQuizBtn":"openQuestionComp","click #addEndCardBtn":"openEndCardComp","click #addEndScreenBtn":"openEndScreenComp","click #endScreenApplyBtn":"saveEndScreen","click #endCardApplyBtn":"saveEndCard","click #ctaCancel":"cancelCtaComp","click #endScreenVideoSelectBtn":"endScreenVideoSelect","click #ctaPlayerFormPlayBtn":"_playFromPlayerComp","click #ctaPlayerQuestionPlayBtn":"_playFromPlayerComp","click #ctaPlayerEndScreenImageBtn":"_openEndScreenLink","click #startTimeUpArrow":"_startTimeUp","click #startTimeDownArrow":"_startTimeDown","click #endTimeUpArrow":"_endTimeUp","click #endTimeDownArrow":"_endTimeDown","click #addEmbedCrmFormBtn":"openEmbedCrmForm","click #embedCrmFormApplyBtn":"saveEmbedCrmForm","click #exitCta":"_exitCta","click #configureMailchimp":"configureMailchimpInteg","click #manageMailchimp":"manageMailchimpInteg","click .timeline-edit-btn":"_editCTA","click .timeline-delete-btn":"deleteCTA","click .cta-player-skip":"_hidePlayerComponent","click .cta-add-from-player":"ctaAddFromPlayer","keyup #annotationText":"_setAnnotationLabelText","keyup #ctaText":"_setCTAText","keyup #embedFormContent":"_setEmbedFormContent","keyup #upperText":"_setCTAUpperText","keyup #lowerText":"_setCTALowerText","keyup .cta-question-option":"_setCTAOptionText","keyup #questionTxt":"_setCTAQuestionText","keyup #startTime":"_validateUpDownTime","keyup #endTime":"_validateUpDownTime","keyup #annotationUrl":"_annotationUrlKeyUp","keyup #ctaTextLink":"_ctaTextLinkKeyUp","keyup #ctaImageLink":"_ctaImageLinkKeyUp","keyup #fieldNameTxt":"_fieldNameTextKeyUp","keyup #ctaEndCardTxt":"_setEndCardText","keyup #endCardButtonTxt":"_setEndCardButtonText","keyup #pollBtnText":"_setpollBtnText","keyup #leadGenBtnText":"_setleadGenBtnText","keyup #endCardButtonLink":"_endCardButtonLinkKeyUp","keyup #htmlContent":"_setHTMLContent","focusout #startTime":"_setPlayerTime","focusout #endTime":"_setPlayerEndTime","change #ctaImageUploadBtn":"_openCTAUploadImage","change #callToActionType":"_selectCtaContent","change #askPhoneCheck":"_showHidePhoneNumber","change #askCompanyCheck":"_showHideCompanyName","change #allowSkipCheck":"_showHideSkip","change #lastNumSeconds":"_changePlayerTime","change #allowPlayCheck":"_showHideEndTimeContainer","click #changeButtonColor":"changeButtonColor"},initialize:function(e){e||(e={}),this.el||(this.el=R()("#ctaAddPanel")),e.isPPR?R()("#videoActionsLoadingIsppr").show():g.default.reset_page_loading(),this.ctaModel=new(qe());var t=window.location.pathname.split("?")[0];this.assetId=t.substring(t.lastIndexOf("/")+1,t.length),this.isPPR=e.isPPR,this.isCurrentlyRecordedPreview=!!e.isCurrentlyRecordedPreview,this.recordConfiguration=e.recordConfiguration,this.isNewRecording=!!e.isNewRecording,this.isMirrorWebCam=e.isMirrorWebCam,this.allCtaActions={},this.skippedPlayerComponents=[],this.allPlayerComponents=[],this.renderedAnnotations={},this.renderedCrmForms={},this.planParams={},this.previousSecond=-1,this.numAnnotations=0,this.numQuestions=0,this.current_poll_num=-1,this.current_poll_length=-1,this.embedFormAdded=!1,this.callToActionAdded=!1,this.formAdded=!1,this.questionAdded=!1,this.endScreenAdded=!1,this.endCardAdded=!1,this.ctaStarted=!1,this.showSimpleEdit=!1,this.allVideoLinksHasNext=!1,this.allVideoLinkLoading=!1,this.email=R()("#userEmail").val(),this.planType=R()("#planType").val(),this.segment=R()("#individualSegment").val(),this.brandingInfo={},this.deleteCTAConfirm=this.deleteCTAConfirm.bind(this),this._handleCtaVideoPlay=this._handleCtaVideoPlay.bind(this),this.initializePlayerComps=this.initializePlayerComps.bind(this),this._showHideSkippedPlayerComponents=this._showHideSkippedPlayerComponents.bind(this),this._selectEndScreenVideo=this._selectEndScreenVideo.bind(this),this._showHideAllPlayerComponents=this._showHideAllPlayerComponents.bind(this),this.setCTAStatus=this.setCTAStatus.bind(this),this.initTimeLineBar=this.initTimeLineBar.bind(this),this.getDuration=this.getDuration.bind(this),this.getCurrentTime=this.getCurrentTime.bind(this),this.startPlaying=this.startPlaying.bind(this),this._handleSeeked=this._handleSeeked.bind(this),this.pingForUploadStatus=this.pingForUploadStatus.bind(this),this._handleProgressBtnHover=this._handleProgressBtnHover.bind(this),this._handleProgressBtnLeave=this._handleProgressBtnLeave.bind(this),this._handleCanvasMouseAction=this._handleCanvasMouseAction.bind(this),this.openCompBasedOnParam=this.openCompBasedOnParam.bind(this),this._pardotInitialize=this._pardotInitialize.bind(this),this._handleCtaVideoEnded=this._handleCtaVideoEnded.bind(this),this._showHideCta=this._showHideCta.bind(this),this.changeButtonColor=this.changeButtonColor.bind(this),this.atWhoValues=["{First Name}","{Company Name}","{Video Url}","{Email}","{Last Name}","{Country}","{City}","{Phone Number}","{Title}","{State}","{Address}"],R()("#floatingButtons").hide(),R()("#downloadAsCsvId").attr("href","/video/export_cta_stats/"+this.assetId),this.isPPR&&this.isNewRecording&&e.getPreviewResponseJson?(this.getPreviewResponseJson=e.getPreviewResponseJson,this.renderFromPPR({getPreviewResponseJson:this.getPreviewResponseJson})):this.startPollingForStatus()},renderFromPPR:function(){var e=this.getPreviewResponseJson;this.user_mf_map=e.user_mf_map,this.src=e.signed_url,this.authorState=e.authorState,this.projectJson=e.projectjson,this.isError=e.isError,this.duration=e.duration,this.thumbnail=e.thumb,e.projectjson&&"2.0"===e.projectjson.version&&(this.showSimpleEdit=!0),this.title=e.title,this.planParams=e.plan_params,this.hubspotForms=e.hubspot_forms,this.pardotForms=e.pardot_forms,this.hubspotFormsAvailable=!!(this.hubspotForms&&e.hubspot_forms.length>0),this.pardotFormsAvailable=!!(this.pardotForms&&e.pardot_forms.length>0),this.initializeCta()},render:function(){var e=this;(new(y())).getPreview(this.assetId,void 0,(function(t){e.user_mf_map=t.user_mf_map,t.status&&(e.src=t.signed_url,e.authorState=t.authorState,e.projectJson=t.projectjson,e.isError=t.isError,e.duration=t.duration,e.thumbnail=t.thumb||t.video_thumbnail_link,t.projectjson&&"2.0"===t.projectjson.version&&(e.showSimpleEdit=!0),e.title=t.title,e.planParams=t.plan_params,e.hubspotForms=t.hubspot_forms,e.pardotForms=t.pardot_forms,e.hubspotFormsAvailable=t.hubspot_forms.length>0,e.pardotFormsAvailable=t.pardot_forms.length>0,e.initializeCta())}))},startPollingForStatus:function(){this.pollTimeout=(new Date).getTime()/1e3+1800,this.pollErrorCount=0,this.pingForUploadStatus()},pingForUploadStatus:function(){if(!((new Date).getTime()/1e3>this.pollTimeout)){var e=this;at().statusOf(void 0,void 0,this.assetId,$e().MERGE_RENDER_REQUEST,(function(t){null==t.status||53==t.status?(e.render(),e.ctaProgressLoader&&!e.isPPR&&(e.ctaProgressLoader.updateProgress(100),e.ctaProgressLoader.remove())):(null!=e.ctaProgressLoader||e.isPPR?null==e.ctaProgressLoader&&e.isPPR&&(e.ctaProgressLoader={render:function(){},updateValues:function(){},updateProgress:function(){},remove:function(){}}):(e.ctaProgressLoader=new st.default({showAsModal:!0,id:"progressLoader"}),e.ctaProgressLoader.render(),e.ctaProgressLoader.updateValues(0,T().pleaseWait)),"error"==t.status?(e.isPPR||e.ctaProgressLoader.updateValues(0,T().pleaseWait),e.pollErrorCount++,e.pollErrorCount<=4&&setTimeout(e.pingForUploadStatus,3e3)):50==t.status?(e.isPPR||e.ctaProgressLoader.updateValues(25,t.data.text),setTimeout(e.pingForUploadStatus,3e3)):51!=t.status&&52!=t.status||(e.isPPR||e.ctaProgressLoader.updateValues(50,t.data.text),setTimeout(e.pingForUploadStatus,3e3)))}))}},initializeCta:function(){this._openVideoPlayer(),this.isPPR||(R()(".wiz-top-bar").slideUp(),R()(".hv-leftnav-wrapper").hide(),R()(".highscreen-message").slideUp());var e=R()(".cta-left-panel").width()*(9/16);R()("#ctaPlayerBox .hippo-video-player").height(e),R()("#ctaComponent").height(e),R()("#ctaComponent").removeClass("hide"),this.showTimeLine(),this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").height(e),this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","transparent"),R()("#ctaPlayerComponent").height(e),R()("#ctaPlayerComponent").addClass("hide"),R()("#ctaVideoTitle").text(this.title),this.isPPR?R()("#videoActionsLoadingIsppr").hide():g.default.hide_page_loading()},_getVideoUrlFromHtml:function(){var e=document.querySelector("video#current-screen-recorded");return e?e.src:null},_getAudioSrcFromHtml:function(){return R()("video#hippo-overlay-screenrecord").length>0&&R()("video#hippo-overlay-screenrecord")[0].src||R()("video#hippo-overlay-screenrecord-home").length>0&&R()("video#hippo-overlay-screenrecord-home")[0].src||R()("video#hippo-overlay-screenrecord").length>1&&R()("video#hippo-overlay-screenrecord")[1].src||R()("video#hippo-overlay-screenrecord-home").length>1&&R()("video#hippo-overlay-screenrecord-home")[1].src},_getAudioSrc:function({isCurrentlyRecordedPreview:e,recordConfiguration:t,src:i}){if(e){if(t&&!t.screenRecord)return;return this._getAudioSrcFromHtml()}return i?void 0:getAudioSrcFromHtml()},_openVideoPlayer:function(){this.ctaVideoPlayerView=new(Je())({el:"#ctaPlayerBox",id:"cta-test-video",src:this.src||this._getVideoUrlFromHtml(),audioSrc:this._getAudioSrc({isCurrentlyRecordedPreview:this.isCurrentlyRecordedPreview,recordConfiguration:this.recordConfiguration,src:this.src}),authorState:this.authorState,isError:this.isError,duration:this.duration,thumbnail:this.thumbnail,fullscreenControl:!1,showLogo:!1,showSetFrame:!0,showHoverActions:!1,isMirrorWebCam:this.isMirrorWebCam}),this.ctaVideoPlayerView.show(),this.ctaVideoPlayerView.$el.find(".play-btn-container").fadeOut(100),this.ctaVideoPlayerView.$el.find(".replay-btn-container").fadeOut(100),this.ctaVideoPlayerView.$el.find(".cta-indicator").removeClass("hide"),this.ctaVideoPlayerView.mediaPlayer.addEventListener("play",this.startPlaying,!1),this.ctaVideoPlayerView.undelegateHoverActions(),this.ctaVideoPlayerView.showPlayerControls()},initTimeLineBar:function(){var e=this.getDuration(),t=[];for(var i in this.allCtaActions){var a=this.allCtaActions[i];for(var s in a){var o=parseInt(i),n=parseInt(s);if([b().cta.CALL_TO_ACTION,b().cta.FORM,b().cta.QUESTION,b().cta.EMBED_CRM_FORM,b().cta.CTA_MEETING].includes(n)){var l={cta_type:n,time_to_show:o};t.push(l);var r=a[s];if(n==b().cta.EMBED_CRM_FORM&&!r.allow_play){var d=nt().sanitize(r.embed_form,g.default.getDOMPurifyConfig());r.embed_form=d}}else n==b().cta.ANNOTATION?(l={cta_type:n,time_to_show:i,time_to_hide:a[s].time_to_hide},t.push(l)):n==b().cta.END_SCREEN&&(l={cta_type:n,time_to_show:a[s].last_num_seconds},t.push(l))}}Ge.Z.initCtaIndicators(this.ctaVideoPlayerView.$el.find("#ctaIndicatorInner"),t,e)},viewTimeLineList:function(){R()("#ctaComponent").empty();var e={option:b().cta.TIMELINE_LIST,numAnnotations:this.numAnnotations,numQuestions:this.numQuestions,callToActionAdded:this.callToActionAdded,formAdded:this.formAdded,questionAdded:this.questionAdded,endScreenAdded:this.endScreenAdded,embedFormAdded:this.embedFormAdded,endCardAdded:this.endCardAdded,planType:this.planType};R()("#ctaComponent").append(Ye()(r.default.extend({},b(),C.videoI18N_v2,e,this.planParams)))},initializePlayerComps:function(){var e=this.ctaVideoPlayerView.$el.find("#ctaPlayerComps");Ge.Z.renderCtaPlayerComps(e,this.allCtaActions,this.skippedPlayerComponents,this.allPlayerComponents)},showTimeLine:function(){var e=this,t={asset_id:this.assetId,notDelivery:!0};this.setDefaultCTAStatus(),this.ctaModel.getAllCTA(t,(function(t){for(var i in e.allCtaActions=t.all_cta_actions,e.initTimeLineBar(),e.is_mailchimp_configured=t.is_mailchimp_configured,e.brandingInfo=t.branding_info,e.initializePlayerComps(),e.numAnnotations=0,e.numQuestions=0,e.isPPR&&v().trigger("reactStoreDispatch",{actionName:"setCTACount",payload:{cta_count:(t.actions||[]).length}}),t.actions){var a=t.actions[i],s=a.type;e.setCTAStatus(s,!0),s==b().cta.ANNOTATION&&(e.numAnnotations=e.numAnnotations+1),s==b().cta.QUESTION&&(e.numQuestions=e.numQuestions+1),s==b().cta.CTA_MEETING&&(a.field_name=a.display_data&&a.display_data.field_name&&a.display_data.field_name.content.ops[0].insert)}e.openCompBasedOnParam(),R()("#ctaTimeline").empty(),R()("#ctaTimeline").append(Xe()(r.default.extend({},b(),C.videoI18N_v2,t)))}))},openCompBasedOnParam:function(){var e=g.default.getParameterByName("compType");if(null==e)this.viewTimeLineList();else{e=parseInt(e);var t={};for(var i in this.allCtaActions){var a=this.allCtaActions[i];if(a[e]){(t=a[e]).status=!0,this.isEditMode=!0;break}}t.hubspotFormsAvailable=this.hubspotFormsAvailable,t.hubspotForms=this.hubspotForms,t.hubspotFormsText=C.videoI18N_v2.ctaActions.hubspotForms,t.pardotFormsAvailable=this.pardotFormsAvailable,t.pardotForms=this.pardotForms,t.pardotFormsText=C.videoI18N_v2.ctaActions.pardotForms,t.selectText=C.videoI18N_v2.ctaActions.select,e==b().cta.ANNOTATION&&this.planParams.video_cta.features.annotation?this.openAnnotationComp():e==b().cta.CALL_TO_ACTION&&this.planParams.video_cta.features.call_to_action?this.openCallToActionComp(t):e==b().cta.FORM&&this.planParams.video_cta.features.lead_gen_form?this.openFormComp(t):e==b().cta.QUESTION&&this.planParams.video_cta.features.cta_poll?this.openQuestionComp():e==b().cta.END_SCREEN&&this.planParams.video_cta.features.promote_playlist?this.openEndScreenComp(t):e==b().cta.EMBED_CRM_FORM&&this.planParams.video_cta.features.custom_crm_form?this.openEmbedCrmForm():e==b().cta.CTA_MEETING&&this.planParams.video_cta.features.cta_meeting?this.openEndCardComp(t):this.viewTimeLineList(),history.replaceState(void 0,"","/video/cta/"+this.assetId)}},setCTAStatus:function(e,t){e==b().cta.CALL_TO_ACTION?this.callToActionAdded=t:e==b().cta.FORM?this.formAdded=t:e==b().cta.END_SCREEN?this.endScreenAdded=t:e==b().cta.CTA_MEETING&&(this.endCardAdded=t)},setDefaultCTAStatus:function(){var e=!1;this.callToActionAdded=e,this.formAdded=e,this.endScreenAdded=e,this.endCardAdded=e},addAtWhoValues:function(e){switch(e){case b().cta.ANNOTATION:var t=["annotationText","annotationUrl"];this.addAtwhoActionToId(t);break;case b().cta.CALL_TO_ACTION:t=["ctaText","ctaTextLink","htmlContent","ctaImageLink"],this.addAtwhoActionToId(t);break;case b().cta.FORM:t=["upperText","lowerText","leadGenBtnText"],this.addAtwhoActionToId(t);break;case b().cta.QUESTION:t=["questionTxt","option1Txt","option2Txt","option3Txt","option4Txt","pollBtnText"],this.addAtwhoActionToId(t);break;case b().cta.END_SCREEN:break;case b().cta.EMBED_CRM_FORM:t=["embedFormContent"],this.addAtwhoActionToId(t);break;case b().cta.CTA_MEETING:t=["fieldNameTxt","ctaEndCardTxt","endCardButtonTxt","endCardButtonLink"],this.addAtwhoActionToId(t);break;default:return}},addAtwhoActionToId:function(e){let t=this.atWhoValues;for(var i=0,a=this;i<e.length;)this.$el.find("#"+e[i]).atwho({at:"$",data:t,limit:t.length}).on("inserted.atwho",(function(e){a.$el.find("#"+e.currentTarget.id).keyup()})),i++},openAnnotationComp:function(e,t){var i={option:b().cta.ANNOTATION};this.openComponent(e,i,t),R()("#annotationText").focus(),R()("#ctaPlayerComponent").css("background","transparent")},openCallToActionComp:function(e,t){if(null==e.status&&this.callToActionAdded){var i=C.videoI18N_v2.ctaActions.youCantAddCTA;g.default.showBannerAlert(i,2e3)}else{var a={option:b().cta.CALL_TO_ACTION,hubspotFormsAvailable:this.hubspotFormsAvailable,pardotFormsAvailable:this.pardotFormsAvailable,hubspotForms:this.hubspotForms,pardotForms:this.pardotForms,hubspotFormsText:C.videoI18N_v2.ctaActions.hubspotForms,pardotFormsText:C.videoI18N_v2.ctaActions.pardotForms,selectText:C.videoI18N_v2.ctaActions.select};if(null==e.status&&(a.allow_skip=!0),this.ctaImageUploaded=!1,this.bgHubSwitch=!!R()("#hubspotFormBackground").is(":checked"),this.openComponent(e,a,t),R()("#callToActionType").select2({theme:"hippocategory"}),R()("#ctaText").focus(),e&&e.action_type&&e.action_type>=b().cta.actionType.HUBSPOT)R()("#hubspotFormIds").val(e.form_id),"true"===e.bg_theme?(R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)"),R()("#ctaPlayerComponent .cta-player-skip").removeClass("cta-skip-inverse"),R()("#hubspotFormBackground").prop("checked",!0)):(R()("#ctaPlayerComponent").css("background","rgba(255,255,255,0.7)"),R()("#ctaPlayerComponent .cta-player-skip").addClass("cta-skip-inverse"),R()("#hubspotFormBackground").prop("checked",!1));else if(e&&e.action_type&&e.action_type>=b().cta.actionType.PARDOT)R()("#ctaPlayerComponent").css("background","rgba(255,255,255,0.7)"),R()("#pardotFormIds").val(e.form_id);else if(e&&e.action_type&&e.action_type>=b().cta.actionType.IMAGE){var s=R()("#ctaPlayerComponent #ctaPlayerImageLink").width()*(9/16);R()("#ctaPlayerComponent #ctaPlayerImage").css({"max-height":s}),R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)")}else R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)")}},hubspotBackgroundSwitch:function(){this.bgHubSwitch=!!R()("#hubspotFormBackground").is(":checked"),R()("#hubspotFormBackground").is(":checked")?(R()("#ctaPlayerComponent").css("background","rgba(255,255,255,0.7)"),R()("#ctaPlayerComponent .cta-player-skip").addClass("cta-skip-inverse"),this.fbgHubSwitch=!!R()("#hubspotFormBackground").is(":checked")):(R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)"),R()("#ctaPlayerComponent .cta-player-skip").removeClass("cta-skip-inverse"),this.tbgHubSwitch=!!R()("#hubspotFormBackground").is(":checked"))},embedCrmBackgroundSwitch:function(){R()("#embedFormBackground").is(":checked")?(R()("#ctaPlayerComponent").css("background","rgba(255,255,255,0.7)"),R()("#ctaPlayerComponent .cta-player-skip").addClass("cta-skip-inverse")):(R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)"),R()("#ctaPlayerComponent .cta-player-skip").removeClass("cta-skip-inverse"))},openFormComp:function(e,t){if(null==e.status&&this.formAdded){var i=C.videoI18N_v2.ctaActions.youCantAddForm;g.default.showBannerAlert(i,2e3)}else{var a={option:b().cta.FORM};e&&null==e.status&&(a.ask_phone=!0,a.ask_company=!0,a.ask_phone_company=!0,a.allow_skip=!0,a.from_add=!0),this.openComponent(e,a,t),this.editFormClick=!0,R()("#upperText").focus(),R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)")}},openQuestionComp:function(e){if(null!=e&&null==e.status&&this.questionAdded){var t=C.videoI18N_v2.ctaActions.youCantAddQuestion;g.default.showBannerAlert(t,2e3)}else{var i={option:b().cta.QUESTION};e&&null==e.status&&(i.allow_skip=!0),this.openComponent(e,i),R()("#questionTxt").focus(),R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)")}},openEndScreenComp:function(e,t){if(this.getDuration()<=20)g.default.showBannerAlert(C.videoI18N_v2.ctaActions.youCantAddEndScreen,3e3);else if(null==e.status&&this.endScreenAdded){var i=C.videoI18N_v2.ctaActions.youCantAddSecondEndScreen;g.default.showBannerAlert(i,2e3)}else{var a={option:b().cta.END_SCREEN};this.openComponent(e,a,t),R()("#ctaPlayerComponent").css("background","transparent")}},openEmbedCrmForm:function(e,t){if(null!=e&&null==e.status&&this.embedFormAdded){var i=C.videoI18N_v2.ctaActions.youCantAddEmbedForm;g.default.showBannerAlert(i,2e3)}else{var a={option:b().cta.EMBED_CRM_FORM,title:C.videoI18N_v2.ctaActions.embedCrmForm,desc:C.videoI18N_v2.ctaActions.embedCrmFormDesc};"4"==this.planType&&"Sales"==this.segment&&(a.title=C.videoI18N_v2.ctaActions.embedCrmFormSales,a.desc=C.videoI18N_v2.ctaActions.embedCrmFormDescSales),null!=e&&null!=e.allow_play||(a.allow_play=!0),null!=e&&null!=e.skip_allowed||(a.skip_allowed=!0),this.openComponent(e,a,t),"true"===e.bg_theme?(R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)"),R()("#ctaPlayerComponent .cta-player-skip").removeClass("cta-skip-inverse"),R()("#embedFormBackground").prop("checked",!0)):(R()("#ctaPlayerComponent").css("background","rgba(255,255,255,0.7)"),R()("#ctaPlayerComponent .cta-player-skip").addClass("cta-skip-inverse"),R()("#embedFormBackground").prop("checked",!1)),R()("#ctaText").focus()}},openEndCardComp:function(e){if(null==e.status&&this.endCardAdded){var t=C.videoI18N_v2.ctaActions.youCantAddEndCard;g.default.showBannerAlert(t,2e3)}else{var i={option:b().cta.CTA_MEETING},a=this.getDuration();this.openComponent(e,i,a),R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)")}},openComponent:function(e,t,i){if(R()("#ctaComponent").empty(),R()("#ctaPlayerComponent").empty(),R()("#ctaPlayerComponent").removeClass("hide"),this.ctaVideoPlayerView.pause(),this.isEdited=!0,this.ctaVideoPlayerView.setCTAWaitingMode(!0),e&&null==e.status&&(g.default.trackInDB("Open CTA-"+t.option,this.email),e={},null==i&&(i=this.getCurrentTime()),isNaN(i)&&(i=0),t.option==b().cta.ANNOTATION?(i=g.default.strToTimeWithHr(i),e.startTime=i,e.endTime=i):(i=g.default.strToTimeWithHr(i),e.time=i)),e&&t.option==b().cta.FORM&&(e.is_mailchimp_configured=this.is_mailchimp_configured,e.already_subscribed&&(this.selectedList=e.mailing_list_id,this.selectedSubgroups=e.mailing_subgroups,this.mailchimpServiceUid=e.service_uid)),t.option==b().cta.END_SCREEN){var a,s=this.getDuration();a=e&&null==e.status?s-5:s-e.last_num_seconds,!isNaN(a)&&isFinite(a)||(a=0),this.ctaVideoPlayerView.mediaPlayer.currentTime=a,this.ctaVideoPlayerView.play(),this.ctaVideoPlayerView.pause()}if(t.planType=this.planType,R()("#ctaComponent").append(Ye()(r.default.extend({},b(),C.videoI18N_v2,t,e))),R()("#ctaPlayerComponent").append(tt()(r.default.extend({},b(),C.videoI18N_v2,t,e))),e&&e.display_data){var o=this;R()("#ctaAddPanel").on("click",(function(e){o.handleDocumentClick(e)})),this.intializeQuillListeners()}else t.option==b().cta.CTA_MEETING&&(o=this,R()("#ctaAddPanel").on("click",(function(e){o.handleDocumentClick(e)})),this.intializeQuillListeners());if(t.option==b().cta.CTA_MEETING){var n=e&&e.display_data;Ge.Z.initializeFieldQuillEditors(n,!0,this.brandingInfo,{},!1,this.user_mf_map)}this.ctaType=t.option,this._setPlayerTime(),R()("html, body").animate({scrollTop:0},"slow"),this.addAtWhoValues(t.option)},intializeQuillListeners:function(){this.delegate("click","#field_name",this._changeFieldName),this.delegate("click","#cta_text",this._changeCtaText),this.delegate("click","#button_text",this._changeCtaButtonText),this.delegate("click","#mergeFieldSelectId",this.clickInsertMergeFields)},_changeFieldName:function(){R()(".cta-editor-toolbar .ql-toolbar").addClass("disp-none"),R()("#field_name_toolbar").removeClass("disp-none"),R()("#globalCtaSaveId").removeClass("disabled-save")},_changeCtaText:function(){R()(".cta-editor-toolbar .ql-toolbar").addClass("disp-none"),R()("#cta_text_toolbar").removeClass("disp-none"),R()("#globalCtaSaveId").removeClass("disabled-save")},_changeCtaButtonText:function(){R()(".cta-editor-toolbar .ql-toolbar").addClass("disp-none"),R()("#button_text_toolbar").removeClass("disp-none"),R()("#globalCtaSaveId").removeClass("disabled-save")},handleDocumentClick:function(e){3!=R()(".has-quill-toolbar").length||R()(".has-quill-toolbar")[0].contains(e.target)||R()(".has-quill-toolbar")[1].contains(e.target)||R()(".has-quill-toolbar")[2].contains(e.target)||R()(".cta-right-box .ql-toolbar").addClass("disp-none")},clickInsertMergeFields:function(){R()(".vp-usermf-container").toggleClass("hide")},saveAnnotation:function(){var e=R()("#annotationText").val().trim();if(0==e.length)return R()("#annotationTextAlert").removeClass("hide"),void R()("#annotationText").focus();var t=R()("#annotationUrl").val().trim();if(0==t.length)return R()("#annotationUrl").focus(),void R()("#annotationUrlAlert").removeClass("hide");var i=R()("#startTime").val(),a=R()("#endTime").val(),s=g.default.getSeconds(a);if(g.default.getSeconds(i)>s)g.default.showBannerAlert(T().endTimeGreater,3e3,"error");else{var o={asset_id:this.assetId,cta_type:b().cta.ANNOTATION,text:e,url:t,st:i,et:a};this.addOrUpdateCTAComp(o)}},saveCallToAction:function(){var e=parseInt(R()("#callToActionType option:selected").val()),t={asset_id:this.assetId,cta_type:b().cta.CALL_TO_ACTION,action_type:e};if(e==b().cta.actionType.HTML){var i=R()("#htmlContent").val().trim();t.cta_text=i}else if(e==b().cta.actionType.IMAGE){if(this.ctaImageUploaded){var a=R()("#ctaImage").attr("src");t.cta_image=a}else if(!this.isEditMode)return R()("#callToActionImageAlert").removeClass("hide"),void g.default.showBannerAlert(C.videoI18N_v2.ctaActions.selectAnyCtaImage,3e3);var s=R()("#ctaImageLink").val().trim();t.cta_link=s}else if(e==b().cta.actionType.TEXT){var o=R()("#ctaText").val().trim();if(0==o.length)return R()("#ctaTextAlert").removeClass("hide"),void R()("#ctaText").focus();if(0==(s=R()("#ctaTextLink").val().trim()).length)return R()("#ctaTextLinkAlert").removeClass("hide"),void R()("#ctaTextLink").focus();t.cta_text=o,t.cta_link=s}else if(e==b().cta.actionType.HUBSPOT){if(this.hubspotFormsAvailable){if(R()("#hubspotFormIds").val()==C.videoI18N_v2.ctaActions.select)return u.default.showBannerAlert(C.videoI18N_v2.ctaActions.formIsEmpty,2500,"error"),void R()("#hubspotFormIds").focus();t.portal_id=this.hubspotForms[0].account_id,t.form_id=R()("#hubspotFormIds").val()}else{var n=R()("#portalIdTxt").val().trim(),l=R()("#formIdTxt").val().trim();if(0==n.length)return u.default.showBannerAlert(C.videoI18N_v2.ctaActions.portalIdIsEmpty,2500,"error"),void R()("#portalIdTxt").focus();if(0==l.length)return u.default.showBannerAlert(C.videoI18N_v2.ctaActions.formIdIsEmpty,2500,"error"),void R()("#formIdTxt").focus();t.portal_id=n,t.form_id=l}if(1==R()("#hubspotFormBackground").prop("checked"))var r=!0;else r=!1;t.bg_theme=r;var d=R()("#allowSkipCheck").prop("checked");t.skip_allowed=d}else if(e==b().cta.actionType.PARDOT&&this.pardotFormsAvailable){if(R()("#pardotFormIds").val()==C.videoI18N_v2.ctaActions.select)return u.default.showBannerAlert(C.videoI18N_v2.ctaActions.pardotFormIsEmpty,2500,"error"),void R()("#pardotFormIds").focus();var c=R()("#pardotFormIds option:selected");t.form_id=c.val(),t.embedCode=c.data("target"),console.log(t)}var h=R()("#startTime").val().trim();t.cta_time=h,this.addOrUpdateCTAComp(t)},saveForm:function(){var e=R()("#askPhoneCheck").prop("checked"),t=R()("#askCompanyCheck").prop("checked"),i=R()("#allowSkipCheck").prop("checked"),a=R()("#upperText").val().trim(),s=R()("#hubspotFormBackground").prop("checked");if(0==a.length)return R()("#upperTextAlert").removeClass("hide"),void R()("#upperText").focus();var o=R()("#leadGenBtnText").val().trim(),n=R()("#paletteColorBox[data-idx=0]").css("background-color");n&&(n=g.default.convertRGBAToHex(n));var l=R()("#lowerText").val().trim(),r=R()("#startTime").val(),d={asset_id:this.assetId,cta_type:b().cta.FORM,ut:a,lt:l,ask_phone:e,ask_company:t,skip_allowed:i,cta_time:r,button_text:o,button_color:n,bg_theme:s};if(this.selectedList){d.mail_service="mailchimp",d.mailing_list=this.selectedList,d.mailing_subgroups=this.selectedSubgroups;var c=R()("#subscribeToMailingList").attr("data-uid");d.mailing_account_id=null==c?this.mailchimpServiceUid:c,this.resetMailchimpDetails()}this.addOrUpdateCTAComp(d)},saveQuestion:function(){var e=R()("#allowSkipCheck").prop("checked"),t=R()("#questionTxt").val().trim();if(0==t.length)return R()("#questionAlert").removeClass("hide"),void R()("#questionTxt").focus();var i=R()("#option1Txt").val().trim();if(0==i.length)return R()("#option1Alert").removeClass("hide"),void R()("#option1Txt").focus();var a=R()("#option2Txt").val().trim();if(0==a.length)return R()("#option2Alert").removeClass("hide"),void R()("#option2Txt").focus();var s=R()("#pollBtnText").val().trim(),o=R()("#option3Txt").val().trim(),n=R()("#option4Txt").val().trim(),l=R()("#startTime").val(),r={asset_id:this.assetId,cta_type:b().cta.QUESTION,question:t,op1:i,op2:a,skip_allowed:e,cta_time:l,button_text:s};o.length>0&&(r.op3=o),n.length>0&&(r.op4=n),this.addOrUpdateCTAComp(r)},saveEndScreen:function(){var e=R()("#endScreenVideoId").val();if(this.getDuration()<=20)g.default.showBannerAlert(C.videoI18N_v2.ctaActions.youCantAddEndScreen,3e3);else if(0!=e.length){var t=R()("#lastNumSeconds option:selected").val(),i={asset_id:this.assetId,cta_type:b().cta.END_SCREEN,cta_time:t,video_id:e};this.addOrUpdateCTAComp(i)}else g.default.showBannerAlert(C.videoI18N_v2.ctaActions.selectAnyVideoForEndScreen,3e3)},saveEmbedCrmForm:function(){var e={asset_id:this.assetId,cta_type:b().cta.EMBED_CRM_FORM},t=R()("#embedFormContent").val().trim();if(0!=t.length){e.embed_form=t;var i=R()("#startTime").val().trim();e.cta_time=i;var a=R()("#allowPlayCheck").is(":checked");if(e.allow_play=a,0==a){var s=R()("#endTime").val().trim();e.end_time=s}else{var o=R()("#allowSkipCheck").is(":checked");e.skip_allowed=o}var n=!1;1==R()("#embedFormBackground").prop("checked")&&(n=!0),e.bg_theme=n,this.addOrUpdateCTAComp(e)}else R()("#embedFormContentAlert").removeClass("hide")},changeButtonColor:function(e){Ge.Z.changeButtonColor(this.brandingInfo)},saveEndCard:function(){var e=Ge.Z.editorsJson.field_name.quillEditor.getContents(),t=Ge.Z.editorsJson.field_name.getEditor().getLength()-1,i=Ge.Z.editorsJson.cta_text.quillEditor.getContents(),a=Ge.Z.editorsJson.button_text.quillEditor.getContents(),s=Ge.Z.editorsJson.button_text.getEditor().getLength()-1,o=R()("#endCardButtonLink").val().trim(),n=R()("#paletteColorBox[data-idx=0]").css("background-color");if(n&&(n=g.default.convertRGBAToHex(n)),0==t)return R()("#fieldNameAlert").removeClass("hide"),void R()("#fieldNameTxt").focus();if(0==s)return R()("#buttonTextAlert").removeClass("hide"),void R()("#buttonText").focus();if(0==o.length)return R()("#buttonLinkAlert").removeClass("hide"),void R()("#buttonLink").focus();var l=o.split(":");if("mailto"==l[0]){var r=l[1],d=r.split("?");if(r=d[0],!/^\w+([\.+_-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,5})+$/.test(r))return void alert("Please enter a valid email id.")}var c={};c.field_name={content:{ops:e.ops}},c.cta_text={content:{ops:i.ops}},c.button_text={content:{ops:a.ops}},c.button_color=n;var u=R()("#is_global").val(),h={asset_id:this.assetId,cta_type:b().cta.CTA_MEETING,display_data:JSON.stringify(c),button_link:o,is_global:u};this.addOrUpdateCTAComp(h)},addOrUpdateCTAComp:function(e){var t=e.cta_time,i=e.st;if(e.cta_type!=b().cta.END_SCREEN&&(t&&!g.default.validateTime(t)||i&&!g.default.validateTime(i)))g.default.showBannerAlert(T().correctStartTime,3e3,"error");else{var a=e.et;if(!a||g.default.validateTime(a)){var s=R()("#cta_id").val();0==s.length?this.addCTAComp(e):(e.cta_id=s,this.updateCTAComp(e)),this.ctaVideoPlayerView.setCTAWaitingMode(!1),g.default.trackInDB("Save CTA-"+e.cta_type,this.email)}else g.default.showBannerAlert(T().correctEndTime,3e3,"error")}},addCTAComp:function(e){var t=this;this.ctaModel.addCTA(e,(function(i){if(i.status){var a={option:b().cta.SUCCESS_MSG};t.openComponent(void 0,a),setTimeout((function(){t.resetTimeline(),t.showTimeLine(),t.setCTAStatus(e.cta_type,!0)}),1600),g.default.trackInThirdPartyTools("Add CTA Component",{email:this.userEmail},!0)}else 101==i.error_code&&t.errorOnUpdate(e.cta_type,e.action_type),g.default.showBannerAlert(i.msg,3e3);e.cta_type==b().cta.CTA_MEETING&&g.default.trackInThirdPartyTools("Meeting link Added")}),(function(e){g.default.showBannerAlert(T().somethingWentWrong,3e3)}))},updateCTAComp:function(e){var t=this;this.ctaModel.updateCTA(e,(function(i){if(i.status){var a={option:b().cta.SUCCESS_MSG};t.openComponent(void 0,a),setTimeout((function(){t.resetTimeline(),t.showTimeLine()}),1600)}else 101==i.error_code&&t.errorOnUpdate(e.cta_type,e.action_type),g.default.showBannerAlert(i.msg,3e3)}),(function(e){g.default.showBannerAlert(T().somethingWentWrong,3e3)}))},errorOnUpdate:function(e,t){e==b().cta.ANNOTATION?(R()("#annotationUrl").focus(),R()("#annotationUrl").addClass("wrong-value-alert")):e==b().cta.CALL_TO_ACTION?t==b().cta.actionType.TEXT?(R()("#ctaTextLink").focus(),R()("#ctaTextLink").addClass("wrong-value-alert")):t==b().cta.actionType.IMAGE&&(R()("#ctaImageLink").focus(),R()("#ctaImageLink").addClass("wrong-value-alert")):e==b().cta.CTA_MEETING&&(R()("#endCardButtonLink").focus(),R()("#endCardButtonLink").addClass("wrong-value-alert"))},cancelCtaComp:function(){this.viewTimeLineList(),this.resetTimeline(),this.resetMailchimpDetails(),g.default.trackInDB("Cancel CTA",this.email)},resetTimeline:function(){this.isEditMode=!1,this._showHideAllPlayerComponents(),this.ctaVideoPlayerView.setCTAWaitingMode(!1),this.resetCtaComponent()},resetCtaComponent:function(){this.isEdited=!1,R()("#ctaPlayerComponent").empty(),this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","transparent"),R()("#ctaPlayerComponent").addClass("hide"),R()("#ctaPlayerComponent").css("background","transparent")},_selectCtaContent:function(e,t){var i=this,a=parseInt(R()("#callToActionType option:selected").val());t&&(a=t),R()(".call-to-action-add-comp").addClass("hide"),R()("#ctaPlayerComponent .call-to-action-player-content").addClass("hide"),R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)"),R()("#ctaPlayerComponent .cta-player-skip").removeClass("cta-skip-inverse"),R()("#skipAllowedCheckForCTA").addClass("hide"),R()("#ctaPlayerComponent #ctaPlayerCTASkipBtn").removeClass("hide"),a==b().cta.actionType.HTML?(R()("#ctaHtmlContent").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerHtmlContent").removeClass("hide")):a==b().cta.actionType.IMAGE?(R()("#ctaImageContent").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerImageLink").removeClass("hide")):a==b().cta.actionType.TEXT?(R()("#ctaTextContent").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerTextContent").removeClass("hide")):a==b().cta.actionType.HUBSPOT?(R()("#ctaPlayerComponent").css("background","rgba(255,255,255,0.7)"),R()("#ctaHubspotContent").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerIntegContent").removeClass("hide"),R()("#ctaPlayerComponent .cta-player-skip").addClass("cta-skip-inverse"),R()("#skipAllowedCheckForCTA").removeClass("hide"),R()("#allowSkipCheck").is(":checked")?R()("#ctaPlayerComponent #ctaPlayerCTASkipBtn").removeClass("hide"):R()("#ctaPlayerComponent #ctaPlayerCTASkipBtn").addClass("hide")):a==b().cta.actionType.PARDOT&&(new(y())).checkIntegration(b().organization.PARDOT_ID,(function(e){e.status?(R()("#ctaPlayerComponent").css("background","rgba(255,255,255,0.7)"),R()("#ctaPardotContent").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerPardotContent").removeClass("hide"),R()("#ctaPlayerComponent .cta-player-skip").addClass("cta-skip-inverse")):i._pardotInitialize()}))},_openCTAUploadImage:function(e){if(R()("#callToActionImageAlert").addClass("hide"),e.target.files&&e.target.files[0]){var t=new FileReader,i=this;t.onload=function(e){R()("#ctaImage").attr("src",e.target.result),R()("#ctaPlayerComponent #ctaPlayerImage").attr("src",e.target.result);var t=R()("#ctaPlayerComponent #ctaPlayerImageLink").width()*(9/16);R()("#ctaPlayerComponent #ctaPlayerImage").css({"max-height":t}),i.ctaImageUploaded=!0},t.readAsDataURL(e.target.files[0])}R()("#uploadLabel").text(C.videoI18N_v2.ctaActions.successfullyUploaded)},_editCTA:function(e){var t=parseInt(R()(e.target).attr("cta-type")),i=R()(e.target).attr("cta-id"),a={cta_type:t,cta_id:i};if(t==b().cta.CTA_MEETING){var s=R()(e.target).attr("is-global");a.is_global=s}this._showHideAllPlayerComponents(""),this.isEditMode=!0;var o=this;this.ctaModel.getCTA(a,(function(e){e.status&&(e.cta_id=i,t==b().cta.ANNOTATION?o.openAnnotationComp(e):t==b().cta.CALL_TO_ACTION?o.openCallToActionComp(e):t==b().cta.FORM?o.openFormComp(e):t==b().cta.QUESTION?o.openQuestionComp(e):t==b().cta.END_SCREEN?o.openEndScreenComp(e):t==b().cta.EMBED_CRM_FORM?o.openEmbedCrmForm(e):t==b().cta.CTA_MEETING&&o.openEndCardComp(e),R()("html, body").animate({scrollTop:0},"slow"))}))},deleteCTA:function(e){this.ctaType=parseInt(R()(e.target).attr("cta-type")),this.ctaId=R()(e.target).attr("cta-id"),this.isGlobal=R()(e.target).attr("is-global");var t=C.videoI18N_v2.ctaActions.allDataWillBeDeleted+" "+C.videoI18N_v2.ctaActions.ctaDeleteConfirm;this.ctaType==b().cta.CTA_MEETING&&"true"==this.isGlobal&&(t=C.videoI18N_v2.ctaActions.youCantDeleteGlobalCta),this.deleteCTAPopup=new(B())({body:t,el:R()("#alertPopUp"),id:"ctaDeletePanel",showConfirm:!0,showInfo:!1,yesText:T().yes,noText:T().no,showIcon:!0,onYes:this.deleteCTAConfirm,size:"small"}),this.deleteCTAPopup.showModal(),R()(".editorColorContainer-cta").hide(),this.isEdited=!1,g.default.trackInDB("Delete CTA Click-"+this.ctaType,this.email)},deleteCTAConfirm:function(){g.default.trackInDB("Delete CTA Confirm-"+this.ctaType,this.email);var e={cta_type:this.ctaType,cta_id:this.ctaId,is_global:this.isGlobal,asset_id:this.assetId},t=this;this.isGlobal=void 0,this.ctaModel.deleteCTA(e,(function(e){e.status&&(t.resetCtaComponent(),t.showTimeLine(),t.setCTAStatus(t.ctaType,!1),t._showHideAllPlayerComponents("")),g.default.showBannerAlert(e.msg,3e3)}),(function(e){g.default.showBannerAlert(T().somethingWentWrong,3e3)}))},endScreenVideoSelect:function(){var e=g.default.getEnvironment();this.thumbDomain="local"==e?window.location.protocol+"//"+window.location.hostname+":"+window.location.port+"/video/thumbnail/":window.location.protocol+"//"+window.location.hostname+"/video/thumbnail/",new pt.default({type:"video",isMultiple:!1,canShowRecentlyUsed:!1,canShowImportFromLocal:!1,canShowVideoLibraryMulti:!0,canShowGdriveImport:!1,fromVideoPages:!0,canShowAddViaLink:!1,isFromVideoPages:!0,pageId:this.pageId,selectedFiles:[],thumbDomain:this.thumbDomain,handleOneFileUpload:!0,maximumFilesAllowed:1,videoOnly:!0,isFromCarousel:!1,onVideoSubmit:this._selectEndScreenVideo,importMediaCallback:this.importMediaCallback,customParams:void 0})},_selectEndScreenVideo:function(e){var t=e.videos[0].asset_id,i=e.videos[0].thumbnail_url,a=e.videos[0].title;R()("#ctaPlayerComponent #ctaPlayerEndScreenImageBtn").removeClass("hide"),R()("#endScreenVideoId").val(t),R()("#ctaPlayerComponent #ctaPlayerEndScreenTitle").text(a),R()("#ctaPlayerComponent #ctaPlayerEndScreenImage").attr("src",i)},startPlaying:function(){this.ctaStarted||(this.ctaVideoPlayerView.setUpdateHandler(this._handleCtaVideoPlay),this.ctaVideoPlayerView.setSeekedHandler(this._handleSeeked),this.ctaVideoPlayerView.setEndedHandler(this._handleCtaVideoEnded),this.ctaStarted=!0)},_handleSeeked:function(){this.previousSecond=this.getCurrentTime()},_handleCtaVideoPlay:function(){if(!this.isEdited&&!this.isLockedForRendering){R()("#ctaPlayerComponent").addClass("hide"),this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").removeClass("hide");var e=parseInt(this.ctaVideoPlayerView.mediaPlayer.currentTime);this.ctaVideoPlayerView.trimStart&&(e-=this.ctaVideoPlayerView.trimStart);var t=(e=Math.round(e)).toString(),i=this.allCtaActions[t],a=!1;if(this.previousSecond!=e&&0==e&&(this._showHideAllPlayerComponents(),this.previousSecond=-1),i){if(-1==this.current_poll_num&&this.previousSecond==e)return;for(var s in this.previousSecond=e,i){var o=parseInt(s),n=i[s],l={};if(o==b().cta.QUESTION?(this.current_poll_num++,this.current_poll_length=n.length,(l=n[this.current_poll_num]).rendered?this.current_poll_num+1==n.length&&(this.current_poll_num=-1):this.isLockedForRendering=!0):(l=n,this.isLockedForRendering=!1),l.is_last_second&&this.current_poll_num==this.current_poll_length)return void(-1!=this.current_poll_num&&videoPlayerView.$el.find(".replay-btn-container").fadeIn());this._showHideCta(l,o,e,this.current_poll_num)}a=!0}a=Ge.Z._checkShowHideRenderedCtas(a,e,this.renderedAnnotations),a=Ge.Z._checkShowHideRenderedCtas(a,e,this.renderedCrmForms),this.endScreenTimeToHide&&this.endScreenTimeToHide>e&&(a=!0),a?this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").removeClass("hide"):this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").addClass("hide")}},_handleCtaVideoEnded:function(){Ge.Z._handleCtaVideoEnded(this.ctaVideoPlayerView,this.allCtaActions,this._showHideCta)},_showHideCta:function(e,t,i,a){if(a||(a=this.current_poll_num),t==b().cta.QUESTION)var s="cta-player-comp-"+t+"-"+a+"-"+i;else s="cta-player-comp-"+t+"-"+i;if(t==b().cta.ANNOTATION){var o=parseInt(e.time_to_hide);this.renderedAnnotations[o]=s,R()("."+s).removeClass("disp-none"),R()("#ctaPlayerComponent").css("background","transparent"),this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","transparent")}else t==b().cta.EMBED_CRM_FORM&&0==e.allow_play?(o=parseInt(e.time_to_hide),this.renderedCrmForms[o]=s,R()("."+s).removeClass("disp-none"),"true"===e.bg_theme?(this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","rgba(0,0,0,0.7)"),this.ctaVideoPlayerView.$el.find("#ctaPlayerCTASkipBtn").removeClass("cta-skip-inverse")):(this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","rgba(255,255,255,0.9)"),this.ctaVideoPlayerView.$el.find("#ctaPlayerCTASkipBtn").addClass("cta-skip-inverse"))):[b().cta.CALL_TO_ACTION,b().cta.FORM,b().cta.QUESTION,b().cta.EMBED_CRM_FORM,b().cta.CTA_MEETING].includes(t)?(this.ctaPlayerCompClass=s,this._showHideSkippedPlayerComponents(s),R()("#ctaPlayerComponent").css("background","rgba(0,0,0,0.7)"),[b().cta.CALL_TO_ACTION,b().cta.EMBED_CRM_FORM].includes(t)&&e.hasOwnProperty("bg_theme")?"true"===e.bg_theme?(this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","rgba(0,0,0,0.7)"),this.ctaVideoPlayerView.$el.find("#ctaPlayerCTASkipBtn").removeClass("cta-skip-inverse")):(this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","rgba(255,255,255,0.9)"),this.ctaVideoPlayerView.$el.find("#ctaPlayerCTASkipBtn").addClass("cta-skip-inverse")):this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","rgba(0,0,0,0.7)"),this.ctaVideoPlayerView.pause(),this.ctaVideoPlayerView.setCTAWaitingMode(!0)):[b().cta.END_SCREEN].includes(t)&&(R()("."+s).removeClass("disp-none"),this.endScreenTimeToHide=i+e.last_num_seconds+1,R()("#ctaPlayerComponent").css("background","transparent"),this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","transparent"));return!1},_showHideSkippedPlayerComponents:function(e){for(var t in this.skippedPlayerComponents){var i=this.skippedPlayerComponents[t];e==i?R()("."+i).removeClass("disp-none"):R()("."+i).addClass("disp-none")}},_showHideAllPlayerComponents:function(e){for(var t in this.endScreenTimeToHide=void 0,this.allPlayerComponents){var i=this.allPlayerComponents[t];e==i?R()("."+i).removeClass("disp-none"):R()("."+i).addClass("disp-none")}},_playFromPlayerComp:function(){this.ctaVideoPlayerView.setCTAWaitingMode(!1),this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","transparent"),this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").addClass("hide");var e=!0;if(""!=this.ctaPlayerCompClass){R()("."+this.ctaPlayerCompClass).addClass("disp-none");var t=parseInt(this.ctaPlayerCompClass.split("-")[3]);t==b().cta.QUESTION&&(e=this.handleQuestionPollQueue(t))}e&&this.ctaVideoPlayerView.play()},_setAnnotationLabelText:function(){R()("#annotationTextAlert").addClass("hide");var e=R()("#annotationText").val();0==e.length&&(e=C.videoI18N_v2.ctaActions.clickOnThisLink),R()("#ctaPlayerComponent #ctaPlayerAnnotationLbl").text(e)},_setCTAText:function(){R()("#ctaTextAlert").addClass("hide");var e=R()("#ctaText").val();R()("#ctaPlayerComponent #ctaPlayerTextContent").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerTextContent").text(e)},_setEmbedFormContent:function(){R()("#embedFormContentAlert").addClass("hide");var e=R()("#embedFormContent").val();if(R()("#allowPlayCheck").is(":checked"))R()("#ctaPlayerComponent #ctaPlayerCrmFormHtml").addClass("hide"),R()("#ctaPlayerComponent #ctaPlayerEmbedForm").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerEmbedForm").attr("srcdoc",e);else{var t=nt().sanitize(e,g.default.getDOMPurifyConfig());R()("#ctaPlayerComponent #ctaPlayerEmbedForm").addClass("hide"),R()("#ctaPlayerComponent #ctaPlayerCrmFormHtml").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerCrmFormHtml").html(t)}},_setCTAUpperText:function(){var e=R()("#upperText").val();0==e.length&&(e=C.videoI18N_v2.ctaActions.enterTheFollowingDetails),R()("#ctaPlayerComponent #ctaPlayerUpperTxt").text(e)},_setCTALowerText:function(){var e=R()("#lowerText").val();0==e.length&&(e=C.videoI18N_v2.ctaActions.formNote),R()("#ctaPlayerComponent #ctaPlayerLowerTxt").text(e)},_setCTAOptionText:function(e){var t=R()(e.target).attr("option-no"),i=R()(e.target).val();if(R()("#ctaPlayerComponent #ctaPlayerOptionLabel"+t).text(i),"3"==t||"4"==t){0==i.length?R()("#ctaPlayerComponent #ctaPlayerQuestionComp"+t).addClass("hide"):R()("#ctaPlayerComponent #ctaPlayerQuestionComp"+t).removeClass("hide");var a=!R()("#ctaPlayerComponent #ctaPlayerQuestionComp3").hasClass("hide"),s=!R()("#ctaPlayerComponent #ctaPlayerQuestionComp4").hasClass("hide");(a||s)&&(a&&s?(R()("#ctaPlayerComponent #ctaPlayerQuestionComp3").removeClass("medium-12"),R()("#ctaPlayerComponent #ctaPlayerQuestionComp3").addClass("medium-6"),R()("#ctaPlayerComponent #ctaPlayerQuestionComp4").removeClass("medium-12"),R()("#ctaPlayerComponent #ctaPlayerQuestionComp4").addClass("medium-6")):a?(R()("#ctaPlayerComponent #ctaPlayerQuestionComp3").addClass("medium-12"),R()("#ctaPlayerComponent #ctaPlayerQuestionComp3").removeClass("medium-6")):s&&(R()("#ctaPlayerComponent #ctaPlayerQuestionComp4").removeClass("medium-12"),R()("#ctaPlayerComponent #ctaPlayerQuestionComp4").addClass("medium-6")))}else 0==i.length?(R()("#option"+t+"Txt").focus(),R()("#option"+t+"Alert").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerOptionLabel"+t).text("Option "+t)):R()("#option"+t+"Alert").addClass("hide")},_setCTAQuestionText:function(){R()("#questionAlert").addClass("hide");var e=R()("#questionTxt").val();0==e.length&&(e=C.videoI18N_v2.ctaActions.ctaQuestion),R()("#ctaPlayerComponent #ctaPlayerQuestion").text(e)},_setPlayerTime:function(){var e=R()("#startTime").val();if(null!=e){var t=g.default.timeToInt(e);if(this._setCurrentPlayerTime(t),-1==e.indexOf(":")||5!=e.length&&7!=e.length){var i=this.getCurrentTime();i=g.default.strToTimeWithHr(i),R()("#startTime").val(i)}}},_setPlayerEndTime:function(){var e=R()("#endTime").val();if(null!=e&&(-1==e.indexOf(":")||5!=e.length&&7!=e.length)){var t=this.getCurrentTime();t=g.default.strToTimeWithHr(t),R()("#endTime").val(t)}},_changePlayerTime:function(){var e=parseInt(R()("#lastNumSeconds option:selected").val());e=this.getDuration()-e,this._setCurrentPlayerTime(e)},_setCurrentPlayerTime:function(e){this.ctaVideoPlayerView.trimStart&&(e+=this.ctaVideoPlayerView.trimStart),!isNaN(e)&&isFinite(e)||(e=0),this.ctaVideoPlayerView.mediaPlayer.currentTime=e,this.ctaVideoPlayerView.play(),this.ctaVideoPlayerView.pause()},_setHTMLContent:function(){var e=R()("#htmlContent").val();R()("#ctaPlayerComponent #ctaPlayerHtmlContent").empty(),R()("#ctaPlayerComponent #ctaPlayerHtmlContent").attr("srcdoc",e)},_showHidePhoneNumber:function(){var e=R()("#askPhoneCheck").is(":checked"),t=R()("#askCompanyCheck").is(":checked");e?(R()("#ctaPlayerComponent #ctaPlayerFormComp4").removeClass("hide"),t?(R()("#ctaPlayerComponent #ctaPlayerFormComp5").removeClass("medium-6"),R()("#ctaPlayerComponent #ctaPlayerFormComp5").addClass("medium-12")):(R()("#ctaPlayerComponent #ctaPlayerFormComp3").removeClass("medium-12"),R()("#ctaPlayerComponent #ctaPlayerFormComp3").addClass("medium-6"))):(R()("#ctaPlayerComponent #ctaPlayerFormComp4").addClass("hide"),t?(R()("#ctaPlayerComponent #ctaPlayerFormComp5").removeClass("medium-12"),R()("#ctaPlayerComponent #ctaPlayerFormComp5").addClass("medium-6")):(R()("#ctaPlayerComponent #ctaPlayerFormComp3").removeClass("medium-6"),R()("#ctaPlayerComponent #ctaPlayerFormComp3").addClass("medium-12")))},_showHideCompanyName:function(){var e=R()("#askPhoneCheck").is(":checked");R()("#askCompanyCheck").is(":checked")?(R()("#ctaPlayerComponent #ctaPlayerFormComp5").removeClass("hide"),e?(R()("#ctaPlayerComponent #ctaPlayerFormComp5").removeClass("medium-6"),R()("#ctaPlayerComponent #ctaPlayerFormComp5").addClass("medium-12")):(R()("#ctaPlayerComponent #ctaPlayerFormComp3").removeClass("medium-12"),R()("#ctaPlayerComponent #ctaPlayerFormComp3").addClass("medium-6"),R()("#ctaPlayerComponent #ctaPlayerFormComp5").removeClass("medium-12"),R()("#ctaPlayerComponent #ctaPlayerFormComp5").addClass("medium-6"))):(R()("#ctaPlayerComponent #ctaPlayerFormComp5").addClass("hide"),e||(R()("#ctaPlayerComponent #ctaPlayerFormComp3").removeClass("medium-6"),R()("#ctaPlayerComponent #ctaPlayerFormComp3").addClass("medium-12")))},_showHideSkip:function(){var e=R()("#allowSkipCheck").is(":checked");if(this.ctaType==b().cta.FORM)var t="ctaPlayerFormSkipBtn";else this.ctaType==b().cta.QUESTION?t="ctaPlayerQuestionSkipBtn":this.ctaType==b().cta.CALL_TO_ACTION?t="ctaPlayerCTASkipBtn":(this.ctaType=b().cta.EMBED_CRM_FORM)&&(t="ctaPlayerEmbedFormSkipBtn");t&&(e?R()("#ctaPlayerComponent #"+t).removeClass("hide"):R()("#ctaPlayerComponent #"+t).addClass("hide"))},_hidePlayerComponent:function(){R()("."+this.ctaPlayerCompClass).addClass("disp-none"),this.ctaVideoPlayerView.setCTAWaitingMode(!1),this.ctaVideoPlayerView.$el.find("#ctaPlayerComps").css("background","transparent"),R()("#ctaPlayerComponent").css("background","transparent");var e=!0,t=parseInt(this.ctaPlayerCompClass.split("-")[3]);t==b().cta.QUESTION&&(e=this.handleQuestionPollQueue(t)),e&&this.ctaVideoPlayerView.play()},handleQuestionPollQueue:function(e){var t=!0,i=this.allCtaActions[this.ctaPlayerCompClass.split("-")[5]];return-1!=this.current_poll_num&&(this.isLockedForRendering=!1,this.current_poll_num+1!=i[e.toString()].length?(t=!1,this._handleCtaVideoPlay()):this.current_poll_num=-1),t},_openEndScreenLink:function(){var e=this.ctaVideoPlayerView.$el.find("#ctaPlayerEndScreenImageBtn").attr("cta-link");g.default.openNewTab(e)},getDuration:function(){return this.duration&&this.duration>0?this.duration:this.ctaVideoPlayerView.mediaPlayer.duration},getCurrentTime:function(){var e=this.ctaVideoPlayerView.mediaPlayer.currentTime;return(isNaN(e)||1e9==e)&&(e=0),e<0&&(e=0),e},_validateUpDownTime:function(e){if([38,40].includes(e.keyCode)){var t=e.currentTarget.id,i=R()("#"+t).val();38==e.keyCode?this._incrTime(t,i):40==e.keyCode&&this._decrTime(t,i)}},_startTimeUp:function(){var e=R()("#startTime").val();this._incrTime("startTime",e)},_startTimeDown:function(){var e=R()("#startTime").val();this._decrTime("startTime",e)},_endTimeUp:function(){var e=R()("#endTime").val();this._incrTime("endTime",e)},_endTimeDown:function(){var e=R()("#endTime").val();this._decrTime("endTime",e)},_incrTime:function(e,t){var i=g.default.timeToInt(t);i+=1;var a=this.getDuration();i>a&&(i=a);var s=g.default.strToTimeWithHr(i);R()("#"+e).val(s)},_decrTime:function(e,t){var i=g.default.timeToInt(t);(i-=1)<0&&(i=0);var a=g.default.strToTimeWithHr(i);R()("#"+e).val(a)},_annotationUrlKeyUp:function(){R()("#annotationUrlAlert").addClass("hide"),R()("#annotationUrl").removeClass("wrong-value-alert")},_ctaTextLinkKeyUp:function(){R()("#ctaTextLinkAlert").addClass("hide"),R()("#ctaTextLink").removeClass("wrong-value-alert")},_ctaImageLinkKeyUp:function(){R()("#ctaImageLinkAlert").addClass("hide"),R()("#ctaImageLink").removeClass("wrong-value-alert")},_fieldNameTextKeyUp:function(){R()("#fieldNameAlert").addClass("hide");var e=R()("#fieldNameTxt").val();0==e.length&&(e=C.videoI18N_v2.ctaActions.defaultTitle),R()("#ctaPlayerComponent #ctaPlayerFieldNameTxt").text(e)},_setEndCardText:function(){var e=R()("#ctaEndCardTxt").val();0==e.length&&(e=C.videoI18N_v2.ctaActions.defaultText),R()("#ctaPlayerComponent #ctaPlayerEndCardTxt").text(e)},_setEndCardButtonText:function(){R()("#endCardButtonTxtAlert").addClass("hide");var e=R()("#endCardButtonTxt").val();0==e.length&&(e=C.videoI18N_v2.ctaActions.buttonDefaultText),R()("#ctaPlayerComponent #ctaEndCardButton").text(e)},_setpollBtnText:function(){R()("#pollBtnTextAlert").addClass("hide");var e=R()("#pollBtnText").val();0==e.length&&(e=C.videoI18N_v2.ctaActions.play),R()("#ctaPlayerComponent #ctaPlayerQuestionPlayBtn").text(e)},_setleadGenBtnText:function(){R()("#leadGenBtnTextAlert").addClass("hide");var e=R()("#leadGenBtnText").val();0==e.length&&(e=C.videoI18N_v2.ctaActions.play),R()("#ctaPlayerComponent #ctaPlayerFormPlayBtn").text(e)},_endCardButtonLinkKeyUp:function(){R()("#endCardButtonLinkAlert").addClass("hide"),R()("#endCardButtonLink").removeClass("wrong-value-alert")},_exitCta:function(){g.default.trackInThirdPartyTools("Close CTA Component",{email:this.userEmail},!0),"true"==g.default.getLocalStorageValue("testimonial-asset-"+this.assetId)?(g.default.deleteLocalStorageValue("testimonial-asset-"+this.assetId),window.location.href="/video/testimonials/view/"+this.assetId+"?tag=cta"):window.location.href="/video/view/"+this.assetId+"?tag=cta"},ctaAddFromPlayer:function(e){var t=e.currentTarget.id,i=parseInt(R()("#"+t).attr("cta-type"));i==b().cta.ANNOTATION?this.openAnnotationComp({},this.ctaCurrentSecond):i==b().cta.CALL_TO_ACTION?this.openCallToActionComp({hubspotFormsAvailable:this.hubspotFormsAvailable,pardotFormsAvailable:this.pardotFormsAvailable,pardotForms:this.pardotForms,pardotFormsText:C.videoI18N_v2.ctaActions.pardotForms,hubspotForms:this.hubspotForms,hubspotFormsText:C.videoI18N_v2.ctaActions.hubspotForms,selectText:C.videoI18N_v2.ctaActions.select},this.ctaCurrentSecond):i==b().cta.FORM?this.openFormComp({},this.ctaCurrentSecond):i==b().cta.QUESTION?this.openQuestionComp({},this.ctaCurrentSecond):i==b().cta.END_SCREEN?this.openEndScreenComp({},this.ctaCurrentSecond):i==b().cta.EMBED_CRM_FORM&&this.openEmbedCrmForm({},this.ctaCurrentSecond),this.ctaVideoPlayerView.$el.find("#ctaPlayerAddComp").fadeOut(200)},_handleProgressBtnHover:function(e){var t=this.ctaVideoPlayerView.$el.find("#ctaPlayerAddComp"),i=(e.target.className.includes("ui-slider-handle")?R()(e.target).position().left:e.offsetX)-t.width()/2;t.css("left",i+"px"),t.fadeIn();var a=e.offsetX/R()(".player-progress").width()*this.ctaVideoPlayerView.mediaPlayer.duration;isNaN(a)&&(a=0),this.ctaCurrentSecond=Math.round(a)},_handleProgressBtnLeave:function(){clearTimeout(this.hideAddCtaPlayer);var e=this;this.hideAddCtaPlayer=setTimeout((function(){e.ctaVideoPlayerView.$el.find("#ctaPlayerAddComp").fadeOut(200)}),500)},_handleCanvasMouseAction:function(e){clearTimeout(this.hideAddCtaPlayer),"mouseleave"===e.type&&(this.hideAddCtaPlayer=setTimeout((function(){R()("#ctaPlayerAddComp").fadeOut(200)}),300))},_showHideEndTimeContainer:function(){var e=R()("#allowPlayCheck").is(":checked"),t=R()("#allowSkipCheck").is(":checked");if(e){R()("#ctaPlayerComponent #ctaPlayerEmbedFormSkipBtn").removeClass("hide"),R()("#embedFormStartTimeContainer").removeClass("small-3"),R()("#embedFormStartTimeContainer").addClass("small-2"),R()("#ctaEmbedFormTimeLabel").text(C.videoI18N_v2.ctaActions.time),R()("#embedFormEndTimeContainer").addClass("hide"),R()("#ctaPlayerComponent #ctaPlayerCrmFormHtml").addClass("hide"),R()("#ctaPlayerComponent #ctaPlayerEmbedForm").removeClass("hide");var i=R()("#ctaPlayerComponent #ctaPlayerCrmFormHtml").val();R()("#ctaPlayerComponent #ctaPlayerEmbedForm").attr("srcdoc",i),R()(".cta-embed-skip").removeClass("hide")}else{R()("#ctaPlayerComponent #ctaPlayerEmbedFormSkipBtn").addClass("hide"),R()("#embedFormStartTimeContainer").removeClass("small-2"),R()("#embedFormStartTimeContainer").addClass("small-3"),R()("#ctaEmbedFormTimeLabel").text(C.videoI18N_v2.ctaActions.startTime),R()("#embedFormEndTimeContainer").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerCrmFormHtml").removeClass("hide"),R()("#ctaPlayerComponent #ctaPlayerEmbedForm").addClass("hide"),i=R()("#ctaPlayerComponent #ctaPlayerEmbedForm").val();var a=nt().sanitize(i,g.default.getDOMPurifyConfig());R()("#ctaPlayerComponent #ctaPlayerCrmFormHtml").html(a),R()(".cta-embed-skip").addClass("hide")}t?R()("#ctaPlayerComponent #ctaPlayerEmbedFormSkipBtn").removeClass("hide"):R()("#ctaPlayerComponent #ctaPlayerEmbedFormSkipBtn").addClass("hide")},destroy:function(){R()("#ctaTimeline").empty(),R()("#ctaComponent").empty(),R()("#ctaPlayerBox").empty(),R()("#ctaPlayerComponent").empty(),this.ctaVideoPlayerView.destroy(),this.undelegateEvents()},_pardotInitialize:function(){var e=new Ze.Z(b().wizSetting.INTEGRATIONS),t=this;e.initializePardot(!0,(function(e){e.status?(new(y())).getPreview(t.assetId,void 0,(function(e){if(e.status){R()("#pardotFormIds").empty();let i=R()("<option>").text(C.videoI18N_v2.ctaActions.select).attr("value","");R()("#pardotFormIds").append(i);for(let t=0;t<e.pardot_forms.length;t++)i=R()("<option>").text(e.pardot_forms[t].name).attr("value",e.pardot_forms[t].id).attr("data-target",e.pardot_forms[t].embedCode),R()("#pardotFormIds").append(i);t.pardotForms=e.pardot_forms,R()("#ctaPardotContent .cta-pardot-label").removeClass("disp-none"),R()("#ctaPardotContent .cta-pardot-select").removeClass("disp-none"),t._selectCtaContent(t,b().cta.actionType.PARDOT),g.default.showBannerAlert(C.videoI18N_v2.pardotForm.pardotSuccessMsg,2e3)}})):(R()("#callToActionType").val(b().cta.actionType.TEXT),R()("#select2-callToActionType-container").text(C.videoI18N_v2.ctaActions.text),t._selectCtaContent(t,b().cta.actionType.TEXT))}))},configureMailchimpInteg:function(){this._addThirdPartyAccount("mailchimp","394139518449","https://login.mailchimp.com/oauth2/authorize")},_addThirdPartyAccount:function(e,t,i){var a=this,s="https://www.hippovideo.io/video/oauth",o=g.default.getEnvironment();"local"===o?(s="mailchimp"===e?"http://127.0.0.1:3000/video/oauth":"http://localhost:3000/video/oauth",t="mailchimp"===e?"394139518449":t):"stage"===o&&(s="https://stage.hippowiz.com/video/oauth",t="mailchimp"===e?"441478730598":t);var n=i+"?client_id="+t+"&redirect_uri="+s+"&response_type=code",l=window.open(n,e,"width=800, height=600"),r=!0,d=window.setInterval((function(){try{if(r){if(-1!==l.document.URL.indexOf("code")){l.stop(),r=!1,window.clearInterval(d);var t=l.document.URL,i=g.default._gup(t,"code");l.close(),a._validateCode(e,i)}}else window.clearInterval(d)}catch(e){}}),100)},_validateCode:function(e,t){var i={auth_code:t},a=new(ht());"mailchimp"===e&&a.mailchimpConnect(i,(function(e){e.success?window.location.reload(!0):g.default.showBannerAlert(C.videoI18N_v2.Integration.accountAdditionError,4e3)}),(function(e){g.default.showBannerAlert(C.videoI18N_v2.Integration.accountAdditionError,4e3)}))},changeMailchimpAccount:function(){var e=this;(new(ht())).mailchimpDisconnect((function(t){t.success?e.configureMailchimpInteg():g.default.showBannerAlert(C.videoI18N_v2.Integration.accountDisconnectError,4e3)}),(function(e){g.default.showBannerAlert(C.videoI18N_v2.Integration.accountDisconnectError,4e3)}))},manageMailchimpInteg:function(){var e=this;this.org=b().organization.MAILCHIMP,this.getMailchimpAccount(this.org,(function(){e.openMailchimpModal=new(k())({title:C.videoI18N_v2.mailchimpLeadAddModal.title,body:rt()(r.default.extend({},C.videoI18N_v2,e.mailchimpData.mailchimpDetails)),el:R()("#modalPopup"),id:"add-lead-to-mailchimp",showConfirm:!1,showButtonBar:!0,bgClickClose:!1,size:"medium"}),e.openMailchimpModal.showModal(),R()("#mailchimpNextBtn").on("click",(function(){e.mailchimpNextClicked()})),R()("#mailchimpPrevBtn").on("click",(function(){var t=R()("#mailchimpFooter").attr("data-current-tab");e.mailchimpPrevTabChange(t)})),R()("#changeMailchimpAcc").on("click",(function(){e.changeMailchimpAccount()})),R()("#closeMailchimp").on("click",(function(){e.openMailchimpModal.hideModal()})),R()("#mailchimpFinishBtn").on("click",(function(){e.mailchimpFinishBtn()}))}))},getMailchimpAccount:function(e,t){this.mailchimpModel=new(ct())({org:e}),this.mailchimpData={};var i=this;this.mailchimpModel.on("sync",(function(e){i.IntegrationsModelResponse=i.mailchimpModel,i.mailchimpData={mailchimpDetails:i.IntegrationsModelResponse.toJSON().access_params},t()})),i.mailchimpModel.fetch()},mailchimpNextClicked:function(){var e=this,t=R()("#mailchimpFooter").attr("data-current-tab"),i="true"==R()("#audienceSection").attr("data-audience-fetched");if("account"==t)i?this.mailchimpNextTabChange(t):(R()("#mailchimpNextBtn").attr("disabled",!0),this.ctaModel.getMailingList((function(i){i.mail_list&&null!=i.mailing_acc_uid&&i.mail_list.length>0?(R()("#subscribeToMailingList").attr("data-uid",i.mailing_acc_uid),R().each(i.mail_list,(function(e,t){var i;i='<option value="'+t.list_id+'">'+t.list_name+"</option>",R()("#audienceDropdown").append(i)})),e.mailchimpNextTabChange(t),R()("#mailchimpNextBtn").attr("disabled",!1)):(R()("#mailchimpNextBtn").attr("disabled",!0),e.mailchimpNextTabChange(t),R()("#audienceData").hide(),R()("#emptyAudienceList").show())}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.mailchimpLeadAddModal.unableToFetchLists,2500,"error")})));else if("audience"==t){var a=R()("#audienceDropdown").val();if(null!=a){var s=R()("#groupSection").attr("data-current-list");null==s||a!=s?(R()("#groupSection").attr("data-current-list",a),this.getMailchimpGroups(a,t)):this.mailchimpNextTabChange(t)}else this.mailchimpNextTabChange(t),R()("#emptyAudienceGroup").show()}},getMailchimpGroups:function(e,t){var i=this,a={list_id:e};this.ctaModel.getMailingGroup(a,(function(e){if(e.mail_group&&null!=e.mailing_acc_uid)if(e.mail_group.length>0){var a=[];R().each(e.mail_group,(function(e,t){var i='<option data-id="'+t.group_id+'" data-type="'+t.group_type+'" value="'+t.group_name+'">'+t.group_name;a.push(t.group_name),R()("#allGroups").append(i)})),i.mailchimpNextTabChange(t),i.handleGroupsSearch(a)}else i.mailchimpNextTabChange(t),R()("#groupData").hide(),R()("#emptyAudienceGroup").show();else i.mailchimpNextTabChange(t),R()("#groupData").hide(),R()("#emptyAudienceGroup").show()}),(function(e){this.openMailchimpModal.hideModal(),u.default.showBannerAlert(C.videoI18N_v2.mailchimpLeadAddModal.unableToFetchGroups,2500,"error")}))},handleGroupsSearch:function(e){var t=this,i=document.getElementById("mailchimpGroupInput");i.addEventListener("keyup",(function(a){if(13==a.keyCode){a.preventDefault();var s=i.value;if(e.includes(s)){var o=R()('#allGroups [value="'+s+'"]').data("id"),n=R()('#allGroups [value="'+s+'"]').data("type");if(0==R()("#"+o).length){var l={list_id:R()("#audienceDropdown").val(),group_id:o};t.getMailchimpSubgroups(s,o,n,l)}i.value=""}}}),!1)},getMailchimpSubgroups:function(e,t,i,a){var s=this,o='<div id="mc1" class="mc-subgroups-box"> <ul class="mcpop-grp-lists"><li><div id="group-'+t+'" class="mcpop-grp-head"></div></li></ul> </div>';this.ctaModel.getMailingSubgroups(a,(function(a){var n=a.mail_subgroups;if(n.length>0){var l='<label class="g-name">'+e+'</label> <span id="delete-'+t+'" class="mcpop-grp-delete"><img src="/svg/delete-ico-white.svg" width="13"></span> <span id="edit-'+t+'" class="mcpop-grp-edit hide"><img src="/svg/edit-fff.svg" width="13"></span> <span id="save-'+t+'" class="mcpop-grp-save"><img src="/svg/tick-white.svg" width="13"></span> <ul id='+t+' class="mcpop-grp-options"></ul>';if(R()("#groupContainer").append(R()(o)),R()("#group-"+t).append(R()(l)),"checkboxes"==i||"hidden"==i)for(var r=0;r<n.length;r++){var d='<li> <input type="checkbox" class="ui-checkbox-two" id="'+n[r].subgroup_id+'" checked> <label for="'+n[r].subgroup_id+'">'+n[r].subgroup_name+"</label> </li>";R()("#"+t).append(R()(d)),R()("#group-"+t).addClass("mc-opened")}else if("radio"==i||"dropdown"==i)for(r=0;r<n.length;r++){var c='<li><input type="radio" class="ui-radio" id="'+n[r].subgroup_id+'" name="'+n[r].group_id+'"> <label for="'+n[r].subgroup_id+'">'+n[r].subgroup_name+"</label> </li>";R()("#"+t).append(R()(c)),0==r&&R()("#"+n[r].subgroup_id).prop("checked",!0),R()("#group-"+t).addClass("mc-opened")}var u=document.getElementById("groupContainer");u.scrollTop=u.scrollHeight,s.manipulationActionToSubgroups()}}),(function(e){u.default.showBannerAlert(C.videoI18N_v2.mailchimpLeadAddModal.unableToFetchSubgroups,2500,"error")}))},manipulationActionToSubgroups:function(){R()(".mcpop-grp-edit").off("click").on("click",(function(e){var t=e.currentTarget,i=R()(t).attr("id").replace("edit","save"),a=R()(t).parent();R()(t).hide(),R()("#"+i).show(),R()(R()(a)[0]).addClass("mc-opened")})),R()(".mcpop-grp-save").off("click").on("click",(function(e){var t=e.currentTarget,i=R()(t).attr("id").replace("save","edit"),a=R()(t).parent();R()(t).hide(),R()("#"+i).show(),R()(R()(a)[0]).removeClass("mc-opened")})),R()(".mcpop-grp-delete").off("click").on("click",(function(e){var t=e.currentTarget;R()(R()(t).parents()[3]).remove()}))},mailchimpNextTabChange:function(e){"account"==e?(R()("#mailchimpFooter").attr("data-current-tab","audience"),R()("[data-title='Audience']").addClass("mcpop-progressed"),R()("#accountSection").hide(),R()("#mailchimpPrevBtn").show(),R()("#audienceSection").show(),R()("#audienceSection").attr("data-audience-fetched",!0)):"audience"==e&&(R()("#mailchimpFooter").attr("data-current-tab","groups"),R()("[data-title='Groups']").addClass("mcpop-progressed"),R()("#audienceSection").hide(),R()("#mailchimpNextBtn").hide(),R()("#mailchimpFinishBtn").show(),R()("#groupSection").show(),R()("#groupSection").attr("data-groups-fetched",!0))},mailchimpPrevTabChange:function(e){"audience"==e?(R()("#mailchimpFooter").attr("data-current-tab","account"),R()("[data-title='Audience']").removeClass("mcpop-progressed"),R()("#audienceSection").hide(),R()("#mailchimpPrevBtn").hide(),R()("#accountSection").show()):"groups"==e&&(R()("#mailchimpFooter").attr("data-current-tab","audience"),R()("[data-title='Groups']").removeClass("mcpop-progressed"),R()("#mailchimpFinishBtn").hide(),R()("#mailchimpNextBtn").show(),R()("#groupSection").hide(),R()("#audienceSection").show())},mailchimpFinishBtn:function(){this.selectedList=R()("#audienceDropdown").val();for(var e={},t=R()(".ui-checkbox-two"),i=0;i<t.length;i++)R()(t[i]).prop("checked")&&(e[R()(t[i]).attr("id")]=!0);var a=R()(".ui-radio:checked");for(i=0;i<a.length;i++)e[R()(a[i]).attr("id")]=!0;this.selectedSubgroups=e,this.openMailchimpModal.hideModal()},resetMailchimpDetails:function(){this.selectedList="",this.selectedSubgroups="",this.mailchimpServiceUid=""}}),vt=i(19755);var gt="https://s3.amazonaws.com/hippolms-wiz-static/themes/introoutro/",ft=(0,le.getStaticImageUrl)(),bt=function(e){(0,o.Z)(c,e);var t,i,d=(t=c,i=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}}(),function(){var e,a=(0,l.Z)(t);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(a,arguments,s)}else e=a.apply(this,arguments);return(0,n.Z)(this,e)});function c(){return(0,a.Z)(this,c),d.apply(this,arguments)}return(0,s.Z)(c,[{key:"initialize",value:function(e,t){this.$el=vt("#previewPageBottom"),this.isNewRecording=!!e.isNewRecording,this.getPreviewResponseJson=e.getPreviewResponseJson,this.assetId=e.assetId,this.shareURL=e.shareURL,this.selectedPageURL=e.selectedPageURL,this.page_merge_fields=e.page_merge_fields,this.is_selected_=e.is_selected_,this.org_tok=e.org_tok,this.embedURL=void 0,this.pageDigest=e.pageDigest,this.embedSEOFileName=void 0,this.guestDigest=e.guestDigest,this.privacyType=e.privacyType,this.title=e.title||"New Recording",this.description=e.description,this.email=e.email,this.isGIFPreview=e.isGIFPreview,this.ticketStatus=e.ticketStatus,this.displayDate=e.displayDate,this.commentsEnabled=e.commentsEnabled,this.reactionsEnabled=e.reactionsEnabled,this.default_video_comments_enabled=e.default_video_comments_enabled,this.default_video_reactions_enabled=e.default_video_reactions_enabled,this.default_video_autoplay_enabled=e.default_video_autoplay_enabled,this.recordConfiguration=e.recordConfiguration,this.autoplayEnabled=e.autoplayEnabled,this.exportAllowed=e.exportAllowed,this.featurePlanParams=e.featurePlanParams||{},this.exportPlanParams=e.exportPlanParams||{},this.sharePlanParams=e.sharePlanParams||{},this.ctaPlanParams=e.ctaPlanParams||{},this.brandingPlanParams=e.brandingPlanParams||{},this.isTicketVideoPreview=e.isTicketVideoPreview,this.isUploadInProgress=e.isUploadInProgress,this.uploadingProgressbar=e.uploadingProgressbar,this.videoSettings=e.videoSettings,this.ctaCount=e.ctaCount,this.performActionAfterUpload=void 0,this.currentCtaType=void 0,this.isGuestUser="true"===vt("#isGuestUser").val(),this.assignmentRecordToken=vt("#assignmentRecordToken").val(),this.planType=vt("#planType").val(),this.isSchoolPlan=this.planType===b().plans.TEACHER+"",this.isGroupsAllowed=this.isSchoolPlan&&"true"===vt("#userGroupEnabled").val(),this.isBusinessPlans=this.planType===b().plans.SUPPORT+""||this.planType===b().plans.BUSINESS+"",this.isSupportPlan=this.planType===b().plans.SUPPORT+"",this.assignment_url_mob_string=window.location.href,this.assignment_url_mob=new URL(this.assignment_url_mob_string),this.assignment_url_mob_param=this.assignment_url_mob.searchParams.get("assignment_token"),this.isCanShowAssignmentSubmitMob=""!=this.assignment_url_mob_param&&null!=this.assignment_url_mob_param,this.isContactAssociatedVideo=!1,this.isCurrentRecordedAssignmentPreview=this.assignmentRecordToken&&""!==this.assignmentRecordToken,this.isAssignmentVideoPreview=e.isAssignmentVideoPreview||this.isCurrentRecordedAssignmentPreview,this.isCurrentlyRecordedPreview=e.isCurrentlyRecordedPreview,this.isTestimonialVideoPreview=e.isTestimonialVideoPreview,this.isSimpleEditAllowed=e.isSimpleEditAllowed,this.previewPageCallback=t,this.isVideoPersonalizationEnabled=e.isVideoPersonalizationEnabled,this.isThumbnailPersonalizationEnabled=e.isThumbnailPersonalizationEnabled,this.canShowVideoPersonalization=e.canShowVideoPersonalization,this.canShowThumbnailPersonalization=e.canShowThumbnailPersonalization,this.canShowPersonalisationTab=e.canShowPersonalisationTab,this.isVideoCampaignsEnabled=e.isVideoCampaignsEnabled,this.isCampaignLinkEnabled=e.isCampaignLinkEnabled,this.canShowVideoCampaigns=e.canShowVideoCampaigns,this.canShowCampaignLink=e.canShowCampaignLink,this.canShowVideoCampaignsTab=e.canShowVideoCampaignsTab,this.canFail=e.canFail,this.thumbnailUrl=e.thumbnailUrl,this.videoPreview=e.videoPreview,this.gifPreview=e.gifPreview,this.projectJson=e.projectJson,this.thumbnailJson=e.thumbnailJson,this.quickActionsView=e.quickActionsView,this.playbackSpeedAllowed=e.playbackSpeedAllowed,this.deliveryDownloadAllowed=e.deliveryDownloadAllowed,this.deliveryDownloadEnabled=e.deliveryDownloadEnabled,this.maskImageLinks=e.maskImageLinks,this.background_images=e.background_images,this.videoThumbnailLink=e.videoThumbnailLink,this.playbackSpeedEnabled=null==e.playbackSpeedEnabled?e.playbackSpeedAllowed:e.playbackSpeedEnabled,this.canShowBranding=!!this.brandingPlanParams.enabled&&!this.isGIFPreview,this.cta_mfs=e.cta_mfs,this.virtualbgEnabled=e.virtualbgEnabled,this.selectedVideo=e.selectedVideo,this.videoURL=e.videoURL,this.containsAudio=e.containsAudio,this.hippoCXDomain=e.hippoCXDomain,v().on("remountCtaActions",this._toggleVideoCta,this),this.setProperties(),this.render()}},{key:"setProperties",value:function(){var e="1"===this.planType&&"true"!==vt("#isFreePlan").val(),t=this.isTicketVideoPreview||this.isAssignmentVideoPreview,i=!!HippoVideo.data.api.getProperty("isRbacEnabled"),a=HippoVideo.data.api.getProperty("ctaEnabled"),s=HippoVideo.data.api.getProperty("userRbacProfilePermission");this.isGuestVideoPreview=t,this.canShowCTA=!t&&!this.isGIFPreview&&(this.isBusinessPlans||a),this.canShowSubtitles=!t&&!this.isGIFPreview&&!this.isContactAssociatedVideo&&(this.isBusinessPlans||e||this.isSchoolPlan),this.canShowTagsFolder=!(t||this.isTestimonialVideoPreview||this.isGuestUser||this.isContactAssociatedVideo),this.canShowEmbed=!this.isTicketVideoPreview&&!this.isContactAssociatedVideo,this.canShowShare=!this.isContactAssociatedVideo,this.canShowExport=!this.isTicketVideoPreview&&!this.isGIFPreview&&!this.isContactAssociatedVideo,this.canShowPrivacy=!this.isTicketVideoPreview&&!this.isContactAssociatedVideo,this.canShowSettings=!this.isTicketVideoPreview,this.canShowIntroOutro=!("true"!==vt("#canShowIntroOutro").val()||this.isGuestVideoPreview||this.isGIFPreview||this.isContactAssociatedVideo||HippoVideo.AppRegistry.isIntroOutroGlobalSettingsEnabled),this.canShowThumbnail=!this.isAssignmentVideoPreview&&!this.isGIFPreview,this.canShowComments=!this.isTicketVideoPreview&&!this.isContactAssociatedVideo&&!this.isCurrentlyRecordedPreview,this.canShowReports=!this.isTicketVideoPreview&&!this.isGIFPreview,this.canShowReports=i?!!(this.canShowReports&&s&&s.read_assetlevelreports):this.canShowReports,this.canShowBranding=i?!!(this.canShowBranding&&s&&s.update_branding):this.canShowBranding,this.isReadOnlyTextFields=this.isCurrentRecordedAssignmentPreview,this.canShowMarketingTab=this.canShowCTA,this.canShowcustomTrackers=!t&&!this.isGIFPreview&&!this.isContactAssociatedVideo&&this.featurePlanParams.custom_tracker,i&&this.canShowSubtitles&&(this.canShowSubtitles=!!s.read_subtitles);var o=this.categoryId;o||(o=(o=vt("#categoryId").val())&&o.trim(),this.categoryId=o&&""!==o?o:"recorded")}},{key:"render",value:function(){var e=this;Oe()(r.default.extend({},C.videoI18N_v2,C.videoI18N_v2.wizPreview,C.videoI18N_v2.wizShareI18N,C.videoI18N_v2.ctaActions,T(),G(),{video_title:this.title,video_description:this.description,display_date:this.displayDate,isGIFPreview:this.isGIFPreview,ticket_status:this.ticketStatus,isGuestUser:this.isGuestUser,share_url:this.shareURL,privacyType:this.privacyType,comments_enabled:this.commentsEnabled,reactions_enabled:this.reactionsEnabled,autoplay_enabled:this.autoplayEnabled,delivery_download_enabled:this.deliveryDownloadEnabled,isSupportPlan:this.isSupportPlan,isSupportUser:g.default.isSupportUser(),ctaPlanParams:this.ctaPlanParams,isCommentsEnabled:this.featurePlanParams.comments,isEmbedEnabled:this.sharePlanParams.embed_video,isThumbnailEnabled:this.featurePlanParams.thumbnail,isSubtitlesEnabled:this.featurePlanParams.transcribe_enabled,canShowcustomTrackers:this.canShowcustomTrackers,canShowGroups:this.isGroupsAllowed,canShowCTA:this.canShowCTA,canShowSubtitles:this.canShowSubtitles,canShowTagsFolder:this.canShowTagsFolder,canShowEmbed:this.canShowEmbed,canShowShare:this.canShowShare,canShowExport:this.canShowExport,canShowPrivacy:this.canShowPrivacy,canShowSettings:this.canShowSettings,canShowIntroOutro:this.canShowIntroOutro,canShowThumbnail:this.canShowThumbnail,canShowVirtualBg:this.virtualbgEnabled,canShowVirtualBgBetaNotification:this.canShowVirtualBgBetaNotification(),canShowComments:this.canShowComments,canShowReports:this.canShowReports,isTicketVideoPreview:this.isTicketVideoPreview,isAssignmentVideoPreview:this.isAssignmentVideoPreview,isContactAssociatedVideo:this.isContactAssociatedVideo,canShowPublishTab:this.canShowShare||this.canShowExport||this.canShowPrivacy||this.canShowEmbed,canShowCustomizeTab:this.canShowThumbnail||this.canShowIntroOutro,canShowSettingsTab:this.canShowSubtitles||this.canShowSettings,canShowBranding:this.canShowBranding,canShowAssignmentSubmit:this.isCurrentRecordedAssignmentPreview||this.isCanShowAssignmentSubmitMob,canShowMarketingTab:this.canShowMarketingTab,canShowVideoPersonalization:this.canShowVideoPersonalization,canShowThumbnailPersonalization:this.canShowThumbnailPersonalization,canShowPersonalisationTab:this.canShowPersonalisationTab,canShowVideoCampaigns:this.canShowVideoCampaigns,canShowCampaignLink:this.canShowCampaignLink,canShowVideoCampaignsTab:this.canShowVideoCampaignsTab,isReadOnlyTextFields:this.isReadOnlyTextFields,playbackSpeedEnabled:this.playbackSpeedEnabled,playbackSpeedAllowed:this.playbackSpeedAllowed,deliveryDownloadAllowed:this.deliveryDownloadAllowed,shouldAskConfirmation:vt("#askConfirmation").val()}),(function(t,i){e.$el.empty().append(vt(i)),e.initializeEventListeners(),e.initializePreviewPage();try{if(0===document.querySelectorAll("#sidebarAccordion li .active-subtab").length)for(var a=document.querySelectorAll("#sidebarAccordion > li"),s=0;s<a.length;++s){var o;if(null===(o=a[s])||void 0===o||!o.classList.contains("disp-none")){a[s].querySelectorAll("div")[0].click();break}}}catch(e){console.log(e)}}))}},{key:"_toggleVideoCta",value:function(){this.ctaComponentView&&(this.ctaComponentView.destroy(),this.ctaComponentView=new mt({isPPR:!0,el:vt("#ctaAddPanel"),isCurrentlyRecordedPreview:!!this.isCurrentlyRecordedPreview,recordConfiguration:this.recordConfiguration,isMirrorWebCam:this.recordConfiguration?this.recordConfiguration.isMirrorWebCam:void 0}))}},{key:"initializeEventListeners",value:function(){this.bindThisForMethods(),this.delegate("click",".subtab-container",this.subtabClicked),this.delegate("click",".vs-subtab",this.videoSettingsSubtabClicked),this.delegate("click","#detailedReports",this.goToDetailedReports),this.delegate("click",".cta-button",this.goToCTAPage),this.delegate("click","#resolveTicket",this.resolveTicketWarning),this.delegate("focusout","#videoTitle",this.saveVideoTitle),this.delegate("focusout","#videoDescription",this.saveVideoDescription),this.delegate("change",".settings-switch",this.changeCommentsReactionsStatus),this.delegate("click","#videoChangesSaveBtn",this.videoSettingsApply),this.delegate("click","#videoChangesCancelBtn",this.videoSettingsCancel),this.delegate("click","#saveAssignment",this.saveAssignment),this.delegate("click","#cancelAssignment",this.cancelAssignment),this.delegate("click","#changePrivacyBtn",(function(){vt("#videoPrivacy")[0].click()})),this.delegate("click",".show-confirmation",(function(){g.default._openConfirmationPop()})),this.delegate("click",".intro-outro-delete",this.removeIntroOutro),this.delegate("click",".virtualbg-selection",this.selectVirtualBGImage),this.delegate("click","#addIntroScreen, #addOutroScreen, #titleScreenEdit, #endScreenEdit",this.addIntroOutroScreen),this.$el.find("#sidebarAccordion").on("toggled",this.accordionToggled),this.delegate("click",".hv-notification-banner.virtual-bg .close-1",this.closeVirtualBgBetaNotificationBanner),this.delegate("click",".dismiss-resolution-button",this.dismissResolution)}},{key:"bindThisForMethods",value:function(){this.saveTags=this.saveTags.bind(this),this.resolveTicket=this.resolveTicket.bind(this),this.saveAssignment=this.saveAssignment.bind(this),this.cancelAssignment=this.cancelAssignment.bind(this),this.saveAssignmentWithTitle=this.saveAssignmentWithTitle.bind(this),this.resolveTicketWarning=this.resolveTicketWarning.bind(this),this.accordionToggled=this.accordionToggled.bind(this),this.saveCategories=this.saveCategories.bind(this),this.videoSettingsCancel=this.videoSettingsCancel.bind(this),this.saveGroups=this.saveGroups.bind(this),this.subtabClicked=this.subtabClicked.bind(this),this.saveVideoTitle=this.saveVideoTitle.bind(this),this.goToCTAPage=this.goToCTAPage.bind(this),this.removeIntroOutro=this.removeIntroOutro.bind(this),this.addIntroOutroScreen=this.addIntroOutroScreen.bind(this),this.goToDetailedReports=this.goToDetailedReports.bind(this),this.saveVideoDescription=this.saveVideoDescription.bind(this),this.changeCommentsReactionsStatus=this.changeCommentsReactionsStatus.bind(this),this.videoSettingsApply=this.videoSettingsApply.bind(this),this.previewSideBarCallback=this.previewSideBarCallback.bind(this),this.selectVirtualBGImage=this.selectVirtualBGImage.bind(this),this.videoSettingsSubtabClicked=this.videoSettingsSubtabClicked.bind(this),this.updateVideoSettings=this.updateVideoSettings.bind(this),this.dismissResolution=this.dismissResolution.bind(this),this.showResolveCTASubtitlesSettings=this.showResolveCTASubtitlesSettings.bind(this)}},{key:"accordionToggled",value:function(e,t){0===t.find(".active-subtab").length&&(this.$el.find(".subtab").removeClass("active-subtab"),t.find(".subtab")[0].click(),"videoCampaignsTab"===t[0].id?g.default.trackInThirdPartyTools(b().PERSONALIZATION_ACTIONS.PA1,{assetId:this.assetId,email:this.email}):"personlizationTab"===t[0].id?g.default.trackInThirdPartyTools(b().PERSONALIZATION_ACTIONS.PA2,{assetId:this.assetId,email:this.email}):g.default.trackInThirdPartyTools("New Preview: Sidebar Tab Clicked - "+t[0].id,{assetId:this.assetId}))}},{key:"initializePreviewPage",value:function(){if(vt(document).foundation({accordion:{toggleable:!1}}),this.canShowComments&&this.initComments(),this.canShowReports&&this.initReports(),this.canShowPrivacy&&this.initPrivacy(),this.canShowEmbed&&this.initEmbed(),this.showResolveCTASubtitlesSettings(),this.canShowCTA&&this.initCTA(),this.canShowSubtitles&&this.initSubtitles(),this.canShowcustomTrackers&&this.initCustomTracking(),this.canShowBranding&&this.initVideoBranding(),this.isTicketVideoPreview&&this.email&&this.$3l.find("#videoTitle").text("".concat(this.title," - ").concat(this.email)),this.virtualbgEnabled){if(this.background_images.length>0)for(var e=0;e<this.background_images.length;e++){var t=this.background_images[e];vt(".virtualbg-add").after('<li class="virtualbg-selection" data-id="'+t.id+'" data-previewlink="'+t.preview_url+'"> <img src="'+t.img_url+'" alt="" /></li>')}if(this.maskImageLinks.length>0){for(vt(".sidebar-virtualbg-imgoverlay").remove(),e=0;e<this.maskImageLinks.length;e++)vt(".masked-preview").append('<img src="'+this.maskImageLinks[e]+'" id="maskedimg-'+e+'" alt="" class="sidebar-virtualbg-imgoverlay hide">');if(vt("#maskedimg-0").show(),this.maskImageLinks.length>1){var i=0,a=(this.maskImageLinks.length,this);setInterval((function(){if(0==vt(vt(".selected-virtualbg")[0]).attr("data-id"))return vt("sidebar-virtualbg-imgoverlay").fadeOut(200),void vt("#maskedimg-none").fadeIn(200);var e=(i+1)%a.maskImageLinks.length;vt("#maskedimg-"+i).fadeOut(200),vt("#maskedimg-"+e).fadeIn(200),i=e}),1200)}}vt(".masked-preview").append('<img src="'+this.videoThumbnailLink+'" id="maskedimg-none" alt="" class="sidebar-virtualbg-imgoverlay hide" style="z-index: 100;">'),vt(vt(".virtualbg-selection[data-id='"+this.selectedVideo+"']")[0]).click()}}},{key:"showResolveCTASubtitlesSettings",value:function(){this.canShowSubtitleResolution=!1,this.canShowCTAResolution=!1,this.videoSettings&&this.videoSettings.last_media_id&&(this.videoSettings.show_subtitle_resolution&&(this.canShowSubtitleResolution=!0),this.videoSettings.show_cta_resolution&&(this.canShowCTAResolution=!0)),this.ctaCount&&this.ctaCount>0&&this.canShowCTAResolution&&vt("#ctaResolvePrompt").removeClass("disp-none")}},{key:"launchUploadProgress",value:function(e){this.performActionAfterUpload=e,this.uploadingProgressbar.render(),this.uploadingProgressbar.updateValues(10,T().videoUnderProcessing)}},{key:"updateUploadStatus",value:function(){switch(this.isUploadInProgress=!1,v().trigger("reactStoreDispatch",{actionName:"setIsUploadInProgress",payload:!1}),this.uploadingProgressbar.remove(),this.performActionAfterUpload){case"cta":this.goToCTAPage();break;case"reports":this.goToDetailedReports()}}},{key:"initComments",value:function(){var e=this,t={is_paid_user:!0,show_comments:!0,asset_id:this.assetId,show_video_comments:this.featurePlanParams.video_comments,guest_digest:this.guestDigest,isPPR:!0};this.featurePlanParams.comments&&this.canShowComments&&D()(r.default.extend(G(),{shouldHideTitle:!0,guest_digest:this.guestDigest}),(function(i,a){e.$el.find("#commentsContainer").empty().append(vt(a)),e.commentsView=new Y,t.playerWidth=vt("#video-container").width(),e.commentsView.initComments(t,e.videoPlayerView,!1)}))}},{key:"initReports",value:function(){var e=this;this.isCurrentlyRecordedPreview?this.showReportsEmptyState():(new(A())).getOverAllReport(this.assetId,(function(t){t.status?0===t.total_plays?e.showReportsEmptyState(t.page_loads):e.isGuestUser||(vt("#reportsContainer").removeClass("hide"),e.$el.find("#videoReportsContainer").removeClass("hide"),e.$el.find("#reportsTotalPlays").text(t.total_plays),e.$el.find("#reportsUniqueUsers").text(t.users),e.$el.find("#reportsAvgWatchRate").text("".concat(t.avg_watch_rate,"%")),e.$el.find("#reportsFullyWatched").text(t.watch_rate[100]),e.$el.find("#reportsActions").text(t.actions),e.$el.find("#reportRegion").text(t.popular_region)):e.showReportsEmptyState()}))}},{key:"initShareExport",value:function(){this.videoShareExportView=new ne.Z({assetId:this.assetId,title:this.title,thumbnailUrl:this.thumbnailUrl,showShareOptions:!0,showExportOptions:!0,isFromSidebar:!0,exportAllowed:this.exportAllowed,elContainer:"VideoShareExportContainer",exportContainer:"exportContainer",shareContainer:"shareContainer",exportPlanParams:this.exportPlanParams,featurePlanParams:this.featurePlanParams,isPPR:!0,staticImgDomain:ft})}},{key:"initPrivacy",value:function(){new oe({assetId:this.assetId,elContainer:"privacyContainer",privacyType:this.privacyType,teamPrivacyAllowed:this.featurePlanParams.team_privacy,isPPR:!0})}},{key:"initEmbed",value:function(){var e=this;(new(y())).getLink("embed-link",this.assetId,(function(t){e.videoEmbedView=new ge.Z({assetId:e.assetId,shareURL:e.shareURL,elContainer:"embedContainer",embedJSON:t,videoTitle:e.title,autoplayEnabled:e.autoplayEnabled,projectJson:e.projectJson,canInitializeListeners:!0,hippoCXDomain:e.hippoCXDomain,org_tok:e.org_tok}),e.processIntegrations(t)}))}},{key:"initCTA",value:function(){var e=this;(new(y())).getCTACount(this.assetId,(function(t){if(t.cta_added){var i=(t||{}).counts;e.$el.find("#ctaEmbedCount").text(("0"+i.embed_crm_form).slice(-2)),e.$el.find("#ctaAnnotationsCount").text(("0"+i.annotation).slice(-2)),e.$el.find("#ctaPollCount").text(("0"+i.question).slice(-2)),e.$el.find("#ctaFormCount").text(("0"+i.form).slice(-2)),e.$el.find("#ctaPlaylistCount").text(("0"+i.end_screen).slice(-2)),e.$el.find("#ctaActionCount").text(("0"+i.call_to_action).slice(-2)),e.$el.find("#ctaInVideoMeetingLink").text(("0"+i.cta_meeting).slice(-2)),e.$el.find(".cta-counter").removeClass("hide")}}))}},{key:"previewSideBarCallback",value:function(e){this.canShowEmbed&&"update_embed_link"==e.action&&this.videoEmbedView&&(e.canInitializeListeners=!1,this.videoEmbedView.render(e))}},{key:"initCustomTracking",value:function(){new ke({assetId:this.assetId,videoPlayerView:this.videoPlayerView,elContainer:"videoCustomTrackingContainer",isPixelEnabled:this.featurePlanParams.fb_custom_tracker,isGAEnabled:this.featurePlanParams.ga_custom_tracker,isLuckyOrangeEnabled:this.featurePlanParams.lucky_orange_custom_tracker})}},{key:"initSubtitles",value:function(){new ve({assetId:this.assetId,elContainer:"subtitlesContainer",containsAudio:this.containsAudio,isPPR:!0,canShowSubtitleResolution:this.canShowSubtitleResolution})}},{key:"initVideoBranding",value:function(){new Ne({brandingPlanParams:this.brandingPlanParams,assetId:this.assetId,elContainer:"videoBrandingContainer"})}},{key:"processIntegrations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e||[]).integrations,i=!1;t.forEach((function(e){e&&("1"==e.id?(vt(".freshdesk-share-icon").removeClass("hide"),i=!0):"2"==e.id?(vt(".zendesk-share-icon").removeClass("hide"),i=!0):"3"==e.id&&(vt(".fbworkplace-share-icon").removeClass("hide"),i=!0))})),i||vt("#quickActionsTabBody .slack-share-icon").addClass("quick-actions-share"),this.videoShareExportView&&this.videoShareExportView.updateLinks(e)}},{key:"saveTags",value:function(){var e=this,t=this.$el.find("#videoTags").val();this.$el.find("#previewSaveMessage").removeClass("hide"),g.default.trackInThirdPartyTools("New Preview: Tags saving",{assetId:this.assetId}),(new(y())).saveTags(this.assetId,t,(function(t){e.hideSavingMessage()}),(function(t){e.hideSavingMessage()}))}},{key:"saveCategories",value:function(){var e=this,t=this.$el.find("#videoCategories").val();this.$el.find("#previewSaveMessage").removeClass("hide"),g.default.trackInThirdPartyTools("New Preview: Categories Saving",{assetId:this.assetId}),(new(L())).assignCategories(this.assetId,t,(function(t){e.hideSavingMessage()}),(function(t){e.hideSavingMessage()}))}},{key:"saveGroups",value:function(){var e=this.$el.find("#videoGroups").val(),t={asset_id:this.assetId,group_ids:e,link:this.shareURL};(new(L())).assignGroups(t,(function(e){console.log("Groups assigned successfully.")}))}},{key:"saveVideoTitle",value:function(){var e=this,t=this.$el.find("#videoTitle").val();t&&t!==this.title&&!this.isReadOnlyTextFields&&(this.$el.find("#previewSaveMessage").removeClass("hide"),g.default.trackInThirdPartyTools("New Preview: Video Title Saved",{assetId:this.assetId}),t=encodeURIComponent(t.trim()),(new(y())).saveTitle(this.assetId,encodeURI(t),(function(i){e.title=t,vt("#previewNavigationContainer .video-title").text(decodeURIComponent(t)),e.hideSavingMessage()}),(function(t){e.hideSavingMessage()})))}},{key:"saveVideoDescription",value:function(){var e=this,t=this.$el.find("#videoDescription").val();t===this.description||this.isReadOnlyTextFields||(this.$el.find("#previewSaveMessage").removeClass("hide"),g.default.trackInThirdPartyTools("New Preview: Video Description Saved",{assetId:this.assetId}),t&&(t=encodeURIComponent(t.trim())),(new(y())).saveDescription(this.assetId,t,(function(i){e.description=decodeURIComponent(t),e.hideSavingMessage()}),(function(t){e.hideSavingMessage()})))}},{key:"saveAssignment",value:function(){if(this.$el.find("#videoTitle").val()){var e=this.$el.find("#videoTitle").val().trim();this.saveAssignmentWithTitle(e)}}},{key:"saveAssignmentWithTitle",value:function(e){var t=this;""!=this.assignment_url_mob_param&&null!=this.assignment_url_mob_param&&(this.assignmentRecordToken=this.assignment_url_mob_param),e&&""!==e?this.featurePlanParams.assignments&&(new(L())).assignToTeacher(this.assetId,this.assignmentRecordToken,(function(e){t.$el.find("#assignmentSubmitPanel").remove(),vt("#assignmentConfirmationPanel").empty(),new(k())({title:"Video Assignment",body:ze()(r.default.extend({},C.videoI18N_v2,e)),el:vt("#assignmentConfirmationPanel"),id:"assignment-confirmation-pop",showInfo:!0,okText:C.videoI18N_v2.wizShareI18N.done,showIcon:!1,size:"small"}).showModal()})):u.default.showBannerAlert(C.videoI18N_v2.wizShareI18N.assignmentTitle,3e3,"error")}},{key:"cancelAssignment",value:function(){window.location.href="/video/assignments/record/".concat(this.assignmentRecordToken)}},{key:"resolveTicketWarning",value:function(){new(B())({id:"dummyId",el:vt("#alertPopUp"),body:C.videoI18N_v2.wizPreview.ticketStatusChange,showConfirm:!0,showIcon:!0,size:"small",yesText:C.videoI18N_v2.wizPreview.yes,noText:C.videoI18N_v2.wizPreview.no,onYes:this.resolveTicket}).showModal()}},{key:"resolveTicket",value:function(){var e=this,t=1===this.ticketStatus?2:1;g.default.trackInThirdPartyTools("New Preview: Resolve Button Clicked",{assetId:this.assetId}),(new(y())).changeVideoStatus(t,this.assetId,(function(i){u.default.showBannerAlert(T().videostatusSuccess,3e3),e.ticketStatus=t,e.$el.find("#resolveTicket").text(1===t?C.videoI18N_v2.wizPreview.markAsResolved:C.videoI18N_v2.wizPreview.reopenTicket),window.hippoTicketStatusChanged=!0}))}},{key:"goToDetailedReports",value:function(){this.isUploadInProgress?this.launchUploadProgress("reports"):(g.default.trackInThirdPartyTools("video_preview_Advanced_reports_isPPR",{assetId:this.assetId}),g.default.reset_page_loading(),v().trigger("navigateReportsPage",this.assetId))}},{key:"goToCTAPage",value:function(e){if(this.isUploadInProgress)return this.launchUploadProgress("cta"),void(this.currentCtaType=vt(e.currentTarget).attr("data-cta-type"));g.default.trackInThirdPartyTools("New Preview: CTA Page Clicked",{assetId:this.assetId}),(new(y())).urgent_videos([this.assetId],(function(){})),e&&(this.currentCtaType=vt(e.currentTarget).attr("data-cta-type")),this.isTestimonialVideoPreview&&g.default.setLocalStorageValue("testimonial-asset-"+this.assetId,!0);var t="/video/cta/".concat(this.assetId,"?compType=").concat(this.currentCtaType);window.location.href=t}},{key:"showReportsEmptyState",value:function(e){var t=this,i=e||0;Me()(r.default.extend({},C.videoI18N_v2.wizPreview,{total_views:i}),(function(e,i){t.$el.find("#reportsContainer").remove(),t.$el.find("#videoReportsContainer").removeClass("hide"),t.$el.find("#videoReportsContainer").append(vt(i)),t.delegate("click","#reportsShareBtn",(function(){vt("#share-link-actions-button-bar")[0].click(),g.default.trackInThirdPartyTools("video_preview_Reports_Share_emptystate_isPPR")})),t.delegate("click","#reportsCopyLink",(function(){var e;g.default.trackInThirdPartyTools("video_preview_Reports_copyurl_emptystate_isPPR"),"true"===vt("#askConfirmation").val()?g.default._openConfirmationPop():null===(e=vt("#copy-link-actions-button-bar")[0])||void 0===e||e.click()}))}))}},{key:"addIntroOutroScreen",value:function(e){this.featurePlanParams.intro_outro?"intro"===e.currentTarget.dataset.type?g.default.trackInThirdPartyTools("New Preview: Add Intro Clicked",{assetId:this.assetId}):g.default.trackInThirdPartyTools("New Preview: Add Outro Clicked",{assetId:this.assetId}):g.default._upgradeAlertPopup("intro-outro")}},{key:"removeIntroOutro",value:function(e){e.currentTarget.dataset.type,g.default.trackInThirdPartyTools("New Preview: Delete Intro/Outro Clicked",{assetId:this.assetId})}},{key:"selectVirtualBGImage",value:function(e){vt(".virtualbg-selection").removeClass("selected-virtualbg"),vt(e.currentTarget).addClass("selected-virtualbg");var t=vt(vt(".selected-virtualbg")[0]).attr("data-id"),i=vt(vt(".selected-virtualbg")[0]).attr("data-previewlink");if("add"!=t){0==t?(vt("#maskedimg-none").removeClass("hide"),i=void 0):vt("#maskedimg-none").addClass("hide"),vt("#virtualBgVideoPreview").attr("src",i);var a=null;t>0||"false"==i?(a=vt(vt(".selected-virtualbg img")[0]).attr("src"),vt(".sidebar-virtualbg-custombg").show(),vt(".sidebar-virtualbg-custombg").attr("src",a)):vt(".sidebar-virtualbg-custombg").hide()}else this.importCustomBg()}},{key:"updateIntroOutro",value:function(e,t){e&&"0"!==e?(this.$el.find("#titleScreenAddedPreview img").attr("src","".concat(gt).concat(e,"/thumb.jpg")),this.$el.find("#titleScreenAddedPreview").removeClass("hide"),this.$el.find("#titleScreenAdd").addClass("hide")):(this.$el.find("#titleScreenAddedPreview").addClass("hide"),this.$el.find("#titleScreenAdd").removeClass("hide")),t&&"0"!==t?(this.$el.find("#endScreenAddedPreview img").attr("src","".concat(gt).concat(t,"/thumb.jpg")),this.$el.find("#endScreenAddedPreview").removeClass("hide"),this.$el.find("#endScreenAdd").addClass("hide")):(this.$el.find("#endScreenAddedPreview").addClass("hide"),this.$el.find("#endScreenAdd").removeClass("hide"))}},{key:"changeCommentsReactionsStatus",value:function(e){var t=e.currentTarget.id,i=e.currentTarget.checked;vt(".default-video-settings").removeClass("disp-none"),vt(".new-setting-button").removeClass("disp-none"),"commentsSwitch"==t?(g.default.trackInThirdPartyTools("video_preview_settings_allow_comments_isPPR",{assetId:this.assetId}),i!=this.default_video_comments_enabled?vt(".set-comments-class").removeClass("disp-none"):(vt(".set-comments-class").addClass("disp-none"),vt("#setDefaultComments").prop("checked",!1))):"reactionsSwitch"==t?(g.default.trackInThirdPartyTools("video_preview_settings_allow_reactions_isPPR",{assetId:this.assetId}),i!=this.default_video_reactions_enabled?vt(".set-reactions-class").removeClass("disp-none"):(vt(".set-reactions-class").addClass("disp-none"),vt("#setDefaultReactions").prop("checked",!1))):"autoPlaySwitch"==t?(g.default.trackInThirdPartyTools("video_preview_settings_allow_play_video_isPPR",{assetId:this.assetId}),i!=this.default_video_autoplay_enabled?vt(".set-autoplay-class").removeClass("disp-none"):(vt(".set-autoplay-class").addClass("disp-none"),vt("#setDefaultAutoplay").prop("checked",!1))):"allowPlaybackSpeedSwitch"==t?g.default.trackInThirdPartyTools("video_preview_settings_allow_playback_speed_isPPR",{assetId:this.assetId}):"downloadSwitch"==t&&g.default.trackInThirdPartyTools("video_preview_settings_allow_download_isPPR",{assetId:this.assetId})}},{key:"videoSettingsCancel",value:function(e){document.querySelector("#commentsSwitch").checked=this.commentsEnabled,document.querySelector("#reactionsSwitch").checked=this.reactionsEnabled,document.querySelector("#autoPlaySwitch").checked=this.autoplayEnabled,this.playbackSpeedAllowed&&(document.querySelector("#allowPlaybackSpeedSwitch").checked=this.playbackSpeedEnabled),this.deliveryDownloadAllowed&&(document.querySelector("#downloadSwitch").checked=this.deliveryDownloadEnabled),vt(".video-settings-checkbox").addClass("disp-none"),vt(".comments-reactions-checkbox").prop("checked",!1),vt(".default-video-settings").addClass("disp-none"),vt(".new-setting-button").addClass("disp-none")}},{key:"videoSettingsApply",value:function(e){var t=this;if(vt("#commentsSwitch").prop("checked")!=this.commentsEnabled||vt("#setDefaultComments").prop("checked")){var i=vt("#setDefaultComments").prop("checked"),a=vt("#commentsSwitch").prop("checked")?"enable":"disable",s={action_type:a,asset_id:this.assetId,change_global_comments:i};(new(y())).toggleCommentStatus(s,(function(s){200===s.code?(t.commentsView.toggleCommentsStatus("enable"===a),u.default.showBannerAlert(s.message,3e3),t.commentsEnabled=vt("#commentsSwitch").prop("checked"),i&&(t.default_video_comments_enabled=vt("#commentsSwitch").prop("checked")),vt(".default-video-settings").addClass("disp-none"),vt(".new-setting-button").addClass("disp-none"),vt(".video-settings-checkbox").addClass("disp-none"),vt(".comments-reactions-checkbox").prop("checked",!1)):1e3===s.code?(g.default._upgradeAlertPopup("Comments"),e.currentTarget.checked=!1):(u.default.showBannerAlert(s.message,3e3,"error"),e.currentTarget.checked=!1)}),(function(e){u.default.showBannerAlert(T().contactSupport,3e3,"error")}))}if(vt("#reactionsSwitch").prop("checked")!=this.reactionsEnabled||vt("#setDefaultReactions").prop("checked")){var o=vt("#setDefaultReactions").prop("checked"),n={action_type:vt("#reactionsSwitch").prop("checked")?"enable":"disable",asset_id:this.assetId,change_global_reactions:o};(new(y())).toggleReactionStatus(n,(function(i){200===i.code?(u.default.showBannerAlert(i.message,3e3),t.reactionsEnabled=vt("#reactionsSwitch").prop("checked"),o&&(t.default_video_reactions_enabled=vt("#reactionsSwitch").prop("checked")),vt(".default-video-settings").addClass("disp-none"),vt(".new-setting-button").addClass("disp-none"),vt(".video-settings-checkbox").addClass("disp-none"),vt(".comments-reactions-checkbox").prop("checked",!1)):1e3===i.code?(g.default._upgradeAlertPopup("Reactions"),e.currentTarget.checked=!1):(u.default.showBannerAlert(i.message,3e3,"error"),e.currentTarget.checked=!1)}),(function(e){u.default.showBannerAlert(T().contactSupport,3e3,"error")}))}if(vt("#autoPlaySwitch").prop("checked")!=this.autoplayEnabled||vt("#setDefaultAutoplay").prop("checked")){var l=vt("#setDefaultAutoplay").prop("checked"),r={action_type:vt("#autoPlaySwitch").prop("checked")?"enable":"disable",asset_id:this.assetId,change_global_autoplay:l};(new(y())).toggleAutoPlayStatus(r,(function(i){200===i.code?(u.default.showBannerAlert(i.message,3e3),t.autoplayEnabled=vt("#autoPlaySwitch").prop("checked"),vt(".default-video-settings").addClass("disp-none"),vt(".new-setting-button").addClass("disp-none"),l&&(t.default_video_autoplay_enabled=vt("#autoPlaySwitch").prop("checked")),vt(".default-video-settings").addClass("disp-none"),vt(".new-setting-button").addClass("disp-none"),vt(".video-settings-checkbox").addClass("disp-none"),vt(".comments-reactions-checkbox").prop("checked",!1)):1e3===i.code?(g.default._upgradeAlertPopup("Autoplay"),e.currentTarget.checked=!1):(u.default.showBannerAlert(i.message,3e3,"error"),e.currentTarget.checked=!1)}),(function(e){u.default.showBannerAlert(T().contactSupport,3e3,"error")}))}if(this.playbackSpeedAllowed&&vt("#allowPlaybackSpeedSwitch").prop("checked")!=this.playbackSpeedEnabled){var d=vt("#allowPlaybackSpeedSwitch").prop("checked")?"enable":"disable";(new(y())).togglePlaybackSpeedStatus(d,this.assetId,(function(i){200===i.code?(u.default.showBannerAlert(i.message,3e3),t.playbackSpeedEnabled=vt("#allowPlaybackSpeedSwitch").prop("checked"),vt(".default-video-settings").addClass("disp-none"),vt(".new-setting-button").addClass("disp-none")):1e3===i.code?(g.default._upgradeAlertPopup("PlaybackSpeed"),e.currentTarget.checked=!1):(u.default.showBannerAlert(i.message,3e3,"error"),e.currentTarget.checked=!1)}),(function(e){u.default.showBannerAlert(T().contactSupport,3e3,"error")}))}if(this.deliveryDownloadAllowed&&vt("#downloadSwitch").prop("checked")!=this.deliveryDownloadEnabled){var c=vt("#downloadSwitch").prop("checked")?"enable":"disable";(new(y())).toggleDliveryDownloadStatus(c,this.assetId,(function(i){200===i.code?(u.default.showBannerAlert(i.message,3e3),t.deliveryDownloadEnabled=vt("#downloadSwitch").prop("checked"),vt(".default-video-settings").addClass("disp-none"),vt(".new-setting-button").addClass("disp-none")):1e3===i.code?(g.default._upgradeAlertPopup("delivery_download"),e.currentTarget.checked=!1):(u.default.showBannerAlert(i.message,3e3,"error"),e.currentTarget.checked=!1)}),(function(e){u.default.showBannerAlert(T().contactSupport,3e3,"error")}))}}},{key:"videoSettingsSubtabClicked",value:function(e){this.$el.find(".vs-tab-container .preview-tab-content").addClass("hide"),this.$el.find("#".concat(e.currentTarget.dataset.target)).removeClass("hide"),vt(".vs-subtab").removeClass("vs-subtab-active"),this.$el.find("#".concat(e.currentTarget.id)).addClass("vs-subtab-active"),"videoSettingsSubTab"===e.target.id&&g.default.trackInThirdPartyTools("video_preview_settings_tab_clicked_isPPR",{assetId:this.assetId})}},{key:"subtabClicked",value:function(e){var t=e.currentTarget.id;if(!e.currentTarget.className.includes("active-subtab")){if(vt(".vs-subtab-container").hide(),vt(".vt-subtab-container").hide(),"videoSettings"==t){vt(".vs-subtab-container").show();for(var i=vt("div.vs-tab-container div.vs-subtab-container div").find("vs-subtab vs-subtab-active"),a=0;a<i.prevObject.length;a++)i.prevObject[a].className.includes("vs-subtab-active")&&(this.$el.find(".preview-tab-content").addClass("hide"),this.$el.find(".video-settings-wrapper").removeClass("hide"),this.$el.find("#".concat(i.prevObject[a].dataset.target)).removeClass("hide"))}"videoCustomTracking"==t&&(vt("#videoCustomTrackingContainer > .vt-tab-container").show(),vt("#videoCustomTrackingContainer .vt-subtab-container").show()),"videoCTA"==t&&null==this.ctaComponentView&&(this.ctaComponentView=new mt({isPPR:!0,el:vt("#ctaAddPanel"),isNewRecording:this.isNewRecording,getPreviewResponseJson:this.getPreviewResponseJson,isMirrorWebCam:this.recordConfiguration?this.recordConfiguration.isMirrorWebCam:void 0,isCurrentlyRecordedPreview:!!this.isCurrentlyRecordedPreview,recordConfiguration:this.recordConfiguration})),this.$el.find(".subtab-container, .subtab").removeClass("active-subtab"),this.$el.find("#".concat(t,", #").concat(t," .subtab")).addClass("active-subtab"),"videoSettings"!==t&&(this.$el.find(".preview-tab-content").addClass("hide"),this.$el.find("#".concat(e.currentTarget.dataset.target)).removeClass("hide")),"videoComments"==t&&null==this.videoPlayerView&&(this.videoPlayerView=new(Je())({id:"test-video",el:"#previewVideo",src:this.videoURL}),this.videoPlayerView.show()),"videoPersonalization"===t?g.default.trackInThirdPartyTools(b().PERSONALIZATION_ACTIONS.PA12,{assetId:this.assetId,email:this.email}):"thumbnailPersonalization"===t?g.default.trackInThirdPartyTools(b().PERSONALIZATION_ACTIONS.PA11,{assetId:this.assetId,email:this.email}):"videoCampaign"===t?g.default.trackInThirdPartyTools(b().PERSONALIZATION_ACTIONS.PA22,{assetId:this.assetId,email:this.email}):"emailCampaignLink"===t?g.default.trackInThirdPartyTools(b().PERSONALIZATION_ACTIONS.PA21,{assetId:this.assetId,email:this.email}):"videoCampaignReports"===t?g.default.trackInThirdPartyTools("video_preview_campaign_reports_tab_clicked_isPPR",{assetId:this.assetId,email:this.email}):"videoComments"===t?g.default.trackInThirdPartyTools("video_preview_comments_tab_clicked_isPPR",{assetId:this.assetId}):"videoReports"===t?g.default.trackInThirdPartyTools("video_preview_Reports_Tab_Clicked_isPPR",{assetId:this.assetId}):g.default.trackInThirdPartyTools("video_preview_"+t+"_clicked",{assetId:this.assetId})}}},{key:"hideSavingMessage",value:function(){var e=this;setTimeout((function(){e.$el.find("#previewSaveMessage").addClass("hide")}),500)}},{key:"canShowVirtualBgBetaNotification",value:function(){var e=HippoVideo.data.api.getProperty("userId");return this.virtualbgEnabled&&!g.default.getLocalStorageValue("vBgNoNotify-"+e)}},{key:"closeVirtualBgBetaNotificationBanner",value:function(){var e=HippoVideo.data.api.getProperty("userId");vt(".hv-notification-banner.virtual-bg").hide(),g.default.getLocalStorageValue("vBgNoNotify-"+e)||g.default.setLocalStorageValue("vBgNoNotify-"+e,!0)}},{key:"dismissResolution",value:function(e){var t=vt(e.currentTarget).attr("data-type");"subtitle"==t?(this.updateVideoSettings(!0,!1),vt("#subtitleResolvePrompt").addClass("disp-none")):"cta"==t&&(this.updateVideoSettings(!1,!0),vt("#ctaResolvePrompt").addClass("disp-none"))}},{key:"updateVideoSettings",value:function(e,t){(new(y())).updateVideoSettings(e,t,this.assetId)}},{key:"destroy",value:function(){this.videoPersonalizationView&&this.videoPersonalizationView.destroy(),this.thumbnailPersonalizationView&&this.thumbnailPersonalizationView.destroy(),this.videoCampaignView&&this.videoCampaignView.destroy(),this.undelegateEvents(),this.$el.empty()}}]),c}(c().View),wt=(i(27207),i(50915),i(58734),i(20303)),yt=i.n(wt),_t=(i(26891),i(7023),i(14316),i(87285),i(51898)),kt=i.n(_t);i(68573);var Ct=function(e){(0,o.Z)(c,e);var t,i,d=(t=c,i=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}}(),function(){var e,a=(0,l.Z)(t);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(a,arguments,s)}else e=a.apply(this,arguments);return(0,n.Z)(this,e)});function c(){return(0,a.Z)(this,c),d.apply(this,arguments)}return(0,s.Z)(c,[{key:"initialize",value:function(e,t,i,a){this.assetId=e,this.digest=t,this.onSaveHandler=i,this.closeCallback=a,this.openIntroPopup=this.openIntroPopup.bind(this),this.selectTheme=this.selectTheme.bind(this),this.textEditableChanged=this.textEditableChanged.bind(this),this.textPositionChanged=this.textPositionChanged.bind(this),this.saveIntroOutro=this.saveIntroOutro.bind(this),this.cancelIntroOutro=this.cancelIntroOutro.bind(this),this.addNewText=this.addNewText.bind(this),this.getValueForProject=this.getValueForProject.bind(this),this.reconstructUI=this.reconstructUI.bind(this),this.textEditMode=this.textEditMode.bind(this),this.selectText=this.selectText.bind(this),this.textPropertyChanged=this.textPropertyChanged.bind(this),this.getClipOf=this.getClipOf.bind(this),this.deleteIntroOutroText=this.deleteIntroOutroText.bind(this),this.timeChanged=this.timeChanged.bind(this),this.moveColor=this.moveColor.bind(this),this.hideColor=this.hideColor.bind(this),this.totalCreatedClips=0,R()(".intro-stack").bind("mouseover",this.handleHover),R()(".intro-stack").bind("mouseleave",this.handleHover),this.availableThemes=[1,2,3,4,5],this.DEFAULT_THEME_DURATION=9,this.canvasDimen={width:384,height:216},this.initSettingModel(),this.brand_colors=[],this.brand_font="",this.defaultFontValue="verdana",this.brand_font_color="#000000",this.previousFontColorMap={1:this.brand_font_color,2:this.brand_font_color},this.themePositionHash={0:{0:{xpos:49,ypos:41.5,color:"white"},1:{xpos:200,yops:150,color:"white"}},1:{0:{xpos:49,ypos:41.5,color:"white"},1:{xpos:200,ypos:150,color:"white"}},2:{0:{xpos:49,ypos:41.5,color:"white"},1:{xpos:200,ypos:150,color:"white"}},3:{0:{xpos:49,ypos:41.5,color:"black"},1:{xpos:200,ypos:150,color:"black"}},4:{0:{xpos:49,ypos:41.5,color:"black"},1:{xpos:200,ypos:150,color:"black"}},5:{0:{xpos:49,ypos:41.5,color:"white"},1:{xpos:200,ypos:150,color:"white"}}}}},{key:"initSettingModel",value:function(){var e=this;this.settingModel=new(kt())({settingTabName:b().wizSetting.BRANDING}),this.settingModel.fetch({success:function(t){if(e.brand_colors=t.get("info").brand_colors,t.get("info").brand_font&&(e.brand_font=t.get("info").brand_font.toLowerCase().replaceAll(" ",""),R()("#ioTextFontStyle").val(e.brand_font)),e.brand_colors)for(var i in e.brand_colors)e.previousFontColorMap[parseInt(i)+1]=e.brand_colors[i];t.get("info").brand_font_color&&(e.brand_font_color=t.get("info").brand_font_color),e.setupSpectrum()}})}},{key:"openIntroPopup",value:function(e,t,i,a,s){var o=this;this.canShowPersonalization=a,this.ioDetails=g.default.naiveClone(t),this.isIntroPop=e;for(var n=this.isIntroPop?C.videoI18N_v2.introOutro.addIntro:C.videoI18N_v2.introOutro.addOutro,l=[],d=(0,le.getStaticImageUrl)(),c=0;c<this.availableThemes.length;c++)l.push(this.getThemeDetails(this.availableThemes[c]));if(R()("#introOutroPopup").empty(),s){var u=yt()(r.default.extend({themes:l,isIntroPop:this.isIntroPop,canShowPersonalization:this.canShowPersonalization,mfValues:b().personalization.defaultMergeFields,staticImgDomain:d},C.videoI18N_v2));R()("#introOutroSidebar").empty().append(u)}else this.introOutroPopModal=new(k())({title:n,body:yt()(r.default.extend({themes:l,isIntroPop:this.isIntroPop,canShowPersonalization:this.canShowPersonalization,mfValues:b().personalization.defaultMergeFields,staticImgDomain:d},C.videoI18N_v2)),el:R()("#introOutroPopup"),id:"intro-pop",showIcon:!1,autoClose:!1,size:"small-xl",bgClickClose:!1,confirm:!0}),this.introOutroPopModal.showModal();for(var h in g.default.getFontMap())R()("#ioTextFontStyle").append(R()("<option>",{value:h,text:g.default.getFontMap()[h].family})),this.defaultFontValue=g.default.getFontMap()[h].isDefault?h:this.defaultFontValue;this.brand_font&&(this.defaultFontValue=this.brand_font),this.setupSpectrum(),R()("#ioTextFontStyle").val(this.defaultFontValue),R()(".vdo-thumb-img").bind("click",(function(e){o.selectTheme(e.currentTarget.id)})),R()(".io-change-text-properties").bind("change",this.textPropertyChanged),R()(".io-change-time").bind("change",this.timeChanged),R()("#saveIntroOutro").bind("click",this.saveIntroOutro),R()("#cancelIntroOutro").bind("click",this.cancelIntroOutro),R()("#addNewText").bind("click",this.addNewText),R()("#ioTextFontStyle").select2({minimumResultsForSearch:-1,theme:"hippocategory"}),R()("#changeTextPixel").select2({minimumResultsForSearch:-1,theme:"hippocategory"}),this.canShowPersonalization&&(R()(".choose-thumb").css("height","405px"),this.handleMfChange=this.handleMfChange.bind(this),this.initializeAtwho=this.initializeAtwho.bind(this),R()("#ioMfSelector").select2({tags:!0,multiple:!1,theme:"hippocategory"}),R()("#ioMfSelector").bind("change",this.handleMfChange),this.mfValues=["{Email}","{First Name}","{Last Name}","{Country}","{City}","{Phone Number}","{Company Name}","{Title}","{State}","{Address}"]),this.isIntroPop?(this.ioDetails.intro||(this.ioDetails.intro={}),this.ioObject=this.ioDetails.intro):(this.ioDetails.outro||(this.ioDetails.outro={}),this.ioObject=this.ioDetails.outro),this.ioObject.duration&&R()(".io-change-time").val(this.ioObject.duration);var p=this;setTimeout((function(){p.ioObject.theme?p.selectTheme(p.ioObject.theme):p.selectTheme(p.availableThemes[0]),i?(R()(".io-crop").show(),R()("#io-crop-left").css({right:p.getValueForPlayer(384-i.x,!0)+"px"}),R()("#io-crop-bottom").css({top:p.getValueForPlayer(i.y+i.h,!1)+"px"}),R()("#io-crop-right").css({left:p.getValueForPlayer(i.x+i.w,!0)+"px"}),R()("#io-crop-top").css({bottom:p.getValueForPlayer(216-i.y,!1)+"px"})):R()(".io-crop").hide()}),1e3)}},{key:"setupSpectrum",value:function(){var e={showInput:!0,preferredFormat:"rgb",clickoutFiresChange:!0,chooseText:"Set",cancelText:"Cancel",color:this.brand_font_color,containerClassName:"ioColorContainer",move:this.moveColor,hide:this.hideColor};if(this.brand_colors&&this.brand_colors.length>0){var t=Te.Z.getPaletteConfig(this.brand_colors,"ioColorContainer");e=Object.assign(e,t)}R()(".io-color-selector").spectrum(e),R()(".io-color-choose").spectrum("set",this.brand_font_color||"white")}},{key:"moveColor",value:function(){var e=R()(".io-color-choose").spectrum("get").toHexString();R()("#io-component-"+this.currentSelectedText).css("color",e)}},{key:"hideColor",value:function(){var e=this.previousFontColorMap[this.currentSelectedText];e&&R()("#io-component-"+this.currentSelectedText).css("color",e)}},{key:"selectTheme",value:function(e){this.selectedThemeId=e;var t=parseInt(R()(".io-change-time").val());this.ioObject.theme=e,this.ioObject.duration=t,this.ioObject.clips||(this.ioObject.clips=[]);var i={deleted:!1,footage:{id:-e-2e4,duration:this.DEFAULT_THEME_DURATION,containsAudio:!1,containsVideo:!0,containsImage:!1,containsText:!1,type:"themevideo",isIntro:this.isIntroPop,isOutro:!this.isIntroPop},start:0,end:t,properties:{width:this.canvasDimen.width,height:this.canvasDimen.height,opacity:1,volume:1,fadein:0,fadeout:0,xpos:0,ypos:0},position:1e-4,track:0};this.ioObject.clips[0]=i,R()("#introOutroVideoPreview").prop("src",this.getThemeDetails(e).compressed),R()(".vdo-thumb-img").removeClass("selected"),R()(".vdo-thumb-"+e).addClass("selected"),R()(".io-color-choose").spectrum("set",this.brand_font_color||this.themePositionHash[this.selectedThemeId][0].color),this.ioObject.clips.length<=1?this.addNewText("themeSelection"):this.reconstructUI()}},{key:"handleHover",value:function(e){R()(".new").toggle()}},{key:"deleteIntroOutroText",value:function(e){var t=e.currentTarget.id.split("delete-")[1];t=parseInt(t);for(var i=0;i<this.ioObject.clips.length;i++)if(this.ioObject.clips[i].id==t){this.ioObject.clips.splice(i,1);break}this.reconstructUI()}},{key:"textEditableChanged",value:function(e){var t=this.getClipOf(e.target.id.split("io-component-")[1]);delete t.properties.isPlaceHolder;for(var i=R()("#"+e.target.id).contents(),a=0;a<R()(i).length;a++){var s=R()(i)[a];R()(s).hasClass("atwho-inserted")&&R()(s).replaceWith(R()(s).html().toString())}t.properties.text=this.linebreakToNewline(R()("#"+e.target.id).html()),13!=e.keyCode||e.shiftKey||console.log("close edit mode")}},{key:"linebreakToNewline",value:function(e){return e.replace(/<div>/g,"\n").replace(/<\/div>/g,"").replace(/<br>/g,"").replace(/&nbsp;/g,"")}},{key:"newlineToLinebreak",value:function(e){for(var t=e.split("\n"),i="",a=0;a<t.length;a++)i+="<div>"+t[a]+"</div>";return i}},{key:"textPropertyChanged",value:function(){var e=this.getClipOf(this.currentSelectedText);e.properties.font=R()("#ioTextFontStyle").val(),e.properties.fontSize=R()("#changeTextPixel").val(),e.properties.bold=R()(".io-bold-toggle").is(":checked"),e.properties.italic=R()(".io-italic-toggle").is(":checked"),e.properties.underline=R()(".io-underline-toggle").is(":checked"),e.properties.color=R()(".io-color-choose").spectrum("get").toHexString(),R()("#io-component-"+this.currentSelectedText).css({"font-family":null!=g.default.getFontMap()[e.properties.font]?g.default.getFontMap()[e.properties.font].css:"","font-size":e.properties.fontSize+"px","font-style":e.properties.italic?"italic":"normal","font-weight":e.properties.bold?"bold":"normal",color:e.properties.color,"text-decoration":e.properties.underline?"underline":"normal"}),this.previousFontColorMap[this.currentSelectedText]=R()(".io-color-choose").spectrum("get").toHexString()}},{key:"timeChanged",value:function(){this.ioObject.duration=parseInt(R()(".io-change-time").val());for(var e=0;e<this.ioObject.clips.length;e++){var t=this.ioObject.clips[e];t.end=this.ioObject.duration,e>0&&(t.footage.duration=this.ioObject.duration)}}},{key:"textPositionChanged",value:function(e){var t=R()("#io-draggable-component-"+e),i=t.position().top,a=t.position().left,s=(t.width(),t.height(),this.getClipOf(e));s.properties.xposRaw=a,s.properties.yposRaw=i,s.properties.xpos=this.getValueForProject(a,!0),s.properties.ypos=this.getValueForProject(i,!1),this.reconstructUI()}},{key:"saveIntroOutro",value:function(){this.introOutroPopModal&&this.introOutroPopModal.hideModal(),this.onSaveHandler&&this.onSaveHandler(this.ioDetails)}},{key:"cancelIntroOutro",value:function(){this.closeCallback?this.closeCallback():this.introOutroPopModal.hideModal()}},{key:"addNewText",value:function(e){var t=0,i=[];R()("#changeTextPixel").val(20),R()(".io-bold-toggle").prop("checked",!1),R()(".io-italic-toggle").prop("checked",!1),R()(".io-underline-toggle").prop("checked",!1),i[0]={0:{xpos:200*Math.random(),ypos:100*Math.random()}},"themeSelection"==e&&(t=1,i[0]={0:this.themePositionHash[this.selectedThemeId][0],1:this.themePositionHash[this.selectedThemeId][1]});for(var a=0;a<=t;a++){var s=C.videoI18N_v2.introOutro.enterYourText,o=parseInt(R()(".io-change-time").val()),n={containsAudio:!1,containsVideo:!1,containsText:!0,duration:o,type:"text",isIntro:this.isIntroPop,isOutro:!this.isIntroPop},l=i[0][a].xpos,r=i[0][a].ypos,d={fadein:0,fadeout:0,opacity:1,text:s,xposRaw:this.getValueForPlayer(l,!0),yposRaw:this.getValueForPlayer(r,!1),xpos:l,ypos:r,font:R()("#ioTextFontStyle").val(),fontSize:R()("#changeTextPixel").val(),bold:R()(".io-bold-toggle").is(":checked"),italic:R()(".io-italic-toggle").is(":checked"),underline:R()(".io-underline-toggle").is(":checked"),color:R()(".io-color-choose").spectrum("get").toHexString(),isPlaceHolder:!0},c=this.ioObject.clips.length,u={deleted:!1,end:o,footage:n,id:c,position:1e-4,properties:d,start:0,track:this.ioObject.clips.length+1};"mf"===e&&this.selectedMf&&(u.properties.text=this.selectedMf,this.selectedMf=void 0,u.properties.isPlaceHolder=!1),this.ioObject.clips.push(u),this.reconstructUI(),this.currentSelectedText=c,this.selectText(c),this.previousFontColorMap[this.currentSelectedText]=this.brand_font_color}}},{key:"getValueForProject",value:function(e,t){var i=R()(".io-components-container").width(),a=R()(".io-components-container").height(),s=this.canvasDimen.width,o=this.canvasDimen.height;return t?g.default.roundNumber(e*(s/i),2):g.default.roundNumber(e*(o/a),2)}},{key:"getValueForPlayer",value:function(e,t){var i=R()(".io-components-container").width(),a=R()(".io-components-container").height(),s=this.canvasDimen.width,o=this.canvasDimen.height;return t?g.default.roundNumber(e*(i/s),2):g.default.roundNumber(e*(a/o),2)}},{key:"reconstructUI",value:function(){if(0==this.selectedThemeId)return R()(".io-text-component").hide(),void R()(".io-text-properties").hide();R()(".io-text-properties").show();var e=R()(".io-components-container");e.empty();for(var t=0;t<this.ioObject.clips.length;t++){var i=this.ioObject.clips[t];if(i.footage.containsText){var a=document.createElement("div"),s=document.createElement("span"),o=document.createElement("div");o.id="io-component-"+i.id,s.id="io-draggable-component-"+i.id,R()(s).addClass("se-text-component io-text-component"),R()(o).addClass("io-text-component-inner"),R()(s).css({left:this.getValueForPlayer(i.properties.xpos,!0)+"px",top:this.getValueForPlayer(i.properties.ypos,!1)+"px"}),R()(o).append(this.newlineToLinebreak(i.properties.text)),this.checkAndPopulateMf(i.properties.text),R()(o).find("div:empty").remove(),R()(o).css({"font-family":null!=g.default.getFontMap()[i.properties.font]?g.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","text-decoration":i.properties.underline?"underline":"normal",color:"Enter your text"===i.properties.text?this.brand_font_color||this.themePositionHash[this.selectedThemeId][0].color:i.properties.color,"line-height":"1.625em",position:"relative"}),R()(s).append("<span class='close io-delete-text' id='delete-"+i.id+"'><img src='/img/close-white.png'></span>"),R()(o).attr("contentEditable",!0);var n=this;R()(s).draggable({containment:"#introOutroVideoPreview",scroll:!1,opacity:.9,start:function(e,t){R()(t.helper).css("width",Math.ceil(R()(e.target).outerWidth()+1)+"px")},stop:function(e){n.textPositionChanged(e.target.id.split("io-draggable-component-")[1])}}),R()(o).click((function(e){var t=n.getClipOf(e.currentTarget.id.split("io-component-")[1]);n.textEditMode(t.id)})),R()(s).append(o),R()(a).append(s),e.append(a),R()(".io-delete-text").bind("click",this.deleteIntroOutroText),R()(".io-text-component-inner").bind("keyup",this.textEditableChanged),R()("#io-component-"+i.id).off("focusout",this.textEditableChanged).on("focusout",this.textEditableChanged),R()(o).bind("focus",(function(e){n.getClipOf(e.currentTarget.id.split("io-component-")[1]).properties.isPlaceHolder&&R()(this).html("")})),R()(o).bind("blur",(function(e){n.getClipOf(e.currentTarget.id.split("io-component-")[1]).properties.isPlaceHolder&&R()(this).html(C.videoI18N_v2.introOutro.enterYourText)}))}}this.initializeAtwho()}},{key:"textEditMode",value:function(e){this.selectText(e),R()("#io-component-"+e).get(0).focus();var t=this.getClipOf(e);R()("#ioTextFontStyle").val(t.properties.font),R()("#changeTextPixel").val(t.properties.fontSize),R()(".io-bold-toggle").prop("checked",t.properties.bold),R()(".io-italic-toggle").prop("checked",t.properties.italic),R()(".io-underline-toggle").prop("checked",t.properties.underline),R()(".io-color-choose").spectrum("set",this.brand_font_color||t.properties.color)}},{key:"selectText",value:function(e){this.currentSelectedText=e}},{key:"getClipOf",value:function(e){for(var t=void 0,i=0;i<this.ioObject.clips.length;i++)if(this.ioObject.clips[i].id==e){t=this.ioObject.clips[i];break}return t}},{key:"getThemeDetails",value:function(e){return{thumb:e>0?"https://s3.amazonaws.com/hippolms-wiz-static/themes/introoutro/"+e+"/thumb.jpg":"",compressed:e>0?"https://s3.amazonaws.com/hippolms-wiz-static/themes/introoutro/"+e+"/compressed.mp4":"",id:e}}},{key:"deleteIntroOutro",value:function(e,t){this.selectedThemeId="0",this.ioDetails=e,t?(this.ioDetails.intro||(this.ioDetails.intro={}),this.ioObject=this.ioDetails.intro):(this.ioDetails.outro||(this.ioDetails.outro={}),this.ioObject=this.ioDetails.outro),this.selectTheme("0"),this.onSaveHandler&&this.onSaveHandler(this.ioDetails)}},{key:"checkAndPopulateMf",value:function(e){if(this.canShowPersonalization)for(var t,i=0,a=e.indexOf("${",0);-1!=a&&-1!=i;)-1!=(i=e.indexOf("}",a))&&(t=e.substring(a+2,i),this.mfValues.includes("{"+t+"}")||(this.mfValues.push("{"+t+"}"),R()("#ioMfSelector").append(R()("<option>"+t+"</option>"))),a=e.indexOf("${",i))}},{key:"handleMfChange",value:function(){var e=R()("#ioMfSelector").find(":selected").val();if("-- Select --"!==e)if(this.mfValues.includes("{"+e+"}")){if(this.currentSelectedText){var t=this.getClipOf(this.currentSelectedText);if(t){var i=R()("#io-component-"+this.currentSelectedText).text();i=t.properties.isPlaceHolder?"${"+e+"} ":i+" ${"+e+"} ",t.properties.text=i,R()("#io-component-"+this.currentSelectedText).text(t.properties.text),t.properties.isPlaceHolder=!1}else this.selectedMf="${"+e+"} ",this.addNewText("mf")}else this.selectedMf="${"+e+"} ",this.addNewText("mf");R()("#ioMfSelector").val("-- Select --").trigger("change")}else this.mfValues.push("{"+e+"}"),R()("#ioMfSelector").append(R()("<option selected>"+e+"</option>")).trigger("change"),R()("#select2-ioMfSelector-results").find(".select2-results__option--highlighted").remove(),this.initializeAtwho()}},{key:"initializeAtwho",value:function(){if(this.canShowPersonalization)for(var e=0;e<this.ioObject.clips.length;e++){var t=this.ioObject.clips[e];t.footage.containsText&&R()("#io-component-"+t.id).atwho({at:"$",data:this.mfValues,limit:this.mfValues.length})}}}]),c}(c().View),Pt=i(85156),Tt=i.n(Pt),St=i(16797),xt=i.n(St),At=i(44836),It=i.n(At),Bt=i(48242),Et=i(49714),Lt=i.n(Et),Vt=(i(11240),i(45674),i(8689)),Rt=i(83386),Nt=i(44063),Ft=i(27693),Ot=i(19755);var Dt=HippoVideo.BroadCaster,Mt=Dt.API.Publisher,Ut=Dt.EventGroup,zt=Dt.EventName,Gt=function(e){(0,o.Z)(c,e);var t,i,d=(t=c,i=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}}(),function(){var e,a=(0,l.Z)(t);if(i){var s=(0,l.Z)(this).constructor;e=Reflect.construct(a,arguments,s)}else e=a.apply(this,arguments);return(0,n.Z)(this,e)});function c(){return(0,a.Z)(this,c),d.apply(this,arguments)}return(0,s.Z)(c,[{key:"initialize",value:function(e){var t=this;this.isNewRecording=!!e.isNewRecording,this.assetId=e.assetId,this.authoringId=e.authoring_id,this.initiator=e.from,this.recordConfiguration=e.recordConfiguration,this.src=void 0,this.title=void 0,this.shareURL=void 0,this.newShareURL=void 0,this.ctaCount=void 0,this.thumbnail=void 0,this.categoryId=void 0,this.authorState=void 0,this.guestDigest=void 0,this.subtitleURL=void 0,this.description=void 0,this.simpleVideoEditor=void 0,this.quickActionType=void 0,this.performActionAfterUpload=void 0,this.videoResolution="1080",this.planParams=[],this.ioDetails={},this.projectJSON=void 0,this.cta_mfs=void 0,this.isError=!1,this.slowUpload=!1,this.canFail=!1,this.isVideoAvailable=!0,this.isUploadInProgress=!1,this.isGIFPreview=!1,this.exportAllowed=!1,this.deleteAllowed=!1,this.commentAllowed=!1,this.default_video_comments_enabled=!1,this.default_video_reactions_enabled=!1,this.default_video_autoplay_enabled=!1,this.proEditAllowed=!1,this.proEditEnabled=!1,this.downloadEnabled=!1,this.cloneVideoEnabled=!1,this.simpleEditAllowed=!1,this.simpleEditEnabled=!1,this.canShowSimpleEdit=!1,this.canAskConfiramtion=!1,this.isContactAssociatedVideo=!1,this.isGIFCreatorInitialized=!1,this.isCurrentlyRecordedPreview=!1,this.isDynamicInitiator=!1,this.dynamicInitiatorObj={},Ot(".plan-cng-bar").hide(),Ot("#fc_frame").show(),this.digest=Ot("#digest").val(),this.isGuestUser="true"===Ot("#isGuestUser").val(),this.$el=Ot("#videoPreviewContainer"),this.isTopbarEnabled="true"===(Ot("#enableTopBar").val()||"").trim(),this.isDigestPreview=this.digest&&""!==this.digest,this.isSchoolAddedStudentUser="2"===Ot("#planType").val()&&"1"===Ot("#userRole").val(),this.isSupportPlan=Ot("#planType").val()==b().plans.SUPPORT,this.isSchoolStudentUserProeditAllowed=!1,this.isCenterAlignedPlayer=this.isDigestPreview||this.isSchoolAddedStudentUser||HippoVideo.data.api.getProperty("isShopifyUser"),this.uploadingProgressbar=new st.default({showAsModal:!0,id:"progressLoader"}),this.videoModel=this.digest?new(y())({digest:this.digest}):new(y()),this.isTicketVideoPreview="tickets"===e.from,this.guestVideoEdit=!1,this.isTicketVideoPreview&&HippoVideo.data.api.getProperty("isGuestVideoEditEnabled")&&(this.guestVideoEdit=!0),this.isAssignmentVideoPreview="assignments"===e.from,this.isTestimonialVideoPreview="testimonials"===e.from,this.isGuestRecording="true"===Ot("#isGuestRecording").val(),this.isPersonalizeVideo=!1,this.email=HippoVideo.UserProfile.orgUserEmail,this.clipboard=void 0,this.isShopifyUser=HippoVideo.data.api.getProperty("isShopifyUser"),this.virtualbgEnabled=HippoVideo.data.api.getProperty("virtualBgEnabled"),this.isReplaceVideoEnabled=HippoVideo.data.api.getProperty("isReplaceVideoEnabled"),this.userId=HippoVideo.data.api.getProperty("userId"),this.introOutroView=new Ct(this.assetId,this.digest,(function(e){t.introOutroSaveCallback(e)})),this.isSchoolAddedStudentUser&&this.$el.addClass("white-bg"),clearTimeout(this.hideVdoErrorStateBar),"gmail"==this.initiator&&(this.isDynamicInitiator=!0);try{this.checkExtesnionInstalled()}catch(e){this.chromeExtensionInstalled=!1}Ot(".hv-checklist-bottom").addClass("disp-none"),this.videoPagesModel=new(Lt()),Ot(".gitomer-widget-wrapper").addClass("hide")}},{key:"render",value:function(){var e=this;this.$el.parent().addClass("video_wiz");var t=g.default.getParameterByName("from",window.location.href);if(console.log("initFrom = ",t),"recorded"===this.assetId||"popup"==t)Ot(".hv-leftnav-notify").addClass("disp-none"),Ot("#videoPreviewContainer").addClass("new-video-preview-top"),Ot(".hvlnav-top").addClass("disp-none"),this.isCurrentlyRecordedPreview=!0,this.getRecordingInitiator(),this.getVideoFromExtensionPreviewPage();else{var i="from_quick_record=true&vbg=false";g.default.getParameterByName("custom_doc_id",window.location.href)&&(i+="&custom_doc_id="+g.default.getParameterByName("custom_doc_id",window.location.href)),this.videoModel.getPreview(this.assetId,i,(function(t){t.lp_list=[{}],v().trigger("reactStoreDispatch",{actionName:"setPreviewSuccess",payload:t}),e.processPreviewPageResponse(t)}),(function(e){console.log("Preview page response failed..")}))}try{Mt.publish(Ut.LISTENER,zt.HIPPOWIDGET.SHOW,{DATA:{forceShow:!1}})}catch(e){}}},{key:"initializeClipboard",value:function(){var e=this;this.clipboard=new(p())("#copyAssignmentLink",{target:function(){var t=(e.videoURL||"").replace("/play/","/thumbnail/");return Ot("body").append('<div id="copyLinkWithThumbnailTarget"><a href="'+e.videoURL+'" target="_blank"><img style="max-width: 350px;" alt="'+e.videoURL+'" src="'+t+'"></img></a></div>'),document.querySelector("#copyLinkWithThumbnailTarget")}}),this.clipboard.on("success",(function(){Ot("#catUrl").select(),Ot("#copyAssignmentLink").text(" ".concat(C.videoI18N_v2.wizShareI18N.copiedText)),g.default.copyLink(event),g.default.showBannerAlert(C.videoI18N_v2.wizCommon.guestRecordFinish,3e3),setTimeout((function(){Ot("#copyAssignmentLink").text(" ".concat(C.videoI18N_v2.wizShareI18N.copyLink))}),1500),Ot("#copyLinkWithThumbnailTarget").remove()})),this.clipboard.on("error",(function(e){u.default.showBannerAlert(C.videoI18N_v2.wizShareI18N.wentWrong,4e3,"error"),Ot("#copyLinkWithThumbnailTarget").remove()}))}},{key:"processPreviewPageResponse",value:function(e){var t=this;if(this.src=e.signed_url,this.title=e.title,this.videoSettings=e.video_settings,this.thumbnail=e.thumb,this.isError=e.is_error,this.canFail=e.can_fail,this.shareURL=e.share_url,this.newShareURL=e.new_share_url,this.ctaCount=e.cta_count,this.categoryId=e.current_category_id,this.authorState=e.author_state,this.guestDigest=e.guest_digest,this.isGIFPreview=e.is_image,this.authoringId=e.authoring_id,this.subtitleURL=e.subtitle_url,this.subtitle_list=e.subtitle_list,this.description=(e.description||"").trim(),this.exportAllowed=e.export_allowed,this.deleteAllowed=e.show_delete,this.commentAllowed=e.comments_enabled,this.default_video_comments_enabled=e.default_video_comments_enabled,this.default_video_reactions_enabled=e.default_video_reactions_enabled,this.default_video_autoplay_enabled=e.default_video_autoplay_enabled,this.isPaidUser=e.is_paid_user,this.videoPreview=e.video_preview,this.gifPreview=e.gif_preview,this.thumbnailJson=e.thumbnail_json||[],this.proEditAllowed=void 0===e.pro_edit_allowed||e.pro_edit_allowed,this.containsAudio=e.contains_audio,this.maskImageLinks=e.mask_img_links,this.background_images=e.background_images,this.videoThumbnailLink=e.video_thumbnail_link,this.showAssignmentSubmitBtn=null!=e.show_assignment_submit&&e.show_assignment_submit,this.slowUpload=e.slow_upload,this.virtualBginProgress=e.is_virtualbg_in_progress,this.asset_type=e.asset_type,e.virtual_bg_applied)try{hj("trigger","vbg_survey")}catch(e){console.log("Exception while opening Hotjar poll.."+e)}this.isSchoolAddedStudentUser&&this.proEditAllowed&&(this.isSchoolStudentUserProeditAllowed=void 0!==e.pro_edit_enabled_for_students&&e.pro_edit_enabled_for_students),this.simpleEditAllowed=void 0===e.simple_edit_allowed||e.simple_edit_allowed,this.canAskConfiramtion=e.ask_confirmation,this.canShowProgressBar=void 0!==e.isSlowNetwork&&e.isSlowNetwork,this.is_uploading=void 0!==e.is_uploading&&e.is_uploading,this.notifymeBtnClicked=!1,console.log("canShowProgressBar = ",this.canShowProgressBar),this.canShowProgressBar&&(this.notifymeBtnClicked=null!=g.default._getCookie("videoStatusNotified-"+this.assetId),this.is_uploading&&(this.updateProgressbar("uploading"),this.chromeExtensionInstalled&&this.getVideoStatusFromExtension())),this.isContactAssociatedVideo=void 0!==e.contact_id&&void 0!==e.contact_email||e.canShowSendViaGmail||g.default.getParameterByName("show_send_via_gmail",window.location.href),this.addToContacts=e.canShowSendViaGmail,this.playbackSpeedEnabled=e.playback_speed_enabled,this.quickActionType=this.isContactAssociatedVideo?"salesWorkflow":"shareExport";var i=HippoVideo.data.api.getProperty("isPersonalizationEditEnabled");this.selectedVideo=-1,e.projectjson?(this.projectJSON=e.projectjson,this.videoResolution=e.projectjson.resolution,e.projectjson.advancedEdit||e.projectjson.slideshow?this.isVideoAvailable=e.file_exists:this.canShowSimpleEdit=!0,e.projectjson.selectedVideo&&(this.selectedVideo=e.projectjson.selectedVideo),i&&(e.projectjson.is_renderless?(this.canShowSimpleEdit=!1,this.renderless_present=!0):e.projectjson.seSessionDetails&&(i=!1)),this.virtualbgEnabled=this.virtualbgEnabled&&this.canShowSimpleEdit&&this.isWebCamOnly(this.projectJSON)):this.canShowSimpleEdit=!this.isGIFPreview,e.cta_mf&&(this.cta_mfs=e.cta_mf),this.virtualbgEnabled=this.virtualbgEnabled&&this.canShowSimpleEdit&&this.isWebCamOnly(this.projectJSON),this.isCenterAlignedPlayer||e.view_only,this.isCurrentlyRecordedPreview&&(Ot(".hv-leftnav-notify").addClass("disp-none"),Ot("#videoPreviewContainer").addClass("new-video-preview-top"),Ot(".hvlnav-top").addClass("disp-none"),this.getCustomThumbnails()),Tt()({title:this.title||"New Recording",thumbnail:this.videoThumbnailLink||"/img/cat-thumb-6.png",canShowVideoCampaigns:this.canShowVideoCampaigns,showShareForReview:e.can_show_share_for_review},(function(i,a){try{t.$el.children().length||t.$el.empty().append(Ot(a)).removeClass("hide").show(),t.completePreviewPageLoading(e),t.initializeEventListeners(),t.isUploadInProgress&&Ot("#guestSubmitFooter").addClass("disabled")}catch(e){console.log(e)}})),e.isNewVideo&&HippoVideo.AppRegistry.isPlgTrialExpPlan&&Number(HippoVideo.data.api.getProperty("userPersonaVideoCreatedCount"))<Number(HippoVideo.data.api.getProperty("userPersonaVideoToCreate"))&&HippoVideo.Class.TopBarView.renderCreatedVideoPopup()}},{key:"processPlanParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.video||{}).features||{};this.planParams=e,this.simpleEditEnabled=t.simple_edit||t.trim,this.proEditEnabled=t.advanced_edit,this.downloadEnabled=t.download,this.cloneVideoEnabled=t.clone_video,this.createGifEnabled=t.create_gif,this.playbackSpeedAllowed=t.playback_speed,this.deliveryDownloadAllowed=t.delivery_download,this.deliveryDownloadEnabled=this.deliveryDownloadEnabled,this.isVideoPersonalisationEnabled=!this.isTicketVideoPreview&&!this.isAssignmentVideoPreview&&!this.isTestimonialVideoPreview&&t.personalised_campaigns,this.isThumbnailPersonalizationEnabled=!this.isTicketVideoPreview&&!this.isAssignmentVideoPreview&&!this.isTestimonialVideoPreview&&t.thumbnail_personalisation,this.canShowVideoPersonalization=this.isPaidUser?this.isVideoPersonalisationEnabled:HippoVideo.data.api.getProperty("planType")!=b().plans.TEACHER,this.canShowThumbnailPersonalization=this.isPaidUser?this.isThumbnailPersonalizationEnabled:HippoVideo.data.api.getProperty("planType")!=b().plans.TEACHER,this.canShowPersonalisationTab=this.canShowThumbnailPersonalization||this.canShowVideoPersonalization,this.isVideoCampaignsEnabled=!this.isTicketVideoPreview&&!this.isAssignmentVideoPreview&&!this.isTestimonialVideoPreview&&HippoVideo.AppRegistry.isCampaignsEnabled,this.isCampaignLinkEnabled=this.isVideoCampaignsEnabled,this.canShowVideoCampaigns=this.isPaidUser?this.isVideoCampaignsEnabled:HippoVideo.data.api.getProperty("planType")!=b().plans.TEACHER,this.canShowCampaignLink=this.isPaidUser?this.isCampaignLinkEnabled:HippoVideo.data.api.getProperty("planType")!=b().plans.TEACHER,HippoVideo.data.api.getProperty("isFreePlan")&&(this.canShowCampaignLink=!1,this.canShowVideoCampaigns=!1),this.canShowVideoCampaignsTab=this.canShowVideoCampaigns||this.canShowCampaignLink}},{key:"initializeEventListeners",value:function(){this.delegate("click","#goBack",this.goBack),this.delegate("click","#dynamicInitiatorBtn",this.sendVideoLinkToExtension),this.delegate("click",".support-user-warning",(function(){g.default.showAdminAlert()})),this.delegate("click",".close-vdo-status-bar",this.closeVdoErrorStateBar),this.delegate("click",".install-chrome-extension",this.redirectToExtensionPage),this.delegate("click","#shopifyExport",this.shopifyExport),this.delegate("click","#guestSubmitFooter",this.guestSubmitFooter),this.isGuestUser,this.isGuestUser,this.isCenterAlignedPlayer,this.delegate("scroll",".hvnewpreview-wrapper",this.scrollIntoViewPreview),this.delegate("click",".hvnewpreview-wrapper",this.scrollIntoViewPreview),this.delegate("click","#stickyMenuIcon",this.openStickMenu),this.delegate("click",".sticky-menu-bar",this.closeStickMenu);var e=this;document.querySelector(".hvnewpreview-wrapper").addEventListener("scroll",(function(t){e.scrollIntoViewPreview()}))}},{key:"bindThisForMethods",value:function(){this.goBack=this.goBack.bind(this),this.cloneVideo=this.cloneVideo.bind(this),this.sendVideoLinkToExtension=this.sendVideoLinkToExtension.bind(this),this.goToProEdit=this.goToProEdit.bind(this),this.openSimpleEditContainer=this.openSimpleEditContainer.bind(this),this.openGIFCreationTool=this.openGIFCreationTool.bind(this),this.proceedToDeleteVideo=this.proceedToDeleteVideo.bind(this),this.deleteVideoConfirmation=this.deleteVideoConfirmation.bind(this),this.showOriginalPreviewPage=this.showOriginalPreviewPage.bind(this),this.proceedCloneVideo=this.proceedCloneVideo.bind(this),this.downloadVideo=this.downloadVideo.bind(this),this.editButtonClicked=this.editButtonClicked.bind(this),this.performProEdit=this.performProEdit.bind(this),this.performPersonalizationEdit=this.performPersonalizationEdit.bind(this),this.performSimpleEdit=this.performSimpleEdit.bind(this),this.saveSimpleEdit=this.saveSimpleEdit.bind(this),this.callbackForEmbedCodeChange=this.callbackForEmbedCodeChange.bind(this),this.goToCtaEditPage=this.goToCtaEditPage.bind(this),this.cancelSimpleEdit=this.cancelSimpleEdit.bind(this),this.videoCanPlay=this.videoCanPlay.bind(this),this.saveVideoTitle=this.saveVideoTitle.bind(this),this.saveVideoDescription=this.saveVideoDescription.bind(this),this.videoComputedDuration=this.videoComputedDuration.bind(this),this.addIntroOutroCallback=this.addIntroOutroCallback.bind(this),this.videoProcessingNotification=this.videoProcessingNotification.bind(this),this.getVideoStatusFromExtension=this.getVideoStatusFromExtension.bind(this),this.closeVdoErrorStateBar=this.closeVdoErrorStateBar.bind(this),this.pollForVideoProcess=this.pollForVideoProcess.bind(this),this.updateProgressbar=this.updateProgressbar.bind(this),this.hideuploadProgressPopUp=this.hideuploadProgressPopUp.bind(this),this.saveAssignment=this.saveAssignment.bind(this),this.redirectToExtensionPage=this.redirectToExtensionPage.bind(this),this.shopifyExport=this.shopifyExport.bind(this),this.showShopifyLoginForExport=this.showShopifyLoginForExport.bind(this),this.uploadToShopify=this.uploadToShopify.bind(this),this.guestSubmitFooter=this.guestSubmitFooter.bind(this),this.replaceVideo=this.replaceVideo.bind(this),this.replaceVideoCallback=this.replaceVideoCallback.bind(this),this.isWebCamOnly=this.isWebCamOnly.bind(this),this.openShareForReview=this.openShareForReview.bind(this),this.scrollIntoViewPreview=this.scrollIntoViewPreview.bind(this),this.checkForProjectJson=this.checkForProjectJson.bind(this)}},{key:"openStickMenu",value:function(){Ot(".sticky-menu-bar").hasClass("hide")?Ot(".sticky-menu-bar").removeClass("hide"):Ot(".sticky-menu-bar").addClass("hide")}},{key:"closeStickMenu",value:function(e){}},{key:"getCustomThumbnails",value:function(){var e=this;(new(y())).getCustomThumbNails(this.assetId,(function(t){e.videoThumbnailLink=t.thumbnail_data.default_thumbnail,Ot(".hvnewpreview-sticky-thumbnail").empty(),Ot(".hvnewpreview-sticky-thumbnail").append("<img src ="+e.videoThumbnailLink+">")}),(function(e){console.log("API failed")}))}},{key:"shopifyExport",value:function(e){var t=this,i=this;(new(y())).fetchShopifyProducts(void 0,(function(e){if(e.code>0)t.currentOpenedModal=new(k())({title:C.videoI18N_v2.shopifyForm.addVideoToShopify,body:xt()(r.default.extend({},C.videoI18N_v2,{isLoading:!1,integrated:!1})),el:Ot("#shareEmailPopup"),id:"shopify-video",showConfirm:!1,showIcon:!1,size:"small"}),t.currentOpenedModal.showModal(),Ot("#shopifyAddAccount").off("click").on("click",t.showShopifyLoginForExport),Ot("#shopifyCancel").off("click").on("click",(function(){i.currentOpenedModal.hideModal()}));else{var a=e.data.products,s=e.access_params.data;t.currentOpenedModal=new(k())({title:C.videoI18N_v2.shopifyForm.addVideoToShopify,body:xt()(r.default.extend({},C.videoI18N_v2,{isLoading:!1,products:a,vendor:s,integrated:!0})),el:Ot("#shareEmailPopup"),id:"shopify-video",showConfirm:!1,showIcon:!1,size:"small"}),t.currentOpenedModal.showModal(),0==a.length?Ot("#shopifyPostToStore").prop("disabled",!0):Ot("#shopifyPostToStore").prop("disabled",!1);var o={theme:"hippocategory",width:"element",dropdownCssClass:"et-dropdown-css"};Ot("#shopifyProductList").select2(o),Ot("#shopifyStoreList").select2(o),Ot("#shopifyPostToStore").off("click").on("click",t.uploadToShopify),Ot("#shopifyStoreList").on("change",t.getProductList),Ot("#shopifyCancel").off("click").on("click",(function(){i.currentOpenedModal.hideModal()}))}})),g.default.trackInThirdPartyTools("New Preview: Export option Clicked - Shopify",{assetId:this.assetId})}},{key:"guestSubmitFooter",value:function(){this.isUploadInProgress||Bt.Z.saveGuestSumbit()}},{key:"getProductList",value:function(){var e=Ot("#shopifyStoreList :selected").val();"Add Store"==e?(Ot("#shopifyExportGrantedAccess").addClass("hide"),Ot("#shopifyExportNotGrantedAccess").removeClass("hide"),Ot("#shopifyAddAccount").off("click").on("click",this.showShopifyLoginForExport)):(new(y())).fetchShopifyProducts(e,(function(e){0==e.code&&(0==e.data.products.length?Ot("#shopifyPostToStore").prop("disabled",!0):Ot("#shopifyPostToStore").prop("disabled",!1),Ot("#shopifyProductWrapper").empty(),Ot("#shopifyProductWrapper").append(It()(r.default.extend({},C.videoI18N_v2,{products:e.data.products}))),Ot("#shopifyProductList").select2({theme:"hippocategory",width:"element",dropdownCssClass:"et-dropdown-css"}))}))}},{key:"uploadToShopify",value:function(){var e=this;(new(y())).postToShopifyProducts({assetId:this.assetId,storeName:Ot("#shopifyStoreList").val(),productId:Ot("#shopifyProductList").val(),productName:Ot("#shopifyProductList").text()},(function(t){t.uploading&&(e.currentOpenedModal.hideModal(),u.default.showBannerAlert(T().uploadInProgressStart.concat("Shopify"),4e3))}))}},{key:"showShopifyLoginForExport",value:function(e){var t=this,i=Ot("#shopifyStoreName").val();g.default.shopifyGrantAccess(i,(function(){t.currentOpenedModal.hideModal(),t.shopifyExport()})),g.default.trackInThirdPartyTools("Import-Pop - Shopify Login opened",{})}},{key:"completePreviewPageLoading",value:function(e){if(Ot(".footer, #floatingButtons").hide(),g.default.hide_page_loading(),this.processPlanParams(e.plan_params),this.canShowSimpleEdit&&this.projectJSON&&this.setProjectJSON(this.projectJSON),this.isRecordedByGuest(),this.isDigestPreview)Ot("#guestVideoActions").show(),this.isUploadInProgress&&Ot("#guestSubmit").addClass("disabled"),Ot("#currentAssetId").val(this.assetId);else if(!this.isError){this.selectedPageURL="",e.page_details&&(e.page_details.selected_page_url?this.selectedPageURL=e.page_details.selected_page_url:e.page_details.default_page_url&&(this.selectedPageURL=e.page_details.default_page_url),e.page_details.page_merge_fields&&(this.page_merge_fields=e.page_details.page_merge_fields));var t=this.src?this.src:Ot("video#current-screen-recorded")[0].src;if(e&&e.projectjson&&1==e.projectjson.is_renderless){t=e.signed_url;var i=1;"CASH_CHQ"==g.default.getQueryParams().AUTOPAY_TYPE&&(i=2);for(var a=0;a<e.projectjson.clips.length;a++)if(e.projectjson.clips[a].footage.containsVideo&&e.projectjson.clips[a].footage.cdnVideoKey&&e.projectjson.clips[a].properties&&e.projectjson.clips[a].properties.stream&&e.projectjson.clips[a].properties.stream.includes(i)){t="https://thirdparty-cdn.hippovideo.io/"+e.projectjson.clips[a].footage.cdnVideoKey;break}}if(this.previewSidebarView=new bt({getPreviewResponseJson:e,title:this.title,assetId:this.assetId,shareURL:this.shareURL,selectedPageURL:this.selectedPageURL,is_selected_:e.is_selected_,page_merge_fields:this.page_merge_fields,org_tok:e.org_tok,pageDigest:this.digest,virtualbgEnabled:this.virtualbgEnabled,selectedVideo:this.selectedVideo,email:e.email||this.email,isGIFPreview:this.isGIFPreview,categoryId:this.categoryId,description:this.description,guestDigest:e.guest_digest,displayDate:e.display_date,privacyType:e.privacy_type,ticketStatus:e.ticket_status,commentsEnabled:e.comments_enabled,reactionsEnabled:e.reactions_enabled,default_video_comments_enabled:e.default_video_comments_enabled,default_video_reactions_enabled:e.default_video_reactions_enabled,default_video_autoplay_enabled:e.default_video_autoplay_enabled,playbackSpeedEnabled:e.playback_speed_enabled,autoplayEnabled:e.autoplay_enabled,deliveryDownloadEnabled:e.delivery_download_enabled,exportAllowed:this.exportAllowed,videoPlayerView:this.videoPlayerView,isUploadInProgress:this.isUploadInProgress,uploadingProgressbar:this.uploadingProgressbar,isTicketVideoPreview:this.isTicketVideoPreview,isContactAssociatedVideo:this.isContactAssociatedVideo,isAssignmentVideoPreview:this.isAssignmentVideoPreview,isTestimonialVideoPreview:this.isTestimonialVideoPreview,isCurrentlyRecordedPreview:this.isCurrentlyRecordedPreview,featurePlanParams:(this.planParams.video||{}).features||{},ctaPlanParams:this.planParams.video_cta||{},exportPlanParams:(this.planParams.video_export||{}).features||{},sharePlanParams:(this.planParams.video_share||{}).features||{},brandingPlanParams:this.planParams.video_branding||{},isSimpleEditAllowed:this.simpleEditEnabled&&this.canShowSimpleEdit,isVideoPersonalizationEnabled:this.isVideoPersonalisationEnabled,isThumbnailPersonalizationEnabled:this.isThumbnailPersonalizationEnabled,canShowVideoPersonalization:this.canShowVideoPersonalization,canShowThumbnailPersonalization:this.canShowThumbnailPersonalization,canShowPersonalisationTab:this.canShowPersonalisationTab,isVideoCampaignsEnabled:this.isVideoCampaignsEnabled,isCampaignLinkEnabled:this.isCampaignLinkEnabled,canShowVideoCampaigns:this.canShowVideoCampaigns,canShowCampaignLink:this.canShowCampaignLink,canShowVideoCampaignsTab:this.canShowVideoCampaignsTab,playbackSpeedAllowed:this.playbackSpeedAllowed,deliveryDownloadAllowed:this.deliveryDownloadAllowed,thumbnailUrl:this.thumbnail,canFail:this.canFail,videoPreview:this.videoPreview,gifPreview:this.gifPreview,projectJson:this.projectJSON,thumbnailJson:this.thumbnailJson,quickActionsView:this.quickActionsView,maskImageLinks:this.maskImageLinks,background_images:this.background_images,videoThumbnailLink:this.videoThumbnailLink,cta_mfs:this.cta_mfs,videoURL:t,containsAudio:this.containsAudio,isNewRecording:this.isNewRecording,hippoCXDomain:e.hippo_cx_domain,recordConfiguration:this.recordConfiguration,videoSettings:this.videoSettings,ctaCount:this.ctaCount},(function(e,t){})),((this.planParams.video||{}).features||{}).gif_max_time,this.projectJSON){var s=this.getProjectJSON().ioDetails||{};this.previewSidebarView.updateIntroOutro((s.intro||{}).theme,(s.outro||{}).theme)}this.showAssignmentSubmitBtn&&(this.delegate("click","#saveAssignment",this.saveAssignment),this.delegate("click","#cancelAssignment",this.previewSidebarView.cancelAssignment))}this.isTopbarEnabled||(Ot(".recent-video-btn").removeClass("disp-none"),Ot(".recent-video-btn").off("click").on("click",(function(){(new S.Z).render()})))}},{key:"callbackForEmbedCodeChange",value:function(e,t){this.previewSidebarView.campaignLinkView.handlePageChange(e,t)}},{key:"isRecordedByGuest",value:function(){return!!location.pathname.includes("video/ticket/record/")}},{key:"saveAssignment",value:function(){var e=this.$el.find("#videoTitle").val().trim();this.previewSidebarView.saveAssignmentWithTitle(e),this.initializeClipboard(),this.$el.find("#assignmentSubmitPanel").remove()}},{key:"processQueryParams",value:function(){var e=g.default.getParameterByName("from_contacts",window.location.href),t=g.default.getParameterByName("tag",window.location.href);if(!this.isError){switch(t){case"edit":default:break;case"reports":Ot("#videoReports")[0].click();break;case"cta":Ot("#videoMarkettingTab-heading")[0].click(),Ot("#videoMarkettingTab")[0].click();break;case"create_gif":this.openGIFCreationTool();break;case"share":Ot("#videoPublishTab-heading")[0].click();break;case"video-campaigns":this.openVideoCampaignsMailSection();break;case"campaign_reports":var i=g.default.getParameterByName("campaign_id",window.location.href);this.openCampaignReports(i);break;case"customize":Ot("#videoCustomizeTab-heading")[0].click()}window.history.replaceState(void 0,"",window.location.pathname)}e&&(this.initiator="contacts")}},{key:"openCampaignReports",value:function(e){Ot("#videoCampaignsTab-heading")[0].click(),setTimeout((function(){Ot("#videoCampaignReports")[0].click();var t=0,i=setInterval((function(){t>50?clearInterval(i):Ot("#campaignListingContainer").find('.campaign-list-item[data-campaign-id="'+e+'"]').length>0&&(Ot("#campaignListingContainer").find('.campaign-list-item[data-campaign-id="'+e+'"]')[0].click(),clearInterval(i)),++t}),100)}),200)}},{key:"openVideoCampaignsMailSection",value:function(){Ot("#videoCampaignsTab-heading")[0].click(),setTimeout((function(){Ot("#videoCampaign")[0].click()}),2500)}},{key:"setProjectJSON",value:function(e){if(this.updateProgressbar("pre-processed"),this.projectJSON=e,v().trigger("reactStoreDispatch",{actionName:"setProjectJSON",payload:this.projectJSON||{}}),this.processPJForPreview(),this.isUploadInProgress)switch(this.isUploadInProgress=!1,document.querySelector(".hvnewpreview-wrapper").classList.remove("hvnewpreview-overflow-hidden"),v().trigger("reactStoreDispatch",{actionName:"setIsUploadInProgress",payload:!1}),setTimeout((function(){document.querySelector(".hvnewpreview-wrapper").classList.remove("hvnewpreview-overflow-hidden")}),100),this.uploadingProgressbar.remove(),Ot("#guestSubmitFooter").removeClass("disabled"),Ot("#guestSubmit").removeClass("disabled"),this.quickActionsView&&this.quickActionsView.updateUploadStatus(),this.previewSidebarView&&this.previewSidebarView.updateUploadStatus(),this.uploadProgressPopUp&&this.uploadProgressPopUp.hideModal(),this.performActionAfterUpload){case"proEdit":console.log("this.performProEdit();");break;case"simpleEdit":this.performSimpleEdit();break;case"downloadVideo":console.log("this.downloadVideo();");break;case"deleteVideo":console.log("this.deleteVideoConfirmation();");break;case"createGIF":this.openGIFCreationTool();break;case"cloneVideo":console.log("this.cloneVideo();")}}},{key:"getProjectJSON",value:function(){return this.projectJSON}},{key:"updateProgressbar",value:function(e){v().trigger("reactStoreDispatch",{actionName:"updateProgressbar",payload:e})}},{key:"processPJForPreview",value:function(){var e=this;if(this.projectJSON.ioDetails){this.ioDetails=this.projectJSON.ioDetails;try{var t=0;(this.projectJSON.clips||[]).forEach((function(i,a){i.footage.isIntro&&(t=Math.max(t,i.footage.duration)),(i.footage.isIntro||i.footage.isOutro)&&e.projectJSON.clips.splice(a,1)})),(this.projectJSON.clips||[]).forEach((function(e,i){t&&t>0&&(e.position-=t,e.position=Math.max(e.position,1e-4))}))}catch(e){console.log(e)}}else this.ioDetails={}}},{key:"goBack",value:function(){var e=this,t=window.hippoTicketStatusChanged||!1;HippoVideo.data.api.getProperty("isSalesUser")&&Ot(".hv-checklist-bottom").removeClass("disp-none"),"contacts"===this.initiator?window.location.href="/contacts/home":"tickets"===this.initiator?(v().trigger("navigateGuestLibraryPage",t),window.hippoTicketStatusChanged=!1):this.categoryId?"assignments"===this.initiator?v().trigger("navigateAssignmentVideosPage",this.categoryId):"testimonials"===this.initiator?v().trigger("navigateTestimonialsVideosPage",this.categoryId):(new(y())).getVideoCategoryDetails("/video/category_details/".concat(this.assetId),(function(t){0===t.status?v().trigger(4===t.folder_id?"navigateAssignmentVideosPage":"navigateCategoryVideosPage",e.categoryId,!0):v().trigger("navigateCategoryVideosPage",e.categoryId,!0)})):v().trigger("navigateLibraryPage","library")}},{key:"getRecordingInitiator",value:function(){var e=this;chrome.runtime.sendMessage(g.default.getChromeExtensionId(),{getDynamicIntegInitiator:!0},(function(t){if(chrome.runtime.lastError,null!=t&&t.initiator&&"popup"!==t.initiator&&"google-slides"!==t.initiator){switch(e.isDynamicInitiator=!0,e.dynamicInitiatorObj={},t.initiator){case"gmail":case"gmail-add-on":e.dynamicInitiatorObj.label="Add to Gmail";break;case"d2l":e.dynamicInitiatorObj.label="Add to D2L";break;default:e.isDynamicInitiator=!1}"gmail"===t.initiator&&t.initiatorThreadId?(e.dynamicInitiatorObj.dataUrl="https://mail.google.com/mail/u/0/#inbox/".concat(t.initiatorThreadId),e.dynamicInitiatorObj.initiatorGmail="add-on"):e.dynamicInitiatorObj.dataUrl=t.tabUrl,e.dynamicInitiatorObj.initiator=t.initiator}}))}},{key:"sendVideoLinkToExtension",value:function(e){var t=this;g.default.trackInThirdPartyTools("New Preview: Dynamic button Clicked",{assetId:this.assetId}),this.videoModel.getLink("embed-link",this.assetId,(function(e){if(e.status){var i={url:t.dynamicInitiatorObj.dataUrl,videoShareUrl:!0,recordInitiator:t.dynamicInitiatorObj.initiator,shareUrl:e.linkToShare,embedLink:e.embedLink,customerHost:e.customer_host,thumbnailUrl:e.thumbnail_url,initiatorGmail:t.dynamicInitiatorObj.initiatorGmail,videoTitle:t.$el.find("#videoTitle").val().trim(),assetId:t.assetId};chrome.runtime.sendMessage(g.default.getChromeExtensionId(),i,(function(){})),t.$el.find("#dynamicButtonContainer").remove(),t.$el.find("#quickActionsWidgetContainer").removeClass("hide")}else e.confirmed?(g.default.upgradeMail("Share"),g.default._upgradeAlertPopup("Share")):u.default.showBannerAlert(C.videoI18N_v2.wizShareI18N.confirmAccount,3e3,"error")}))}},{key:"getVideoFromExtensionPreviewPage",value:function(){var e=g.default.getChromeExtensionId(),t=this;u.default.getVideoFromExtension(e,(function(e){var i=e.share_url.split("?")[0].split("/video/play/")[1];e.delivery_token=i,HippoVideo.data.api.getProperty("showVideoPages")?t.videoPagesModel.getAllPages("from_contacts=true&from_quick_record=true",(function(i){var a=i.landingPages,s=i.page_details;e.lp_list=a,e.is_selected_=s.is_selected_,e.page_details=s,t.renderPreviewFromExtension(e)})):t.renderPreviewFromExtension(e)}),(function(){t.checkForProjectJson()}),(function(e){var t=e.errorMsg;t&&g.default.trackInThirdPartyTools(t)}))}},{key:"renderPreviewFromExtension",value:function(e){var t=this,i=g.default.getReplaceUrl();this.videoModel.getPlanParams(this.digest,(function(a){r.default.extend(e,a),t.assetId=e.asset_id,t.isCurrentlyRecordedPreview=!0,t.isUploadInProgress=!0,v().trigger("reactStoreDispatch",{actionName:"setPlanParams",payload:a}),v().trigger("reactStoreDispatch",{actionName:"setIsUploadInProgress",payload:!0}),e.export_allowed="true"===(Ot("#exportAllowed").val()||"").trim(),i&&history.replaceState(void 0,"",i+t.assetId),i&&-1!=i.indexOf("video/assignments")&&(e.show_assignment_submit=!0),v().trigger("reactStoreDispatch",{actionName:"setPreviewSuccess",payload:e}),t.activityTracking("VSR video uploaded successfully"),t.processPreviewPageResponse(e)}))}},{key:"checkForProjectJson",value:function(){g.default.getChromeExtensionId();var e=this;new Rt.Z({interval:2e3,token:HippoVideo.data.api.getProperty("authToken"),tokenType:Nt.FJ.AUTHENTICATION_TOKEN,email:HippoVideo.data.api.getProperty("userEmail")}).getStatus({assetId:this.assetId,waitingHandler:function(e){console.log("WAITING >>> ",e)},progressHandler:function(e,t,i){console.log("PROGRESS ",e,t,i)},completeHandler:function(t){console.log("Completed >>> ",t),new Ft.Z({token:HippoVideo.data.api.getProperty("authToken"),tokenType:Nt.FJ.AUTHENTICATION_TOKEN,email:HippoVideo.data.api.getProperty("userEmail")}).getVideoMetaData(e.assetId).then((function(t){var i=t[0];if(t[1],i){var a=i.data.project_json;e.setProjectJSON(a),console.log("PROJECT JSON >>> ",a)}})).catch((function(e){return console.error(e)}))},errorHandler:function(e){console.log("ERROR HANDLER ",e)}})}},{key:"checkForProjectJsonV3",value:function(){g.default.getChromeExtensionId();var e=this;new Rt.Z({interval:2e3,token:HippoVideo.data.api.getProperty("authToken"),tokenType:Nt.FJ.AUTHENTICATION_TOKEN,email:HippoVideo.data.api.getProperty("userEmail")}).getStatus({assetId:this.assetId,waitingHandler:function(e){console.log("WAITING >>> ",e)},progressHandler:function(e,t,i){console.log("PROGRESS ",e,t,i)},completeHandler:function(t){console.log("Completed >>> ",t),new Ft.Z({token:HippoVideo.data.api.getProperty("authToken"),tokenType:Nt.FJ.AUTHENTICATION_TOKEN,email:HippoVideo.data.api.getProperty("userEmail")}).getVideoMetaData(e.assetId).then((function(t){var i=t[0];if(t[1],i){var a=i.data.project_json;e.setProjectJSON(a),console.log("PROJECT JSON >>> ",a)}})).catch((function(e){return console.error(e)}))},errorHandler:function(e){console.log("ERROR HANDLER ",e)}})}},{key:"checkExtesnionInstalled",value:function(){this.extensionId=g.default.getChromeExtensionId();var e=this;chrome.runtime.sendMessage(this.extensionId,{ping:"hippo wiz"},(function(t){chrome.runtime.lastError,e.chromeExtensionInstalled=void 0!==t}))}},{key:"getVideoStatusFromExtension",value:function(){var e=this;chrome.runtime.sendMessage(this.extensionId,{getVideoUploadingStatus:!0,assetId:this.assetId},(function(t){t.recordingError?e.updateProgressbar("recording-error"):t.isRecording?e.updateProgressbar("recording"):1==t.status?e.updateProgressbar("waiting"):2==t.status?e.updateProgressbar("uploading"):3==t.status?e.updateProgressbar("uploaded"):4==t.status?e.updateProgressbar("failed"):5==t.status&&e.updateProgressbar("cancelled")}))}},{key:"videoProgressBarSuccessMsg",value:function(){var e=this;Ot(".video-status-text-info").text(C.videoI18N_v2.wizPreview.processingSuccessMsg),Ot(".close-vdo-status-bar").removeClass("disp-none"),Ot("#notifyMeBtn").addClass("disp-none"),Ot(".notifyme-disabled-btn").hide(),this.hideVdoErrorStateBar=setTimeout((function(){e.closeVdoErrorStateBar()}),1e4)}},{key:"closeVdoErrorStateBar",value:function(){Ot("#vdoProcessingBar").hide()}},{key:"redirectToExtensionPage",value:function(){g.default.trackInThirdPartyTools("install extension for gmail-addon ",{assetId:this.assetId});var e="https://chrome.google.com/webstore/detail/"+g.default.getChromeExtensionId();g.default.openNewTab(e)}},{key:"destroy",value:function(){this.performActionAfterUpload=void 0,clearTimeout(this.hideVdoErrorStateBar),this.isGuestUser||Ot("#floatingButtons").show(),this.quickActionsView&&this.quickActionsView.destroy(),this.previewSidebarView&&this.previewSidebarView.destroy(),this.shareForReviewView&&this.shareForReviewView.destroy(),Ot("video#hippo-overlay-screenrecord").removeAttr("src"),Ot("video#hippo-overlay-screenrecord-home").removeAttr("src"),this.undelegateEvents(),this.$el.empty(),Ot(".gitomer-widget-wrapper").removeClass("hide")}},{key:"isWebCamOnly",value:function(e){var t=!1,i=!1;if(e&&e.clips)for(var a=0;a<e.clips.length;a++)"webcam"==e.clips[a].footage.type&&e.clips[a].footage.containsVideo?t=!0:"screenrecord"==e.clips[a].footage.type&&(i=!0);return t&&!i}},{key:"openShareForReview",value:function(){this.shareForReviewView=new Vt.Z({assetId:this.assetId,videoModel:this.videoModel}),g.default.trackInThirdPartyTools("share for review :: share for review clicked - preview page",{assetId:this.assetId})}},{key:"scrollIntoViewPreview",value:function(){document.querySelector(".hvnewpreview-wrapper").scrollTop;var e=document.querySelector("#previewPageBottom").getBoundingClientRect(),t=document.querySelector(".hvnewpreview-sticky").getBoundingClientRect(),i=e.top-t.height+10;document.querySelector("#previewPageTop").getBoundingClientRect().height,i<=t.height?(document.querySelector(".hvnewpreview-sticky").classList.add("hvnewpreview-sticky-view"),document.querySelector(".hvnewpreview-wrapper").classList.add("hvnewpreview-overflow-hidden")):(document.querySelector(".hvnewpreview-sticky").classList.remove("hvnewpreview-sticky-view"),document.querySelector(".hvnewpreview-wrapper").classList.remove("hvnewpreview-overflow-hidden"))}},{key:"activityTracking",value:function(e){var t=this;g.default.isChromeExtensionInstalled().then((function(i){e+=i?" ext":" exf",t.assetId&&(e=e+" - astid "+t.assetId),g.default.trackInThirdPartyTools(e)})).catch((function(e){console.log("User activity error",e)}))}}]),c}(c().View)},69098:function(e,t,i){"use strict";i(77710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i(95631))},51532:function(e,t,i){i(69098)},17727:function(e,t,i){"use strict";var a=i(82109),s=i(31913),o=i(2492),n=i(47293),l=i(35005),r=i(60614),d=i(36707),c=i(69478),u=i(98052),h=o&&o.prototype;if(a({target:"Promise",proto:!0,real:!0,forced:!!o&&n((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=d(this,l("Promise")),i=r(e);return this.then(i?function(i){return c(t,e()).then((function(){return i}))}:e,i?function(i){return c(t,e()).then((function(){throw i}))}:e)}}),!s&&r(o)){var p=l("Promise").prototype.finally;h.finally!==p&&u(h,"finally",p,{unsafe:!0})}},82414:function(e,t,i){!function(e,t,i,a){"use strict";Foundation.libs.accordion={name:"accordion",version:"5.5.3",settings:{content_class:"content",active_class:"active",multi_expand:!1,toggleable:!0,callback:function(){}},init:function(e,t,i){this.bindings(t,i)},events:function(t){var i=this,a=this.S;i.create(this.S(t)),a(this.scope).off(".fndtn.accordion").on("click.fndtn.accordion","["+this.attr_name()+"] > dd > a, ["+this.attr_name()+"] > li > a",(function(t){var s=a(this).closest("["+i.attr_name()+"]"),o=i.attr_name()+"="+s.attr(i.attr_name()),n=s.data(i.attr_name(!0)+"-init")||i.settings,l=a("#"+this.href.split("#")[1]),r=e("> dd, > li",s),d=r.children("."+n.content_class),c=d.filter("."+n.active_class);if(t.preventDefault(),s.attr(i.attr_name())&&(d=d.add("["+o+"] dd > ."+n.content_class+", ["+o+"] li > ."+n.content_class),r=r.add("["+o+"] dd, ["+o+"] li")),n.toggleable&&l.is(c))return l.parent("dd, li").toggleClass(n.active_class,!1),l.toggleClass(n.active_class,!1),a(this).attr("aria-expanded",(function(e,t){return"true"===t?"false":"true"})),n.callback(l),l.triggerHandler("toggled",[s]),void s.triggerHandler("toggled",[l]);n.multi_expand||(d.removeClass(n.active_class),r.removeClass(n.active_class),r.children("a").attr("aria-expanded","false")),l.addClass(n.active_class).parent().addClass(n.active_class),n.callback(l),l.triggerHandler("toggled",[s]),s.triggerHandler("toggled",[l]),a(this).attr("aria-expanded","true")}))},create:function(t){var i=t,a=e("> .accordion-navigation",i),s=i.data(this.attr_name(!0)+"-init")||this.settings;a.children("a").attr("aria-expanded","false"),a.has("."+s.content_class+"."+s.active_class).addClass(s.active_class).children("a").attr("aria-expanded","true"),s.multi_expand&&t.attr("aria-multiselectable","true")},toggle:function(e){var i=void 0!==(e=void 0!==e?e:{}).selector?e.selector:"",a=void 0!==e.toggle_state?e.toggle_state:"",s=(void 0!==e.$accordion?e.$accordion:this.S(this.scope).closest("["+this.attr_name()+"]")).find("> dd"+i+", > li"+i);if(s.length<1)return t.console&&console.error("Selection not found.",i),!1;var o=this.S,n=this.settings.active_class;s.each((function(){var e=o(this),t=e.hasClass(n);(t&&"close"===a||!t&&"open"===a||""===a)&&e.find("> a").trigger("click.fndtn.accordion")}))},open:function(e){(e=void 0!==e?e:{}).toggle_state="open",this.toggle(e)},close:function(e){(e=void 0!==e?e:{}).toggle_state="close",this.toggle(e)},off:function(){},reflow:function(){}}}(i(19755),window,window.document)}}]);