var getRandomValues,vidjetDisplayLaunchPopup=e=>{{const t=`\n
\n
\n

Your video popup looks stunning!

\n
\n Back to Vidjet\n
\n `,i="\n @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');\n .vidjet-preview-launch-popup {\n font-family: 'Montserrat', sans-serif;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n background-color: white;\n position: fixed;\n left: 0;\n top: 0;\n margin: 10px;\n z-index: 9999999999999;\n box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.12);\n border-radius: 10px;\n text-align: center;\n padding: 30px 90px;\n max-width: 500px;\n }\n\n .vidjet-wrapper {\n width: 100%;\n }\n\n\n .vidjet-preview-launch-text {\n\n }\n\n .vidjet-preview-launch-text h1 {\n font: inherit;\n font-weight: 600;\n font-size: 20px !important;\n line-height: 24px;\n color: #585858;\n }\n .vidjet-preview-launch-text h1 strong {\n font-weight: 800;\n }\n\n .vidjet-preview-launch-button {\n color: #585858;\n font-weight: 500;\n font-size: 14px;\n line-height: 17px;\n padding: 10px 20px;\n background: white;\n box-shadow: 2px 2px 15px rgba(141, 22, 193, 0.25);\n border-radius: 20px;\n border: none;\n cursor: pointer;\n text-decoration: none;\n }\n\n .vidjet-preview-launch-button:hover {\n background: #FAE8FF;\n }\n ",a=document.createElement("style");a.innerHTML=i,document.body.appendChild(a);const o=document.createElement("div");o.classList.add("vidjet-wrapper"),o.innerHTML=t,document.body.appendChild(o);document.getElementById("vidjet-launch-campaign-button-popup").addEventListener("click",(()=>{_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId")}))}},rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(e){return"string"==typeof e&®EX.test(e)}function stringify(e){var t=[];for(let e=0;e<256;++e)t.push((e+256).toString(16).substr(1));var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(t[e[i+0]]+t[e[i+1]]+t[e[i+2]]+t[e[i+3]]+"-"+t[e[i+4]]+t[e[i+5]]+"-"+t[e[i+6]]+t[e[i+7]]+"-"+t[e[i+8]]+t[e[i+9]]+"-"+t[e[i+10]]+t[e[i+11]]+t[e[i+12]]+t[e[i+13]]+t[e[i+14]]+t[e[i+15]]).toLowerCase();if(!validate(a))throw TypeError("Stringified UUID is invalid");return a}var Vidjet=function(){var e,t,i=/(tablet|ipad|playbook|silk|kindle)/i.test(navigator.userAgent)||/(android(?!.*mobi))|Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|(hpw|web)OS|Opera M(obi|ini)/i.test(navigator.userAgent),a={campaignsActivated:JSON.parse("[]"),campaignsPaused:JSON.parse('[{"_id":"4ec30c6e-ee27-4add-bc23-bab1d64fe9d1","name":"0822 Hemper Box","video":{"useCase":"bubble","url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/b7dc0e15-1b84-47f3-8757-9cf34e67f2fa/295302851_611648843871171_4147029354869106035_n.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/b7dc0e15-1b84-47f3-8757-9cf34e67f2fa/295302851_611648843871171_4147029354869106035_n.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/b7dc0e15-1b84-47f3-8757-9cf34e67f2fa/295302851_611648843871171_4147029354869106035_n.mp4","fileName":"295302851_611648843871171_4147029354869106035_n.mp4","height":1280,"width":720,"videoDuration":35.7,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/b7dc0e15-1b84-47f3-8757-9cf34e67f2fa/295302851_611648843871171_4147029354869106035_n.mp4.m3u8"},"formats":[{"deviceType":1,"autoLoop":false,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"This Month's Hemper Box 🌪️","cta":{"text":"SHOP","textColor":"#FFFFFF","value":"https://www.hemper.co/products/the-glassentials-box/?utm_source=bubble&utm_medium=web&utm_campaign=video_popup","buttonColor":"#31C82D","ctaType":0},"formatType":1,"isStickyBar":false,"openByDefault":true,"position":1,"hideBubble":false,"bubbleSize":120,"bubbleShape":"square","moveX":0,"moveY":0},{"deviceType":0,"autoLoop":true,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"This Month's Hemper Box","formatType":1,"isStickyBar":false,"openByDefault":true,"position":1,"hideBubble":false,"bubbleSize":90,"bubbleShape":"square","moveX":0,"moveY":0,"cta":{"text":"SHOP","textColor":"#FFFFFF","value":"https://www.hemper.co/products/the-glassentials-box/?utm_source=bubble&utm_medium=web&utm_campaign=video_popup","buttonColor":"#31C82D","ctaType":0}}],"segmentation":{"trigger":{"type":3,"option":6},"viewRestriction":{"maxView":1,"notShownTime":24},"url":[{"filters":[{"comparison":"contains","string":"?popupbubble"},{"comparison":"not_contains","string":"https://www.hemper.co/products/the-glassentials-box"}],"type":"and"}]},"siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","order":1,"stateFlag":0,"startDate":"2022-07-22T19:37:15.922Z","creationDate":"2022-08-02T19:09:17.322Z","modificationDate":"2023-03-10T11:24:14.645Z","videos":[{"videoId":"78304451-e776-471a-90ee-36c65c885534","cta":{"text":"SHOP","textColor":"#FFFFFF","value":"https://www.hemper.co/products/the-glassentials-box/?utm_source=bubble&utm_medium=web&utm_campaign=video_popup","buttonColor":"#31C82D","ctaType":0},"_id":"78304451-e776-471a-90ee-36c65c885534","url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/b7dc0e15-1b84-47f3-8757-9cf34e67f2fa/295302851_611648843871171_4147029354869106035_n.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/b7dc0e15-1b84-47f3-8757-9cf34e67f2fa/295302851_611648843871171_4147029354869106035_n.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/b7dc0e15-1b84-47f3-8757-9cf34e67f2fa/295302851_611648843871171_4147029354869106035_n.mp4","fileName":"295302851_611648843871171_4147029354869106035_n.mp4","height":1280,"width":720,"videoDuration":35.7,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/b7dc0e15-1b84-47f3-8757-9cf34e67f2fa/295302851_611648843871171_4147029354869106035_n.mp4.m3u8","siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","creationDate":"2022-11-28T10:40:28.114Z","modificationDate":"2022-11-28T10:40:28.114Z"}]},{"_id":"dd784a41-f08a-46ad-addc-c5a0db50b868","name":"0922 Hemper Box - Normal","video":{"url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/dd784a41-f08a-46ad-addc-c5a0db50b868/0922_hemper_unbox.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/dd784a41-f08a-46ad-addc-c5a0db50b868/0922_hemper_unbox.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/dd784a41-f08a-46ad-addc-c5a0db50b868/0922_hemper_unbox.mp4","fileName":"0922_hemper_unbox.mp4","height":1280,"width":720,"videoDuration":89.8,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/dd784a41-f08a-46ad-addc-c5a0db50b868/0922_hemper_unbox.mp4.m3u8"},"formats":[{"formatType":1,"isStickyBar":false,"openByDefault":false,"position":0,"hideBubble":true,"bubbleSize":120,"bubbleShape":"square","moveX":30,"moveY":30,"autoLoop":true,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"Piña Colada Hemper Box 🍹","deviceType":1,"cta":{"text":"SHOP NOW","textColor":"#FFFFFF","value":"https://www.hemper.co/products/the-glassentials-box/?utm_source=bubble&utm_medium=web&utm_campaign=video_popup","buttonColor":"#31C82D","ctaType":0}},{"formatType":1,"isStickyBar":false,"openByDefault":false,"position":0,"hideBubble":false,"bubbleSize":90,"bubbleShape":"square","moveX":10,"moveY":50,"autoLoop":true,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"Piña Colada Hemper Box 🍹","deviceType":0,"cta":{"text":"SHOP NOW","textColor":"#FFFFFF","value":"https://www.hemper.co/products/the-glassentials-box/?utm_source=bubble&utm_medium=web&utm_campaign=video_popup","buttonColor":"#31C82D","ctaType":0}}],"segmentation":{"trigger":{"type":0,"option":0},"viewRestriction":{"maxView":4,"notShownTime":24},"url":[{"filters":[{"type":"or","filters":[{"comparison":"eq","string":"https://www.hemper.co/"},{"comparison":"contains","string":"utm_medium=email"}]},{"comparison":"not_contains","string":"utm_medium=LinkinBio"}],"type":"and"}]},"siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","order":1,"stateFlag":0,"startDate":"2022-07-22T19:37:15.922Z","creationDate":"2022-09-09T21:13:57.946Z","modificationDate":"2022-11-28T10:45:50.375Z","hasEverBeenStarted":true,"setEndDate":"","setStartDate":"","videos":[{"videoId":"c0d27946-dd2c-42e8-911d-ca744818eb06","cta":{"text":"SHOP NOW","textColor":"#FFFFFF","value":"https://www.hemper.co/products/the-glassentials-box/?utm_source=bubble&utm_medium=web&utm_campaign=video_popup","buttonColor":"#31C82D","ctaType":0},"_id":"c0d27946-dd2c-42e8-911d-ca744818eb06","url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/dd784a41-f08a-46ad-addc-c5a0db50b868/0922_hemper_unbox.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/dd784a41-f08a-46ad-addc-c5a0db50b868/0922_hemper_unbox.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/dd784a41-f08a-46ad-addc-c5a0db50b868/0922_hemper_unbox.mp4","fileName":"0922_hemper_unbox.mp4","height":1280,"width":720,"videoDuration":89.8,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/dd784a41-f08a-46ad-addc-c5a0db50b868/0922_hemper_unbox.mp4.m3u8","siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","creationDate":"2022-11-28T10:45:50.305Z","modificationDate":"2022-11-28T10:45:50.305Z"}]},{"_id":"9b166e2d-5161-49f5-9a20-725786a637d3","name":"Box XL-water line-10-2022","video":{"url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/9b166e2d-5161-49f5-9a20-725786a637d3/hemper_xl_water_line.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/9b166e2d-5161-49f5-9a20-725786a637d3/hemper_xl_water_line.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/9b166e2d-5161-49f5-9a20-725786a637d3/hemper_xl_water_line.mp4","fileName":"hemper_xl_water_line.mp4","height":1280,"width":720,"videoDuration":25.2,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/9b166e2d-5161-49f5-9a20-725786a637d3/hemper_xl_water_line.mp4.m3u8"},"formats":[{"formatType":1,"isStickyBar":false,"openByDefault":false,"position":0,"hideBubble":false,"bubbleSize":90,"bubbleShape":"square","moveX":0,"moveY":0,"autoLoop":false,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"","deviceType":1},{"formatType":1,"isStickyBar":false,"openByDefault":false,"position":0,"hideBubble":false,"bubbleSize":90,"bubbleShape":"square","moveX":10,"moveY":50,"autoLoop":true,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"","deviceType":0}],"segmentation":{"trigger":{"type":0,"option":0},"viewRestriction":{"maxView":4,"notShownTime":24},"url":[{"comparison":"contains","string":"function=true"}]},"siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","order":2,"stateFlag":0,"startDate":"2022-07-22T19:37:15.922Z","hasEverBeenStarted":true,"setEndDate":"","setStartDate":"","creationDate":"2022-10-10T14:44:16.769Z","modificationDate":"2022-11-28T11:08:33.164Z","videos":[{"videoId":"8f62cbf4-58f1-471e-a97e-ad269db73cbf","_id":"8f62cbf4-58f1-471e-a97e-ad269db73cbf","url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/9b166e2d-5161-49f5-9a20-725786a637d3/hemper_xl_water_line.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/9b166e2d-5161-49f5-9a20-725786a637d3/hemper_xl_water_line.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/9b166e2d-5161-49f5-9a20-725786a637d3/hemper_xl_water_line.mp4","fileName":"hemper_xl_water_line.mp4","height":1280,"width":720,"videoDuration":25.2,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/9b166e2d-5161-49f5-9a20-725786a637d3/hemper_xl_water_line.mp4.m3u8","siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","creationDate":"2022-11-28T11:08:33.111Z","modificationDate":"2022-11-28T11:08:33.111Z"}]},{"_id":"28dc9ada-ad59-4a58-82b6-8309be5eea60","name":"Box XL-unboxing-10-2022","video":{"url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/28dc9ada-ad59-4a58-82b6-8309be5eea60/hemper_xl_unbox.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/28dc9ada-ad59-4a58-82b6-8309be5eea60/hemper_xl_unbox.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/28dc9ada-ad59-4a58-82b6-8309be5eea60/hemper_xl_unbox.mp4","fileName":"hemper_xl_unbox.mp4","height":1280,"width":720,"videoDuration":42.8,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/28dc9ada-ad59-4a58-82b6-8309be5eea60/hemper_xl_unbox.mp4.m3u8"},"formats":[{"formatType":1,"isStickyBar":false,"openByDefault":true,"position":0,"hideBubble":false,"bubbleSize":90,"bubbleShape":"square","moveX":0,"moveY":0,"autoLoop":false,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"","deviceType":1},{"formatType":1,"isStickyBar":false,"openByDefault":true,"position":0,"hideBubble":false,"bubbleSize":90,"bubbleShape":"square","moveX":10,"moveY":50,"autoLoop":true,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"","deviceType":0}],"segmentation":{"trigger":{"type":0,"option":0},"viewRestriction":{"maxView":4,"notShownTime":24},"url":[{"filters":[{"comparison":"contains","string":"unbox=true"},{"type":"and","filters":[{"comparison":"not_contains","string":"utm_medium=LinkinBio"},{"comparison":"not_contains","string":"products/"},{"comparison":"not_contains","string":"unbox=true"}]}],"type":"and"}]},"siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","order":3,"stateFlag":0,"startDate":"2022-07-22T19:37:15.922Z","hasEverBeenStarted":true,"setEndDate":"","setStartDate":"","creationDate":"2022-10-10T15:31:09.781Z","modificationDate":"2022-11-28T11:12:30.088Z","videos":[{"videoId":"81bc82a6-1925-4411-bc31-8a854dc12fd6","_id":"81bc82a6-1925-4411-bc31-8a854dc12fd6","url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/28dc9ada-ad59-4a58-82b6-8309be5eea60/hemper_xl_unbox.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/28dc9ada-ad59-4a58-82b6-8309be5eea60/hemper_xl_unbox.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/28dc9ada-ad59-4a58-82b6-8309be5eea60/hemper_xl_unbox.mp4","fileName":"hemper_xl_unbox.mp4","height":1280,"width":720,"videoDuration":42.8,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/28dc9ada-ad59-4a58-82b6-8309be5eea60/hemper_xl_unbox.mp4.m3u8","siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","creationDate":"2022-11-28T11:12:30.010Z","modificationDate":"2022-11-28T11:12:30.010Z"}]},{"_id":"3f474675-0164-4048-88dc-38cf46a943de","name":"D-Box-unboxing-10-2022","video":{"url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4","fileName":"1022_hemper_unbox.mp4","height":1280,"width":720,"videoDuration":34.2,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4.m3u8"},"formats":[{"formatType":1,"isStickyBar":false,"openByDefault":false,"position":0,"hideBubble":true,"bubbleSize":90,"bubbleShape":"square","moveX":30,"moveY":30,"autoLoop":true,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"","deviceType":1}],"segmentation":{"trigger":{"type":0,"option":0},"viewRestriction":{"maxView":4,"notShownTime":24},"url":[{"comparison":"not_contains","string":"utm_medium=LinkinBio"}]},"siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","order":4,"stateFlag":0,"startDate":"2022-07-22T19:37:15.922Z","hasEverBeenStarted":true,"setEndDate":"","setStartDate":"","creationDate":"2022-10-10T15:42:16.054Z","modificationDate":"2022-11-28T11:15:06.747Z","videos":[{"videoId":"dca82206-d5d3-42b2-8e5d-d5097f3cd855","_id":"dca82206-d5d3-42b2-8e5d-d5097f3cd855","url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4","fileName":"1022_hemper_unbox.mp4","height":1280,"width":720,"videoDuration":34.2,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4.m3u8","siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","creationDate":"2022-11-28T11:15:06.693Z","modificationDate":"2022-11-28T11:15:06.693Z"}]},{"_id":"7f97a029-293d-4944-b70d-5f23b459947e","name":"M-Box-unboxing-10-2022","video":{"url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4","fileName":"1022_hemper_unbox.mp4","height":1280,"width":720,"videoDuration":34.2,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4.m3u8"},"formats":[{"formatType":1,"isStickyBar":false,"openByDefault":false,"position":0,"hideBubble":true,"bubbleSize":60,"bubbleShape":"square","moveX":30,"moveY":30,"autoLoop":true,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"","deviceType":0}],"segmentation":{"trigger":{"type":0,"option":0},"viewRestriction":{"maxView":4,"notShownTime":24},"url":[{"type":"and","filters":[{"comparison":"not_contains","string":"utm_medium=LinkinBio"},{"comparison":"not_contains","string":"products/"}]}]},"siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","order":5,"stateFlag":0,"startDate":"2022-07-22T19:37:15.922Z","hasEverBeenStarted":true,"setEndDate":"","setStartDate":"","creationDate":"2022-10-10T17:00:28.825Z","modificationDate":"2022-11-28T11:17:17.426Z","videos":[{"videoId":"287af6eb-a99d-4bc6-8a22-d77a12f6db18","_id":"287af6eb-a99d-4bc6-8a22-d77a12f6db18","url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4","fileName":"1022_hemper_unbox.mp4","height":1280,"width":720,"videoDuration":34.2,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/3f474675-0164-4048-88dc-38cf46a943de/1022_hemper_unbox.mp4.m3u8","siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","creationDate":"2022-11-28T11:17:17.372Z","modificationDate":"2022-11-28T11:17:17.372Z"}]},{"_id":"1412bc29-8ef5-4797-aedc-1da53f514a70","name":"D-Box-unboxing-11-2022","video":{"url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4","fileName":"fec77d20de502d_ad346204146.mp4","height":1920,"width":1080,"videoDuration":52.8,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4.m3u8"},"formats":[{"formatType":1,"isStickyBar":false,"openByDefault":false,"position":0,"hideBubble":true,"bubbleSize":90,"bubbleShape":"square","moveX":30,"moveY":30,"autoLoop":true,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"","deviceType":1}],"segmentation":{"trigger":{"type":0,"option":0},"viewRestriction":{"maxView":4,"notShownTime":24},"url":[{"comparison":"not_contains","string":"utm_medium=LinkinBio"}]},"siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","order":6,"stateFlag":0,"startDate":"2022-07-22T19:37:15.922Z","hasEverBeenStarted":true,"setEndDate":"","setStartDate":"","creationDate":"2022-11-22T20:33:30.391Z","modificationDate":"2022-12-01T03:51:58.266Z","videos":[{"videoId":"a0541a9e-3b97-45c2-b88d-3ac062bb4c8d","_id":"a0541a9e-3b97-45c2-b88d-3ac062bb4c8d","url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4","fileName":"fec77d20de502d_ad346204146.mp4","height":1920,"width":1080,"videoDuration":52.8,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4.m3u8","siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","creationDate":"2022-11-28T11:19:58.831Z","modificationDate":"2022-11-28T11:19:58.831Z"}]},{"_id":"f5922253-253f-4e92-8723-14149afc40ca","name":"Box XL-unboxing-11-2022","video":{"url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/f5922253-253f-4e92-8723-14149afc40ca/6318a222a013b2_em346964166.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/f5922253-253f-4e92-8723-14149afc40ca/6318a222a013b2_em346964166.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/f5922253-253f-4e92-8723-14149afc40ca/6318a222a013b2_em346964166.mp4","fileName":"6318a222a013b2_em346964166.mp4","height":1920,"width":1080,"videoDuration":55.5,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/f5922253-253f-4e92-8723-14149afc40ca/6318a222a013b2_em346964166.mp4.m3u8"},"formats":[{"formatType":1,"isStickyBar":false,"openByDefault":true,"position":0,"hideBubble":false,"bubbleSize":90,"bubbleShape":"square","moveX":0,"moveY":0,"autoLoop":false,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"","deviceType":1},{"formatType":1,"isStickyBar":false,"openByDefault":true,"position":0,"hideBubble":false,"bubbleSize":90,"bubbleShape":"square","moveX":10,"moveY":50,"autoLoop":true,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"","deviceType":0}],"segmentation":{"trigger":{"type":0,"option":0},"viewRestriction":{"maxView":4,"notShownTime":24},"url":[{"filters":[{"comparison":"eq","string":"https://www.hemper.co/products/the-hemper-box-xl"},{"type":"and","filters":[{"comparison":"not_contains","string":"utm_medium=LinkinBio"},{"comparison":"not_contains","string":"products/"},{"comparison":"not_contains","string":"unbox=true"}]}],"type":"and"}]},"siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","order":7,"stateFlag":0,"startDate":"2022-07-22T19:37:15.922Z","hasEverBeenStarted":true,"setEndDate":"","setStartDate":"","creationDate":"2022-11-23T18:59:25.282Z","modificationDate":"2022-12-01T03:51:59.602Z","videos":[{"videoId":"d36d0f36-141f-41f2-ac83-4ba3f38e8f44","_id":"d36d0f36-141f-41f2-ac83-4ba3f38e8f44","url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/f5922253-253f-4e92-8723-14149afc40ca/6318a222a013b2_em346964166.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/f5922253-253f-4e92-8723-14149afc40ca/6318a222a013b2_em346964166.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/f5922253-253f-4e92-8723-14149afc40ca/6318a222a013b2_em346964166.mp4","fileName":"6318a222a013b2_em346964166.mp4","height":1920,"width":1080,"videoDuration":55.5,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/f5922253-253f-4e92-8723-14149afc40ca/6318a222a013b2_em346964166.mp4.m3u8","siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","creationDate":"2022-11-28T11:21:19.704Z","modificationDate":"2022-11-28T11:21:19.704Z"}]},{"_id":"7024e2d7-aa0a-4a43-ba4e-e48d484a1a0a","name":"D-Box-unboxing-11-2022 (Copy)","video":{"url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4","fileName":"fec77d20de502d_ad346204146.mp4","height":1920,"width":1080,"videoDuration":52.8,"streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/1412bc29-8ef5-4797-aedc-1da53f514a70/fec77d20de502d_ad346204146.mp4.m3u8"},"formats":[{"formatType":1,"isStickyBar":false,"openByDefault":false,"position":0,"hideBubble":true,"bubbleSize":90,"bubbleShape":"square","moveX":30,"moveY":30,"autoLoop":true,"autoplay":false,"hidePlayPause":false,"hideControlBar":false,"title":"","deviceType":1}],"segmentation":{"trigger":{"type":0,"option":0},"viewRestriction":{"maxView":4,"notShownTime":24},"url":[{"type":"and","filters":[{"comparison":"not_contains","string":"utm_medium=LinkinBio"},{"comparison":"not_contains","string":"https://www.hemper.co/products/the-glassentials-box"}]}]},"siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","order":8,"stateFlag":0,"startDate":"2022-07-22T19:37:15.922Z","hasEverBeenStarted":true,"setEndDate":"","setStartDate":"","videos":[{"videoId":"e0ea8f73-4ce0-43cc-bb16-9744b0c91962","cta":{"text":"SHOP NOW","textColor":"#FFFFFF","value":"https://www.hemper.co/products/the-glassentials-box/?utm_source=bubble&utm_medium=web&utm_campaign=video_popup","buttonColor":"#31C82D","ctaType":0},"_id":"e0ea8f73-4ce0-43cc-bb16-9744b0c91962","siteId":"b703becc-2ef0-45fc-834f-de1fda71bc28","url":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/e0ea8f73-4ce0-43cc-bb16-9744b0c91962/milk_and_cookies_hand_unboxing.mp4-compressed.mp4","height":1920,"width":1080,"videoDuration":81.1,"fileName":"MILK-AND-COOKIES-HAND-UNBOXING.mp4","creationDate":"2022-12-01T23:50:22.652Z","modificationDate":"2022-12-06T12:33:15.645Z","key":"b703becc-2ef0-45fc-834f-de1fda71bc28/e0ea8f73-4ce0-43cc-bb16-9744b0c91962/milk_and_cookies_hand_unboxing.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/b703becc-2ef0-45fc-834f-de1fda71bc28/e0ea8f73-4ce0-43cc-bb16-9744b0c91962/milk_and_cookies_hand_unboxing.mp4","streamingUrl":"https://video.vidjet.io/b703becc-2ef0-45fc-834f-de1fda71bc28/e0ea8f73-4ce0-43cc-bb16-9744b0c91962/milk_and_cookies_hand_unboxing.mp4.m3u8"}],"creationDate":"2022-12-01T23:49:52.176Z","modificationDate":"2023-01-02T21:23:35.646Z"}]'),site:JSON.parse('{"integration":"manual","_id":"b703becc-2ef0-45fc-834f-de1fda71bc28","websiteUrl":"https://www.hemper.co","isLocked":false,"showWatermark":false}'),playerUrl:JSON.parse('"https://player.vidjet.io"'),backendUrl:JSON.parse('"https://app-api.vidjet.io"')},o=!1,d=!1,n=window.location.search,c=new URLSearchParams(n),s=Boolean(_getCookie("vidjet-preview")),r=_getCookie("vidjet-campaignId");o=s;var l=!1,f=!1,m=[],p={},u=!1,b=!1,h=120;const v={width:40,height:40};let g=0;const y=_getCookie("vidjet-sessionId");var _=y||function(e,t,i){var a=(e=e||{}).random||(e.rng||rng)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=a[e];return t}return stringify(a)}();_setCookie("vidjet-sessionId",_,1);var w={url:location.href,sessionId:_};"product"===window?.ShopifyAnalytics?.meta?.page?.resourceType&&(w.productId=ShopifyAnalytics.meta.page.resourceId);var x={landing:0,exit:1,scroll:2,delay:3},j={mobile:0,desktop:1};_sendAnalyticsToIframes(),window.addEventListener("message",(i=>{"vidjet"===i.data.messageOrigin&&function(i){const{origin:o,properties:d}=i&&i.data,n=document.querySelector(".vidjet-iframe")||document.querySelector(".vidjet-embed-iframe");if(n)if("closeMainPlayer"===o){if(d&&d.currentVideoId&&"original"===e.bubbleShape){const e=m.find((e=>e._id===d.currentVideoId));p={height:e.height,width:e.width}}if(b=!1,setTimeout((()=>{const{width:e,height:t}=_setBubbleSize();n.style.width=`${e+v.width}px`,n.style.height=`${t+v.height}px`}),500),e.isFullScreen){document.querySelectorAll(".vidjet-body").forEach((e=>e.classList.remove("vidjet-body"))),n.classList.remove("vidjet-fullscreen"),window.scrollTo(0,g);const t=10;n.style.bottom=e.moveY?`${e.moveY+t}px`:`${t}px`,n.style.display="block",1===e.position?(n.style.left="unset",n.style.right=e.moveX?`${e.moveX+t}px`:`${t}px`):0===e.position&&(n.style.right="unset",n.style.left=e.moveX?`${e.moveX+t}px`:`${t}px`)}}else if("openMainPlayer"===o)if(b=!0,u&&(p={width:1080,height:1920}),e.isFullScreen)n.style.height="100%",n.style.width="100%",n.style.bottom="0px",n.style.right="0px",n.style.left="0px",n.classList.add("vidjet-fullscreen"),_injectCssFullScreen();else{if(_isWarmangoProductCampaign(a.site._id,t._id))return n.style.width="auto",void(n.style.height="100%");const{iframeWidth:e,iframeHeight:i}=_setIframeSize(p);n.style.width=`${e}px`,n.style.height=`${i}px`}else if("destroyIframe"===o)setTimeout((()=>{_destroyIframe(),e?.isStickyBar&&document.getElementById("vidjet-stickybar")&&document.getElementById("vidjet-stickybar").classList.remove("vidjet-hidden")}),500);else if("getCartItems"===o)!async function(){const e=[document.querySelector(".vidjet-iframe"),...document.querySelectorAll(".vidjet-embed-iframe")],t={action:"sendCartItems",data:await _getCartItems()},i=e.filter((e=>e));i.length>0&&i.forEach((e=>{e.contentWindow.postMessage(t,"*")}))}();else if("addToCart"===o)!function(e){switch(a.site.integration){case"shopify":!function(e){let t={items:[{id:e.variantId,qty:e.qty||1}]};fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}(e);break;case"woocommerce":window.vidjetAddToCart(e),e.isBuyNow&&(window.location.href=window.vidjetcheckoutUrl);break;case"prestashop":!function(e){const t=prestashop.static_token,i=prestashop.urls.pages.cart;var a="controller=cart&add=1&action=update&ajax=true&qty="+(e.qty||1)+"&token="+t+"&id_product="+e.productId+"&ipa="+e.variantId;$.post(i,a,null,"json").then((t=>{prestashop.emit("updateCart",{reason:{},resp:t}),e.isBuyNow&&(window.location.href=prestashop.urls.pages.order)})).fail((e=>{prestashop.emit("handleError",{eventType:"addProductToCart",resp:e})}))}(e)}}(d);else if("killIframe"===o){const e=document.querySelector(`iframe[data-vidjet-campaign-id="${d.campaignId}"]`);e?.parentElement?.remove()}else if("getAnalytics"===o){const e={action:"getAnalytics",data:w};n.contentWindow.postMessage(e,"*")}else"openFullScreen"===o?(!function(e){const t=".vidjet-fullscreen { \n position: fixed !important; \n height: 100% !important; \n width: 100% !important; \n z-index: 2147483647; \n top: 0; \n right: 0; \n bottom: 0px; \n left: 0px; \n max-height: none !important; \n margin: 0 !important\n } ",i=document.createElement("style");i.innerText=t,document.head.appendChild(i),window.scrollY&&(g=window.scrollY);const a=_targetCarousels(e);a.forEach((e=>{Array.from(e.classList).includes("vidjet-fullscreen")||e.parentElement.classList.add("vidjet-fullscreen")})),document.querySelectorAll(".vidjet-iframe").forEach((e=>{e.style.display="none"}))}(d),_injectCssFullScreen()):"closeFullScreen"===o?(document.querySelectorAll(".vidjet-body").forEach((e=>e.classList.remove("vidjet-body"))),document.querySelectorAll(".vidjet-fullscreen").forEach((e=>e.classList.remove("vidjet-fullscreen"))),window.scrollTo(0,g),document.querySelectorAll(".vidjet-iframe").forEach((e=>{e.style.display="block"}))):"carouselHeight"===o&&_targetCarousels(d.campaignId).forEach((e=>{e.parentElement.style.height=`calc(${d.carouselHeight}px + 32px)`,e.parentElement.style.paddingBottom="0"}))}(i)}),!1),_sendEvent("pageView"),function(){let e=document.querySelector("style[data-vidjet]");if(e)return e.remove();{const e="";document.head.insertAdjacentHTML("beforeend",e)}}();var S,T=[{integration:"shopify",cookieName:"cart"},{integration:"woocommerce",cookieName:"vidjet_woo_cart_id"},{integration:"wix",cookieName:"vidjet_wix_cart_id"},{integration:"prestashop"}].find((e=>e.integration===a.site.integration));if(!(S=a.site,0===Object.keys(S).length&&S.constructor===Object||a.site.integration)){_makeRequest("/website/integrate",{siteId:a.site&&a.site._id,integrationDate:(new Date).toISOString(),integration:"manual",websiteUrl:window.location.protocol+"//"+window.location.hostname},a.backendUrl)}if(T){const e="prestashop"===T.integration?window.vidjetPreastshopCartId:_getCookie(T.cookieName);e&&e!==_getCookie("vidjet_cart_id")&&(_setCookie("vidjet_cart_id",e,1),_sendEvent("cartCreated"))}function _isWarmangoProductCampaign(e,t){if("383ece2b-e9a7-4e37-a0a2-5f42d0a1009b"!==e)return!1;return!["d7dfa072-fb6d-48ea-9b1d-b8bb576435bd","618bf347-b02b-43d4-9ffa-079318639735","a246fc8d-fd05-4f2e-886b-fac3065d89bd"].includes(t)}function _setIframeSize(t){let a=function(e){const{mobile:t,tablet:i,desktop:a,bigDesktop:o,giantDesktop:d}={mobile:{square:.8,portrait:.65,landscape:.95},tablet:{square:.6,portrait:.3,landscape:.7},desktop:{square:.35,portrait:.25,landscape:.5},bigDesktop:{square:.3,portrait:.2,landscape:.4},giantDesktop:{square:.25,portrait:.2,landscape:.3}},n=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),c=function({height:e,width:t}){return e/t>.9&&e/t<1.2?"square":e>t?"portrait":"landscape"}(e);switch(!0){case n<=480:return n*t[c];case n<=768:return n*i[c];case n<=1024:return n*a[c];case n<=1680:return n*o[c];default:return n*d[c]}}(t);const o=e.hideBubble||i,d=u?0:30,n=o?0:h||120,{width:c,height:s}=t;return iframeHeight=s/(c/a)+d+n,{iframeWidth:a,iframeHeight:iframeHeight}}function _setBubbleSize(){if(h=h||90,"original"===e.bubbleShape){const{width:e,height:t}=p,i=e/t;return i<1?{width:h,height:h/i}:{width:h*i,height:h}}return{width:h,height:h}}function _limitOffset(e){const{height:t,width:i}=p;if(0===e.moveX&&0===e.moveY)return{offsetX:0,offsetY:0};const{iframeWidth:a,iframeHeight:o}=b?_setIframeSize({width:i,height:t}):_setBubbleSize(),d=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)-20,n=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)-20;let{moveX:c,moveY:s}=e;const r=s+o,l=c+a;return r>d&&(s-=r-d),l>n&&(c-=l-n),{offsetX:c,offsetY:s}}function _addElement(t,i,a,o,d,n){if(e.isStickyBar)return _sendEvent("display"),function(t,i,a,o,d,n){const c=document.createElement("div"),{backgroundColor:s,textColor:r,text:l}=e.stickyBarOptions,{moveY:f}=o;c.classList.add("vidjet-stickyBar"),c.id="vidjet-stickybar",c.style["background-color"]=s,f&&(c.style.bottom=`${f||20}px`),c.innerHTML=`\n
\n
\n \n ${l}\n
\n
\n \n
\n
\n `,document.body.appendChild(c),document.getElementById("vidjet-stickybar-open-video").addEventListener("click",(function(){c.classList.add("vidjet-hidden"),_addIframe(t,i,a,o,d)})),document.getElementById("vidjet-stickybar-close").addEventListener("click",(function(){c.classList.add("vidjet-hidden")}))}(t,i,a,o,d);_addIframe(t,i,a,o,d)}function _addIframe(t,o,d,n,c,s){const{campaignType:r}=t||{},{offsetX:l,offsetY:f}=_limitOffset(n);if(!document.querySelectorAll(".vidjet-iframe").length){let t=document.createElement("iframe");var m=`${a.playerUrl}/${o}/${d}`,b=new URL(m);const n="popup"===r;b.searchParams.set("sessionId",_),b.searchParams.set("device",i?"mobile":"desktop"),t.classList.add("vidjet-iframe"),t.title="Vidjet video player",t.allow="clipboard-read; clipboard-write; fullscreen",t.style.border="none",t.style.position="fixed";const s=10;if(t.style.bottom=n?0:f?`${f}px`:`${s}px`,t.style.display="block",u&&(t.style.borderRadius="10px"),"right"!==r||n?"left"!==r||n?n?t.classList.add("vidjet-popup"):t.style.left=l?`${l}px`:0:t.style.left=l?`${l}px`:`${s}px`:t.style.right=l?`${l}px`:`${s}px`,t.style.zIndex="4815162342","3b552290-2fcf-4b40-84bb-eb6c0118d821"===o?t.style.zIndex="2147483646":"4eb27fa9-2ff9-4c62-8a74-184ded24bb80"===o&&(t.style.zIndex="29"),t.src=b.toString(),!n)if(c&&!e.isFullScreen){const{iframeWidth:e,iframeHeight:i}=_setIframeSize(p);t.style.width=`${e}px`,t.style.height=`${i}px`}else{const{width:e,height:i}=_setBubbleSize();t.style.width=`${e+v.width}px`,t.style.height=`${i+v.height}px`}if(_isWarmangoProductCampaign(o,d))return t.style.position="absolute",document.getElementsByClassName("media-viewer__image-link")[0].style.position="relative",void document.getElementsByClassName("media-viewer__image-link")[0].appendChild(t);document.body.appendChild(t)}}async function _getCartItems(){if("shopify"===a.site.integration){return(await async function(){const e=await fetch("/cart.json");if(200===e.status)return e.json();console.log(`Failed to get request, Shopify returned ${e.status} ${e.statusText}`)}()).items.map((e=>({productId:e.id,variantId:e.variant_id,quantity:e.quantity})))}}function _targetCarousels(e){let t=document.querySelectorAll(".vidjet-embed-iframe");t=Array.prototype.slice.call(t);let i=[];return 1===t.length?t:(i=t.filter((t=>t.dataset.vidjetCampaignId===e||(t.dataset&&t.dataset.src&&t.dataset.src.value.includes("vidjet.io")?t.dataset.src.value.includes(e):t.attributes.src.value.includes(e)))),i)}function _injectCssFullScreen(){if("object"!=typeof Array.from(document.head.querySelectorAll("style")).find((e=>"vidjet-body"===e.id))){const e=".vidjet-body {\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n height: 100vh;\n width: 100vw;\n background-color: white;\n color: white;\n }\n .vidjet-body *:not(.vidjet-fullscreen) {z-index: unset !important;} ",t=document.createElement("style");t.setAttribute("id","vidjet-body-style"),t.innerText=e,document.head.appendChild(t)}document.querySelector("body").classList.add("vidjet-body"),document.querySelector("html").classList.add("vidjet-body"),window.scrollTo(0,1)}function _decryptParams(e){let t={};return 0===e?.formatType?t.campaignType="popup":1===e?.formatType&&(0===e?.position&&(t.campaignType="left"),1===e?.position&&(t.campaignType="right")),e?.isFullScreen&&(t.isFullScreen="fullscreen"),t}function _setCookie(e,t,i){var a="";if(i){var o=new Date;o.setTime(o.getTime()+60*i*60*1e3),a="; expires="+o.toUTCString()}document.cookie=e+"="+(t||"")+a+"; path=/"}function _displayLaunchPopup(e){return vidjetDisplayLaunchPopup(e)}function _getCookie(e){for(var t=e+"=",i=document.cookie.split(";"),a=0;a1?(u=!0,p={width:1080,height:1920}):p={width:a.videos[0].width,height:a.videos[0].height},b=e.openByDefault&&!e.isFullScreen);const{moveX:y,moveY:_,bubbleSize:w}=e||{},j={siteId:v,_id:g,videoOriginalSize:p,moveX:y,moveY:_,isPlayerOpen:b,bubbleSize:w};h=w,function(){const e=_getCookie(`vidjet_view_${t._id}`),i=e?parseInt(e)+1:1;_setCookie(`vidjet_view_${t._id}`,i,t.segmentation.viewRestriction.notShownTime+1),i>=t.segmentation.viewRestriction.maxView&&(_setCookie(`vidjet_timing_${t._id}`,new Date((new Date).getTime()+1e3*t.segmentation.viewRestriction.notShownTime*3600).toISOString(),t.segmentation.viewRestriction.notShownTime+1),_deleteCookie(`vidjet_view_${t._id}`))}(),a.segmentation.trigger.type===n||o?_addElement(_decryptParams(e),v,g,{moveX:y,moveY:_},b):a.segmentation.trigger.type===c?(document.addEventListener("mouseout",(e=>{_onExitIntent(e,j)})),i&&document.addEventListener("scroll",(e=>{_onExitIntent(e,j)}))):a.segmentation.trigger.type===s?window.addEventListener("scroll",(function(t){l||(window.requestAnimationFrame((function(){!function(t,i){let a=document.documentElement,o=document.body,d="scrollTop",n="scrollHeight",c=(a[d]||o[d])/((a[n]||o[n])-a.clientHeight)*100;const{siteId:s,_id:r,moveX:l,moveY:m,isPlayerOpen:p,bubbleSize:u}=i;c>=t.segmentation.trigger.option&&!f&&(_addElement(_decryptParams(e),s,r,{moveX:l,moveY:m},p),f=!0)}(a,j),l=!1})),l=!0)}),!0):a.segmentation.trigger.type===r&&setTimeout((()=>{_addElement(_decryptParams(e),v,g,{moveX:y,moveY:_},b)}),1e3*(a.segmentation.trigger.option||10))}let k=0;const _onExitIntent=(t,i)=>{const{siteId:a,_id:o,moveX:d,moveY:n,isPlayerOpen:c,bubbleSize:s}=i;if(t.clientY<50&&null==t.relatedTarget&&"select"!==t.target.nodeName.toLowerCase())document.removeEventListener("mouseout",(e=>{console.log(e,"removed")})),_addElement(_decryptParams(e),a,o,{moveX:d,moveY:n},c);else if("scroll"==t.type){let t=window.pageYOffset||document.documentElement.scrollTop;t+50{console.log(e,"removed")})),_addElement(_decryptParams(e),a,o,{moveX:d,moveY:n},c)),k=t<=0?0:t}};function _deleteCookie(e){document.cookie=e+"=; Max-Age=-99999999;"}function _destroyIframe(){if(document.querySelector(".vidjet-iframe")){return document.querySelector(".vidjet-iframe").remove()}}function _makeRequest(e,t,i){var a=new XMLHttpRequest,o=i+e;a.onreadystatechange=function(){if(4===this.readyState)return 200===this.status?JSON.parse(this.responseText.trim()):console.log((new Date).toISOString(),"AJAX ERROR for [",o,"]:",this.status,"with message [",this.statusText,"]")},a.open("POST",o,!0),a.timeout=5e3,a.setRequestHeader("Content-Type","application/json"),a.send(JSON.stringify(t))}function _sendAnalyticsToIframes(){const e=[...document.querySelectorAll(".vidjet-embed-iframe")],t={action:"getAnalytics",data:w},i=e.filter((e=>e));i.length>0&&i.forEach((e=>{e.contentWindow.postMessage(t,"*")}))}function _sendEvent(e,d){if(o)return;const n={siteId:a.site._id,campaignId:t&&t._id,sessionId:_,type:e,date:(new Date).toISOString(),device:i?"mobile":"desktop",params:d};if("cartCreated"===e){const e=_getCookie("vidjet_cart_id");e&&(n.cartId=e)}_makeRequest("/track-event",n,a.backendUrl)}function _addVideoInImageGallery(){if("68945558-fa1e-4113-a678-4860e8a4c67b"===a.site._id){const e=i?"touchend":"click",t=a.campaignsActivated.find((e=>"f7278680-1975-48d8-832a-f8eeb6c4ad86"===e._id));if(!t)return;const o=function(e){const t=e.bulk.find(_matchBulkCriteria);return t}(t);if(!o)return;document.getElementsByClassName("magic-slide mt-active")[0].insertAdjacentHTML("afterend",'');const d=document.getElementsByClassName("magictoolbox-selector mz-thumb");for(let t of d)t.addEventListener(e,(()=>{document.getElementsByClassName("magic-slide mt-active")[0].style.display="block",document.getElementsByClassName("magic-slide mt-active vidjet-toggle")[0].style.display="none";const e=document.getElementsByClassName("magictoolbox-selector mz-thumb vidjet-toggle")[0];e.classList.remove("active-selector"),e.classList.remove("mz-thumb-selected")}));const n=document.createElement("a");n.innerHTML=`Audemars Piguet Royal Oak - 14img-1`,n.firstChild.addEventListener(e,(()=>{document.getElementsByClassName("magic-slide mt-active")[0].style.display="none",document.getElementsByClassName("magic-slide mt-active vidjet-toggle")[0].style.display="block";const e=document.getElementsByClassName("magictoolbox-selector mz-thumb active-selector")[0];e&&e.classList.remove("active-selector"),e&&e.classList.remove("mz-thumb-selected");const t=document.getElementsByClassName("magictoolbox-selector mz-thumb vidjet-toggle")[0];t.classList.add("active-selector"),t.classList.add("mz-thumb-selected")})),document.getElementsByClassName("magictoolbox-selector mz-thumb")[document.getElementsByClassName("magictoolbox-selector mz-thumb").length-1].parentNode.appendChild(n.firstChild),_sendAnalyticsToIframes()}if("1f3f4a1f-b5cf-41c9-8906-be1aeebde3e1"===a.site._id){const i=[{url:"/ritual-fit",campaignId:"707e9af6-fc42-47e5-9c29-509b79964d0c",secondPath:"/ritual-fit/"},{url:"/vientre-plano",campaignId:"24189915-94f1-44de-8bdf-3f1cccfba7f5",secondPath:"/vientre-plano/"},{url:"/fitness",campaignId:"75ce73a6-65cb-48db-bbc5-0d8ee2d57401",secondPath:"/fitness/"}];for(const a of i)if(document.location.pathname===a.url||document.location.pathname===a.secondPath){var e=1,t=setInterval((function(){var i=document.getElementsByClassName("woocommerce-product-gallery__image")&&document.getElementsByClassName("woocommerce-product-gallery__image")[2];i&&(i.innerHTML=`\n
\n \n
`,clearInterval(t)),(e+=1)>=20&&clearInterval(t)}),100);break}}else if("15701a38-dae7-47d3-9881-cddf540b11a2"===a.site._id){const i=[{url:"https://atashicellular.com/antioxidante/587-tonico-regenerante-purificante.html",campaignId:"6c9e1a3b-f851-4d81-a280-162a175ad732"}];for(const a of i)if(document.location.href.includes(a.url)){e=1,t=setInterval((function(){var i=document.getElementsByClassName("product-lmage-large swiper-slide")&&document.getElementsByClassName("product-lmage-large swiper-slide")[2];i&&(i.innerHTML=`\n
\n \n
`,clearInterval(t)),(e+=1)>=20&&clearInterval(t)}),100);break}}}function _matchBulkCriteria(e){return e.segmentation?.productId?.length&&e.segmentation.url?.length?e.segmentation.productId.includes(w.productId)&&_matchUrlSegmentation(e.segmentation.url):e.segmentation?.productId?e.segmentation.productId.includes(w.productId):!!w.url&&_matchUrlSegmentation(e.segmentation.url)}function _compareUrl(e){return"eq"===e.comparison&&e.string===document.location.href||("not_eq"===e.comparison&&e.string!==document.location.href||(!("contains"!==e.comparison||!document.location.href.includes(e.string))||"not_contains"===e.comparison&&!document.location.href.includes(e.string)))}function _matchUrlSegmentation(e,t){if(!e||!e.length)return!1;for(const i of e){if(!i.type&&!t)return _compareUrl(i);if(i.type){let e=_matchUrlSegmentation(i.filters,i.type);if(!t)return e;if("or"===t&&e)return!0;if("and"===t&&!e)return!1}else{let e=_compareUrl(i);if("or"===t&&e)return!0;if("and"===t&&!e)return!1}}return"or"!==t}function _matchSegmentation(t,a=!1){if(e=i?t.formats.find((e=>e.deviceType===j.mobile)):t.formats.find((e=>e.deviceType===j.desktop)),a)return!0;if(!e)return!1;if(!o){const e=_getCookie(`vidjet_timing_${t._id}`);if(e&&(new Date).getTime()e._id===c.get("campaignId")));e?(o=!0,!i&&_displayLaunchPopup(e._id),_matchSegmentation(e,!0)&&_displayIframeBasedOnTrigger(e),_setCookie("vidjet-preview",!0,1),_setCookie("vidjet-campaignId",c.get("campaignId"),1)):(_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId"))}else if(s){const e=a.campaignsPaused.find((e=>e._id===r));e?(!i&&_displayLaunchPopup(e._id),_matchSegmentation(e,!0)&&_displayIframeBasedOnTrigger(e)):(_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId"))}else{if(t||!d)return;for(const e of a.campaignsActivated)if(_matchSegmentation(e)){_displayIframeBasedOnTrigger(e);break}}}(),e){const{isFullScreen:t}=_decryptParams(e);!t&&_addResizeListener()}},showCampaign:function(t,o){const n=a.campaignsActivated.find((e=>e._id==t));if(!n)return console.error(`Invalid campaign id for ${t}`);e=i?n.formats.find((e=>e.deviceType===j.mobile)):n.formats.find((e=>e.deviceType===j.desktop));const{isFullScreen:c}=_decryptParams(e);if(o)_destroyIframe(),d=!1,l=!1,f=!1,_displayIframeBasedOnTrigger(n),!c&&_addResizeListener();else{if(document.querySelectorAll(".vidjet-iframe").length)return console.warn('Campaign already running. To show this video, pass "true" as the second parameter to force show.');d=!1,l=!1,f=!1,_displayIframeBasedOnTrigger(n),!c&&_addResizeListener()}},initSpa:function(){const e=this;let t=location.href;setInterval((function(){t!=location.href&&(console.log("VIDJET: page change detected"),_destroyIframe(),d=!1,l=!1,f=!1,e.init(),t=location.href)}),500)},send:function(e,t){return"conversion"===e||"order"===e?_sendEvent(e,t):console.warn(`The '${e}' type is not supported. Please use a valid event type.`)}}}();document&&("complete"===document.readyState||(document.location.href.includes("https://elifexir.com")||document.location.href.includes("https://atashicellular.com")||document.location.href.includes("https://www.lafloreparis.com/")||document.location.href.includes("https://www.coolgadget.com/"))&&"interactive"===document.readyState)?(console.log("VIDJET: document loaded"),Vidjet.init()):window.addEventListener("load",(e=>{console.log("VIDJET: window loaded"),Vidjet.init()}));