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 ",o=document.createElement("style");o.innerHTML=i,document.body.appendChild(o);const a=document.createElement("div");a.classList.add("vidjet-wrapper"),a.innerHTML=t,document.body.appendChild(a);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,o=(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(o))throw TypeError("Stringified UUID is invalid");return o}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),o={campaignsActivated:JSON.parse('[{"_id":"b9d251d7-1d96-41c2-b5e2-3e984629b4f6","name":"Pore Care","videos":[{"videoId":"9efa0df9-a955-4562-a498-04b607c1773f","cta":{"bottomMarginPercentage":5,"buttonShape":"semi","textColor":"#FFFFFFFF","buttonColor":"#000000","ctaType":3,"ctaAction":"buyNow","productIds":["cec3ef90-fd43-4657-9d3e-8eb01ea267a1","37723c40-df63-49e0-ba5e-b5cdd041e5e0","242de5e5-f1d6-4ec5-af68-0d382742efa5"],"products":[{"_id":"cec3ef90-fd43-4657-9d3e-8eb01ea267a1","productId":7612001386692,"name":"The Clear Necessities cleansing oil, foaming cleanser, and clay mask value set","productUrl":"https://benefit-cosmetics-nz.myshopify.com/products/the-clear-necessities","status":"active","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/GL23_Etail_Product_ClearNecessities_Stylized_PromoSet_TT1195_0004_sRGB_0b4516f2-b9f7-42d5-9972-5846cc4bf55a.jpg?v=1709590150","options":[{"name":"Title","values":["Default Title"],"position":1}],"variants":[{"price":73,"id":42978514600132,"name":"Default Title","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/GL23_Etail_Product_ClearNecessities_Stylized_PromoSet_TT1195_0004_sRGB_0b4516f2-b9f7-42d5-9972-5846cc4bf55a.jpg?v=1709590150","qty":32,"sellWithoutStock":false}],"siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","creationDate":"2024-03-04T21:58:08.518Z","modificationDate":"2024-04-03T22:15:48.360Z"},{"_id":"37723c40-df63-49e0-ba5e-b5cdd041e5e0","productId":7345419944132,"name":"Get Unblocked Cleansing Oil","productUrl":"https://benefit-cosmetics-nz.myshopify.com/products/get-unblocked-cleansing-oil","status":"active","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/PoreCare_GetUnblocked_Product_OilCleanser_Bottle.jpg?v=1692239442","options":[{"name":"Size","values":["Full","Travel Size"],"position":1}],"variants":[{"price":73,"id":42117417468100,"name":"Full","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/PoreCare_GetUnblocked_Product_OilCleanser_Bottle.jpg?v=1692239442","qty":67,"sellWithoutStock":false},{"price":34,"id":42213563760836,"name":"Travel Size","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/PoreCare_Product_GetUnblocked_Mini_Bottle_83862a16-bbde-4999-9070-a126397f3e38.jpg?v=1692239442","qty":64,"sellWithoutStock":false}],"siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","creationDate":"2023-10-05T07:52:33.292Z","modificationDate":"2024-04-03T22:15:48.099Z"},{"_id":"242de5e5-f1d6-4ec5-af68-0d382742efa5","productId":7345412899012,"name":"Good Cleanup Pore-Purifying Cleanser","productUrl":"https://benefit-cosmetics-nz.myshopify.com/products/good-cleanup-pore-purifying-cleanser","status":"active","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/ET_PoreCare_Product_GoodCleanup_Bottle.jpg?v=1692239495","options":[{"name":"Size","values":["Full Size","Travel Size"],"position":1}],"variants":[{"price":55,"id":42117403705540,"name":"Full Size","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/ET_PoreCare_Product_GoodCleanup_Bottle.jpg?v=1692239495","qty":46,"sellWithoutStock":false},{"price":28,"id":42214885916868,"name":"Travel Size","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/ET_PoreCare_Product_GoodCleanup_Mini_Bottle_569ae502-8ff5-4f13-b4ae-d022b4799093.jpg?v=1692239495","qty":46,"sellWithoutStock":false}],"siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","creationDate":"2023-10-05T07:52:33.359Z","modificationDate":"2024-04-03T22:15:48.127Z"}]},"_id":"9efa0df9-a955-4562-a498-04b607c1773f","siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","useCase":"fullscreen-bubble","videoDuration":33.9,"height":1280,"width":720,"fileName":"SaveInsta.App - 3097913401091914574.mp4","url":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/9efa0df9-a955-4562-a498-04b607c1773f/saveinsta.app___3097913401091914574.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/9efa0df9-a955-4562-a498-04b607c1773f/1696493001976.jpg","creationDate":"2023-10-05T08:03:21.919Z","modificationDate":"2023-10-05T08:04:06.452Z","key":"278c09ef-6551-4d83-bbcb-b40c3f767737/9efa0df9-a955-4562-a498-04b607c1773f/saveinsta.app___3097913401091914574.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/278c09ef-6551-4d83-bbcb-b40c3f767737/9efa0df9-a955-4562-a498-04b607c1773f/saveinsta.app___3097913401091914574.mp4","thumbnailS3Path":"s3://image-compression-pipeline-source/278c09ef-6551-4d83-bbcb-b40c3f767737/9efa0df9-a955-4562-a498-04b607c1773f/1696493001976.jpg","trimmedUrl":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/9efa0df9-a955-4562-a498-04b607c1773f/saveinsta.app___3097913401091914574.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/9efa0df9-a955-4562-a498-04b607c1773f/saveinsta.app___3097913401091914574.mp4.m3u8"},{"videoId":"c45e0216-88bc-4a5a-bc79-1ba7fff7a3a0","cta":{"bottomMarginPercentage":10,"buttonShape":"semi","textColor":"#FFFFFFFF","buttonColor":"#000000","ctaType":3,"ctaAction":"buyNow","productIds":["3337db4b-a4f2-467a-a064-8819cc376621","a09ee28c-3855-4aa9-b790-af3b7ecf5bf4"],"products":[{"_id":"3337db4b-a4f2-467a-a064-8819cc376621","productId":7612001321156,"name":"The POREfessional Picks cleanser, toner, and clay mask value set","productUrl":"https://benefit-cosmetics-nz.myshopify.com/products/the-porefessional-picks","status":"active","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/GL23_Etail_ThePOREfessionalPicks_Product_Stylized_Promo_TT1194_0057_sRGB_f03e75f5-9e20-4f8a-8a5f-8348da088748.jpg?v=1709589752","options":[{"name":"Title","values":["Default Title"],"position":1}],"variants":[{"price":73,"id":42978514534596,"name":"Default Title","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/GL23_Etail_ThePOREfessionalPicks_Product_Stylized_Promo_TT1194_0057_sRGB_f03e75f5-9e20-4f8a-8a5f-8348da088748.jpg?v=1709589752","qty":40,"sellWithoutStock":false}],"siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","creationDate":"2024-03-04T21:58:05.875Z","modificationDate":"2024-04-03T22:15:48.379Z"},{"_id":"a09ee28c-3855-4aa9-b790-af3b7ecf5bf4","productId":7345415422148,"name":"Deep Retreat Pore-Clearing Clay Mask","productUrl":"https://benefit-cosmetics-nz.myshopify.com/products/deep-retreat-pore-clearing-clay-mask","status":"active","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/ThePOREfessionalDeepRetreat_Product_JarOpen_LidFrontFacing.jpg?v=1692240005","options":[{"name":"Size","values":["Full","Travel Size"],"position":1}],"variants":[{"price":73,"id":42117407408324,"name":"Full","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/ThePOREfessionalDeepRetreat_Product_JarOpen_LidFrontFacing.jpg?v=1692240005","qty":96,"sellWithoutStock":false},{"price":37,"id":42213557862596,"name":"Travel Size","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/ThePOREfessionalDeepRetreat_Product_JarOpen_LidFrontFacing.jpg?v=1692240005","qty":9,"sellWithoutStock":false}],"siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","creationDate":"2023-10-05T07:52:33.225Z","modificationDate":"2024-04-04T10:00:25.676Z"}]},"_id":"c45e0216-88bc-4a5a-bc79-1ba7fff7a3a0","siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","videoDuration":26.7,"height":1024,"width":576,"fileName":"no watermark .mov","url":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/c45e0216-88bc-4a5a-bc79-1ba7fff7a3a0/no_watermark_.mov-compressed.mp4","thumbnail":"https://image.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/c45e0216-88bc-4a5a-bc79-1ba7fff7a3a0/1696558413288.jpg","creationDate":"2023-10-06T02:13:32.724Z","modificationDate":"2023-10-06T02:13:57.756Z","thumbnailS3Path":"s3://image-compression-pipeline-source/278c09ef-6551-4d83-bbcb-b40c3f767737/c45e0216-88bc-4a5a-bc79-1ba7fff7a3a0/1696558413288.jpg","key":"278c09ef-6551-4d83-bbcb-b40c3f767737/c45e0216-88bc-4a5a-bc79-1ba7fff7a3a0/no_watermark_.mov","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/278c09ef-6551-4d83-bbcb-b40c3f767737/c45e0216-88bc-4a5a-bc79-1ba7fff7a3a0/no_watermark_.mov","trimmedUrl":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/c45e0216-88bc-4a5a-bc79-1ba7fff7a3a0/no_watermark_.mov-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/c45e0216-88bc-4a5a-bc79-1ba7fff7a3a0/no_watermark_.mov.m3u8"},{"videoId":"fea4f65c-fff6-4f96-a83f-7b53f6ded141","cta":{"bottomMarginPercentage":5,"buttonShape":"semi","textColor":"#FFFFFFFF","buttonColor":"#000000","ctaType":3,"ctaAction":"buyNow","productIds":["a09ee28c-3855-4aa9-b790-af3b7ecf5bf4"],"products":[{"_id":"a09ee28c-3855-4aa9-b790-af3b7ecf5bf4","productId":7345415422148,"name":"Deep Retreat Pore-Clearing Clay Mask","productUrl":"https://benefit-cosmetics-nz.myshopify.com/products/deep-retreat-pore-clearing-clay-mask","status":"active","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/ThePOREfessionalDeepRetreat_Product_JarOpen_LidFrontFacing.jpg?v=1692240005","options":[{"name":"Size","values":["Full","Travel Size"],"position":1}],"variants":[{"price":73,"id":42117407408324,"name":"Full","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/ThePOREfessionalDeepRetreat_Product_JarOpen_LidFrontFacing.jpg?v=1692240005","qty":96,"sellWithoutStock":false},{"price":37,"id":42213557862596,"name":"Travel Size","imageUrl":"https://cdn.shopify.com/s/files/1/0505/1436/2564/files/ThePOREfessionalDeepRetreat_Product_JarOpen_LidFrontFacing.jpg?v=1692240005","qty":9,"sellWithoutStock":false}],"siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","creationDate":"2023-10-05T07:52:33.225Z","modificationDate":"2024-04-04T10:00:25.676Z"}]},"_id":"fea4f65c-fff6-4f96-a83f-7b53f6ded141","siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","useCase":"fullscreen-bubble","videoDuration":10.6,"height":1920,"width":1080,"fileName":"SaveInsta.App - 3095302733876525061.mp4","url":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/fea4f65c-fff6-4f96-a83f-7b53f6ded141/saveinsta.app___3095302733876525061.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/fea4f65c-fff6-4f96-a83f-7b53f6ded141/1696493001895.jpg","creationDate":"2023-10-05T08:03:21.854Z","modificationDate":"2023-10-05T08:04:03.789Z","key":"278c09ef-6551-4d83-bbcb-b40c3f767737/fea4f65c-fff6-4f96-a83f-7b53f6ded141/saveinsta.app___3095302733876525061.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/278c09ef-6551-4d83-bbcb-b40c3f767737/fea4f65c-fff6-4f96-a83f-7b53f6ded141/saveinsta.app___3095302733876525061.mp4","thumbnailS3Path":"s3://image-compression-pipeline-source/278c09ef-6551-4d83-bbcb-b40c3f767737/fea4f65c-fff6-4f96-a83f-7b53f6ded141/1696493001895.jpg","trimmedUrl":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/fea4f65c-fff6-4f96-a83f-7b53f6ded141/saveinsta.app___3095302733876525061.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/fea4f65c-fff6-4f96-a83f-7b53f6ded141/saveinsta.app___3095302733876525061.mp4.m3u8"}],"formats":[{"formatType":1,"isStickyBar":false,"openByDefault":true,"position":0,"bubbleSize":90,"bubbleShape":"round","moveX":0,"moveY":0,"bubbleBorder":false,"bubbleBorderColor":"#000000","isFullScreen":false,"autoLoop":false,"autoScroll":false,"autoplay":false,"hidePlayPause":true,"hideControlBar":false,"title":"","hideFeedArrow":false,"isHorizontalSwipe":false,"iconSettings":{"iconType":"minimal","animation":"none","secondaryColor":"#c4c4c4","color":"white","opacity":1},"arrowSettings":{"iconType":"corner1","secondaryColor":"#A3A3A3","color":"black","opacity":1},"deviceType":1,"hideBubble":true},{"formatType":1,"isStickyBar":false,"openByDefault":true,"position":0,"bubbleSize":90,"bubbleShape":"round","moveX":0,"moveY":0,"bubbleBorder":false,"bubbleBorderColor":"#000000","isFullScreen":false,"autoLoop":false,"autoScroll":false,"autoplay":false,"hidePlayPause":true,"hideControlBar":false,"title":"See Pore Care in action","hideFeedArrow":false,"isHorizontalSwipe":false,"iconSettings":{"iconType":"minimal","animation":"none","secondaryColor":"#c4c4c4","color":"white","opacity":1},"arrowSettings":{"iconType":"corner1","secondaryColor":"#A3A3A3","color":"black","opacity":1},"deviceType":0,"hideBubble":true}],"segmentation":{"trigger":{"type":0,"option":0},"viewRestriction":{"maxView":3,"notShownTime":24},"url":[{"type":"or","filters":[{"comparison":"eq","string":"https://benefitcosmetics.co.nz/products/smooth-sip-moisturiser"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/pages/pore-care"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/products/deep-retreat-pore-clearing-clay-mask"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/products/good-cleanup-pore-purifying-cleanser"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/products/get-unblocked-cleansing-oil"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/products/get-unblocked-cleansing-oil"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/products/tight-n-toned-pore-refining-toning-foam"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/products/all-in-one-mask-wand"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/products/main-porefessional-value-set"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/products/pore-care-roundup-value-set"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/products/holiday-pore-score"},{"comparison":"contains","string":"https://benefitcosmetics.co.nz/products/pore-the-merrier"}]}]},"siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","order":1,"stateFlag":1,"creationDate":"2023-10-05T08:07:32.184Z","modificationDate":"2024-04-09T05:18:17.925Z","hasEverBeenStarted":true},{"_id":"9fa41af7-92fa-4566-bbf2-39240f92bb7e","name":"Wow Polish","videos":[{"videoId":"f3252a27-2a14-401b-ad40-99e3f5ed5688","_id":"f3252a27-2a14-401b-ad40-99e3f5ed5688","siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","useCase":"bubble","videoDuration":16.4,"height":1920,"width":1080,"fileName":"GL24_PoreInnovation_WOW POLISH_Social_Paid_9x16_with_Copy.mp4","url":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/f3252a27-2a14-401b-ad40-99e3f5ed5688/gl24_poreinnovation_wow_polish_social_paid_9x16_with_copy.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/f3252a27-2a14-401b-ad40-99e3f5ed5688/1712616235559.jpg","creationDate":"2024-04-08T22:44:17.827Z","modificationDate":"2024-04-08T22:45:44.684Z","thumbnailS3Path":"s3://image-compression-pipeline-source/278c09ef-6551-4d83-bbcb-b40c3f767737/f3252a27-2a14-401b-ad40-99e3f5ed5688/1712616235559.jpg","key":"278c09ef-6551-4d83-bbcb-b40c3f767737/f3252a27-2a14-401b-ad40-99e3f5ed5688/gl24_poreinnovation_wow_polish_social_paid_9x16_with_copy.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/278c09ef-6551-4d83-bbcb-b40c3f767737/f3252a27-2a14-401b-ad40-99e3f5ed5688/gl24_poreinnovation_wow_polish_social_paid_9x16_with_copy.mp4","trimmedUrl":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/f3252a27-2a14-401b-ad40-99e3f5ed5688/gl24_poreinnovation_wow_polish_social_paid_9x16_with_copy.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/278c09ef-6551-4d83-bbcb-b40c3f767737/f3252a27-2a14-401b-ad40-99e3f5ed5688/gl24_poreinnovation_wow_polish_social_paid_9x16_with_copy.mp4.m3u8"}],"formats":[{"deviceType":1,"autoLoop":false,"autoScroll":false,"autoplay":false,"hidePlayPause":true,"hideControlBar":false,"title":"NEW Wow Polish Exfoliating Cleanser","hideFeedArrow":false,"isHorizontalSwipe":false,"iconSettings":{"iconType":"minimal","animation":"none","secondaryColor":"#c4c4c4","color":"white","opacity":1},"arrowSettings":{"iconType":"corner1","secondaryColor":"#A3A3A3","color":"black","opacity":1},"formatType":1,"isStickyBar":false,"openByDefault":true,"position":0,"bubbleSize":90,"bubbleShape":"round","moveX":0,"moveY":0,"bubbleBorder":false,"bubbleBorderColor":"#000000","isFullScreen":false,"hideBubble":true},{"deviceType":0,"autoLoop":false,"autoScroll":false,"autoplay":false,"hidePlayPause":true,"hideControlBar":false,"title":"","hideFeedArrow":false,"isHorizontalSwipe":false,"iconSettings":{"iconType":"minimal","animation":"none","secondaryColor":"#c4c4c4","color":"white","opacity":1},"arrowSettings":{"iconType":"corner1","secondaryColor":"#A3A3A3","color":"black","opacity":1},"formatType":1,"isStickyBar":false,"openByDefault":true,"position":0,"bubbleSize":90,"bubbleShape":"round","moveX":0,"moveY":0,"bubbleBorder":false,"bubbleBorderColor":"#000000","isFullScreen":false,"hideBubble":true}],"segmentation":{"trigger":{"type":0},"viewRestriction":{"maxView":10,"notShownTime":24},"productId":[7653361615044]},"siteId":"278c09ef-6551-4d83-bbcb-b40c3f767737","order":1,"stateFlag":1,"creationDate":"2024-04-08T22:45:27.377Z","modificationDate":"2024-04-08T22:46:31.347Z","hasEverBeenStarted":true,"setEndDate":"","setStartDate":""}]'),campaignsPaused:JSON.parse("[]"),site:JSON.parse('{"integration":"shopify","_id":"278c09ef-6551-4d83-bbcb-b40c3f767737","websiteUrl":"https://benefitcosmetics.co.nz","currency":"NZD","isLocked":false,"showWatermark":true}'),playerUrl:JSON.parse('"https://player.vidjet.io"'),backendUrl:JSON.parse('"https://app-api.vidjet.io"')},a=!1,n=!1,s=window.location.search,r=new URLSearchParams(s),c=Boolean(_getCookie("vidjet-preview")),d=_getCookie("vidjet-campaignId");a=c;var l=!1,p=!1,f=[],m={},u=!1,b=!1,h=120;const g=40,v=40;let y=0;const _=_getCookie("vidjet-sessionId");var w=_||function(e,t,i){var o=(e=e||{}).random||(e.rng||rng)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t}return stringify(o)}();_setCookie("vidjet-sessionId",w,1);var S={url:location.href,sessionId:w};"product"===window?.ShopifyAnalytics?.meta?.page?.resourceType&&(S.productId=ShopifyAnalytics.meta.page.resourceId),"prestashop"===o.site?.integration&&(S.productId=window.id_product||"undefined"!=typeof cdcDatalayer&&cdcDatalayer?.ecommerce?.items?.length&&cdcDatalayer.ecommerce.items[0].item_id||window._idp||window.productObject?.id),"woocommerce"===o.site?.integration&&(S.productId=document.querySelector("[data-product_id]")?.getAttribute("data-product_id"));var j={landing:0,exit:1,scroll:2,delay:3},k=0,T=1;_sendAnalyticsToIframes(),window.addEventListener("message",(i=>{"vidjet"===i.data.messageOrigin&&function(i){const{origin:a,properties:n}=i&&i.data,s=document.querySelector(".vidjet-iframe")||document.querySelector(".vidjet-embed-iframe");if(s)if("closeMainPlayer"===a){if(n&&n.currentVideoId&&"original"===e.bubbleShape){const e=f.find((e=>e._id===n.currentVideoId));m={height:e.height,width:e.width}}if(b=!1,setTimeout((()=>{const{width:e,height:t}=_setBubbleSize();s.style.width=`${e+g}px`,s.style.height=`${t+v}px`}),500),e.isFullScreen){document.querySelectorAll(".vidjet-body").forEach((e=>e.classList.remove("vidjet-body"))),s.classList.remove("vidjet-fullscreen"),window.scrollTo(0,y);const t=10;s.style.bottom=e.moveY?`${e.moveY+t}px`:`${t}px`,s.style.display="block",1===e.position?(s.style.left="unset",s.style.right=e.moveX?`${e.moveX+t}px`:`${t}px`):0===e.position&&(s.style.right="unset",s.style.left=e.moveX?`${e.moveX+t}px`:`${t}px`)}}else if("openMainPlayer"===a)if(b=!0,u&&(m={width:1080,height:1920}),e.isFullScreen)s.style.height="100%",s.style.width="100%",s.style.bottom="0px",s.style.right="0px",s.style.left="0px",s.classList.add("vidjet-fullscreen"),_injectCssFullScreen();else{if(_isWarmangoProductCampaign(o.site._id,t._id))return s.style.width="auto",void(s.style.height="100%");const{iframeWidth:e,iframeHeight:i}=_setIframeSize(m);s.style.width=`${e}px`,s.style.height=`${i}px`}else if("destroyIframe"===a)setTimeout((()=>{_destroyIframe(),e?.isStickyBar&&document.getElementById("vidjet-stickybar")&&document.getElementById("vidjet-stickybar").classList.remove("vidjet-hidden")}),500);else if("getCartItems"===a)!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"===a)!function(e){switch(o.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=window.prestashop&&prestashop.static_token,i=window.prestashop&&prestashop.urls?.pages?.cart||location.origin;var o="controller=cart&add=1&action=update&ajax=true&qty="+(e.qty||1)+"&token="+t+"&id_product="+e.productId+"&ipa="+e.variantId;$.post(i,o,null,"json").then((t=>{window.prestashop&&prestashop.emit("updateCart",{reason:{},resp:t}),e.isBuyNow&&(window.location.href=window.prestashop&&prestashop.urls?.pages?.order||location.origin+"/order")})).fail((e=>{window.prestashop&&prestashop.emit("handleError",{eventType:"addProductToCart",resp:e})}))}(e)}if("9b37caa1-347d-4e4f-8478-1c4126fb9f7e"===o.site._id){const e=[document.querySelector(".vidjet-iframe"),...document.querySelectorAll(".vidjet-embed-iframe")],t={action:"scriptCloseEvent"},i=e.filter((e=>e));i.length>0&&i.forEach((e=>{e.contentWindow.postMessage(t,"*")})),document.dispatchEvent(new CustomEvent("cart:refresh"));const o=document.querySelector("cart-drawer");o&&!o.hasAttribute("open")&&o.show(),document.dispatchEvent(new CustomEvent("cart:refresh"))}}(n);else if("killIframe"===a){const e=document.querySelector(`iframe[data-vidjet-campaign-id="${n.campaignId}"]`);e?.parentElement?.remove()}else if("getAnalytics"===a){const e={action:"getAnalytics",data:S};s.contentWindow.postMessage(e,"*")}else"openFullScreen"===a?(!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&&(y=window.scrollY);const o=_targetCarousels(e);o.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"}))}(n),_injectCssFullScreen()):"closeFullScreen"===a?(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,y),document.querySelectorAll(".vidjet-iframe").forEach((e=>{e.style.display="block"}))):"carouselHeight"===a?_targetCarousels(n.campaignId).forEach((e=>{e.parentElement.style.height=`calc(${n.carouselHeight}px + 32px)`,e.parentElement.style.paddingBottom="0"})):"bulkSegMatched"===a?_targetCarousels(n).forEach((e=>{"0"!==e.parentElement.style.height&&"0px"!==e.parentElement.style.height&&e.parentElement.style.height||(e.parentElement.style.height="125px")})):"youtubeThumbnailClicked"===a&&document.querySelector("#videos")?.scrollIntoView({behavior:"smooth"})}(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 I,x=[{integration:"shopify",cookieName:"cart"},{integration:"woocommerce",cookieName:"vidjet_woo_cart_id"},{integration:"wix",cookieName:"vidjet_wix_cart_id"},{integration:"prestashop"}].find((e=>e.integration===o.site.integration));if(!(I=o.site,0===Object.keys(I).length&&I.constructor===Object||o.site.integration)){_makeRequest("/website/integrate",{siteId:o.site&&o.site._id,integrationDate:(new Date).toISOString(),integration:"manual",websiteUrl:window.location.protocol+"//"+window.location.hostname},o.backendUrl)}if(x){let e="prestashop"===x.integration?window.vidjetPreastshopCartId:_getCookie(x.cookieName);"shopify"===x?.integration&&e?.includes("key")&&(e.includes("%3Fkey")?e=e.split("%3Fkey")[0]:e.includes("?key")&&(e=e.split("?key")[0])),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 o=function(e){const{mobile:t,tablet:i,desktop:o,bigDesktop:a,giantDesktop:n}={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}},s=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),r=function({height:e,width:t}){return e/t>.9&&e/t<1.2?"square":e>t?"portrait":"landscape"}(e);switch(!0){case s<=480:return s*t[r];case s<=768:return s*i[r];case s<=1024:return s*o[r];case s<=1680:return s*a[r];default:return s*n[r]}}(t);const a=e.hideBubble||i,n=u?0:30,s=a?0:h||120,{width:r,height:c}=t;return iframeHeight=c/(r/o)+n+s,{iframeWidth:o,iframeHeight:iframeHeight}}function _setBubbleSize(){if(h=h||90,"original"===e.bubbleShape){const{width:e,height:t}=m,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}=m;if(0===e.moveX&&0===e.moveY)return{offsetX:0,offsetY:0};const{iframeWidth:o,iframeHeight:a}=b?_setIframeSize({width:i,height:t}):_setBubbleSize(),n=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)-20,s=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)-20;let{moveX:r,moveY:c}=e;const d=c+a,l=r+o;return d>n&&(c-=d-n),l>s&&(r-=l-s),{offsetX:r,offsetY:c}}function _addElement(t,i,o,a,n,s){if(e.isStickyBar)return _sendEvent("display"),function(t,i,o,a,n){const s=document.createElement("div"),{backgroundColor:r,textColor:c,text:d}=e.stickyBarOptions,{moveY:l}=a;s.classList.add("vidjet-stickyBar"),s.id="vidjet-stickybar",s.style["background-color"]=r,l&&(s.style.bottom=`${l||20}px`),s.innerHTML=`\n
\n
\n \n ${d}\n
\n
\n \n
\n
\n `,document.body.appendChild(s),document.getElementById("vidjet-stickybar-open-video").addEventListener("click",(function(){s.classList.add("vidjet-hidden"),_addIframe(t,i,o,a,n)})),document.getElementById("vidjet-stickybar-close").addEventListener("click",(function(){s.classList.add("vidjet-hidden")}))}(t,i,o,a,n);_addIframe(t,i,o,a,n)}function _addIframe(t,a,n,s,r,c){const{campaignType:d}=t||{},{offsetX:l,offsetY:p}=_limitOffset(s);if(!document.querySelectorAll(".vidjet-iframe").length){let t=document.createElement("iframe");var f=`${o.playerUrl}/${a}/${n}`,b=new URL(f);const s="popup"===d;b.searchParams.set("sessionId",w),b.searchParams.set("device",i?"mobile":"desktop"),b.searchParams.set("url",S.url),S.productId&&b.searchParams.set("productId",S.productId),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 c=10;if(t.style.bottom=s?0:p?`${p}px`:`${c}px`,t.style.display="block",u&&(t.style.borderRadius="10px"),"right"!==d||s?"left"!==d||s?s?t.classList.add("vidjet-popup"):t.style.left=l?`${l}px`:0:t.style.left=l?`${l}px`:`${c}px`:t.style.right=l?`${l}px`:`${c}px`,t.style.zIndex="4815162342","3b552290-2fcf-4b40-84bb-eb6c0118d821"===a?t.style.zIndex="2147483646":"4eb27fa9-2ff9-4c62-8a74-184ded24bb80"===a&&(t.style.zIndex="29"),t.src=b.toString(),!s)if(r&&!e.isFullScreen){const{iframeWidth:e,iframeHeight:i}=_setIframeSize(m);t.style.width=`${e}px`,t.style.height=`${i}px`}else{const{width:e,height:i}=_setBubbleSize();t.style.width=`${e+g}px`,t.style.height=`${i+v}px`}if(_isWarmangoProductCampaign(a,n))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"===o.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 o="";if(i){var a=new Date;a.setTime(a.getTime()+60*i*60*1e3),o="; expires="+a.toUTCString()}document.cookie=e+"="+(t||"")+o+"; path=/"}function _displayLaunchPopup(e){return vidjetDisplayLaunchPopup(e)}function _getCookie(e){for(var t=e+"=",i=document.cookie.split(";"),o=0;o1?(u=!0,m={width:1080,height:1920}):m={width:o.videos[0].width,height:o.videos[0].height},b=e.openByDefault&&!e.isFullScreen);const{moveX:y,moveY:_,bubbleSize:w}=e||{},S={siteId:g,_id:v,videoOriginalSize:m,moveX:y,moveY:_,isPlayerOpen:b,bubbleSize:w};h=w,o.bulk||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}`))}(),!o?.segmentation?.trigger?.type||o.segmentation.trigger.type===s||a?_addElement(_decryptParams(e),g,v,{moveX:y,moveY:_},b):o.segmentation.trigger.type===r?(document.addEventListener("mouseout",(e=>{_onExitIntent(e,S)})),i&&document.addEventListener("scroll",(e=>{_onExitIntent(e,S)}))):o.segmentation.trigger.type===c?window.addEventListener("scroll",(function(t){l||(window.requestAnimationFrame((function(){!function(t,i){let o=document.documentElement,a=document.body,n="scrollTop",s="scrollHeight",r=(o[n]||a[n])/((o[s]||a[s])-o.clientHeight)*100;const{siteId:c,_id:d,moveX:l,moveY:f,isPlayerOpen:m,bubbleSize:u}=i;r>=t.segmentation.trigger.option&&!p&&(_addElement(_decryptParams(e),c,d,{moveX:l,moveY:f},m),p=!0)}(o,S),l=!1})),l=!0)}),!0):o.segmentation.trigger.type===d&&setTimeout((()=>{_addElement(_decryptParams(e),g,v,{moveX:y,moveY:_},b)}),1e3*(o.segmentation.trigger.option||10))}let C=0;const _onExitIntent=(t,i)=>{const{siteId:o,_id:a,moveX:n,moveY:s,isPlayerOpen:r,bubbleSize:c}=i;if(t.clientY<50&&null==t.relatedTarget&&"select"!==t.target.nodeName.toLowerCase())document.removeEventListener("mouseout",(e=>{console.log(e,"removed")})),_addElement(_decryptParams(e),o,a,{moveX:n,moveY:s},r);else if("scroll"==t.type){let t=window.pageYOffset||document.documentElement.scrollTop;t+50{console.log(e,"removed")})),_addElement(_decryptParams(e),o,a,{moveX:n,moveY:s},r)),C=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 o=new XMLHttpRequest,a=i+e;o.open("POST",a,!0),o.setRequestHeader("Content-Type","application/json"),o.send(JSON.stringify(t))}function _sendAnalyticsToIframes(){const e=[...document.querySelectorAll(".vidjet-embed-iframe")],t={action:"getAnalytics",data:S},i=e.filter((e=>e));i.length>0&&i.forEach((e=>{e.contentWindow.postMessage(t,"*")}))}function _sendEvent(e,n){if(a)return;const s={siteId:o.site._id,campaignId:t&&t._id,sessionId:w,type:e,date:(new Date).toISOString(),device:i?"mobile":"desktop",params:n};if("cartCreated"===e){const e=_getCookie("vidjet_cart_id");e&&(s.cartId=e)}_makeRequest("/track-event",s,o.backendUrl)}function _matchBulkSegmentation(e){return e.bulk.find(_matchBulkCriteria)}function _matchBulkCriteria(e){return e.segmentation?.productId?.length&&e.segmentation.url?.length?_matchProductIdSegmentation(e.segmentation.productId)&&_matchUrlSegmentation(e.segmentation.url):e.segmentation?.productId?_matchProductIdSegmentation(e.segmentation.productId):!!S.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 _matchProductIdSegmentation(e){return e.includes(S.productId.toString())||e.includes(parseInt(S.productId))}function _matchSegmentation(t,o=!1){if(e=i?t.formats.find((e=>e.deviceType===k)):t.formats.find((e=>e.deviceType===T)),o)return!0;if(!e)return!1;if(!a){const e=_getCookie(`vidjet_timing_${t._id}`);if(e&&(new Date).getTime()"f7278680-1975-48d8-832a-f8eeb6c4ad86"===e._id));if(!t)return;const a=_matchBulkSegmentation(t);if(!a)return;document.getElementsByClassName("magic-slide mt-active")[0].insertAdjacentHTML("afterend",'');const n=document.getElementsByClassName("magictoolbox-selector mz-thumb");for(let t of n)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 s=document.createElement("a");s.innerHTML=`Audemars Piguet Royal Oak - 14img-1`,s.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(s.firstChild),_sendAnalyticsToIframes()}if("1f3f4a1f-b5cf-41c9-8906-be1aeebde3e1"===o.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 o of i)if(document.location.pathname===o.url||document.location.pathname===o.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"===o.site._id){const i=[{url:"https://atashicellular.com/antioxidante/587-tonico-regenerante-purificante.html",campaignId:"6c9e1a3b-f851-4d81-a280-162a175ad732"}];for(const o of i)if(document.location.href.includes(o.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}}}(),o.site.isLocked&&function(){const e=[...document.querySelectorAll(".vidjet-video-wrapper"),...document.querySelectorAll(".vidjet-carousel-wrapper")];for(const t of e)t.remove()}(),function(){const e="video-preview"===(r.has("vidjet")&&r.get("vidjet"))&&r.has("campaignId"),{isLocked:t}=o.site,n=o.campaignsActivated.length;if(e){const e=o.campaignsPaused.find((e=>e._id===r.get("campaignId")));e?(a=!0,!i&&_displayLaunchPopup(e._id),_matchSegmentation(e,!0)&&_displayIframeBasedOnTrigger(e),_setCookie("vidjet-preview",!0,1),_setCookie("vidjet-campaignId",r.get("campaignId"),1)):(_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId"))}else if(c){const e=o.campaignsPaused.find((e=>e._id===d));e?(!i&&_displayLaunchPopup(e._id),_matchSegmentation(e,!0)&&_displayIframeBasedOnTrigger(e)):(_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId"))}else{if(t||!n)return;for(const e of o.campaignsActivated)if(_matchSegmentation(e)){_displayIframeBasedOnTrigger(e);break}}}(),e){const{isFullScreen:t}=_decryptParams(e);!t&&_addResizeListener()}},showCampaign:function(t,a){const s=o.campaignsActivated.find((e=>e._id==t));if(!s)return console.error(`Invalid campaign id for ${t}`);e=i?s.formats.find((e=>e.deviceType===k)):s.formats.find((e=>e.deviceType===T));const{isFullScreen:r}=_decryptParams(e);if(a)_destroyIframe(),n=!1,l=!1,p=!1,_displayIframeBasedOnTrigger(s),!r&&_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.');n=!1,l=!1,p=!1,_displayIframeBasedOnTrigger(s),!r&&_addResizeListener()}},initSpa:function(){const e=this;let t=location.href;setInterval((function(){t!=location.href&&(console.log("VIDJET: page change detected"),_destroyIframe(),n=!1,l=!1,p=!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()}));