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

Your video popup looks stunning!

\n
\n Back to Vidjet\n
\n `,a="\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 ",i=document.createElement("style");i.innerHTML=a,document.body.appendChild(i);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 a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(t[e[a+0]]+t[e[a+1]]+t[e[a+2]]+t[e[a+3]]+"-"+t[e[a+4]]+t[e[a+5]]+"-"+t[e[a+6]]+t[e[a+7]]+"-"+t[e[a+8]]+t[e[a+9]]+"-"+t[e[a+10]]+t[e[a+11]]+t[e[a+12]]+t[e[a+13]]+t[e[a+14]]+t[e[a+15]]).toLowerCase();if(!validate(i))throw TypeError("Stringified UUID is invalid");return i}var Vidjet=function(){var e,t,a=/(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),i={campaignsActivated:JSON.parse("[]"),campaignsPaused:JSON.parse('[{"_id":"20a2796a-aed5-4a53-8a42-0ee58120b856","name":"Bulk Embed","formats":[{"autoLoop":false,"autoScroll":false,"autoplay":false,"hidePlayPause":true,"hideControlBar":false,"title":"","hideFeedArrow":false,"iconSettings":{"iconType":"minimal","animation":"none","secondaryColor":"#c4c4c4","color":"white","opacity":1},"formatType":3,"deviceType":1,"arrowSettings":{"iconType":"corner1","secondaryColor":"#A3A3A3","color":"black","opacity":1},"isFullScreen":false}],"bulk":[{"feedName":"Feed name 1","segmentation":{"productId":[7193567527108]},"videos":[{"videoId":"0e583e2b-493f-4d59-a374-0cc91dfbff17","_id":"0e583e2b-493f-4d59-a374-0cc91dfbff17","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","videoDuration":79.4,"height":3840,"width":2160,"fileName":"Léa (pack).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/0e583e2b-493f-4d59-a374-0cc91dfbff17/le_a__pack_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/0e583e2b-493f-4d59-a374-0cc91dfbff17/1699826534615.jpg","creationDate":"2023-11-12T22:02:14.725Z","modificationDate":"2023-11-12T22:05:02.412Z","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/0e583e2b-493f-4d59-a374-0cc91dfbff17/le_a__pack_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/0e583e2b-493f-4d59-a374-0cc91dfbff17/le_a__pack_.mp4","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/0e583e2b-493f-4d59-a374-0cc91dfbff17/1699826534615.jpg","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/0e583e2b-493f-4d59-a374-0cc91dfbff17/le_a__pack_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/0e583e2b-493f-4d59-a374-0cc91dfbff17/le_a__pack_.mp4.m3u8"},{"videoId":"791ed118-6894-4b50-a6c7-751a6a9abe27","_id":"791ed118-6894-4b50-a6c7-751a6a9abe27","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","videoDuration":121.3,"height":3840,"width":2160,"fileName":"Ines (pack).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/791ed118-6894-4b50-a6c7-751a6a9abe27/ines__pack_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/791ed118-6894-4b50-a6c7-751a6a9abe27/1699826558033.jpg","creationDate":"2023-11-12T22:02:38.024Z","modificationDate":"2023-11-12T22:06:09.702Z","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/791ed118-6894-4b50-a6c7-751a6a9abe27/ines__pack_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/791ed118-6894-4b50-a6c7-751a6a9abe27/ines__pack_.mp4","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/791ed118-6894-4b50-a6c7-751a6a9abe27/1699826558033.jpg","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/791ed118-6894-4b50-a6c7-751a6a9abe27/ines__pack_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/791ed118-6894-4b50-a6c7-751a6a9abe27/ines__pack_.mp4.m3u8"},{"videoId":"5565ac04-70ec-4cef-9cf0-816a96cd32cb","_id":"5565ac04-70ec-4cef-9cf0-816a96cd32cb","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","videoDuration":49.1,"height":3840,"width":2160,"fileName":"Carole (pack).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/5565ac04-70ec-4cef-9cf0-816a96cd32cb/carole__pack_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/5565ac04-70ec-4cef-9cf0-816a96cd32cb/1699813687700.jpg","creationDate":"2023-11-12T18:28:07.790Z","modificationDate":"2023-11-12T18:29:39.415Z","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/5565ac04-70ec-4cef-9cf0-816a96cd32cb/1699813687700.jpg","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/5565ac04-70ec-4cef-9cf0-816a96cd32cb/carole__pack_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/5565ac04-70ec-4cef-9cf0-816a96cd32cb/carole__pack_.mp4","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/5565ac04-70ec-4cef-9cf0-816a96cd32cb/carole__pack_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/5565ac04-70ec-4cef-9cf0-816a96cd32cb/carole__pack_.mp4.m3u8"},{"videoId":"a9550bd0-2f6a-4a13-b0a7-6ce8eee642d8","_id":"a9550bd0-2f6a-4a13-b0a7-6ce8eee642d8","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","videoDuration":77.4,"height":3840,"width":2160,"fileName":"Elea (pack).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/a9550bd0-2f6a-4a13-b0a7-6ce8eee642d8/elea__pack_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/a9550bd0-2f6a-4a13-b0a7-6ce8eee642d8/1699819127671.jpg","creationDate":"2023-11-12T19:58:47.703Z","modificationDate":"2023-11-12T20:02:11.656Z","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/a9550bd0-2f6a-4a13-b0a7-6ce8eee642d8/elea__pack_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/a9550bd0-2f6a-4a13-b0a7-6ce8eee642d8/elea__pack_.mp4","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/a9550bd0-2f6a-4a13-b0a7-6ce8eee642d8/1699819127671.jpg","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/a9550bd0-2f6a-4a13-b0a7-6ce8eee642d8/elea__pack_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/a9550bd0-2f6a-4a13-b0a7-6ce8eee642d8/elea__pack_.mp4.m3u8"},{"videoId":"6d1ce40e-5ef5-4d16-9e19-3af35f628f07","_id":"6d1ce40e-5ef5-4d16-9e19-3af35f628f07","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","videoDuration":82.4,"height":3840,"width":2160,"fileName":"Sania (pack).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/6d1ce40e-5ef5-4d16-9e19-3af35f628f07/sania__pack_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/6d1ce40e-5ef5-4d16-9e19-3af35f628f07/1699826585670.jpg","creationDate":"2023-11-12T22:03:05.792Z","modificationDate":"2023-11-12T22:05:33.244Z","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/6d1ce40e-5ef5-4d16-9e19-3af35f628f07/sania__pack_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/6d1ce40e-5ef5-4d16-9e19-3af35f628f07/sania__pack_.mp4","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/6d1ce40e-5ef5-4d16-9e19-3af35f628f07/1699826585670.jpg","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/6d1ce40e-5ef5-4d16-9e19-3af35f628f07/sania__pack_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/6d1ce40e-5ef5-4d16-9e19-3af35f628f07/sania__pack_.mp4.m3u8"}]}],"siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","tags":["b6249700-f4ac-4857-9700-9a3d1bc56f69"],"order":1,"stateFlag":0,"creationDate":"2023-11-12T17:19:01.401Z","modificationDate":"2023-11-12T22:03:57.505Z"},{"_id":"939b79f1-7b99-4da8-a53e-109657e65705","name":"Homepage","videos":[{"videoId":"b9b91594-c3ef-4a78-83df-4c21c67cd6e4","_id":"b9b91594-c3ef-4a78-83df-4c21c67cd6e4","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","useCase":"carousel","videoDuration":49.1,"height":3840,"width":2160,"fileName":"Carole (pack).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b9b91594-c3ef-4a78-83df-4c21c67cd6e4/carole__pack_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b9b91594-c3ef-4a78-83df-4c21c67cd6e4/1699809946618.jpg","creationDate":"2023-11-12T17:25:45.475Z","modificationDate":"2023-11-12T17:27:54.828Z","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b9b91594-c3ef-4a78-83df-4c21c67cd6e4/1699809946618.jpg","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/b9b91594-c3ef-4a78-83df-4c21c67cd6e4/carole__pack_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b9b91594-c3ef-4a78-83df-4c21c67cd6e4/carole__pack_.mp4","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b9b91594-c3ef-4a78-83df-4c21c67cd6e4/carole__pack_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b9b91594-c3ef-4a78-83df-4c21c67cd6e4/carole__pack_.mp4.m3u8"},{"videoId":"e4d6804b-549e-4918-807e-91cc5ed46b68","_id":"e4d6804b-549e-4918-807e-91cc5ed46b68","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","useCase":"carousel","videoDuration":77.4,"height":3840,"width":2160,"fileName":"Elea (pack).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/e4d6804b-549e-4918-807e-91cc5ed46b68/elea__pack_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/e4d6804b-549e-4918-807e-91cc5ed46b68/1699809945177.jpg","creationDate":"2023-11-12T17:25:45.226Z","modificationDate":"2023-11-12T17:29:03.537Z","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/e4d6804b-549e-4918-807e-91cc5ed46b68/elea__pack_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/e4d6804b-549e-4918-807e-91cc5ed46b68/elea__pack_.mp4","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/e4d6804b-549e-4918-807e-91cc5ed46b68/1699809945177.jpg","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/e4d6804b-549e-4918-807e-91cc5ed46b68/elea__pack_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/e4d6804b-549e-4918-807e-91cc5ed46b68/elea__pack_.mp4.m3u8"},{"videoId":"20c0d436-bb24-4500-8c86-7059ecd11e2d","_id":"20c0d436-bb24-4500-8c86-7059ecd11e2d","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","useCase":"carousel","videoDuration":121.3,"height":3840,"width":2160,"fileName":"Ines (pack).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/20c0d436-bb24-4500-8c86-7059ecd11e2d/ines__pack_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/20c0d436-bb24-4500-8c86-7059ecd11e2d/1699809946657.jpg","creationDate":"2023-11-12T17:25:46.676Z","modificationDate":"2023-11-12T17:29:30.688Z","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/20c0d436-bb24-4500-8c86-7059ecd11e2d/1699809946657.jpg","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/20c0d436-bb24-4500-8c86-7059ecd11e2d/ines__pack_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/20c0d436-bb24-4500-8c86-7059ecd11e2d/ines__pack_.mp4","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/20c0d436-bb24-4500-8c86-7059ecd11e2d/ines__pack_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/20c0d436-bb24-4500-8c86-7059ecd11e2d/ines__pack_.mp4.m3u8"},{"videoId":"1d9b073f-bf5d-4582-ad4e-eda68f4cddf2","_id":"1d9b073f-bf5d-4582-ad4e-eda68f4cddf2","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","useCase":"carousel","videoDuration":79.4,"height":3840,"width":2160,"fileName":"Léa (pack).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/1d9b073f-bf5d-4582-ad4e-eda68f4cddf2/le_a__pack_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/1d9b073f-bf5d-4582-ad4e-eda68f4cddf2/1699809945363.jpg","creationDate":"2023-11-12T17:25:45.413Z","modificationDate":"2023-11-12T17:28:35.845Z","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/1d9b073f-bf5d-4582-ad4e-eda68f4cddf2/le_a__pack_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/1d9b073f-bf5d-4582-ad4e-eda68f4cddf2/le_a__pack_.mp4","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/1d9b073f-bf5d-4582-ad4e-eda68f4cddf2/1699809945363.jpg","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/1d9b073f-bf5d-4582-ad4e-eda68f4cddf2/le_a__pack_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/1d9b073f-bf5d-4582-ad4e-eda68f4cddf2/le_a__pack_.mp4.m3u8"},{"videoId":"60679f6f-2439-4445-b0ab-c2ad81550a91","_id":"60679f6f-2439-4445-b0ab-c2ad81550a91","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","useCase":"carousel","videoDuration":82.4,"height":3840,"width":2160,"fileName":"Sania (pack).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/60679f6f-2439-4445-b0ab-c2ad81550a91/sania__pack_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/60679f6f-2439-4445-b0ab-c2ad81550a91/1699809945499.jpg","creationDate":"2023-11-12T17:25:45.436Z","modificationDate":"2023-11-12T17:28:38.677Z","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/60679f6f-2439-4445-b0ab-c2ad81550a91/sania__pack_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/60679f6f-2439-4445-b0ab-c2ad81550a91/sania__pack_.mp4","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/60679f6f-2439-4445-b0ab-c2ad81550a91/1699809945499.jpg","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/60679f6f-2439-4445-b0ab-c2ad81550a91/sania__pack_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/60679f6f-2439-4445-b0ab-c2ad81550a91/sania__pack_.mp4.m3u8"}],"formats":[{"autoLoop":false,"autoScroll":false,"autoplay":false,"hidePlayPause":true,"hideControlBar":false,"title":"","hideFeedArrow":false,"iconSettings":{"iconType":"round","animation":"wave","secondaryColor":"#8B87BDFF","color":"white","opacity":1},"arrowSettings":{"iconType":"corner1","secondaryColor":"#A3A3A3","color":"#8B87BDFF","opacity":1},"deviceType":1,"formatType":3,"isFullScreen":false,"carouselThumbnailAmount":1,"hideCarouselArrows":true}],"siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","order":1,"stateFlag":0,"creationDate":"2023-11-12T17:27:52.933Z","modificationDate":"2023-11-21T11:39:56.593Z"},{"_id":"babae28c-d5cb-4821-8e14-70e05869b5b6","name":"Bulk Embed","formats":[{"autoLoop":false,"autoScroll":false,"autoplay":false,"hidePlayPause":true,"hideControlBar":false,"title":"","hideFeedArrow":false,"iconSettings":{"iconType":"minimal","animation":"none","secondaryColor":"#c4c4c4","color":"white","opacity":1},"formatType":3,"deviceType":1,"arrowSettings":{"iconType":"corner1","secondaryColor":"#A3A3A3","color":"black","opacity":1},"isFullScreen":false}],"bulk":[{"feedName":"Feed name 1","segmentation":{"productId":[7132126970052]},"videos":[{"videoId":"8a749274-aa11-47c7-a4cb-a86186757b28","_id":"8a749274-aa11-47c7-a4cb-a86186757b28","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","useCase":"carousel","videoDuration":76.7,"height":3840,"width":2160,"fileName":"Marine.MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/8a749274-aa11-47c7-a4cb-a86186757b28/marine.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/8a749274-aa11-47c7-a4cb-a86186757b28/1699826824508.jpg","creationDate":"2023-11-12T22:07:04.621Z","modificationDate":"2023-11-12T22:09:25.997Z","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/8a749274-aa11-47c7-a4cb-a86186757b28/marine.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/8a749274-aa11-47c7-a4cb-a86186757b28/marine.mp4","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/8a749274-aa11-47c7-a4cb-a86186757b28/1699826824508.jpg","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/8a749274-aa11-47c7-a4cb-a86186757b28/marine.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/8a749274-aa11-47c7-a4cb-a86186757b28/marine.mp4.m3u8"}]}],"siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","tags":["b6249700-f4ac-4857-9700-9a3d1bc56f69"],"order":2,"stateFlag":0,"creationDate":"2023-11-12T22:05:24.690Z","modificationDate":"2023-11-12T22:07:33.004Z"},{"_id":"35381c6e-5e66-4382-91e9-b0719b6977f4","name":"Bulk Embed","formats":[{"autoLoop":false,"autoScroll":false,"autoplay":false,"hidePlayPause":true,"hideControlBar":false,"title":"","hideFeedArrow":false,"iconSettings":{"iconType":"minimal","animation":"none","secondaryColor":"#c4c4c4","color":"white","opacity":1},"formatType":3,"deviceType":1,"arrowSettings":{"iconType":"corner1","secondaryColor":"#A3A3A3","color":"black","opacity":1},"isFullScreen":false}],"bulk":[{"feedName":"Feed name 1","segmentation":{"productId":[7079671595204]},"videos":[{"videoId":"67e79f61-5184-435e-b183-5bdfa46ab5a1","_id":"67e79f61-5184-435e-b183-5bdfa46ab5a1","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","useCase":"carousel","videoDuration":32,"height":3840,"width":2160,"fileName":"Ornella (ovastart).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/67e79f61-5184-435e-b183-5bdfa46ab5a1/ornella__ovastart_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/67e79f61-5184-435e-b183-5bdfa46ab5a1/1699827190786.jpg","creationDate":"2023-11-12T22:13:10.907Z","modificationDate":"2023-11-12T22:14:33.305Z","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/67e79f61-5184-435e-b183-5bdfa46ab5a1/1699827190786.jpg","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/67e79f61-5184-435e-b183-5bdfa46ab5a1/ornella__ovastart_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/67e79f61-5184-435e-b183-5bdfa46ab5a1/ornella__ovastart_.mp4","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/67e79f61-5184-435e-b183-5bdfa46ab5a1/ornella__ovastart_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/67e79f61-5184-435e-b183-5bdfa46ab5a1/ornella__ovastart_.mp4.m3u8"},{"videoId":"b11f366e-45c9-4f7f-9c9f-529e388d6b24","_id":"b11f366e-45c9-4f7f-9c9f-529e388d6b24","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","useCase":"carousel","videoDuration":81,"height":3840,"width":2160,"fileName":"Salomé (ovastart).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b11f366e-45c9-4f7f-9c9f-529e388d6b24/salome___ovastart_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b11f366e-45c9-4f7f-9c9f-529e388d6b24/1699827204459.jpg","creationDate":"2023-11-12T22:13:24.426Z","modificationDate":"2023-11-12T22:15:40.564Z","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b11f366e-45c9-4f7f-9c9f-529e388d6b24/1699827204459.jpg","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/b11f366e-45c9-4f7f-9c9f-529e388d6b24/salome___ovastart_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b11f366e-45c9-4f7f-9c9f-529e388d6b24/salome___ovastart_.mp4","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b11f366e-45c9-4f7f-9c9f-529e388d6b24/salome___ovastart_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/b11f366e-45c9-4f7f-9c9f-529e388d6b24/salome___ovastart_.mp4.m3u8"},{"videoId":"ceceac29-e929-4cea-a56e-e703e35a9b55","_id":"ceceac29-e929-4cea-a56e-e703e35a9b55","siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","useCase":"carousel","videoDuration":59.6,"height":3840,"width":2160,"fileName":"Lexy (ovastart).MP4","url":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/ceceac29-e929-4cea-a56e-e703e35a9b55/lexy__ovastart_.mp4-compressed.mp4","thumbnail":"https://image.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/ceceac29-e929-4cea-a56e-e703e35a9b55/1699827225912.jpg","creationDate":"2023-11-12T22:13:45.705Z","modificationDate":"2023-11-12T22:15:42.047Z","thumbnailS3Path":"s3://image-compression-pipeline-source/7df77fcc-55cf-4b50-ae0a-f1948d557efa/ceceac29-e929-4cea-a56e-e703e35a9b55/1699827225912.jpg","key":"7df77fcc-55cf-4b50-ae0a-f1948d557efa/ceceac29-e929-4cea-a56e-e703e35a9b55/lexy__ovastart_.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/7df77fcc-55cf-4b50-ae0a-f1948d557efa/ceceac29-e929-4cea-a56e-e703e35a9b55/lexy__ovastart_.mp4","trimmedUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/ceceac29-e929-4cea-a56e-e703e35a9b55/lexy__ovastart_.mp4-compressed-short.mp4","streamingUrl":"https://video.vidjet.io/7df77fcc-55cf-4b50-ae0a-f1948d557efa/ceceac29-e929-4cea-a56e-e703e35a9b55/lexy__ovastart_.mp4.m3u8"}]}],"siteId":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","tags":["b6249700-f4ac-4857-9700-9a3d1bc56f69"],"order":3,"stateFlag":0,"creationDate":"2023-11-12T22:09:31.151Z","modificationDate":"2023-11-12T22:14:13.007Z"}]'),site:JSON.parse('{"integration":"shopify","_id":"7df77fcc-55cf-4b50-ae0a-f1948d557efa","websiteUrl":"https://sova-care.com","currency":"EUR","isLocked":false,"showWatermark":true}'),playerUrl:JSON.parse('"https://player.vidjet.io"'),backendUrl:JSON.parse('"https://app-api.vidjet.io"')},o=!1,d=!1,c=window.location.search,n=new URLSearchParams(c),s=Boolean(_getCookie("vidjet-preview")),r=_getCookie("vidjet-campaignId");o=s;var f=!1,l=!1,m=[],p={},u=!1,b=!1,h=120;const g=40,v=40;let _=0;const y=_getCookie("vidjet-sessionId");var w=y||function(e,t,a){var i=(e=e||{}).random||(e.rng||rng)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){a=a||0;for(let e=0;e<16;++e)t[a+e]=i[e];return t}return stringify(i)}();_setCookie("vidjet-sessionId",w,1);var j={url:location.href,sessionId:w};"product"===window?.ShopifyAnalytics?.meta?.page?.resourceType&&(j.productId=ShopifyAnalytics.meta.page.resourceId),"prestashop"===i.site?.integration&&(j.productId=window.id_product||"undefined"!=typeof cdcDatalayer&&cdcDatalayer?.ecommerce?.items?.length&&cdcDatalayer.ecommerce.items[0].item_id||window._idp||window.productObject?.id),"woocommerce"===i.site?.integration&&(j.productId=document.querySelector("[data-product_id]")?.getAttribute("data-product_id"));var k={landing:0,exit:1,scroll:2,delay:3},I=0,S=1;_sendAnalyticsToIframes(),window.addEventListener("message",(a=>{"vidjet"===a.data.messageOrigin&&function(a){const{origin:o,properties:d}=a&&a.data,c=document.querySelector(".vidjet-iframe")||document.querySelector(".vidjet-embed-iframe");if(c)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();c.style.width=`${e+g}px`,c.style.height=`${t+v}px`}),500),e.isFullScreen){document.querySelectorAll(".vidjet-body").forEach((e=>e.classList.remove("vidjet-body"))),c.classList.remove("vidjet-fullscreen"),window.scrollTo(0,_);const t=10;c.style.bottom=e.moveY?`${e.moveY+t}px`:`${t}px`,c.style.display="block",1===e.position?(c.style.left="unset",c.style.right=e.moveX?`${e.moveX+t}px`:`${t}px`):0===e.position&&(c.style.right="unset",c.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)c.style.height="100%",c.style.width="100%",c.style.bottom="0px",c.style.right="0px",c.style.left="0px",c.classList.add("vidjet-fullscreen"),_injectCssFullScreen();else{if(_isWarmangoProductCampaign(i.site._id,t._id))return c.style.width="auto",void(c.style.height="100%");const{iframeWidth:e,iframeHeight:a}=_setIframeSize(p);c.style.width=`${e}px`,c.style.height=`${a}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()},a=e.filter((e=>e));a.length>0&&a.forEach((e=>{e.contentWindow.postMessage(t,"*")}))}();else if("addToCart"===o)!function(e){switch(i.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,a=window.prestashop&&prestashop.urls?.pages?.cart||location.origin;var i="controller=cart&add=1&action=update&ajax=true&qty="+(e.qty||1)+"&token="+t+"&id_product="+e.productId+"&ipa="+e.variantId;$.post(a,i,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"===i.site._id){const e=[document.querySelector(".vidjet-iframe"),...document.querySelectorAll(".vidjet-embed-iframe")],t={action:"scriptCloseEvent"},a=e.filter((e=>e));a.length>0&&a.forEach((e=>{e.contentWindow.postMessage(t,"*")})),document.dispatchEvent(new CustomEvent("cart:refresh"));const i=document.querySelector("cart-drawer");i&&!i.hasAttribute("open")&&i.show(),document.dispatchEvent(new CustomEvent("cart:refresh"))}}(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:j};c.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 } ",a=document.createElement("style");a.innerText=t,document.head.appendChild(a),window.scrollY&&(_=window.scrollY);const i=_targetCarousels(e);i.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,_),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"})):"bulkSegMatched"===o?_targetCarousels(d).forEach((e=>{"0"!==e.parentElement.style.height&&"0px"!==e.parentElement.style.height&&e.parentElement.style.height||(e.parentElement.style.height="125px")})):"youtubeThumbnailClicked"===o&&document.querySelector("#videos")?.scrollIntoView({behavior:"smooth"})}(a)}),!1),_sendEvent("pageView"),function(){let e=document.querySelector("style[data-vidjet]");if(e)return e.remove();{const e="";document.head.insertAdjacentHTML("beforeend",e)}}();var x,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===i.site.integration));if(!(x=i.site,0===Object.keys(x).length&&x.constructor===Object||i.site.integration)){_makeRequest("/website/integrate",{siteId:i.site&&i.site._id,integrationDate:(new Date).toISOString(),integration:"manual",websiteUrl:window.location.protocol+"//"+window.location.hostname},i.backendUrl)}if(T){let e="prestashop"===T.integration?window.vidjetPreastshopCartId:_getCookie(T.cookieName);"shopify"===T?.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 i=function(e){const{mobile:t,tablet:a,desktop:i,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}},c=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),n=function({height:e,width:t}){return e/t>.9&&e/t<1.2?"square":e>t?"portrait":"landscape"}(e);switch(!0){case c<=480:return c*t[n];case c<=768:return c*a[n];case c<=1024:return c*i[n];case c<=1680:return c*o[n];default:return c*d[n]}}(t);const o=e.hideBubble||a,d=u?0:30,c=o?0:h||120,{width:n,height:s}=t;return iframeHeight=s/(n/i)+d+c,{iframeWidth:i,iframeHeight:iframeHeight}}function _setBubbleSize(){if(h=h||90,"original"===e.bubbleShape){const{width:e,height:t}=p,a=e/t;return a<1?{width:h,height:h/a}:{width:h*a,height:h}}return{width:h,height:h}}function _limitOffset(e){const{height:t,width:a}=p;if(0===e.moveX&&0===e.moveY)return{offsetX:0,offsetY:0};const{iframeWidth:i,iframeHeight:o}=b?_setIframeSize({width:a,height:t}):_setBubbleSize(),d=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)-20,c=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)-20;let{moveX:n,moveY:s}=e;const r=s+o,f=n+i;return r>d&&(s-=r-d),f>c&&(n-=f-c),{offsetX:n,offsetY:s}}function _addElement(t,a,i,o,d,c){if(e.isStickyBar)return _sendEvent("display"),function(t,a,i,o,d){const c=document.createElement("div"),{backgroundColor:n,textColor:s,text:r}=e.stickyBarOptions,{moveY:f}=o;c.classList.add("vidjet-stickyBar"),c.id="vidjet-stickybar",c.style["background-color"]=n,f&&(c.style.bottom=`${f||20}px`),c.innerHTML=`\n
\n
\n \n ${r}\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,a,i,o,d)})),document.getElementById("vidjet-stickybar-close").addEventListener("click",(function(){c.classList.add("vidjet-hidden")}))}(t,a,i,o,d);_addIframe(t,a,i,o,d)}function _addIframe(t,o,d,c,n,s){const{campaignType:r}=t||{},{offsetX:f,offsetY:l}=_limitOffset(c);if(!document.querySelectorAll(".vidjet-iframe").length){let t=document.createElement("iframe");var m=`${i.playerUrl}/${o}/${d}`,b=new URL(m);const c="popup"===r;b.searchParams.set("sessionId",w),b.searchParams.set("device",a?"mobile":"desktop"),b.searchParams.set("url",j.url),j.productId&&b.searchParams.set("productId",j.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 s=10;if(t.style.bottom=c?0:l?`${l}px`:`${s}px`,t.style.display="block",u&&(t.style.borderRadius="10px"),"right"!==r||c?"left"!==r||c?c?t.classList.add("vidjet-popup"):t.style.left=f?`${f}px`:0:t.style.left=f?`${f}px`:`${s}px`:t.style.right=f?`${f}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(),!c)if(n&&!e.isFullScreen){const{iframeWidth:e,iframeHeight:a}=_setIframeSize(p);t.style.width=`${e}px`,t.style.height=`${a}px`}else{const{width:e,height:a}=_setBubbleSize();t.style.width=`${e+g}px`,t.style.height=`${a+v}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"===i.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 a=[];return 1===t.length?t:(a=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)))),a)}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,a){var i="";if(a){var o=new Date;o.setTime(o.getTime()+60*a*60*1e3),i="; expires="+o.toUTCString()}document.cookie=e+"="+(t||"")+i+"; path=/"}function _displayLaunchPopup(e){return vidjetDisplayLaunchPopup(e)}function _getCookie(e){for(var t=e+"=",a=document.cookie.split(";"),i=0;i1?(u=!0,p={width:1080,height:1920}):p={width:i.videos[0].width,height:i.videos[0].height},b=e.openByDefault&&!e.isFullScreen);const{moveX:_,moveY:y,bubbleSize:w}=e||{},j={siteId:g,_id:v,videoOriginalSize:p,moveX:_,moveY:y,isPlayerOpen:b,bubbleSize:w};h=w,i.bulk||function(){const e=_getCookie(`vidjet_view_${t._id}`),a=e?parseInt(e)+1:1;_setCookie(`vidjet_view_${t._id}`,a,t.segmentation.viewRestriction.notShownTime+1),a>=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}`))}(),!i?.segmentation?.trigger?.type||i.segmentation.trigger.type===c||o?_addElement(_decryptParams(e),g,v,{moveX:_,moveY:y},b):i.segmentation.trigger.type===n?(document.addEventListener("mouseout",(e=>{_onExitIntent(e,j)})),a&&document.addEventListener("scroll",(e=>{_onExitIntent(e,j)}))):i.segmentation.trigger.type===s?window.addEventListener("scroll",(function(t){f||(window.requestAnimationFrame((function(){!function(t,a){let i=document.documentElement,o=document.body,d="scrollTop",c="scrollHeight",n=(i[d]||o[d])/((i[c]||o[c])-i.clientHeight)*100;const{siteId:s,_id:r,moveX:f,moveY:m,isPlayerOpen:p,bubbleSize:u}=a;n>=t.segmentation.trigger.option&&!l&&(_addElement(_decryptParams(e),s,r,{moveX:f,moveY:m},p),l=!0)}(i,j),f=!1})),f=!0)}),!0):i.segmentation.trigger.type===r&&setTimeout((()=>{_addElement(_decryptParams(e),g,v,{moveX:_,moveY:y},b)}),1e3*(i.segmentation.trigger.option||10))}let C=0;const _onExitIntent=(t,a)=>{const{siteId:i,_id:o,moveX:d,moveY:c,isPlayerOpen:n,bubbleSize:s}=a;if(t.clientY<50&&null==t.relatedTarget&&"select"!==t.target.nodeName.toLowerCase())document.removeEventListener("mouseout",(e=>{console.log(e,"removed")})),_addElement(_decryptParams(e),i,o,{moveX:d,moveY:c},n);else if("scroll"==t.type){let t=window.pageYOffset||document.documentElement.scrollTop;t+50{console.log(e,"removed")})),_addElement(_decryptParams(e),i,o,{moveX:d,moveY:c},n)),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,a){var i=new XMLHttpRequest,o=a+e;i.open("POST",o,!0),i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify(t))}function _sendAnalyticsToIframes(){const e=[...document.querySelectorAll(".vidjet-embed-iframe")],t={action:"getAnalytics",data:j},a=e.filter((e=>e));a.length>0&&a.forEach((e=>{e.contentWindow.postMessage(t,"*")}))}function _sendEvent(e,d){if(o)return;const c={siteId:i.site._id,campaignId:t&&t._id,sessionId:w,type:e,date:(new Date).toISOString(),device:a?"mobile":"desktop",params:d};if("cartCreated"===e){const e=_getCookie("vidjet_cart_id");e&&(c.cartId=e)}_makeRequest("/track-event",c,i.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):!!j.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 a of e){if(!a.type&&!t)return _compareUrl(a);if(a.type){let e=_matchUrlSegmentation(a.filters,a.type);if(!t)return e;if("or"===t&&e)return!0;if("and"===t&&!e)return!1}else{let e=_compareUrl(a);if("or"===t&&e)return!0;if("and"===t&&!e)return!1}}return"or"!==t}function _matchProductIdSegmentation(e){return e.includes(j.productId.toString())||e.includes(parseInt(j.productId))}function _matchSegmentation(t,i=!1){if(e=a?t.formats.find((e=>e.deviceType===I)):t.formats.find((e=>e.deviceType===S)),i)return!0;if(!e)return!1;if(!o){const e=_getCookie(`vidjet_timing_${t._id}`);if(e&&(new Date).getTime()"f7278680-1975-48d8-832a-f8eeb6c4ad86"===e._id));if(!t)return;const o=_matchBulkSegmentation(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 c=document.createElement("a");c.innerHTML=`Audemars Piguet Royal Oak - 14img-1`,c.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(c.firstChild),_sendAnalyticsToIframes()}if("1f3f4a1f-b5cf-41c9-8906-be1aeebde3e1"===i.site._id){const a=[{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 i of a)if(document.location.pathname===i.url||document.location.pathname===i.secondPath){var e=1,t=setInterval((function(){var a=document.getElementsByClassName("woocommerce-product-gallery__image")&&document.getElementsByClassName("woocommerce-product-gallery__image")[2];a&&(a.innerHTML=`\n
\n \n
`,clearInterval(t)),(e+=1)>=20&&clearInterval(t)}),100);break}}else if("15701a38-dae7-47d3-9881-cddf540b11a2"===i.site._id){const a=[{url:"https://atashicellular.com/antioxidante/587-tonico-regenerante-purificante.html",campaignId:"6c9e1a3b-f851-4d81-a280-162a175ad732"}];for(const i of a)if(document.location.href.includes(i.url)){e=1,t=setInterval((function(){var a=document.getElementsByClassName("product-lmage-large swiper-slide")&&document.getElementsByClassName("product-lmage-large swiper-slide")[2];a&&(a.innerHTML=`\n
\n \n
`,clearInterval(t)),(e+=1)>=20&&clearInterval(t)}),100);break}}}(),i.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"===(n.has("vidjet")&&n.get("vidjet"))&&n.has("campaignId"),{isLocked:t}=i.site,d=i.campaignsActivated.length;if(e){const e=i.campaignsPaused.find((e=>e._id===n.get("campaignId")));e?(o=!0,!a&&_displayLaunchPopup(e._id),_matchSegmentation(e,!0)&&_displayIframeBasedOnTrigger(e),_setCookie("vidjet-preview",!0,1),_setCookie("vidjet-campaignId",n.get("campaignId"),1)):(_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId"))}else if(s){const e=i.campaignsPaused.find((e=>e._id===r));e?(!a&&_displayLaunchPopup(e._id),_matchSegmentation(e,!0)&&_displayIframeBasedOnTrigger(e)):(_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId"))}else{if(t||!d)return;for(const e of i.campaignsActivated)if(_matchSegmentation(e)){_displayIframeBasedOnTrigger(e);break}}}(),e){const{isFullScreen:t}=_decryptParams(e);!t&&_addResizeListener()}},showCampaign:function(t,o){const c=i.campaignsActivated.find((e=>e._id==t));if(!c)return console.error(`Invalid campaign id for ${t}`);e=a?c.formats.find((e=>e.deviceType===I)):c.formats.find((e=>e.deviceType===S));const{isFullScreen:n}=_decryptParams(e);if(o)_destroyIframe(),d=!1,f=!1,l=!1,_displayIframeBasedOnTrigger(c),!n&&_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,f=!1,l=!1,_displayIframeBasedOnTrigger(c),!n&&_addResizeListener()}},initSpa:function(){const e=this;let t=location.href;setInterval((function(){t!=location.href&&(console.log("VIDJET: page change detected"),_destroyIframe(),d=!1,f=!1,l=!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()}));