(()=>{var __webpack_modules__=[(e,t,r)=>{"use strict";r.a(e,(async(e,i)=>{try{r.r(t);var o=r(1),n=r(4),a=r(5),d=r(11),s=r(26),c=r(7);const e=(0,o.lazy)((()=>Promise.all([r.e(48),r.e(38)]).then(r.bind(r,46)))),l=await d.default.initialization();window.videowiseProxy=l,window.initVideowise=l.initialization,window.addEventListener(c.CUSTOM_EVENTS.VIDEO_BACKGROUND_V2_RENDERED,(e=>{(0,s.default)(e.detail)}),!1),(0,a.default)(["reeview-app-widget","videowise-background"]);const u=document.getElementById("videowise_ugc");if(null!==u){(0,n.createRoot)(u).render(o.default.createElement(o.Suspense,{fallback:o.default.createElement(o.default.Fragment,null)},o.default.createElement(e,null)))}i()}catch(l){i(l)}}),1)},,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var i=r(6),o=r(10);const n=e=>{window.videowiseIdsLoaded=[];const t=e=>e?e.replace("reeview-app-widget_",""):"",r=(e,t)=>{const r=`widget_${e}_product_${t}`;if(window.videowiseIdsLoaded.includes(r))return;if(window.videowiseIdsLoaded.length>49)return void console.error("Videowise bulk load limit reached. Stopping further bulk loads.");let n={widgetIds:[e],device:(0,i.getDeviceType)()},a=(0,o.default)(`${window.location.protocol}//${window.location.hostname}${window.location.pathname}`);n=t||(()=>{var e;return null===(e=window.videowiseProxy)||void 0===e?void 0:e.isProductPage()})()?Object.assign(Object.assign({},n),{productId:t||window.videowiseProxy.getProductId(),url:a}):Object.assign(Object.assign({},n),{url:a}),window.videowiseIdsLoaded.push(r),window.videowiseProxy.bulkInit(n)},n=e=>(document.querySelectorAll(`.${e.join(", .")}`).forEach((e=>{const i=t((null===e||void 0===e?void 0:e.id)||"");r(i)})),!0),a=e=>{new MutationObserver(((i,o)=>{for(const n of i)"childList"===n.type&&n.addedNodes.forEach((i=>{const o=i=>{if(i.nodeType===Node.ELEMENT_NODE){for(let o=0;o<e.length;o++)if(i.classList.contains(e[o])){let e=null;const o=t((null===i||void 0===i?void 0:i.id)||"");i.getAttribute("data-videowise-pdp")&&i.getAttribute("data-product-id")&&(e=i.getAttribute("data-product-id")),r(o,e)}i.childNodes.forEach(o)}};o(i)}))})).observe(document.documentElement,{childList:!0,subtree:!0})};return n(d=e)&&a(d);var d}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{completeForm:()=>s,getDeviceType:()=>o,getTransitionEndEventName:()=>a,hex2rgba:()=>n,isCompletedForm:()=>d});var i=r(7);const o=()=>window.screen.width>767?i.WidgetDeviceType.DESKTOP:i.WidgetDeviceType.MOBILE,n=(e,t=1)=>{var r;const[i,o,n]=(null===(r=e.match(/\w\w/g))||void 0===r?void 0:r.map((e=>parseInt(e,16))))||[0,0,0];return`rgba(${i},${o},${n},${t})`},a=()=>{const e={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},t=document.body.style;for(const r in e)if(void 0!==t[r])return e[r]},d=e=>{try{return JSON.parse(localStorage.getItem("reeview_completedForms")||"[]").includes(e)}catch(t){return console.error("Error parsing JSON",t),!1}},s=e=>{try{const t=JSON.parse(localStorage.getItem("reeview_completedForms")||"[]");d(e)||t.push(e),localStorage.setItem("reeview_completedForms",JSON.stringify(t))}catch(t){console.error("Error parsing JSON",t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ADD_TO_CART_CLASS:()=>c,BASE_Z_INDEX:()=>i.BASE_Z_INDEX,BASE_Z_INDEX_MODAL:()=>i.BASE_Z_INDEX_MODAL,BUY_BUTTON_TYPE:()=>D,CLASS_PREFIX:()=>i.CLASS_PREFIX,COMMERCIAL_TYPE:()=>P,CUSTOM_EVENTS:()=>o.CUSTOM_EVENTS,CallbackFunctionType:()=>E,DISPLAY_CONTAINER:()=>T,HEARTBEAT_RATE:()=>u,HEARTBEAT_TIMEOUT_MS:()=>_,HIDE_WIDGET_COOKIE:()=>d,ICON_PLAY_SIZE:()=>m,ICON_PLAY_TYPE:()=>h,INLINE_WIDGET_TYPE:()=>O,INVENTORY_SETTINGS:()=>R,MQ:()=>i.MQ,PLAYER_LAYOUT:()=>g,PLAYER_TYPE:()=>S,SPECIFICITY_SELECTOR:()=>i.SPECIFICITY_SELECTOR,SPECIFICITY_SELECTOR_MODAL:()=>i.SPECIFICITY_SELECTOR_MODAL,SUBSCRIPTION_TYPE:()=>L,THUMB_TYPE:()=>y,TrackEventType:()=>v,VIDEO_IMAGE_TYPE:()=>b,WATCH_VIDEO_MIN_LIMIT_SEC:()=>l,WEBSITE:()=>n,WIDGET_DISPLAY_CONTEXT:()=>s,WIDGET_FLOATING_POSTION:()=>I,WIDGET_LOGO_TYPE:()=>A,WIDGET_PLAY_BUTON_TYPE:()=>C,WidgetDeviceType:()=>f,WidgetDisplayType:()=>p,WidgetType:()=>w});var i=r(8),o=r(9),n="https://videowise.com",a="reeview",d="".concat(a,"_hide_widget"),s="".concat(a,"_widget_context"),c="reeview_addtocart-btn",l=3e3,u=2e4,_=36e5,p={Inline:"Inline",Floating:"Floating",Story:"Story",Background:"Background",Product:"Product",Image:"Image",Testimonial:"Testimonial",TestimonialCarousel:"TestimonialCarousel"},w={Product:"Product",Independent:"Independent"},v={Interest:"interest",Cart:"cart",View:"view",Video:"video",Click:"click",Close:"close",Order:"order",EngagementTime:"engagementtime",VideoWatch:"videowatch",Swipe:"swipe",Interaction:"interaction",Search:"search",Tag:"tag",ProductClick:"product-click",CampaignLanding:"campaignLanding"},E={AddToCart:"addToCart"},T={xsSmall:375,smSmall:576,ExtraSmall:767,Small:991,Medium:1024,Large:1280,ExtraLarge:1440},S={YOUTUBE:"youtube_video",INSTAGRAM:"instagram_video",CUSTOM:"custom"},g={PORTRAIT:"portrait",LANDSCAPE:"landscape"},h={STANDARD:"Standard",OUTLINE:"Outline",MINIMAL:"Minimal",RECTANGLE:"Rectangle"},m={LARGE:"large",MEDIUM:"medium",SMALL:"small"},y={LANDSCAPE:"landscape",PORTRAIT:"portrait",SQUARE:"square"},O={SINGLE:"single",GALLERY:"gallery",CAROUSEL:"carousel",PORTRAIT_CAROUSEL:"portraitcarousel",LANDSCAPE_CAROUSEL:"landscapecarousel",CENTER_PIECE_CAROUSEL:"carouselcenterpiece",SHOPPABLE_CAROUSEL:"carouselshoppable",TESTIMONIAL_CAROUSEL:"TestimonialCarousel"},f={DESKTOP:"DESKTOP",MOBILE:"MOBILE"},I={BOTTOM_LEFT:"BOTTOM_LEFT",BOTTOM_RIGHT:"BOTTOM_RIGHT"},C={icon:"ICON_BUTTON",text:"TEXT_BUTTON"},P={PRODUCT:"PRODUCT",LINK:"LINK"},A={STORE_LOGO:"STORE_LOGO",NO_LOGO:"NO_LOGO",VIDEOWISE_LOGO:"VIDEOWISE_LOGO"},D={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",GO_TO_PRODUCT_PAGE:"GO_TO_PRODUCT_PAGE"},R={USE_INVENTORY:"USE_INVENTORY",IGNORE_INVENTORY:"IGNORE_INVENTORY"},b={PREVIEW:"PREVIEW",BG:"BG"},L={ONE_TIME:"onetime",SUBSCRIBE:"subscribe"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BASE_Z_INDEX:()=>o,BASE_Z_INDEX_MODAL:()=>n,CLASS_PREFIX:()=>s,MQ:()=>i,SPECIFICITY_SELECTOR:()=>a,SPECIFICITY_SELECTOR_MODAL:()=>d});var i={mobileXs:"@media (max-width: ".concat(375,"px)"),mobileSm:"@media (min-width: ".concat(375,"px)"),mobileXl:"@media (min-width: ".concat(567,"px)"),mobile:"@media (max-width: ".concat(415,"px)"),mobileXxl:"@media (min-width: ".concat(415,"px)"),mobileMd:"@media (max-width: ".concat(567,"px)"),mobileLg:"@media (max-width: ".concat(767,"px)"),mobileOnly:"@media (max-width: ".concat(768,"px)"),tablet:"@media (min-width: ".concat(768,"px)"),tabletLarge:"@media (min-width: ".concat(1024,"px)"),tabletOnly:"@media (max-width: ".concat(1023,"px)"),tabletXl:"@media (max-width: ".concat(1198,"px)"),desktopSm:"@media (min-width: ".concat(1199,"px)"),desktop:"@media (min-width: ".concat(416,"px)"),desktopLarge:"@media (min-width: ".concat(1281,"px)"),desktopExtraLarge:"@media (min-width: ".concat(1441,"px)")},o=1,n=1e4,a="#vw-root &&",d="#vw-modal-root &&",s="vw"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CUSTOM_EVENTS:()=>i});var i={ADD_TO_CART:"videowiseProductAddToCart",BUY_NOW:"videowiseProductBuyNow",VIDEO_PRODUCT_CLICK:"videowiseProductClick",VIDEO_CLICK:"videowiseVideoClick",VIDEO_START:"videowiseVideoStart",VIDEO_IS_PLAYING:"videowiseVideoIsPlaying",VIDEO_FULL:"videowiseVideoFull",VIDEO_SWIPE:"videowiseVideoSwipe",VIDEO_CLOSE:"videowisePlayerClose",VIDEO_SOUND_ON:"videowiseVideoSoundOn",VIDEO_SOUND_OFF:"videowiseVideoSoundOff",VIDEO_BOUNCE:"videowiseVideoBounce",VIDEO_DATA_READY:"videowiseDataReady",VIDEO_CAMPAIGN_READY:"videowiseCampaignReady",VIDEO_CAMPAIGN_CHECKOUT:"videowiseCampaignCheckout",VIDEO_BACKGROUND_V2_RENDERED:"videowiseBackgroundV2Rendered"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});const i=e=>e.replace(/\/\s*$/,"")},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkForWebBridgeScript:()=>E,default:()=>T,getCurrentUrl:()=>u,isCampaign:()=>v,processBulkWidgets:()=>w,processNonProductPages:()=>_,processProductPage:()=>p});var i=r(10),o=r(12),n=r(15),a=r(6),d=r(16),s=r(24),c=r(7);const l={initialization:async()=>{let e=null;if(E()?e="./TapcartVideoClass":"undefined"!==typeof window.Shopify?e=v()?"./ShopifyCampaignsClass":"./ShopifyClass":"undefined"!==typeof window.videowiseSFCC?e=v()?"./SFCCCampaignsClass":"./SFCCClass":"undefined"!==typeof window.videowiseTapcart&&(e="./TapcartClass"),null===e)throw new Error("No valid proxy found.");let t=await(async e=>{let t=null;return await r(25)(`${e}`).then((e=>{t=new e.default,null===t||void 0===t||t.initialization()})).catch((e=>{console.error("Error loading proxy:",e)})),t})(e);return t}},u=()=>(0,i.default)(`${window.location.protocol}//${window.location.hostname}${window.location.pathname}`),_=async e=>{var t,r;let i=u();"undefined"!==typeof window.videowiseTapcart&&(i="tapcart://home");const l=await(0,o.getIndependentWidgetsByUrl)({shop:e,url:i,device:(0,a.getDeviceType)()}),_=null!==(r=null===(t=null===l||void 0===l?void 0:l.widgets)||void 0===t?void 0:t.map((e=>e.id)))&&void 0!==r?r:[];(0,s.default)(l);try{window.dispatchEvent(new CustomEvent(c.CUSTOM_EVENTS.VIDEO_DATA_READY,{detail:{deviceType:(0,a.getDeviceType)(),url:i,widgetIds:_}}))}catch(p){console.error("Error dispatching VIDEO_DATA_READY event:",p)}await(0,d.renderAllWidgets)(l,(0,n.default)(l.widgets))},p=async(e,t)=>{var r,i;let l=u();"undefined"!==typeof window.videowiseTapcart&&(l="tapcart://product");const _=await(0,o.getProductWidgetConfig)({shop:e,productId:t,device:(0,a.getDeviceType)(),url:l}),p=null!==(i=null===(r=null===_||void 0===_?void 0:_.widgets)||void 0===r?void 0:r.map((e=>e.id)))&&void 0!==i?i:[];(0,s.default)(_);try{window.dispatchEvent(new CustomEvent(c.CUSTOM_EVENTS.VIDEO_DATA_READY,{detail:{deviceType:(0,a.getDeviceType)(),url:l,widgetIds:p}}))}catch(w){console.error("Error dispatching VIDEO_DATA_READY event:",w)}await(0,d.renderAllWidgets)(_,(0,n.default)(_.widgets))},w=async e=>{if(!e.widgetIds)return;const t=await(0,o.getBulkWidgetConfig)(Object.assign(Object.assign({},e),{device:(0,a.getDeviceType)()}));await(0,d.renderAllWidgets)(t,(0,n.default)(t.widgets))},v=()=>{const e="undefined"!==typeof window.INITIAL_DATA,t="undefined"!==typeof window.INITIAL_PRODUCTS,r="undefined"!==typeof window.SITE_DATA,i="undefined"!==typeof window.CAMPAIGN_DATA;return e&&t&&r&&i};function E(){return!!window.IsTapcartVideoClass}const T=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getBulkWidgetConfig:()=>c,getCart:()=>T,getIndependentWidgetsByUrl:()=>n,getLiveStreamStatus:()=>S,getProductByHandle:()=>_,getProductWidgetConfig:()=>a,getProductWithUrlHelper:()=>v,getRecommendedProductsWithUrlHelper:()=>E,getUgcForm:()=>d,postCartAdd:()=>p,postCartUpdateProductQuantity:()=>w,postFormData:()=>u,postFormDataVote:()=>l,postVideoUpload:()=>s});var i=r(13);const o="https://api-cdn.videowise.com",n=async e=>{const t=new URLSearchParams(`shop=${e.shop}`);t.set("url",e.url);const r=await fetch(`${o}/widget/independent.json?${t.toString()}`,{headers:{"Content-Type":"application/json"}});return(0,i.default)({data:await r.json()})},a=async e=>{var t;const r=new URLSearchParams(`shop=${e.shop}`);r.set("productId",e.productId),r.set("url",null!==(t=e.url)&&void 0!==t?t:"");const n=await fetch(`${o}/widget/product.json?${r.toString()}`,{headers:{"Content-Type":"application/json"}});return(0,i.default)({data:await n.json()})},d=async e=>{const t=await fetch(`${o}/external-ugc/ugcForm?shop=${e.shop}`,{headers:{"Content-Type":"application/json"}});return await t.json()},s=async e=>new Promise(((t,r)=>{const i=new XMLHttpRequest;i.open("POST",`${o}/external-ugc/videoUpload?shop=${e.shop}`,!0),i.onload=()=>{t(i.status)},i.onerror=()=>{},i.upload.addEventListener("progress",(t=>{const r=Math.round(100*t.loaded/t.total);e.handleOnProgressCallback(r)}),!1),i.send(e.formData)})),c=async e=>{if(!Array.isArray(e.widgetIds)||0===e.widgetIds.length||!e.widgetIds)return;let t=`${o}/widget/bulk.json?widget=${e.widgetIds.join()}&shop=${e.shop}`;e.url&&(t+=`&url=${e.url}`),e.productId&&(t+=`&productId=${e.productId}`),e.device&&(t+=`&device=${e.device}`);const r=await fetch(t);return(0,i.default)({data:await r.json()})},l=async(e,t)=>{const r=await fetch(`${o}/formData/${e}/vote/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return{data:await r.json()}},u=async(e,t)=>await fetch(`${o}/formData/${e}/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),_=async e=>{var t;const r=await fetch(`https://${null===(t=null===window||void 0===window?void 0:window.Shopify)||void 0===t?void 0:t.domain}/products/${e}.js`,{headers:{"Content-Type":"application/json"}});return{data:await r.json()}},p=async(e,t)=>await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),w=async({url:e,productId:t,quantity:r})=>await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({updates:{[t]:r}})}).then((e=>e.json())).catch((e=>console.log(e))),v=async e=>await fetch(e,{method:"GET"}),E=async e=>{const t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}});return{data:await t.json()}},T=async e=>{const t=await fetch(e,{headers:{"Content-Type":"application/json"}});return{data:await t.json()}},S=async e=>{const t=await fetch(`${o}/external/live-stream/${e}/status`,{headers:{"Content-Type":"application/json"}});return{data:await t.json()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var i=r(14);window.consolAdv=!1;const o=e=>{"undefined"===typeof window.videowiseTapcart&&(0,i.default)();return window.consolAdv||(window.consolAdv=!0,(()=>{let e="\n";e+="\ud83d\ude80\xa0Increase shooper engagement on-site\n",e+="\ud83d\ude80\xa0Increase conversions\n",e+="\u26a1\ufe0f Zero page-speed impact\n",e+="\n",e+="Learn more at:\xa0https://videowise.com\n\n",console.group("%cInteractive & Shoppable Video powered by Videowise.","display: inline-block; font-size: 14px; background: #3CFECF; color: #121212; padding: 4px;"),console.log("%c\n\ud83d\ude80\xa0Increase shooper engagement on-site\n\ud83d\ude80\xa0Increase conversions\n\u26a1\ufe0f Zero page-speed impact\n\nLearn more at:\xa0https://videowise.com\n\n%cBuild: 1146","font-style: normal;","background: rgba(135,131,120,0.15); color: #EB5757; border-radius: 3px; font-size: 80%; padding: 0.1em 0.2em;"),console.groupEnd()})()),null===e||void 0===e?void 0:e.data}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});const i=()=>{if(window.VIDEOWISE_SUPPORT_H265=!1,"undefined"===typeof window.VIDEOWISE_SUPPORT_H265_CHECKED){const e=document.createElement("video");e.src="https://cdn2.videowise.com/custom-videos/videos/black_h265.mp4",e.addEventListener("loadedmetadata",(e=>{e.target.videoHeight>0&&(window.VIDEOWISE_SUPPORT_H265=!0)}),!1),window.VIDEOWISE_SUPPORT_H265_CHECKED=!1}return window.VIDEOWISE_SUPPORT_H265}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});const i=e=>{if("undefined"===typeof e)return!1;const t=e.find((e=>"LiveNow"===e.theme));return"undefined"!==typeof t&&"undefined"!==typeof t.liveStreamId&&"undefined"!==typeof t.lsScheduledAt?{liveStreamId:t.liveStreamId,lsScheduledAt:t.lsScheduledAt}:{}}},(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{renderAllWidgets:()=>renderAllWidgets,renderWidgets:()=>renderWidgets});var _renderWidget__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(17);function asyncGeneratorStep(e,t,r,i,o,n,a){try{var d=e[n](a),s=d.value}catch(e){return void r(e)}d.done?t(s):Promise.resolve(s).then(i,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var n=e.apply(t,r);function a(e){asyncGeneratorStep(n,i,o,a,d,"next",e)}function d(e){asyncGeneratorStep(n,i,o,a,d,"throw",e)}a(void 0)}))}}function renderAllWidgets(e,t){return _renderAllWidgets.apply(this,arguments)}function _renderAllWidgets(){return(_renderAllWidgets=_asyncToGenerator((function*(e,t){var r;if(e&&e.widgets&&(null===(r=e.widgets)||void 0===r?void 0:r.length)>0)for(var i=0;i<e.widgets.length;i++){var o={showBadge:e.showBadge,logoUrl:e.storeLogoUrl,inventorySetting:e.inventorySetting,organisationId:e.organisationId,siteId:e.siteId};renderWidgets(e.widgets[i],e.page,!0,o,e.useShadowDom,e.productWidget,e.watermark,t).then((()=>{checkCart()})).catch((e=>console.log("An error occur during widget rendering. ",e)))}}))).apply(this,arguments)}function renderWidgets(e,t,r,i,o,n,a,d){return _renderWidgets.apply(this,arguments)}function _renderWidgets(){return(_renderWidgets=_asyncToGenerator((function*(e,t,r,i,o,n,a,d){var{videos:s}=e;if(s&&0!==s.length&&e){var c={trackingId:null===t||void 0===t?void 0:t.id,widgetId:e.id,videoType:"",widgetType:e.type,siteId:i.siteId,organisationId:i.organisationId,campaignId:"undefined"!==typeof window.CAMPAIGN_DATA?window.CAMPAIGN_DATA.id:null,event_source:"undefined"!==typeof window.videowiseTapcart?"TAPCART":"SHOP"};if(s.length){var l=[];if("Background"===e.displayType){var u=document.getElementById("reeview-app-widget_".concat(e.id));if(null!==u&&null!==u.children)for(var _=0;_<u.children.length;_++)l.push(u.children[_])}yield(0,_renderWidget__WEBPACK_IMPORTED_MODULE_0__.default)({widget:e,page:t,trackingContext:c,settings:i,previousChildren:l,useShadowDom:o,productWidget:n,watermark:a,liveShow:d})}}}))).apply(this,arguments)}var checkCart=()=>{if(sessionStorage.getItem("openCart")){var jsData=window.atob(sessionStorage.getItem("openCart"));eval(jsData),sessionStorage.removeItem("openCart")}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createWidgetContainer:()=>S,default:()=>h,getElementById:()=>g,getPlayer:()=>E,getSkin:()=>v,getWidgetId:()=>w});r(18);var i=r(1),o=r(4),n=r(7),a=r(19),d=r(6),s=r(22),c=r(23),l=r(20);function u(e,t,r,i,o,n,a){try{var d=e[n](a),s=d.value}catch(e){return void r(e)}d.done?t(s):Promise.resolve(s).then(i,o)}var _=(0,i.lazy)((()=>r.e(0).then(r.bind(r,125)))),p="reeview-app-widget_",w=e=>{var t="".concat(p).concat(e.id);return(null===e||void 0===e?void 0:e.type)===n.WidgetType.Product&&e.displayType===n.WidgetDisplayType.Inline?window.document.getElementById(t)?t:"reeview-app__inline-widget":"".concat(p).concat(e.id)},v=(e,t)=>{if("undefined"!==typeof e)return e.find((e=>e.skinType===t))},E=e=>e[0];window.dispatchEvent(new Event("resize"));var T=function(){var e,t=(e=function*(e){var{widget:t,page:r,productWidget:u,trackingContext:p,settings:{showBadge:T,inventorySetting:h,logoUrl:m}={},previousChildren:y,useShadowDom:O,watermark:f,liveShow:I}=e,{widgetId:C,videoId:P}=(0,s.useQueryParams)()||{},{displayType:A,skins:D,videoPlayers:R,videos:b}=t,L=w(t),N=(0,d.getDeviceType)(),k=E(R)||{},U=[n.WidgetDisplayType.Story,n.WidgetDisplayType.Inline,n.WidgetDisplayType.Background,n.WidgetDisplayType.Product,n.WidgetDisplayType.Image,n.WidgetDisplayType.Testimonial,n.WidgetDisplayType.TestimonialCarousel].includes(A),W=t.displayType===n.WidgetDisplayType.Product,M=v(D,W?"DESKTOP":N),V=U?window.document.getElementById(L):S(L);if(!1===U&&window.document.body.appendChild(V),V)if(!g(L,"vw-root")||W){if("DESKTOP"===N&&"undefined"!==typeof M&&"undefined"!==typeof M.style&&"undefined"!==typeof M.style.carouselType&&!0===["CarouselCenterPiece"].includes(t.theme)){var H=M.layout.columns-b.length+1;if(H>0)for(var G=0;G<H;G++)b.push(b[Math.floor(Math.random()*b.length)])}var x={widget:t,widgetID:L,videos:b,containerElement:V,page:r,productWidget:u,trackingContext:p,showBadge:T,storeLogo:m,inventorySetting:h,hashParams:{widgetId:C,videoId:P},previousChildren:y,currentSlideForQuizInteraction:0,currentVideoType:"",useShadowDom:O,watermark:f,liveShow:I},F={deviceType:N,player:k,skin:M},B=e=>{var r=(0,o.createRoot)(e);!0===W?r.render((0,l.jsx)(i.Suspense,{fallback:(0,l.jsx)(l.Fragment,{}),children:(0,l.jsx)(_,{initialState:x,theme:F})})):r.render((0,l.jsx)(a.default,{mode:(0,a.shadowRootMode)(),useShadowDom:O,widgetId:t.id,children:(0,l.jsx)(i.Suspense,{fallback:(0,l.jsx)(l.Fragment,{}),children:(0,l.jsx)(_,{initialState:x,theme:F})})}))};if(W){var j=".".concat(L,'[data-product-id="').concat(r.productRefId,'"][data-widget-id="').concat(t.id,'"]');document.querySelectorAll(j).forEach((e=>{B(e)}))}else(0,c.renderWidgetBasedOnTheme)(t,V,B)}else console.log("VideoWise widgetID: ".concat(L," is already loaded!"))},function(){var t=this,r=arguments;return new Promise((function(i,o){var n=e.apply(t,r);function a(e){u(n,i,o,a,d,"next",e)}function d(e){u(n,i,o,a,d,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),S=e=>{var t=window.document.createElement("div");return t.setAttribute("id",e),t},g=(e,t)=>{var r=window.document.getElementById(t),i=r?r.parentNode:{};return!(null===i||void 0===i||!i.id||(null===i||void 0===i?void 0:i.id)!==e)};const h=T},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_,shadowRootMode:()=>c});var i=r(1),o=r(20);function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=()=>"undefined"!==typeof window.videowiseShadow,d=()=>null!==document.getElementById("videowise-style-css"),s=e=>!0===a()||!0===d()&&!0===e,c=()=>{var e;return!0===a()&&null!==(e=window.videowiseShadow.mode)&&void 0!==e?e:"closed"},l="undefined"!==typeof window&&window.ShadowRoot&&window.ShadowRoot.prototype.hasOwnProperty("adoptedStyleSheets")&&window.CSSStyleSheet&&window.CSSStyleSheet.prototype.hasOwnProperty("replace"),u="undefined"!==typeof window&&window.Element&&window.Element.prototype.hasOwnProperty("attachShadow");class _ extends i.default.PureComponent{constructor(e){super(e),n(this,"state",{initialized:!1}),this.placeholder=i.default.createRef()}componentDidMount(){if(!1!==s(this.props.useShadowDom)){var{delegatesFocus:e,mode:t,stylesheets:r}=this.props;this.shadowRoot=this.placeholder.current.parentNode.attachShadow({delegatesFocus:e,mode:t}),window.currentShadow=this.shadowRoot,"undefined"===typeof window.videowiseShadowRoots&&(window.videowiseShadowRoots={}),window.videowiseShadowRoots[this.props.widgetId]=this.shadowRoot,this.placeholder.current.parentNode.style.display="block";var i='\n      <style type="text/css">\n        #vw-modal-root {\n          height: 100%;\n        }\n        #vw-modal-root .vw-cmp__modal--content {\n          height: 100%;\n        }\n        #vw-modal-root .vw-cmp__modal--content .vw-cmp__keen-root {\n          height: 100%;\n        }\n        #vw-modal-root .vw-cmp__modal--content .vw-cmp__keen-root .vw-cmp__keen-player-slider {\n          height: 100%;\n        }\n        #vw-modal-root .vw-cmp__modal--content .vw-cmp__keen-root .vw-cmp__keen-player-slider .vw-cmp__keen-player-slide {\n          height: 100%;\n        }\n        #vw-modal-root .vw-cmp__modal--content .vw-cmp__keen-root .vw-cmp__keen-player-slider .vw-cmp__keen-player-slide .vw-cmp__player--video-container {\n          height: 100%;\n        }\n        #vw-modal-root .vw-cmp__modal--content .vw-cmp__keen-root .vw-cmp__keen-player-slider .vw-cmp__keen-player-slide .vw-cmp__player--video-container .vw-cmp__player--video-container-embed {\n          height: 100%;\n        }\n        #vw-modal-root .vw-cmp__modal--content .vw-cmp__keen-root .vw-cmp__keen-player-slider .vw-cmp__keen-player-slide .vw-cmp__player--video-container .vw-cmp__player--video-container-embed .vw-cmp__player--video {\n          height: 100%;\n          width:100%;\n        }\n      </style>\n    ',o="";(()=>{if(!0===d()){var e=[{type:"style",src:document.getElementById("videowise-style-css").href}];return!0===a()&&window.videowiseShadow.assets.forEach((t=>{t.src!==e[0].src&&e.push(t)})),e}return!0===a()?window.videowiseShadow.assets:[]})().forEach((e=>{"script"===e.type?o+='<script src="'.concat(e.src,'"><\/script>'):"style"===e.type&&(i+='<link rel="stylesheet" href="'.concat(e.src,'" />'))})),this.shadowRoot.innerHTML="".concat(o," ").concat(i),r&&(this.shadowRoot.adoptedStyleSheets=r),this.setState({initialized:!0})}}render(){return!1===s(this.props.useShadowDom)?this.props.children:this.state.initialized?i.default.createPortal(this.props.children,this.shadowRoot):this.props.declarative?(0,o.jsx)("template",{ref:this.placeholder,shadowroot:this.props.mode,children:this.props.children}):(0,o.jsx)("span",{ref:this.placeholder})}}n(_,"constructableStylesheetsSupported",l),n(_,"constructibleStylesheetsSupported",l),n(_,"defaultProps",{declarative:!1,delegatesFocus:!1,mode:"open",useShadowDom:!1,widgetId:null}),n(_,"displayName","ShadowRoot"),n(_,"shadowRootSupported",u)},,,(e,t,r)=>{"use strict";function i(){var e=new URLSearchParams(window.location.search);return new Proxy(e,{get:(e,t)=>e.get(t)})}r.r(t),r.d(t,{useQueryParams:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{renderWidgetBasedOnTheme:()=>o});const i=["CarouselShoppable","Story","TestimonialCarousel"];function o(e,t,r){if(i.includes(e.theme)){const e=()=>{if(t){const i=t.getBoundingClientRect().top;i<=window.innerHeight+window.innerHeight/2&&i>=0&&(r(t),window.removeEventListener("scroll",e))}};e(),window.addEventListener("scroll",e,!1)}else r(t)}},(e,t,r)=>{"use strict";function i(e,t,r,i,o,n,a){try{var d=e[n](a),s=d.value}catch(e){return void r(e)}d.done?t(s):Promise.resolve(s).then(i,o)}r.r(t),r.d(t,{createWidgetBtn:()=>a,createWidgetContainer:()=>n,default:()=>o});const o=function(){var e,t=(e=function*(e){var t,r=[],i="thumbnail",o=["reeview-app-widget","videowise-widget"],d=["alt","src","data-src","data-image-src","data-srcset"],s=e=>{for(var t of o)if(e&&e.includes(t))return e.substr(e.indexOf(t)+t.length+1,24).split("-")[0];return!1},c=(e,t)=>e.substring(26+t.length,e.length),l=(e,t)=>{var r=e.split("/").pop();r=(r=r.split("?")[0]).split(".")[0];var i=26+t.length;return r=r.substring(i,i+13),isNaN(r)?"":r},u=e=>13==e.length&&!isNaN(e)&&(!(e>=Math.floor(Date.now()))&&!(e<1682945999e3));(()=>{var t,i,o,n;return null!==(t=window.videowiseProxy)&&void 0!==t&&t.isProductPage()&&null!==e&&void 0!==e&&null!==(i=e.productWidget)&&void 0!==i&&i.galleryContainer?(document.querySelectorAll("".concat(null===e||void 0===e?void 0:e.productWidget.galleryContainer)).forEach((e=>{r=e.querySelectorAll("img")})),null!==(null===e||void 0===e||null===(o=e.productWidget)||void 0===o?void 0:o.zoomContainer)&&""!==(null===e||void 0===e||null===(n=e.productWidget)||void 0===n?void 0:n.zoomContainer)&&document.querySelectorAll("".concat(null===e||void 0===e?void 0:e.productWidget.zoomContainer)).forEach((e=>{e.querySelectorAll("img").forEach((e=>{r=[...r,e]}))}))):r=document.querySelectorAll("img"),Array.from(r)})().find((r=>{var _,p,w,v,E;null!==e&&void 0!==e&&null!==(_=e.productWidget)&&void 0!==_&&_.thumbnailContainer&&(i="."==(null===e||void 0===e||null===(p=e.productWidget)||void 0===p?void 0:p.thumbnailContainer.charAt(0))||"#"==(null===e||void 0===e||null===(w=e.productWidget)||void 0===w?void 0:w.thumbnailContainer.charAt(0))?null===e||void 0===e||null===(v=e.productWidget)||void 0===v?void 0:v.thumbnailContainer.substring(1):null===e||void 0===e||null===(E=e.productWidget)||void 0===E?void 0:E.thumbnailContainer);var T=(e,t)=>{for(var r=e.parentElement,i=0;r&&i<3;){if(r.classList.contains(t))return!0;r=r.parentElement,i++}return!1},S=T(r,"thumb"),g=T(r,"".concat(i)),h=T(r,"cart");t=!!(S||g||h);var m=null,y=null;if(d.some((e=>{var t=r.getAttribute(e);return!!s(t)&&(m=((e,t)=>{var r,i,n,a="";for(var d of o)if(e.includes(d))if("alt"===t){var s,_=c(e,d);null!==(s=window.videowiseProxy)&&void 0!==s&&s.isValidProductId(_)&&!u(_)&&(a=_)}else{var p,w=l(e,d);null!==(p=window.videowiseProxy)&&void 0!==p&&p.isValidProductId(w)&&!u(w)&&(a=w)}return!a&&null!==(r=window.videowiseProxy)&&void 0!==r&&r.isProductPage()&&null!==(i=window.videowiseProxy)&&void 0!==i&&i.getProductId()&&(a=null===(n=window.videowiseProxy)||void 0===n?void 0:n.getProductId()),a})(t,e),m?(y=s(t),console.log("Found product widget - attribute:".concat(e," widgetId:").concat(y," productId:").concat(m)),!0):(console.log("Skipping product widget because productId is missing - widgetId:".concat(y)),!1))}))){var O,f=r.parentNode;t?(g||S)&&f.insertBefore(a(),r):(!(null!==(O=window.videowiseProxy)&&void 0!==O&&O.isProductPage())>-1&&f.parentNode.classList.add("vw-product-widgets-container"),f.classList.add("vw-parent"),f.insertBefore(n(y,m),r))}}))},function(){var t=this,r=arguments;return new Promise((function(o,n){var a=e.apply(t,r);function d(e){i(a,o,n,d,s,"next",e)}function s(e){i(a,o,n,d,s,"throw",e)}d(void 0)}))});return function(e){return t.apply(this,arguments)}}();var n=(e,t)=>{var r="reeview-app-widget_".concat(e),i=window.document.createElement("div");return i.setAttribute("id",r),i.setAttribute("data-videowise-pdp",!0),""!==t&&i.setAttribute("data-product-id",t),i.setAttribute("data-widget-id",e),i.setAttribute("class","reeview-app-widget vw-product-widget ".concat(r)),i},a=()=>{var e=window.document.createElement("div");return e.setAttribute("id","cloneVwBtn"),e.setAttribute("class","vw-product-widget-btn"),e}},(e,t,r)=>{var i={"./ApiTypes":[130,20],"./ApiTypes.ts":[130,20],"./SFCCCampaignsClass":[131,24],"./SFCCCampaignsClass.ts":[131,24],"./SFCCClass":[132,25],"./SFCCClass.ts":[132,25],"./ShopifyCampaignsClass":[133,26],"./ShopifyCampaignsClass.ts":[133,26],"./ShopifyClass":[134,27],"./ShopifyClass.ts":[134,27],"./TapcartClass":[136,21],"./TapcartClass.ts":[136,21],"./TapcartVideoClass":[137,22],"./TapcartVideoClass.ts":[137,22],"./WindowTypes":[138,23],"./WindowTypes.ts":[138,23],"./api":[12],"./api.ts":[12],"./proxy":[11],"./proxy.ts":[11]};function o(e){if(!r.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],o=t[0];return Promise.all(t.slice(1).map(r.e)).then((()=>r(o)))}o.keys=()=>Object.keys(i),o.id=25,e.exports=o},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var i=r(27),o=r(28),n=r(33),a=r(7),d=r(34);const s=e=>{const t="reeview_unique_uid",r="reeview_tracks_views";let s=!1;if("undefined"===typeof i.default.get(t)){const a=(0,o.v4)(),d=(0,n.default)(`${a+window.location.href+e.widgetId}`);i.default.set(t,a,{expires:1}),i.default.set(r,JSON.stringify([d]),{expires:1}),s=!0}else{const o=i.default.get(t),a=i.default.get(r);if("undefined"!==typeof o&&"undefined"!==typeof a){const t=JSON.parse(a),d=(0,n.default)(`${o+window.location.href+e.widgetId}`);!0===t.includes(d)?s=!1:(t.push(d),i.default.set(r,JSON.stringify(t),{expires:1}),s=!0)}}!0===s&&"undefined"===typeof e.channelId&&(0,d.track)(a.TrackEventType.View,Object.assign({url:window.location.href},e)),"undefined"!==typeof e.channelId&&(0,d.track)(a.TrackEventType.View,Object.assign({url:window.location.href,newVisitor:s},e))}},,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});const i=e=>{let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=16777619*t>>>0;return("00000000"+t.toString(16)).slice(-8)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getTrackingGuardHeaders:()=>l,timeSinceInSeconds:()=>p,track:()=>_,trackAsync:()=>u});var i=r(35),o=r(6),n=r(37);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c="0.Ze75MOuVcdt7mA";function l(e){var t=new Date;return{"X-VIDEOWISE-SIGNATURE":(0,n.md5)(JSON.stringify(e)+t.toISOString()+c),"X-VIDEOWISE-TS":t.toISOString()}}var u=function(e){var t=d(d({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{uid:(0,i.default)(),deviceType:(0,o.getDeviceType)()});return fetch("".concat("https://api.videowise.com","/tracking/").concat(e),{method:"POST",headers:d({"Content-Type":"application/json"},l(t)),body:JSON.stringify(t)})},_=function(e){u(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).then((()=>{})).catch((e=>console.log("Tracking error: ",e)))},p=e=>{var t=(new Date).getTime();return Math.round((t-e)/1e3)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var i=r(27),o=r(28),n=r(36);const a=()=>{let e=i.default.get(n.UID_COOKIE);if(e)return e;e=(0,o.v4)();const t=new Date;return t.setTime(t.getTime()+12096e5),i.default.set(n.UID_COOKIE,null!==e&&void 0!==e?e:"",{expires:t,domain:function(){let e=new URL(window.location.href),t=e.hostname.split(".");const r=[".co.uk",".com.au",".com.br",".co.jp",".co.in",".co.za",".com.mx",".co.nz",".co.kr",".com.ar",".com.ph"].some((t=>e.hostname.includes(t)));return!r&&3==t.length&&!e.hostname.includes("myshopify.com")||r&&t.length>3?(t.shift(),t.join(".")):e.hostname}()}),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ORDER_ID_COOKIE:()=>o,UID_COOKIE:()=>i});const i="reeview_uid",o="reeview_orders"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dispatchProduct:()=>a,formatTime:()=>h,getProductPriceAsString:()=>v,getSlideNumber:()=>S,getVideoVsid:()=>T,hasMux:()=>g,hasShoppableProducts:()=>c,hexToRgb:()=>w,insertToArray:()=>E,isEmail:()=>m,isEmpty:()=>_,isEqual:()=>u,isPhoneNumber:()=>y,md5:()=>l,resizeShopifyImage:()=>s,selectProduct:()=>d,videoHasSubtitles:()=>p});var i=r(38),o=r(7);function n(e,t,r,i,o,n,a){try{var d=e[n](a),s=d.value}catch(e){return void r(e)}d.done?t(s):Promise.resolve(s).then(i,o)}var a=(e,t,r,o)=>{var n=((e,t,r)=>{var i,o,n,{title:a,featured_image:d,options:s,variants:c,id:l,images:u,description:_,tag:p,productReviews:w,selling_plan_groups:v,variantId:E,quantity:T,excludedVariants:S,requires_selling_plan:g,compare_at_price:h}=t||{},m=E?c.find((e=>e.id===Number(E))):void 0,y=T||1,O="0";return(O=m?isNaN(parseFloat(null===m||void 0===m?void 0:m.compare_at_price))||null===m||void 0===m?void 0:m.compare_at_price:c?isNaN(parseFloat(null===(i=c[0])||void 0===i?void 0:i.compare_at_price))?null:null===(o=c[0])||void 0===o?void 0:o.compare_at_price:null)||(O=isNaN(parseFloat(h))?null:parseFloat(h)),{id:l,available:"undefined"!==typeof m?m.available:t.available,title:a,image:d,options:s,variants:c,price:"undefined"!==typeof m?m.price:t.price,oldPrice:O,selectedId:"undefined"!==typeof m?m.id:null===(n=c[0])||void 0===n?void 0:n.id,handle:r,images:u,description:_,tag:p,productReviews:w,selling_plan_groups:v,variantId:E,excludedVariants:S,quantity:y,requires_selling_plan:g}})(0,t,r);e(o?{type:i.ACTIONS.ADD_PRODUCT_TO_VIEW_LIST,payload:n}:{type:i.ACTIONS.ADD_PRODUCT,payload:{product:n}})},d=function(){var e,t=(e=function*(e){var{handle:t,dispatch:r,tag:o,variantId:n,shoppableCtx:d,productReviews:s,excludedVariants:c}=e||{};if(d.viewedProducts.filter((e=>e.handle===t&&e.variantId===n)).length){var l=d.viewedProducts.filter((e=>e.handle===t))[0];a(r,l,t),r({type:i.ACTIONS.SHOW_MORE,payload:{isVisible:!0}}),r({type:i.ACTIONS.TOGGLE_PANEL_HEADER,payload:{showHeader:!0}})}else{var u=yield window.videowiseProxy.getProductByHandle(t,c,void 0);o&&(u.tag=o),s&&(u.productReviews=s),n&&(u.variantId=n),u&&a(r,u,t),r({type:i.ACTIONS.SHOW_MORE,payload:{isVisible:!0}}),r({type:i.ACTIONS.TOGGLE_PANEL_HEADER,payload:{showHeader:!0}})}},function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function d(e){n(a,i,o,d,s,"next",e)}function s(e){n(a,i,o,d,s,"throw",e)}d(void 0)}))});return function(e){return t.apply(this,arguments)}}(),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"500";if(e&&""!==e){var r=e.split("."),i=r.slice(-2),o=i[0]+"_".concat(t,"x"),n=r.indexOf(i[0]);return r[n]=o,r.join(".")}},c=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((e=>e.type===o.COMMERCIAL_TYPE.PRODUCT)).length>0},l=e=>{var t="0123456789abcdef";function r(e){var r,i="";for(r=0;r<=3;r++)i+=t.charAt(e>>8*r+4&15)+t.charAt(e>>8*r&15);return i}function i(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,n,a){return i(function(e,t){return e<<t|e>>>32-t}(i(i(t,e),i(o,a)),n),r)}function n(e,t,r,i,n,a,d){return o(t&r|~t&i,e,t,n,a,d)}function a(e,t,r,i,n,a,d){return o(t&i|r&~i,e,t,n,a,d)}function d(e,t,r,i,n,a,d){return o(t^r^i,e,t,n,a,d)}function s(e,t,r,i,n,a,d){return o(r^(t|~i),e,t,n,a,d)}var c,l,u,_,p,w=function(e){var t,r=1+(e.length+8>>6),i=new Array(16*r);for(t=0;t<16*r;t++)i[t]=0;for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<t%4*8;return i[t>>2]|=128<<t%4*8,i[16*r-2]=8*e.length,i}(e),v=1732584193,E=-271733879,T=-1732584194,S=271733878;for(c=0;c<w.length;c+=16)l=v,u=E,_=T,p=S,v=n(v,E,T,S,w[c+0],7,-680876936),S=n(S,v,E,T,w[c+1],12,-389564586),T=n(T,S,v,E,w[c+2],17,606105819),E=n(E,T,S,v,w[c+3],22,-1044525330),v=n(v,E,T,S,w[c+4],7,-176418897),S=n(S,v,E,T,w[c+5],12,1200080426),T=n(T,S,v,E,w[c+6],17,-1473231341),E=n(E,T,S,v,w[c+7],22,-45705983),v=n(v,E,T,S,w[c+8],7,1770035416),S=n(S,v,E,T,w[c+9],12,-1958414417),T=n(T,S,v,E,w[c+10],17,-42063),E=n(E,T,S,v,w[c+11],22,-1990404162),v=n(v,E,T,S,w[c+12],7,1804603682),S=n(S,v,E,T,w[c+13],12,-40341101),T=n(T,S,v,E,w[c+14],17,-1502002290),v=a(v,E=n(E,T,S,v,w[c+15],22,1236535329),T,S,w[c+1],5,-165796510),S=a(S,v,E,T,w[c+6],9,-1069501632),T=a(T,S,v,E,w[c+11],14,643717713),E=a(E,T,S,v,w[c+0],20,-373897302),v=a(v,E,T,S,w[c+5],5,-701558691),S=a(S,v,E,T,w[c+10],9,38016083),T=a(T,S,v,E,w[c+15],14,-660478335),E=a(E,T,S,v,w[c+4],20,-405537848),v=a(v,E,T,S,w[c+9],5,568446438),S=a(S,v,E,T,w[c+14],9,-1019803690),T=a(T,S,v,E,w[c+3],14,-187363961),E=a(E,T,S,v,w[c+8],20,1163531501),v=a(v,E,T,S,w[c+13],5,-1444681467),S=a(S,v,E,T,w[c+2],9,-51403784),T=a(T,S,v,E,w[c+7],14,1735328473),v=d(v,E=a(E,T,S,v,w[c+12],20,-1926607734),T,S,w[c+5],4,-378558),S=d(S,v,E,T,w[c+8],11,-2022574463),T=d(T,S,v,E,w[c+11],16,1839030562),E=d(E,T,S,v,w[c+14],23,-35309556),v=d(v,E,T,S,w[c+1],4,-1530992060),S=d(S,v,E,T,w[c+4],11,1272893353),T=d(T,S,v,E,w[c+7],16,-155497632),E=d(E,T,S,v,w[c+10],23,-1094730640),v=d(v,E,T,S,w[c+13],4,681279174),S=d(S,v,E,T,w[c+0],11,-358537222),T=d(T,S,v,E,w[c+3],16,-722521979),E=d(E,T,S,v,w[c+6],23,76029189),v=d(v,E,T,S,w[c+9],4,-640364487),S=d(S,v,E,T,w[c+12],11,-421815835),T=d(T,S,v,E,w[c+15],16,530742520),v=s(v,E=d(E,T,S,v,w[c+2],23,-995338651),T,S,w[c+0],6,-198630844),S=s(S,v,E,T,w[c+7],10,1126891415),T=s(T,S,v,E,w[c+14],15,-1416354905),E=s(E,T,S,v,w[c+5],21,-57434055),v=s(v,E,T,S,w[c+12],6,1700485571),S=s(S,v,E,T,w[c+3],10,-1894986606),T=s(T,S,v,E,w[c+10],15,-1051523),E=s(E,T,S,v,w[c+1],21,-2054922799),v=s(v,E,T,S,w[c+8],6,1873313359),S=s(S,v,E,T,w[c+15],10,-30611744),T=s(T,S,v,E,w[c+6],15,-1560198380),E=s(E,T,S,v,w[c+13],21,1309151649),v=s(v,E,T,S,w[c+4],6,-145523070),S=s(S,v,E,T,w[c+11],10,-1120210379),T=s(T,S,v,E,w[c+2],15,718787259),E=s(E,T,S,v,w[c+9],21,-343485551),v=i(v,l),E=i(E,u),T=i(T,_),S=i(S,p);return r(v)+r(E)+r(T)+r(S)},u=(e,t)=>{function r(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}var i=r(e);return i===r(t)&&("array"===i?function(){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!u(e[r],t[r]))return!1;return!0}():"object"===i?function(){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!u(e[r],t[r]))return!1;return!0}():"function"===i?e.toString()===t.toString():e===t)},_=e=>null==e||"object"===typeof e&&0===Object.keys(e).length||"string"===typeof e&&0===e.trim().length,p=e=>!!(e&&e.subtitles&&Object.keys(e.subtitles).length>0),w=e=>{var t;return 6===(e=e.replace(/^#/,"")).length?(t=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null:3===e.length&&(t=/^([a-f\d])([a-f\d])([a-f\d])$/i.exec(e))?[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]:null},v=e=>{var t="".concat(e).split("");return t.splice(-2,0,","),t.join("")},E=(e,t,r)=>[...e.slice(0,t),r,...e.slice(t)],T=(e,t)=>{if(!e.readyState){var r=t.substring(0,t.indexOf("&vsid")+1);r&&e.open("GET",r,!0)}},S=e=>e&&e.columns?e.columns:2,g=e=>{var{muxPlaybackId:t}=e||{};return!!t},h=e=>{var t=Math.floor(e/3600),r=Math.floor(e%3600/60),i=Math.round(e%60);return[t,r>9?r:t?"0"+r:r||"0",i>9?i:"0"+i].filter(Boolean).join(":")},m=e=>String(e).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,}))$/),y=e=>/^\+?\d{6,14}$/.test(e.replace(/\s/g,""))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ACTIONS:()=>s,shoppableReducer:()=>c});var i=r(39),o=r(40);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={ADD_PRODUCT:"add_product",ADD_PRODUCT_TO_VIEW_LIST:"add_product_to_view_list",REMOVE_PRODUCT:"remove_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",CHANGE_SUBSCRIPTION_PRICE:"change_subscription_price",ERROR_ON_PRODUCT:"error_on_product",TOGGLE_PANEL_INTERACTION:"toggle_panel_interaction",VIDEO_CARD_MUTED:"video_card_muted",SET_SHOW_VIRTUAL_CART:"SET_SHOW_VIRTUAL_CART",SET_SHOW_VIRTUAL_CART_POPUP:"SET_SHOW_VIRTUAL_CART_POPUP",ADDED_PRODUCT_TO_CART:"ADDED_PRODUCT_TO_CART",CLICKED_PRODUCT:"CLICKED_PRODUCT",SET_SHOW_SUCCESS_MESSAGE:"set_show_success_message",SET_SHOW_ONLY_VIRTUAL_CART:"set_show_only_virtual_cart"},c=(e,t)=>{var r,n;switch(t.type){case s.GET_CART:return a(a({},e),{},{cart:a(a({},e.cart),t.payload.cart)});case s.ADD_PRODUCT:return e.viewedProducts.filter((e=>{var r;return e.id==(null===(r=t.payload.product)||void 0===r?void 0:r.id)})).length?a(a({},e),{},{product:a(a({},e.product),t.payload.product)}):a(a({},e),{},{product:a(a({},e.product),t.payload.product),viewedProducts:[...e.viewedProducts,t.payload.product]});case s.ADD_PRODUCT_TO_VIEW_LIST:if(!e.viewedProducts.some((e=>e.id==t.payload.id)))return a(a({},e),{},{viewedProducts:[...e.viewedProducts,t.payload]});case s.REMOVE_PRODUCT:return e.viewedProducts.filter((e=>{var r,i;return e.id==((null===(r=t.payload.product)||void 0===r?void 0:r.id)||(null===(i=t.payload)||void 0===i?void 0:i.id))})).length?a(a({},e),{},{product:a(a({},e.product),t.payload.product)}):a(a({},e),{},{viewedProducts:e.viewedProducts.filter((e=>{var r,i;return e.id!==((null===(r=t.payload.product)||void 0===r?void 0:r.id)||(null===(i=t.payload)||void 0===i?void 0:i.id))}))});case s.UPDATE_PRODUCT:return e.viewedProducts.filter((e=>e.id==t.payload.product.id)).length?a(a({},e),{},{product:a(a({},e.product),t.payload.product)}):a(a({},e),{},{product:a(a({},e.product),t.payload.product),viewedProducts:[...e.viewedProducts,t.payload.product]});case s.HIDE_PANEL:return a(a({},e),{},{product:null,isVisible:!1});case s.TOGGLE_PANEL:case s.TOGGLE_PANEL_INTERACTION:return a(a({},e),{},{isVisible:t.payload.visible});case s.SET_SHOW_VIRTUAL_CART:return window.liveStream&&o.WindowBridgeLiveStreamRequester.dispatchLiveStreamTrackingCustomEvent({type:i.LiveStreamCustomEventType.VIDEOWISE_LIVE_ON_INTERACTION,lsInteractionType:t.payload?i.LSWidgetInteractionType.ShowCart:i.LSWidgetInteractionType.HideCart,liveStream:window.liveStream}),a(a({},e),{},{showVirtualCart:t.payload,showMore:!1});case s.SET_SHOW_VIRTUAL_CART_POPUP:return a(a({},e),{},{showVirtualCartPopup:t.payload});case s.SHOW_MORE:return a(a({},e),{},{isVisible:null===(r=t.payload)||void 0===r?void 0:r.isVisible,showMore:!0});case s.SHOW_MORE_SHARE:return a(a({},e),{},{showShare:!0});case s.HIDE_MORE:return a(a({},e),{},{isVisible:null===(n=t.payload)||void 0===n?void 0:n.isVisible,showMore:!1});case s.HIDE_MORE_SHARE:return a(a({},e),{},{showShare:!1});case s.TOGGLE_SOUND:return a(a({},e),{},{muted:t.payload.muted});case s.SHOW_SHOPPABLE_LIST:return a(a({},e),{},{toggleShoppableList:!0,isVisible:!0});case s.HIDE_SHOPPABLE_LIST:return a(a({},e),{},{toggleShoppableList:!1,isVisible:!1});case s.SET_SHOPPABLE_LIST:return a(a({},e),{},{shoppableList:t.payload.shoppableList});case s.TOGGLE_PANEL_HEADER:return a(a({},e),{},{showHeader:t.payload.showHeader});case s.SET_IS_LOADING_IN_PROGRESS:return a(a({},e),{},{isLoadingInProgress:t.payload.isLoadingInProgress});case s.TOGGLE_SHOPPABLE_LOADING:return a(a({},e),{},{isShoppableLoading:t.payload.loading});case s.ADD_SUBSCRIPTION:return a(a({},e),{},{subscriptionId:t.payload.subscriptionId});case s.CHANGE_SUBSCRIPTION_PRICE:return a(a({},e),{},{subscriptionPrice:t.payload});case s.ERROR_ON_PRODUCT:return a(a({},e),{},{errorOnProduct:t.payload.errorOnProduct});case s.VIDEO_CARD_MUTED:return a(a({},e),{},{videoCardMuted:t.payload.videoCardMuted});case s.ADDED_PRODUCT_TO_CART:return a(a({},e),{},{addedProductToCart:t.payload});case s.CLICKED_PRODUCT:return a(a({},e),{},{clickedProduct:t.payload});case s.SET_SHOW_SUCCESS_MESSAGE:return a(a({},e),{},{showSuccessMessage:t.payload});case s.SET_SHOW_ONLY_VIRTUAL_CART:return a(a({},e),{},{onlyVirtualCart:t.payload});default:return e}}},(e,t,r)=>{"use strict";var i,o,n,a,d,s,c,l,u;r.r(t),r.d(t,{LSHostEventType:()=>c,LSID_COOKIE:()=>_,LSTrackingDeviceType:()=>u,LSWidgetInteractionType:()=>l,LiveStreamActivityType:()=>a,LiveStreamCustomEventType:()=>s,LiveStreamMuxStatus:()=>o,LiveStreamStatus:()=>i,Role:()=>d,VideoSourceType:()=>n}),function(e){e.Upcoming="Upcoming",e.Live="Live",e.Ended="Ended",e.Draft="Draft",e.Pause="Pause"}(i||(i={})),function(e){e.Idle="idle",e.Active="active",e.Disabled="disabled"}(o||(o={})),function(e){e.MobileApp="MobileApp",e.PreRecorded="PreRecorded",e.CustomSource="CustomSource"}(n||(n={})),function(e){e.Chat="CHAT",e.PinChat="PIN_CHAT",e.UnpinChat="UNPIN_CHAT",e.DeletedChat="DELETED_CHAT",e.Like="LIKE",e.AddProductHighlight="ADD_PRODUCT_HIGHLIGHT",e.DeleteProductHighlight="DELETE_PRODUCT_HIGHLIGHT",e.AddProduct="ADD_PRODUCT",e.DeleteProduct="DELETE_PRODUCT",e.AddToCart="ADD_TO_CART",e.UserBanned="USER_BANNED",e.ReorderProducts="REORDER_PRODUCTS",e.PromoTextUpdate="PROMO_TEXT_UPDATE"}(a||(a={})),function(e){e.Customer="Customer",e.Admin="Admin",e.Editor="Editor",e.LiveStreamHost="LiveStreamHost",e.LiveStreamUser="LiveStreamUser"}(d||(d={})),function(e){e.VIDEOWISE_LIVE_ON_LOAD="videowiseLiveOnLoad",e.VIDEOWISE_LIVE_ON_PENDING="videowiseLiveOnPending",e.VIDEOWISE_LIVE_ON_PLAY="videowiseLiveOnPlay",e.VIDEOWISE_LIVE_ON_STOP="videowiseLiveOnStop",e.VIDEOWISE_LIVE_ON_INTERACTION="videowiseLiveOnInteraction"}(s||(s={})),function(e){e.Play="play",e.Pause="pause",e.Stop="stop",e.Load="load",e.Pending="pending",e.Interaction="interaction"}(c||(c={})),function(e){e.MutePlayer="mute_player",e.UnmutePlayer="unmute_player",e.PausePlayer="pause_player",e.ResumePlayer="resume_player",e.Like="like_reaction",e.Share="share",e.AddToCalendar="add_to_calendar",e.SendChat="send_chat",e.ClosePlayer="close_player",e.MinimizePlayer="minimize_player",e.MaximizePlayer="maximize_player",e.ShowProductList="show_product_list",e.HideProductList="hide_product_list",e.ProductClick="product_click",e.AddToCart="add_to_cart",e.Checkout="checkout",e.ShowCart="show_cart",e.HideCart="hide_cart",e.ToggleCCOn="toggle_cc_on",e.ToggleCCOff="toggle_cc_off",e.Replay="replay",e.Progress="progress",e.CTA="cta"}(l||(l={})),function(e){e.DESKTOP="DESKTOP",e.MOBILE="MOBILE"}(u||(u={}));const _="reeview_lsid"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WindowBridgeLiveStreamRequester:()=>n});var i=r(41),o=r(42);class n{}n.getWindowParentHref=async()=>new Promise(((e,t)=>{window.parent.postMessage({request:i.WindowBridgeRequestEventType.GET_PARENT_WINDOW_HREF},"*"),window.addEventListener("message",(t=>{const r=t.data;r.responseType===i.WindowBridgeResponseEventType.RESPONSE_GET_WINDOW_PARENT_HREF&&e(r.data)}))})),n.disableLiveStream=()=>{window.parent.postMessage({request:i.WindowBridgeRequestEventType.DISABLE_LIVE_STREAM},"*")},n.addLiveStreamMetaTags=e=>{window.parent.postMessage({request:i.WindowBridgeRequestEventType.ADD_LIVE_STREAM_META_TAGS,payload:{liveStream:e}},"*")},n.dispatchLiveStreamTrackingCustomEvent=async e=>{if(!window.onlyFullscreen){const t=await o.LiveStreamApiHandler.postTrackingEvent(e);window.parent.postMessage({payload:{data:t,type:e.type},request:i.WindowBridgeRequestEventType.LIVE_STREAM_DISPATCH_CUSTOM_EVENT},"*")}}},(e,t,r)=>{"use strict";var i,o,n,a,d;r.r(t),r.d(t,{LiveStreamGlobalContextActionTypes:()=>i,LiveStreamLocalStorageKeys:()=>d,LiveStreamWSEventType:()=>o,WindowBridgeRequestEventType:()=>n,WindowBridgeResponseEventType:()=>a}),function(e){e.SET_EXTENDED_PLAYER="SET_EXTENDED_PLAYER",e.ON_PRODUCT_CARD_CLICK="ON_PRODUCT_CARD_CLICK",e.USER_LOGIN="USER_LOGIN",e.SET_SHOW_LOGIN_MODAL="SET_SHOW_LOGIN_MODAL",e.SET_LS_STATS="SET_LS_STATS",e.SET_LIVE_STREAM_ENABLED="SET_LIVE_STREAM_ENABLED",e.SET_SHOW_PRODUCTS="SET_SHOW_PRODUCTS",e.SET_LS_STATUS="SET_LS_STATUS",e.SET_LOADED_PRODUCTS="SET_LOADED_PRODUCTS",e.SET_IS_PLAYER_MANUALLY_SEEKING="SET_IS_PLAYER_MANUALLY_SEEKING"}(i||(i={})),function(e){e.ACTIVITY="activity",e.REPLAY="replay",e.STATS_UPDATE="stats_update",e.STATUS_UPDATE="status_update",e.CHAT_HISTORY_BATCH="chat_history_batch",e.MUX_UPDATE="mux_update",e.DELETED_USER="deleted_user"}(o||(o={})),function(e){e.IFRAME_SIZE_CHANGE="IFRAME_SIZE_CHANGE",e.ADD_TO_CART_ACTION="ADD_TO_CART_ACTION",e.GET_CART_ACTION="GET_CART_ACTION",e.REQUEST_SHOPIFY_WINDOW="REQUEST_SHOPIFY_WINDOW",e.UPDATE_PRODUCT_QUANTITY="UPDATE_PRODUCT_QUANTITY",e.DISABLE_LIVE_STREAM="DISABLE_LIVE_STREAM",e.ADD_LIVE_STREAM_META_TAGS="ADD_LIVE_STREAM_META_TAGS",e.LIVE_STREAM_DISPATCH_CUSTOM_EVENT="LIVE_STREAM_DISPATCH_CUSTOM_EVENT",e.INIT_SHOPIFY_WINDOW="INIT_SHOPIFY_WINDOW",e.GET_PARENT_WINDOW_HREF="GET_PARENT_WINDOW_HREF",e.REFRESH_AFTER_END="REFRESH_AFTER_END",e.REFRESH_PARENT_PAGE="REFRESH_PARENT_PAGE",e.GET_PRODUCT_FROM_SHOPIFY="GET_PRODUCT_FROM_SHOPIFY",e.GET_PLAYER_CURRENT_TIME="GET_PLAYER_CURRENT_TIME"}(n||(n={})),function(e){e.RESPONSE_SHOPIFY_ADD_TO_CART="RESPONSE_SHOPIFY_ADD_TO_CART",e.RESPONSE_SHOPIFY_WINDOW="RESPONSE_SHOPIFY_WINDOW",e.RESPONSE_GET_SHOPIFY_CART="RESPONSE_GET_SHOPIFY_CART",e.RESPONSE_UPDATE_PRODUCT_QUANTITY="RESPONSE_UPDATE_PRODUCT_QUANTITY",e.RESPONSE_GET_WINDOW_PARENT_HREF="RESPONSE_GET_WINDOW_PARENT_HREF",e.RESPONSE_GET_PRODUCT_FROM_SHOPIFY="RESPONSE_GET_PRODUCT_FROM_SHOPIFY",e.RESPONSE_GET_PLAYER_CURRENT_TIME="RESPONSE_GET_PLAYER_CURRENT_TIME"}(a||(a={})),function(e){e.LS_USER_SESSION="8a1fa0ad-0dee-4a52-acec-833cf5f31448",e.USER="448cb81e-6af4-454d-9b41-90f216e49057",e.LS_USER_TOKEN="e94ad357-6982-485f-96ff-84c86971d8dc"}(d||(d={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LiveStreamApiHandler:()=>w});var i,o=r(43),n=r(40),a=r(39),d=r(41),s=r(44),c=r(35),l=r(34);const u=(0,o.getApiUrlType)("direct"),_=new Date,p=e=>({id:e.id.toString(),name:e.name,sku:e.sku,highlighted:e.highlighted,meta:{customId:e.meta.customId,vendor:e.meta.vendor,price:parseFloat(e.price),compareAtPrice:e.meta.compareAtPrice,quantity:e.meta.quantity||e.quantity||1,currency:e.meta.currency}});class w{static async getPlayerCurrentTime(){return await new Promise(((e,t)=>{window.postMessage({request:d.WindowBridgeRequestEventType.GET_PLAYER_CURRENT_TIME},"*"),window.addEventListener("message",(r=>{const i=r.data;i.responseType===d.WindowBridgeResponseEventType.RESPONSE_GET_PLAYER_CURRENT_TIME&&(i.data||t("Error getting the current time of the player!"),e(i.data))}))}))}}i=w,w.postTrackingEvent=async({liveStream:e,type:t,lsInteractionType:r,product:o,socialShare:d,currentTime:w,iframe:v=!0})=>{const E=new Date,T=e.status===a.LiveStreamStatus.Live||e.status===a.LiveStreamStatus.Pause||e.status===a.LiveStreamStatus.Upcoming;let S=Object.assign(Object.assign({lsId:e.id,siteId:e.siteId,organisationId:e.organisationId,clientTS:new Date,videoElapsedMinutes:1==T?Math.floor((E.getTime()-new Date(e.startedOn).getTime())/6e4):Math.floor((E.getTime()-_.getTime())/6e4),videoElapsedSeconds:1==T?Math.floor((E.getTime()-new Date(e.startedOn).getTime())/1e3):Math.floor((E.getTime()-_.getTime())/1e3)},w?{currentTime:await i.getPlayerCurrentTime()}:{}),{uid:(0,c.default)(),device:(0,s.getDeviceType)(),isLive:T,url:v?await n.WindowBridgeLiveStreamRequester.getWindowParentHref():window.location.href,eventType:a.LSHostEventType.Interaction,interactionType:r});if(t===a.LiveStreamCustomEventType.VIDEOWISE_LIVE_ON_INTERACTION)switch(r){case a.LSWidgetInteractionType.Share:S=Object.assign(Object.assign({},S),{interactionType:a.LSWidgetInteractionType.Share,eventType:a.LSHostEventType.Interaction,socialShare:d});break;case a.LSWidgetInteractionType.ProductClick:S=Object.assign(Object.assign({},S),{interactionType:a.LSWidgetInteractionType.ProductClick,eventType:a.LSHostEventType.Interaction,item:p(o)});break;case a.LSWidgetInteractionType.AddToCart:S=Object.assign(Object.assign({},S),{interactionType:a.LSWidgetInteractionType.AddToCart,eventType:a.LSHostEventType.Interaction,item:p(o)})}return fetch(`${u}/live-stream/tracking`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},(0,l.getTrackingGuardHeaders)(S)),body:JSON.stringify(S)}),S}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getApiUrlType:()=>a});const i="https://api-cdn.videowise.com",o="https://api.videowise.com",n="https://api.videowise.com";function a(e){switch(e){case"direct":default:return n;case"base":return i;case"tracking":return o}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addToCalendar:()=>c,formatDateForCalendar:()=>s,formatSecondsToString:()=>d,getDeviceType:()=>n,pushVwLsIdToQueryUrl:()=>a});var i=r(40),o=r(45);const n=()=>window.screen.width>767?o.LSSettingsDeviceType.Desktop:o.LSSettingsDeviceType.Mobile,a=({lsId:e,remove:t=!1,withEvent:r=!0})=>{const i=new URLSearchParams(window.location.search);if(t){i.delete("vwLsId");const e=`${window.location.pathname}${i.toString()}`;window.history.pushState(null,"",e)}else{i.set("vwLsId",e);const t=`${window.location.pathname}?${i.toString()}`;window.history.pushState(null,"",t),r&&window.dispatchEvent(new CustomEvent("addLsToQuery"))}};function d(e){const t=Math.floor(e/604800),r=Math.floor(e%604800/86400),i=Math.floor(e%86400/3600),o=Math.floor(e%3600/60),n=(e%60).toString().padStart(2,"0"),a=o.toString().padStart(2,"0");return`${t>0?`${t}w`:""} ${r>0?`${r}d`:""} ${i.toString().padStart(2,"0")}:${a}:${n}`.trim()}function s(e){return`${e.getUTCFullYear()}${String(e.getUTCMonth()+1).padStart(2,"0")}${String(e.getUTCDate()).padStart(2,"0")}T${String(e.getUTCHours()).padStart(2,"0")}${String(e.getUTCMinutes()).padStart(2,"0")}${String(e.getUTCSeconds()).padStart(2,"0")}Z`}const c=async(e,t=!0)=>{var r=encodeURIComponent(`[\ud83d\udd34 LIVE] ${e.title}`);const o=t?await i.WindowBridgeLiveStreamRequester.getWindowParentHref():window.location.href;var n=encodeURIComponent(o),a=encodeURIComponent(`${e.title} - ${e.description}`);const d=new Date(e.programmed.fullDate);var c=s(new Date(e.programmed.fullDate));d.setHours(d.getHours()+1);var l=s(d);console.log(c);var u=`https://www.google.com/calendar/render?action=TEMPLATE&text=${r}&dates=${c}/${l}&details=${a}&location=${n}`;window.open(u,"_blank")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LSSettingsDeviceType:()=>n,LSSiteAllButtonStyles:()=>I,LSSitePrimaryButtonStyles:()=>P,LSSiteShowDetailsSettings:()=>C,LSSiteShowListSettings:()=>O,LiveStream:()=>m,LiveStreamChannelSettings:()=>f,LiveStreamChat:()=>u,LiveStreamCover:()=>d,LiveStreamCurtains:()=>_,LiveStreamLSStatsEvent:()=>y,LiveStreamMobileAppAssets:()=>S,LiveStreamMuxAssets:()=>T,LiveStreamPlayer:()=>c,LiveStreamPlayerButtonIcons:()=>i,LiveStreamPlayerStyles:()=>l,LiveStreamPolicyTerms:()=>p,LiveStreamPreRecordAssets:()=>g,LiveStreamProgramed:()=>E,LiveStreamSettings:()=>w,LiveStreamVideoSource:()=>h,MulticastCredentials:()=>v,MulticastPlatformEnum:()=>o,TextStyle:()=>s});var i,o,n,a=r(39);class d{}class s{constructor(){this.textSize=40,this.textWeight="BOLD",this.textColor="#FFFFFF"}}!function(e){e.None="NONE",e.Bag="BAG",e.Cart="CART"}(i||(i={}));class c{constructor(){this.hideViewerCount=!1,this.hidePriceOnHighlights=!1,this.allowReplays=!1,this.allowEnSubtitles=!1}}class l{constructor(){this.backgroundColor="#c02a2a",this.radius=4,this.showBorder=!1,this.borderColor="#000000",this.borderWidth=1,this.textColor="#FFFFFF",this.icon=i.None}}class u{constructor(){this.hideChatOnLive=!1,this.hideChatOnReplay=!1}}class _{constructor(){this.global=!0}}class p{constructor(){this.global=!0}}class w{constructor(){this.displayOnChannels=!0}}!function(e){e.tiktok="tiktok",e.instagram="instagram",e.facebook="facebook",e.youtube="youtube"}(o||(o={}));class v{}class E{}class T{}class S extends T{}class g extends T{}class h{constructor(){this.videoSourceType=a.VideoSourceType.MobileApp}}class m{constructor(){this.status=a.LiveStreamStatus.Draft,this.settings=new w}}class y{}!function(e){e.Mobile="mobile",e.Desktop="desktop"}(n||(n={}));class O{}class f{}class I{}class C{}class P{}}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,(()=>{var e="function"===typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"===typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"===typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))};__webpack_require__.a=(o,n,a)=>{var d;a&&((d=[]).d=-1);var s,c,l,u=new Set,_=o.exports,p=new Promise(((e,t)=>{l=t,c=e}));p[t]=_,p[e]=e=>(d&&e(d),u.forEach(e),p.catch((e=>{}))),o.exports=p,n((o=>{var n;s=(o=>o.map((o=>{if(null!==o&&"object"===typeof o){if(o[e])return o;if(o.then){var n=[];n.d=0,o.then((e=>{a[t]=e,i(n)}),(e=>{a[r]=e,i(n)}));var a={};return a[e]=e=>e(n),a}}var d={};return d[e]=e=>{},d[t]=o,d})))(o);var a=()=>s.map((e=>{if(e[r])throw e[r];return e[t]})),c=new Promise((t=>{(n=()=>t(a)).r=0;var r=e=>e!==d&&!u.has(e)&&(u.add(e),e&&!e.d&&(n.r++,e.push(n)));s.map((t=>t[e](r)))}));return n.r?c:a()}),(e=>(e?l(p[r]=e):c(_),i(d)))),d&&d.d<0&&(d.d=0)}})(),(()=>{var e=[];__webpack_require__.O=(t,r,i,o)=>{if(!r){var n=1/0;for(c=0;c<e.length;c++){for(var[r,i,o]=e[c],a=!0,d=0;d<r.length;d++)(!1&o||n>=o)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](r[d])))?r.splice(d--,1):(a=!1,o<n&&(n=o));if(a){e.splice(c--,1);var s=i();void 0!==s&&(t=s)}}return t}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[r,i,o]}})(),__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,r)=>(__webpack_require__.f[r](e,t),t)),[])),__webpack_require__.u=e=>"1146-"+({0:"App",1:"BackgroundFeature",2:"CarouselFeature",3:"CarouselScatteredFeature",4:"CarouselUI",5:"CustomModalFeature",6:"Floating",7:"Grid",8:"GridMasonryBigVideoVideoFeature",9:"GridMasonryFeature",10:"Heading",11:"ImageHotspotsFeature",12:"InlineShoppableProductFeature",13:"InlineVideoPlayerFeature",14:"Interactions",15:"MetaUI",16:"NavigationFeature",17:"NavigationIconUI",18:"Player",19:"ProductWidget",20:"Proxy0",21:"Proxy10",22:"Proxy12",23:"Proxy14",24:"Proxy2",25:"Proxy4",26:"Proxy6",27:"Proxy8",28:"Reeview",29:"SeoBlock",31:"ShoppableCardList",32:"ShoppableCarouselFeature",33:"SingleFeature",34:"SingleImageFeature",35:"SocialProfile",36:"StoryFeature",37:"TestimonialFeature",38:"UGCFeature",39:"VideoCardBaseFeature",40:"VideoCardFeature",41:"VideoCardStory",42:"VideoFeature",43:"VideoUI",44:"Widget",46:"set-effects-on-carousel"}[e]||e)+".js",__webpack_require__.miniCssF=e=>e+".style.css",__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="videowise-widget:";__webpack_require__.l=(r,i,o,n)=>{if(e[r])e[r].push(i);else{var a,d;if(void 0!==o)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var l=s[c];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==t+o){a=l;break}}a||(d=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-webpack",t+o),a.src=r),e[r]=[i];var u=(t,i)=>{a.onerror=a.onload=null,clearTimeout(_);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(i))),t)return t(i)},_=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),d&&document.head.appendChild(a)}}})(),__webpack_require__.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.p="https://assets.videowise.com/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var i=__webpack_require__.miniCssF(e),o=__webpack_require__.p+i;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),i=0;i<r.length;i++){var o=(a=r[i]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var n=document.getElementsByTagName("style");for(i=0;i<n.length;i++){var a;if((o=(a=n[i]).getAttribute("data-href"))===e||o===t)return a}})(i,o))return t();((e,t,r,i,o)=>{var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",__webpack_require__.nc&&(n.nonce=__webpack_require__.nc),n.onerror=n.onload=r=>{if(n.onerror=n.onload=null,"load"===r.type)i();else{var a=r&&r.type,d=r&&r.target&&r.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+a+": "+d+")");s.name="ChunkLoadError",s.code="CSS_CHUNK_LOAD_FAILED",s.type=a,s.request=d,n.parentNode&&n.parentNode.removeChild(n),o(s)}},n.href=t,r?r.parentNode.insertBefore(n,r.nextSibling):document.head.appendChild(n)})(e,o,null,t,r)})),t={45:0};__webpack_require__.f.miniCss=(r,i)=>{t[r]?i.push(t[r]):0!==t[r]&&{30:1,32:1}[r]&&i.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={45:0};__webpack_require__.f.j=(t,r)=>{var i=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else if(30!=t){var o=new Promise(((r,o)=>i=e[t]=[r,o]));r.push(i[2]=o);var n=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(n,(r=>{if(__webpack_require__.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+n+")",a.name="ChunkLoadError",a.type=o,a.request=n,i[1](a)}}),"chunk-"+t,t)}else e[t]=0},__webpack_require__.O.j=t=>0===e[t];var t=(t,r)=>{var i,o,[n,a,d]=r,s=0;if(n.some((t=>0!==e[t]))){for(i in a)__webpack_require__.o(a,i)&&(__webpack_require__.m[i]=a[i]);if(d)var c=d(__webpack_require__)}for(t&&t(r);s<n.length;s++)o=n[s],__webpack_require__.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return __webpack_require__.O(c)},r=self.webpackChunkvideowise_widget=self.webpackChunkvideowise_widget||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var __webpack_exports__=__webpack_require__.O(void 0,[47],(()=>__webpack_require__(0)));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();