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 n=document.createElement("div");n.classList.add("vidjet-wrapper"),n.innerHTML=t,document.body.appendChild(n);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('[{"_id":"1cf5dbc4-62a0-4a11-9214-88768c083b69","campaignType":2,"formats":[{"deviceType":1,"formatType":1,"position":0,"openByDefault":true,"title":"News 8 Interview","cta":{"text":"Book Appointment","textColor":"#FFFFFF","value":"https://www.corneliusdentistry.com/contact/","buttonColor":"#06A0ED","ctaType":0}}],"segmentation":{"trigger":{"type":3,"option":5},"viewRestriction":{"maxView":50,"notShownTime":1},"url":[{"comparison":"contains","string":"https://www.corneliusdentistry.com/contact-2/"}],"urls":[{"comparaisonType":2,"string":"https://www.corneliusdentistry.com/contact-2/"}]},"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","video":{"type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/1cf5dbc4-62a0-4a11-9214-88768c083b69/laser_dental_mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/1cf5dbc4-62a0-4a11-9214-88768c083b69/laser_dental_mp4","fileName":"laser dental.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/1cf5dbc4-62a0-4a11-9214-88768c083b69/laser_dental_mp4","height":360,"width":640,"videoDuration":241.2},"order":0,"stateFlag":1,"startDate":"2021-03-03T16:27:42.567Z","name":"Aunon News 8","creationDate":"2021-03-03T16:27:42.836Z","modificationDate":"2022-11-28T10:27:58.743Z","hasEverBeenStarted":true,"videos":[{"videoId":"853c8fdf-43ae-427d-a549-a28019ce36f0","cta":{"text":"Book Appointment","textColor":"#FFFFFF","value":"https://www.corneliusdentistry.com/contact/","buttonColor":"#06A0ED","ctaType":0},"_id":"853c8fdf-43ae-427d-a549-a28019ce36f0","type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/1cf5dbc4-62a0-4a11-9214-88768c083b69/laser_dental_mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/1cf5dbc4-62a0-4a11-9214-88768c083b69/laser_dental_mp4","fileName":"laser dental.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/1cf5dbc4-62a0-4a11-9214-88768c083b69/laser_dental_mp4","height":360,"width":640,"videoDuration":241.2,"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","creationDate":"2022-11-28T10:27:58.683Z","modificationDate":"2022-11-28T10:27:58.683Z"}]},{"_id":"99307ec2-843d-4122-a191-7a8cedec8d94","campaignType":2,"formats":[{"cta":{"text":"BOOK APPOINTMENT","textColor":"#FFFFFF","value":"https://get.topimplantdentistry.com/esthetique-dental-implants-ashburn/#lp-pom-box-148","buttonColor":"#0F99B6","ctaType":0},"deviceType":1,"formatType":1,"position":0,"openByDefault":true,"title":"NEWS 8 INTERVIEW"}],"segmentation":{"trigger":{"type":3,"option":5},"viewRestriction":{"maxView":50,"notShownTime":1},"url":[{"comparison":"eq","string":"https://get.topimplantdentistry.com/esthetique-dental-implants-ashburn/"}],"urls":[{"comparaisonType":0,"string":"https://get.topimplantdentistry.com/esthetique-dental-implants-ashburn/"}]},"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","video":{"type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","fileName":"talwardnews8a.mp4","height":360,"width":640,"videoDuration":332.3},"order":5,"stateFlag":1,"startDate":"2021-03-03T16:19:02.217Z","name":"Esthetique LP ASHBURN","hasEverBeenStarted":true,"creationDate":"2021-04-12T00:37:43.497Z","modificationDate":"2022-11-28T11:17:31.618Z","videos":[{"videoId":"3b9c2529-386e-405a-a7f3-683a369b95ee","cta":{"text":"BOOK APPOINTMENT","textColor":"#FFFFFF","value":"https://get.topimplantdentistry.com/esthetique-dental-implants-ashburn/#lp-pom-box-148","buttonColor":"#0F99B6","ctaType":0},"_id":"3b9c2529-386e-405a-a7f3-683a369b95ee","type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","fileName":"talwardnews8a.mp4","height":360,"width":640,"videoDuration":332.3,"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","creationDate":"2022-11-28T11:17:31.558Z","modificationDate":"2022-11-28T11:17:31.558Z"}]},{"_id":"3103048e-16fa-4fd4-9c59-5f14ae5651c1","campaignType":2,"formats":[{"cta":{"text":"BOOK APPOINTMENT","textColor":"#FFFFFF","value":"https://get.topimplantdentistry.com/esthetique-dental-implants-frederick/#lp-pom-box-148","buttonColor":"#0F99B6","ctaType":0},"deviceType":1,"formatType":1,"position":0,"openByDefault":true,"title":"NEWS 8 INTERVIEW"}],"segmentation":{"trigger":{"type":3,"option":5},"viewRestriction":{"maxView":50,"notShownTime":1},"url":[{"comparison":"eq","string":"https://get.topimplantdentistry.com/esthetique-dental-implants-frederick/"}],"urls":[{"comparaisonType":0,"string":"https://get.topimplantdentistry.com/esthetique-dental-implants-frederick/"}]},"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","video":{"type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","fileName":"talwardnews8a.mp4","height":360,"width":640,"videoDuration":332.3},"order":6,"stateFlag":1,"startDate":"2021-03-03T16:19:02.217Z","name":"Esthetique FREDERICK LPs","hasEverBeenStarted":true,"creationDate":"2021-04-29T19:22:06.748Z","modificationDate":"2022-11-28T11:19:15.531Z","videos":[{"videoId":"644bb3ec-f385-4d06-8af7-fe464d5f2d22","cta":{"text":"BOOK APPOINTMENT","textColor":"#FFFFFF","value":"https://get.topimplantdentistry.com/esthetique-dental-implants-frederick/#lp-pom-box-148","buttonColor":"#0F99B6","ctaType":0},"_id":"644bb3ec-f385-4d06-8af7-fe464d5f2d22","type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","fileName":"talwardnews8a.mp4","height":360,"width":640,"videoDuration":332.3,"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","creationDate":"2022-11-28T11:19:15.478Z","modificationDate":"2022-11-28T11:19:15.478Z"}]},{"_id":"e7154e43-fc5a-4a24-b0dd-2207e477fc84","campaignType":2,"formats":[{"cta":{"text":"BOOK APPOINTMENT","textColor":"#FFFFFF","value":"https://get.topimplantdentistry.com/advanced-dental-implants-leesburg/#lp-pom-box-148","buttonColor":"#0F99B6","ctaType":0},"deviceType":1,"formatType":1,"position":0,"openByDefault":true,"title":"NEWS 8 INTERVIEW"}],"segmentation":{"trigger":{"type":3,"option":5},"viewRestriction":{"maxView":50,"notShownTime":1},"url":[{"comparison":"eq","string":"https://get.topimplantdentistry.com/advanced-dental-implants-leesburg/"}],"urls":[{"comparaisonType":0,"string":"https://get.topimplantdentistry.com/advanced-dental-implants-leesburg/"}]},"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","video":{"type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","fileName":"talwardnews8a.mp4","height":360,"width":640,"videoDuration":332.3},"order":7,"stateFlag":1,"startDate":"2021-03-03T16:19:02.217Z","name":"Esthetique LEESBURG LP","hasEverBeenStarted":true,"creationDate":"2021-04-29T19:26:01.994Z","modificationDate":"2022-11-28T11:20:42.866Z","videos":[{"videoId":"6645e8e2-e77d-46fe-a3e2-4997d299f98f","cta":{"text":"BOOK APPOINTMENT","textColor":"#FFFFFF","value":"https://get.topimplantdentistry.com/advanced-dental-implants-leesburg/#lp-pom-box-148","buttonColor":"#0F99B6","ctaType":0},"_id":"6645e8e2-e77d-46fe-a3e2-4997d299f98f","type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/99307ec2-843d-4122-a191-7a8cedec8d94/talwardnews8a.mp4","fileName":"talwardnews8a.mp4","height":360,"width":640,"videoDuration":332.3,"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","creationDate":"2022-11-28T11:20:42.808Z","modificationDate":"2022-11-28T11:20:42.808Z"}]},{"_id":"0d95e76d-bf7e-4112-8614-19c4f3ed3e63","campaignType":2,"formats":[{"deviceType":1,"formatType":1,"position":0,"openByDefault":true,"title":"powered by FeaturedDentist.com"},{"deviceType":0,"formatType":1,"position":0,"openByDefault":true,"title":"powered by FeaturedDentist.com"}],"segmentation":{"trigger":{"type":3,"option":5},"viewRestriction":{"maxView":50,"notShownTime":1},"url":[{"comparison":"eq","string":"https://featureddentist.com/top-rated-widget/"}],"urls":[{"comparaisonType":0,"string":"https://featureddentist.com/top-rated-widget/"}]},"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","video":{"type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/0d95e76d-bf7e-4112-8614-19c4f3ed3e63/garima.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/0d95e76d-bf7e-4112-8614-19c4f3ed3e63/garima.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/0d95e76d-bf7e-4112-8614-19c4f3ed3e63/garima.mp4","fileName":"garima.mp4","height":1080,"width":1920,"videoDuration":64.4},"order":9,"stateFlag":1,"startDate":"2021-03-03T16:19:02.217Z","name":"FeaturedDentist.com","hasEverBeenStarted":true,"creationDate":"2021-06-16T20:05:50.591Z","modificationDate":"2022-11-28T11:23:01.986Z","videos":[{"videoId":"54076e55-4b54-4717-ad92-b8a401c4b981","_id":"54076e55-4b54-4717-ad92-b8a401c4b981","type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/0d95e76d-bf7e-4112-8614-19c4f3ed3e63/garima.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/0d95e76d-bf7e-4112-8614-19c4f3ed3e63/garima.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/0d95e76d-bf7e-4112-8614-19c4f3ed3e63/garima.mp4","fileName":"garima.mp4","height":1080,"width":1920,"videoDuration":64.4,"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","creationDate":"2022-11-28T11:23:01.929Z","modificationDate":"2022-11-28T11:23:01.929Z"}]}]'),campaignsPaused:JSON.parse('[{"_id":"05b4b65e-c402-4a38-81d7-406260a7333b","campaignType":2,"formats":[{"deviceType":1,"formatType":1,"position":0,"openByDefault":true,"title":"News 8 Interview","cta":{"text":"Book Appointment","textColor":"#FFFFFF","value":"https://www.tysons-dental.com/contact/","buttonColor":"#0C96D0","ctaType":0}}],"segmentation":{"trigger":{"type":3,"option":5},"viewRestriction":{"maxView":1,"notShownTime":1},"url":[{"comparison":"contains","string":"https://www.tysons-dental.com/teeth-whitening/"}],"urls":[{"comparaisonType":2,"string":"https://www.tysons-dental.com/teeth-whitening/"}]},"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","video":{"type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","fileName":"Dental Implants Service in Vienna Va.mp4","height":720,"width":1264,"videoDuration":320.9,"sizeInMB":44},"order":0,"stateFlag":0,"startDate":"2021-03-03T16:19:02.217Z","name":"Tysons News 8","creationDate":"2021-03-03T16:19:02.486Z","modificationDate":"2022-11-28T10:24:55.129Z","hasEverBeenStarted":true,"videos":[{"videoId":"f89d4781-22ca-4c4c-84b4-eaf710fb89cb","cta":{"text":"Book Appointment","textColor":"#FFFFFF","value":"https://www.tysons-dental.com/contact/","buttonColor":"#0C96D0","ctaType":0},"_id":"f89d4781-22ca-4c4c-84b4-eaf710fb89cb","type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","fileName":"Dental Implants Service in Vienna Va.mp4","height":720,"width":1264,"videoDuration":320.9,"sizeInMB":44,"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","creationDate":"2022-11-28T10:24:55.064Z","modificationDate":"2022-11-28T10:24:55.064Z"}]},{"_id":"d8030752-cb2c-49d5-93a9-7e3164dd0f14","campaignType":2,"formats":[{"deviceType":1,"formatType":1,"position":0,"openByDefault":true,"title":"News 8 Interview","cta":{"text":"Book Appointment","textColor":"#FFFFFF","value":"https://www.fairfaxadvanceddentistry.com/contact-us/","buttonColor":"#0C96D0","ctaType":0}}],"segmentation":{"trigger":{"type":3,"option":5},"viewRestriction":{"maxView":50,"notShownTime":1},"url":[{"comparison":"contains","string":"fairfaxadvanceddentistry.com"}],"urls":[{"comparaisonType":2,"string":"fairfaxadvanceddentistry.com"}]},"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","video":{"type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","fileName":"Dental Implants Service in Vienna Va.mp4","height":720,"width":1264,"videoDuration":320.9,"sizeInMB":44},"order":0,"stateFlag":0,"startDate":"2021-03-03T16:19:02.217Z","name":"Fairfax News 8","hasEverBeenStarted":true,"creationDate":"2021-03-03T17:02:29.926Z","modificationDate":"2022-11-28T10:24:55.686Z","videos":[{"videoId":"fef1caf1-be17-4b82-a5ec-4bb124640bda","cta":{"text":"Book Appointment","textColor":"#FFFFFF","value":"https://www.fairfaxadvanceddentistry.com/contact-us/","buttonColor":"#0C96D0","ctaType":0},"_id":"fef1caf1-be17-4b82-a5ec-4bb124640bda","type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","fileName":"Dental Implants Service in Vienna Va.mp4","height":720,"width":1264,"videoDuration":320.9,"sizeInMB":44,"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","creationDate":"2022-11-28T10:24:55.631Z","modificationDate":"2022-11-28T10:24:55.631Z"}]},{"_id":"666300ad-bd6b-4e29-b44f-3e78aef4a525","campaignType":2,"formats":[{"deviceType":1,"formatType":1,"position":0,"openByDefault":true,"title":"News 8 Interview","cta":{"text":"Book Appointment","textColor":"#FFFFFF","value":"https://www.fairfaxadvanceddentistry.com/contact-us/","buttonColor":"#0C96D0","ctaType":0}}],"segmentation":{"trigger":{"type":3,"option":5},"viewRestriction":{"maxView":50,"notShownTime":1},"url":[{"comparison":"contains","string":"topimplantdentistry.com/tysons-dental-implants/"}],"urls":[{"comparaisonType":2,"string":"topimplantdentistry.com/tysons-dental-implants/"}]},"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","video":{"type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","fileName":"Dental Implants Service in Vienna Va.mp4","height":720,"width":1264,"videoDuration":320.9,"sizeInMB":44},"order":0,"stateFlag":0,"startDate":"2021-03-03T16:19:02.217Z","name":"Tysons LP","hasEverBeenStarted":true,"creationDate":"2021-03-03T17:06:44.937Z","modificationDate":"2022-11-28T10:24:56.238Z","videos":[{"videoId":"ebca8c6d-395b-4635-bbcc-6bbbd20f9f99","cta":{"text":"Book Appointment","textColor":"#FFFFFF","value":"https://www.fairfaxadvanceddentistry.com/contact-us/","buttonColor":"#0C96D0","ctaType":0},"_id":"ebca8c6d-395b-4635-bbcc-6bbbd20f9f99","type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","fileName":"Dental Implants Service in Vienna Va.mp4","height":720,"width":1264,"videoDuration":320.9,"sizeInMB":44,"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","creationDate":"2022-11-28T10:24:56.184Z","modificationDate":"2022-11-28T10:24:56.184Z"}]},{"_id":"c634d120-a4bb-4216-acd3-e4280c66d5b4","campaignType":2,"formats":[{"deviceType":1,"formatType":1,"position":0,"openByDefault":true,"title":"News 8 Interview","cta":{"text":"Book Appointment","textColor":"#FFFFFF","value":"https://www.fairfaxadvanceddentistry.com/contact-us/","buttonColor":"#0C96D0","ctaType":0}}],"segmentation":{"trigger":{"type":3,"option":5},"viewRestriction":{"maxView":50,"notShownTime":1},"url":[{"comparison":"contains","string":"get.topimplantdentistry.com/fairfax-dental-implants/"}],"urls":[{"comparaisonType":2,"string":"get.topimplantdentistry.com/fairfax-dental-implants/"}]},"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","video":{"type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","fileName":"Dental Implants Service in Vienna Va.mp4","height":720,"width":1264,"videoDuration":320.9,"sizeInMB":44},"order":0,"stateFlag":0,"startDate":"2021-03-03T16:19:02.217Z","name":"Fairfax LP","hasEverBeenStarted":true,"creationDate":"2021-03-03T17:07:40.339Z","modificationDate":"2022-11-28T10:24:56.661Z","videos":[{"videoId":"9f5f7ac1-eec4-4092-a7b1-96b78ba97138","cta":{"text":"Book Appointment","textColor":"#FFFFFF","value":"https://www.fairfaxadvanceddentistry.com/contact-us/","buttonColor":"#0C96D0","ctaType":0},"_id":"9f5f7ac1-eec4-4092-a7b1-96b78ba97138","type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/05b4b65e-c402-4a38-81d7-406260a7333b/dental_implants_service_in_vienna_va_mp4","fileName":"Dental Implants Service in Vienna Va.mp4","height":720,"width":1264,"videoDuration":320.9,"sizeInMB":44,"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","creationDate":"2022-11-28T10:24:56.605Z","modificationDate":"2022-11-28T10:24:56.605Z"}]},{"_id":"4ad78552-a31d-4984-864d-afae2640a2d2","campaignType":2,"formats":[{"cta":{"text":"BOOK APPOINTMENT","textColor":"#FFFFFF","value":"https://get.topimplantdentistry.com/advanced-dental-implants-leesburg/#lp-pom-box-148","buttonColor":"#0F99B6","ctaType":0},"deviceType":1,"formatType":1,"position":0,"openByDefault":true,"title":"NEWS 8 INTERVIEW"},{"cta":{"text":"BOOK APPOINTMENT","textColor":"#FFFFFF","value":"https://get.topimplantdentistry.com/advanced-dental-implants-leesburg/#lp-pom-box-148","buttonColor":"#0F99B6","ctaType":0},"deviceType":0,"formatType":1,"position":0,"openByDefault":true,"title":"NEWS 8 INTERVIEW"}],"segmentation":{"trigger":{"type":3,"option":5},"viewRestriction":{"maxView":50,"notShownTime":1},"url":[{"comparison":"eq","string":"featureddentist.com"}],"urls":[{"comparaisonType":0,"string":"featureddentist.com"}]},"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","video":{"type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/4ad78552-a31d-4984-864d-afae2640a2d2/test_top_dentist.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/4ad78552-a31d-4984-864d-afae2640a2d2/test_top_dentist.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/4ad78552-a31d-4984-864d-afae2640a2d2/test_top_dentist.mp4","fileName":"test_top_dentist.mp4","height":1080,"width":1920,"videoDuration":35.5},"order":8,"stateFlag":0,"startDate":"2021-03-03T16:19:02.217Z","name":"Top W Dentist","hasEverBeenStarted":true,"creationDate":"2021-05-28T18:23:10.352Z","modificationDate":"2022-11-28T11:21:22.162Z","videos":[{"videoId":"726fc9c0-74c9-491b-b0ef-7bb4a89aa758","cta":{"text":"BOOK APPOINTMENT","textColor":"#FFFFFF","value":"https://get.topimplantdentistry.com/advanced-dental-implants-leesburg/#lp-pom-box-148","buttonColor":"#0F99B6","ctaType":0},"_id":"726fc9c0-74c9-491b-b0ef-7bb4a89aa758","type":1,"url":"https://video.vidjet.io/e881be82-6362-44da-bee6-6532ecc12f46/4ad78552-a31d-4984-864d-afae2640a2d2/test_top_dentist.mp4-compressed.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/e881be82-6362-44da-bee6-6532ecc12f46/4ad78552-a31d-4984-864d-afae2640a2d2/test_top_dentist.mp4","key":"e881be82-6362-44da-bee6-6532ecc12f46/4ad78552-a31d-4984-864d-afae2640a2d2/test_top_dentist.mp4","fileName":"test_top_dentist.mp4","height":1080,"width":1920,"videoDuration":35.5,"siteId":"e881be82-6362-44da-bee6-6532ecc12f46","creationDate":"2022-11-28T11:21:22.108Z","modificationDate":"2022-11-28T11:21:22.108Z"}]}]'),site:JSON.parse('{"integration":"manual","_id":"e881be82-6362-44da-bee6-6532ecc12f46","websiteUrl":"https://www.tysons-dental.com","isLocked":true,"showWatermark":false}'),playerUrl:JSON.parse('"https://player.vidjet.io"'),backendUrl:JSON.parse('"https://app-api.vidjet.io"')},n=!1,o=!1,d=window.location.search,s=new URLSearchParams(d),r=Boolean(_getCookie("vidjet-preview")),c=_getCookie("vidjet-campaignId");n=r;var l=!1,p=!1,m=[],u={},f=!1,v=!1,b=120;const h={width:40,height:40};let g=0;const y=_getCookie("vidjet-sessionId");var w=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",w,1);var _={url:location.href,sessionId:w};"product"===window?.ShopifyAnalytics?.meta?.page?.resourceType&&(_.productId=ShopifyAnalytics.meta.page.resourceId);var T={landing:0,exit:1,scroll:2,delay:3},x={mobile:0,desktop:1};_sendAnalyticsToIframes(),window.addEventListener("message",(e=>{"vidjet"===e.data.messageOrigin&&_reactToPlayerEvent(e,!1)}),!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,j=[{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(!(I=a.site,0===Object.keys(I).length&&I.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(j){const e="prestashop"===j.integration?window.vidjetPreastshopCartId:_getCookie(j.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:n,giantDesktop:o}={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}},d=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),s=function({height:e,width:t}){return e/t>.9&&e/t<1.2?"square":e>t?"portrait":"landscape"}(e);switch(!0){case d<=480:return d*t[s];case d<=768:return d*i[s];case d<=1024:return d*a[s];case d<=1680:return d*n[s];default:return d*o[s]}}(t);const n=e.hideBubble||i,o=f?0:30,d=n?0:b||120,{width:s,height:r}=t;return iframeHeight=r/(s/a)+o+d,{iframeWidth:a,iframeHeight:iframeHeight}}function _setBubbleSize(){if(b=b||90,"original"===e.bubbleShape){const{width:e,height:t}=u,i=e/t;return i<1?{width:b,height:b/i}:{width:b*i,height:b}}return{width:b,height:b}}function _limitOffset(e){const{height:t,width:i}=u;if(0===e.moveX&&0===e.moveY)return{offsetX:0,offsetY:0};const{iframeWidth:a,iframeHeight:n}=v?_setIframeSize({width:i,height:t}):_setBubbleSize(),o=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)-20,d=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)-20;let{moveX:s,moveY:r}=e;const c=r+n,l=s+a;return c>o&&(r-=c-o),l>d&&(s-=l-d),{offsetX:s,offsetY:r}}function _addElement(t,i,a,n,o,d){if(e.isStickyBar)return _sendEvent("display"),function(t,i,a,n,o,d){const s=document.createElement("div"),{backgroundColor:r,textColor:c,text:l}=e.stickyBarOptions,{moveY:p}=n;s.classList.add("vidjet-stickyBar"),s.id="vidjet-stickybar",s.style["background-color"]=r,p&&(s.style.bottom=`${p||20}px`),s.innerHTML=`\n
\n
\n \n ${l}\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,a,n,o)})),document.getElementById("vidjet-stickybar-close").addEventListener("click",(function(){s.classList.add("vidjet-hidden")}))}(t,i,a,n,o);_addIframe(t,i,a,n,o)}function _addIframe(t,n,o,d,s,r){const{campaignType:c}=t||{},{offsetX:l,offsetY:p}=_limitOffset(d);if(!document.querySelectorAll(".vidjet-iframe").length){let t=document.createElement("iframe");var m=`${a.playerUrl}/${n}/${o}`,v=new URL(m);const d="popup"===c;v.searchParams.set("sessionId",w),v.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 r=10;if(t.style.bottom=d?0:p?`${p}px`:`${r}px`,t.style.display="block",f&&(t.style.borderRadius="10px"),"right"!==c||d?"left"!==c||d?d?t.classList.add("vidjet-popup"):t.style.left=l?`${l}px`:0:t.style.left=l?`${l}px`:`${r}px`:t.style.right=l?`${l}px`:`${r}px`,t.style.zIndex="4815162342","3b552290-2fcf-4b40-84bb-eb6c0118d821"===n?t.style.zIndex="2147483646":"4eb27fa9-2ff9-4c62-8a74-184ded24bb80"===n&&(t.style.zIndex="29"),t.src=v.toString(),!d)if(s&&!e.isFullScreen){const{iframeWidth:e,iframeHeight:i}=_setIframeSize(u);t.style.width=`${e}px`,t.style.height=`${i}px`}else{const{width:e,height:i}=_setBubbleSize();t.style.width=`${e+h.width}px`,t.style.height=`${i+h.height}px`}if(_isWarmangoProductCampaign(n,o))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)}}function _handleAddToCartEvent(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)}}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 _reactToPlayerEvent(i,n){const{origin:o,properties:d}=i&&i.data,s=document.querySelector(".vidjet-iframe")||document.querySelector(".vidjet-embed-iframe");if(s)if(n||"closeMainPlayer"!==o)if(n||"openMainPlayer"!==o){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)_handleAddToCartEvent(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:_};s.contentWindow.postMessage(e,"*")}else if("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();else if("closeFullScreen"===o)!function(){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"}))}();else if("carouselHeight"===o){_targetCarousels(d.campaignId).forEach((e=>{e.parentElement.style.height=`calc(${d.carouselHeight}px + 32px)`,e.parentElement.style.paddingBottom="0"}))}}else if(v=!0,f&&(u={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(a.site._id,t._id))return s.style.width="auto",void(s.style.height="100%");const{iframeWidth:e,iframeHeight:i}=_setIframeSize(u);s.style.width=`${e}px`,s.style.height=`${i}px`}else{if(d&&d.currentVideoId&&"original"===e.bubbleShape){const e=m.find((e=>e._id===d.currentVideoId));u={height:e.height,width:e.width}}if(v=!1,setTimeout((()=>{const{width:e,height:t}=_setBubbleSize();s.style.width=`${e+h.width}px`,s.style.height=`${t+h.height}px`}),500),e.isFullScreen){document.querySelectorAll(".vidjet-body").forEach((e=>e.classList.remove("vidjet-body"))),s.classList.remove("vidjet-fullscreen"),window.scrollTo(0,g);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`)}}}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 n=new Date;n.setTime(n.getTime()+60*i*60*1e3),a="; expires="+n.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?(f=!0,u={width:1080,height:1920}):u={width:a.videos[0].width,height:a.videos[0].height},v=e.openByDefault&&!e.isFullScreen);const{moveX:y,moveY:w,bubbleSize:_}=e||{},x={siteId:h,_id:g,videoOriginalSize:u,moveX:y,moveY:w,isPlayerOpen:v,bubbleSize:_};b=_,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===d||n?_addElement(_decryptParams(e),h,g,{moveX:y,moveY:w},v):a.segmentation.trigger.type===s?(document.addEventListener("mouseout",(e=>{_onExitIntent(e,x)})),i&&document.addEventListener("scroll",(e=>{_onExitIntent(e,x)}))):a.segmentation.trigger.type===r?window.addEventListener("scroll",(function(t){l||(window.requestAnimationFrame((function(){!function(t,i){let a=document.documentElement,n=document.body,o="scrollTop",d="scrollHeight",s=(a[o]||n[o])/((a[d]||n[d])-a.clientHeight)*100;const{siteId:r,_id:c,moveX:l,moveY:m,isPlayerOpen:u,bubbleSize:f}=i;s>=t.segmentation.trigger.option&&!p&&(_addElement(_decryptParams(e),r,c,{moveX:l,moveY:m},u),p=!0)}(a,x),l=!1})),l=!0)}),!0):a.segmentation.trigger.type===c&&setTimeout((()=>{_addElement(_decryptParams(e),h,g,{moveX:y,moveY:w},v)}),1e3*(a.segmentation.trigger.option||10))}let F=0;const _onExitIntent=(t,i)=>{const{siteId:a,_id:n,moveX:o,moveY:d,isPlayerOpen:s,bubbleSize:r}=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,n,{moveX:o,moveY:d},s);else if("scroll"==t.type){let t=window.pageYOffset||document.documentElement.scrollTop;t+50{console.log(e,"removed")})),_addElement(_decryptParams(e),a,n,{moveX:o,moveY:d},s)),F=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,n=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 [",n,"]:",this.status,"with message [",this.statusText,"]")},a.open("POST",n,!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:_},i=e.filter((e=>e));i.length>0&&i.forEach((e=>{e.contentWindow.postMessage(t,"*")}))}function _sendEvent(e,o){if(n)return;const d={siteId:a.site._id,campaignId:t&&t._id,sessionId:w,type:e,date:(new Date).toISOString(),device:i?"mobile":"desktop",params:o};if("cartCreated"===e){const e=_getCookie("vidjet_cart_id");e&&(d.cartId=e)}_makeRequest("/track-event",d,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 n=function(e){const t=e.bulk.find(_matchBulkCriteria);return t}(t);if(!n)return;document.getElementsByClassName("magic-slide mt-active")[0].insertAdjacentHTML("afterend",'');const o=document.getElementsByClassName("magictoolbox-selector mz-thumb");for(let t of o)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 d=document.createElement("a");d.innerHTML=`Audemars Piguet Royal Oak - 14img-1`,d.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(d.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(_.productId)&&_matchUrlSegmentation(e.segmentation.url):e.segmentation?.productId?e.segmentation.productId.includes(_.productId):!!_.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===x.mobile)):t.formats.find((e=>e.deviceType===x.desktop)),a)return!0;if(!e)return!1;if(!n){const e=_getCookie(`vidjet_timing_${t._id}`);if(e&&(new Date).getTime(){"vidjet"===e.data.messageOrigin&&_reactToPlayerEvent(e,"popup"===t)}),!1),!i&&_addResizeListener()}return{init:function(){_addVideoInImageGallery(),a.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"===(s.has("vidjet")&&s.get("vidjet"))&&s.has("campaignId"),{isLocked:t}=a.site,o=a.campaignsActivated.length;if(e){const e=a.campaignsPaused.find((e=>e._id===s.get("campaignId")));e?(n=!0,!i&&_displayLaunchPopup(e._id),_matchSegmentation(e,!0)&&_displayIframeBasedOnTrigger(e),_setCookie("vidjet-preview",!0,1),_setCookie("vidjet-campaignId",s.get("campaignId"),1)):(_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId"))}else if(r){const e=a.campaignsPaused.find((e=>e._id===c));e?(!i&&_displayLaunchPopup(e._id),_matchSegmentation(e,!0)&&_displayIframeBasedOnTrigger(e)):(_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId"))}else{if(t||!o)return;for(const e of a.campaignsActivated)if(_matchSegmentation(e)){_displayIframeBasedOnTrigger(e);break}}}(),_attachIframeEventsAndResizeListener()},showCampaign:function(t,n){const d=a.campaignsActivated.find((e=>e._id==t));if(!d)return console.error(`Invalid campaign id for ${t}`);if(e=i?d.formats.find((e=>e.deviceType===x.mobile)):d.formats.find((e=>e.deviceType===x.desktop)),n)_destroyIframe(),o=!1,l=!1,p=!1,_displayIframeBasedOnTrigger(d),_attachIframeEventsAndResizeListener();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.');o=!1,l=!1,p=!1,_displayIframeBasedOnTrigger(d),_attachIframeEventsAndResizeListener()}},initSpa:function(){const e=this;let t=location.href;setInterval((function(){t!=location.href&&(console.log("VIDJET: page change detected"),_destroyIframe(),o=!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()}));