(()=>{"use strict";var __webpack_modules__={7856:(t,e,r)=>{r.d(e,{CT:()=>n,Nk:()=>m,jW:()=>o.jW,LR:()=>v,X_:()=>s,Iu:()=>f,a_:()=>w,cl:()=>d,I$:()=>b,X8:()=>u,Fy:()=>a,q:()=>g,Zy:()=>y,wy:()=>h,Cv:()=>p,I0:()=>c,l9:()=>l});var n="https://api.videowise.com",o=r(8292),i="reeview",a=("".concat(i,"_hide_widget"),"".concat(i,"_uid")),c=("".concat(i,"_widget_context"),{Inline:"Inline",Floating:"Floating",Story:"Story",Background:"Background"}),l={Product:"Product",Independent:"Independent"},u={Interest:"interest",Cart:"cart",View:"view",Video:"video",Click:"click",Close:"close",Order:"order",EngagementTime:"engagementtime",VideoWatch:"videowatch",Swipe:"swipe",Interaction:"interaction"},s={xsSmall:375,smSmall:576,ExtraSmall:767,Small:991,Medium:1024,Large:1280,ExtraLarge:1440},d={YOUTUBE:"youtube_video",INSTAGRAM:"instagram_video",CUSTOM:"custom"},f={SINGLE:"single",GALLERY:"gallery",CAROUSEL:"carousel",PORTRAIT_CAROUSEL:"portraitcarousel",LANDSCAPE_CAROUSEL:"landscapecarousel"},p={DESKTOP:"DESKTOP",MOBILE:"MOBILE"},h={icon:"ICON_BUTTON",text:"TEXT_BUTTON"},v={PRODUCT:"PRODUCT",LINK:"LINK"},y={STORE_LOGO:"STORE_LOGO",NO_LOGO:"NO_LOGO",VIDEOWISE_LOGO:"VIDEOWISE_LOGO"},m={DIRECT_TO_CHECKOUT:"DIRECT_TO_CHECKOUT",DIRECT_TO_CART:"DIRECT_TO_CART",ADD_TO_CART:"ADD_TO_CART",DIRECT_TO_CART_CUSTOM:"DIRECT_TO_CART_CUSTOM",DIRECT_TO_CART_REDIRECT:"DIRECT_TO_CART_REDIRECT",CUSTOM_URL:"CUSTOM_URL"},w={USE_INVENTORY:"USE_INVENTORY",IGNORE_INVENTORY:"IGNORE_INVENTORY"},g={PREVIEW:"PREVIEW",BG:"BG"},b={ONE_TIME:"onetime",SUBSCRIBE:"subscribe"}},8292:(t,e,r)=>{r.d(e,{jW:()=>n});"@media (max-width: ".concat(375,"px)"),"@media (min-width: ".concat(375,"px)"),"@media (min-width: ".concat(567,"px)"),"@media (max-width: ".concat(415,"px)"),"@media (min-width: ".concat(415,"px)"),"@media (max-width: ".concat(567,"px)"),"@media (max-width: ".concat(767,"px)"),"@media (max-width: ".concat(768,"px)"),"@media (min-width: ".concat(768,"px)"),"@media (min-width: ".concat(1024,"px)"),"@media (max-width: ".concat(1023,"px)"),"@media (max-width: ".concat(1198,"px)"),"@media (min-width: ".concat(1199,"px)"),"@media (min-width: ".concat(416,"px)"),"@media (min-width: ".concat(1281,"px)"),"@media (min-width: ".concat(1441,"px)");var n="vw"},6675:(t,e,r)=>{r(5666);var n=r(8582),o=r(7835);r(9669);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(){a=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",c=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(k){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=d(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}t.wrap=s;var f={};function p(){}function h(){}function v(){}var y={};u(y,o,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(E([])));w&&w!==e&&r.call(w,o)&&(y=w);var g=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function n(o,a,c,l){var u=d(t[o],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==i(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,l)}),(function(t){n("throw",t,c,l)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,l)}))}l(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=v,u(g,"constructor",v),u(v,"constructor",h),h.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(_.prototype),u(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}const d=function(){var t,e=(t=a().mark((function t(e,r){var i,c,u,s;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,n.rr)("tlabsicdemo.myshopify.com",encodeURI("https://tlabsicdemo.myshopify.com"));case 2:return i=t.sent,t.next=5,(0,o.a)(i);case 5:if(!i){t.next=14;break}c=i.widgets,u=i.page,s=0;case 8:if(!(s<c.length)){t.next=14;break}return t.next=11,(0,o.y)(l(l({},c[s]),{},{page:u}),!1);case 11:s+=1,t.next=8;break;case 14:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,c,"next",t)}function c(t){s(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t,r){return e.apply(this,arguments)}}();var f=r(9782);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(){h=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(k){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}t.wrap=l;var s={};function d(){}function f(){}function v(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(E([])));w&&w!==e&&r.call(w,o)&&(y=w);var g=v.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==p(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=v,c(g,"constructor",v),c(v,"constructor",f),f.displayName=c(v,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(_.prototype),c(_.prototype,i,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,a,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function v(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function y(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){v(i,n,o,a,c,"next",t)}function c(t){v(i,n,o,a,c,"throw",t)}a(void 0)}))}}const m=y(h().mark((function t(){var e,r,n,i,a,c;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=window,r=e.REEVIEW_CONFIG){t.next=3;break}return t.abrupt("return");case 3:if(n=r,i=(0,f.Eq)("".concat(window.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname),"/"),a=n.filter((function(t){var e;return(0,f.Eq)(null===(e=t.page)||void 0===e?void 0:e.url)===i}))){t.next=8;break}return t.abrupt("return");case 8:c=0;case 9:if(!(c<a.length)){t.next=15;break}return t.next=12,(0,o.y)(a[c]);case 12:c+=1,t.next=9;break;case 15:case"end":return t.stop()}}),t)})));var w=r(2883);window.initReeview=d,window.initVideowise=(0,w.ZP)().initialization,(0,w.ZP)().initialization(),window.addEventListener("DOMContentLoaded",m)},8582:(t,e,r)=>{r.d(e,{fh:()=>h,rr:()=>p});var n=r(9669),o=r.n(n),i=r(7856),a=r(2750);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(k){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=d(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}t.wrap=s;var f={};function p(){}function h(){}function v(){}var y={};u(y,o,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(E([])));w&&w!==e&&r.call(w,o)&&(y=w);var g=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function n(o,i,a,l){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==c(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,l)}))}l(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=v,u(g,"constructor",v),u(v,"constructor",h),h.displayName=u(v,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(_.prototype),u(_.prototype,i,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),u(g,a,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function u(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,c,"next",t)}function c(t){u(i,n,o,a,c,"throw",t)}a(void 0)}))}}var d=o().create({baseURL:i.CT}),f="roposo-store.myshopify.com",p=function(){var t=s(l().mark((function t(e,r){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e!==f){t.next=3;break}return console.log("What are you trying to do?"),t.abrupt("return");case 3:return t.next=5,d.get("/widget/independent",{params:{shop:e,url:r,uid:a.U()}});case 5:return n=t.sent,t.abrupt("return",v(n));case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),h=function(){var t=s(l().mark((function t(e,r){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e!==f){t.next=3;break}return console.log("What are you trying to do?"),t.abrupt("return");case 3:return t.next=5,d.get("/widget/product",{params:{shop:e,productId:r,uid:a.U()}});case 5:return n=t.sent,t.abrupt("return",v(n));case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),v=function(t){var e,r;if(null===t||void 0===t||null===(e=t.data)||void 0===e||!e.errorMessage)return null===t||void 0===t?void 0:t.data;console.log("Errors during loading product widgets! ",null===t||void 0===t||null===(r=t.data)||void 0===r?void 0:r.errorMessage)}},7835:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{a:()=>renderAllWidgets,y:()=>renderWidgets});var _renderWidget__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3421);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==_typeof(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){asyncGeneratorStep(i,n,o,a,c,"next",t)}function c(t){asyncGeneratorStep(i,n,o,a,c,"throw",t)}a(void 0)}))}}function renderAllWidgets(t){return _renderAllWidgets.apply(this,arguments)}function _renderAllWidgets(){return(_renderAllWidgets=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n,o;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&e.widgets){t.next=2;break}return t.abrupt("return");case 2:if((null===(r=e.widgets)||void 0===r?void 0:r.length)>0)for(n=0;n<e.widgets.length;n++)o={showBadge:e.showBadge,logoUrl:e.storeLogoUrl,inventorySetting:e.inventorySetting,organisationId:e.organisationId,siteId:e.siteId},renderWidgets(e.widgets[n],e.page,!0,o).then((function(){console.log("Widget is loaded"),checkCart()})).catch((function(t){return console.log("An error occur during widget rendering. ",t)}));case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function renderWidgets(t,e,r,n){return _renderWidgets.apply(this,arguments)}function _renderWidgets(){return(_renderWidgets=_asyncToGenerator(_regeneratorRuntime().mark((function t(e,r,n,o){var i,a,c,l,u;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((i=e.videos)&&0!==i.length&&e){t.next=3;break}return t.abrupt("return");case 3:if(a={trackingId:null===r||void 0===r?void 0:r.id,widgetId:e.id,videoType:"",widgetType:e.type,siteId:o.siteId,organisationId:o.organisationId},!i.length){t.next=9;break}if(c=[],"Background"===e.displayType&&null!==(l=document.getElementById("reeview-app-widget_".concat(e.id)))&&null!==l.children)for(u=0;u<l.children.length;u++)c.push(l.children[u]);return t.next=9,(0,_renderWidget__WEBPACK_IMPORTED_MODULE_0__.ZP)({widget:e,page:r,trackingContext:a,settings:o,previousChildren:c});case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var checkCart=function checkCart(){if(sessionStorage.getItem("openCart")){var jsData=window.atob(sessionStorage.getItem("openCart"));eval(jsData),sessionStorage.removeItem("openCart")}}},9782:(t,e,r)=>{r.d(e,{Eq:()=>y,FB:()=>v,Fn:()=>f,Xy:()=>m,a:()=>C,c$:()=>h,c6:()=>d,cy:()=>g,mj:()=>p,oo:()=>_,vT:()=>x,wL:()=>b,xb:()=>w});var n=r(2883),o=r(4627),i=r(7856);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(){u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(k){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=d(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}t.wrap=s;var f={};function p(){}function h(){}function v(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(E([])));w&&w!==e&&r.call(w,o)&&(y=w);var g=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function n(o,i,a,c){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=v,c(g,"constructor",v),c(v,"constructor",h),h.displayName=c(v,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(_.prototype),c(_.prototype,i,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,a,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function s(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}var d=function(t,e,r){var n=e||{},i=n.title,a=n.featured_image,c=n.options,l=n.variants,u=n.id,s=n.images,d=n.description,f=n.tag,p=n.productReviews,h=n.selling_plan_groups,v=n.variantId,y=n.excludedVariants,m=v?l.find((function(t){return t.id===Number(v)})):l[0],w=isNaN(parseInt(m.compare_at_price))?void 0:m.compare_at_price;t({type:o.a.ADD_PRODUCT,payload:{product:{id:u,available:m.available,title:i,image:a,options:c,variants:l,price:m.price,oldPrice:w,selectedId:m.id,handle:r,images:s,description:d,tag:f,productReviews:p,selling_plan_groups:h,variantId:v,excludedVariants:y}}})},f=function(){var t,e=(t=u().mark((function t(e){var r,i,a,c,l,s,f,p,h,v;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=(r=e||{}).handle,a=r.dispatch,c=r.tag,l=r.variantId,s=r.shoppableCtx,f=r.productReviews,p=r.excludedVariants,!s.viewedProducts.filter((function(t){return t.handle===i})).length){t.next=9;break}a({type:o.a.HIDE_SHOPPABLE_LIST}),a({type:o.a.TOGGLE_PANEL,payload:{visible:!0}}),a({type:o.a.TOGGLE_PANEL_HEADER,payload:{showHeader:!0}}),h=s.viewedProducts.filter((function(t){return t.handle===i}))[0],d(a,h,i),t.next=25;break;case 9:return t.next=11,(0,n.ZP)().getProductByHandle(i,p,void 0);case 11:if(v=t.sent){t.next=17;break}return a({type:o.a.ERROR_ON_PRODUCT,payload:{errorOnProduct:!0}}),setTimeout((function(){a({type:o.a.ERROR_ON_PRODUCT,payload:{errorOnProduct:!1}})}),1e3),console.error("This item is not available anymore"),t.abrupt("return");case 17:a({type:o.a.HIDE_SHOPPABLE_LIST}),a({type:o.a.TOGGLE_PANEL,payload:{visible:!0}}),a({type:o.a.TOGGLE_PANEL_HEADER,payload:{showHeader:!0}}),a({type:o.a.TOGGLE_SHOPPABLE_LOADING,payload:{loading:!0}}),c&&(v.tag=c),f&&(v.productReviews=f),l&&(v.variantId=l),v&&(d(a,v,i),a({type:o.a.TOGGLE_SHOPPABLE_LOADING,payload:{loading:!1}}));case 25:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,c,"next",t)}function c(t){s(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),p=function(t){var e="https://reeview-videos.s3.us-east-2.amazonaws.com";return-1===(null===t||void 0===t?void 0:t.indexOf(e))?t:null===t||void 0===t?void 0:t.replace(e,"https://d115vc481xvu1b.cloudfront.net")},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.filter((function(t){return t.type===i.LR.PRODUCT}));return e.length>0},v=function(t){var e="0123456789abcdef";function r(t){var r,n="";for(r=0;r<=3;r++)n+=e.charAt(t>>8*r+4&15)+e.charAt(t>>8*r&15);return n}function n(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function o(t,e,r,o,i,a){return n(function(t,e){return t<<e|t>>>32-e}(n(n(e,t),n(o,a)),i),r)}function i(t,e,r,n,i,a,c){return o(e&r|~e&n,t,e,i,a,c)}function a(t,e,r,n,i,a,c){return o(e&n|r&~n,t,e,i,a,c)}function c(t,e,r,n,i,a,c){return o(e^r^n,t,e,i,a,c)}function l(t,e,r,n,i,a,c){return o(r^(e|~n),t,e,i,a,c)}var u,s,d,f,p,h=function(t){var e,r=1+(t.length+8>>6),n=new Array(16*r);for(e=0;e<16*r;e++)n[e]=0;for(e=0;e<t.length;e++)n[e>>2]|=t.charCodeAt(e)<<e%4*8;return n[e>>2]|=128<<e%4*8,n[16*r-2]=8*t.length,n}(t),v=1732584193,y=-271733879,m=-1732584194,w=271733878;for(u=0;u<h.length;u+=16)s=v,d=y,f=m,p=w,v=i(v,y,m,w,h[u+0],7,-680876936),w=i(w,v,y,m,h[u+1],12,-389564586),m=i(m,w,v,y,h[u+2],17,606105819),y=i(y,m,w,v,h[u+3],22,-1044525330),v=i(v,y,m,w,h[u+4],7,-176418897),w=i(w,v,y,m,h[u+5],12,1200080426),m=i(m,w,v,y,h[u+6],17,-1473231341),y=i(y,m,w,v,h[u+7],22,-45705983),v=i(v,y,m,w,h[u+8],7,1770035416),w=i(w,v,y,m,h[u+9],12,-1958414417),m=i(m,w,v,y,h[u+10],17,-42063),y=i(y,m,w,v,h[u+11],22,-1990404162),v=i(v,y,m,w,h[u+12],7,1804603682),w=i(w,v,y,m,h[u+13],12,-40341101),m=i(m,w,v,y,h[u+14],17,-1502002290),v=a(v,y=i(y,m,w,v,h[u+15],22,1236535329),m,w,h[u+1],5,-165796510),w=a(w,v,y,m,h[u+6],9,-1069501632),m=a(m,w,v,y,h[u+11],14,643717713),y=a(y,m,w,v,h[u+0],20,-373897302),v=a(v,y,m,w,h[u+5],5,-701558691),w=a(w,v,y,m,h[u+10],9,38016083),m=a(m,w,v,y,h[u+15],14,-660478335),y=a(y,m,w,v,h[u+4],20,-405537848),v=a(v,y,m,w,h[u+9],5,568446438),w=a(w,v,y,m,h[u+14],9,-1019803690),m=a(m,w,v,y,h[u+3],14,-187363961),y=a(y,m,w,v,h[u+8],20,1163531501),v=a(v,y,m,w,h[u+13],5,-1444681467),w=a(w,v,y,m,h[u+2],9,-51403784),m=a(m,w,v,y,h[u+7],14,1735328473),v=c(v,y=a(y,m,w,v,h[u+12],20,-1926607734),m,w,h[u+5],4,-378558),w=c(w,v,y,m,h[u+8],11,-2022574463),m=c(m,w,v,y,h[u+11],16,1839030562),y=c(y,m,w,v,h[u+14],23,-35309556),v=c(v,y,m,w,h[u+1],4,-1530992060),w=c(w,v,y,m,h[u+4],11,1272893353),m=c(m,w,v,y,h[u+7],16,-155497632),y=c(y,m,w,v,h[u+10],23,-1094730640),v=c(v,y,m,w,h[u+13],4,681279174),w=c(w,v,y,m,h[u+0],11,-358537222),m=c(m,w,v,y,h[u+3],16,-722521979),y=c(y,m,w,v,h[u+6],23,76029189),v=c(v,y,m,w,h[u+9],4,-640364487),w=c(w,v,y,m,h[u+12],11,-421815835),m=c(m,w,v,y,h[u+15],16,530742520),v=l(v,y=c(y,m,w,v,h[u+2],23,-995338651),m,w,h[u+0],6,-198630844),w=l(w,v,y,m,h[u+7],10,1126891415),m=l(m,w,v,y,h[u+14],15,-1416354905),y=l(y,m,w,v,h[u+5],21,-57434055),v=l(v,y,m,w,h[u+12],6,1700485571),w=l(w,v,y,m,h[u+3],10,-1894986606),m=l(m,w,v,y,h[u+10],15,-1051523),y=l(y,m,w,v,h[u+1],21,-2054922799),v=l(v,y,m,w,h[u+8],6,1873313359),w=l(w,v,y,m,h[u+15],10,-30611744),m=l(m,w,v,y,h[u+6],15,-1560198380),y=l(y,m,w,v,h[u+13],21,1309151649),v=l(v,y,m,w,h[u+4],6,-145523070),w=l(w,v,y,m,h[u+11],10,-1120210379),m=l(m,w,v,y,h[u+2],15,718787259),y=l(y,m,w,v,h[u+9],21,-343485551),v=n(v,s),y=n(y,d),m=n(m,f),w=n(w,p);return r(v)+r(y)+r(m)+r(w)},y=function(t){return t.replace(/\/\s*$/,"")},m=function t(e,r){function n(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}var o=n(e);return o===n(r)&&("array"===o?function(){if(e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1;return!0}():"object"===o?function(){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!t(e[n],r[n]))return!1;return!0}():"function"===o?e.toString()===r.toString():e===r)},w=function(t){return null==t||"object"===l(t)&&0===Object.keys(t).length||"string"===typeof t&&0===t.trim().length},g=function(t,e){var r=t.url,n=t.refId,o=t.muxClipPlaybackId,i=t.muxMp4Support,a=t.videoType,c=t.muxPlaybackId,l=t.duration,u=t.muxMp4Resolution;if("youtube_video"===a)return"https://www.youtube.com/watch?v=".concat(n);if(!1===e){if(c){if(i&&l<10.5){var s=u||"high";return"https://cdn.videowise.com/".concat(c,"/").concat(s,".mp4")}return"https://stream.mux.com/".concat(c,".m3u8")}return r}return o?i||!1?"https://cdn.videowise.com/".concat(o,"/low.mp4"):"https://stream.mux.com/".concat(o,".m3u8"):r},b=function(t){return!!(t&&t.interaction&&t.interaction.elements&&Object.keys(t.interaction.elements).length>0)},_=function(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:null},x=function(t){var e="".concat(t).split("");return e.splice(-2,0,","),e.join("")},C=function(t,e,r){return[].concat(a(t.slice(0,e)),[r],a(t.slice(e)))}},2883:(t,e,r)=>{r.d(e,{ZP:()=>Y,Mg:()=>W,K0:()=>z});var n=r(9669),o=r.n(n),i=r(1955),a=r(9782),c=r(4627),l=r(4064),u=r(7856);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function d(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(){p=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(k){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}t.wrap=l;var d={};function f(){}function h(){}function v(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(E([])));w&&w!==e&&r.call(w,o)&&(y=w);var g=v.prototype=f.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var d=l.arg,f=d.value;return f&&"object"==s(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){d.value=t,a(d)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=v,c(g,"constructor",v),c(v,"constructor",h),h.displayName=c(v,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(_.prototype),c(_.prototype,i,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,a,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function m(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){y(i,n,o,a,c,"next",t)}function c(t){y(i,n,o,a,c,"throw",t)}a(void 0)}))}}function w(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function g(t,e,r){return e&&w(t.prototype,e),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(t,e,r){return function(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}(t,e),function(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}(r,"get"),function(t,e){if(e.get)return e.get.call(t);return e.value}(t,r)}function x(t){return t&&"product"===t.p&&t.rid}var C=g((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)})),O={writable:!0,value:function(){var t=m(p().mark((function t(e,r,n,a){var c,s;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={"Content-type":"application/json"},s={id:e,quantity:1},r&&(s.selling_plan=r),t.prev=3,t.next=6,o().post("/cart/add.js",s,{headers:c});case 6:return t.next=8,(0,l.O8)(u.X8.Cart,v({shop:window.Shopify.shop,productRefId:n||window.__st.rid,shopableVideo:!0,cardId:i.Z.get("cart")},a));case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),console.error("Add to cart error: ",t.t0);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e,r,n,o){return t.apply(this,arguments)}}()};b(C,"initialization",m(p().mark((function t(){var e,r,n,i,a,c,l;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=window,r=e.Shopify,n=e.__st,r){t.next=3;break}return t.abrupt("return");case 3:if((i=document.querySelector("#videowise-css"))&&i.disabled&&i.removeAttribute("disabled"),!window.videowise_use_handlers){t.next=17;break}if(!((a=window.location.href).indexOf("/products/")>-1)){t.next=16;break}return t.next=10,o().get("".concat(a,".js"));case 10:c=t.sent,l=c.data,n.rid=l.id,n.p="product",t.next=17;break;case 16:n.p="";case 17:if(!x(n)){t.next=22;break}return t.next=20,z(r.shop,n.rid);case 20:t.next=24;break;case 22:return t.next=24,W(r.shop);case 24:case"end":return t.stop()}}),t)})))),b(C,"getProductByHandle",function(){var t=m(p().mark((function t(e,r,n){var i,c,l,u,s,d,f,h,y,m;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={"Content-type":"application/json"},t.prev=1,t.next=4,o().get("/products/".concat(e,".js"),{headers:i});case 4:if(l=t.sent,u=l.data,s=u.variants.filter((function(t){return 0!=(null===t||void 0===t?void 0:t.price)})).map((function(t){return v(v({},t),{},{compare_at_price:(0,a.vT)(t.compare_at_price),price:(0,a.vT)(t.price)})})),"undefined"!==typeof n)for(d=0;d<s.length;d++)s[d].id===parseInt(n)&&(u.price=s[d].price);return h=s,null!==r&&void 0!==r&&r.length&&(y=r.map((function(t){return Number(t)})),f=s.filter((function(t){return y.includes(t.id)})),1===u.options.length&&(m=f.map((function(t){return t.option1})),u.options[0].values=u.options[0].values.filter((function(t){return!m.includes(t)}))),h=s.filter((function(t){return!f.some((function(e){return t.id===e.id}))}))),t.abrupt("return",v(v({},u),{},{compare_at_price:(0,a.vT)(u.compare_at_price),compare_at_price_max:(0,a.vT)(u.compare_at_price_max),compare_at_price_min:(0,a.vT)(u.compare_at_price_min),price:(0,a.vT)(u.price),price_max:(0,a.vT)(u.price_max),price_min:(0,a.vT)(u.price_min),variants:h,excludedVariants:null!==(c=f)&&void 0!==c&&c.length?f:[]}));case 13:return t.prev=13,t.t0=t.catch(1),t.abrupt("return",t.t0);case 16:case"end":return t.stop()}}),t,null,[[1,13]])})));return function(e,r,n){return t.apply(this,arguments)}}()),b(C,"getStoreCart",m(p().mark((function t(){var e,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,o().get("/cart.json");case 3:return e=t.sent,r=e.data,t.abrupt("return",r);case 8:return t.prev=8,t.t0=t.catch(0),console.error("Shopify cart error: ",t.t0),t.abrupt("return",null);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))),b(C,"getRecommendedProductsById",function(){var t=m(p().mark((function t(e){var r,n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,o().get("/recommendations/products.json?product_id=".concat(e));case 3:return r=t.sent,n=r.data,t.abrupt("return",n);case 8:return t.prev=8,t.t0=t.catch(0),console.error("Shopify recommended products error: ",t.t0),t.abrupt("return",null);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}()),b(C,"setCommercials",function(){var t=m(p().mark((function t(e,r,n,o){var i,l,u,s,f,h,v;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(l=null===(i=e[r])||void 0===i?void 0:i.commercials)||!l.length){t.next=35;break}u=d(l),t.prev=3,u.s();case 5:if((s=u.n()).done){t.next=27;break}if("PRODUCT"!==(f=s.value).type||f.hasOwnProperty("compare_at_price")){t.next=25;break}return t.prev=8,t.next=11,C.getProductByHandle(null===f||void 0===f?void 0:f.handle,null===f||void 0===f?void 0:f.excludedVariants,null===f||void 0===f?void 0:f.variantId);case 11:h=t.sent,f.compare_at_price=isNaN(parseInt(h.compare_at_price))?void 0:h.compare_at_price,f.compare_at_price_max=isNaN(parseInt(h.compare_at_price_max))?void 0:h.compare_at_price_max,f.compare_at_price_min=isNaN(parseInt(h.compare_at_price_min))?void 0:h.compare_at_price_min,f.price=isNaN(parseInt(h.price))?void 0:h.price,f.price_max=isNaN(parseInt(h.price_max))?void 0:h.price_max,f.price_min=isNaN(parseInt(h.price_min))?void 0:h.price_min,f.compareAtPrice=f.compare_at_price_max,f.previewImageSrc=h.featured_image,t.next=25;break;case 22:t.prev=22,t.t0=t.catch(8),console.log(t.t0);case 25:t.next=5;break;case 27:t.next=32;break;case 29:t.prev=29,t.t1=t.catch(3),u.e(t.t1);case 32:return t.prev=32,u.f(),t.finish(32);case 35:v=(0,a.c$)(null!==l&&void 0!==l?l:[]),n({type:c.a.SET_SHOPPABLE_LIST,payload:{shoppableList:l}}),(null===l||void 0===l?void 0:l.length)>1&&v?o||n({type:c.a.SHOW_SHOPPABLE_LIST}):1===(null===l||void 0===l?void 0:l.length)&&v?o||(n({type:c.a.HIDE_SHOPPABLE_LIST}),n({type:c.a.TOGGLE_PANEL_HEADER,payload:{showHeader:!1}}),n({type:c.a.TOGGLE_PANEL,payload:{visible:!0}})):(n({type:c.a.HIDE_SHOPPABLE_LIST}),n({type:c.a.TOGGLE_PANEL_HEADER,payload:{showHeader:!1}}));case 38:case"end":return t.stop()}}),t,null,[[3,29,32,35],[8,22]])})));return function(e,r,n,o){return t.apply(this,arguments)}}()),b(C,"redirectToCheckout",function(){var t=m(p().mark((function t(e,r,n,o,i){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!0}}),t.next=3,_(C,C,O).call(C,r,n,o,i);case 3:e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!1}}),window.location="".concat(window.location.origin,"/checkout");case 5:case"end":return t.stop()}}),t)})));return function(e,r,n,o,i){return t.apply(this,arguments)}}()),b(C,"redirectToCart",function(){var t=m(p().mark((function t(e,r,n,o,i){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!0}}),t.next=3,_(C,C,O).call(C,r,n,o,i);case 3:e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!1}}),window.location="".concat(window.location.origin,"/cart");case 5:case"end":return t.stop()}}),t)})));return function(e,r,n,o,i){return t.apply(this,arguments)}}()),b(C,"redirectToCartCustom",function(){var t=m(p().mark((function t(e,r,n,o,i,a){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!0}}),t.next=3,_(C,C,O).call(C,r,n,o,i);case 3:e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!1}}),sessionStorage.setItem("openCart",a),window.document.location.reload();case 6:case"end":return t.stop()}}),t)})));return function(e,r,n,o,i,a){return t.apply(this,arguments)}}()),b(C,"redirectToCustomURL",function(){var t=m(p().mark((function t(e,r,n,o,i,a){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!0}}),t.next=3,_(C,C,O).call(C,r,n,o,i);case 3:e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!1}}),window.location.replace(a);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n,o,i,a){return t.apply(this,arguments)}}()),b(C,"handleAddToCart",function(){var t=m(p().mark((function t(e,r,n,o,i){var a;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!0}}),t.next=3,_(C,C,O).call(C,r,n,o,i);case 3:return e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!1}}),t.prev=4,t.next=7,C.getStoreCart();case 7:a=t.sent,e({type:c.a.GET_CART,payload:{cart:a}}),t.next=14;break;case 11:return t.prev=11,t.t0=t.catch(4),t.abrupt("return",t.t0);case 14:case"end":return t.stop()}}),t,null,[[4,11]])})));return function(e,r,n,o,i){return t.apply(this,arguments)}}()),b(C,"redirectToClientURL",(function(t){window.location.replace(t)})),b(C,"getCurrency",(function(){var t;return(null===(t=window.Shopify)||void 0===t?void 0:t.currency.active)||""}));const L=C;function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function S(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return k(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Z(){Z=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(S){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(S){return{type:"throw",arg:S}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==E(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach((function(e){B(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function N(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function I(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){N(i,n,o,a,c,"next",t)}function c(t){N(i,n,o,a,c,"throw",t)}a(void 0)}))}}function T(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function A(t,e,r){return e&&T(t.prototype,e),r&&T(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function B(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function R(t,e,r){return function(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}(t,e),function(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}(r,"get"),function(t,e){if(e.get)return e.get.call(t);return e.value}(t,r)}var H=A((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)})),D={writable:!0,value:function(){var t=I(Z().mark((function t(e,r,n,a){var c;return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.warn("SFCCClass.#postToCart(".concat(e,", ").concat(r,", ").concat(n,", ").concat(a,");")),(c=new FormData).append("pid",e),c.append("quantity",1),t.prev=4,t.next=7,o().post(window.videowiseSFCC.addToCartURL,c);case 7:return t.next=9,(0,l.O8)(u.X8.Cart,j({shop:window.videowiseSFCC.host,productRefId:n||window.videowiseSFCC.pid,shopableVideo:!0,cardId:i.Z.get("cart")},a));case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),console.error("Add to cart error: ",t.t0);case 14:case"end":return t.stop()}}),t,null,[[4,11]])})));return function(e,r,n,o){return t.apply(this,arguments)}}()};B(H,"initialization",I(Z().mark((function t(){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.warn("SFCCClass.initialization();"),"null"!==window.videowiseSFCC.pid){t.next=6;break}return t.next=4,W(window.videowiseSFCC.host);case 4:t.next=8;break;case 6:return t.next=8,z(window.videowiseSFCC.host,window.videowiseSFCC.pid);case 8:case"end":return t.stop()}}),t)})))),B(H,"getProductByHandle",function(){var t=I(Z().mark((function t(e,r,n){var i,a,c,l,u,s,d,f,p;return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.warn("SFCCClass.getProductByHandle(".concat(e,", ").concat(r,", ").concat(n,");")),t.prev=1,t.next=4,o().get(window.videowiseSFCC.productDetailsURL,{params:{pid:e}});case 4:if(a=t.sent,c=a.data,l=c.data[0].variants.filter((function(t){return 0!=(null===t||void 0===t?void 0:t.price)})).map((function(t){return j(j({},t),{},{compare_at_price:t.compare_at_price.toString(),price:t.price.toString()})})),"undefined"!==typeof n)for(u=0;u<l.length;u++)l[u].id===parseInt(n)&&(c.data[0].price=l[u].price);return d=l,null!==r&&void 0!==r&&r.length&&(f=r.map((function(t){return Number(t)})),s=l.filter((function(t){return f.includes(t.id)})),1===c.data[0].options.length&&(p=s.map((function(t){return t.option1})),c.data[0].options[0].values=c.data[0].options[0].values.filter((function(t){return!p.includes(t)}))),d=l.filter((function(t){return!s.some((function(e){return t.id===e.id}))}))),t.abrupt("return",j(j({},c.data[0]),{},{compare_at_price:c.data[0].compare_at_price.toString(),compare_at_price_max:c.data[0].compare_at_price_max.toString(),compare_at_price_min:c.data[0].compare_at_price_min.toString(),price:c.data[0].price.toString(),price_max:c.data[0].price_max.toString(),price_min:c.data[0].price_min.toString(),variants:d,excludedVariants:null!==(i=s)&&void 0!==i&&i.length?s:[]}));case 13:return t.prev=13,t.t0=t.catch(1),t.abrupt("return",t.t0);case 16:case"end":return t.stop()}}),t,null,[[1,13]])})));return function(e,r,n){return t.apply(this,arguments)}}()),B(H,"getStoreCart",I(Z().mark((function t(){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.warn("SFCCClass.getStoreCart();");case 1:case"end":return t.stop()}}),t)})))),B(H,"getRecommendedProductsById",function(){var t=I(Z().mark((function t(e){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.warn("SFCCClass.getRecommendedProductsById(".concat(e,");"));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),B(H,"setCommercials",function(){var t=I(Z().mark((function t(e,r,n,o){var i,l,u,s,d,f,p;return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.warn("SFCCClass.setCommercials(".concat(e,", ").concat(r,", ").concat(n,", ").concat(o,");")),!(l=null===(i=e[r])||void 0===i?void 0:i.commercials)||!l.length){t.next=36;break}u=S(l),t.prev=4,u.s();case 6:if((s=u.n()).done){t.next=28;break}if("PRODUCT"!==(d=s.value).type||d.hasOwnProperty("compare_at_price")){t.next=26;break}return t.prev=9,t.next=12,H.getProductByHandle(null===d||void 0===d?void 0:d.productRefId,null===d||void 0===d?void 0:d.excludedVariants,null===d||void 0===d?void 0:d.variantId);case 12:f=t.sent,d.compare_at_price=isNaN(parseInt(f.compare_at_price))?void 0:f.compare_at_price,d.compare_at_price_max=isNaN(parseInt(f.compare_at_price_max))?void 0:f.compare_at_price_max,d.compare_at_price_min=isNaN(parseInt(f.compare_at_price_min))?void 0:f.compare_at_price_min,d.price=isNaN(parseInt(f.price))?void 0:f.price,d.price_max=isNaN(parseInt(f.price_max))?void 0:f.price_max,d.price_min=isNaN(parseInt(f.price_min))?void 0:f.price_min,d.compareAtPrice=d.compare_at_price_max,d.previewImageSrc=f.featured_image,t.next=26;break;case 23:t.prev=23,t.t0=t.catch(9),console.log(t.t0);case 26:t.next=6;break;case 28:t.next=33;break;case 30:t.prev=30,t.t1=t.catch(4),u.e(t.t1);case 33:return t.prev=33,u.f(),t.finish(33);case 36:p=(0,a.c$)(null!==l&&void 0!==l?l:[]),n({type:c.a.SET_SHOPPABLE_LIST,payload:{shoppableList:l}}),(null===l||void 0===l?void 0:l.length)>1&&p?o||n({type:c.a.SHOW_SHOPPABLE_LIST}):1===(null===l||void 0===l?void 0:l.length)&&p?o||(n({type:c.a.HIDE_SHOPPABLE_LIST}),n({type:c.a.TOGGLE_PANEL_HEADER,payload:{showHeader:!1}}),n({type:c.a.TOGGLE_PANEL,payload:{visible:!0}})):(n({type:c.a.HIDE_SHOPPABLE_LIST}),n({type:c.a.TOGGLE_PANEL_HEADER,payload:{showHeader:!1}}));case 39:case"end":return t.stop()}}),t,null,[[4,30,33,36],[9,23]])})));return function(e,r,n,o){return t.apply(this,arguments)}}()),B(H,"redirectToCheckout",function(){var t=I(Z().mark((function t(e,r,n,o,i){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.warn("SFCCClass.redirectToCheckout(".concat(e,", ").concat(r,", ").concat(n,", ").concat(o,", ").concat(i,");")),e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!0}}),t.next=4,R(H,H,D).call(H,r,n,o,i);case 4:e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!1}}),window.location=window.videowiseSFCC.checkoutURL;case 6:case"end":return t.stop()}}),t)})));return function(e,r,n,o,i){return t.apply(this,arguments)}}()),B(H,"redirectToCart",function(){var t=I(Z().mark((function t(e,r,n,o,i){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.warn("SFCCClass.redirectToCart(".concat(e,", ").concat(r,", ").concat(n,", ").concat(o,", ").concat(i,");")),e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!0}}),t.next=4,R(H,H,D).call(H,r,n,o,i);case 4:e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!1}}),window.location=window.videowiseSFCC.cartURL;case 6:case"end":return t.stop()}}),t)})));return function(e,r,n,o,i){return t.apply(this,arguments)}}()),B(H,"redirectToCartCustom",function(){var t=I(Z().mark((function t(e,r,n,o,i,a){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.warn("SFCCClass.redirectToCartCustom(".concat(e,", ").concat(r,", ").concat(n,", ").concat(o,", ").concat(i,", ").concat(a,");")),e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!0}}),t.next=4,R(H,H,D).call(H,r,n,o,i);case 4:e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!1}}),sessionStorage.setItem("openCart",a),window.document.location.reload();case 7:case"end":return t.stop()}}),t)})));return function(e,r,n,o,i,a){return t.apply(this,arguments)}}()),B(H,"redirectToCustomURL",function(){var t=I(Z().mark((function t(e,r,n,o,i,a){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.warn("SFCCClass.redirectToCustomURL(".concat(e,", ").concat(r,", ").concat(n,", ").concat(o,", ").concat(i,", ").concat(a,");")),e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!0}}),t.next=4,R(H,H,D).call(H,r,n,o,i);case 4:e({type:c.a.SET_IS_LOADING_IN_PROGRESS,payload:{isLoadingInProgress:!1}}),window.location.replace(a);case 6:case"end":return t.stop()}}),t)})));return function(e,r,n,o,i,a){return t.apply(this,arguments)}}()),B(H,"handleAddToCart",function(){var t=I(Z().mark((function t(e,r,n,o,i){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.warn("SFCCClass.redirectToCart(".concat(e,", ").concat(r,", ").concat(n,", ").concat(o,", ").concat(i,");")),t.next=3,H.redirectToCart(e,r,n,o,i);case 3:case"end":return t.stop()}}),t)})));return function(e,r,n,o,i){return t.apply(this,arguments)}}()),B(H,"redirectToClientURL",(function(t){console.warn("SFCCClass.redirectToClientURL(".concat(t,");")),window.location.replace(t)})),B(H,"getCurrency",(function(){return console.warn("SFCCClass.getCurrency();"),window.videowiseSFCC.currency}));const M=H;var F=r(8582),G=r(7835);function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}function X(){X=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==V(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function U(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function q(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){U(i,n,o,a,c,"next",t)}function c(t){U(i,n,o,a,c,"throw",t)}a(void 0)}))}}var W=function(){var t=q(X().mark((function t(e){var r,n;return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(0,a.Eq)("".concat(window.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname)),t.next=3,(0,F.rr)(e,r);case 3:return n=t.sent,t.next=6,(0,G.a)(n);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),z=function(){var t=q(X().mark((function t(e,r){var n;return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,F.fh)(e,r);case 2:return n=t.sent,t.next=5,(0,G.a)(n);case 5:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();const Y=function(){var t=null;if("undefined"!==typeof window.Shopify?t=L:"undefined"!==typeof window.videowiseSFCC&&(t=M),null===t)throw Error("The object does not exist.");return new Proxy(t,{get:function(t,e){if("function"===typeof t[e])return t[e];throw Error("Error from proxy.js!")}})}},3421:(t,e,r)=>{r.d(e,{ZP:()=>ea});var n,o,i=r(9748),a=r(7856),c=r(8311),l=(0,i.createContext)({}),u=(n="ThemeContext",o=l,function(){var t=(0,i.useContext)(o);if(void 0===t)throw new Error("use".concat(n,"Context must be used withing a ").concat(n,"ContextProvider."));return t}),s=function(t){var e=t.children,r=t.value;return(0,c.tZ)(l.Provider,{value:r,children:e})},d=(0,i.createContext)({}),f=function(t,e){return function(){var r=(0,i.useContext)(e);if(void 0===r)throw new Error("use".concat(t,"Context must be used withing a ").concat(t,"ContextProvider."));return r}}("AppContext",d),p=function(t){var e=t.children,r=t.value;return(0,c.tZ)(d.Provider,{value:r,children:e})};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g(t);if(e){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function w(t,e){if(e&&("object"===h(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}const b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(i,t);var e,r,n,o=m(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).state={hasError:!1},e}return e=i,n=[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}],(r=[{key:"componentDidCatch",value:function(t,e){console.log(t,e)}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}])&&v(e.prototype,r),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(i.Component);var _=(0,i.createContext)({}),x=(0,i.createContext)({}),C=function(t,e){return function(){var r=(0,i.useContext)(e);if(void 0===r)throw new Error("use".concat(t,"Context must be used withing a ").concat(t,"ContextProvider."));return r}},O=C("ShoppableContext",_),L=C("ShoppableActionContext",x),E=function(t){var e=t.children,r=t.value,n=t.action;return(0,c.tZ)(_.Provider,{value:r,children:(0,c.tZ)(x.Provider,{value:n,children:e})})},S=(0,i.createContext)({}),k=(0,i.createContext)({}),Z=function(t,e){return function(){var r=(0,i.useContext)(e);if(void 0===r)throw new Error("use".concat(t,"Context must be used withing a ").concat(t,"ContextProvider."));return r}},P=(Z("PlayerContext",S),Z("PlayerActionContext",k),function(t){var e=t.children,r=t.value,n=t.action;return(0,c.tZ)(S.Provider,{value:r,children:(0,c.tZ)(k.Provider,{value:n,children:e})})}),j=r(4627);function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){T(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function T(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var A="play",B="mute",R="set_first",H=function(t,e){switch(e.type){case A:return I(I({},t),{},{playing:e.payload.playing});case B:return I(I({},t),{},{muted:e.payload.muted});case R:return I(I({},t),{},{isFirst:!1});default:return t}},D=r(5877),M=r(6010),F=r(3366),G=r(4064),V=r(3253),X=r.n(V),U=r(9669),q=r.n(U),W=r(8522),z=r(1673),Y=r(2560),$=r(9782);function K(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function J(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?K(Object(r),!0).forEach((function(e){Q(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return et(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return et(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const rt=function(t){var e,r=t.options,n=t.variants,o=t.onCallback,a=t.variantId,l=(O()||{}).product,s=(u().player||{}).settings,d=L(),f=n.length,p=tt((0,i.useState)(!1),2),h=p[0],v=p[1];(null===l||void 0===l||null===(e=l.excludedVariants)||void 0===e?void 0:e.length)>0?v(!0):v(!1);var y=null;a&&(y=n.filter((function(t){return t.id===Number(a)})));var m=function(t,e){return!(!y||0===y.length||g)&&y[0]["option".concat(e+1)]===t},w=tt((0,i.useState)(),2),g=w[0],b=w[1],_=tt((0,i.useState)(0),2),x=_[0],C=_[1],E=[],S=tt((0,i.useState)(null),2),k=S[0],Z=S[1],P=tt((0,i.useState)(null),2),N=P[0],I=P[1],T=function(t){b(t.target.value),C(t.target.id);var e=function(t){var e=[];document.querySelectorAll(".vw-shoppable__select-item").forEach((function(t){e.push(t.selectedOptions[0].value.trim())}));var r=t.filter((function(t){return(0,$.Xy)(t.options,e)}));return(0,$.xb)(r)?null:r[0]}(n);if(e){var r=e.price,i=e.id;o({price:r,id:i})}else{l.deletedVariant=!0;var a={product:J({},l)};d({type:j.a.UPDATE_PRODUCT,payload:a})}};l&&l.variants.length&&l.variants.forEach((function(t){var e=t.options;e[x]===g&&x!=k?(E.push(e),I(e[x])):null!=N&&e[x-1]===N&&E.push(e)}));var A=function(t){Z(t.target.id)};return(0,c.tZ)("div",{className:"vw-cmp__select-root",children:r&&(f>1||h)&&(0,c.tZ)("div",{className:"vw-shoppable__options",children:r.map((function(t,e){var n,o,i=t.name;return(0,c.BX)("div",{className:"vw__select-row",children:[(0,c.tZ)("label",{children:i}),(0,c.tZ)("div",{className:"vw__select",children:(0,c.BX)("div",{className:"vw__select-item",children:[2==r.length&&(0,c.BX)("select",{id:"".concat(e),className:"vw-shoppable__select-item",onChange:T,onClick:A,children:[(0,c.tZ)("option",{value:"",selected:!0,children:null!==s&&void 0!==s&&s.translation&&null!==s&&void 0!==s&&null!==(n=s.translation)&&void 0!==n&&n.defaultOption?null===s||void 0===s||null===(o=s.translation)||void 0===o?void 0:o.defaultOption:"Please select"}),E.length>=1&&e>0&&E.map((function(t,r){return(0,c.tZ)("option",{selected:m(t[e],e),value:t[e],children:t[e]},r)})),E.length<1&&e>0&&t.values.map((function(t,r){return(0,c.tZ)("option",{selected:m(t,e),value:t,children:t},r)})),0===e&&t.values.map((function(t,r){return(0,c.tZ)("option",{selected:m(t,e),value:t,children:t},r)}))]}),2!=r.length&&(0,c.tZ)("select",{id:"".concat(e),className:"vw-shoppable__select-item",onChange:T,onClick:A,children:t.values.map((function(t,r){return(0,c.tZ)("option",{selected:m(t,e),value:t,children:t},r)}))}),(0,c.tZ)("span",{className:"shoppable__select--arrow",children:(0,c.tZ)("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M2 1.5L7 6.5L12 1.5",stroke:"#8F8F8F","stroke-width":"1.5","stroke-linecap":"square"})})})]})})]},"selectitem-".concat(e))}))})})};var nt=r(2883);function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function it(){it=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==ot(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function at(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}var ct="CART",lt="NONE",ut=function(t){var e=t.icon;if(e!==lt){var r=e===ct?function(){return(0,c.tZ)("span",{children:(0,c.BX)("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{d:"M1.5  1.5H2.71922C3.17809 1.5 3.57807 1.8123 3.68937 2.25746L6.31063 12.7425C6.42193 13.1877 6.82191 13.5 7.28078 13.5H15.7792C16.2097 13.5 16.5918 13.2246 16.7279 12.8162L19.0613 5.81623C19.2771 5.16869 18.7951 4.5 18.1126 4.5H4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.tZ)("circle",{cx:"14.5",cy:"18",r:"1.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,c.tZ)("circle",{cx:"8.5",cy:"18",r:"1.5",stroke:"currentColor",strokeWidth:"1.5"})]})})}:function(){return(0,c.tZ)("span",{children:(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9999 5C14.9999 3.34315 13.6567 2 11.9999 2C10.343 2 8.99987 3.34315 8.99987 5H14.9999ZM11.9999 0C9.23845 0 6.99987 2.23858 6.99987 5H2.99987L2.22146 19.7898C2.10101 22.0783 3.9242 24 6.21594 24H17.7838C20.0755 24 21.8987 22.0783 21.7783 19.7898L20.9999 5H16.9999C16.9999 2.23858 14.7613 0 11.9999 0ZM14.9999 7H16.9999H19.1024L19.781 19.8949C19.8413 21.0392 18.9297 22 17.7838 22H6.21594C5.07007 22 4.15847 21.0392 4.2187 19.8949L4.89738 7H6.99987H8.99987H14.9999ZM6.99987 9C6.99987 10.5447 7.63011 11.7644 8.60969 12.5807C9.56632 13.3779 10.8035 13.75 11.9999 13.75C13.1962 13.75 14.4334 13.3779 15.3901 12.5807C16.3696 11.7644 16.9999 10.5447 16.9999 9H14.9999C14.9999 9.95529 14.6301 10.6106 14.1097 11.0443C13.5663 11.4971 12.8035 11.75 11.9999 11.75C11.1962 11.75 10.4334 11.4971 9.89006 11.0443C9.36963 10.6106 8.99987 9.95529 8.99987 9H6.99987Z",fill:"currentColor"})})})};return(0,c.tZ)(r,{})}};const st=function(t){var e,r,n,o=t.product,i=t.appState,l=(t.videoType,O()),s=l.isLoadingInProgress,d=l.subscriptionId,f=L(),p=u().player||{},h=p.buttonStyle,v=p.buyButton,y=p.settings,m=i||{},w=m.trackingContext,g=m.inventorySetting,b=o.available,_=o.deletedVariant||!1,x=function(t){switch(t.type){case a.Nk.ADD_TO_CART:return null===t||void 0===t?void 0:t.addToCart;case a.Nk.DIRECT_TO_CHECKOUT:return null===t||void 0===t?void 0:t.directToCheckout;case a.Nk.DIRECT_TO_CART_CUSTOM:return null===t||void 0===t?void 0:t.directToCartCustom;case a.Nk.DIRECT_TO_CART_REDIRECT:return null===t||void 0===t?void 0:t.directToCartRedirect;case a.Nk.CUSTOM_URL:return null===t||void 0===t?void 0:t.customUrl;default:return null===t||void 0===t?void 0:t.directToCart}}(v),C=!o.available||s,E=!(null===o||void 0===o||!o.variants)&&(null===o||void 0===o||null===(e=o.excludedVariants)||void 0===e?void 0:e.some((function(t){return t.id===o.selectedId}))),S=function(){var t,e=(t=it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=v.type,t.next=t.t0===a.Nk.DIRECT_TO_CART?3:t.t0===a.Nk.DIRECT_TO_CHECKOUT?6:t.t0===a.Nk.DIRECT_TO_CART_CUSTOM?9:t.t0===a.Nk.DIRECT_TO_CART_REDIRECT?12:t.t0===a.Nk.ADD_TO_CART?15:t.t0===a.Nk.CUSTOM_URL?18:20;break;case 3:return t.next=5,(0,nt.ZP)().redirectToCart(f,o.selectedId,d,o.id,w);case 5:case 8:case 11:case 14:case 17:case 20:return t.abrupt("break",21);case 6:return t.next=8,(0,nt.ZP)().redirectToCheckout(f,o.selectedId,d,o.id,w);case 9:return t.next=11,(0,nt.ZP)().redirectToCartCustom(f,o.selectedId,d,o.id,w,null===x||void 0===x?void 0:x.js);case 12:return t.next=14,(0,nt.ZP)().redirectToCustomURL(f,o.selectedId,d,o.id,w,null===x||void 0===x?void 0:x.redirectURL);case 15:return t.next=17,(0,nt.ZP)().handleAddToCart(f,o.selectedId,d,o.id,w);case 18:return(0,nt.ZP)().redirectToClientURL(null===x||void 0===x?void 0:x.redirectURL),t.abrupt("break",21);case 21:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){at(i,n,o,a,c,"next",t)}function c(t){at(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();return(0,c.BX)(c.HY,{children:[g===a.a_.IGNORE_INVENTORY&&!(!1===(null===h||void 0===h?void 0:h.show))&&(0,c.BX)("button",{"aria-label":"add to cart",className:"vw-cmp__button-shoppable--primary",style:{background:h.backgroundColor,color:h.textColor,borderRadius:h.radius,border:h.showBorder?"".concat(h.borderColor," solid"):0,borderWidth:h.showBorder?"".concat(h.borderWidth):0},disabled:E,type:"button",onClick:S,children:[s&&(0,c.tZ)("div",{className:"vw__atc-loader-root",children:(0,c.tZ)("span",{className:"vw__atc-loader"})}),!s&&(0,c.tZ)(ut,{icon:x.icon}),!s&&""!==x.text&&x.text]}),g===a.a_.USE_INVENTORY&&!(!1===(null===h||void 0===h?void 0:h.show))&&(0,c.BX)("button",{"aria-label":"add to cart",className:"vw-cmp__button-shoppable--primary",style:{background:h.backgroundColor,color:h.textColor,borderRadius:h.radius,border:h.showBorder?"".concat(h.borderColor," solid"):0,borderWidth:h.showBorder?"".concat(h.borderWidth):0,opacity:C||E||_?.3:1,cursor:C||E||_?"initial":"pointer"},type:"button",disabled:C||E||_,onClick:S,children:[s&&(0,c.tZ)("div",{className:"vw__atc-loader-root",children:(0,c.tZ)("span",{className:"vw__atc-loader"})}),!s&&!E&&!_&&b&&(0,c.tZ)(ut,{icon:x.icon}),!s&&!E&&!_&&b&&""!==x.text&&x.text,!s&&!b&&"Sold out",!s&&b&&(E||_)&&(null!==y&&void 0!==y&&y.translation&&null!==y&&void 0!==y&&null!==(r=y.translation)&&void 0!==r&&r.notAvailable?null===y||void 0===y||null===(n=y.translation)||void 0===n?void 0:n.notAvailable:"Not available")]})]})};const dt=function(t){var e=t.product,r=u().player,n=(e||{}).handle,o=(r||{}).secondaryButton,i="/products/".concat(n);return(0,c.tZ)(c.HY,{children:(null===o||void 0===o?void 0:o.show)&&(0,c.tZ)("a",{href:"".concat(i),"aria-label":"do to details",className:"vw-cmp__button-shoppable--secondary",style:{background:o.backgroundColor,color:o.textColor,borderRadius:o.radius,border:o.showBorder?"".concat(o.borderColor," solid"):0,borderWidth:o.showBorder?"".concat(o.borderWidth):0},type:"button",children:o.text})})};const ft=function(){var t=O(),e=((u().player||{}).buyButton||{}).type,r=t.cart;if(e===a.Nk.ADD_TO_CART)return(0,c.tZ)("div",{className:"vw-cmp__checkout-set",children:(0,c.BX)("form",{className:"vw-cmp__checkout--form",action:"/cart",method:"post",id:"cart",children:[r&&(0,c.tZ)("div",{className:"vw-cmp__checkout-set--col vw-cart",children:(0,c.BX)("button",{type:"submit",name:"checkout",className:"vw-cmp__checkout-set-button vw-cmp__checkout-set-button--cart",children:[(0,c.BX)("span",{className:"vw-cmp__checkout-set--cart-icon-container",children:[(0,c.tZ)("span",{className:"vw-cmp__checkout-set--cart-icon-badge",children:null===r||void 0===r?void 0:r.item_count}),(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0001 5C15.0001 3.34315 13.657 2 12.0001 2C10.3433 2 9.00012 3.34315 9.00012 5H15.0001ZM12.0001 0C9.23869 0 7.00012 2.23858 7.00012 5H3.00012L2.22171 19.7898C2.10126 22.0783 3.92445 24 6.21618 24H17.7841C20.0758 24 21.899 22.0783 21.7785 19.7898L21.0001 5H17.0001C17.0001 2.23858 14.7615 0 12.0001 0ZM15.0001 7H17.0001H19.1026L19.7813 19.8949C19.8415 21.0392 18.9299 22 17.7841 22H6.21618C5.07031 22 4.15872 21.0392 4.21894 19.8949L4.89762 7H7.00012H9.00012H15.0001ZM7.00012 9C7.00012 10.5447 7.63036 11.7644 8.60993 12.5807C9.56656 13.3779 10.8038 13.75 12.0001 13.75C13.1964 13.75 14.4337 13.3779 15.3903 12.5807C16.3699 11.7644 17.0001 10.5447 17.0001 9H15.0001C15.0001 9.95529 14.6304 10.6106 14.1099 11.0443C13.5666 11.4971 12.8038 11.75 12.0001 11.75C11.1964 11.75 10.4337 11.4971 9.8903 11.0443C9.36988 10.6106 9.00012 9.95529 9.00012 9H7.00012Z",fill:"white"})})]}),(0,c.BX)("span",{className:"vw-cmp__checkout-set--cart-icon-info",children:[(0,c.tZ)("span",{children:"Subtotal"}),(0,c.BX)("strong",{children:[(null===r||void 0===r?void 0:r.currency)+" ",((null===r||void 0===r?void 0:r.items_subtotal_price)/100).toFixed(2)]})]})]})}),(0,c.tZ)("div",{className:"vw-cmp__checkout-set--col vw-checkout",children:(0,c.tZ)("button",{type:"submit",id:"checkout",className:"vw-cmp__checkout-set-button vw-cmp__checkout-set-button--checkout",name:"checkout",form:"cart",children:"Check Out"})})]})})};function pt(t,e){document.addEventListener(t,e)}function ht(t,e){document.removeEventListener(t,e)}function vt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return yt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const mt=function(t){var e,r,n,o=t.visible,a=void 0!==o&&o,l=t.title,u=t.children,s=vt((0,i.useState)(a),2),d=s[0],f=s[1],p=(0,M.Z)("vw-cmp__shoppable--accordion",(n=d,(r="is-visible")in(e={})?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e));return(0,c.tZ)(c.HY,{children:(0,c.BX)("div",{className:p,children:[l&&(0,c.BX)("div",{onClick:function(){return f((function(t){return!t}))},className:"vw-cmp__shoppable--accordion-title",children:[l,(0,c.tZ)(W.X,{features:z.H,children:(0,c.tZ)(Y.m.span,{className:"vw-cmp__shoppable--accordion-icon",animate:d?"closed":"open",transition:{ease:[.29,.63,.4,.79],duration:.15},variants:{open:{rotate:0},closed:{rotate:180}},children:(0,c.tZ)("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M13 1L7 7L1 1",stroke:"currentColor",strokeWidth:"2"})})})})]}),(0,c.tZ)(W.X,{features:z.H,children:(0,c.tZ)(Y.m.div,{className:"vw-cmp__shoppable--accordion-body",animate:d?"open":"closed",transition:{ease:[.29,.63,.4,.79],duration:.15},variants:{open:{opacity:1,maxHeight:"2000vh"},closed:{opacity:0,maxHeight:0}},children:u})})]})})};var wt=r(2730);const gt=function(){return(0,c.tZ)("div",{class:"vw-cmp__loader"})};function bt(t){return function(t){if(Array.isArray(t))return Ct(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||xt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||xt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(t,e){if(t){if("string"===typeof t)return Ct(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ct(t,e):void 0}}function Ct(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Ot=function(t){var e=t.product,r=e||{},n=r.image,o=r.images,a=r.title,l=O().isShoppableLoading,u=function(t){var e,r="";if(null!==t&&void 0!==t&&null!==(e=t.variants)&&void 0!==e&&e.length)return t.variants.forEach((function(e){"undefined"!==typeof e.featured_image&&null!==e.featured_image&&t.selectedId===e.id&&("undefined"!==typeof window.Shopify?r=e.featured_image.src.replace(/http(s)?:/,""):"undefined"!==typeof window.videowiseSFCC&&(r=e.featured_image))})),r};o&&o.length&&(o.includes(u(e))&&o.splice(o.indexOf(u(e)),1),u(e)&&o.unshift(u(e)));if(e)return(0,c.tZ)("div",{className:"vw-cmp__shoppable-media--root",children:o&&o.length>2?function(){var t=null===o||void 0===o?void 0:o.slice(0,10),r=_t((0,i.useState)(0),2),n=r[0],u=r[1],s=_t((0,i.useState)(!1),2),d=(s[0],s[1],(0,wt.E)({loop:!1,mode:"free",slides:{number:t.length,perView:"1.5",spacing:8},selector:".vw-cmp__shopable-keen-media-slide",slideChanged:function(t){u(t.track.details.rel)}})),f=_t(d,3),p=f[0],h=f[1];f[2];return(0,i.useEffect)((function(){var t;null===(t=h.current)||void 0===t||t.update()}),[h.current]),(0,i.useEffect)((function(){var t;null===(t=h.current)||void 0===t||t.moveToIdx(0)}),[e]),(0,c.BX)("div",{className:"vw-cmp__shoppable-media--carousel",children:[(0,c.tZ)("div",{ref:p,className:"vw-cmp__shopable-keen-media-slider",children:t&&t.map((function(t,e){return(0,c.tZ)("div",{className:"vw-cmp__shopable-keen-media-slide ".concat(l&&"vw-mod__is-loading"),virtualIndex:e,children:l?(0,c.tZ)(gt,{}):(0,c.tZ)("img",{src:t,alt:a})},e)}))}),t&&h.current&&(0,c.tZ)("div",{className:"vw-cmp__shopable-keen-media-slider-dots",children:bt(Array(h.current.track.details.slides.length).keys()).map((function(t){return(0,c.tZ)("div",{onClick:function(){var e;null===(e=h.current)||void 0===e||e.moveToIdx(t)},className:"vw-cmp__shopable-keen-media-slider-dot"+(n===t?" active":"")},t)}))})]})}():(0,c.tZ)("div",{className:"vw-cmp__shoppable-media--image ".concat(l&&"vw-mod__is-loading"),children:l?(0,c.tZ)(gt,{}):n&&a?(0,c.tZ)("img",{src:n,alt:a}):o&&a?(0,c.tZ)("img",{src:o[0],alt:a}):null})})};const Lt=function(t){var e=t.children,r=t.classModifier;return(0,c.tZ)("div",{className:"vw-cmp__shoppable-button--root ".concat(r),children:(0,c.tZ)("div",{className:"vw-cmp__shoppable-button--root-inner",children:e})})};var Et=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){var r=t.toString(),n=r.replace(/,/g,"."),o=function(t){var r=e?t/100:t;return new Intl.NumberFormat(void 0,{style:"currency",currency:"".concat((0,nt.ZP)().getCurrency())}).format(r)};return o(parseFloat(n))}};const St=function(){return(0,c.BX)("svg",{width:"183",height:"248",viewBox:"0 0 183 248",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{maxWidth:"100%"},children:[(0,c.tZ)("path",{d:"M0 191H140V207H0V191Z",fill:"url(#paint0_linear_748_5231)"}),(0,c.tZ)("path",{d:"M0 211H104V227H0V211Z",fill:"url(#paint1_linear_748_5231)"}),(0,c.tZ)("path",{d:"M0 232H44V248H0V232Z",fill:"url(#paint2_linear_748_5231)"}),(0,c.tZ)("path",{d:"M0 0H183V183H0V0Z",fill:"url(#paint3_linear_748_5231)"}),(0,c.BX)("defs",{children:[(0,c.BX)("linearGradient",{id:"paint0_linear_748_5231",x1:"2.15576",y1:"137.099",x2:"183",y2:"137.099",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint1_linear_748_5231",x1:"2.15576",y1:"137.099",x2:"183",y2:"137.099",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint2_linear_748_5231",x1:"2.15576",y1:"137.099",x2:"183",y2:"137.099",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint3_linear_748_5231",x1:"2.15576",y1:"137.099",x2:"183",y2:"137.099",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]})]})]})};const kt=function(t){var e=t.product||{},r=e.title,n=e.featured_image,o=e.price,i=e.url,a=e.compare_at_price,l=O().isShoppableLoading;return(0,c.tZ)("div",{className:"vw-cmp__recommended-products--item",children:l?(0,c.tZ)(St,{}):(0,c.tZ)(c.HY,{children:(0,c.BX)("a",{href:"".concat(i),target:"_blank",children:[n&&r&&(0,c.tZ)("div",{className:"vw-cmp__recommended-products--item-image",children:(0,c.tZ)("img",{src:n,alt:r})}),r&&(0,c.tZ)("div",{className:"vw-cmp__recommended-products--item-title notranslate",children:r}),(0,c.BX)("div",{className:"vw-cmp__recommended-products--item-price notranslate",children:[o&&(0,c.tZ)("span",{className:"vw-cmp__recommended-products--item-price-current notranslate",children:Et(o/100)}),a&&a!=o&&(0,c.tZ)("span",{className:"vw-cmp__recommended-products--item-price-old notranslate",children:Et(a/100)})]})]})})})};function Zt(t){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zt(t)}function Pt(){Pt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==Zt(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function jt(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function Nt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return It(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return It(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Tt=function(t){var e,r=t.productId,n=t.excludeIds,o=Nt((0,i.useState)([]),2),a=o[0],l=o[1],s=((u()||{}).player||{}).settings;if((0,i.useEffect)((function(){var t;(t=Pt().mark((function t(){var e,o;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=11;break}return t.prev=1,t.next=4,(0,nt.ZP)().getRecommendedProductsById(r);case 4:(e=t.sent)&&e.products.length>0&&(o=e.products,n&&n.length>0&&(o=o.filter((function(t){return!n.map((function(t){return t.trim()})).includes(t.id.toString())})).slice(0,4)),l(o)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),console.error("fetch product error: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[1,8]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){jt(i,n,o,a,c,"next",t)}function c(t){jt(i,n,o,a,c,"throw",t)}a(void 0)}))})()}),[r]),a&&0!==(null===a||void 0===a?void 0:a.length))return(0,c.BX)("div",{className:"vw-cmp__recommended-products",children:[(0,c.tZ)("div",{className:"vw-cmp__recommended-products-title",children:null!==s&&void 0!==s&&s.translation?null===s||void 0===s||null===(e=s.translation)||void 0===e?void 0:e.recommendedProducts:"You may also like"}),(0,c.tZ)("div",{className:"vw-cmp__recommended-products--grid",children:a.slice(0,4).map((function(t,e){return(0,c.tZ)(kt,{product:t})}))})]})};var At=function(){var t=f().storeLogo,e=((u()||{}).player||{}).showLogo,r=function(){return(0,c.tZ)("a",{href:"https://www.videowise.com",target:"_blank",rel:"noopener",children:(0,c.BX)("svg",{width:"108",height:"44",viewBox:"0 0 108 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("g",{filter:"url(#filter0_d_1332_6679)",children:(0,c.tZ)("path",{d:"M6.99 12.25C7.19667 12.5033 7.44333 12.7167 7.73 12.89C8.01667 13.0633 8.34 13.15 8.7 13.15C8.86 13.15 9.01333 13.1267 9.16 13.08C9.31333 13.0267 9.44333 12.9533 9.55 12.86C9.66333 12.7667 9.75333 12.6567 9.82 12.53C9.88667 12.4033 9.92 12.26 9.92 12.1C9.92 11.8333 9.83667 11.62 9.67 11.46C9.51 11.2933 9.30667 11.15 9.06 11.03C8.82 10.91 8.56 10.7967 8.28 10.69C8 10.5833 7.74333 10.4533 7.51 10.3C7.25667 10.1333 7.04333 9.92667 6.87 9.68C6.70333 9.43333 6.62 9.12667 6.62 8.76C6.62 8.50667 6.67333 8.26667 6.78 8.04C6.88667 7.81333 7.03333 7.61667 7.22 7.45C7.41333 7.27667 7.63667 7.14333 7.89 7.05C8.15 6.95 8.43333 6.9 8.74 6.9C8.96 6.9 9.16333 6.92333 9.35 6.97C9.54333 7.01 9.71667 7.06667 9.87 7.14C10.03 7.20667 10.17 7.28 10.29 7.36C10.4167 7.44 10.5267 7.52 10.62 7.6L10.03 8.33C9.65 8.01 9.23333 7.85 8.78 7.85C8.63333 7.85 8.49 7.87 8.35 7.91C8.21667 7.95 8.09333 8.01 7.98 8.09C7.87333 8.17 7.78667 8.27 7.72 8.39C7.65333 8.50333 7.62 8.63667 7.62 8.79C7.62 9.01 7.7 9.19333 7.86 9.34C8.02667 9.48667 8.23 9.62 8.47 9.74C8.71667 9.85333 8.97667 9.96667 9.25 10.08C9.53 10.1933 9.78333 10.3233 10.01 10.47C10.13 10.55 10.2433 10.64 10.35 10.74C10.4567 10.84 10.5533 10.9567 10.64 11.09C10.7267 11.2167 10.7933 11.3633 10.84 11.53C10.8933 11.69 10.92 11.87 10.92 12.07C10.92 12.3767 10.8633 12.6567 10.75 12.91C10.6367 13.1567 10.4833 13.37 10.29 13.55C10.0967 13.7233 9.86667 13.86 9.6 13.96C9.34 14.0533 9.05667 14.1 8.75 14.1C8.27 14.1 7.82 14 7.4 13.8C6.98 13.6 6.61333 13.31 6.3 12.93L6.99 12.25ZM13.1223 9.71C13.2556 9.59667 13.4356 9.48333 13.6623 9.37C13.8956 9.25667 14.1756 9.2 14.5023 9.2C14.8489 9.2 15.1689 9.27667 15.4623 9.43C15.7623 9.57667 16.0123 9.77667 16.2123 10.03C16.3656 10.2233 16.4789 10.45 16.5523 10.71C16.6323 10.9633 16.6723 11.2933 16.6723 11.7V14H15.7223V11.65C15.7223 11.35 15.6956 11.12 15.6423 10.96C15.5956 10.8 15.5289 10.6667 15.4423 10.56C15.3289 10.42 15.1856 10.31 15.0123 10.23C14.8456 10.1433 14.6656 10.1 14.4723 10.1C14.1589 10.1 13.8889 10.17 13.6623 10.31C13.4423 10.4433 13.2623 10.5967 13.1223 10.77V14H12.1723V6.9H13.1223V9.71ZM17.8758 11.65C17.8758 11.3033 17.9358 10.98 18.0558 10.68C18.1824 10.38 18.3524 10.12 18.5658 9.9C18.7858 9.68 19.0424 9.51 19.3358 9.39C19.6358 9.26333 19.9591 9.2 20.3058 9.2C20.6524 9.2 20.9724 9.26333 21.2658 9.39C21.5658 9.51 21.8224 9.68 22.0358 9.9C22.2558 10.12 22.4258 10.38 22.5458 10.68C22.6724 10.98 22.7358 11.3033 22.7358 11.65C22.7358 12.0033 22.6724 12.33 22.5458 12.63C22.4258 12.9233 22.2558 13.18 22.0358 13.4C21.8224 13.62 21.5658 13.7933 21.2658 13.92C20.9724 14.04 20.6524 14.1 20.3058 14.1C19.9591 14.1 19.6358 14.04 19.3358 13.92C19.0424 13.7933 18.7858 13.62 18.5658 13.4C18.3524 13.18 18.1824 12.9233 18.0558 12.63C17.9358 12.33 17.8758 12.0033 17.8758 11.65ZM18.8258 11.65C18.8258 11.8633 18.8624 12.0667 18.9358 12.26C19.0091 12.4467 19.1091 12.61 19.2358 12.75C19.3691 12.89 19.5258 13 19.7058 13.08C19.8858 13.16 20.0858 13.2 20.3058 13.2C20.5258 13.2 20.7258 13.16 20.9058 13.08C21.0858 13 21.2391 12.89 21.3658 12.75C21.4991 12.61 21.6024 12.4467 21.6758 12.26C21.7491 12.0667 21.7858 11.8633 21.7858 11.65C21.7858 11.4367 21.7491 11.2367 21.6758 11.05C21.6024 10.8567 21.4991 10.69 21.3658 10.55C21.2391 10.41 21.0858 10.3 20.9058 10.22C20.7258 10.14 20.5258 10.1 20.3058 10.1C20.0858 10.1 19.8858 10.14 19.7058 10.22C19.5258 10.3 19.3691 10.41 19.2358 10.55C19.1091 10.69 19.0091 10.8567 18.9358 11.05C18.8624 11.2367 18.8258 11.4367 18.8258 11.65ZM24.9875 16.4H24.0375V9.3H24.9575V9.73C25.1708 9.54333 25.4008 9.41 25.6475 9.33C25.9008 9.24333 26.1608 9.2 26.4275 9.2C26.6475 9.2 26.8542 9.22667 27.0475 9.28C27.2408 9.33333 27.4175 9.40667 27.5775 9.5C27.9375 9.71333 28.2275 10.0067 28.4475 10.38C28.6742 10.7533 28.7875 11.1767 28.7875 11.65C28.7875 12.1233 28.6775 12.5467 28.4575 12.92C28.2375 13.2867 27.9475 13.5767 27.5875 13.79C27.4275 13.8833 27.2442 13.9567 27.0375 14.01C26.8308 14.07 26.6208 14.1 26.4075 14.1C25.8542 14.1 25.3808 13.93 24.9875 13.59V16.4ZM24.9875 12.53C25.1475 12.7433 25.3408 12.91 25.5675 13.03C25.8008 13.1433 26.0375 13.2 26.2775 13.2C26.5042 13.2 26.7108 13.16 26.8975 13.08C27.0908 12.9933 27.2575 12.88 27.3975 12.74C27.5375 12.6 27.6442 12.4367 27.7175 12.25C27.7975 12.0633 27.8375 11.8633 27.8375 11.65C27.8375 11.4433 27.8008 11.2467 27.7275 11.06C27.6542 10.8733 27.5508 10.71 27.4175 10.57C27.2908 10.4233 27.1342 10.31 26.9475 10.23C26.7608 10.1433 26.5542 10.1 26.3275 10.1C26.0408 10.1 25.7808 10.1633 25.5475 10.29C25.3208 10.4167 25.1342 10.5767 24.9875 10.77V12.53ZM31.0422 16.4H30.0922V9.3H31.0122V9.73C31.2255 9.54333 31.4555 9.41 31.7022 9.33C31.9555 9.24333 32.2155 9.2 32.4822 9.2C32.7022 9.2 32.9089 9.22667 33.1022 9.28C33.2955 9.33333 33.4722 9.40667 33.6322 9.5C33.9922 9.71333 34.2822 10.0067 34.5022 10.38C34.7289 10.7533 34.8422 11.1767 34.8422 11.65C34.8422 12.1233 34.7322 12.5467 34.5122 12.92C34.2922 13.2867 34.0022 13.5767 33.6422 13.79C33.4822 13.8833 33.2989 13.9567 33.0922 14.01C32.8855 14.07 32.6755 14.1 32.4622 14.1C31.9089 14.1 31.4355 13.93 31.0422 13.59V16.4ZM31.0422 12.53C31.2022 12.7433 31.3955 12.91 31.6222 13.03C31.8555 13.1433 32.0922 13.2 32.3322 13.2C32.5589 13.2 32.7655 13.16 32.9522 13.08C33.1455 12.9933 33.3122 12.88 33.4522 12.74C33.5922 12.6 33.6989 12.4367 33.7722 12.25C33.8522 12.0633 33.8922 11.8633 33.8922 11.65C33.8922 11.4433 33.8555 11.2467 33.7822 11.06C33.7089 10.8733 33.6055 10.71 33.4722 10.57C33.3455 10.4233 33.1889 10.31 33.0022 10.23C32.8155 10.1433 32.6089 10.1 32.3822 10.1C32.0955 10.1 31.8355 10.1633 31.6022 10.29C31.3755 10.4167 31.1889 10.5767 31.0422 10.77V12.53ZM39.5769 13.57C39.3835 13.7433 39.1635 13.8767 38.9169 13.97C38.6702 14.0567 38.4069 14.1 38.1269 14.1C37.9135 14.1 37.7035 14.07 37.4969 14.01C37.2902 13.9567 37.1069 13.8833 36.9469 13.79C36.5869 13.5767 36.2969 13.2867 36.0769 12.92C35.8569 12.5467 35.7469 12.1233 35.7469 11.65C35.7469 11.1767 35.8569 10.7533 36.0769 10.38C36.3035 10.0067 36.5969 9.71333 36.9569 9.5C37.1169 9.40667 37.2935 9.33333 37.4869 9.28C37.6802 9.22667 37.8869 9.2 38.1069 9.2C38.3735 9.2 38.6302 9.24333 38.8769 9.33C39.1302 9.41 39.3635 9.54333 39.5769 9.73V9.3H40.4969V14H39.5769V13.57ZM39.5469 10.77C39.4002 10.5767 39.2102 10.4167 38.9769 10.29C38.7502 10.1633 38.4935 10.1 38.2069 10.1C37.9802 10.1 37.7735 10.1433 37.5869 10.23C37.4002 10.31 37.2402 10.4233 37.1069 10.57C36.9802 10.71 36.8802 10.8733 36.8069 11.06C36.7335 11.2467 36.6969 11.4433 36.6969 11.65C36.6969 11.8633 36.7335 12.0633 36.8069 12.25C36.8869 12.4367 36.9969 12.6 37.1369 12.74C37.2769 12.88 37.4402 12.9933 37.6269 13.08C37.8202 13.16 38.0302 13.2 38.2569 13.2C38.4969 13.2 38.7302 13.1433 38.9569 13.03C39.1902 12.91 39.3869 12.7433 39.5469 12.53V10.77ZM43.1216 14H42.2016V6.9H43.1516V9.71C43.3649 9.53667 43.5949 9.41 43.8416 9.33C44.0882 9.24333 44.3382 9.2 44.5916 9.2C44.8116 9.2 45.0182 9.22667 45.2116 9.28C45.4049 9.33333 45.5816 9.40667 45.7416 9.5C46.1016 9.71333 46.3916 10.0067 46.6116 10.38C46.8382 10.7533 46.9516 11.1767 46.9516 11.65C46.9516 12.1233 46.8416 12.5467 46.6216 12.92C46.4016 13.2867 46.1116 13.5767 45.7516 13.79C45.5916 13.8833 45.4082 13.9567 45.2016 14.01C44.9949 14.07 44.7849 14.1 44.5716 14.1C43.9982 14.1 43.5149 13.9233 43.1216 13.57V14ZM43.1516 12.53C43.3116 12.7433 43.5049 12.91 43.7316 13.03C43.9649 13.1433 44.2016 13.2 44.4416 13.2C44.6682 13.2 44.8749 13.16 45.0616 13.08C45.2549 12.9933 45.4216 12.88 45.5616 12.74C45.7016 12.6 45.8082 12.4367 45.8816 12.25C45.9616 12.0633 46.0016 11.8633 46.0016 11.65C46.0016 11.4433 45.9649 11.2467 45.8916 11.06C45.8182 10.8733 45.7149 10.71 45.5816 10.57C45.4549 10.4233 45.2982 10.31 45.1116 10.23C44.9249 10.1433 44.7182 10.1 44.4916 10.1C44.2049 10.1 43.9449 10.1633 43.7116 10.29C43.4849 10.4167 43.2982 10.5767 43.1516 10.77V12.53ZM48.2563 6.9H49.2063V14H48.2563V6.9ZM51.4227 11.85C51.4361 12.05 51.4827 12.2367 51.5627 12.41C51.6494 12.5767 51.7594 12.7267 51.8927 12.86C52.0261 12.9867 52.1827 13.0867 52.3627 13.16C52.5427 13.2333 52.7361 13.27 52.9427 13.27C53.2894 13.27 53.5661 13.2033 53.7727 13.07C53.9861 12.93 54.1594 12.7833 54.2927 12.63L54.9127 13.22C54.7394 13.4467 54.4861 13.65 54.1527 13.83C53.8194 14.01 53.4127 14.1 52.9327 14.1C52.5927 14.1 52.2727 14.04 51.9727 13.92C51.6794 13.7933 51.4227 13.6233 51.2027 13.41C50.9827 13.19 50.8094 12.93 50.6827 12.63C50.5627 12.33 50.5027 12.0033 50.5027 11.65C50.5027 11.2967 50.5594 10.97 50.6727 10.67C50.7861 10.37 50.9427 10.1133 51.1427 9.9C51.3494 9.68 51.5927 9.51 51.8727 9.39C52.1527 9.26333 52.4594 9.2 52.7927 9.2C53.1194 9.2 53.4194 9.26333 53.6927 9.39C53.9727 9.51 54.2127 9.68 54.4127 9.9C54.6127 10.12 54.7694 10.38 54.8827 10.68C54.9961 10.98 55.0527 11.3033 55.0527 11.65C55.0527 11.67 55.0527 11.6967 55.0527 11.73C55.0527 11.7633 55.0494 11.8033 55.0427 11.85H51.4227ZM52.8227 10.03C52.5161 10.03 52.2394 10.1233 51.9927 10.31C51.7461 10.4967 51.5827 10.7433 51.5027 11.05H54.0627C54.0294 10.9033 53.9694 10.7667 53.8827 10.64C53.8027 10.5133 53.7061 10.4067 53.5927 10.32C53.4861 10.2267 53.3661 10.1567 53.2327 10.11C53.0994 10.0567 52.9627 10.03 52.8227 10.03ZM58.1996 9.3H59.1796L60.5696 12.5L61.9596 9.3H62.9396L60.8996 14H60.2396L58.1996 9.3ZM63.891 9.3H64.841V14H63.891V9.3ZM63.741 7.63C63.741 7.45667 63.801 7.31 63.921 7.19C64.041 7.06333 64.1877 7 64.361 7C64.5343 7 64.681 7.06333 64.801 7.19C64.9277 7.31 64.991 7.45667 64.991 7.63C64.991 7.80333 64.9277 7.95 64.801 8.07C64.681 8.19 64.5343 8.25 64.361 8.25C64.1877 8.25 64.041 8.19 63.921 8.07C63.801 7.95 63.741 7.80333 63.741 7.63ZM69.9675 13.57C69.7742 13.7433 69.5542 13.8767 69.3075 13.97C69.0608 14.0567 68.7975 14.1 68.5175 14.1C68.3042 14.1 68.0942 14.07 67.8875 14.01C67.6808 13.9567 67.4975 13.8833 67.3375 13.79C66.9775 13.5767 66.6875 13.2867 66.4675 12.92C66.2475 12.5467 66.1375 12.1233 66.1375 11.65C66.1375 11.1767 66.2475 10.7533 66.4675 10.38C66.6942 10.0067 66.9875 9.71333 67.3475 9.5C67.5075 9.40667 67.6842 9.33333 67.8775 9.28C68.0708 9.22667 68.2775 9.2 68.4975 9.2C68.7508 9.2 69.0008 9.24333 69.2475 9.33C69.4942 9.41 69.7242 9.53667 69.9375 9.71V6.9H70.8875V14H69.9675V13.57ZM69.9375 10.77C69.7908 10.5767 69.6008 10.4167 69.3675 10.29C69.1408 10.1633 68.8842 10.1 68.5975 10.1C68.3708 10.1 68.1642 10.1433 67.9775 10.23C67.7908 10.31 67.6308 10.4233 67.4975 10.57C67.3708 10.71 67.2708 10.8733 67.1975 11.06C67.1242 11.2467 67.0875 11.4433 67.0875 11.65C67.0875 11.8633 67.1242 12.0633 67.1975 12.25C67.2775 12.4367 67.3875 12.6 67.5275 12.74C67.6675 12.88 67.8308 12.9933 68.0175 13.08C68.2108 13.16 68.4208 13.2 68.6475 13.2C68.8875 13.2 69.1208 13.1433 69.3475 13.03C69.5808 12.91 69.7775 12.7433 69.9375 12.53V10.77ZM73.1122 11.85C73.1255 12.05 73.1722 12.2367 73.2522 12.41C73.3389 12.5767 73.4489 12.7267 73.5822 12.86C73.7155 12.9867 73.8722 13.0867 74.0522 13.16C74.2322 13.2333 74.4255 13.27 74.6322 13.27C74.9789 13.27 75.2555 13.2033 75.4622 13.07C75.6755 12.93 75.8489 12.7833 75.9822 12.63L76.6022 13.22C76.4289 13.4467 76.1755 13.65 75.8422 13.83C75.5089 14.01 75.1022 14.1 74.6222 14.1C74.2822 14.1 73.9622 14.04 73.6622 13.92C73.3689 13.7933 73.1122 13.6233 72.8922 13.41C72.6722 13.19 72.4989 12.93 72.3722 12.63C72.2522 12.33 72.1922 12.0033 72.1922 11.65C72.1922 11.2967 72.2489 10.97 72.3622 10.67C72.4755 10.37 72.6322 10.1133 72.8322 9.9C73.0389 9.68 73.2822 9.51 73.5622 9.39C73.8422 9.26333 74.1489 9.2 74.4822 9.2C74.8089 9.2 75.1089 9.26333 75.3822 9.39C75.6622 9.51 75.9022 9.68 76.1022 9.9C76.3022 10.12 76.4589 10.38 76.5722 10.68C76.6855 10.98 76.7422 11.3033 76.7422 11.65C76.7422 11.67 76.7422 11.6967 76.7422 11.73C76.7422 11.7633 76.7389 11.8033 76.7322 11.85H73.1122ZM74.5122 10.03C74.2055 10.03 73.9289 10.1233 73.6822 10.31C73.4355 10.4967 73.2722 10.7433 73.1922 11.05H75.7522C75.7189 10.9033 75.6589 10.7667 75.5722 10.64C75.4922 10.5133 75.3955 10.4067 75.2822 10.32C75.1755 10.2267 75.0555 10.1567 74.9222 10.11C74.7889 10.0567 74.6522 10.03 74.5122 10.03ZM77.6414 11.65C77.6414 11.3033 77.7014 10.98 77.8214 10.68C77.9481 10.38 78.1181 10.12 78.3314 9.9C78.5514 9.68 78.8081 9.51 79.1014 9.39C79.4014 9.26333 79.7247 9.2 80.0714 9.2C80.4181 9.2 80.7381 9.26333 81.0314 9.39C81.3314 9.51 81.5881 9.68 81.8014 9.9C82.0214 10.12 82.1914 10.38 82.3114 10.68C82.4381 10.98 82.5014 11.3033 82.5014 11.65C82.5014 12.0033 82.4381 12.33 82.3114 12.63C82.1914 12.9233 82.0214 13.18 81.8014 13.4C81.5881 13.62 81.3314 13.7933 81.0314 13.92C80.7381 14.04 80.4181 14.1 80.0714 14.1C79.7247 14.1 79.4014 14.04 79.1014 13.92C78.8081 13.7933 78.5514 13.62 78.3314 13.4C78.1181 13.18 77.9481 12.9233 77.8214 12.63C77.7014 12.33 77.6414 12.0033 77.6414 11.65ZM78.5914 11.65C78.5914 11.8633 78.6281 12.0667 78.7014 12.26C78.7747 12.4467 78.8747 12.61 79.0014 12.75C79.1347 12.89 79.2914 13 79.4714 13.08C79.6514 13.16 79.8514 13.2 80.0714 13.2C80.2914 13.2 80.4914 13.16 80.6714 13.08C80.8514 13 81.0047 12.89 81.1314 12.75C81.2647 12.61 81.3681 12.4467 81.4414 12.26C81.5147 12.0667 81.5514 11.8633 81.5514 11.65C81.5514 11.4367 81.5147 11.2367 81.4414 11.05C81.3681 10.8567 81.2647 10.69 81.1314 10.55C81.0047 10.41 80.8514 10.3 80.6714 10.22C80.4914 10.14 80.2914 10.1 80.0714 10.1C79.8514 10.1 79.6514 10.14 79.4714 10.22C79.2914 10.3 79.1347 10.41 79.0014 10.55C78.8747 10.69 78.7747 10.8567 78.7014 11.05C78.6281 11.2367 78.5914 11.4367 78.5914 11.65ZM83.8431 12.75C84.2898 13.0967 84.7531 13.27 85.2331 13.27C85.4398 13.27 85.6265 13.22 85.7931 13.12C85.9665 13.0133 86.0531 12.8667 86.0531 12.68C86.0531 12.5467 86.0065 12.44 85.9131 12.36C85.8265 12.28 85.7131 12.2167 85.5731 12.17C85.4331 12.1167 85.2765 12.07 85.1031 12.03C84.9298 11.99 84.7565 11.94 84.5831 11.88C84.4431 11.8333 84.3065 11.7767 84.1731 11.71C84.0465 11.6367 83.9331 11.55 83.8331 11.45C83.7331 11.35 83.6531 11.2367 83.5931 11.11C83.5331 10.9833 83.5031 10.8367 83.5031 10.67C83.5031 10.4167 83.5531 10.2 83.6531 10.02C83.7598 9.83333 83.8931 9.68 84.0531 9.56C84.2198 9.44 84.4065 9.35 84.6131 9.29C84.8198 9.23 85.0298 9.2 85.2431 9.2C85.5898 9.2 85.8898 9.25 86.1431 9.35C86.3965 9.44333 86.6165 9.56667 86.8031 9.72L86.3131 10.4C86.1665 10.2867 86.0098 10.1967 85.8431 10.13C85.6765 10.0633 85.4965 10.03 85.3031 10.03C85.0698 10.03 84.8698 10.0833 84.7031 10.19C84.5365 10.29 84.4531 10.4333 84.4531 10.62C84.4531 10.78 84.5331 10.8967 84.6931 10.97C84.8598 11.0433 85.0598 11.11 85.2931 11.17C85.4798 11.2167 85.6731 11.2767 85.8731 11.35C86.0731 11.4167 86.2565 11.5067 86.4231 11.62C86.5898 11.7333 86.7265 11.8767 86.8331 12.05C86.9465 12.2167 87.0031 12.42 87.0031 12.66C87.0031 12.88 86.9531 13.08 86.8531 13.26C86.7598 13.44 86.6331 13.5933 86.4731 13.72C86.3131 13.84 86.1265 13.9333 85.9131 14C85.6998 14.0667 85.4798 14.1 85.2531 14.1C84.5198 14.1 83.8865 13.8833 83.3531 13.45L83.8431 12.75ZM91.9692 14H91.0492V6.9H91.9992V9.71C92.2126 9.53667 92.4426 9.41 92.6892 9.33C92.9359 9.24333 93.1859 9.2 93.4392 9.2C93.6592 9.2 93.8659 9.22667 94.0592 9.28C94.2526 9.33333 94.4292 9.40667 94.5892 9.5C94.9492 9.71333 95.2392 10.0067 95.4592 10.38C95.6859 10.7533 95.7992 11.1767 95.7992 11.65C95.7992 12.1233 95.6892 12.5467 95.4692 12.92C95.2492 13.2867 94.9592 13.5767 94.5992 13.79C94.4392 13.8833 94.2559 13.9567 94.0492 14.01C93.8426 14.07 93.6326 14.1 93.4192 14.1C92.8459 14.1 92.3626 13.9233 91.9692 13.57V14ZM91.9992 12.53C92.1592 12.7433 92.3526 12.91 92.5792 13.03C92.8126 13.1433 93.0492 13.2 93.2892 13.2C93.5159 13.2 93.7226 13.16 93.9092 13.08C94.1026 12.9933 94.2692 12.88 94.4092 12.74C94.5492 12.6 94.6559 12.4367 94.7292 12.25C94.8092 12.0633 94.8492 11.8633 94.8492 11.65C94.8492 11.4433 94.8126 11.2467 94.7392 11.06C94.6659 10.8733 94.5626 10.71 94.4292 10.57C94.3026 10.4233 94.1459 10.31 93.9592 10.23C93.7726 10.1433 93.5659 10.1 93.3392 10.1C93.0526 10.1 92.7926 10.1633 92.5592 10.29C92.3326 10.4167 92.1459 10.5767 91.9992 10.77V12.53ZM96.9963 16.4L98.2663 13.51L96.2563 9.3H97.2763L98.7463 12.4L100.096 9.3H101.096L98.0063 16.4H96.9963Z",fill:"white"})}),(0,c.BX)("g",{filter:"url(#filter1_d_1332_6679)",children:[(0,c.tZ)("path",{d:"M19.0879 21L22.3592 26.6662L25.6305 21H19.0879Z",fill:"white"}),(0,c.tZ)("path",{d:"M6 21L15.8152 38L17.9973 34.2212L10.3643 21H6Z",fill:"white"}),(0,c.tZ)("path",{d:"M12.5452 21L19.0878 32.3325L21.2687 28.555L16.9069 21H12.5452Z",fill:"white"}),(0,c.tZ)("path",{d:"M29.0516 24.7158L31.3071 30.4981L33.5763 24.7158H36.0095L32.182 34.2846H30.4049L26.5774 24.7158H29.0516Z",fill:"white"}),(0,c.tZ)("path",{d:"M37.103 34.2846V24.7158H39.4952V34.2846H37.103Z",fill:"white"}),(0,c.tZ)("path",{d:"M41.1155 24.7158H44.6696C46.1869 24.7158 47.1848 25.0439 47.964 25.618C49.1396 26.4929 49.8641 27.9145 49.8641 29.5002C49.8641 31.0859 49.1396 32.5076 47.964 33.3824C47.1848 33.9566 46.1869 34.2846 44.6696 34.2846H41.1155V24.7158ZM44.7379 32.0975C45.6402 32.0975 46.1869 31.8924 46.6107 31.5234C47.1575 31.0449 47.4719 30.3067 47.4719 29.5002C47.4719 28.6937 47.1575 27.9556 46.6107 27.4771C46.1869 27.108 45.6402 26.903 44.7379 26.903H43.5077V32.0975H44.7379Z",fill:"white"}),(0,c.tZ)("path",{d:"M51.2773 34.2846V24.7158H57.3604V26.8346H53.6695V28.3383H56.5402V30.3888H53.6695V32.1658H57.4971V34.2846H51.2773Z",fill:"white"}),(0,c.tZ)("path",{d:"M63.2793 34.4213C60.4906 34.4213 58.3582 32.2888 58.3582 29.5002C58.3582 26.7116 60.4906 24.5791 63.2793 24.5791C66.0679 24.5791 68.2004 26.7116 68.2004 29.5002C68.2004 32.2888 66.0679 34.4213 63.2793 34.4213ZM63.2793 32.2342C64.7146 32.2342 65.8082 31.0449 65.8082 29.5002C65.8082 27.9555 64.7146 26.7663 63.2793 26.7663C61.844 26.7663 60.7504 27.9555 60.7504 29.5002C60.7504 31.0449 61.8439 32.2342 63.2793 32.2342Z",fill:"white"}),(0,c.tZ)("path",{d:"M68.542 24.7158H71.0162L72.6702 29.9924L74.3926 24.7158H76.1424L77.9331 30.1427L79.6008 24.7158H81.993L78.9173 34.2846H77.1403L75.2538 28.8441L73.3947 34.2846H71.6177L68.542 24.7158Z",fill:"white"}),(0,c.tZ)("path",{d:"M83.1001 34.2846V24.7158H85.4923V34.2846H83.1001Z",fill:"white"}),(0,c.tZ)("path",{d:"M90.5399 24.5791C91.7429 24.5791 92.6724 24.9482 93.5746 25.5497L92.4401 27.2174C91.9616 26.903 91.3601 26.6842 90.745 26.6842C89.9932 26.6842 89.6104 26.944 89.6104 27.3267C89.6104 27.9965 91.1824 28.1606 92.3854 28.8851C93.2602 29.4182 93.848 30.2657 93.848 31.3456C93.848 33.1364 92.44 34.4213 90.4306 34.4213C88.9133 34.4213 87.683 33.7652 86.8081 32.9177L88.1204 31.3866C88.6262 31.8651 89.46 32.3162 90.2666 32.3162C90.9227 32.3162 91.3875 31.9881 91.3875 31.4823C91.3875 30.8535 90.4989 30.5938 89.4737 30.1974C88.3391 29.7599 87.1499 29.1038 87.1499 27.4908C87.1499 25.6317 88.7082 24.5791 90.5399 24.5791Z",fill:"white"}),(0,c.tZ)("path",{d:"M95.2749 34.2846V24.7158H101.358V26.8346H97.6671V28.3383H100.538V30.3888H97.6671V32.1658H101.495V34.2846H95.2749Z",fill:"white"})]}),(0,c.BX)("defs",{children:[(0,c.BX)("filter",{id:"filter0_d_1332_6679",x:"0.300049",y:"0.899902",width:"106.796",height:"21.5",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,c.tZ)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,c.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,c.tZ)("feOffset",{}),(0,c.tZ)("feGaussianBlur",{stdDeviation:"3"}),(0,c.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),(0,c.tZ)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1332_6679"}),(0,c.tZ)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1332_6679",result:"shape"})]}),(0,c.BX)("filter",{id:"filter1_d_1332_6679",x:"0",y:"15",width:"107.495",height:"29",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,c.tZ)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,c.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,c.tZ)("feOffset",{}),(0,c.tZ)("feGaussianBlur",{stdDeviation:"3"}),(0,c.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),(0,c.tZ)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1332_6679"}),(0,c.tZ)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1332_6679",result:"shape"})]})]})]})})},n=function(){return(0,c.tZ)("img",{src:t,alt:"Videowise"})};if(e!==a.Zy.NO_LOGO)return(0,c.BX)("div",{className:"vm-cmp__modal--marketing-logo vm-cmp__modal--marketing-logo-".concat(t?"client":"default"),children:[e===a.Zy.STORE_LOGO&&t&&(0,c.tZ)(n,{}),e===a.Zy.VIDEOWISE_LOGO&&(0,c.tZ)(r,{})]})};const Bt=(0,i.memo)(At);const Rt=function(t){var e=t.tag;if(e&&"undefined"!==e)return(0,c.tZ)("span",{className:"vw-cmp__shoppable--sale",children:e})};const Ht=function(){return(0,c.BX)("svg",{width:"382",height:"284",viewBox:"0 0 382 284",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{maxWidth:"100%"},children:[(0,c.tZ)("path",{d:"M0 0H39V20H0V0Z",fill:"url(#paint0_linear_748_5229)"}),(0,c.tZ)("path",{d:"M0 30H324V50H0V30Z",fill:"url(#paint1_linear_748_5229)"}),(0,c.tZ)("path",{d:"M0 83H92V99H0V83Z",fill:"url(#paint2_linear_748_5229)"}),(0,c.tZ)("path",{d:"M0 268H304V284H0V268Z",fill:"url(#paint3_linear_748_5229)"}),(0,c.tZ)("path",{d:"M0 110H108V130H0V110Z",fill:"url(#paint4_linear_748_5229)"}),(0,c.tZ)("path",{d:"M0 144H382V192H0V144Z",fill:"url(#paint5_linear_748_5229)"}),(0,c.tZ)("path",{d:"M0 208H382V256H0V208Z",fill:"url(#paint6_linear_748_5229)"}),(0,c.tZ)("path",{d:"M326 110H382V130H326V110Z",fill:"url(#paint7_linear_748_5229)"}),(0,c.tZ)("path",{d:"M0 52H204V72H0V52Z",fill:"url(#paint8_linear_748_5229)"}),(0,c.BX)("defs",{children:[(0,c.BX)("linearGradient",{id:"paint0_linear_748_5229",x1:"4.5",y1:"157",x2:"382",y2:"157",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint1_linear_748_5229",x1:"4.5",y1:"157",x2:"382",y2:"157",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint2_linear_748_5229",x1:"4.5",y1:"157",x2:"382",y2:"157",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint3_linear_748_5229",x1:"4.5",y1:"157",x2:"382",y2:"157",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint4_linear_748_5229",x1:"4.5",y1:"157",x2:"382",y2:"157",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint5_linear_748_5229",x1:"4.5",y1:"157",x2:"382",y2:"157",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint6_linear_748_5229",x1:"4.5",y1:"157",x2:"382",y2:"157",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint7_linear_748_5229",x1:"4.5",y1:"157",x2:"382",y2:"157",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]}),(0,c.BX)("linearGradient",{id:"paint8_linear_748_5229",x1:"4.5",y1:"157",x2:"382",y2:"157",gradientUnits:"userSpaceOnUse",children:[(0,c.tZ)("stop",{"stop-color":"#FCFCFC"}),(0,c.tZ)("stop",{offset:"0.151042","stop-color":"#EDEDED"}),(0,c.tZ)("stop",{offset:"1","stop-color":"#FCFCFC"})]})]})]})};var Dt="vw-cmp__rating-star",Mt=function(t){var e=t.color,r=void 0===e?"#fff":e;return(0,c.tZ)("div",{className:Dt,children:(0,c.tZ)("svg",{width:"16",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M7.85718 0L9.87916 5.21698L15.4656 5.52786L11.1288 9.06302L12.5595 14.4721L7.85718 11.44L3.1549 14.4721L4.58554 9.06302L0.248725 5.52786L5.8352 5.21698L7.85718 0Z",fill:r})})})},Ft=function(t){var e=t.color,r=void 0===e?"#fff":e;return(0,c.tZ)("div",{className:Dt,children:(0,c.tZ)("svg",{width:"16",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{opacity:"0.2",d:"M7.85718 0L9.87916 5.21698L15.4656 5.52786L11.1288 9.06302L12.5595 14.4721L7.85718 11.44L3.1549 14.4721L4.58554 9.06302L0.248725 5.52786L5.8352 5.21698L7.85718 0Z",fill:r})})})},Gt=function(t){var e=t.color,r=void 0===e?"#fff":e;return(0,c.tZ)("div",{className:Dt,children:(0,c.BX)("svg",{width:"16",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{opacity:"0.2",d:"M8.14282 0L10.1648 5.21698L15.7513 5.52786L11.4145 9.06302L12.8451 14.4721L8.14282 11.44L3.44054 14.4721L4.87119 9.06302L0.53437 5.52786L6.12084 5.21698L8.14282 0Z",fill:r}),(0,c.tZ)("path",{d:"M3.44072 14.4721L8.143 11.44V0L6.12102 5.21698L0.534546 5.52786L4.87136 9.06302L3.44072 14.4721Z",fill:r})]})})},Vt=function(t){var e=t.value;if(e)return(0,c.BX)("div",{className:"vw-cmp__rating-label notranslate",children:[e," reviews"]})},Xt=function(t){var e=t.current,r=t.rating,n=t.color,o=Math.floor(r),i=o-r;if(r)return e<=o?(0,c.tZ)(Mt,{color:n}):i&&e===o+1?(0,c.tZ)(Gt,{color:n}):(0,c.tZ)(Ft,{color:n})};const Ut=function(t){var e=t.color,r=void 0===e?"#fff":e,n=t.rating,o=t.showLabel,i=void 0!==o&&o,a=(((u()||{}).player||{}).productDetails||{}).displayReviews,l=n||{},s=l.averageRating,d=l.numberOfReviews;if(a&&n)return(0,c.BX)("div",{className:"vw-cmp__rating notranslate",children:[(0,c.tZ)("div",{className:"vw-cmp__rating-stars",children:[1,2,3,4,5].map((function(t,e){return(0,c.tZ)(Xt,{current:t,rating:parseFloat(s),color:r},"index-".concat(e))}))}),i&&d&&(0,c.tZ)(Vt,{value:Number(d)})]})};r(4841);function qt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Wt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var zt=function(t){var e=t.label,r=t.value,n=t.type;if(e&&""!==e){var o="percentage"===n?"%":"";return(0,c.BX)("div",{className:"vw-cmp__subscription-discount",children:[e," ",r,o]})}},Yt=function(t){var e=t.plans,r=t.callback,n=t.discount;if(e&&0!==e.length){var o=qt((0,i.useState)(),2),a=o[0],l=o[1],u=qt((0,i.useState)(),2),s=u[0],d=u[1],f=function(t){d(t)};return(0,i.useEffect)((function(){if(s){var t=s.target.value;l(t),r(s)}}),[s]),(0,i.useEffect)((function(){for(var t=0;t<e.length;t++)0===t&&l(e[t].name)}),[e]),(0,c.tZ)(c.HY,{children:e.map((function(t,e){var r,o,i,l,u,s;return(0,c.BX)("label",{className:"vw-cmp__subscription-options--item",children:[(0,c.BX)("div",{className:"vw-cmp__radio",children:[(0,c.tZ)("input",{type:"radio",name:"vw_subscription_type",onChange:f,value:null===t||void 0===t||null===(r=t.options[0])||void 0===r?void 0:r.value,checked:a===t.name||a===(null===t||void 0===t||null===(o=t.options[0])||void 0===o?void 0:o.value)}),(0,c.tZ)("span",{className:"vw-cmp__radio-item"}),t.name]}),(0,c.tZ)(zt,{label:null===n||void 0===n?void 0:n.text,type:null===t||void 0===t||null===(i=t.price_adjustments)||void 0===i||null===(l=i[0])||void 0===l?void 0:l.value_type,value:null===t||void 0===t||null===(u=t.price_adjustments)||void 0===u||null===(s=u[0])||void 0===s?void 0:s.value})]},e)}))})}};const $t=function(t){var e=t.isActive,r=t.callback,n=t.label,o=t.price,i=t.secondaryText,a=t.plans,l=t.onChangeCallback,u=t.discount,s=a&&a.length>0?"vw-cmp__subscription-item--subscribe":"vw-cmp__subscription-item--single";return(0,c.BX)("div",{className:"vw-cmp__subscription-item ".concat(s," ").concat(e?"vw--is-selected":""),onClick:r,children:[(0,c.BX)("div",{className:"vw-cmp__subscription-item--top",children:[(0,c.BX)("div",{className:"vw-cmp__subscription-radio",children:[(0,c.tZ)("span",{class:"vw-cmp__subscription-radio--el"}),n&&(0,c.tZ)("div",{class:"vw-cmp__subscription-radio--label",children:n})]}),o&&(0,c.tZ)("div",{class:"vw-cmp__subscription-price",children:Et(o,!1)})]}),a&&a.length>0&&(0,c.tZ)("div",{className:"vw-cmp__subscription-options",children:(0,c.tZ)(Yt,{plans:a,discount:u,callback:l})}),i&&""!==(null===i||void 0===i?void 0:i.text)&&(0,c.tZ)("div",{className:"vw-cmp__subscription-text",children:i.text})]})};function Kt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Qt=function(t,e){var r=null;return e.forEach((function(e){e.name!==t&&e.options[0].value!==t||(r=e)})),r},te=function(t,e){if(!e)return null;var r=t.price_adjustments[0]||{},n=r.value;return"percentage"===r.value_type?parseFloat(e)-parseFloat(e)*n/100:parseFloat(e)-n};const ee=function(t){var e=t.product;if(e){var r=L(),n=(e||{}).selling_plan_groups,o=((null===n||void 0===n?void 0:n[0])||{}).selling_plans,l=((u()||{}).player||{}).subscriptions||{},s=l.enable,d=l.generalSetUp,f=l.discount,p=l.secondaryText,h=l.style,v=null!==d&&void 0!==d&&d.include?a.I$.ONE_TIME:a.I$.SUBSCRIBE,y=Kt((0,i.useState)(v),2),m=y[0],w=y[1],g=Kt((0,i.useState)({price:0,subscription:void 0,id:void 0,selectedPlan:void 0}),2),b=g[0],_=g[1],x={};if(h&&h.optionColor&&(x["--vw-subscription-color--active"]=h.optionColor),p&&p.textColor&&(x["--vw-subscription-secondary--color"]=p.textColor),p&&"BOLD"===p.textWeight&&(x["--vw-subscription-secondary--weight"]="bold"),f&&f.textColor&&(x["--vw-subscription-discount--color"]=f.textColor),f&&f.backgroundColor&&(x["--vw-subscription-discount--bg"]=f.backgroundColor),s){var C=function(t){var e={subscriptionId:t};r({type:j.a.ADD_SUBSCRIPTION,payload:e})};return(0,i.useEffect)((function(){if(o&&o.length>0){var t,r,n,i=Qt(null===o||void 0===o||null===(t=o[0])||void 0===t?void 0:t.name,o),a=te(i,e.price);_({price:a,subscription:null===o||void 0===o||null===(r=o[0])||void 0===r?void 0:r.name,id:null===o||void 0===o||null===(n=o[0])||void 0===n?void 0:n.id,selectedPlan:i})}}),[o]),(0,i.useEffect)((function(){switch(m){case a.I$.ONE_TIME:C(void 0);break;case a.I$.SUBSCRIBE:C(b.id)}}),[m]),(0,c.BX)("div",{className:"vw-cmp__subscription",style:x,children:[""!==(null===d||void 0===d?void 0:d.sectionLabel)&&o&&o.length>0&&(0,c.tZ)("div",{className:"vw-cmp__subscription-title",children:d.sectionLabel}),(null===d||void 0===d?void 0:d.include)&&o&&o.length>0&&(0,c.tZ)($t,{isActive:m===a.I$.ONE_TIME,callback:function(){w(a.I$.ONE_TIME)},label:"One time purchase",price:e.price}),o&&o.length>0&&(0,c.tZ)($t,{isActive:m===a.I$.SUBSCRIBE,callback:function(){w(a.I$.SUBSCRIBE)},label:d.subscriptionTitle,secondaryText:p,plans:o,onChangeCallback:function(t){t.stopPropagation();var r=Qt(t.target.value,o),n=te(r,e.price);_({price:n,subscription:null===r||void 0===r?void 0:r.name,id:null===r||void 0===r?void 0:r.id,selectedPlan:r}),C(null===r||void 0===r?void 0:r.id)},discount:f,selectedPlan:b.selectedPlan,price:b.price})]})}}};function re(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?re(Object(r),!0).forEach((function(e){oe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ie(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return ae(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ae(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const ce=function(t){var e,r,n=t.isInMiniPlayer,o=t.videoType,l=O()||{},s=l.product,d=l.cart,p=l.isVisible,h=l.showHeader,v=l.isShoppableLoading,y=L(),m=(u()||{}).player||{},w=m.shippingInfo,g=m.productStock,b=m.buyButton,_=m.showLogo,x=m.productDetails,C=m.recommendedProducts,E=m.settings,S=m.showProductDetails,k=m.buttonStyle,Z=(b||{}).type,P=g||{},N=P.show,I=P.inStockColor,T=P.outStockColor,A=x||{},B=A.hideOldPrice,R=(A.displayReviews,(C||{}).excludeProducts),H="ADD_TO_CART"===Z,D=f(),G=(0,F.ac)("(max-width: 1023px)"),V=ie((0,i.useState)(!1),2),X=V[0],U=(V[1],(0,i.useRef)(null)),q=(0,M.Z)("vw-cmp__shoppable",oe({},"vw-more--on",X)),$=(0,M.Z)("vw-cmp__shoppable--header",oe({},"vw--is-visible",h)),K=(0,M.Z)("vw-cmp__shoppable--scroll",oe({},"vw--is-visible",h)),J=(0,M.Z)("vw-cmp__shoppable--stock",oe({},"vw--no-stock",!(null!==s&&void 0!==s&&s.available))),Q={};I&&(Q["--vw-stock-in"]=I),T&&(Q["--vw-stock-out"]=T);var tt=(0,M.Z)("vw-cmp__shoppable-button--no-cart",oe({},"vw-cmp__shoppable-button--in-cart",null!==d&&"undefined"!==typeof d.items&&!!d&&d.items.find((function(t){return t.id===(null===s||void 0===s?void 0:s.selectedId)})))),et=(0,M.Z)("vw-cmp__shoppable-button--checkout"),nt=function(){document.documentElement.style.setProperty("--videowise-viewport-height","".concat(window.innerHeight,"px"))};window.addEventListener("resize",nt),nt();var ot=(0,M.Z)("vw-cmp__shoppable--body");(0,i.useEffect)((function(){U.current&&U.current.scrollTo(0,0)}),[s]);var it,at=function(t){var e=s.variants.find((function(e){return e.id===t.id}));s.available=e.available,s.selectedId=t.id,s.price=t.price,s.deletedVariant=!1,s.oldPrice=isNaN(parseInt(e.compare_at_price))?void 0:e.compare_at_price;var r={product:ne({},s)};y({type:j.a.UPDATE_PRODUCT,payload:r})},ct=function(){!function(t,e){var r=new CustomEvent(t,{detail:e});document.dispatchEvent(r)}("vwClosePanel:click"),y({type:j.a.HIDE_MORE})},lt=function(){G||!0===n?ct():h&&y({type:j.a.SHOW_SHOPPABLE_LIST})};return(0,c.tZ)(W.X,{features:z.H,children:(0,c.BX)(Y.m.div,{className:q,initial:!!G&&{y:"150%"},variants:G?{visible:{y:0},hidden:{y:"150%"}}:{visible:{x:0,opacity:1},hidden:{x:"100%",opacity:0}},animate:p?"visible":"hidden",transition:{ease:[.29,.63,.4,.79],duration:.25},children:[s&&(0,c.BX)("div",{className:$,children:[(0,c.tZ)("div",{className:"vw-cmp__shoppable--close-button vw__icon-svg",onClick:lt,children:(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M2 12L12.0526 2M2 12L12.0526 22.0526M2 12H23",stroke:"black",strokeWidth:"2"})})}),_&&(0,c.tZ)(Bt,{}),H&&d&&(0,c.tZ)("div",{className:"vw-cmp__shoppable--cart-info",children:(0,c.BX)("span",{className:"vw-cmp__shoppable--cart-info-container",children:[(null===d||void 0===d?void 0:d.item_count)>0&&(0,c.tZ)("span",{className:"vw-cmp__shoppable--cart-info-badge",children:null===d||void 0===d?void 0:d.item_count}),(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0001 5C15.0001 3.34315 13.657 2 12.0001 2C10.3433 2 9.00012 3.34315 9.00012 5H15.0001ZM12.0001 0C9.23869 0 7.00012 2.23858 7.00012 5H3.00012L2.22171 19.7898C2.10126 22.0783 3.92445 24 6.21618 24H17.7841C20.0758 24 21.899 22.0783 21.7785 19.7898L21.0001 5H17.0001C17.0001 2.23858 14.7615 0 12.0001 0ZM15.0001 7H17.0001H19.1026L19.7813 19.8949C19.8415 21.0392 18.9299 22 17.7841 22H6.21618C5.07031 22 4.15872 21.0392 4.21894 19.8949L4.89762 7H7.00012H9.00012H15.0001ZM7.00012 9C7.00012 10.5447 7.63036 11.7644 8.60993 12.5807C9.56656 13.3779 10.8038 13.75 12.0001 13.75C13.1964 13.75 14.4337 13.3779 15.3903 12.5807C16.3699 11.7644 17.0001 10.5447 17.0001 9H15.0001C15.0001 9.95529 14.6304 10.6106 14.1099 11.0443C13.5666 11.4971 12.8038 11.75 12.0001 11.75C11.1964 11.75 10.4337 11.4971 9.8903 11.0443C9.36988 10.6106 9.00012 9.95529 9.00012 9H7.00012Z",fill:"black"})})]})})]}),(0,c.BX)("div",{ref:U,className:K,children:[s&&(0,c.tZ)(Ot,{product:s}),(0,c.BX)("div",{className:ot,children:[s&&function(){var t,e,r;return(0,c.tZ)("div",{className:"vw-cmp__shoppable--content",children:v?(0,c.tZ)(Ht,{}):(0,c.BX)(c.HY,{children:[s&&s.tag&&(0,c.tZ)("div",{className:"vw-cmp__shoppable--sale-root",children:(0,c.tZ)(Rt,{tag:s.tag})}),s&&s.title&&(0,c.tZ)("div",{className:"vw-cmp__shoppable--title",style:{color:x&&x.nameColor?x.nameColor:"#000"},children:s.title}),s&&s.productReviews&&(0,c.tZ)(Ut,{rating:s.productReviews,color:"#000",showLabel:!0}),(0,c.BX)("div",{className:"vw-cmp__shoppable--price-wrapper",children:[s&&!B&&s.oldPrice&&s.oldPrice!=s.price&&(0,c.tZ)("div",{className:"vw-cmp__shoppable--price-old vw-cmp__shoppable--price notranslate",children:Et(s.oldPrice,!1)}),s&&s.price&&(0,c.tZ)("div",{className:"vw-cmp__shoppable--price notranslate",style:{color:x&&x.priceColor?x.priceColor:"#000"},children:Et(s.price,!1)}),D.inventorySetting===a.a_.USE_INVENTORY&&s&&!(null!==s&&void 0!==s&&s.deletedVariant)&&N&&(0,c.tZ)("span",{className:"".concat(J," notranslate"),style:Q,children:null!==s&&void 0!==s&&s.available?null!==E&&void 0!==E&&E.translation?null===E||void 0===E||null===(t=E.translation)||void 0===t?void 0:t.inStock:"In stock":null!==E&&void 0!==E&&E.translation?null===E||void 0===E||null===(e=E.translation)||void 0===e?void 0:e.inStock:"Out of stock"})]}),s&&s.options&&s.variants&&!(!1===(null===k||void 0===k?void 0:k.show))&&(0,c.tZ)(rt,{variantId:null===s||void 0===s?void 0:s.variantId,options:s.options,variants:s.variants,onCallback:at}),(0,c.tZ)(ee,{product:s}),s&&Z===a.Nk.ADD_TO_CART&&d&&(null===d||void 0===d?void 0:d.item_count)>0&&Object.keys(s).length>0&&(0,c.tZ)(Lt,{classModifier:et,children:(0,c.tZ)(ft,{})}),s&&Object.keys(s).length>0&&(0,c.BX)(Lt,{classModifier:tt,children:[(0,c.tZ)(dt,{product:s}),(0,c.tZ)(st,{product:s,appState:D,videoType:o})]}),w&&w.show&&w.text&&(0,c.BX)("div",{className:"vw-cmp__shoppable--help-text",style:{color:w.textColor,fontWeight:"BOLD"===w.textWeight?"bold":"normal"},children:[(0,c.tZ)("span",{className:"vw__icon-svg",children:(0,c.tZ)("svg",{width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",children:(0,c.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.00845L4.57384 8.43459L0 3.86077L1.00844 2.85232L4.57384 6.4177L10.9916 0L12 1.00845Z",fill:"currentColor"})})}),(0,c.tZ)("span",{dangerouslySetInnerHTML:(r=w.text,{__html:r})})]})]})})}(),s&&(null===s||void 0===s?void 0:s.description)&&S&&(0,c.tZ)(mt,{visible:!1,title:null!==E&&void 0!==E&&E.translation&&null!==E&&void 0!==E&&null!==(e=E.translation)&&void 0!==e&&e.details?null===E||void 0===E||null===(r=E.translation)||void 0===r?void 0:r.details:"Details",children:(0,c.tZ)("div",{dangerouslySetInnerHTML:(it=s.description,it.includes("VisiSmart")&&(it=it.replace(/<!-- VisiSmart\b[^<]*(?:<[^<]*)*<!--End Of VisiSmart Code -->/g,"")),{__html:it})})}),s&&(null===C||void 0===C?void 0:C.show)&&(0,c.tZ)(Tt,{excludeIds:R,productId:s.id})]})]})]})})},le=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:98;return t.length>e-3?"".concat(t.substring(0,e).trimEnd()," ..."):t};function ue(t){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(t)}function se(){se=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==ue(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function de(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}const fe=function(t){var e=t.previewImageSrc,r=t.price,n=t.handle,o=t.compareAtPrice,i=t.name,a=t.tag,l=t.dispatch,u=t.hideOldPrice,s=t.variantId,d=t.productReviews,f=t.excludedVariants,p=t.productRefId,h=O(),v=function(){var t,e=(t=se().mark((function t(){var e,r;return se().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=null,"undefined"!==typeof window.Shopify?e=n:"undefined"!==typeof window.videowiseSFCC&&(e=p),r={handle:e,dispatch:l,tag:a,productReviews:d,variantId:s,shoppableCtx:h,excludedVariants:f},t.next=6,(0,$.Fn)(r);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("Error selecting product: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){de(i,n,o,a,c,"next",t)}function c(t){de(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();return(0,c.BX)("li",{className:"vw-cmp__shoppable-list-content-item",onClick:v,children:[(0,c.tZ)("div",{className:"vw-cmp__shoppable-list-content-item--pic-container",children:(0,c.tZ)("img",{src:e,width:100,height:100,alt:"picusm"})}),(0,c.BX)("div",{className:"vw-cmp__shoppable-list-content-item--details",children:[(0,c.tZ)("div",{className:"vw-cmp__shoppable-list-content-item--title",children:le(i,28)}),d&&(0,c.tZ)(Ut,{color:"#000",rating:d}),(0,c.tZ)("div",{className:"vw-cmp__shoppable-list-content-item--price notranslate",children:o?(0,c.BX)(c.HY,{children:[(0,c.tZ)("strong",{children:Et(r,!1)}),!u&&(0,c.tZ)("span",{children:Et(o,!1)})]}):(0,c.tZ)(c.HY,{children:(0,c.tZ)("strong",{children:Et(r,!1)})})})]}),(0,c.tZ)("svg",{className:"item-arrow-right",width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M1 1L11 11L1 21",stroke:"#B8B8B8",strokeWidth:"2"})}),a&&(0,c.tZ)(Rt,{tag:a})]})};const pe=function(t){var e=t.len,r=t.callback,n=t.cart,o=t.showCart;return(0,c.tZ)(c.HY,{children:(0,c.BX)("div",{className:"vw-cmp__shoppable-list-content--header",children:[(0,c.tZ)("div",{className:"vw-cmp__shoppable-list-content--close-button",onClick:r,children:(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M2 12L12.0526 2M2 12L12.0526 22.0526M2 12H23",stroke:"black",strokeWidth:"2"})})}),(0,c.tZ)("div",{className:"vw-cmp__shoppable-list-content--title",children:(0,c.BX)("div",{children:[e," items in video"]})}),o&&(null===n||void 0===n?void 0:n.item_count)>0&&(0,c.tZ)("div",{className:"vw-cmp__shoppable--cart-info",children:(0,c.BX)("span",{className:"vw-cmp__shoppable--cart-info-container",children:[(0,c.tZ)("span",{className:"vw-cmp__shoppable--cart-info-badge",children:null===n||void 0===n?void 0:n.item_count}),(0,c.tZ)("span",{className:"vw-cmp__shoppable--cart-info-icon",children:(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0001 5C15.0001 3.34315 13.657 2 12.0001 2C10.3433 2 9.00012 3.34315 9.00012 5H15.0001ZM12.0001 0C9.23869 0 7.00012 2.23858 7.00012 5H3.00012L2.22171 19.7898C2.10126 22.0783 3.92445 24 6.21618 24H17.7841C20.0758 24 21.899 22.0783 21.7785 19.7898L21.0001 5H17.0001C17.0001 2.23858 14.7615 0 12.0001 0ZM15.0001 7H17.0001H19.1026L19.7813 19.8949C19.8415 21.0392 18.9299 22 17.7841 22H6.21618C5.07031 22 4.15872 21.0392 4.21894 19.8949L4.89762 7H7.00012H9.00012H15.0001ZM7.00012 9C7.00012 10.5447 7.63036 11.7644 8.60993 12.5807C9.56656 13.3779 10.8038 13.75 12.0001 13.75C13.1964 13.75 14.4337 13.3779 15.3903 12.5807C16.3699 11.7644 17.0001 10.5447 17.0001 9H15.0001C15.0001 9.95529 14.6304 10.6106 14.1099 11.0443C13.5666 11.4971 12.8038 11.75 12.0001 11.75C11.1964 11.75 10.4337 11.4971 9.8903 11.0443C9.36988 10.6106 9.00012 9.95529 9.00012 9H7.00012Z",fill:"black"})})})]})})]})})};function he(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ve(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const ye=function(){var t,e=O()||{},r=e.toggleShoppableList,n=e.shoppableList,o=e.cart,i=L(),l=(u()||{}).player||{},s=l.buyButton,d=(l.productDetails||{}).hideOldPrice,f="ADD_TO_CART"===(s||{}).type,p=(0,F.ac)("(max-width: 1023px)"),h=null!==(t=null===n||void 0===n?void 0:n.filter((function(t){return t.type===a.LR.PRODUCT})))&&void 0!==t?t:[],v=(0,M.Z)("vw-cmp__shoppable-list-content",ve({},"vw-has-shadow",r));return(0,c.tZ)(W.X,{features:z.H,children:(0,c.BX)(Y.m.div,{className:v,initial:!1,variants:p?{visible:{y:0},hidden:{y:"150%"}}:{visible:{x:0},hidden:{x:"100%"}},animate:r?"visible":"hidden",transition:{ease:[.29,.63,.4,.79],duration:.35},children:[(0,c.tZ)(pe,{len:h.length,cart:o,showCart:f,callback:function(){i({type:j.a.HIDE_SHOPPABLE_LIST}),i({type:j.a.HIDE_MORE})}}),(0,c.tZ)("ul",{className:"vw-cmp__shoppable-list-content--list",children:h.map((function(t,e){return(0,c.tZ)(fe,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?he(Object(r),!0).forEach((function(e){ve(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({hideOldPrice:d,dispatch:i},t),e)}))}),o&&(null===o||void 0===o?void 0:o.item_count)>0&&!p&&(0,c.tZ)(Lt,{classModifier:"vw-cmp__shoppable-button--checkout",children:(0,c.tZ)(ft,{})})]})})};function me(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const we=function(t){var e,r=t.isInMiniPlayer,n=t.videoType,o=O().isVisible,a=(0,F.ac)("(max-width: 1023px)"),l=(0,M.Z)("vw-cmp__shoppable--root",(me(e={},"vw--is-mobile",a||!0===r),me(e,"vw--is-desktop",!a&&!1===r),me(e,"vw--visible",o),e));return(0,i.useEffect)((function(){var t=document.querySelector(".vw-cmp__shoppable--root");null!==t&&(o?t.classList.remove("vm-hide-mobile"):setTimeout((function(){t.classList.add("vm-hide-mobile")}),500))}),[o]),(0,c.tZ)(c.HY,{children:(0,c.BX)("div",{className:l,children:[(0,c.tZ)(ce,{isInMiniPlayer:r,videoType:n}),(0,c.tZ)(ye,{})]})})};var ge=r(4251),be=r(1107);function _e(t){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_e(t)}function xe(){xe=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==_e(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function Ce(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function Oe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Le(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Oe(Object(r),!0).forEach((function(e){Ee(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Se(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return ke(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ke(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ze={VIDEO:"video",PAGE_URL:"pageUrl",CHAT:"chat",PRODUCT:"product"};const Pe=function(t){t.context;var e=t.isMiniPlayer,r=t.element,n=r.id,o=r.definition,l=t.fullWidth,u=t.videoType,s=t.handleInteractionSelectedCallback,d=(L(),f()),p=d.trackingContext,h=(d.setAppState,d.widget),v=(d.videos,Se((0,i.useState)(),2)),y=v[0],m=v[1],w=o.form,g=w.textLine1,b=void 0===g?"":g,_=w.textLine2,x=void 0===_?"":_,C=w.answers,O=void 0===C?[]:C,E=(0,F.ac)("(max-width: 1023px)"),S=(0,i.useMemo)((function(){var t=[],r=o.styles.desktop;if(!0!==E&&!0!==e||(r=o.styles.mobile),"undefined"!==typeof r.other&&r.other.background.enabled){var n=document.documentElement.style;n.setProperty("--videowise-quiz-bg-color",(0,$.oo)(r.other.background.color)),n.setProperty("--videowise-quiz-bg-opacity",r.other.background.amount),n.setProperty("--videowise-quiz-bg-display","block")}return t["--videowise-quiz-heading-fs"]="".concat(r.textLine1.textSize,"px"),t["--videowise-quiz-heading-ta"]=r.textLine1.textAlign,t["--videowise-quiz-heading-color"]=r.textLine1.textColor,t["--videowise-quiz-heading-ts"]=r.textLine1.textStyle,t["--videowise-quiz-subheading-fs"]="".concat(r.textLine2.textSize,"px"),t["--videowise-quiz-subheading-ta"]=r.textLine2.textAlign,t["--videowise-quiz-subheading-color"]=r.textLine2.textColor,t["--videowise-quiz-subheading-ts"]=r.textLine2.textStyle,t["--videowise-quiz-answers-color"]=r.answers.textColor,t["--videowise-quiz-answers-ts"]=r.answers.textStyle,t["--videowise-quiz-answers-fs"]="".concat(r.answers.textSize,"px"),t["--videowise-quiz-answers-hc"]=r.answers.highlightColor,t}),[]);(0,i.useEffect)((function(){(0,G.j)(a.X8.Interaction,Le(Le({},p),{},{interactionId:n,siteId:h.sideId,eventType:"Impression",videoType:u}))}),[]);var k=function(){var t,e=(t=xe().mark((function t(e){var r,o,i;return xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.preventDefault(),e.stopPropagation(),r=e.currentTarget.dataset.label,o=O.find((function(t){return t.label===r})),i=o.nextInteraction,m(r),!0===[Ze.PRODUCT,Ze.PAGE_URL].includes(i.type)&&m(void 0),s(n,i,{answer:r});case 7:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ce(i,n,o,a,c,"next",t)}function c(t){Ce(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}();return(0,c.BX)("div",{className:"vw-cmp__quiz--card",style:S,children:[(0,c.tZ)("div",{className:function(){var t,e,r,n,i=E?null===o||void 0===o||null===(t=o.styles)||void 0===t||null===(e=t.mobile)||void 0===e?void 0:e.textLine1:null===o||void 0===o||null===(r=o.styles)||void 0===r||null===(n=r.desktop)||void 0===n?void 0:n.textLine1,a=i.cssClass,c="vw-cmp-interactions-title";return"advanced"===i.style?"".concat(c," ").concat(a):c}(),children:b}),(0,c.tZ)("div",{className:function(){var t,e,r,n,i=E?null===o||void 0===o||null===(t=o.styles)||void 0===t||null===(e=t.mobile)||void 0===e?void 0:e.textLine2:null===o||void 0===o||null===(r=o.styles)||void 0===r||null===(n=r.desktop)||void 0===n?void 0:n.textLine2,a=i.cssClass,c="vw-cmp-interactions-subtitle";return"advanced"===i.style?"".concat(c," ").concat(a):c}(),children:x}),(0,c.tZ)("div",{className:"vw-cmp__quiz--card-body ".concat(l?"vw-cmp__quiz--card-body--full-width":""),children:O.map((function(t,e){var r=t.label===y;O.length;return(0,c.tZ)("div",{className:"vw-cmp__quiz--card-item ".concat(r?"vw-cmp__quiz--card-item--selected":""),children:(0,c.BX)("a",{onClick:k,"data-label":t.label,children:[(0,c.tZ)("span",{className:"vw-cmp__quiz--card-value ".concat(r?"vw-cmp__quiz--card-value--selected":""),children:String.fromCharCode(65+e)}),(0,c.tZ)("span",{children:t.label}),!0===[Ze.PAGE_URL,Ze.PRODUCT].includes(t.nextInteraction.type)&&(0,c.tZ)("span",{className:"vw-cmp__quiz--icon",children:(0,c.tZ)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M2.56201 15.167C2.07601 15.167 1.66634 15.0003 1.33301 14.667C0.999674 14.3337 0.833008 13.924 0.833008 13.438V2.56201C0.833008 2.07601 0.999674 1.66634 1.33301 1.33301C1.66634 0.999674 2.07601 0.833008 2.56201 0.833008H8.00001V2.56201H2.56201V13.438H13.438V8.00001H15.167V13.438C15.167 13.924 15.0003 14.3337 14.667 14.667C14.3337 15.0003 13.924 15.167 13.438 15.167H2.56201ZM6.20801 11L5.00001 9.79201L12.229 2.56201H10V0.833008H15.167V6.00001H13.438V3.77101L6.20801 11Z",fill:"#9F9F9F"})})}),Ze.CHAT===t.nextInteraction.type&&(0,c.tZ)("span",{className:"vw-cmp__quiz--icon",children:(0,c.tZ)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M5.604 8.08154C5.868 8.08154 6.08667 7.99488 6.26 7.82154C6.434 7.64754 6.521 7.42854 6.521 7.16454C6.521 6.90121 6.434 6.68254 6.26 6.50854C6.08667 6.33521 5.868 6.24854 5.604 6.24854C5.354 6.24854 5.13867 6.33521 4.958 6.50854C4.778 6.68254 4.688 6.90121 4.688 7.16454C4.688 7.42854 4.778 7.64754 4.958 7.82154C5.13867 7.99488 5.354 8.08154 5.604 8.08154ZM9 8.08154C9.264 8.08154 9.48267 7.99488 9.656 7.82154C9.83 7.64754 9.917 7.42854 9.917 7.16454C9.917 6.90121 9.83 6.68254 9.656 6.50854C9.48267 6.33521 9.264 6.24854 9 6.24854C8.736 6.24854 8.51733 6.33521 8.344 6.50854C8.17 6.68254 8.083 6.90121 8.083 7.16454C8.083 7.42854 8.17 7.64754 8.344 7.82154C8.51733 7.99488 8.736 8.08154 9 8.08154ZM12.396 8.08154C12.646 8.08154 12.8613 7.99488 13.042 7.82154C13.222 7.64754 13.312 7.42854 13.312 7.16454C13.312 6.90121 13.222 6.68254 13.042 6.50854C12.8613 6.33521 12.646 6.24854 12.396 6.24854C12.132 6.24854 11.9133 6.33521 11.74 6.50854C11.566 6.68254 11.479 6.90121 11.479 7.16454C11.479 7.42854 11.566 7.64754 11.74 7.82154C11.9133 7.99488 12.132 8.08154 12.396 8.08154ZM0.5 17.3315V2.31054C0.5 1.75521 0.691 1.28654 1.073 0.904543C1.455 0.522543 1.92367 0.331543 2.479 0.331543H15.521C16.0763 0.331543 16.545 0.522543 16.927 0.904543C17.309 1.28654 17.5 1.75521 17.5 2.31054V12.0195C17.5 12.5749 17.309 13.0435 16.927 13.4255C16.545 13.8075 16.0763 13.9985 15.521 13.9985H3.833L0.5 17.3315ZM2.479 12.7065L3.146 12.0195H15.521V2.31054H2.479V12.7065Z",fill:"white"})})})]})},t.id)}))})]})};var je=r(2064);const Ne=function(t){var e=t.from,r=t.to,n=(0,i.useRef)();return(0,i.useEffect)((function(){var t=n.current,o=(0,je.j)(e,r,{duration:1,onUpdate:function(e){t.textContent=e.toFixed(2)}});return function(){return o.stop()}}),[e,r]),(0,c.tZ)("p",{ref:n})};function Ie(t){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(t)}function Te(){Te=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==Ie(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function Ae(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Be(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(r),!0).forEach((function(e){Re(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Re(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function De(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){He(i,n,o,a,c,"next",t)}function c(t){He(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Me(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Fe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fe(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Ge=function(){u().player;var t=f().widget,e=(t||{}).formData,r=Me((0,i.useState)(),2),n=r[0],o=r[1],a=Me((0,i.useState)(0),2),l=(a[0],a[1]),s=Me((0,i.useState)(!1),2),d=s[0],p=s[1],h=Me((0,i.useState)(),2),v=(h[0],h[1]),y=Me((0,i.useState)(!1),2),m=y[0],w=y[1],g=Me((0,i.useState)([{optionName:"\ud83d\udc4e",optionValue:"NO",action:""},{optionName:"\ud83d\udc4d",optionValue:"YES",action:""}]),2),b=g[0],_=g[1],x=function(){var t=De(Te().mark((function t(e){var r,n,o,i;return Te().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={"Content-type":"application/json"},t.prev=1,t.next=4,q().post("".concat("https://api.videowise.com","/formData/637cbf848aabea61003939be/vote"),e,{headers:r});case 4:n=t.sent,O(),p(!0),o=Object.values(n.data.results).reduce((function(t,e){return t+e.count}),0),i=b.map((function(t){return Be(Be({},t),{},{procente:Number.parseFloat(n.data.results[(0,$.FB)(t.optionValue)].count/o*100).toFixed(1)||0})})),_(i),l(o),t.next=17;break;case 13:t.prev=13,t.t0=t.catch(1),console.log("Collect data error: ",t.t0),v("Data already exists");case 17:case"end":return t.stop()}}),t,null,[[1,13]])})));return function(e){return t.apply(this,arguments)}}(),C=function(){var t=De(Te().mark((function t(e){var r,n;return Te().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),e.stopPropagation(),r=e.target.dataset.id,o(r),n={answer:r},t.next=7,x(n);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),O=function(){var e=JSON.parse(localStorage.getItem("reeview_completedForms"))||[];L(t)||e.push(t.id),localStorage.setItem("reeview_completedForms",JSON.stringify(e))},L=function(t){return(JSON.parse(localStorage.getItem("reeview_completedForms"))||[]).includes(t.id)};return(0,i.useEffect)((function(){setTimeout((function(){w(!0)}),1e3)}),[]),(0,i.useEffect)((function(){var t=document.documentElement.style;t.setProperty("--videowise-poll-heading-lh",e.heading.heading.lineHeight+"px"),t.setProperty("--videowise-poll-heading-ta",e.heading.heading.textAlignt),t.setProperty("--videowise-poll-heading-color",e.heading.heading.textColor),t.setProperty("--videowise-poll-heading-fs",e.heading.heading.textSize+"px"),t.setProperty("--videowise-poll-heading-fw",e.heading.heading.textWeight),t.setProperty("--videowise-poll-subheading-lh",e.heading.subHeading.lineHeight+"px"),t.setProperty("--videowise-poll-subheading-ta",e.heading.subHeading.textAlignt),t.setProperty("--videowise-poll-subheading-color",e.heading.subHeading.textColor),t.setProperty("--videowise-poll-subheading-fs",e.heading.subHeading.textSize+"px"),t.setProperty("--videowise-poll-subheading-fw",e.heading.subHeading.textWeight)}),[]),(0,c.BX)("div",{className:"vw-cmp-interactions vw-cmp__poll--card ".concat(function(){var t="card-bottom";return m&&(t="card-in-view"),t}()),children:[(0,c.tZ)("div",{className:"vw-cmp-interactions-title",children:e.heading.heading.text}),(0,c.tZ)("div",{className:"vw-cmp-interactions-subtitle",children:e.heading.subHeading.text}),(0,c.BX)("div",{className:"vw-cmp__poll--card-body",children:[d&&b.map((function(t){return(0,c.BX)("div",{className:"vw-cmp__poll--card-item vw-cmp__poll--card-voted ".concat(t.optionValue===n?"vw-cmp__poll-voted":""),children:[(0,c.tZ)("span",{className:"vw-cmp__poll-label",children:t.optionName}),(0,c.BX)("span",{className:"vw-cmp__poll-procente",children:[" ",(0,c.tZ)(Ne,{from:0,to:Number(t.procente)})," % "]})]},t.optionValue)})),!d&&b.map((function(t){return(0,c.tZ)("div",{className:"vw-cmp__poll--card-item",children:(0,c.tZ)("button",{onClick:C,"data-id":t.optionValue,children:t.optionName})},t.optionValue)}))]})]})};function Ve(t){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(t)}function Xe(){Xe=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==Ve(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function Ue(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function qe(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ue(i,n,o,a,c,"next",t)}function c(t){Ue(i,n,o,a,c,"throw",t)}a(void 0)}))}}function We(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return ze(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ze(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Ye=function(){u().player;var t=f().widget,e=((t||{}).pollData,We((0,i.useState)(),2)),r=e[0],n=e[1],o=We((0,i.useState)(0),2),a=(o[0],o[1]),l=We((0,i.useState)(!1),2),s=l[0],d=l[1],p=We((0,i.useState)(),2),h=(p[0],p[1]),v=(0,i.useRef)(),y=We((0,i.useState)(0),2),m=y[0],w=y[1],g=We((0,i.useState)(!1),2),b=g[0],_=g[1],x=We((0,i.useState)([{optionValue:"0",optionName:"\ud83d\udd25",action:""}]),2),C=x[0],O=(x[1],function(){var t=qe(Xe().mark((function t(e){var r,n,o;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={"Content-type":"application/json"},t.prev=1,t.next=4,q().post("".concat("https://api.videowise.com","/formData/638f506d43dbb34140252f3a/vote"),e,{headers:r});case 4:n=t.sent,E(),d(!0),setTimeout((function(){_(!1)}),3e3),o=Object.values(n.data.results),a(o),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(1),console.log("Collect data error: ",t.t0),h("Data already exists");case 16:case"end":return t.stop()}}),t,null,[[1,12]])})));return function(e){return t.apply(this,arguments)}}()),L=function(){var t=qe(Xe().mark((function t(e){var r,o;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),e.stopPropagation(),n(r=m),o={answer:r},t.next=7,O(o);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),E=function(){var e=JSON.parse(localStorage.getItem("reeview_completedForms"))||[];S(t)||e.push(t.id),localStorage.setItem("reeview_completedForms",JSON.stringify(e))},S=function(t){return(JSON.parse(localStorage.getItem("reeview_completedForms"))||[]).includes(t.id)},k=function(t){t.preventDefault(),t.stopPropagation();var e=v.current.value+"%";w(v.current.value),document.documentElement.style.setProperty("--bar-width",e)};return(0,i.useEffect)((function(){setTimeout((function(){_(!0)}),1e3)}),[]),(0,c.BX)("div",{className:"vw-cmp-interactions vw-cmp__slider--card ".concat(function(){var t="card-bottom";return b&&(t="card-in-view"),t}()),children:[(0,c.tZ)("div",{className:"vw-cmp-interactions-title",children:"vote to get 16% off"}),(0,c.tZ)("div",{className:"vw-cmp-interactions-subtitle",children:"How much do you like Dr. Squatch?"}),(0,c.BX)("div",{className:"vw-cmp__slider--card-body",children:[s&&C.map((function(t){return(0,c.tZ)("div",{className:"vw-cmp__slider--card-item ".concat(t.optionValue===r?"vw-cmp__slider-voted":""," ").concat(t.rightanswer?"vw-cmp__quiz-voted-true":"vw-cmp__quiz-voted-false"),children:(0,c.tZ)("div",{className:"vw-cmp__slider--card-bar",children:(0,c.tZ)("div",{className:"vw-cmp__slider--card-fill",children:(0,c.tZ)("span",{className:"vw-cmp__slider--card-value",children:t.optionName})})})},t.optionValue)})),!s&&C.map((function(t){return(0,c.BX)("div",{className:"vw-cmp__slider--card-item",children:[(0,c.tZ)("input",{ref:v,type:"range",className:"range-slider",min:"0",max:"100",value:m,onChange:k,onMouseUp:L}),(0,c.tZ)("div",{className:"vw-cmp__slider--card-bar",children:(0,c.tZ)("div",{className:"vw-cmp__slider--card-fill",children:(0,c.tZ)("span",{className:"vw-cmp__slider--card-value",children:t.optionName})})})]},t.optionValue)}))]})]})};function $e(t){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(t)}function Ke(){Ke=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==$e(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function Je(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(r),!0).forEach((function(e){tr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function er(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function rr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){er(i,n,o,a,c,"next",t)}function c(t){er(i,n,o,a,c,"throw",t)}a(void 0)}))}}function nr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return or(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return or(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function or(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const ir=function(){u().player;var t=f().widget,e=((t||{}).pollData,nr((0,i.useState)(),2)),r=e[0],n=e[1],o=nr((0,i.useState)(!1),2),a=o[0],l=o[1],s=nr((0,i.useState)(!1),2),d=s[0],p=s[1],h=nr((0,i.useState)(),2),v=h[0],y=h[1],m=nr((0,i.useState)(!1),2),w=m[0],g=m[1],b=nr((0,i.useState)(!1),2),_=b[0],x=b[1],C=[{optionName:"\ud83d\ude21",optionValue:"NO",action:""},{optionName:"\ud83d\ude15",optionValue:"aa",action:""},{optionName:"\ud83e\udd29",optionValue:"YES",action:""}],O=nr((0,i.useState)(C),2),L=O[0],E=O[1],S=function(){var t=rr(Ke().mark((function t(e){var r,n,o,i;return Ke().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={"Content-type":"application/json"},t.prev=1,t.next=4,q().post("".concat("https://api.videowise.com","/formData/6390a153bc77e344844a4e40/vote"),e,{headers:r});case 4:n=t.sent,Z(),x(!0),p(!0),setTimeout((function(){g(!1)}),3e3),console.log(C),console.log(Object.values(n.data.results)),o=Object.values(n.data.results).reduce((function(t,e){return t+e.count}),0),i=L.map((function(t){return Qe(Qe({},t),{},{procente:Number.parseFloat(n.data.results[(0,$.FB)(t.optionValue)].count/o*100).toFixed(1)||0})})),E(i),setTotalVotes(o),console.log(o),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(1),console.log("Collect data error: ",t.t0),y("Data already exists");case 22:case"end":return t.stop()}}),t,null,[[1,18]])})));return function(e){return t.apply(this,arguments)}}(),k=function(){var t=rr(Ke().mark((function t(e){var r,o;return Ke().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),e.stopPropagation(),r=e.target.dataset.id,n(r),o={answer:r},t.next=7,S(o);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Z=function(){var e=JSON.parse(localStorage.getItem("reeview_completedForms"))||[];P(t)||e.push(t.id),localStorage.setItem("reeview_completedForms",JSON.stringify(e))},P=function(t){return(JSON.parse(localStorage.getItem("reeview_completedForms"))||[]).includes(t.id)};(0,i.useEffect)((function(){setTimeout((function(){g(!0)}),1e3)}),[]);var j=function(t){console.log("aici"),l(!0);var e=t.target.dataset.id;console.log("asdasdasd",e),n(e)};return(0,c.BX)("div",{className:"vw-cmp-interactions vw-cmp__feedback--card ".concat(function(){var t="card-bottom";return w&&(t="card-in-view"),t}()),children:[(0,c.tZ)("div",{className:"vw-cmp-interactions-title",children:"vote to get 16% off"}),(0,c.tZ)("div",{className:"vw-cmp-interactions-subtitle",children:"How much do you like Dr. Squatch?"}),(0,c.BX)("div",{className:"vw-cmp__feedback--card-body ".concat(a?"form-show":"form-hide"),children:[(0,c.BX)("div",{className:"vw-cmp__feedback--card-top",children:[d&&L.map((function(t){return(0,c.BX)("div",{className:"vw-cmp__feedback--card-item vw-cmp__feedback--card-voted ".concat(t.optionValue===r?"vw-cmp__poll-voted":""),children:[(0,c.tZ)("span",{className:"vw-cmp__feedback-label",children:t.optionName}),(0,c.BX)("span",{className:"vw-cmp__feedback-procente",children:[t.procente,"%"]})]},t.optionValue)})),!d&&L.map((function(t){return(0,c.tZ)("div",{className:"vw-cmp__feedback--card-item ".concat(t.optionValue===r?"vw-cmp__feedback-voted":""),children:(0,c.tZ)("button",{onClick:j,"data-id":t.optionValue,disabled:"".concat(a?"disabled":""),children:t.optionName})},t.optionValue)}))]}),(0,c.BX)("div",{className:"vw-cmp__feedback--card-bottom",children:[a&&!_&&(0,c.tZ)("div",{className:"vw-cmp__feedback-form",children:(0,c.BX)("form",{className:"vw-cmp__feedback-form-body",onSubmit:k,children:[(0,c.tZ)("textarea",{value:"",onChange:function(t){index}}),(0,c.tZ)("button",{className:"vw-cmp__feedback-form-button",children:"Send"}),(0,c.tZ)("div",{className:"vw-cmp__feedback-form-error",children:v})]})}),_&&(0,c.BX)(c.HY,{children:[(0,c.tZ)("div",{className:"vw-cmp__player-modal-data-collect-title",children:"Congratulation"}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-data-collect-text",children:"Check your email and get the discount!"})]})]})]})]})};function ar(t){return ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ar(t)}function cr(){cr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==ar(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function lr(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function ur(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ur(Object(r),!0).forEach((function(e){dr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ur(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const fr=function(t){var e=t.element,r=(t.dark,t.fullWidth,t.isMiniPlayer),n=(t.context,t.videoType),o=t.handleOnRedirectCallback,l=f(),u=l.trackingContext,s=l.widget,d=(0,F.ac)("(max-width: 1023px)"),p=(0,M.Z)("".concat(a.jW,"--cta-card")),h=e.definition.form;(0,i.useEffect)((function(){(0,G.j)(a.X8.Interaction,sr(sr({},u),{},{interactionId:e.id,siteId:s.sideId,eventType:"Impression",videoType:n}))}),[]);var v=(0,i.useMemo)((function(){if("undefined"===typeof e)return[];var t=[],n=e.definition.styles.desktop;if(!0!==d&&!0!==r||(n=e.definition.styles.mobile),"undefined"!==typeof n.other&&n.other.background.enabled){var o=document.documentElement.style;o.setProperty("--videowise-quiz-bg-color",(0,$.oo)(n.other.background.color)),o.setProperty("--videowise-quiz-bg-opacity",n.other.background.amount),o.setProperty("--videowise-quiz-bg-display","block")}return t["--videowise-cta-heading-fs"]="".concat(n.textLine1.textSize,"px"),t["--videowise-cta-heading-ta"]=n.textLine1.textAlign,t["--videowise-cta-heading-color"]=n.textLine1.textColor,t["--videowise-cta-heading-ts"]=n.textLine1.textStyle,t["--videowise-cta-subheading-fs"]="".concat(n.textLine2.textSize,"px"),t["--videowise-cta-subheading-ta"]=n.textLine2.textAlign,t["--videowise-cta-subheading-color"]=n.textLine2.textColor,t["--videowise-cta-subheading-ts"]=n.textLine2.textStyle,"undefined"!==typeof n.submitButton&&(t["--videowise-cta-button-fs"]="".concat(n.submitButton.textSize,"px"),t["--videowise-cta-button-text-color"]=n.submitButton.textColor,t["--videowise-cta-button-ts"]=n.submitButton.textStyle,t["--videowise-cta-button-color"]=n.submitButton.backgroundColor,t["--videowise-cta-button-border-radius"]="".concat(n.submitButton.radius,"px"),n.submitButton.border.enabled&&(t["--videowise-cta-button-border-amount"]="".concat(n.submitButton.border.amount,"px"),t["--videowise-cta-button-border-color"]=n.submitButton.border.color)),t}),[]),y=function(){var t,r=(t=cr().mark((function t(r,n,i){return cr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.preventDefault(),r.stopPropagation(),t.next=4,q().post("".concat("https://api.videowise.com","/formData/").concat(e.id,"/vote/"),{answer:n});case 4:o(i);case 5:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){lr(i,n,o,a,c,"next",t)}function c(t){lr(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t,e,n){return r.apply(this,arguments)}}();return(0,c.BX)("div",{className:p,style:v,children:[(0,c.BX)("div",{className:"".concat(a.jW,"--cta-title-container"),children:[(0,c.tZ)("div",{className:"".concat(a.jW,"--cta-card-title"),children:h.heading.textLine1}),(0,c.tZ)("div",{className:"".concat(a.jW,"--cta-card-description"),children:h.heading.textLine2})]}),(0,c.tZ)("div",{className:"".concat(a.jW,"--cta-answer-container"),children:(0,c.tZ)("button",{className:"".concat(a.jW,"--cta-card-button"),type:"button",onClick:function(t){return y(t,h.button.text,h.button.link)},children:h.button.text})})]})};var pr=r(1955);function hr(t){return hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(t)}function vr(){vr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==hr(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function yr(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function mr(t){return function(t){if(Array.isArray(t))return Cr(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||xr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wr(Object(r),!0).forEach((function(e){br(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function br(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||xr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xr(t,e){if(t){if("string"===typeof t)return Cr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cr(t,e):void 0}}function Cr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Or=function(t){var e=t.element,r=(t.dark,t.fullWidth,t.isMiniPlayer),n=(t.context,t.videoType),o=(t.handleOnRedirectCallback,t.handleOnFocusCallback),l=f(),u=l.trackingContext,s=l.widget,d=(0,M.Z)("".concat(a.jW,"--form-card")),p=(0,F.ac)("(max-width: 1023px)"),h=_r((0,i.useState)([]),2),v=h[0],y=h[1],m=_r((0,i.useState)(!1),2),w=m[0],g=m[1],b=e.definition.form.heading,_=e.definition.form.privacy,x=e.definition.form.submit,C=e.definition.form.thankYou;(0,i.useEffect)((function(){if((0,G.j)(a.X8.Interaction,gr(gr({},u),{},{interactionId:e.id,siteId:s.sideId,eventType:"Impression",videoType:n})),!0===p){var t=document.createElement("meta");t.id="meta-for-form-card",t.name="viewport",t.content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0",document.head.appendChild(t)}return function(){var t=document.getElementById("meta-for-form-card");null!==t&&t.remove()}}),[]),(0,i.useEffect)((function(){var t=[],r={name:"input",lname:"input",fullname:"input",dob:"input",email:"input",phone:"input",input:"input",select:"select"},n={name:"text",lname:"text",fullname:"text",dob:"date",email:"email",phone:"phone",input:"text",select:""};e.definition.form.fields.fields.forEach((function(e){var o;t.push({tag:r[e.type],type:n[e.type],name:e.name,value:"",checked:!1,placeholder:e.label,options:null!==(o=e.options)&&void 0!==o?o:[],required:e.required,hasError:""})})),t.push({tag:"input",type:"checkbox",name:"privacy",value:"",checked:!1,placeholder:"",options:[],required:!0,hasError:""}),y(t)}),[e.definition.form.fields.fields]);var O=(0,i.useMemo)((function(){if("undefined"===typeof e)return[];var t=[],n=e.definition.styles.desktop;if(!0!==p&&!0!==r||(n=e.definition.styles.mobile),"undefined"!==typeof n.other&&n.other.background.enabled){var o=document.documentElement.style;o.setProperty("--videowise-quiz-bg-color",(0,$.oo)(n.other.background.color)),o.setProperty("--videowise-quiz-bg-opacity",n.other.background.amount),o.setProperty("--videowise-quiz-bg-display","block")}return t["--videowise-form-heading-ta"]=n.textLine1.textAlign,t["--videowise-form-heading-fs"]="".concat(n.textLine1.textSize,"px"),t["--videowise-form-heading-color"]=n.textLine1.textColor,t["--videowise-form-heading-ts"]=n.textLine1.textStyle,t["--videowise-form-subheading-ta"]=n.textLine2.textAlign,t["--videowise-form-subheading-fs"]="".concat(n.textLine2.textSize,"px"),t["--videowise-form-subheading-color"]=n.textLine2.textColor,t["--videowise-form-subheading-ts"]=n.textLine2.textStyle,t["--videowise-form-thankyou-ta"]=n.thanks.textAlign,t["--videowise-form-thankyou-ts"]=n.thanks.textStyle,t["--videowise-form-thankyou-color"]=n.thanks.textColor,t["--videowise-form-thankyou-fs"]="".concat(n.thanks.textSize,"px"),t["--videowise-form-highlight"]=n.form.highlightColor,"undefined"!==typeof n.submitButton&&(t["--videowise-form-button-fs"]="".concat(n.submitButton.textSize,"px"),t["--videowise-form-button-text-color"]=n.submitButton.textColor,t["--videowise-form-button-ts"]=n.submitButton.textStyle,t["--videowise-form-button-color"]=n.submitButton.backgroundColor,t["--videowise-form-button-border-radius"]="".concat(n.submitButton.radius,"px"),n.submitButton.border.enabled&&(t["--videowise-form-button-border-amount"]="".concat(n.submitButton.border.amount,"px"),t["--videowise-form-button-border-color"]=n.submitButton.border.color)),t}),[]),L=function(t){t.stopPropagation()},E=function(t){var e=t.target;y((function(t){for(var r=0;r<t.length;r++)t[r].name===e.name&&("INPUT"===e.tagName?"checkbox"===e.type?t[r].checked=e.checked:t[r].value=e.value:"SELECT"===e.tagName&&(t[r].value=e.value,e.style.backgroundColor="#000000",e.style.color="#FFFFFF"));return mr(t)}))},S=function(t){var e=t.target;"INPUT"===e.tagName&&"text"===e.type&&"dob"===e.name&&null!==e.parentElement.firstChild&&(e.style.display="none",null!==e.parentElement.firstChild&&(e.parentElement.firstChild.style.visibility="visible",e.parentElement.firstChild.focus())),y((function(t){for(var r=0;r<t.length;r++)t[r].name===e.name&&(t[r].hasError="");return mr(t)})),o(t)},k=function(t){var e=t.target;"INPUT"===e.tagName&&"date"===e.type&&"dob"===e.name&&""===e.value&&null!==e.nextElementSibling&&(e.style.visibility="hidden",e.nextElementSibling.style.display="block")},Z=function(){var t=0;return y((function(e){for(var r=0;r<e.length;r++)"input"===e[r].tag?"checkbox"===e[r].type?e[r].hasError=!0===e[r].required&&!1===e[r].checked?"Field is required.":"":"email"===e[r].type?e[r].hasError=null===P(e[r].value)?"E-mail is incorrect.":"":"phone"===e[r].type?e[r].hasError=!1===j(e[r].value)?"Phone number is incorrect.":"":e[r].hasError=!0===e[r].required&&""===e[r].value?"Field is required.":"":"select"===e[r].tag&&(e[r].hasError=!0===e[r].required&&""===e[r].value?"Field is required.":""),""!==e[r].hasError&&(t+=1);return mr(e)})),t>0},P=function(t){return String(t).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)},j=function(t){return/^\+(?:[0-9] ?){6,14}[0-9]$/.test(t)},N=function(){var t,r=(t=vr().mark((function t(r){var n,o,i,a;return vr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.preventDefault(),r.stopPropagation(),!0!==Z()){t.next=4;break}return t.abrupt("return");case 4:for(o={},i=0;i<v.length;i++)"privacy"!==v[i].name&&Object.assign(o,br({},v[i].name,v[i].value.slice(0,50)));return Object.assign(o,{privacy_sid:pr.Z.get("reeview_uid"),privacy_field:"privacy",privacy_value:"true",privacy_policy:null!==(n=_.privacyLink)&&void 0!==n?n:"",privacy_timestamp:(new Date).toString().split("(")[0].trim()}),t.next=9,q().post("".concat("https://api.videowise.com","/formData/").concat(e.id,"/"),{hash:(0,$.FB)(JSON.stringify(o)+"".concat("0.Ze75MOuVcdt7mE")),data:o},{"Content-type":"application/json"});case 9:return t.next=11,q().post("".concat("https://api.videowise.com","/formData/").concat(e.id,"/vote/"),{answer:x.name});case 11:(a=JSON.parse(localStorage.getItem("reeview_completedForms"))||[]).push(e.id),localStorage.setItem("reeview_completedForms",JSON.stringify(a)),"message"===C.type?g(!0):"redirect"===C.type&&window.open(C.link,"_self");case 15:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){yr(i,n,o,a,c,"next",t)}function c(t){yr(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}();return(0,c.tZ)("div",{className:d,style:O,children:!1===w?(0,c.BX)(c.HY,{children:[(0,c.BX)("div",{className:"".concat(a.jW,"--form-title-container"),children:[(0,c.tZ)("div",{className:"".concat(a.jW,"--form-card-title"),children:b.textLine1}),(0,c.tZ)("div",{className:"".concat(a.jW,"--form-card-description"),children:b.textLine2})]}),(0,c.BX)("div",{className:"".concat(a.jW,"--form-body-container"),children:[v.map((function(t){var e="input"===t.tag&&"date"===t.type&&"dob"===t.name;return"input"===t.tag?"checkbox"===t.type?(0,c.tZ)("div",{className:"".concat(a.jW,"--form-privacy-container ").concat(""!==t.hasError?"".concat(a.jW,"--has-error-checkbox"):""),onClick:function(t){return L(t)},children:(0,c.BX)("label",{className:"vw-checkbox",children:[(0,c.tZ)("input",{id:t.name,type:t.type,name:t.name,checked:t.checked,onClick:function(t){return L(t)},onChange:function(t){return E(t)},onFocus:function(t){return S(t)},onBlur:function(t){return k(t)}}),(0,c.BX)("span",{className:!1===p&&!1===r?"desktop":"",htmlFor:t.name,children:[_.disclaimerText,"\xa0",_.privacyLinkText&&_.privacyLink&&(0,c.tZ)("a",{href:_.privacyLink,title:_.privacyLinkText,target:"_blank",children:_.privacyLinkText})]})]})}):(0,c.BX)("div",{className:"input-container",onClick:function(t){return L(t)},children:[(0,c.tZ)("input",{className:""!==t.hasError?"".concat(a.jW,"--has-error"):"",type:t.type,name:t.name,value:t.value,placeholder:"".concat(t.placeholder," ").concat(!0===t.required?"*":""),pattern:!0===e?"d{4}-d{2}-d{2}":"",style:{visibility:!0===e?"hidden":"visible"},onClick:function(t){return L(t)},onChange:function(t){return E(t)},onFocus:function(t){return S(t)},onBlur:function(t){return k(t)}}),""!==t.hasError&&(0,c.tZ)("div",{className:"error-text",children:t.hasError}),!0===e&&(0,c.tZ)("input",{className:""!==t.hasError?"".concat(a.jW,"--has-error"):"",type:"text",name:t.name,placeholder:"".concat(t.placeholder," ").concat(!0===t.required?"*":""),style:{width:"100%",display:"block",position:"absolute",top:0,right:0},onFocus:function(t){return S(t)}})]}):"select"===t.tag?(0,c.BX)("div",{className:"select-container",children:[(0,c.tZ)("svg",{width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m2 2.586 4 4 4-4L11.414 4 6 9.414.586 4 2 2.586Z",fill:"#fff"})}),(0,c.BX)("select",{className:""!==t.hasError?"".concat(a.jW,"--has-error"):"",name:t.name,onClick:function(t){return L(t)},onChange:function(t){return E(t)},onFocus:function(t){return S(t)},onBlur:function(t){return k(t)},children:[(0,c.tZ)("option",{hidden:!0,disabled:"disabled",selected:!0,value:"",children:"".concat(t.placeholder," ").concat(!0===t.required?"*":"")}),t.options.map((function(t){return(0,c.tZ)("option",{value:t.value,children:t.label})}))]})]}):(0,c.tZ)(c.HY,{})})),(0,c.tZ)("button",{type:"button",onClick:function(t){return N(t)},children:x.name})]})]}):(0,c.tZ)("div",{className:!1===p&&!1===r?"vw-thankyou-message desktop":"vw-thankyou-message",children:C.message})})};function Lr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Er(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lr(Object(r),!0).forEach((function(e){Sr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Sr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Zr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zr(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Pr=function(t){var e=t.type===jr.QUIZ,r=t.type===jr.CTA,n=t.type===jr.FORM;return e||r||n},jr={QUIZ:"interaction_quiz",POLL:"polls",SLIDER:"slider",FEEDBACK:"feedback",CTA:"interaction_cta",FORM:"interaction_form"},Nr=function(t){var e=t.context,r=t.isMiniPlayer,n=t.elements,o=t.videoType,a=t.handleOnRedirectCallback,l=t.handleInteractionSelectedCallback,u=t.handleOnFocusCallback,s=(0,F.ac)("(max-width: 766px)"),d=(0,F.ac)("(max-width: 1023px)"),p=O(),h=p.togglePannel,v=p.isVisible,y=kr((0,i.useState)(v),2),m=y[0],w=y[1];f().widget;return w(!0),(0,i.useEffect)((function(){w(!!h&&v)}),[v,h,n]),function(t){return null===t||void 0===t?void 0:t.some((function(t){return Pr(t)}))}(n)&&m&&(0,c.tZ)(ge.M,{children:(0,c.BX)(be.E.div,{className:"vw-cmp__player--interaction ".concat(d||r?"":"vw-cmp__player--interaction--is-desktop"," ").concat(m?"":"vw--visible"),transition:d||r?{delay:.1,duration:1,fadeIn:[0,1]}:{ease:[.29,.63,.4,.79],delay:0,duration:.25},initial:d||r?{bottom:"-".concat(window.visualViewport.height,"px")}:{x:"150%"},animate:d||r?{bottom:0}:{x:0},exit:{opacity:0},children:[(0,c.tZ)("div",{className:"vw-interaction-bg"}),n.map((function(t){var n={element:t,dark:!d,fullWidth:s||!d,isMiniPlayer:r,context:e,videoType:o};return Pr(t)&&(0,c.BX)("div",{className:"vw-cmp-interactions",children:[t.type===jr.QUIZ&&(0,c.tZ)(Pe,Er(Er({},n),{},{handleOnRedirectCallback:function(t){return a(t)},handleInteractionSelectedCallback:function(t,e,r){return l(t,e,r)}})),t.type===jr.POLL&&(0,c.tZ)(Ge,Er({},n)),t.type===jr.SLIDER&&(0,c.tZ)(Ye,Er({},n)),t.type===jr.FEEDBACK&&(0,c.tZ)(ir,Er({},n)),t.type===jr.CTA&&(0,c.tZ)(fr,Er(Er({},n),{},{handleOnRedirectCallback:function(t){return a(t)}})),t.type===jr.FORM&&(0,c.tZ)(Or,Er(Er({},n),{},{handleOnFocusCallback:function(t){return u(t)}}))]})}))]})})};const Ir=(0,i.memo)(Nr);const Tr=function(){var t=(u().player||{}).buyButton.type;return(0,c.tZ)("div",{className:"vw-cmp__loading",children:(0,c.tZ)(W.X,{features:z.H,children:(0,c.BX)(Y.m.div,{className:"vw-cmp__loading--box",initial:{scale:1.25},animate:{scale:1},transition:{duration:.5},children:[(0,c.tZ)("div",{className:"vw__atc-loader-root",children:(0,c.tZ)("span",{className:"vw__atc-loader"})}),(0,c.tZ)("span",{children:t===a.Nk.DIRECT_TO_CHECKOUT?"Taking you to checkout..":"Taking you to cart.."})]})})})};var Ar=r(9322),Br=r.n(Ar),Rr=function(t){var e=t.state,r=t.callback,n=function(){return(0,c.BX)("svg",{width:"100%",height:"100%",viewBox:"0 0 80 80",fill:"none",children:[(0,c.tZ)("circle",{opacity:"0.7",cx:"40",cy:"40",r:"40",fill:"black"}),(0,c.tZ)("path",{d:"M31.25 25.5162C31.25 24.7389 32.098 24.2588 32.7645 24.6587L57.6188 39.5713C57.9424 39.7655 57.9424 40.2345 57.6188 40.4287L32.7645 55.3413C32.098 55.7412 31.25 55.2611 31.25 54.4838V25.5162Z",fill:"white"})]})};if(!t.loading)return(0,c.tZ)(c.HY,{children:!e&&(0,c.tZ)("span",{className:"vw-cmp__player--play-icon",onClickCapture:function(){r()},children:(0,c.tZ)(n,{})})})};const Hr=(0,i.memo)(Rr);const Dr=function(){return(0,c.tZ)("div",{className:"vw-cmp__player--is-loading",children:(0,c.tZ)("span",{className:"vw-cmp__player--is-loading-icon",children:(0,c.tZ)("div",{dangerouslySetInnerHTML:{__html:'<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"><style>.spinner_Pcrv{transform-origin:center;animation:spinner_xeMo .6s linear infinite}@keyframes spinner_xeMo{100%{transform:rotate(360deg)}}</style><path class="spinner_Pcrv" d="M5.00006 30C5.11117 23.152 7.78754 16.5949 12.5001 11.625C11.9751 11.15 11.4501 10.725 10.9501 10.25C7.02254 14.0554 4.31877 18.9453 3.18424 24.295C2.04972 29.6447 2.53597 35.2112 4.58085 40.2831C6.62574 45.3551 10.1364 49.7022 14.6642 52.769C19.192 55.8358 24.5314 57.4829 30.0001 57.5C30.8501 57.5 31.6751 57.5 32.5001 57.375C15.0001 57.5 5.00006 44.35 5.00006 30Z" fill="white"/></svg>'}})})})};var Mr={start:{transition:{staggerChildren:.2}},end:{transition:{staggerChildren:.2}}},Fr={start:{opacity:0},end:{opacity:1}},Gr={duration:.8,yoyo:1/0,ease:"easeInOut"};const Vr=function(){return(0,c.tZ)(W.X,{features:z.H,children:(0,c.BX)(Y.m.svg,{variants:Mr,initial:"start",animate:"end",width:"44",height:"46",viewBox:"0 0 44 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)(Y.m.path,{id:"1",variants:Fr,transition:Gr,opacity:"0.1",d:"M19 44L22 42L25 44",stroke:"white","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}),(0,c.tZ)(Y.m.path,{id:"2",variants:Fr,transition:Gr,opacity:"0.16",d:"M13 35L22 29L31 35",stroke:"white","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}),(0,c.tZ)(Y.m.path,{id:"3",variants:Fr,transition:Gr,opacity:"0.4",d:"M7 25L22 16L37 25",stroke:"white","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}),(0,c.tZ)(Y.m.path,{id:"4",variants:Fr,transition:Gr,opacity:"0.6",d:"M2 14L22 2L42 14",stroke:"white","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})]})})};function Xr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Ur(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ur(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ur(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const qr=function(){var t=Xr((0,i.useState)(!1),2),e=t[0],r=t[1],n=(0,i.useRef)(null),o=function(){window.localStorage.setItem("VW_PFTO",JSON.stringify(!0)),r(!0),n.current=setTimeout((function(){r(!1)}),5e3)};return(0,i.useEffect)((function(){window.localStorage.getItem("VW_PFTO")||r(!0)}),[]),(0,i.useEffect)((function(){return function(){return clearTimeout(n.current)}}),[]),(0,i.useEffect)((function(){e&&o()}),[e]),(0,c.tZ)(c.HY,{children:(0,c.tZ)(W.X,{features:z.H,children:(0,c.tZ)(ge.M,{children:e&&(0,c.BX)(Y.m.div,{className:"vw-cmp__modal--first-time",animate:{opacity:[0,1,0]},transition:{duration:3,times:[0,.5,1]},children:[(0,c.tZ)("div",{className:"vw-cmp__modal--icon",children:(0,c.tZ)(Vr,{})}),(0,c.BX)("div",{className:"vw-cmp__modal--instructions",children:["Swipe Up ",(0,c.tZ)("br",{}),"To Next Video"]})]})})})})};function Wr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return zr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zr(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Yr=function(t){var e=t.loading,r=t.playing,n=t.onPlay,o=t.played,a=t.onSeek,l=t.playedSeconds,u=t.showPlayerFirstTimeOverlay,s=(0,F.ac)("(max-width: 1023px)"),d=Wr((0,i.useState)(!1),2),f=d[0],p=d[1];return(0,i.useEffect)((function(){setTimeout((function(){p(!0)}),200)}),[r]),(0,c.BX)("div",{className:"vw-cmp__player-controls",children:[l>0&&f&&(0,c.tZ)(Hr,{callback:n,state:r,loading:e}),e&&(0,c.tZ)(Dr,{}),s&&!e&&r&&u&&(0,c.tZ)(qr,{}),(0,c.tZ)("div",{className:"vw-cmp__player-controls--progress",children:(0,c.tZ)("div",{className:"vw-cmp__range-rir--container",children:(0,c.tZ)(Br(),{maxValue:100,minValue:0,value:100*o,onChange:function(t){return function(t){a(t)}(t)},classNames:{activeTrack:"vw-cmp__range-rir--track-active",disabledInputRange:"vw-cmp__range-rir--disabled",inputRange:"vw-cmp__range-rir",labelContainer:"vw-cmp__range-rir--label-container",maxLabel:"vw-cmp__range-rir--max-label",minLabel:"vw-cmp__range-rir--min-label",slider:"vw-cmp__range-rir--slider",sliderContainer:"vw-cmp__range-rir--slider-container",track:"vw-cmp__range-rir--track",valueLabel:"vw-cmp__range-rir--value-label"}})})}),(0,c.tZ)("div",{className:"vw-cmp__player-controls--click",onClick:n})]})};function $r(t){return $r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(t)}function Kr(){Kr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==$r(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function Jr(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}const Qr=function(t){var e,r=t.product,n=O(),o=L(),i=(0,F.ac)("(max-width: 1023px)"),a=r||{},l=a.productRefId,s=a.previewImageSrc,d=a.name,f=a.compareAtPrice,p=a.price,h=a.handle,v=a.tag,y=a.productReviews,m=a.variantId,w=a.excludedVariants,g=(u()||{}).player||{},b=g.productDetails,_=g.settings,x=(b||{}).hideOldPrice,C=function(){var t,e=(t=Kr().mark((function t(){var e;return Kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=null,"undefined"!==typeof window.Shopify?e=h:"undefined"!==typeof window.videowiseSFCC&&(e=l),t.next=5,(0,$.Fn)({handle:e,dispatch:o,tag:v,shoppableCtx:n,productReviews:y,variantId:m,excludedVariants:w});case 5:i&&o({type:j.a.SHOW_MORE}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("Error selecting product: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Jr(i,n,o,a,c,"next",t)}function c(t){Jr(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();return r?(0,c.BX)("div",{className:"vw-cmp__shoppable--card",onClick:C,children:[f&&f!=p&&!x&&(0,c.tZ)("span",{className:"vw-cmp__shoppable--card-price-old-label",children:(null===_||void 0===_||null===(e=_.translation)||void 0===e?void 0:e.sale)||"Sale"}),(0,c.tZ)("div",{className:"vw-cmp__shoppable--card-image",children:s&&d&&(0,c.tZ)("img",{src:s,alt:d})}),(0,c.BX)("div",{className:"vw-cmp__shoppable--card-body",children:[d&&(0,c.tZ)("div",{className:"vw-cmp__shoppable--card-title",children:le(d,43)}),y&&(0,c.tZ)(Ut,{rating:y}),p&&(0,c.BX)("div",{className:"vw-cmp__shoppable--card-price",children:[(0,c.tZ)("span",{className:"vw-cmp__shoppable--card-price-current",children:Et(p,!1)}),f&&f!=p&&!x&&(0,c.tZ)("span",{className:"vw-cmp__shoppable--card-price-old",children:Et(f,!1)})]}),v&&(0,c.tZ)(Rt,{tag:v})]})]}):null};const tn=function(t){var e=t.title,r=t.url;if(e||r)return(0,c.tZ)("a",{href:r,className:"vw-cmp__shoppable--external-button",target:"_blank",children:(0,c.tZ)("span",{children:e})})};function en(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?en(Object(r),!0).forEach((function(e){nn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function on(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||cn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function an(t){return function(t){if(Array.isArray(t))return ln(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||cn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cn(t,e){if(t){if("string"===typeof t)return ln(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ln(t,e):void 0}}function ln(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const un=function(t){var e=t.isInMiniPlayer,r=t.time,n=t.shoppableList,o=L(),l=(0,F.ac)("(max-width: 1023px)"),u=on((0,i.useState)(!1),2),s=u[0],d=u[1],f=on((0,i.useState)([]),2),p=f[0],h=f[1],v=on((0,i.useState)([]),2),y=(v[0],v[1],n.filter((function(t){return t.type===a.LR.PRODUCT}))),m=on((0,wt.E)({selector:".vw-cmp_shoppable-keen-card-slide",breakpoints:{"(min-width: 240px)":{slides:{perView:1.4,spacing:8}},"(min-width: 768px)":{slides:{perView:!0===e?.8:2,spacing:!0===e?8:0}}},slides:{perView:1.5,spacing:0}}),3),w=m[0],g=m[1],b=(m[2],(0,i.useCallback)((function(){!function(t,e,r,n,o,i,a){e.length>1&&e.forEach((function(e,c){var l;r?e.startTime<=t&&!o.includes(e.productRefId)&&(i((function(t){return[].concat(an(t),[e.productRefId])})),null===(l=a.current)||void 0===l||l.next()):0===c&&e.startTime<=t&&(i((function(t){return[].concat(an(t),[e.productRefId])})),n(!0))}))}(r,n,s,d,p,h,g)}),[r,n]));return(0,i.useEffect)((function(){var t;null===(t=g.current)||void 0===t||t.update()}),[g.current,n]),(0,i.useEffect)((function(){n.length>1&&b(r)}),[r,n]),(0,c.tZ)(W.X,{features:z.H,children:(0,c.BX)(Y.m.div,{style:{width:"100%"},initial:!1,variants:{visible:{y:0},hidden:{y:"200%"}},animate:s?"visible":"hidden",transition:{duration:.4,ease:"anticipate"},children:[l&&y.length>0&&(0,c.BX)("div",{className:"vw-shoppable--list-trigger",onClick:function(){o({type:j.a.SHOW_SHOPPABLE_LIST}),o({type:j.a.SHOW_MORE})},children:["Shop ",n.length," items"]}),(0,c.tZ)("div",{ref:w,className:"vw-cmp_shoppable-keen-card-slider",children:n.map((function(t,e){return(0,c.tZ)("div",{className:"vw-cmp_shoppable-keen-card-slide",children:t.type===a.LR.PRODUCT?(0,c.tZ)(Qr,{product:t}):(0,c.tZ)(tn,rn({},t))},"card-item-".concat(e))}))})]})})};function sn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sn(Object(r),!0).forEach((function(e){fn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const pn=function(t){return(0,c.tZ)(W.X,{features:z.H,children:(0,c.tZ)(Y.m.div,dn(dn({},t),{},{children:t.children}))})};function hn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hn(Object(r),!0).forEach((function(e){yn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return wn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wn(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const gn=function(t){var e=t.time,r=t.item,n=mn((0,i.useState)(!1),2),o=n[0],l=n[1],u=(0,i.useCallback)((function(){!function(t,e,r,n){!r&&e.startTime<=t&&n(!0)}(e,r,o,l)}),[e]);return(0,i.useEffect)((function(){r&&u(e)}),[e,r]),(0,c.tZ)(c.HY,{children:o&&(0,c.tZ)(pn,{style:{width:"100%"},initial:{y:"200%"},animate:{y:0},transition:{duration:.3,ease:"anticipate"},children:(null===r||void 0===r?void 0:r.type)===a.LR.PRODUCT?(0,c.tZ)(Qr,{product:r}):(0,c.tZ)(tn,vn({},r))})})};function bn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const _n=function(t){var e,r,n=t.isInMiniPlayer,o=t.time,i=(0,F.ac)("(max-width: 1023px)"),a=(O()||{}).shoppableList,l=null!==(e=null===a||void 0===a?void 0:a.length)&&void 0!==e?e:0,u=(0,M.Z)("vw-cmp__shoppable--card-list",(bn(r={},"vw-has--carousel",l>1),bn(r,"vw-single",1===l),r));return i||1!==l||"PRODUCT"!==a[0].type||!1!==n?(0,c.BX)("div",{className:u,children:[l>1&&(0,c.tZ)(un,{isInMiniPlayer:n,time:o,shoppableList:a}),1===l&&(0,c.tZ)(gn,{time:o,item:a[0]})]}):(0,c.tZ)(c.HY,{})};var xn=function(t){var e=t.video,r=t.isTablet;return(0,c.BX)(c.HY,{children:[(0,c.tZ)("div",{className:"vw-cmp__player--shadow vw-cmp__player--shadow-top"}),!1===r&&e.commercials.length>0||!0===r&&e.commercials.length>0||!0===r&&!0===(0,$.wL)(e)&&Object.keys(e.interaction).length>0&&(0,c.tZ)("div",{className:"vw-cmp__player--shadow vw-cmp__player--shadow-bottom"})]})};const Cn=(0,i.memo)(xn);var On=function(t){var e=t.url,r=t.type;if(e&&""!==e){var n=function(t){return(0,c.tZ)("img",{src:e,className:t,alt:"VideoWise Shoppable videos"})};return r===a.q.PREVIEW?(0,c.tZ)("div",{className:"vw__video-player noibu-blocked vw__video-player--preview",children:n()}):(0,c.tZ)(c.HY,{children:n("vw-cmp__player--background vw-cmp__player--background-img has-blur")})}};const Ln=(0,i.memo)(On);const En=function(t){var e,r=t.video,n=(0,F.ac)("(max-width: 576px)"),o=(0,F.ac)("(max-width: 1023px)");return(0,c.BX)(c.HY,{children:[(0,c.tZ)(Cn,{video:r,isTablet:o}),!n&&(0,c.tZ)(Ln,{url:null===(e=r.thumbnail)||void 0===e?void 0:e.url})]})};var Sn=r(5457),kn=r.n(Sn);function Zn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Pn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pn(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const jn=function(t){var e=t.video,r=t.isPlaying,n=t.onProgress,o=t.onDuration,a=t.onEnded,l=t.onBuffer,u=t.onBufferEnd,s=t.onReady,d=t.onPlay,f=t.onPlayerRef,p=t.isCurrentPlaying,h=O()||{},v=(0,i.useRef)(null),y=Zn((0,i.useState)({muted:h.muted}),2),m=y[0],w=y[1],g=(0,i.useMemo)((function(){if(!1===p&&e.muxPlaybackId){var t="".concat("ikgew7mM9cLLms5hfy5Z9M00MG76PrKYA67NtJTnzGhk");return{width:"1px",height:"1px",url:"https://stream.mux.com/".concat(t,"/low.mp4")}}return{width:"100%",height:"100%",url:(0,$.cy)(e,!1)}}),[p,e]);return(0,i.useEffect)((function(){w({muted:h.muted})}),[h.muted]),(0,i.useEffect)((function(){v&&f(v.current)}),[v]),(0,c.tZ)(kn(),{id:"mux-monitor-".concat(e.id),ref:v,url:g.url,className:"vw__video-player noibu-blocked",width:g.width,height:g.height,controls:!1,muted:m.muted,progressInterval:100,playing:r,playsinline:!0,onProgress:n,onDuration:o,onEnded:a,onBuffer:l,onBufferEnd:u,onReady:s,onPlay:d,disableDeferredLoading:!0,config:{file:{hlsOptions:{forceHLS:!!(e||{}).muxPlaybackId,debug:!1,xhrSetup:function(t,e){if(!t.readyState){var r=e.substring(0,e.indexOf("&vsid")+1);r&&t.open("GET",r,!0)}}}}}})};var Nn=r(7103),In=r.n(Nn);const Tn=function(t){var e=t.url,r=t.isPlaying,n=t.onProgress,o=t.onDuration,a=t.onEnded,l=t.onBuffer,u=t.onBufferEnd,s=t.onReady,d=t.onPlay,f=t.onPlayerRef,p=(0,i.useRef)(null),h=(0,F.ac)("(max-width: 1023px)");return(0,i.useEffect)((function(){p&&f(p.current)}),[p]),(0,c.tZ)(In(),{ref:p,url:e,className:"vw__video-player noibu-blocked",width:"100%",height:"100%",controls:!0,progressInterval:100,playing:r,playsinline:!0,muted:h,onProgress:n,onDuration:o,onEnded:a,onBuffer:l,onBufferEnd:u,onReady:s,onPlay:d})};function An(){var t=new URLSearchParams(window.location.search);return new Proxy(t,{get:function(t,e){return t.get(e)}})}var Bn=r(3216);function Rn(t){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(t)}function Hn(){Hn=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==Rn(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function Dn(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function Mn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Dn(i,n,o,a,c,"next",t)}function c(t){Dn(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Fn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Gn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fn(Object(r),!0).forEach((function(e){Vn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Un(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Un(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Un(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const qn=function(t){var e,r,n,o=t.video,l=t.isCurrentPlaying,s=t.currentSlide,d=t.videoType,p=t.onEndedCallback,h=t.onDataCollectCallback,v=t.handleOnPlayCallback,y=t.updateSliderAndGoToTheNextSlideCallback,m=L(),w=O()||{},g=f(),b=w.isLoadingInProgress,_=w.errorOnProduct,x=w.muted,C=(0,i.useRef)(null),E=g.widget,S=g.trackingContext,k=g.currentSlideForQuizInteraction,Z=(An()||{}).widgetId,P=((u()||{}).player||{}).dataCollection,N=P.behaviour,I=P.appearAfter,T=P.enable,A=P.videoId,B={isPlaying:l,loading:!1,seeking:!1,loaded:0,loadedSeconds:0,playedSeconds:0,played:0,onLoaded:!1,isReady:!0},R=Xn((0,i.useState)(B),2),H=R[0],D=R[1],V=f().setAppState,X=Xn((0,i.useState)(!1),2),U=(X[0],X[1]),W=H.played,z=H.seeking,Y=H.playedSeconds,K=H.loading,J=H.isPlaying,Q=Xn((0,i.useState)(!0),2),tt=Q[0],et=Q[1],rt=Xn((0,i.useState)(!0),2),ot=rt[0],it=rt[1],at=Xn((0,i.useState)(!1),2),ct=at[0],lt=at[1],ut=Xn((0,i.useState)(!1),2),st=ut[0],dt=ut[1],ft=(0,F.ac)("(max-width: 1023px)"),pt=ft&&null!==o&&void 0!==o&&o.formatMobile?"FIT_TO_SCREEN"===(null===o||void 0===o?void 0:o.formatMobile)?"contain":"cover":"FIT_TO_SCREEN"===(null===o||void 0===o?void 0:o.format)?"contain":"cover",ht=(0,M.Z)("vw-cmp__player--video-container vw-video--".concat(pt),Vn({},"vw-video--is-loading",K)),vt=d===a.cl.YOUTUBE,yt=(0,$.c$)(null===o||void 0===o?void 0:o.commercials),mt=!!w.togglePannel&&((null===o||void 0===o||null===(e=o.commercials)||void 0===e?void 0:e.length)>0&&yt);(0,i.useEffect)((function(){v(gt)}),[]),(0,i.useEffect)((function(){var t=setTimeout((function(){lt(!0)}),100);return function(){clearTimeout(t)}}),[o]),(0,i.useEffect)((function(){null!==C.current&&!0===l&&o.startTime>0&&C.current.seekTo(parseFloat(o.startTime),"seconds")}),[C.current,o.id,l]);var wt=function(){D(Gn(Gn({},B),{},{isPlaying:!1})),p()},gt=function(){D((function(t){return Gn(Gn({},t),{},{isPlaying:!t.isPlaying})}))},bt=function(t){z||D(Gn(Gn({},H),t))},_t=function(){},xt=function(t){D(Gn(Gn({},H),{},{loading:!0}))},Ct=function(t){D(Gn(Gn({},H),{},{loading:!1}))},Ot=function(){D(Gn(Gn({},H),{},{loading:!1}))},Lt=function(t){C.current=t,t&&U(!0)},Et=function(t){D(Gn(Gn({},H),{},{isPlaying:!t}))},St=function(){if(l&&T&&!(0,Bn.kx)(null===E||void 0===E?void 0:E.id)&&!st)switch(N){case"APPEAR_AFTER":if(A!==o.id)return;I===Math.round(Y)&&(h(),dt(!0));break;case"VIDEO_COMPLETE":0===s&&Y>Math.floor(o.duration)-2&&(h(),dt(!0));break;case"SWIPE":1===s&&(h(),dt(!0));break;default:console.error("Something went wrong ".concat(N))}};(0,i.useEffect)((function(){l&&!mt&&w.isVisible?m({type:j.a.HIDE_PANEL}):Mn(Hn().mark((function t(){var e,r,n,i,a,c,u,s,d,f,p;return Hn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!l||!mt){t.next=27;break}if(console.log("show commer hasProduct",mt),a=null,"undefined"!==typeof window.Shopify?a=null===(c=o.commercials[0])||void 0===c?void 0:c.handle:"undefined"!==window.videowiseSFCC&&(a=o.commercials[0].productRefId),"undefined"!==typeof a){t.next=6;break}return t.abrupt("return");case 6:return u=null===(e=o.commercials[0])||void 0===e?void 0:e.tag,s=null===(r=o.commercials[0])||void 0===r?void 0:r.variantId,d=null===(n=o.commercials[0])||void 0===n?void 0:n.excludedVariants,f=null===(i=o.commercials[0])||void 0===i?void 0:i.productReviews,t.prev=10,t.next=13,(0,nt.ZP)().getProductByHandle(a,d,void 0);case 13:if(p=t.sent){t.next=17;break}return 1===o.commercials.length&&(m({type:j.a.HIDE_PANEL}),m({type:j.a.ERROR_ON_PRODUCT,payload:{errorOnProduct:!0}}),setTimeout((function(){m({type:j.a.ERROR_ON_PRODUCT,payload:{errorOnProduct:!1}})}),1e3)),t.abrupt("return");case 17:u&&(p.tag=u),s&&(p.variantId=s),f&&(p.productReviews=f),p&&(0,$.c6)(m,p,a),t.next=27;break;case 23:return t.prev=23,t.t0=t.catch(10),console.error("fetch product error: ",t.t0),t.abrupt("return",t.t0);case 27:case"end":return t.stop()}}),t,null,[[10,23]])})))()}),[l]),(0,i.useEffect)((function(){St()}),[l]),(0,i.useEffect)((function(){D(Gn(Gn({},H),{},{playing:!1}))}),[b]),(0,i.useEffect)((function(){l&&"undefined"!==w.showMore&&Et(w.showMore)}),[l,w.showMore]),(0,i.useEffect)((function(){l&&"undefined"!==w.showShare&&Et(w.showShare)}),[l,w.showShare]),(0,i.useEffect)((function(){Y&&(!function(t){var e=function(){return 80*Math.floor(t.duration)/100};Y>3&&Y<4&&ot&&((0,G.j)(a.X8.Video,Gn(Gn({},S),{},{videoId:o.id,videoType:d})),it(!1)),Y>e()&&Y<e()+1&&tt&&((0,G.j)(a.X8.VideoWatch,Gn(Gn({},S),{},{videoId:t.id,videoType:d})),et(!1))}(o),St(),o.endTime&&Math.round(10*Y)===Math.round(10*o.endTime)&&H.isPlaying&&(C.current.seekTo(parseFloat(o.startTime),"seconds"),wt()))}),[Y]),(0,i.useEffect)((function(){if(!l)return et(!0),void it(!0)}),[l]),(0,i.useEffect)((function(){setTimeout((function(){D((function(t){return Gn(Gn({},t),{},{isPlaying:l})}))}),1e3)}),[l]),(0,i.useEffect)((function(){Z&&D((function(t){return Gn(Gn({},t),{},{isPlaying:!1})}))}),[Z]);var kt=function(){var t=Mn(Hn().mark((function t(e,r,n){var o,i,a;return Hn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return!0===["product","pageUrl"].includes(r.type)?Zt(r.data.url):D((function(t){return Gn(Gn({},t),{},{isReady:!1})})),t.next=3,q().post("".concat("https://api.videowise.com","/formData/").concat(e,"/vote/"),n);case 3:o=t.sent,i=g.videos,a=i.find((function(t){return t.id===o.data.id})),"undefined"===typeof a&&(i=(0,$.a)(i,k+1,o.data)),"video"===r.type&&(V((function(t){return Gn(Gn({},t),{},{videos:i})})),setTimeout((function(){D(Gn(Gn({},B),{},{isPlaying:!1})),y()}),1e3));case 8:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),Zt=function(t){window.open(t,"_blank"),D((function(t){return Gn(Gn({},t),{},{isPlaying:!1})}))};return(0,c.BX)("div",{className:ht,children:[(0,c.BX)("div",{className:"vw-cmp__player--video-container-embed",children:[(0,c.BX)("div",{className:"vw-cmp__player--video",children:[vt?(0,c.tZ)(Tn,{url:(0,$.cy)(o,!0),isPlaying:J,onProgress:bt,onDuration:_t,onEnded:wt,onBuffer:xt,onBufferEnd:Ct,onPlay:Ot,onPlayerRef:Lt}):(0,c.BX)(c.HY,{children:[ct&&(0,c.tZ)(jn,{video:o,isPlaying:J,onProgress:bt,onDuration:_t,onEnded:wt,onBuffer:xt,onBufferEnd:Ct,onPlay:Ot,onPlayerRef:Lt,onReady:function(){D((function(t){return Gn(Gn({},t),{},{isReady:!0})}))},isCurrentPlaying:l}),l&&(0,c.tZ)(Yr,{loading:K,playing:J,onPlay:gt,played:W,onSeek:function(t){D(Gn(Gn({},H),{},{played:parseFloat(t/100)})),C.current.seekTo(t/100,"fraction")},playedSeconds:Y,showPlayerFirstTimeOverlay:!(null!==(r=o.interaction)&&void 0!==r&&r.elements)}),(0,c.tZ)(En,{video:o})]}),l&&(0,c.tZ)(_n,{isInMiniPlayer:!1,time:H.playedSeconds}),_&&(0,c.tZ)("div",{className:"vm-cmp__unavailable-product",children:"The product is unavailable"})]}),J&&ft&&(0,c.tZ)(Ir,{context:"video-player",isMiniPlayer:!1,elements:null===(n=o.interaction)||void 0===n?void 0:n.elements,hasProduct:mt,videoType:d,handleOnRedirectCallback:function(t){return Zt(t)},handleInteractionSelectedCallback:function(t,e,r){return kt(t,e,r)},handleOnFocusCallback:function(){!1===x&&m({type:j.a.TOGGLE_SOUND,payload:{muted:!0}})}})]}),!1===H.isReady&&(0,c.tZ)("div",{style:{width:"100%",height:"50%",display:"block",position:"absolute",right:0,bottom:0,zIndex:9999}})]})};const Wn=function(t){var e=t.onPrev,r=t.onNext;return(0,c.BX)("div",{className:"vw-cmp__player-navigation",children:[(0,c.tZ)("div",{onClick:e,className:"vw-cmp__player--button vw-cmp__player--button-prev",children:(0,c.tZ)(c.HY,{children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.tZ)("svg",{width:"22",height:"13",viewBox:"0 0 22 13",fill:"none",children:(0,c.tZ)("path",{d:"M0.999907 11.9999L10.9998 2L20.9999 12",stroke:"white",strokeWidth:"2.2"})})})})}),(0,c.tZ)("div",{onClick:r,className:"vw-cmp__player--button vw-cmp__player--button-next",children:(0,c.tZ)(c.HY,{children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.tZ)("svg",{width:"22",height:"13",viewBox:"0 0 22 13",fill:"none",children:(0,c.tZ)("path",{d:"M0.999907 1.00013L10.9998 11L20.9999 1",stroke:"white",strokeWidth:"2.2"})})})})})]})};var zn=r(8440),Yn={VAR:{y:["32px","0px","-32px"],opacity:[0,1,0],transition:{duration:1.5,repeat:1/0}}},$n={VAR:{transition:{when:"afterChildren",staggerChildren:.5}}};const Kn=function(){var t=(0,zn._)();return(0,i.useEffect)((function(){t.start("VAR")}),[t]),(0,i.useEffect)((function(){setTimeout((function(){t.start("VAR")}),500)}),[]),(0,c.tZ)(W.X,{features:z.H,children:(0,c.BX)(Y.m.svg,{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",animate:t,variants:$n,children:[(0,c.tZ)(Y.m.path,{d:"M2 5.29997L5.6 1.70003L9.2 5.29997",stroke:"white","stroke-width":"2","stroke-linecap":"square",variants:Yn}),(0,c.tZ)(Y.m.path,{d:"M2 11.3L5.6 7.70003L9.2 11.3",stroke:"white","stroke-width":"2","stroke-linecap":"square",variants:Yn})]})})};var Jn=function(t,e){return t<e.length?e[t]:null};const Qn=function(t){var e=t.index,r=t.videos,n=Jn(e,r),o=Jn(e+1,r);return(0,c.BX)("div",{className:"vw-cmp__player-legend",children:[n&&(0,c.BX)("div",{className:"vw-cmp__player-legend--label vw-cmp__player-legend--current",children:[(0,c.tZ)("span",{className:"vw-cmp__player-legend--icon",children:(0,c.tZ)("svg",{width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 10.5L8.57143 5.5L0 0.5V10.5Z",fill:"white"})})}),"Now: ",null===n||void 0===n?void 0:n.title]}),o&&(0,c.BX)("div",{className:"vw-cmp__player-legend--label vw-cmp__player-legend--next",children:[(0,c.tZ)("span",{className:"vw-cmp__player-legend--icon",children:(0,c.tZ)(Kn,{})}),"Next: ",null===o||void 0===o?void 0:o.title]})]})};const to=function(t){var e=t.onShare,r=O().shoppableList;(0,$.c$)(r);return(0,c.tZ)("div",{className:"vw-cmp__player--share-button ".concat(null!==r&&void 0!==r&&r.length?"":"vw-cmp__player--share-button-bottom"),children:(0,c.tZ)("div",{onClick:e,className:"vw-cmp__player--button",children:(0,c.tZ)(c.HY,{children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.BX)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("g",{filter:"url(#filter0_d_501_286)",children:(0,c.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22 12C23.1046 12 24 11.1046 24 10C24 8.89543 23.1046 8 22 8C20.8954 8 20 8.89543 20 10C20 11.1046 20.8954 12 22 12ZM22 14C24.2091 14 26 12.2091 26 10C26 7.79086 24.2091 6 22 6C19.7909 6 18 7.79086 18 10C18 10.2874 18.0303 10.5678 18.0879 10.838L13.0169 13.3735C12.2836 12.5319 11.2039 12 10 12C7.79086 12 6 13.7909 6 16C6 18.2091 7.79086 20 10 20C11.2039 20 12.2836 19.4681 13.0169 18.6265L18.0879 21.162C18.0303 21.4322 18 21.7126 18 22C18 24.2091 19.7909 26 22 26C24.2091 26 26 24.2091 26 22C26 19.7909 24.2091 18 22 18C20.7961 18 19.7164 18.5319 18.9831 19.3735L13.9121 16.838C13.9697 16.5678 14 16.2874 14 16C14 15.7126 13.9697 15.4322 13.9121 15.162L18.9831 12.6265C19.7164 13.4681 20.7961 14 22 14ZM10 18C11.1046 18 12 17.1046 12 16C12 14.8954 11.1046 14 10 14C8.89543 14 8 14.8954 8 16C8 17.1046 8.89543 18 10 18ZM24 22C24 23.1046 23.1046 24 22 24C20.8954 24 20 23.1046 20 22C20 20.8954 20.8954 20 22 20C23.1046 20 24 20.8954 24 22Z",fill:"white"})}),(0,c.tZ)("defs",{children:(0,c.BX)("filter",{id:"filter0_d_501_286",x:"-1",y:"-2",width:"36",height:"36",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,c.tZ)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,c.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,c.tZ)("feOffset",{}),(0,c.tZ)("feGaussianBlur",{stdDeviation:"3"}),(0,c.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),(0,c.tZ)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_501_286"}),(0,c.tZ)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_501_286",result:"shape"})]})})]})})})})})};const eo=function(){var t=O(),e=t.muted,r=t.shoppableList,n=L(),o=((0,$.c$)(r),e?function(){return(0,c.BX)("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:[(0,c.tZ)("path",{d:"M2 10H7.81818L17 3V29L7.81818 22H2V10ZM8.49361 12L15 7.03968V24.9603L8.49361 20H4V12H8.49361Z",fill:"white"}),(0,c.tZ)("path",{d:"M20.8219 10.4325C20.4314 10.042 19.7982 10.042 19.4077 10.4325C19.0172 10.8231 19.0172 11.4562 19.4077 11.8468L23.643 16.0821L19.4077 20.3174C19.0172 20.708 19.0172 21.3411 19.4077 21.7316C19.7982 22.1222 20.4314 22.1222 20.8219 21.7316L25.0573 17.4963L29.2926 21.7316C29.6831 22.1222 30.3163 22.1222 30.7068 21.7316C31.0973 21.3411 31.0973 20.708 30.7068 20.3174L26.4715 16.0821L30.7068 11.8468C31.0973 11.4562 31.0973 10.8231 30.7068 10.4325C30.3163 10.042 29.6831 10.042 29.2926 10.4325L25.0573 14.6679L20.8219 10.4325Z",fill:"white"})]})}:function(){return(0,c.BX)("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:[(0,c.tZ)("path",{d:"M7.81818 10H2V22H7.81818L17 29V3L7.81818 10Z",fill:"white"}),(0,c.tZ)("path",{d:"M21.8642 15.3638C21.8642 13.7454 21.0183 12.3245 19.7446 11.5191C19.1424 11.1383 18.7963 10.3527 19.1446 9.73111C19.4028 9.27025 19.9605 9.05403 20.4304 9.29546C22.6312 10.4263 24.1369 12.7192 24.1369 15.3638C24.1369 18.0084 22.6312 20.3014 20.4304 21.4322C19.9605 21.6736 19.4028 21.4574 19.1446 20.9965C18.7963 20.375 19.1424 19.5893 19.7446 19.2085C21.0183 18.4031 21.8642 16.9822 21.8642 15.3638Z",fill:"white"}),(0,c.tZ)("path",{d:"M23.3875 8.37237C25.8645 9.72016 27.5457 12.3459 27.5457 15.3643C27.5457 18.3826 25.8645 21.0084 23.3875 22.3562C22.8014 22.6751 22.4991 23.3888 22.7871 23.9907C23.0394 24.518 23.6578 24.7694 24.18 24.5067C27.524 22.825 29.8184 19.3626 29.8184 15.3643C29.8184 11.366 27.524 7.90355 24.18 6.2218C23.6578 5.95916 23.0394 6.21054 22.7871 6.73783C22.4991 7.3397 22.8014 8.05347 23.3875 8.37237Z",fill:"white"})]})});return(0,c.tZ)(W.X,{features:z.H,children:(0,c.tZ)(Y.m.div,{initial:{opacity:1},animate:{opacity:1},transition:{type:"tween",duration:.2},className:"vw-cmp__player--sound-button ".concat(null!==r&&void 0!==r&&r.length?"":"vw-cmp__player--sound-button-bottom"),onClick:function(){n({type:j.a.TOGGLE_SOUND,payload:{muted:!e}})},children:(0,c.tZ)("span",{className:"vw-cmp__player--sound-icon",children:(0,c.tZ)(o,{})})})})};function ro(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return no(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return no(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function no(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var oo=function(){return(0,c.tZ)(c.HY,{children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.tZ)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.00003 0.585815L8.00003 6.58582L14 0.585815L15.4142 2.00003L9.41424 8.00003L15.4142 14L14 15.4142L8.00003 9.41424L2.00003 15.4142L0.585815 14L6.58582 8.00003L0.585815 2.00003L2.00003 0.585815Z",fill:"#9F9F9F"})})})})},io=function(){return(0,c.tZ)(c.HY,{children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M7.55018 21.6C16.6045 21.6 21.5583 14.2125 21.5583 7.80792C21.5583 7.60024 21.5536 7.38792 21.5442 7.18024C22.5079 6.4941 23.3395 5.64418 24 4.67048C23.1025 5.06365 22.1497 5.3204 21.1739 5.43202C22.2013 4.82568 22.9705 3.87315 23.3391 2.75103C22.3725 3.31498 21.3156 3.71281 20.2135 3.92744C19.4708 3.15056 18.489 2.63617 17.4197 2.46381C16.3504 2.29144 15.2532 2.4707 14.2977 2.97386C13.3423 3.47703 12.5818 4.27608 12.1339 5.24749C11.6859 6.21885 11.5754 7.3085 11.8195 8.34792C9.86247 8.25122 7.94793 7.75064 6.19996 6.87869C4.452 6.00674 2.90967 4.78285 1.67296 3.28639C1.04438 4.3534 0.852055 5.61602 1.13504 6.81768C1.41802 8.01928 2.15504 9.06973 3.19642 9.75554C2.41462 9.73112 1.65 9.52386 0.965618 9.15096V9.21096C0.964909 10.3307 1.35807 11.4161 2.07829 12.2827C2.79851 13.1494 3.80133 13.7437 4.91624 13.9646C4.19204 14.1597 3.432 14.1881 2.69482 14.0477C3.00944 15.0107 3.6216 15.8529 4.44578 16.4569C5.26996 17.0609 6.26515 17.3965 7.29235 17.4168C5.54842 18.7655 3.3942 19.4971 1.17655 19.4936C0.783273 19.493 0.390382 19.4693 0 19.4226C2.25284 20.8456 4.87353 21.6014 7.55018 21.6Z",fill:"white"})})})})},ao=function(){return(0,c.tZ)(c.HY,{children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.40749 4.40783C6.40749 5.73764 5.33132 6.81567 4.00379 6.81567C2.67627 6.81567 1.6001 5.73764 1.6001 4.40783C1.6001 3.07802 2.67627 2 4.00379 2C5.33132 2 6.40749 3.07802 6.40749 4.40783ZM9.07779 21.9989V8.64029H13.0525V10.4671H13.1085C13.6611 9.41832 15.0123 8.31015 17.0282 8.31015C21.227 8.31015 22.0004 11.0756 22.0004 14.6742V22H17.8577V15.5028C17.8577 13.9545 17.8313 11.9615 15.7033 11.9615C13.5457 11.9615 13.2183 13.6496 13.2183 15.3928V21.9989H9.07779ZM6.00011 8.64029H2.00011V21.9989H6.00011V8.64029Z",fill:"white"})})})})},co=function(){return(0,c.tZ)(c.HY,{children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.BX)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{d:"M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 17.9895 4.3882 22.954 10.125 23.8542V15.4688H7.07812V12H10.125V9.35625C10.125 6.34875 11.9166 4.6875 14.6576 4.6875C15.9705 4.6875 17.3438 4.92188 17.3438 4.92188V7.875H15.8306C14.34 7.875 13.875 8.80008 13.875 9.74906V12H17.2031L16.6711 15.4688H13.875V23.8542C19.6118 22.954 24 17.9895 24 12Z",fill:"white"}),(0,c.tZ)("path",{d:"M16.6711 15.4688L17.2031 12H13.875V9.74906C13.875 8.80008 14.34 7.875 15.8306 7.875H17.3438V4.92188C17.3438 4.92188 15.9705 4.6875 14.6576 4.6875C11.9166 4.6875 10.125 6.34875 10.125 9.35625V12H7.07812V15.4688H10.125V23.8542C10.736 23.9501 11.362 24 12 24C12.638 24 13.264 23.9501 13.875 23.8542V15.4688H16.6711Z",fill:"#121212"})]})})})},lo=function(){return(0,c.tZ)(c.HY,{children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.BX)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.772 0C5.14049 0 0 4.85761 0 11.4189C0 14.8508 1.40652 17.8164 3.69707 19.8648C3.88936 20.0369 4.00543 20.278 4.01332 20.5361L4.07743 22.6301C4.09791 23.298 4.78785 23.7326 5.39905 23.4628L7.73563 22.4314C7.93371 22.344 8.15566 22.3278 8.36438 22.3852C9.4381 22.6804 10.5809 22.8377 11.772 22.8377C18.4036 22.8377 23.544 17.9801 23.544 11.4189C23.544 4.85761 18.4036 0 11.772 0Z",fill:"white"}),(0,c.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.70294 14.7582L8.16097 9.27198C8.71103 8.3992 9.88894 8.18189 10.7143 8.80086L13.4646 10.8636C13.717 11.0529 14.0642 11.0519 14.3155 10.8612L18.0299 8.04216C18.5257 7.66592 19.1729 8.25923 18.8411 8.78575L15.3831 14.272C14.833 15.1448 13.655 15.3621 12.8298 14.7431L10.0793 12.6803C9.82702 12.491 9.47979 12.492 9.22853 12.6828L5.51403 15.5018C5.01827 15.878 4.37109 15.2847 4.70294 14.7582Z",fill:"#121212"})]})})})},uo=function(){return(0,c.tZ)(c.HY,{children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.0925293 23.9687L1.7757 17.8228C0.735778 16.0198 0.189566 13.9746 0.19213 11.8932C0.194755 5.35366 5.5168 0.0332642 12.0566 0.0332642C13.6151 0.0332933 15.1583 0.340365 16.598 0.936936C18.0378 1.53351 19.3459 2.40789 20.4477 3.51014C21.5494 4.61238 22.4233 5.9209 23.0192 7.36093C23.6152 8.80096 23.9216 10.3443 23.9209 11.9028C23.9181 18.442 18.5953 23.7633 12.0566 23.7633H12.0515C10.0707 23.7632 8.12157 23.2668 6.38202 22.3195L0.0925293 23.9687ZM8.42435 6.42284C8.6356 6.43148 8.86939 6.44137 9.09144 6.93505C9.24317 7.27247 9.49846 7.90143 9.70195 8.40278C9.85197 8.77239 9.97384 9.07263 10.0053 9.13554C10.0794 9.28378 10.1288 9.45689 10.03 9.65485C10.0152 9.68449 10.0015 9.71246 9.98837 9.73918C9.91413 9.89067 9.85958 10.002 9.73382 10.1492C9.68453 10.2067 9.63357 10.2687 9.5826 10.3307C9.48028 10.4552 9.37794 10.5797 9.2891 10.6683C9.14039 10.8161 8.98597 10.9767 9.15892 11.2732C9.33187 11.57 9.92685 12.5403 10.8081 13.326C11.7548 14.1701 12.5772 14.5272 12.9949 14.7085C13.0769 14.7441 13.1434 14.7729 13.192 14.7974C13.4885 14.9456 13.6615 14.9209 13.8344 14.7228C14.0074 14.5251 14.5752 13.8576 14.7728 13.5611C14.9705 13.2643 15.1681 13.3137 15.4399 13.4125C15.7117 13.5113 17.1691 14.2286 17.4656 14.3769C17.5234 14.4058 17.5775 14.4319 17.6276 14.4561C17.8345 14.5559 17.9742 14.6233 18.0338 14.7228C18.108 14.8468 18.108 15.4401 17.8609 16.1322C17.6138 16.8244 16.4035 17.492 15.8599 17.5414C15.8076 17.5462 15.7557 17.5523 15.7022 17.5586C15.1999 17.6177 14.5659 17.6922 12.3026 16.7997C9.51785 15.7015 7.68168 12.9801 7.30225 12.4178C7.27113 12.3717 7.24981 12.3401 7.23857 12.3251L7.23531 12.3207C7.0756 12.1073 6.02808 10.7075 6.02808 9.25907C6.02808 7.89386 6.69915 7.17822 7.00788 6.84897C7.02898 6.82647 7.04839 6.80578 7.06577 6.78681C7.16482 6.67379 7.28618 6.5825 7.42221 6.51867C7.55825 6.45483 7.70603 6.41984 7.85625 6.41589C7.86722 6.41589 7.87819 6.41589 7.88915 6.41588C8.07564 6.41586 8.26116 6.41584 8.42435 6.42284Z",fill:"white"})})})})},so=function(){return(0,c.tZ)(c.HY,{children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.tZ)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM6.99966 11.4142L12.4139 6L10.9997 4.58578L6.99966 8.58577L4.99965 6.58578L3.58545 8.00001L6.99966 11.4142Z",fill:"white"})})})})},fo=function(t){var e=t.widgetId,r=t.videoId,n=t.closeModal,o=ro((0,i.useState)(!1),2),a=o[0],l=o[1],s=(0,i.useRef)(null),d=L(),f=u().player||{},p=f.buttonStyle,h=(f.buyButton,function(t){var e=v(window.location.href),r=encodeURIComponent(e);y(t,r)}),v=function(t){var n=new URL(t);return n.searchParams.set("widgetId",e),n.searchParams.set("videoId",r),n},y=function(t,e){switch(t){case"twitter":return window.open("https://twitter.com/intent/tweet?source=tweetbutton&url=".concat(e),"_blank");case"linkedin":return window.open("https://www.linkedin.com/sharing/share-offsite/?url=".concat(e),"_blank");case"facebook":return window.open("https://www.facebook.com/sharer/sharer.php?u="+e,"_blank");case"messenger":return window.open("fb-messenger://share/?link="+e,"_blank");case"whatsapp":return window.open("https://api.whatsapp.com/send/?phone&text=".concat(e),"_blank");case"copyLink":return navigator.clipboard.writeText("".concat(v(window.location.href)));default:console.error("Something went wrong")}};return(0,i.useEffect)((function(){var t=function(t){t.preventDefault(),e.scrollLeft+=t.deltaY},e=s.current;return e.addEventListener("wheel",t),function(){e.removeEventListener("wheel",t)}}),[]),(0,i.useEffect)((function(){d({type:j.a.SHOW_MORE_SHARE})}),[]),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-background",children:(0,c.BX)("div",{className:"vw-cmp__player-modal-share-container",children:[(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-close",children:(0,c.tZ)("button",{className:"vw-cmp__player-modal-share-close-btn",onClick:function(){d({type:j.a.HIDE_MORE_SHARE}),n(!1)},children:(0,c.tZ)(oo,{})})}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-title",children:"Share video"}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-relative-scroll",children:(0,c.BX)("div",{ref:s,className:"vw-cmp__player-modal-share-container-scroll",children:[(0,c.BX)("a",{className:"vw-cmp__player-modal-share-container-scroll-card",onClick:function(){return h("twitter")},children:[(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-scroll-card-bullet",children:(0,c.tZ)(io,{})}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-scroll-card-text",children:"Twitter"})]}),(0,c.BX)("a",{className:"vw-cmp__player-modal-share-container-scroll-card",onClick:function(){return h("linkedin")},children:[(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-scroll-card-bullet",children:(0,c.tZ)(ao,{})}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-scroll-card-text",children:"LinkedIn"})]}),(0,c.BX)("a",{className:"vw-cmp__player-modal-share-container-scroll-card",onClick:function(){return h("facebook")},children:[(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-scroll-card-bullet",children:(0,c.tZ)(co,{})}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-scroll-card-text",children:"Facebook"})]}),(0,c.BX)("a",{className:"vw-cmp__player-modal-share-container-scroll-card",onClick:function(){return h("messenger")},children:[(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-scroll-card-bullet",children:(0,c.tZ)(lo,{})}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-scroll-card-text",children:"Messenger"})]}),(0,c.BX)("a",{className:"vw-cmp__player-modal-share-container-scroll-card",onClick:function(){return h("whatsapp")},children:[(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-scroll-card-bullet",children:(0,c.tZ)(uo,{})}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-container-scroll-card-text",children:"WhatsApp"})]})]})}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-divider"}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-link-label",children:"Video URL"}),(0,c.tZ)("div",{className:"vw-cmp__player-modal-share-link-container",children:"".concat(v(window.location.href))}),(0,c.BX)("button",{className:"vw-cmp__player-modal-share-copy-btn",style:{background:p.backgroundColor,color:p.textColor,borderRadius:p.radius,border:p.showBorder?"".concat(p.borderColor," solid"):0,borderWidth:p.showBorder?"".concat(p.borderWidth):0},onClick:function(){return h("copyLink"),void l(!0)},children:[!a&&"Copy link",a&&(0,c.BX)(c.HY,{children:[(0,c.tZ)(so,{}),"Link copied"]})]})]})})};const po=(0,i.memo)(fo);function ho(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ho(Object(r),!0).forEach((function(e){yo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ho(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return wo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wo(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const go=function(t){var e,r=t.selectedVideoId,n=(t.onSelectVideo,t.handleEngagementTime),o=t.handleOnPlayCallback,l=t.instanceRefCurrentCallback,s=f(),d=s.widget,p=s.videos,h=s.trackingContext,v=s.widgetID,y=s.setAppState,m=s.currentSlideForQuizInteraction,w=s.currentVideoType,g=O().cart,b=(((u()||{}).player||{}).buyButton||{}).type,_=(0,F.ac)("(max-width: 1023px)"),x=L(),C=null===p||void 0===p?void 0:p.find((function(t){return t.id===r})),E=p.indexOf(C),S=mo((0,i.useState)(0),2),k=S[0],Z=S[1],P=(0,$.wL)(p[m])&&"interaction_quiz"===p[m].interaction.interactionType,j=w===a.cl.YOUTUBE,N=d.type===a.l9.Independent,I=g&&(null===g||void 0===g?void 0:g.item_count)>0,T=!0===P||(null===p||void 0===p?void 0:p.length)<2,A=(0,M.Z)((yo(e={},"vw-player--independent",N),yo(e,"vw-player--cart-has-item",I),yo(e,"vw-player-no-share",T),e)),B=mo((0,i.useState)(E),2),R=B[0],H=B[1],D=mo((0,i.useState)(E),2),V=D[0],X=D[1],U=mo((0,i.useState)(!1),2),q=U[0],W=U[1],z=(0,wt.E)({initial:E,loop:!0,drag:!1===P&&(null===p||void 0===p?void 0:p.length)>1,vertical:!0,selector:".vw-cmp__keen-player-slide",renderMode:"performance",animationEnded:function(t){H(t.track.details.rel)},created:function(t){W(!0)}}),Y=mo(z,3),K=Y[0],J=Y[1],Q=(Y[2],(0,i.useCallback)((function(){var t;k&&((0,G.j)(a.X8.EngagementTime,vo(vo({},h),{},{videoId:null===(t=p[V])||void 0===t?void 0:t.id,time:(0,G.Yi)(k),videoType:p[R].videoType})),Z(0))}),[k,V,p])),tt=(0,i.useCallback)((function(){var t;(0,G.j)(a.X8.Swipe,vo(vo({},h),{},{videoId:null===(t=p[V])||void 0===t?void 0:t.id,videoType:p[R].videoType}))}),[p]);(0,i.useEffect)((function(){l(J.current)}),[]),(0,i.useEffect)((function(){var t;J.current&&(null===(t=J.current)||void 0===t||t.update())}),[J.current]),(0,i.useEffect)((function(){var t;R!==V&&(tt(),Q(),X(R)),Z((new Date).getTime()),n(null===(t=p[R])||void 0===t?void 0:t.id,(new Date).getTime())}),[R,p]),(0,i.useEffect)((function(){(0,nt.ZP)().setCommercials(p,R,x,_),y((function(t){return vo(vo({},t),{},{currentSlideForQuizInteraction:R,currentVideoType:p[R].videoType})}))}),[R]);var et=(0,i.useCallback)((function(){var t;null===(t=J.current)||void 0===t||t.prev()}),[p]),rt=(0,i.useCallback)((function(){var t;(J.current.update(),p.length>1&&!1===P)&&(null===(t=J.current)||void 0===t||t.next())}),[p,m]),ot=mo((0,i.useState)(!1),2),it=(ot[0],ot[1]),at=function(){it(!0)},ct=mo((0,i.useState)(!1),2),lt=ct[0],ut=ct[1];return(0,c.BX)(c.HY,{children:[(0,c.BX)("div",{className:"vw-cmp__keen-root ".concat(A),children:[lt&&(0,c.tZ)(po,{widgetId:v,videoId:p[R].id,closeModal:ut}),(0,c.tZ)("div",{ref:K,className:"vw-cmp__keen-player-slider",children:(0,c.tZ)(ge.M,{initial:!1,children:p.map((function(t,e){return(0,c.BX)(be.E.div,{className:"vw-cmp__keen-player-slide",transition:{duration:.4,times:[0,.95,1]},initial:{bottom:"-".concat(window.visualViewport.height,"px")},animate:{bottom:0},exit:{bottom:"".concat(window.visualViewport.height,"px")},children:[(0,c.tZ)(qn,{video:t,isCurrentPlaying:e===R,currentSlide:e,videoType:t.videoType,onEndedCallback:rt,onDataCollectCallback:at,handleOnPlayCallback:o,updateSliderAndGoToTheNextSlideCallback:function(){return function(){var t;J.current.update(),null===(t=J.current)||void 0===t||t.next()}()}}),!_&&!j&&(0,c.tZ)(eo,{})]},t.id)}))})}),b===a.Nk.ADD_TO_CART&&g&&(null===g||void 0===g?void 0:g.item_count)>0&&_&&(0,c.tZ)(ft,{}),q&&J.current&&(null===p||void 0===p?void 0:p.length)>1&&!1===P&&(0,c.tZ)(Wn,{onNext:rt,onPrev:et}),!1===P&&q&&J.current&&(null===p||void 0===p?void 0:p.length)>1&&(0,c.tZ)(to,{onShare:function(){return ut(!0)}}),_&&!j&&(0,c.tZ)(eo,{})]}),!1===j&&(!1===_||!0===_&&!1===P)&&(0,c.tZ)(Qn,{index:R,videos:p})]})};function bo(t){return bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(t)}function _o(){_o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==bo(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function xo(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function Co(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xo(i,n,o,a,c,"next",t)}function c(t){xo(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Oo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Lo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Oo(Object(r),!0).forEach((function(e){Eo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Eo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function So(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return ko(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ko(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ko(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zo={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:10010},content:{position:"absolute",top:"0",left:"0",right:"0",bottom:"0",border:"0",background:"none",overflow:"hidden",borderRadius:"0",WebkitOverflowScrolling:"touch",outline:"none",padding:"0"}},Po=null,jo=null,No=0;const Io=function(t){var e,r,n=t.currentVideoType,o=t.trackingContext,l=t.selectedVideoId,s=t.onSelectVideo,d=t.onClose,p=u().player,h=O(),v=h.showMore,y=h.isLoadingInProgress,m=h.shoppableList,w=L(),g=(0,F.ac)("(max-width: 1023px)"),b=(p||{}).showLogo,_=f(),x=_.videos,C=_.currentSlideForQuizInteraction,E=So((0,i.useState)(!1),2),S=E[0],k=E[1],Z=So((0,i.useState)(!1),2),P=Z[0],N=Z[1],I=So((0,i.useState)(""),2),T=I[0],A=I[1],B=So((0,i.useState)(0),2),R=B[0],H=B[1],D=So((0,i.useState)(!1),2),V=D[0],U=D[1],W=(0,i.useRef)(null),z=n===a.cl.YOUTUBE,Y=p&&p.cropVideo,K=f().setAppState,J=(0,M.Z)("vw-player__container vw-player__".concat(n.toLowerCase()," vw-player__portrait vw-type__").concat(n.toLowerCase()),(Eo(e={},"vw-show--badge",!1),Eo(e,"vw-player--shoppable",m.length>0),Eo(e,"vw-player--interaction",V),Eo(e,"vw-player--fullscreen",Y),Eo(e,"vw-shoppable--on",v),Eo(e,"vw-shoppable--is-closing",S),e)),Q=function(t){return t.preventDefault(),t.stopImmediatePropagation(),null},tt=function(){document.querySelector("html").classList.remove("vm-modal--open"),K((function(t){return Lo(Lo({},t),{},{videos:t.widget.videos})})),d(),rt(),window.scrollTo(0,No)},et=function(){return k(!0)},rt=function(){(0,G.j)(a.X8.EngagementTime,Lo(Lo({},o),{},{videoId:T,time:(0,G.Yi)(R),videoType:n}))};(0,i.useEffect)((function(){var t=function(){document.documentElement.style.setProperty("--window-inner-height","".concat(window.innerHeight,"px"))};return window.addEventListener("resize",t),t(),function(){return window.removeEventListener("resize",t)}}),[]),(0,i.useEffect)((function(){(0,G.j)(a.X8.Click,Lo(Lo({},o),{},{videoId:l,videoType:n}))}),[l,o,n]),(0,i.useEffect)((function(){S&&setTimeout((function(){k(!1)}),500)}),[S]),(0,i.useEffect)((function(){return pt("vwClosePanel:click",et),function(){ht("vwClosePanel:click",et)}}),[]),(0,i.useEffect)((function(){window.SKIP_CART||Co(_o().mark((function t(){var e,r;return _o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,nt.ZP)().getStoreCart();case 3:e=t.sent,r={cart:e},w({type:j.a.GET_CART,payload:r}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.error("Error cart obj: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()}),[]),(0,i.useEffect)((function(){var t=function(t){27===t.keyCode&&tt()};return window.addEventListener("keydown",t),function(){return window.removeEventListener("keydown",t)}}),[]);var ot=So((0,i.useState)(""),2),it=ot[0],at=ot[1];(0,i.useEffect)((function(){var t=x.find((function(t){return t.id===T}));!0===(0,$.wL)(t)?(U(!0),at(t)):U(!1)}),[T]);var ct=function(t){window.open(t,"_blank"),Po()},lt=function(){var t=Co(_o().mark((function t(e,r,n){var o,i,a;return _o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return!0===["product","pageUrl"].includes(r.type)&&ct(r.data.url),t.next=3,q().post("".concat("https://api.videowise.com","/formData/").concat(e,"/vote/"),n);case 3:o=t.sent,i=_.videos,a=i.find((function(t){return t.id===o.data.id})),"undefined"===typeof a&&(i=(0,$.a)(i,C+1,o.data)),"video"===r.type&&(K((function(t){return Lo(Lo({},t),{},{videos:i})})),setTimeout((function(){jo.update(),jo.next()}),1e3));case 8:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();return(0,c.tZ)(X(),{overlayRef:function(t){return W.current=t},ariaHideApp:!1,onAfterOpen:function(){No=window.scrollY,document.querySelector("html").classList.add("vm-modal--open"),N(!0),W.current.addEventListener("pointermove",Q)},onAfterClose:function(){N(!1)},onRequestClose:tt,style:Zo,shouldCloseOnEsc:!0,isOpen:!0,children:(0,c.BX)("div",{id:"vw-modal-root",className:"vw-cmp__modal-root vw-cmp__modal-root--portrait notranslate ".concat(J),children:[y&&(0,c.tZ)(Tr,{}),(0,c.BX)("div",{className:"vw-cmp__modal--content",children:[P&&(0,c.tZ)(go,{selectedVideoId:l,onSelectVideo:s,handleEngagementTime:function(t,e){A(t),H(e)},handleOnPlayCallback:function(t){Po=t},instanceRefCurrentCallback:function(t){jo=t}}),!V&&(0,c.tZ)(we,{isInMiniPlayer:!1,videoType:n}),V&&!g&&(0,c.tZ)(Ir,{context:"player",isMiniPlayer:!1,elements:null===it||void 0===it||null===(r=it.interaction)||void 0===r?void 0:r.elements,videoType:n,handleOnRedirectCallback:function(t){return ct(t)},handleInteractionSelectedCallback:function(t,e,r){return lt(t,e,r)},handleOnFocusCallback:function(t){return console.log("START Player handleOnFocusCallback!",t)}})]}),!v&&(0,c.BX)(c.HY,{children:[(0,c.tZ)("div",{className:"vw-cmp__player--button-close vw-cmp__player--button",onClick:tt,children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0002 10.586L4.70718 3.29297L3.29297 4.70718L10.586 12.0002L3.29297 19.2933L4.70718 20.7075L12.0002 13.4145L19.2933 20.7075L20.7075 19.2933L13.4145 12.0002L20.7075 4.70723L19.2933 3.29302L12.0002 10.586Z",fill:"white"})})})}),b&&!z&&(0,c.tZ)(Bt,{})]})]})})},To=function(t){var e=Math.floor(t/3600),r=Math.floor((t-3600*e)/60),n=Math.floor(t-3600*e-60*r),o="";return e&&(o+="".concat(e<10?"0".concat(e):e.toString(),":")),o+="".concat(r<10?"0".concat(r):r.toString(),":"),o+="".concat(n<10?"0".concat(n):n.toString())};var Ao=r(8292);const Bo=function(t){var e=t.style,r=t.size,n=t.position,o=t.opacity,i=t.borderColor,a=t.borderSize,l=t.background,u=t.animation,s=t.color,d=0===o?0:o/100;if(0!==d){var f={STANDARD:function(){return(0,c.BX)("svg",{className:"needsclick",viewBox:"0 0 200 200",fill:"none",children:[(0,c.tZ)("mask",{id:"qA",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"200",height:"200",maskType:"alpha",children:(0,c.tZ)("path",{fill:"#fff",fillRule:"evenodd",d:"M200 0H0v200h200V0zM100 150c27.614 0 50-22.386 50-50s-22.386-50-50-50-50 22.386-50 50 22.386 50 50 50z"})}),(0,c.BX)("g",{mask:"url(#qA)",fillOpacity:d,children:[(0,c.tZ)("circle",{className:"pulse",fillOpacity:d<.1?0:d,fill:l,cx:"100",cy:"100",r:"50"}),(0,c.tZ)("circle",{className:"shine",strokeOpacity:d<.1?0:d,stroke:l,strokeWidth:"5",cx:"100",cy:"100",r:"47.5"})]}),(0,c.tZ)("path",{fill:l,fillOpacity:d,fillRule:"evenodd",d:"M100 150c27.614 0 50-22.386 50-50s-22.386-50-50-50-50 22.386-50 50 22.386 50 50 50zm22-50L89 81v38l33-19z"}),(0,c.tZ)("path",{fill:s,d:"M89 119V81l33 19-33 19z"})]})},OUTLINE:function(){return(0,c.BX)("svg",{className:"needsclick",viewBox:"0 0 200 200",fill:"none",children:[(0,c.tZ)("mask",{id:"qB",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"200",height:"200",maskType:"alpha",children:(0,c.tZ)("path",{fill:"#fff",fillRule:"evenodd",d:"M200 0H0v200h200V0zM100 150c27.614 0 50-22.386 50-50s-22.386-50-50-50-50 22.386-50 50 22.386 50 50 50z"})}),(0,c.BX)("g",{mask:"url(#qB)",fillOpacity:d,children:[(0,c.tZ)("circle",{className:"pulse",fill:l,cx:"100",cy:"100",r:"50"}),(0,c.tZ)("circle",{className:"shine",stroke:l,strokeWidth:"5",cx:"100",cy:"100",r:"47.5"})]}),(0,c.tZ)("path",{fill:l,fillOpacity:d,fillRule:"evenodd",d:"M147 100c0 25.957-21.043 47-47 47s-47-21.043-47-47 21.043-47 47-47 47 21.043 47 47zm3 0c0 27.614-22.386 50-50 50s-50-22.386-50-50 22.386-50 50-50 50 22.386 50 50zm-28 0L89 81v38l33-19z"})]})},MINIMAL:function(){return(0,c.BX)("svg",{className:"needsclick",viewBox:"0 0 150 172",fill:"none",children:[(0,c.tZ)("mask",{id:"qC",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"150",height:"172",maskType:"alpha",children:(0,c.tZ)("path",{fill:"#fff",fillRule:"evenodd",d:"M150 0H0v172h150V0zm-38 86L37 43v86l75-43z"})}),(0,c.BX)("g",{mask:"url(#qC)",fillOpacity:d,children:[(0,c.tZ)("path",{className:"pulse",fill:l,d:"M37 129V43l75 43-75 43z"}),(0,c.tZ)("path",{className:"shine",stroke:l,strokeWidth:"5",d:"M39.5 124.685v-77.37L106.974 86 39.5 124.685z"})]}),(0,c.tZ)("path",{fill:l,fillOpacity:d,d:"M37 129V43l75 43-75 43z"})]})},RECTANGLE:function(){return(0,c.BX)("svg",{className:"needsclick",viewBox:"0 0 200 148",fill:"none",children:[(0,c.tZ)("mask",{id:"qD",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"200",height:"148",maskType:"alpha",children:(0,c.tZ)("path",{fill:"#fff",fillRule:"evenodd",d:"M200 0H0v148h200V0zM56 37a6 6 0 0 0-6 6v62a6 6 0 0 0 6 6h88a6 6 0 0 0 6-6V43a6 6 0 0 0-6-6H56z"})}),(0,c.BX)("g",{mask:"url(#qD)",fillOpacity:d,children:[(0,c.tZ)("rect",{className:"pulse",fill:l,x:"50",y:"37",width:"100",height:"74",rx:"6"}),(0,c.tZ)("rect",{className:"shine",stroke:l,strokeWidth:"5",x:"52.5",y:"39.5",width:"95",height:"69",rx:"3.5"})]}),(0,c.tZ)("path",{fill:l,fillOpacity:d,fillRule:"evenodd",d:"M56 37a6 6 0 0 0-6 6v62a6 6 0 0 0 6 6h88a6 6 0 0 0 6-6V43a6 6 0 0 0-6-6H56zm66 37L89 55v38l33-19z"}),(0,c.tZ)("path",{fill:s,d:"M89 93V55l33 19-33 19z"})]})}},p=u?"vw-cmp__animation--".concat(u.toLowerCase()):"",h={};a&&(h.border="".concat(a,"px solid ").concat(i)),l&&(h["--vw-button-background"]=l);var v=f[e];return(0,c.tZ)(c.HY,{children:(0,c.tZ)("div",{className:"vw-cmp__in-video-card-button vw-cmp__video-card--play-icon vw-cmp__icon-size--".concat(r," vw-cmp__icon-position--").concat(n," ").concat(p," ").concat(e," needsclick"),style:h,children:(0,c.tZ)("div",{className:"needsclick",children:(0,c.tZ)(v,{})})})})}};function Ro(t){return Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ro(t)}function Ho(){Ho=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==Ro(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function Do(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function Mo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Fo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fo(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Go={landscape:"56.25%",portrait:"177.77%",square:"100%"};const Vo=function(t){var e,r,n,o=t.video,l=t.videoType,s=t.onClick,d=u().skin,f=d.playButton,p=d.thumbnail,h=d.videoMetaData,v=(0,$.mj)(o.thumbnail.url),y=o.title,m=o.duration,w=(null===f||void 0===f?void 0:f.type)===a.wy.icon?"iconButton":"textButton",g=f&&f.iconButton&&"NO_ANIMATION"!==f.iconButton.animation,b=f&&d.playButton[w].size?d.playButton[w].size.toLowerCase():"small",_=f&&f[w].position?f[w].position.toLowerCase():"center",x=g?f.iconButton.animation:null,C=p&&p.format?null===(e=p.format)||void 0===e?void 0:e.toLowerCase():"landscape",O=(0,M.Z)("vw-cmp__in-video-card--preview vw-cmp__in-video-card--position-".concat(_)),L=function(){return!!(o||{}).muxClipPlaybackId},E=(0,i.useRef)(),S=Mo((0,i.useState)(!1),2),k=S[0],Z=S[1],P=Mo((0,i.useState)(),2),j=P[0],N=P[1],I=Mo((0,i.useState)(!1),2),T=(I[0],I[1]);window.screen.width;(0,i.useEffect)((function(){new IntersectionObserver((function(t){var e=t[0];e.isIntersecting?(N(e.isIntersecting),Z(!0)):Z(!1)})).observe(E.current)}),[]);var A="custom"===C?function(){var t=Number.parseFloat(p.width/p.height*100).toFixed(2);return"".concat(t,"%")}():Go[C],B={paddingBottom:"custom"===C?"0":A,width:"custom"===C?p.width:"initial",height:"custom"===C?p.height:"initial"},R={borderRadius:p&&p.radius?p.radius:null},H=h&&"BOLD"===h.titleTextWeight?"700":"400",D={color:h&&h.showTitle?h.titleTextColor:"#000",fontSize:h&&h.showTitle?h.titleTextSize:null,fontWeight:h&&h.showTitle?H:null},F={color:d.playButton[w]&&d.playButton[w].color?d.playButton[w].color:"#fff",background:d.playButton[w]&&d.playButton[w].backgroundColor?d.playButton[w].backgroundColor:"#000",border:d.playButton[w]&&d.playButton[w].showBorder?"".concat(d.playButton[w].borderWidth,"px solid ").concat(d.playButton[w].borderColor):0,fontSize:d.playButton[w]&&d.playButton[w].fontSize?"".concat(d.playButton[w].fontSize,"px"):"14px"};(null===f||void 0===f?void 0:f.type)===a.wy.text&&(F.borderRadius="".concat(d.playButton[w].radius,"px"));var G,V,X=function(){var t,e=(t=Ho().mark((function t(){return Ho().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Z(!1),T(!1),s();case 3:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Do(i,n,o,a,c,"next",t)}function c(t){Do(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();return(0,c.BX)("div",{ref:E,onClick:X,className:"".concat(function(){var t=h&&h.placement.toLowerCase()||"over",e=["over","under","hidden"].find((function(e){return t.includes(e)}))||"over";return"".concat(Ao.jW,"-content-").concat(e)}()," vw-cmp__in-video-card--root needsclick"),children:[(0,c.BX)("div",{className:O,style:B,children:[(0,c.tZ)("div",{className:"vw-cmp__in-video-card--thumb",style:R,children:(0,c.tZ)("img",{className:"needsclick",src:v,alt:(V=o.title,null===V?"":V.replace(/['"]+/g,"")),loading:"lazy"})}),p&&j&&p.autoplay&&(0,c.BX)("div",{className:"vw-cmp__in-video-card--video",style:R,children:["youtube_video"!==l&&(0,c.tZ)(Sn,{url:(0,$.cy)(o,!0),className:"vw__video-player noibu-blocked",width:"100%",height:"100%",controls:!1,muted:!0,loop:!0,playing:k,playsinline:!0,config:{file:{hlsOptions:{forceHLS:L(),debug:!1,capLevelToPlayerSize:!0,xhrSetup:function(t,e){if(!t.readyState){var r=e.substring(0,e.indexOf("&vsid")+1);r&&t.open("GET",r,!0)}}}}}}),"youtube_video"===l&&(0,c.tZ)(Nn,{url:(0,$.cy)(o,!0),className:"vw__video-player",width:"100%",height:"100%",controls:!1,muted:!0,loop:!0,playing:k,playsinline:!0,forceHLS:L()})]}),p&&p.showBorder&&(0,c.tZ)("span",{className:"vw-cmp__in-video-card--thumb-border",style:{boxShadow:"inset 0 0 0 ".concat(p.borderWidth,"px ").concat(p.borderColor),borderRadius:p&&p.radius?p.radius:null}}),f&&f.type===a.wy.icon&&(0,c.tZ)(Bo,{color:f[w].color,animation:x,style:f[w].style,size:b,position:_,opacity:f[w].backgroundOpacity,borderColor:f[w].borderColor,background:f[w].backgroundColor,borderSize:f[w]&&f[w].showBorder?f[w].borderWidth:null}),f&&f.type===a.wy.text&&(null===(r=f[w])||void 0===r?void 0:r.text)&&(0,c.tZ)("div",{className:"vw-cmp__popup-card--cta-button vw-cmp__in-video-card-button",style:F,children:(0,c.tZ)("span",{children:null===(n=f[w])||void 0===n?void 0:n.text})}),h&&h.showDuration&&!!m&&(0,c.tZ)("div",{className:"vw-cmp__in-video-card--duration notranslate",children:To(m)})]}),h&&h.showTitle&&(0,c.tZ)("div",{className:"vw-cmp__in-video-card--details vw-cmp__in-video-card--details--position-".concat(_),children:(0,c.tZ)("div",{className:"vw-cmp__in-video-card--title",style:D,dangerouslySetInnerHTML:(G=y,{__html:G})})})]})};const Xo=function(){var t,e,r=u();if(r.skin.heading){var n=r.skin.heading,o=n.mainHeading,i=n.subHeading,a=n.alignment,l=n.bottomPadding,s=n.paddingBetween,d=("CSS"===o.style&&"vw-cmp__top-heading--title ".concat(i.cssClass),"CSS"===i.style&&"vw-cmp__top-heading--subtitle ".concat(i.cssClass),function(t,e){var r=t.textSize,n=t.textWeight,o=t.textColor,i=t.style,a={fontSize:r,fontWeight:"BOLD"===n?"700":"400",color:o||"#000",marginTop:"subheading"===e?"".concat(s,"px"):"0px"};return"SIMPLE"===i?a:null}),f=function(t,e){var r=t.cssClass;return"CSS"===t.style?r:{title:"vw-cmp__top-heading--title",subtitle:"vw-cmp__top-heading--subtitle"}[e]},p=(null===o||void 0===o||null===(t=o.tag)||void 0===t?void 0:t.toLowerCase())||"div",h=(null===i||void 0===i||null===(e=i.tag)||void 0===e?void 0:e.toLowerCase())||"div";return(0,c.tZ)(c.HY,{children:(o&&o.show||i&&i.show)&&(0,c.BX)("div",{className:"vw-cmp__top-heading vw-cmp__align--".concat(a.toLowerCase()),style:{marginBottom:l||null},children:[o&&o.show&&o.text&&(0,c.tZ)(p,{className:f(o,"title"),style:d(o,"heading"),children:o.text}),i&&i.show&&i.text&&(0,c.tZ)(h,{className:f(i,"subtitle"),style:d(i,"subheading"),children:i.text})]})})}};const Uo=function(t){var e=t.onSelect,r=f(),n=u().skin,o=n.layout,i=n.spacing,a=r.videos[0],l=(0,M.Z)("vw-cmp__single--root vw-cmp__single--layout- vw-cmp__single--align-".concat("center")),s={background:o.background?o.background:"transparent",padding:"".concat(i.marginTop,"px ").concat(i.marginRight,"px ").concat(i.marginBottom,"px ").concat(i.marginLeft,"px")};return(0,c.BX)("div",{className:l,style:s,children:[(0,c.tZ)(Xo,{}),(0,c.tZ)("div",{className:"vw-cmp__single--wrapper",children:(0,c.tZ)(Vo,{video:a,videoType:a.videoType,onClick:function(){return e(a)}})})]})};function qo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Wo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wo(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const zo=function(t){var e=t.onSelect,r=f(),n=u(),o=r.containerElement,l=r.videos,s=n.skin,d=s.layout,p=s.spacing,h=function(t){var e=qo((0,i.useState)({width:0,height:0,displayType:a.X_.Medium}),2),r=e[0],n=e[1],o=r.width,c=r.height,l=r.displayType;function u(){if(t){var e=t.getBoundingClientRect(),r=e.height,i=e.width,l=Object.keys(a.X_).find((function(t){return i<=Number(a.X_[t])}));i===o&&r===c||n({width:i,height:r,displayType:a.X_[l]})}}return(0,i.useEffect)((function(){function t(){u()}return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}})),u(),{height:c,width:o,displayType:l}}(o),v=h.displayType,y={columnGap:p.paddingBetween,rowGap:p.paddingBetween,gridTemplateColumns:"repeat(".concat(d.columns,", 1fr)")},m={background:d.background?d.background:"transparent",padding:"".concat(p.marginTop,"px ").concat(p.marginRight,"px ").concat(p.marginBottom,"px ").concat(p.marginLeft,"px")};return(0,c.tZ)(c.HY,{children:(0,c.BX)("div",{className:"vw-cmp__inline-grid--root ".concat(function(){var t="".concat(a.jW,"__grid--lg");return a.X_.ExtraSmall===v&&(t="".concat(a.jW,"__grid--sm")),t}()),style:m,children:[(0,c.tZ)(Xo,{}),(0,c.tZ)("div",{className:"vw-cmp__inline-grid--wrapper",style:y,children:l.map((function(t,r){return(0,c.tZ)(Vo,{video:t,videoType:t.videoType,onClick:function(){return e(t)}},r)}))})]})})};function Yo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||$o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $o(t,e){if(t){if("string"===typeof t)return Ko(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ko(t,e):void 0}}function Ko(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Jo=function(t){var e=t.navKey,r=t.instanceRef,n=u().skin;if(n.navigationArrows){var o=n.navigationArrows,a=o.arrowColor,l=o.backgroundColor,s=o.backgroundOpacity,d=o.iconType,f=o.position,p=o.size,h=a||"#000",v={ARROWS_LEFT:function(){return(0,c.tZ)("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M9.5 4.5L2 12M2 12L9.5 19.5M2 12H22",stroke:h,strokeWidth:"2",strokeLinecap:"square"})})},ARROWS_RIGHT:function(){return(0,c.tZ)("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M14.5 4.5L22 12M22 12L14.5 19.5M22 12H2",stroke:h,strokeWidth:"2",strokeLinecap:"square"})})},CIRCLE_ARROW_LEFT:function(){return(0,c.BX)("svg",{width:"100%",height:"100%",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0V0C7.16344 0 0 7.16344 0 16V16C0 24.8366 7.16344 32 16 32V32C24.8366 32 32 24.8366 32 16V16Z",fill:l,fillOpacity:s}),(0,c.tZ)("path",{d:"M13.5 9.5L7 16M7 16L13.5 22.5M7 16H25",stroke:h,strokeWidth:"2",strokeLinecap:"square"})]})},CIRCLE_ARROW_RIGHT:function(){return(0,c.BX)("svg",{width:"100%",height:"100%",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0V0C7.16344 0 0 7.16344 0 16V16C0 24.8366 7.16344 32 16 32V32C24.8366 32 32 24.8366 32 16V16Z",fill:l,fillOpacity:s}),(0,c.tZ)("path",{d:"M18.5 9.5L25 16M25 16L18.5 22.5M25 16H7",stroke:h,strokeWidth:"2",strokeLinecap:"square"})]})},SQUARE_ARROW_LEFT:function(){return(0,c.BX)("svg",{width:"100%",height:"100%",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{d:"M32 4C32 1.79086 30.2091 0 28 0H4C1.79086 0 0 1.79086 0 4V28C0 30.2091 1.79086 32 4 32H28C30.2091 32 32 30.2091 32 28V4Z",fill:l,fillOpacity:s}),(0,c.tZ)("path",{d:"M12.5 9.5L6 16M6 16L12.5 22.5M6 16H26",stroke:h,strokeWidth:"2",strokeLinecap:"square"})]})},SQUARE_ARROW_RIGHT:function(){return(0,c.BX)("svg",{width:"100%",height:"100%",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{d:"M32 4C32 1.79086 30.2091 0 28 0H4C1.79086 0 0 1.79086 0 4V28C0 30.2091 1.79086 32 4 32H28C30.2091 32 32 30.2091 32 28V4Z",fill:l,fillOpacity:s}),(0,c.tZ)("path",{d:"M19.5 9.5L26 16M26 16L19.5 22.5M26 16H6",stroke:h,strokeWidth:"2",strokeLinecap:"square"})]})},CHEVRON_LEFT:function(){return(0,c.tZ)("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M15.5 3.5L7 12L15.5 20.5",stroke:h,strokeWidth:"2",strokeLinecap:"square"})})},CHEVRON_RIGHT:function(){return(0,c.tZ)("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{d:"M8.5 3.5L17 12L8.5 20.5",stroke:h,strokeWidth:"2",strokeLinecap:"square"})})},CIRCLE_CHEVRON_LEFT:function(){return(0,c.BX)("svg",{width:"100%",height:"100%",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0V0C7.16344 0 0 7.16344 0 16V16C0 24.8366 7.16344 32 16 32V32C24.8366 32 32 24.8366 32 16V16Z",fill:l,fillOpacity:s}),(0,c.tZ)("path",{d:"M18.5 8.5L11 16L18.5 23.5",stroke:h,strokeWidth:"2",strokeLinecap:"square"})]})},CIRCLE_CHEVRON_RIGHT:function(){return(0,c.BX)("svg",{width:"100%",height:"100%",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0V0C7.16344 0 0 7.16344 0 16V16C0 24.8366 7.16344 32 16 32V32C24.8366 32 32 24.8366 32 16V16Z",fill:l,fillOpacity:s}),(0,c.tZ)("path",{d:"M13.5 8.5L21 16L13.5 23.5",stroke:h,strokeWidth:"2",strokeLinecap:"square"})]})},SQUARE_CHEVRON_LEFT:function(){return(0,c.BX)("svg",{width:"100%",height:"100%",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{d:"M32 4C32 1.79086 30.2091 0 28 0H4C1.79086 0 0 1.79086 0 4V28C0 30.2091 1.79086 32 4 32H28C30.2091 32 32 30.2091 32 28V4Z",fill:l,fillOpacity:s}),(0,c.tZ)("path",{d:"M18.5 8.5L11 16L18.5 23.5",stroke:h,strokeWidth:"2",strokeLinecap:"square"})]})},SQUARE_CHEVRON_RIGHT:function(){return(0,c.BX)("svg",{width:"100%",height:"100%",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("path",{d:"M32 4C32 1.79086 30.2091 0 28 0H4C1.79086 0 0 1.79086 0 4V28C0 30.2091 1.79086 32 4 32H28C30.2091 32 32 30.2091 32 28V4Z",fill:l,fillOpacity:s}),(0,c.tZ)("path",{d:"M13.5 8.5L21 16L13.5 23.5",stroke:h,strokeWidth:"2",strokeLinecap:"square"})]})}},y=v["".concat(d,"_LEFT")],m=v["".concat(d,"_RIGHT")],w=Yo((0,i.useState)(0),2),g=w[0],b=w[1];return(0,i.useEffect)((function(){var t=document.getElementById("reeview-app-widget_".concat(n.widgetId)).querySelector(".keen-slider");new ResizeObserver((function(t){var e,r=function(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=$o(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(t);try{for(r.s();!(e=r.n()).done;){var n=e.value.contentRect.height;b(n)}}catch(o){r.e(o)}finally{r.f()}})).observe(t),b(t.clientHeight)}),[]),(0,c.BX)(c.HY,{children:[(0,c.tZ)("button",{onClick:function(){var t;return null===(t=r.current)||void 0===t?void 0:t.prev()},"aria-label":"prev",className:"rw__swiper--carousel-btn rw__swiper-btn--prev rw__swiper-btn--prev-carousel-".concat(e," rw__swiper--position-").concat(f.toLowerCase()," rw__swiper--carousel-btn-").concat(p.toLowerCase()),style:{top:"calc(".concat(g,"px / 2)")},children:(0,c.tZ)(y,{})}),(0,c.tZ)("button",{onClick:function(){var t;return null===(t=r.current)||void 0===t?void 0:t.next()},"aria-label":"next",className:"rw__swiper--carousel-btn rw__swiper-btn--next rw__swiper-btn--next-carousel-".concat(e," rw__swiper--position-").concat(f.toLowerCase()," rw__swiper--carousel-btn-").concat(p.toLowerCase()),style:{top:"calc(".concat(g,"px / 2)")},children:(0,c.tZ)(m,{})})]})}};r(5012);function Qo(t){return function(t){if(Array.isArray(t))return ri(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ei(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||ei(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ei(t,e){if(t){if("string"===typeof t)return ri(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ri(t,e):void 0}}function ri(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ni=function(t){return t&&t.columns?t.columns:2};const oi=function(t){var e,r,n,o=t.onSelect,a=ti((0,i.useState)(!1),2),l=a[0],s=a[1],d=f(),p=u(),h=(d||{}).videos,v=p.skin||{},y=v.layout,m=v.spacing,w=v.navigationArrows,g=v.carouselAutoplay,b=v.videoMetaData,_=v.style,x=(0,i.useRef)(0),C=w&&"OUTSIDE_THE_SLIDER"===(null===w||void 0===w?void 0:w.position)?"outside":"inside",O=null===w||void 0===w?void 0:w.hideNavigationArrows,L=null===w||void 0===w?void 0:w.showNavigationDots,E=(0,F.ac)("(max-width: 576px)"),S=null===g||void 0===g?void 0:g.autoplay,k=null!==g&&void 0!==g&&g.secondsTillFlip?1e3*(null===g||void 0===g?void 0:g.secondsTillFlip):3e3,Z=b&&b.placement.toLowerCase()||"over",P=(0,M.Z)("vw-cmp__carousel--wrapper vw-cmp__carousel--navigation-".concat(O?"":C," vw-cmp__carousel-content-").concat(Z),(n=L,(r="vw-cmp__carousel--pagination")in(e={})?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e)),j=Math.floor(100*Math.random()),N=y?{background:y.background?y.background:null,padding:"".concat(null===m||void 0===m?void 0:m.marginTop,"px ").concat(null===m||void 0===m?void 0:m.marginRight,"px ").concat(null===m||void 0===m?void 0:m.marginBottom,"px ").concat(null===m||void 0===m?void 0:m.marginLeft,"px")}:null,I=ti((0,i.useState)(0),2),T=I[0],A=I[1],B=ti((0,i.useState)(!1),2),R=B[0],H=B[1],D=(0,wt.E)({initial:0,renderMode:"performance",mode:E?"free-snap":"snap",slideChanged:function(t){},animationEnded:function(t){A(t.track.details.rel)},created:function(){H(!0)},slides:{perView:_&&"EXTENDED_THUMBNAILS"===_.carouselType?ni(y)+.3:ni(y),spacing:m&&m.paddingBetween||0},loop:!!S},[function(t){if(S){var e,r=function(){clearTimeout(e)},n=function(){clearTimeout(e),o||(e=setTimeout((function(){t.next()}),k))},o=!1;t.on("created",(function(){t.container.addEventListener("mouseover",(function(){o=!0,r()})),t.container.addEventListener("mouseout",(function(){o=!1,n()})),n()})),t.on("dragStarted",r),t.on("animationEnded",n),t.on("updated",n)}}]),G=ti(D,3),V=G[0],X=G[1],U=G[2];window.dispatchEvent(new Event("resize")),(0,i.useEffect)((function(){var t;X.current&&(null===(t=X.current)||void 0===t||t.update(),x.current=Math.ceil(X.current.slides.length-ni(y))+1,x.current>1&&s(!0))}),[X.current,h,U]);return(0,c.tZ)(c.HY,{children:(0,c.BX)("div",{className:"vw-cmp__carousel--root",style:N,children:[(0,c.tZ)(Xo,{}),(0,c.BX)("div",{className:P,children:[(0,c.tZ)(c.HY,{children:(0,c.BX)("div",{className:"keen-slider--root",children:[(0,c.tZ)("div",{ref:V,className:"keen-slider",style:{overflow:_&&"EXTENDED_THUMBNAILS"===_.carouselType?"visible":null,justifyContent:h.length<ni(y)?"center":"flex-start"},children:h.map((function(t,e){return(0,c.tZ)("div",{className:"keen-slider__slide",children:(0,c.tZ)(Vo,{video:t,videoType:t.videoType,onClick:function(){return o(t)}},e)},e)}))}),L&&R&&x.current>1&&l&&(0,c.tZ)("div",{className:"keen-slider--dots",children:Qo(Array(Number(x.current)).keys()).map((function(t){var e=Math.max.apply(Math,Qo(Array(Number(x.current)).keys()));return(0,c.tZ)("div",{className:"dot"+(T===t||t===e&&T>t?" active":"")},t)}))})]})}),l&&!O&&(0,c.tZ)(Jo,{instanceRef:X,navKey:j})]})]})})};const ii=function(){return(0,c.tZ)("div",{className:"vw--widget-bottom",style:"height: 0 !important; visibility: hidden !important;",children:(0,c.tZ)("a",{target:"_blank",href:"https://videowise.com/",title:"Videowise - eCommerce Video Platform","aria-label":"Videowise - eCommerce Video Platform",children:"Videowise - eCommerce Video Platform"})})};var ai=r(2004);function ci(t){return ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(t)}function li(){li=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==ci(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function ui(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}function si(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function di(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?si(Object(r),!0).forEach((function(e){fi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):si(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fi(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return hi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hi(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const vi=function(t){var e,r,n,o,l,s,d,p,h,v,y,m,w,g,b,_,x,C,E,S,k,Z,P,j=t.isMiniPlayer,N=t.onSelect,I=t.isOpen,T=f(),A=T.videos,B=(T.widget,T.setAppState),R=u().skin,H=L(),D=O(),F=A[0],G=R.skinType===a.I0.Inline,V=R&&R.appearance.position?null===(e=R.appearance)||void 0===e?void 0:e.position.toLowerCase():WIDGET_FLOATING_POSTION.BOTTOM_LEFT,X=R&&R.introAnimation&&null!==(r=R.introAnimation)&&void 0!==r&&r.introAnimation?null===(n=R.introAnimation)||void 0===n?void 0:n.introAnimation.toLowerCase():WIDGET_FLOATING_POSTION.BOTTOM_LEFT,U=R&&R.playButton.type&&R.playButton.type===a.wy.icon?"iconButton":"textButton",W=R&&R.playButton[U].position?R.playButton[U].position.toLowerCase():"center",z="CLOSE"===(null===(o=R.closeButton)||void 0===o?void 0:o.buttonType),Y="MINIMIZED"===(null===(l=R.closeButton)||void 0===l?void 0:l.buttonType),K=R.playButton&&R.playButton.iconButton&&"NO_ANIMATION"!==R.playButton.iconButton.animation?R.playButton.iconButton.animation:null,J=R.playButton&&R.playButton.iconButton.size?R.playButton.iconButton.size.toLowerCase():"small",Q=(0,i.useRef)(!1),tt=(0,i.useRef)(!1),et=(0,i.useRef)(!1),rt=pi((0,i.useState)(!0),2),ot=rt[0],it=rt[1],at=pi((0,i.useState)(!1),2),ct=at[0],lt=at[1],ut=function(t,e){var r=(0,i.useRef)();return{start:(0,i.useCallback)((function(){r.current=setTimeout(t,e)}),[t,e]),cancel:(0,i.useCallback)((function(){var t=r.current;t&&(r.current=void 0,clearTimeout(t))}),[r]),timeoutIdRef:r}}((function(){return it(false)}),1e3),st=pi((0,i.useState)(null),2),dt=st[0],ft=st[1],pt=pi((0,i.useState)({active:!1,state:"",muted:!0,loop:!0,playedSeconds:0,isLoading:!1}),2),ht=pt[0],vt=pt[1],yt=(0,M.Z)("".concat(Ao.jW,"-cmp__popup-card--preview"),fi({},"".concat(Ao.jW,"--show-text-on-top"),R.textOnTop.showTextOnTop)),mt=(0,M.Z)("".concat(Ao.jW,"__layout--").concat(null===(s=R.appearance)||void 0===s?void 0:s.type.toLowerCase()," ").concat(Ao.jW,"__shadow--").concat(null===(d=R.appearance)||void 0===d?void 0:d.dropShadow.toLowerCase()," ").concat(Ao.jW,"--position-").concat(V," ").concat(Ao.jW,"--animation-").concat(X),(fi(h={},"".concat(Ao.jW,"-hidden"),ot),fi(h,"".concat(Ao.jW,"-has-video"),R.autoplay),fi(h,"".concat(Ao.jW,"--is-minimized"),ct),fi(h,"".concat(Ao.jW,"--button-on-hover"),"ON_HOVER"===(null===(p=R.callToActionButton)||void 0===p?void 0:p.visibility)),fi(h,"".concat(Ao.jW,"--transition-end"),dt),fi(h,"".concat(Ao.jW,"--is-miniplayer-active"),ht.active),h)),wt=(fi(b={},"--vw-popup-width","".concat(null===(v=R.appearance)||void 0===v?void 0:v.width,"px")),fi(b,"--vw-popup-height","".concat(null===(y=R.appearance)||void 0===y?void 0:y.height,"px")),fi(b,"--vw-popup-position-left","".concat(null===(m=R.appearance)||void 0===m?void 0:m.marginLeft,"px")),fi(b,"--vw-popup-position-bottom","".concat(null===(w=R.appearance)||void 0===w?void 0:w.marginBottom,"px")),fi(b,"--vw-popup-border-radius","".concat(null===(g=R.appearance)||void 0===g?void 0:g.radius,"px")),b);"bottom_right"===V&&(wt["--vw-popup-position-left"]="auto",wt["--vw-popup-position-right"]="".concat(null===(P=R.appearance)||void 0===P?void 0:P.marginLeft,"px"));R&&null!==(_=R.introAnimation)&&void 0!==_&&_.appearAfter&&(wt["--vw-animation-delay"]="".concat(R.introAnimation.appearAfter,"s"));var gt,bt,_t,xt={};null!==(x=R.appearance)&&void 0!==x&&x.showBorder&&!ht.active&&(xt["--vw-popup-border"]="".concat(null===(gt=R.appearance)||void 0===gt?void 0:gt.borderWidth,"px solid ").concat(null===(bt=R.appearance)||void 0===bt?void 0:bt.borderColor),xt["--vw-popup-border-radius"]="".concat(null===(_t=R.appearance)||void 0===_t?void 0:_t.radius,"px"));var Ct,Ot,Lt,Et={};null!==(C=R.textOnTop)&&void 0!==C&&C.textColor&&(Et["--vw-popup-text-color"]=null===(Ct=R.textOnTop)||void 0===Ct?void 0:Ct.textColor);null!==(E=R.textOnTop)&&void 0!==E&&E.textWeight&&(Et["--vw-popup-text-font-weight"]=null===(Ot=R.textOnTop)||void 0===Ot?void 0:Ot.textWeight.toLowerCase());null!==(S=R.textOnTop)&&void 0!==S&&S.size&&(Et["--vw-popup-text-font-size"]="".concat(null===(Lt=R.textOnTop)||void 0===Lt?void 0:Lt.size,"px"));var St={fontSize:R.playButton[U]&&R.playButton[U].fontSize?"".concat(R.playButton[U].fontSize,"px"):"14px"};if(R.playButton[U].color&&(St["--vw-popup-button-color"]=R.playButton[U].color),R.playButton[U].backgroundColor){var kt=R.playButton[U].backgroundOpacity?R.playButton[U].backgroundOpacity/100:1;St["--vw-popup-button-bg"]=(0,Bn.rW)(R.playButton[U].backgroundColor,kt)}R.playButton[U].borderWidth&&(St["--vw-popup-button-border"]="".concat(R.playButton[U].borderWidth,"px solid ").concat(R.playButton[U].borderColor));var Zt=function(){return!!(F||{}).muxClipPlaybackId},Pt=function(t){if("undefined"!==typeof t){var e=Q.current.getInternalPlayer();!0===j?!1===ht.active?vt({active:!0,state:"playing",muted:!1,loop:!1,playedSeconds:0,isLoading:"custom_video"===F.videoType}):!0===e.paused?(vt((function(t){return di(di({},t),{},{state:"playing"})})),e.play()):(vt((function(t){return di(di({},t),{},{state:"pause"})})),e.pause()):N(F)}},jt=function(t){t.stopPropagation(),!0===ht.active?vt(di(di({},ht),{},{active:!1,state:"",muted:!0,loop:!0})):it(!0);var e=document.querySelector(".vw__video-player video");e&&e.pause()},Nt=function(){ft(!0)};(0,i.useEffect)((function(){!I&&tt.current&&it(!1)}),[I]),(0,i.useEffect)((function(){return tt.current=!0,ut.start(),function(){return ut.cancel()}}),[]),(0,i.useEffect)((function(){return ot?function(){}:R.autoplay?void 0:function(){}}),[ot]),(0,i.useEffect)((function(){var t=(0,Bn.al)();return et.current&&et.current.addEventListener(t,Nt,{once:!0}),function(){et.current&&et.current.removeEventListener(t,Nt)}}),[]),(0,i.useEffect)((function(){(0,nt.ZP)().setCommercials(A,0,H,!0)}),[F]),(0,i.useEffect)((function(){""!==ht.state&&Pt()}),[D.isVisible]);var It=function(t){t.stopPropagation(),vt(di(di({},ht),{},{muted:!ht.muted}))},Tt=function(t){window.open(t,"_blank"),Pt()},At=function(){var t,e=(t=li().mark((function t(e,r,n){var o;return li().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return!0===["product","pageUrl"].includes(r.type)?Tt(r.data.url):vt((function(t){return di(di({},t),{},{state:"playing",isLoading:"custom_video"===F.videoType})})),t.next=3,q().post("".concat("https://api.videowise.com","/formData/").concat(e,"/vote/"),n);case 3:o=t.sent,"video"===r.type&&setTimeout((function(){B((function(t){return di(di({},t),{},{videos:[o.data]})}))}),500);case 5:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ui(i,n,o,a,c,"next",t)}function c(t){ui(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t,r,n){return e.apply(this,arguments)}}(),Bt=function(t){!0===ht.active&&vt((function(e){return di(di({},e),{},{playedSeconds:t.playedSeconds})}))};return(0,c.BX)("div",{className:"vw-cmp__popup-card--root ".concat(mt),style:wt,ref:et,children:[!0===ht.isLoading&&(0,c.tZ)("div",{className:"vw--is-miniplayer-active-loading-control",children:(0,c.tZ)(Dr,{})}),(0,c.BX)("div",{className:"vw-cmp__popup-card--wrapper",onClick:Pt,children:[function(){var t=(0,$.cy)(F,!ht.active),e=t.includes("cdn.videowise.com"),r=t.includes("stream.mux.com");return(0,c.BX)(c.HY,{children:[(0,c.BX)("div",{className:yt,children:[!ct&&(0,c.tZ)(c.HY,{children:(0,c.BX)("div",{className:"vw-cmp__popup-card--video-container",children:["youtube_video"!==F.videoType&&(!0===e||!0===r?(0,c.tZ)(Sn,{ref:Q,url:t,className:"vw__video-player noibu-blocked",width:"100%",height:"100%",progressInterval:100,controls:!1,muted:ht.muted,loop:ht.loop,playing:R.autoplay||"playing"===ht.state,playsinline:!0,config:{file:{hlsOptions:{forceHLS:Zt(),debug:!1,capLevelToPlayerSize:!0,xhrSetup:function(t,e){if(!t.readyState){var r=e.substring(0,e.indexOf("&vsid")+1);r&&t.open("GET",r,!0)}}}}},onProgress:function(t){return Bt(t)},onEnded:function(){vt((function(t){return di(di({},t),{},{state:"pause"})}))},onReady:function(t){vt((function(t){return di(di({},t),{},{isLoading:!1})}))}}):(0,c.tZ)(ai.Z,{ref:Q,onProgress:function(t){return Bt(t)},url:t,progressInterval:100,className:"vw__video-player noibu-blocked",width:"100%",height:"100%",controls:!1,muted:ht.muted,loop:ht.loop,playing:R.autoplay||"playing"===ht.state,playsinline:!0,disableDeferredLoading:!0})),"youtube_video"===F.videoType&&(0,c.tZ)(Nn,{ref:Q,onProgress:function(t){return Bt(t)},url:t,className:"vw__video-player noibu-blocked",width:"100%",height:"100%",controls:!1,muted:ht.muted,loop:ht.loop,playing:R.autoplay||"playing"===ht.state,playsinline:!0,forceHLS:Zt()})]})}),(0,c.tZ)("div",{className:"vw-cmp__popup-card--img-container",children:(0,c.tZ)("img",{src:F.thumbnail.url,alt:F.title})})]}),!ct&&R.textOnTop.showTextOnTop&&R.textOnTop.text&&!ht.active&&(0,c.tZ)("h4",{className:"vw-cmp__popup-card--content",style:Et,children:R.textOnTop.text})]})}(),(0,c.BX)(c.HY,{children:[!0===ht.active&&(0,c.tZ)("div",{className:"vw-cmp__popup-card--button vw-cmp__popup-card--miniplayer-close",onClick:jt,children:(0,c.tZ)("span",{className:"vw-cmp__player--button-icon",children:(0,c.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0002 10.586L4.70718 3.29297L3.29297 4.70718L10.586 12.0002L3.29297 19.2933L4.70718 20.7075L12.0002 13.4145L19.2933 20.7075L20.7075 19.2933L13.4145 12.0002L20.7075 4.70723L19.2933 3.29302L12.0002 10.586Z",fill:"white"})})})}),!ct&&z&&!ht.active&&(0,c.tZ)("div",{className:"vw-cmp__popup-card--button vw-cmp__popup-card--close",onClick:jt,children:(0,c.BX)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("circle",{cx:"16",cy:"16",r:"16",fill:"black"}),(0,c.tZ)("g",{filter:"url(#filter0_d_18:1125)",children:(0,c.tZ)("path",{d:"M10.5 22L22 10.5M10.5 10.5L22 22",stroke:"white",strokeWidth:"2",strokeLinecap:"square",className:"vw-cmp__popup-card--button-icon"})}),(0,c.tZ)("defs",{children:(0,c.BX)("filter",{id:"filter0_d_18:1125",x:"5.08582",y:"5.08582",width:"22.3284",height:"22.3284",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.tZ)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,c.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,c.tZ)("feOffset",{}),(0,c.tZ)("feGaussianBlur",{stdDeviation:"2"}),(0,c.tZ)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,c.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,c.tZ)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_18:1125"}),(0,c.tZ)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_18:1125",result:"shape"})]})})]})}),!ct&&Y&&!ht.active&&(0,c.tZ)("div",{className:"vw-cmp__popup-card--button vw-cmp__popup-card--minimize",onClick:function(t){return t.stopPropagation(),void lt(!0)},children:(0,c.BX)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("circle",{cx:"16",cy:"16",r:"16",fill:"black",fillOpacity:"0.2"}),(0,c.tZ)("g",{filter:"url(#filter0_d_18:1239)",children:(0,c.tZ)("rect",{x:"8",y:"15",width:"16",height:"2",fill:"white"})}),(0,c.tZ)("defs",{children:(0,c.BX)("filter",{id:"filter0_d_18:1239",x:"4",y:"4",width:"24",height:"24",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.tZ)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,c.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,c.tZ)("feOffset",{}),(0,c.tZ)("feGaussianBlur",{stdDeviation:"2"}),(0,c.tZ)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,c.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,c.tZ)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_18:1239"}),(0,c.tZ)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_18:1239",result:"shape"})]})})]})})]}),!1===ht.active?(0,c.tZ)(c.HY,{}):(0,c.tZ)("div",{className:"vw-cmp__popup-card--button vw-cmp__popup-card--miniplayer-volume",onClick:It,children:!0===ht.muted?(0,c.BX)("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:[(0,c.tZ)("path",{d:"M2 10H7.81818L17 3V29L7.81818 22H2V10ZM8.49361 12L15 7.03968V24.9603L8.49361 20H4V12H8.49361Z",fill:"white"}),(0,c.tZ)("path",{d:"M20.8219 10.4325C20.4314 10.042 19.7982 10.042 19.4077 10.4325C19.0172 10.8231 19.0172 11.4562 19.4077 11.8468L23.643 16.0821L19.4077 20.3174C19.0172 20.708 19.0172 21.3411 19.4077 21.7316C19.7982 22.1222 20.4314 22.1222 20.8219 21.7316L25.0573 17.4963L29.2926 21.7316C29.6831 22.1222 30.3163 22.1222 30.7068 21.7316C31.0973 21.3411 31.0973 20.708 30.7068 20.3174L26.4715 16.0821L30.7068 11.8468C31.0973 11.4562 31.0973 10.8231 30.7068 10.4325C30.3163 10.042 29.6831 10.042 29.2926 10.4325L25.0573 14.6679L20.8219 10.4325Z",fill:"white"})]}):(0,c.BX)("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:[(0,c.tZ)("path",{d:"M7.81818 10H2V22H7.81818L17 29V3L7.81818 10Z",fill:"white"}),(0,c.tZ)("path",{d:"M21.8642 15.3638C21.8642 13.7454 21.0183 12.3245 19.7446 11.5191C19.1424 11.1383 18.7963 10.3527 19.1446 9.73111C19.4028 9.27025 19.9605 9.05403 20.4304 9.29546C22.6312 10.4263 24.1369 12.7192 24.1369 15.3638C24.1369 18.0084 22.6312 20.3014 20.4304 21.4322C19.9605 21.6736 19.4028 21.4574 19.1446 20.9965C18.7963 20.375 19.1424 19.5893 19.7446 19.2085C21.0183 18.4031 21.8642 16.9822 21.8642 15.3638Z",fill:"white"}),(0,c.tZ)("path",{d:"M23.3875 8.37237C25.8645 9.72016 27.5457 12.3459 27.5457 15.3643C27.5457 18.3826 25.8645 21.0084 23.3875 22.3562C22.8014 22.6751 22.4991 23.3888 22.7871 23.9907C23.0394 24.518 23.6578 24.7694 24.18 24.5067C27.524 22.825 29.8184 19.3626 29.8184 15.3643C29.8184 11.366 27.524 7.90355 24.18 6.2218C23.6578 5.95916 23.0394 6.21054 22.7871 6.73783C22.4991 7.3397 22.8014 8.05347 23.3875 8.37237Z",fill:"white"})]})}),function(){var t,e,r,n,o,i,l,u,s;if(!(ct||null===R||void 0===R||null===(t=R.playButton)||void 0===t||!t.showButton||j&&ht.active))return(0,c.BX)(c.HY,{children:[(null===(e=R.playButton)||void 0===e?void 0:e.type)===a.wy.icon&&(0,c.tZ)(Bo,{color:null===(r=R.playButton[U])||void 0===r?void 0:r.color,animation:K,style:null===(n=R.playButton[U])||void 0===n?void 0:n.style,size:J,position:W,opacity:null===(o=R.playButton[U])||void 0===o?void 0:o.backgroundOpacity,borderColor:null===(i=R.playButton[U])||void 0===i?void 0:i.borderColor,background:null===(l=R.playButton[U])||void 0===l?void 0:l.backgroundColor,borderSize:R.playButton[U]&&R.playButton[U].showBorder?R.playButton[U].borderWidth:null}),(null===(u=R.playButton)||void 0===u?void 0:u.type)===a.wy.text&&(0,c.tZ)("div",{className:"vw-cmp__popup-card--cta-button vw-cmp__popup--text-button vw--align-".concat(W),style:St,children:(0,c.tZ)("span",{children:null===(s=R.playButton[U])||void 0===s?void 0:s.text})})]})}(),!0===j&&!0===ht.active&&"pause"===ht.state?(0,c.tZ)("div",{className:"vw-cmp__popup-card--button vw-cmp__popup-card--miniplayer-play",children:(0,c.BX)("svg",{width:"76",height:"76",viewBox:"0 0 76 76",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("rect",{x:"2",y:"2",width:"72",height:"72",rx:"36",fill:"black","fill-opacity":"0.7"}),(0,c.tZ)("path",{d:"M30.0801 51.68V24.32L53.8401 38L30.0801 51.68Z",fill:"white"}),(0,c.tZ)("rect",{x:"1",y:"1",width:"74",height:"74",rx:"37",stroke:"white","stroke-opacity":"0.5","stroke-width":"2"})]})}):(0,c.tZ)(c.HY,{}),(0,c.tZ)(c.HY,{children:ct&&(0,c.tZ)("div",{className:"vw-cmp__popup-card--button vw-cmp__popup-card--minimize-button",children:(0,c.BX)("svg",{width:"39",height:"46",viewBox:"0 0 39 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.tZ)("g",{filter:"url(#filter0_d_6738_6271)",children:(0,c.tZ)("path",{d:"M8.125 8.375L30.625 23L8.125 37.625V8.375Z",fill:"white"})}),(0,c.tZ)("defs",{children:(0,c.BX)("filter",{id:"filter0_d_6738_6271",x:"0.125",y:"0.375",width:"38.5",height:"45.25",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.tZ)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,c.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,c.tZ)("feOffset",{}),(0,c.tZ)("feGaussianBlur",{stdDeviation:"4"}),(0,c.tZ)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,c.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),(0,c.tZ)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_6738_6271"}),(0,c.tZ)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_6738_6271",result:"shape"})]})})]})})}),(null===(k=R["".concat(G?"thumbnail":"appearance")])||void 0===k?void 0:k.showBorder)&&(0,c.tZ)("div",{style:xt,className:"vw-cmp__popup-card--border"}),!0===ht.active&&(0,c.tZ)(Ir,{context:"floating",isMiniPlayer:!0,elements:null===(Z=F.interaction)||void 0===Z?void 0:Z.elements,videoType:F.videoType,handleOnRedirectCallback:function(t){return Tt(t)},handleInteractionSelectedCallback:function(t,e,r){return At(t,e,r)},handleOnFocusCallback:function(){!1===ht.muted&&vt((function(t){return di(di({},t),{},{muted:!0})}))}})]}),!0===ht.active&&F.commercials.length>0&&(0,c.BX)(c.HY,{children:[!1===D.isVisible&&(0,c.tZ)(_n,{isInMiniPlayer:!0,time:ht.playedSeconds}),(0,c.tZ)(we,{isInMiniPlayer:!0,videoType:F.videoType})]})]})};function yi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return mi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mi(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const wi=function(t){var e=t.video,r=t.videoType,n=function(){return!!(e||{}).muxClipPlaybackId},o=(0,i.useRef)(),a=yi((0,i.useState)(!1),2),l=a[0],u=a[1],s=yi((0,i.useState)(),2),d=s[0],f=s[1];return(0,i.useEffect)((function(){new IntersectionObserver((function(t){var e=t[0];e.isIntersecting?(f(e.isIntersecting),u(!0)):u(!1)})).observe(o.current)}),[]),(0,c.tZ)("div",{ref:o,className:"vw-cmp__in-video-card--root vw-cmp__in-video-card--blank needsclick",children:d&&(0,c.BX)("div",{className:"vw-cmp__in-video-card--video",children:["youtube_video"!==r&&(0,c.tZ)(Sn,{url:(0,$.cy)(e,!0),className:"vw__video-player noibu-blocked",width:"100%",height:"100%",controls:!1,muted:!0,loop:!0,playing:l,playsinline:!0,config:{file:{hlsOptions:{forceHLS:n(),debug:!1,capLevelToPlayerSize:!0,xhrSetup:function(t,e){if(!t.readyState){var r=e.substring(0,e.indexOf("&vsid")+1);r&&t.open("GET",r,!0)}}}}}}),"youtube_video"===r&&(0,c.tZ)(Nn,{url:(0,$.cy)(e,!0),className:"vw__video-player noibu-blocked",width:"100%",height:"100%",controls:!1,muted:!0,loop:!0,playing:l,playsinline:!0,forceHLS:n()})]})})};function gi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return bi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bi(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const _i=function(t){var e,r,n,o,a,l=t.onSelect,s=f(),d=s.videos,p=s.widget,h=u().skin,v=(0,i.useRef)(),y=gi((0,i.useState)("flex-start"),2),m=y[0],w=y[1],g=(null===h||void 0===h?void 0:h.autoplay)||!1,b={background:h.appearance.background?h.appearance.background:null,padding:"".concat(null===(e=h.spacing)||void 0===e?void 0:e.marginTop,"px ").concat(null===(r=h.spacing)||void 0===r?void 0:r.marginRight,"px ").concat(null===(n=h.spacing)||void 0===n?void 0:n.marginBottom,"px ").concat(null===(o=h.spacing)||void 0===o?void 0:o.marginLeft,"px"),color:h.storyTitle.color,justifyContent:m};(0,i.useEffect)((function(){v.current.scrollWidth>v.current.clientWidth||w("CENTER"===h.spacing.alignment?"center":"RIGHT"===h.spacing.alignment?"right":"flex-start")}),[]);var _={marginLeft:null===(a=h.spacing)||void 0===a?void 0:a.paddingBetween},x={borderColor:h.appearance.background,background:h.appearance.background?h.appearance.background:null},C={background:"linear-gradient(to top right,".concat(h.appearance.gradient.start,", ").concat(h.appearance.gradient.end,")")};(0,i.useEffect)((function(){document.querySelector("#reeview-app-widget_".concat(p.id)).style.setProperty("--videowise-story-border","linear-gradient(to top right,".concat(h.appearance.gradient.start,", ").concat(h.appearance.gradient.end)),document.querySelector("#reeview-app-widget_".concat(p.id)).style.setProperty("--videowise-story-title","".concat(h.storyTitle.color))}),[]);var O=h.storyTitle.showTitle&&"BOLD"===h.storyTitle.textWeight?"700":"400",L={fontSize:h.storyTitle.showTitle?h.storyTitle.textSize:null,fontWeight:h.storyTitle.showTitle?O:null};return(0,c.tZ)(c.HY,{children:(0,c.tZ)(pn,{style:{width:"100%"},initial:{x:"100%"},animate:{x:0},transition:{duration:1,ease:[.885,0,.275,1]},children:(0,c.tZ)("div",{ref:v,className:"stories-container",style:b,onWheel:function(t){},children:d.map((function(t,e){var r=t.thumbnail.url.replace("640","180");return(0,c.BX)("div",{className:"story-container ".concat("MEDIUM"===h.spacing.storySize?"medium-stories":""),onClick:function(){return function(t){l(t)}(t)},style:0!==e?_:null,children:[(0,c.tZ)("div",{className:"preview-outer-story ".concat("SQUARE"===h.appearance.type?"story-square":""," ").concat("PORTRAIT"===h.appearance.type?"story-portrait":""),style:C,children:(0,c.BX)("div",{class:"preview-outer-story-img",style:x,children:[(0,c.tZ)("img",{src:r,alt:t.title}),g&&(0,c.tZ)("div",{className:"vw-video-card-story",children:(0,c.tZ)(wi,{video:t,videoType:t.videoType},e)})]})}),h.storyTitle.showTitle&&(0,c.tZ)("div",{className:"preview-title-story ".concat(h.storyTitle.truncateTitle?"truncate-story-title":""),style:L,children:t.title})]},e)}))})})})};function xi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ci(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xi(Object(r),!0).forEach((function(e){Oi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Oi(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Li(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Ei(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ei(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Si="FULL_SCREEN",ki="FIT_TO_SCREEN";const Zi=function(){var t,e=Li((0,i.useState)({url:"",isPlaying:!1}),2),r=e[0],n=e[1],o=Li((0,i.useState)(!1),2),a=o[0],l=o[1],s=u().skin,d=f().previousChildren,p=(0,i.useRef)(null),h=(0,i.useMemo)((function(){return{"--vw-background-widget-overlay-color":!0===s.overlay.show?(0,Bn.rW)(s.overlay.color,s.overlay.opacity/100):"none"}}),[s]),v=(0,i.useMemo)((function(){for(var t="",e=0;e<d.length;e++)t+=d[e].outerHTML;return t}),[d]),y=(0,M.Z)("".concat(Ao.jW,"--background-widget"),(Oi(t={},"vw--background-widget-is-ready",a),Oi(t,"vw--background-widget-cover","undefined"===typeof s.video.format||s.video.format===Si),Oi(t,"vw--background-widget-contain",s.video.format===ki),t));return(0,i.useEffect)((function(){for(var t=document.querySelectorAll(".vw--background-widget"),e=0;e<t.length;e++)t[e].parentNode.parentNode.parentNode.classList.add("vw--background-widget-force-height"),t[e].parentNode.parentNode.classList.add("vw--background-widget-force-height"),t[e].parentNode.classList.add("vw--background-widget-force-height")}),[]),(0,i.useEffect)((function(){new IntersectionObserver((function(t){!0===t[0].isIntersecting?n({url:s.video.url,isPlaying:!0}):n((function(t){return Ci(Ci({},t),{},{isPlaying:!1})}))})).observe(p.current)}),[]),(0,i.useEffect)((function(){if(s.video.format===ki){var t=document.querySelector(".videowise-background");null!==t&&(t.style.minHeight="auto",t.style.backgroundImage="none")}}),[s.video.format]),(0,c.BX)("div",{className:y,ref:p,children:[""!==v&&(0,c.tZ)("div",{dangerouslySetInnerHTML:{__html:v},style:{width:"100%",height:"100%",display:"block",position:"absolute",top:0,right:0,zIndex:9}}),(0,c.tZ)(ai.Z,{width:"100%",height:"100%",url:r.url,playing:r.isPlaying,playsinline:!0,muted:!0,loop:!0,config:{file:{attributes:{preload:"none"}}},onReady:function(){return l(!0)}}),(0,c.tZ)("div",{className:"".concat(Ao.jW,"--overlay"),style:h})]})};function Pi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ji(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pi(Object(r),!0).forEach((function(e){Ni(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ni(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ii(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Ti(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ti(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ti(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Ai=function(){var t=f(),e=t.videos,r=t.trackingContext,n=t.hashParams,o=t.widgetID,l=t.widget,s=((l=void 0===l?{}:l).type,l.displayType),d=l.theme,p=l.maxWidth,h=l.widgetAlign,v=void 0===h?"center":h,y=t.currentVideoType,m=u().skin,w=((0,F.ac)("(max-width: 1023px)"),Ii((0,i.useState)(!1),2)),g=w[0],b=w[1],_=Ii((0,i.useState)(e[0].id),2),x=_[0],C=_[1],O=Ii((0,i.useState)(0),2),L=(O[0],O[1]),E={className:"rw__inline-widget--container-".concat((0,D.v4)()),style:{maxWidth:"custom"===p?"".concat(400,"px"):"inherit",width:"100%"}},S=(0,M.Z)("vw-root__container-inner vw-root__container-embed",Ni({},"rw__inline-widget--container-".concat(v),"custom"===p)),k=(0,M.Z)("vw-root__container-inner vw-root__container-popup"),Z=P||j?S:k,P=s!==a.I0.Floating,j=s===a.I0.Story,N=s===a.I0.Background,I=d.toLowerCase(),T=I===a.Iu.SINGLE,A=I===a.Iu.GALLERY,B=[a.Iu.CAROUSEL,a.Iu.PORTRAIT_CAROUSEL,a.Iu.LANDSCAPE_CAROUSEL].includes(I),R=function(t){C(t.id),L((new Date).getTime()),b(!0),L((new Date).getTime())};(0,i.useEffect)((function(){return g?(L((new Date).getTime()),function(){}):function(){}}),[g]),(0,i.useEffect)((function(){var t=window.document.getElementById(o);t&&function(t){var e=t.getElementsByClassName("vw-cmp__popup-card--root")[0];return e&&(t=e),!!(t.offsetWidth&&t.offsetHeight&&t.getClientRects().length)}(t)&&(0,G.j)(a.X8.View,ji({url:window.location.href},r))}),[]),(0,i.useEffect)((function(){if(n&&n.videoId&&o===n.widgetId){C(n.videoId);var t=e.find((function(t){return t.id===n.videoId}));R(t)}}),[]);var H=(0,i.useCallback)((function(){var t=JSON.parse(localStorage.getItem("reeview_completedForms"))||[],r=!0;if("Floating"===s)for(var n=0;n<e.length;n++)if(!0===(0,$.wL)(e[n])&&"interaction_form"===e[n].interaction.interactionType)for(var o=0;o<e[n].interaction.elements.length;o++)if("interaction_form"===e[n].interaction.elements[o].type&&t.includes(e[n].interaction.elements[o].id)){r=!1;break}return r}),[]);return(0,c.BX)("div",{id:"w-root",className:Z,onClick:function(t){return t.stopPropagation()},children:[g&&(0,c.tZ)(Io,{currentVideoType:y,trackingContext:r,selectedVideoId:x,onSelectVideo:R,onClose:function(){b(!1)}}),P&&(0,c.BX)(c.HY,{children:[T&&!1===N&&(0,c.BX)("div",ji(ji({},E),{},{children:[(0,c.tZ)(Uo,{onSelect:R}),(0,c.tZ)(ii,{})]})),A&&(0,c.BX)("div",ji(ji({},E),{},{children:[(0,c.tZ)(zo,{onSelect:R}),(0,c.tZ)(ii,{})]})),B&&(0,c.BX)("div",ji(ji({},E),{},{children:[(0,c.tZ)(oi,{onSelect:R}),(0,c.tZ)(ii,{})]})),!0===N&&(0,c.BX)("div",ji(ji({},E),{},{children:[(0,c.tZ)(Zi,{}),(0,c.tZ)(ii,{})]}))]}),j?(0,c.BX)("div",ji(ji({},E),{},{children:[(0,c.tZ)(_i,{onSelect:R}),(0,c.tZ)(ii,{})]})):!P&&!0===H()&&(0,c.BX)(c.HY,{children:[(0,c.tZ)(vi,{isMiniPlayer:"DESKTOP"===m.skinType&&"MINI_VIDEO"===m.playerType,isOpen:g,onSelect:R}),(0,c.tZ)(ii,{})]})]})};r(9722);function Bi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Ri(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ri(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ri(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Hi=function(){var t,e,r,n,o,l,s=f(),d=s.widget,p=s.page,h=(u().deviceType,(0,F.ac)("(max-width: 1023px)"),d.displayType===a.I0.Floating),v=(0,M.Z)("vw-root__container",(l=h,(o="vw-popup__widget")in(n={})?Object.defineProperty(n,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[o]=l,n)),y=!1;null!==d&&void 0!==d&&null!==(t=d.videoPlayers[0])&&void 0!==t&&null!==(e=t.settings)&&void 0!==e&&e.muteVideo&&(y=!0);p&&p.customId&&p.handle&&(r={customId:p.customId,handle:p.handle,price:p.price,image:p.previewImageSrc,productRefId:p.productRefId,productReviews:{averageRating:null,numberOfReviews:null}});var m={product:r,viewedProducts:[],togglePannel:!0,isVisible:!1,pageType:d.type,muted:y,selectedId:null,toggleShoppableList:!1,shoppableList:[],showHeader:!1,cart:null,isShoppableLoading:!1,subscriptionId:null,errorOnProduct:!1},w=Bi((0,i.useReducer)(j.l,m),2),g=w[0],b=w[1],_=Bi((0,i.useReducer)(H,{playing:!0,muted:!1,isFirst:!0}),2),x=_[0],C=_[1];return(0,c.tZ)("div",{id:"vw-root",className:v,children:(0,c.tZ)(E,{value:g,action:b,children:(0,c.tZ)(P,{value:x,action:C,children:(0,c.tZ)(Ai,{})})})})};function Di(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Mi(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Di(Object(r),!0).forEach((function(e){Fi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Di(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fi(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Vi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vi(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Xi=function(t){var e=t.initialState,r=t.theme,n=Gi((0,i.useState)(e),2),o=n[0],a=n[1],l=(0,i.useMemo)((function(){return Mi(Mi({},o),{},{setAppState:a})}),[o]);return(0,c.tZ)(b,{children:(0,c.tZ)(p,{value:l,children:(0,c.tZ)(s,{value:r,children:(0,c.tZ)(Hi,{})})})})};function Ui(t){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ui(t)}function qi(){qi=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var s={};function d(){}function f(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&r.call(y,o)&&(h=y);var m=p.prototype=d.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,c){var l=u(t[o],t,i);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==Ui(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,c(m,"constructor",p),c(p,"constructor",f),f.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),c(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function Wi(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}var zi="reeview-app-widget_",Yi=function(t){var e="".concat(zi).concat(t.id);return(null===t||void 0===t?void 0:t.type)===a.l9.Product&&t.displayType===a.I0.Inline?window.document.getElementById(e)?e:"reeview-app__inline-widget":"".concat(zi).concat(t.id)},$i=function(t,e){return t.find((function(t){return t.skinType===e}))},Ki=function(t){return t[0]};window.dispatchEvent(new Event("resize"));var Ji=function(){var t,e=(t=qi().mark((function t(e){var r,n,o,l,u,s,d,f,p,h,v,y,m,w,g,b,_,x,C,O,L,E,S;return qi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.widget,n=e.page,o=e.trackingContext,l=e.settings,u=(l=void 0===l?{}:l).showBadge,s=l.inventorySetting,d=l.logoUrl,f=e.previousChildren,p=An()||{},h=p.widgetId,v=p.videoId,y=r.displayType,m=r.skins,w=r.videoPlayers,g=r.videos,b=Yi(r),_=(0,Bn.l7)(),x=$i(m,_),C=Ki(w),O=[a.I0.Story,a.I0.Inline,a.I0.Background].includes(y),L=O?window.document.getElementById(b):Qi(b),O||window.document.body.appendChild(L),L){t.next=15;break}return console.log("VideoWise widget is not rendered, because is defined as Inline, but not allowed from Shopify store!"),t.abrupt("return");case 15:if(!ta(b,"vw-root")){t.next=19;break}return console.log("VideoWise widget is already loaded!"),t.abrupt("return");case 19:E={widget:r,widgetID:b,videos:g,containerElement:L,page:n,trackingContext:o,showBadge:u,storeLogo:d,inventorySetting:s,hashParams:{widgetId:h,videoId:v},previousChildren:f,currentSlideForQuizInteraction:0,currentVideoType:""},S={deviceType:_,player:C,skin:x},i.default.render((0,c.tZ)(Xi,{initialState:E,theme:S}),L);case 22:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Wi(i,n,o,a,c,"next",t)}function c(t){Wi(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),Qi=function(t){var e=window.document.createElement("div");return e.setAttribute("id",t),e},ta=function(t,e){var r=window.document.getElementById(e),n=r?r.parentNode:{};return!(null===n||void 0===n||!n.id||(null===n||void 0===n?void 0:n.id)!==t)};const ea=Ji},4064:(t,e,r)=>{r.d(e,{Yi:()=>f,j:()=>d,O8:()=>s});var n=r(9669),o=r.n(n)().create({baseURL:"https://events.hookdeck.com/e/src_FmdOAHhvIIFyHpVR9dXQVdOf"}),i=r(2750),a=r(3216);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/tracking/".concat(t),l(l({},e),{},{uid:i.U(),deviceType:(0,a.l7)()}))},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(t,e).then((function(){})).catch((function(t){return console.log("Tracking error: ",t)}))},f=function(t){var e=(new Date).getTime();return Math.round((e-t)/1e3)}},2750:(t,e,r)=>{r.d(e,{U:()=>a});var n=r(1955),o=r(5877),i=r(7856),a=function(){var t=n.Z.get(i.Fy);if(t)return t;t=(0,o.v4)();var e=new Date;return e.setTime(e.getTime()+12096e5),n.Z.set(i.Fy,t,{expires:e,domain:function(){var t=new URL(window.location.href),e=t.hostname.split(".");return-1!=t.hostname.indexOf("myshopify.com")||e.length<3?t.hostname:(e.shift(),e.join("."))}()}),t}},3216:(t,e,r)=>{r.d(e,{al:()=>l,kx:()=>u,l7:()=>a,rW:()=>c});var n=r(7856);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var a=function(){return window.screen.width>767?n.Cv.DESKTOP:n.Cv.MOBILE},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=t.match(/\w\w/g).map((function(t){return parseInt(t,16)})),n=o(r,3),i=n[0],a=n[1],c=n[2];return"rgba(".concat(i,",").concat(a,",").concat(c,",").concat(e,")")},l=function(){var t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},e=document.body.style;for(var r in t)if(void 0!==e[r])return t[r]},u=function(t){try{var e=JSON.parse(localStorage.getItem("reeview_completedForms"));return null===e||void 0===e?void 0:e.includes(t)}catch(r){return console.error("Error parsing JSON",r),!1}}},4627:(t,e,r)=>{function n(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,{a:()=>l,l:()=>u});var l={ADD_PRODUCT:"add_product",GET_CART:"get_cart",SET_CART:"set_cart",UPDATE_PRODUCT:"update_product",HIDE_PANEL:"hide_panel",TOGGLE_PANEL:"toggle_panel",SHOW_MORE:"show_more",SHOW_MORE_SHARE:"show_more_share",HIDE_MORE:"hide_more",HIDE_MORE_SHARE:"hide_more_share",ADD_TO_CART:"add_to_cart",TOGGLE_SOUND:"toggle_sound",SHOW_SHOPPABLE_LIST:"show_shoppable_list",HIDE_SHOPPABLE_LIST:"hide_shoppable_list",SET_SHOPPABLE_LIST:"set_shoppable_list",TOGGLE_PANEL_HEADER:"toggle_panel_header",SET_IS_LOADING_IN_PROGRESS:"set_is_loading_in_progress",TOGGLE_SHOPPABLE_LOADING:"toggle_shoppable_loading",ADD_SUBSCRIPTION:"add_subscription",ERROR_ON_PRODUCT:"error_on_product",TOGGLE_PANEL_INTERACTION:"toggle_panel_interaction"},u=function(t,e){switch(e.type){case l.GET_CART:return a(a({},t),{},{cart:a(a({},t.cart),e.payload.cart)});case l.ADD_PRODUCT:case l.UPDATE_PRODUCT:return t.viewedProducts.filter((function(t){return t.id==e.payload.product.id})).length?a(a({},t),{},{product:a(a({},t.product),e.payload.product)}):a(a({},t),{},{product:a(a({},t.product),e.payload.product),viewedProducts:[].concat(n(t.viewedProducts),[e.payload.product])});case l.HIDE_PANEL:return a(a({},t),{},{product:null,isVisible:!1});case l.TOGGLE_PANEL:case l.TOGGLE_PANEL_INTERACTION:return a(a({},t),{},{isVisible:e.payload.visible});case l.SHOW_MORE:return a(a({},t),{},{isVisible:!0,showMore:!0});case l.SHOW_MORE_SHARE:return a(a({},t),{},{showShare:!0});case l.HIDE_MORE:return a(a({},t),{},{isVisible:!1,showMore:!1});case l.HIDE_MORE_SHARE:return a(a({},t),{},{showShare:!1});case l.TOGGLE_SOUND:return a(a({},t),{},{muted:!t.muted});case l.SHOW_SHOPPABLE_LIST:return a(a({},t),{},{toggleShoppableList:!0,isVisible:!0});case l.HIDE_SHOPPABLE_LIST:return a(a({},t),{},{toggleShoppableList:!1,isVisible:!1});case l.SET_SHOPPABLE_LIST:return a(a({},t),{},{shoppableList:e.payload.shoppableList});case l.TOGGLE_PANEL_HEADER:return a(a({},t),{},{showHeader:e.payload.showHeader});case l.SET_IS_LOADING_IN_PROGRESS:return a(a({},t),{},{isLoadingInProgress:e.payload.isLoadingInProgress});case l.TOGGLE_SHOPPABLE_LOADING:return a(a({},t),{},{isShoppableLoading:e.payload.loading});case l.ADD_SUBSCRIPTION:return a(a({},t),{},{subscriptionId:e.payload.subscriptionId});case l.ERROR_ON_PRODUCT:return a(a({},t),{},{errorOnProduct:e.payload.errorOnProduct});default:return t}}},4841:(t,e,r)=>{var n=r(4783)(t.id,{locals:!1});t.hot.dispose(n),t.hot.accept(void 0,n)},9722:(t,e,r)=>{var n=r(4783)(t.id,{locals:!1});t.hot.dispose(n),t.hot.accept(void 0,n)}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e){if(void 0!==e.error)throw e.error;return e.exports}var r=__webpack_module_cache__[t]={id:t,exports:{}};try{var n={id:t,module:r,factory:__webpack_modules__[t],require:__webpack_require__};__webpack_require__.i.forEach((function(t){t(n)})),r=n.module,n.factory.call(r.exports,r,r.exports,n.require)}catch(o){throw r.error=o,o}return r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.i=[],(()=>{var t=[];__webpack_require__.O=(e,r,n,o)=>{if(!r){var i=1/0;for(u=0;u<t.length;u++){for(var[r,n,o]=t[u],a=!0,c=0;c<r.length;c++)(!1&o||i>=o)&&Object.keys(__webpack_require__.O).every((t=>__webpack_require__.O[t](r[c])))?r.splice(c--,1):(a=!1,o<i&&(i=o));if(a){t.splice(u--,1);var l=n();void 0!==l&&(e=l)}}return e}o=o||0;for(var u=t.length;u>0&&t[u-1][2]>o;u--)t[u]=t[u-1];t[u]=[r,n,o]}})(),__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.hu=t=>t+"."+__webpack_require__.h()+".hot-update.js",__webpack_require__.miniCssF=t=>{},__webpack_require__.hmrF=()=>"client."+__webpack_require__.h()+".hot-update.json",__webpack_require__.h=()=>"0e347cc459fa94b5fd26",__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={},e="videowise-widget:";__webpack_require__.l=(r,n,o,i)=>{if(t[r])t[r].push(n);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var s=l[u];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==e+o){a=s;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-webpack",e+o),a.src=r),t[r]=[n];var d=(e,n)=>{a.onerror=a.onload=null,clearTimeout(f);var o=t[r];if(delete t[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((t=>t(n))),e)return e(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),__webpack_require__.r=t=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t,e,r,n={},o=__webpack_require__.c,i=[],a=[],c="idle",l=0,u=[];function s(t){c=t;for(var e=[],r=0;r<a.length;r++)e[r]=a[r].call(null,t);return Promise.all(e)}function d(){0===--l&&s("ready").then((function(){if(0===l){var t=u;u=[];for(var e=0;e<t.length;e++)t[e]()}}))}function f(t){if("idle"!==c)throw new Error("check() is only allowed in idle status");return s("check").then(__webpack_require__.hmrM).then((function(r){return r?s("prepare").then((function(){var n=[];return e=[],Promise.all(Object.keys(__webpack_require__.hmrC).reduce((function(t,o){return __webpack_require__.hmrC[o](r.c,r.r,r.m,t,e,n),t}),[])).then((function(){return e=function(){return t?h(t):s("ready").then((function(){return n}))},0===l?e():new Promise((function(t){u.push((function(){t(e())}))}));var e}))})):s(v()?"ready":"idle").then((function(){return null}))}))}function p(t){return"ready"!==c?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status (state: "+c+")")})):h(t)}function h(t){t=t||{},v();var n=e.map((function(e){return e(t)}));e=void 0;var o=n.map((function(t){return t.error})).filter(Boolean);if(o.length>0)return s("abort").then((function(){throw o[0]}));var i=s("dispose");n.forEach((function(t){t.dispose&&t.dispose()}));var a,c=s("apply"),l=function(t){a||(a=t)},u=[];return n.forEach((function(t){if(t.apply){var e=t.apply(l);if(e)for(var r=0;r<e.length;r++)u.push(e[r])}})),Promise.all([i,c]).then((function(){return a?s("fail").then((function(){throw a})):r?h(t).then((function(t){return u.forEach((function(e){t.indexOf(e)<0&&t.push(e)})),t})):s("idle").then((function(){return u}))}))}function v(){if(r)return e||(e=[]),Object.keys(__webpack_require__.hmrI).forEach((function(t){r.forEach((function(r){__webpack_require__.hmrI[t](r,e)}))})),r=void 0,!0}__webpack_require__.hmrD=n,__webpack_require__.i.push((function(u){var h=u.module,v=function(e,r){var n=o[r];if(!n)return e;var a=function(a){if(n.hot.active){if(o[a]){var c=o[a].parents;-1===c.indexOf(r)&&c.push(r)}else i=[r],t=a;-1===n.children.indexOf(a)&&n.children.push(a)}else console.warn("[HMR] unexpected require("+a+") from disposed module "+r),i=[];return e(a)},u=function(t){return{configurable:!0,enumerable:!0,get:function(){return e[t]},set:function(r){e[t]=r}}};for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&"e"!==f&&Object.defineProperty(a,f,u(f));return a.e=function(t){return function(t){switch(c){case"ready":s("prepare");case"prepare":return l++,t.then(d,d),t;default:return t}}(e.e(t))},a}(u.require,u.id);h.hot=function(o,l){var u=t!==o,d={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:u,_requireSelf:function(){i=l.parents.slice(),t=u?void 0:o,__webpack_require__(o)},active:!0,accept:function(t,e,r){if(void 0===t)d._selfAccepted=!0;else if("function"===typeof t)d._selfAccepted=t;else if("object"===typeof t&&null!==t)for(var n=0;n<t.length;n++)d._acceptedDependencies[t[n]]=e||function(){},d._acceptedErrorHandlers[t[n]]=r;else d._acceptedDependencies[t]=e||function(){},d._acceptedErrorHandlers[t]=r},decline:function(t){if(void 0===t)d._selfDeclined=!0;else if("object"===typeof t&&null!==t)for(var e=0;e<t.length;e++)d._declinedDependencies[t[e]]=!0;else d._declinedDependencies[t]=!0},dispose:function(t){d._disposeHandlers.push(t)},addDisposeHandler:function(t){d._disposeHandlers.push(t)},removeDisposeHandler:function(t){var e=d._disposeHandlers.indexOf(t);e>=0&&d._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,c){case"idle":e=[],Object.keys(__webpack_require__.hmrI).forEach((function(t){__webpack_require__.hmrI[t](o,e)})),s("ready");break;case"ready":Object.keys(__webpack_require__.hmrI).forEach((function(t){__webpack_require__.hmrI[t](o,e)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(o)}},check:f,apply:p,status:function(t){if(!t)return c;a.push(t)},addStatusHandler:function(t){a.push(t)},removeStatusHandler:function(t){var e=a.indexOf(t);e>=0&&a.splice(e,1)},data:n[o]};return t=void 0,d}(u.id,h),h.parents=i,h.children=[],i=[],u.require=v})),__webpack_require__.hmrC={},__webpack_require__.hmrI={}})(),(()=>{var t;__webpack_require__.g.importScripts&&(t=__webpack_require__.g.location+"");var e=__webpack_require__.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=t})(),(()=>{var t=(t,e,r,n)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css";return o.onerror=o.onload=i=>{if(o.onerror=o.onload=null,"load"===i.type)r();else{var a=i&&("load"===i.type?"missing":i.type),c=i&&i.target&&i.target.href||e,l=new Error("Loading CSS chunk "+t+" failed.\n("+c+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=c,o.parentNode.removeChild(o),n(l)}},o.href=e,document.head.appendChild(o),o},e=(t,e)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(a=r[n]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===t||o===e))return a}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){var a;if((o=(a=i[n]).getAttribute("data-href"))===t||o===e)return a}},r=[],n=[],o=t=>({dispose:()=>{for(var t=0;t<r.length;t++){var e=r[t];e.parentNode&&e.parentNode.removeChild(e)}r.length=0},apply:()=>{for(var t=0;t<n.length;t++)n[t].rel="stylesheet";n.length=0}});__webpack_require__.hmrC.miniCss=(i,a,c,l,u,s)=>{u.push(o),i.forEach((o=>{var i=__webpack_require__.miniCssF(o),a=__webpack_require__.p+i,c=e(i,a);c&&l.push(new Promise(((e,i)=>{var l=t(o,a,(()=>{l.as="style",l.rel="preload",e()}),i);r.push(c),n.push(l)})))}))}})(),(()=>{var t,e,r,n,o,i=__webpack_require__.hmrS_jsonp=__webpack_require__.hmrS_jsonp||{47:0},a={};function c(e,r){return t=r,new Promise(((t,r)=>{a[e]=t;var n=__webpack_require__.p+__webpack_require__.hu(e),o=new Error;__webpack_require__.l(n,(t=>{if(a[e]){a[e]=void 0;var n=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;o.message="Loading hot update chunk "+e+" failed.\n("+n+": "+i+")",o.name="ChunkLoadError",o.type=n,o.request=i,r(o)}}))}))}function l(t){function a(t){for(var e=[t],r={},n=e.map((function(t){return{chain:[t],id:t}}));n.length>0;){var o=n.pop(),i=o.id,a=o.chain,l=__webpack_require__.c[i];if(l&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:i};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:i};for(var u=0;u<l.parents.length;u++){var s=l.parents[u],d=__webpack_require__.c[s];if(d){if(d.hot._declinedDependencies[i])return{type:"declined",chain:a.concat([s]),moduleId:i,parentId:s};-1===e.indexOf(s)&&(d.hot._acceptedDependencies[i]?(r[s]||(r[s]=[]),c(r[s],[i])):(delete r[s],e.push(s),n.push({chain:a.concat([s]),id:s})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:r}}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];-1===t.indexOf(n)&&t.push(n)}}__webpack_require__.f&&delete __webpack_require__.f.jsonpHmr,e=void 0;var l={},u=[],s={},d=function(t){console.warn("[HMR] unexpected require("+t.id+") to disposed module")};for(var f in r)if(__webpack_require__.o(r,f)){var p,h=r[f],v=!1,y=!1,m=!1,w="";switch((p=h?a(f):{type:"disposed",moduleId:f}).chain&&(w="\nUpdate propagation: "+p.chain.join(" -> ")),p.type){case"self-declined":t.onDeclined&&t.onDeclined(p),t.ignoreDeclined||(v=new Error("Aborted because of self decline: "+p.moduleId+w));break;case"declined":t.onDeclined&&t.onDeclined(p),t.ignoreDeclined||(v=new Error("Aborted because of declined dependency: "+p.moduleId+" in "+p.parentId+w));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(p),t.ignoreUnaccepted||(v=new Error("Aborted because "+f+" is not accepted"+w));break;case"accepted":t.onAccepted&&t.onAccepted(p),y=!0;break;case"disposed":t.onDisposed&&t.onDisposed(p),m=!0;break;default:throw new Error("Unexception type "+p.type)}if(v)return{error:v};if(y)for(f in s[f]=h,c(u,p.outdatedModules),p.outdatedDependencies)__webpack_require__.o(p.outdatedDependencies,f)&&(l[f]||(l[f]=[]),c(l[f],p.outdatedDependencies[f]));m&&(c(u,[p.moduleId]),s[f]=d)}r=void 0;for(var g,b=[],_=0;_<u.length;_++){var x=u[_],C=__webpack_require__.c[x];C&&(C.hot._selfAccepted||C.hot._main)&&s[x]!==d&&!C.hot._selfInvalidated&&b.push({module:x,require:C.hot._requireSelf,errorHandler:C.hot._selfAccepted})}return{dispose:function(){var t;n.forEach((function(t){delete i[t]})),n=void 0;for(var e,r=u.slice();r.length>0;){var o=r.pop(),a=__webpack_require__.c[o];if(a){var c={},s=a.hot._disposeHandlers;for(_=0;_<s.length;_++)s[_].call(null,c);for(__webpack_require__.hmrD[o]=c,a.hot.active=!1,delete __webpack_require__.c[o],delete l[o],_=0;_<a.children.length;_++){var d=__webpack_require__.c[a.children[_]];d&&((t=d.parents.indexOf(o))>=0&&d.parents.splice(t,1))}}}for(var f in l)if(__webpack_require__.o(l,f)&&(a=__webpack_require__.c[f]))for(g=l[f],_=0;_<g.length;_++)e=g[_],(t=a.children.indexOf(e))>=0&&a.children.splice(t,1)},apply:function(e){for(var r in s)__webpack_require__.o(s,r)&&(__webpack_require__.m[r]=s[r]);for(var n=0;n<o.length;n++)o[n](__webpack_require__);for(var i in l)if(__webpack_require__.o(l,i)){var a=__webpack_require__.c[i];if(a){g=l[i];for(var c=[],d=[],f=[],p=0;p<g.length;p++){var h=g[p],v=a.hot._acceptedDependencies[h],y=a.hot._acceptedErrorHandlers[h];if(v){if(-1!==c.indexOf(v))continue;c.push(v),d.push(y),f.push(h)}}for(var m=0;m<c.length;m++)try{c[m].call(null,g)}catch(C){if("function"===typeof d[m])try{d[m](C,{moduleId:i,dependencyId:f[m]})}catch(O){t.onErrored&&t.onErrored({type:"accept-error-handler-errored",moduleId:i,dependencyId:f[m],error:O,originalError:C}),t.ignoreErrored||(e(O),e(C))}else t.onErrored&&t.onErrored({type:"accept-errored",moduleId:i,dependencyId:f[m],error:C}),t.ignoreErrored||e(C)}}}for(var w=0;w<b.length;w++){var _=b[w],x=_.module;try{_.require(x)}catch(C){if("function"===typeof _.errorHandler)try{_.errorHandler(C,{moduleId:x,module:__webpack_require__.c[x]})}catch(O){t.onErrored&&t.onErrored({type:"self-accept-error-handler-errored",moduleId:x,error:O,originalError:C}),t.ignoreErrored||(e(O),e(C))}else t.onErrored&&t.onErrored({type:"self-accept-errored",moduleId:x,error:C}),t.ignoreErrored||e(C)}}return u}}}self.webpackHotUpdatevideowise_widget=(e,n,i)=>{for(var c in n)__webpack_require__.o(n,c)&&(r[c]=n[c],t&&t.push(c));i&&o.push(i),a[e]&&(a[e](),a[e]=void 0)},__webpack_require__.hmrI.jsonp=function(t,e){r||(r={},o=[],n=[],e.push(l)),__webpack_require__.o(r,t)||(r[t]=__webpack_require__.m[t])},__webpack_require__.hmrC.jsonp=function(t,a,u,s,d,f){d.push(l),e={},n=a,r=u.reduce((function(t,e){return t[e]=!1,t}),{}),o=[],t.forEach((function(t){__webpack_require__.o(i,t)&&void 0!==i[t]?(s.push(c(t,f)),e[t]=!0):e[t]=!1})),__webpack_require__.f&&(__webpack_require__.f.jsonpHmr=function(t,r){e&&__webpack_require__.o(e,t)&&!e[t]&&(r.push(c(t)),e[t]=!0)})},__webpack_require__.hmrM=()=>{if("undefined"===typeof fetch)throw new Error("No browser support: need fetch API");return fetch(__webpack_require__.p+__webpack_require__.hmrF()).then((t=>{if(404!==t.status){if(!t.ok)throw new Error("Failed to fetch update manifest "+t.statusText);return t.json()}}))},__webpack_require__.O.j=t=>0===i[t];var u=(t,e)=>{var r,n,[o,a,c]=e,l=0;if(o.some((t=>0!==i[t]))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(c)var u=c(__webpack_require__)}for(t&&t(e);l<o.length;l++)n=o[l],__webpack_require__.o(i,n)&&i[n]&&i[n][0](),i[n]=0;return __webpack_require__.O(u)},s=self.webpackChunkvideowise_widget=self.webpackChunkvideowise_widget||[];s.forEach(u.bind(null,0)),s.push=u.bind(null,s.push.bind(s))})(),__webpack_require__.nc=void 0;var __webpack_exports__=__webpack_require__.O(void 0,[111],(()=>__webpack_require__(6675)));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();