var getRandomValues,vidjetDisplayLaunchPopup=e=>{{const t=`\n
\n `,i="\n @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');\n .vidjet-preview-launch-popup {\n font-family: 'Montserrat', sans-serif;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n background-color: white;\n position: fixed;\n left: 0;\n top: 0;\n margin: 10px;\n z-index: 9999999999999;\n box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.12);\n border-radius: 10px;\n text-align: center;\n padding: 30px 90px;\n max-width: 500px;\n }\n\n .vidjet-wrapper {\n width: 100%;\n }\n\n\n .vidjet-preview-launch-text {\n\n }\n\n .vidjet-preview-launch-text h1 {\n font: inherit;\n font-weight: 600;\n font-size: 20px !important;\n line-height: 24px;\n color: #585858;\n }\n .vidjet-preview-launch-text h1 strong {\n font-weight: 800;\n }\n\n .vidjet-preview-launch-button {\n color: #585858;\n font-weight: 500;\n font-size: 14px;\n line-height: 17px;\n padding: 10px 20px;\n background: white;\n box-shadow: 2px 2px 15px rgba(141, 22, 193, 0.25);\n border-radius: 20px;\n border: none;\n cursor: pointer;\n text-decoration: none;\n }\n\n .vidjet-preview-launch-button:hover {\n background: #FAE8FF;\n }\n ",a=document.createElement("style");a.innerHTML=i,document.body.appendChild(a);const o=document.createElement("div");o.classList.add("vidjet-wrapper"),o.innerHTML=t,document.body.appendChild(o);document.getElementById("vidjet-launch-campaign-button-popup").addEventListener("click",(()=>{_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId")}))}},rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(e){return"string"==typeof e&®EX.test(e)}function stringify(e){var t=[];for(let e=0;e<256;++e)t.push((e+256).toString(16).substr(1));var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(t[e[i+0]]+t[e[i+1]]+t[e[i+2]]+t[e[i+3]]+"-"+t[e[i+4]]+t[e[i+5]]+"-"+t[e[i+6]]+t[e[i+7]]+"-"+t[e[i+8]]+t[e[i+9]]+"-"+t[e[i+10]]+t[e[i+11]]+t[e[i+12]]+t[e[i+13]]+t[e[i+14]]+t[e[i+15]]).toLowerCase();if(!validate(a))throw TypeError("Stringified UUID is invalid");return a}var Vidjet=function(){var e,t,i=/(tablet|ipad|playbook|silk|kindle)/i.test(navigator.userAgent)||/(android(?!.*mobi))|Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|(hpw|web)OS|Opera M(obi|ini)/i.test(navigator.userAgent),a={campaignsActivated:JSON.parse("[]"),campaignsPaused:JSON.parse('[{"_id":"c75a6adb-5e0f-493a-acec-02c65992e365","name":"TXQ LUKE EP6","videos":[{"videoId":"542c05cf-b10c-4a49-be68-1430a4274fef","cta":{"textColor":"#000000","buttonColor":"#000000","ctaType":3,"ctaAction":"buyNow","productIds":["288916c1-02b8-4728-b951-00517b3b25af"],"products":[{"_id":"288916c1-02b8-4728-b951-00517b3b25af","productId":8135322632491,"name":"Luke Skywalker EP6 Lichtschwert Base Lit Lichtschwert für schwere Duelle","productUrl":"https://artsabers-de.myshopify.com/products/luke-skywalker-ep6-lightsaber-base-lit-lightsaber-for-heavy-dueling","status":"active","imageUrl":"https://cdn.shopify.com/s/files/1/0725/3121/4635/products/MG_5203_7e3fb1be-c236-44f2-89b5-5d6222a1a0f1.jpg?v=1676389660","options":[{"name":"Klinge Länge","values":["92cm(36")","82cm(32")"],"position":1},{"name":"Elektronik","values":["RGB-Basisbeleuchtung (für schwere Duelle)","SN-Neopixel"],"position":2}],"variants":[{"price":249,"id":44549296357675,"name":"92cm(36") / RGB-Basisbeleuchtung (für schwere Duelle)","imageUrl":"https://cdn.shopify.com/s/files/1/0725/3121/4635/products/MG_5203_7e3fb1be-c236-44f2-89b5-5d6222a1a0f1.jpg?v=1676389660","qty":991,"sellWithoutStock":false},{"price":299,"id":44549296390443,"name":"92cm(36") / SN-Neopixel","imageUrl":"https://cdn.shopify.com/s/files/1/0725/3121/4635/products/MG_5203_7e3fb1be-c236-44f2-89b5-5d6222a1a0f1.jpg?v=1676389660","qty":990,"sellWithoutStock":false},{"price":249,"id":44549296423211,"name":"82cm(32") / RGB-Basisbeleuchtung (für schwere Duelle)","imageUrl":"https://cdn.shopify.com/s/files/1/0725/3121/4635/products/MG_5203_7e3fb1be-c236-44f2-89b5-5d6222a1a0f1.jpg?v=1676389660","qty":996,"sellWithoutStock":false},{"price":299,"id":44549296455979,"name":"82cm(32") / SN-Neopixel","imageUrl":"https://cdn.shopify.com/s/files/1/0725/3121/4635/products/MG_5203_7e3fb1be-c236-44f2-89b5-5d6222a1a0f1.jpg?v=1676389660","qty":997,"sellWithoutStock":false}],"siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","creationDate":"2023-03-08T12:21:13.318Z","modificationDate":"2023-03-08T12:21:13.318Z"}]},"_id":"542c05cf-b10c-4a49-be68-1430a4274fef","siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","url":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/542c05cf-b10c-4a49-be68-1430a4274fef/luke_skywalker_lightsaber.mp4-compressed.mp4","height":360,"width":640,"videoDuration":29.6,"fileName":"Luke Skywalker Lightsaber.mp4","creationDate":"2023-03-08T12:30:00.651Z","modificationDate":"2023-03-08T12:30:30.764Z","key":"ccc46e14-df55-441e-8a5a-339ebed5b713/542c05cf-b10c-4a49-be68-1430a4274fef/luke_skywalker_lightsaber.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/ccc46e14-df55-441e-8a5a-339ebed5b713/542c05cf-b10c-4a49-be68-1430a4274fef/luke_skywalker_lightsaber.mp4","streamingUrl":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/542c05cf-b10c-4a49-be68-1430a4274fef/luke_skywalker_lightsaber.mp4.m3u8"}],"formats":[{"deviceType":1,"autoLoop":false,"autoplay":true,"hidePlayPause":true,"hideControlBar":true,"title":"","formatType":2,"responsive":true,"embedSize":{"height":0,"width":0}}],"siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","order":1,"stateFlag":0,"creationDate":"2023-03-08T12:32:04.411Z","modificationDate":"2023-03-08T13:34:03.613Z"},{"_id":"27b3fc1b-4984-49e6-9de6-f64434849370","name":"TXQ OBI WAN EP1","videos":[{"videoId":"88b2c2f5-234c-47e2-b482-029c26388a20","_id":"88b2c2f5-234c-47e2-b482-029c26388a20","siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","url":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/88b2c2f5-234c-47e2-b482-029c26388a20/obiwan_lightsaber_ep1.mp4-compressed.mp4","height":360,"width":640,"videoDuration":23.9,"fileName":"Obiwan Lightsaber EP1.mp4","creationDate":"2023-03-08T12:57:47.518Z","modificationDate":"2023-03-08T12:58:16.964Z","key":"ccc46e14-df55-441e-8a5a-339ebed5b713/88b2c2f5-234c-47e2-b482-029c26388a20/obiwan_lightsaber_ep1.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/ccc46e14-df55-441e-8a5a-339ebed5b713/88b2c2f5-234c-47e2-b482-029c26388a20/obiwan_lightsaber_ep1.mp4","streamingUrl":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/88b2c2f5-234c-47e2-b482-029c26388a20/obiwan_lightsaber_ep1.mp4.m3u8"}],"formats":[{"deviceType":1,"autoLoop":true,"autoplay":true,"hidePlayPause":false,"hideControlBar":true,"title":"OBI WAN EP1 LICHTSCHWERT","formatType":2,"responsive":true,"embedSize":{"height":0,"width":0}}],"siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","order":1,"stateFlag":0,"creationDate":"2023-03-08T13:03:09.722Z","modificationDate":"2023-03-08T13:03:24.546Z"},{"_id":"63959e78-2fca-4558-8a77-aa256dba9e04","name":"TXQ ANAKIN EP3","videos":[{"videoId":"4fe471ae-40af-4c3d-90a7-6c9b52fe277f","cta":{"textColor":"#000000","buttonColor":"#00C4FF","ctaType":3,"ctaAction":"buyNow","productIds":["78565b31-7d2c-4a43-aeb6-1355e1f061c1"],"products":[{"_id":"78565b31-7d2c-4a43-aeb6-1355e1f061c1","productId":8135335280939,"name":"Anakin Skywalker EP3 Lichtschwert Neopixel Lichtschwert Proffie 2.2 oder SN-Neopixel","productUrl":"https://artsabers-de.myshopify.com/products/anakin-skywalker-ep3-lightsaber","status":"active","imageUrl":"https://cdn.shopify.com/s/files/1/0725/3121/4635/products/MG_2567.jpg?v=1676391123","options":[{"name":"Klinge Länge","values":["92cm(36")","82cm(32")"],"position":1},{"name":"Elektronik","values":["SN-Neopixel","Proffie 2.2"],"position":2}],"variants":[{"price":499,"id":44549363007787,"name":"92cm(36") / SN-Neopixel","imageUrl":"https://cdn.shopify.com/s/files/1/0725/3121/4635/products/MG_2567.jpg?v=1676391123","qty":1752,"sellWithoutStock":false},{"price":649,"id":44549363040555,"name":"92cm(36") / Proffie 2.2","imageUrl":"https://cdn.shopify.com/s/files/1/0725/3121/4635/products/MG_2567.jpg?v=1676391123","qty":48,"sellWithoutStock":false},{"price":499,"id":44549363073323,"name":"82cm(32") / SN-Neopixel","imageUrl":"https://cdn.shopify.com/s/files/1/0725/3121/4635/products/MG_2567.jpg?v=1676391123","qty":1946,"sellWithoutStock":false},{"price":649,"id":44549363106091,"name":"82cm(32") / Proffie 2.2","imageUrl":"https://cdn.shopify.com/s/files/1/0725/3121/4635/products/MG_2567.jpg?v=1676391123","qty":50,"sellWithoutStock":false}],"siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","creationDate":"2023-03-08T12:21:12.762Z","modificationDate":"2023-03-08T12:21:12.762Z"}]},"_id":"4fe471ae-40af-4c3d-90a7-6c9b52fe277f","siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","url":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/4fe471ae-40af-4c3d-90a7-6c9b52fe277f/anakin_ep3_lightsaber.mp4-compressed.mp4","height":360,"width":640,"videoDuration":32.3,"fileName":"Anakin EP3 Lightsaber.mp4","creationDate":"2023-03-08T13:14:35.257Z","modificationDate":"2023-03-08T13:15:04.912Z","key":"ccc46e14-df55-441e-8a5a-339ebed5b713/4fe471ae-40af-4c3d-90a7-6c9b52fe277f/anakin_ep3_lightsaber.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/ccc46e14-df55-441e-8a5a-339ebed5b713/4fe471ae-40af-4c3d-90a7-6c9b52fe277f/anakin_ep3_lightsaber.mp4","streamingUrl":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/4fe471ae-40af-4c3d-90a7-6c9b52fe277f/anakin_ep3_lightsaber.mp4.m3u8"}],"formats":[{"deviceType":1,"autoLoop":true,"autoplay":true,"hidePlayPause":true,"hideControlBar":true,"title":"ANAKIN EP3 LICHTSCHWERT","formatType":2,"responsive":true,"embedSize":{"height":0,"width":0}}],"siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","order":2,"stateFlag":0,"creationDate":"2023-03-08T13:19:07.716Z","modificationDate":"2023-03-08T13:19:26.529Z"},{"_id":"058fe4fb-186b-487e-a346-34b17a70ea00","name":"TXQ CAL EP4 ","videos":[{"videoId":"8bc58051-ba93-4ed7-90ce-822aa34b91b7","_id":"8bc58051-ba93-4ed7-90ce-822aa34b91b7","siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","url":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/8bc58051-ba93-4ed7-90ce-822aa34b91b7/cal_kestis_ep4_lightsaber.mp4-compressed.mp4","height":360,"width":640,"videoDuration":26.1,"fileName":"Cal KESTIS EP4 Lightsaber.mp4","creationDate":"2023-03-08T13:34:22.536Z","modificationDate":"2023-03-08T13:34:54.041Z","key":"ccc46e14-df55-441e-8a5a-339ebed5b713/8bc58051-ba93-4ed7-90ce-822aa34b91b7/cal_kestis_ep4_lightsaber.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/ccc46e14-df55-441e-8a5a-339ebed5b713/8bc58051-ba93-4ed7-90ce-822aa34b91b7/cal_kestis_ep4_lightsaber.mp4","streamingUrl":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/8bc58051-ba93-4ed7-90ce-822aa34b91b7/cal_kestis_ep4_lightsaber.mp4.m3u8"}],"formats":[{"deviceType":1,"autoLoop":true,"autoplay":true,"hidePlayPause":true,"hideControlBar":true,"title":"CAL KESTIS EP4 LICHTSCHWERT","formatType":2,"responsive":true,"embedSize":{"height":0,"width":0}}],"siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","order":3,"stateFlag":0,"creationDate":"2023-03-08T13:34:58.191Z","modificationDate":"2023-03-08T13:35:12.151Z"},{"_id":"830f4bcf-60fe-49e9-a62f-3d45a37e830c","name":"TXQ MAUL","videos":[{"videoId":"63bf4e13-acb4-49bc-ad18-af9a333f4bf7","_id":"63bf4e13-acb4-49bc-ad18-af9a333f4bf7","siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","url":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/63bf4e13-acb4-49bc-ad18-af9a333f4bf7/darth_maul_lightsaber.mp4-compressed.mp4","height":360,"width":640,"videoDuration":21.5,"fileName":"Darth maul Lightsaber.mp4","creationDate":"2023-03-08T13:43:08.671Z","modificationDate":"2023-03-08T13:43:35.153Z","key":"ccc46e14-df55-441e-8a5a-339ebed5b713/63bf4e13-acb4-49bc-ad18-af9a333f4bf7/darth_maul_lightsaber.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/ccc46e14-df55-441e-8a5a-339ebed5b713/63bf4e13-acb4-49bc-ad18-af9a333f4bf7/darth_maul_lightsaber.mp4","streamingUrl":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/63bf4e13-acb4-49bc-ad18-af9a333f4bf7/darth_maul_lightsaber.mp4.m3u8"}],"formats":[{"deviceType":1,"autoLoop":true,"autoplay":true,"hidePlayPause":true,"hideControlBar":true,"title":"DARTH MAUL LICHTSCHWERT","formatType":2,"responsive":true,"embedSize":{"height":0,"width":0}}],"siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","order":4,"stateFlag":0,"creationDate":"2023-03-08T13:43:39.958Z","modificationDate":"2023-03-08T13:43:49.487Z"},{"_id":"5cad3b48-d2ab-4e1b-a864-32071f19263e","name":"TXQ VADER","videos":[{"videoId":"c02c2686-be4b-40c8-9ecd-172a834dd8f6","_id":"c02c2686-be4b-40c8-9ecd-172a834dd8f6","siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","url":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/c02c2686-be4b-40c8-9ecd-172a834dd8f6/darth_vader_ep5_lightsaber.mp4-compressed.mp4","height":360,"width":640,"videoDuration":28.7,"fileName":"Darth Vader EP5 LIGHTSABER.mp4","creationDate":"2023-03-08T13:52:50.922Z","modificationDate":"2023-03-08T13:53:21.983Z","key":"ccc46e14-df55-441e-8a5a-339ebed5b713/c02c2686-be4b-40c8-9ecd-172a834dd8f6/darth_vader_ep5_lightsaber.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/ccc46e14-df55-441e-8a5a-339ebed5b713/c02c2686-be4b-40c8-9ecd-172a834dd8f6/darth_vader_ep5_lightsaber.mp4","streamingUrl":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/c02c2686-be4b-40c8-9ecd-172a834dd8f6/darth_vader_ep5_lightsaber.mp4.m3u8"}],"formats":[{"deviceType":1,"autoLoop":true,"autoplay":true,"hidePlayPause":true,"hideControlBar":true,"title":"DARTH VADER LICHTSCHWERT","formatType":2,"responsive":true,"embedSize":{"height":0,"width":0}}],"siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","order":5,"stateFlag":0,"creationDate":"2023-03-08T13:53:12.137Z","modificationDate":"2023-03-08T13:53:22.219Z"},{"_id":"a5c6ae02-c4d1-4844-a7ac-ae424ceaec6a","name":"TXQ LEIA ","videos":[{"videoId":"9009c8d2-8ec2-4146-918c-43ed66c50327","_id":"9009c8d2-8ec2-4146-918c-43ed66c50327","siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","url":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/9009c8d2-8ec2-4146-918c-43ed66c50327/leia_lightsaber.mp4-compressed.mp4","height":360,"width":640,"videoDuration":23.7,"fileName":"Leia Lightsaber.mp4","creationDate":"2023-03-08T14:14:05.968Z","modificationDate":"2023-03-08T14:14:36.888Z","key":"ccc46e14-df55-441e-8a5a-339ebed5b713/9009c8d2-8ec2-4146-918c-43ed66c50327/leia_lightsaber.mp4","s3Path":"s3://video-compression-pipeline-source-czz220hqvww8/ccc46e14-df55-441e-8a5a-339ebed5b713/9009c8d2-8ec2-4146-918c-43ed66c50327/leia_lightsaber.mp4","streamingUrl":"https://video.vidjet.io/ccc46e14-df55-441e-8a5a-339ebed5b713/9009c8d2-8ec2-4146-918c-43ed66c50327/leia_lightsaber.mp4.m3u8"}],"formats":[{"deviceType":1,"autoLoop":true,"autoplay":true,"hidePlayPause":true,"hideControlBar":true,"title":"LEIA LICHTSCHWERT","formatType":2,"responsive":true,"embedSize":{"height":0,"width":0}}],"siteId":"ccc46e14-df55-441e-8a5a-339ebed5b713","order":6,"stateFlag":0,"creationDate":"2023-03-08T14:14:57.994Z","modificationDate":"2023-03-08T14:15:58.664Z"}]'),site:JSON.parse('{"integration":"shopify","_id":"ccc46e14-df55-441e-8a5a-339ebed5b713","websiteUrl":"https://www.artsabers.de","currency":"EUR","isLocked":false,"showWatermark":false}'),playerUrl:JSON.parse('"https://player.vidjet.io"'),backendUrl:JSON.parse('"https://app-api.vidjet.io"')},o=!1,n=!1,d=window.location.search,r=new URLSearchParams(d),s=Boolean(_getCookie("vidjet-preview")),c=_getCookie("vidjet-campaignId");o=s;var l=!1,m=!1,p=[],u={},f=!1,h=!1,g=120;const b={width:40,height:40};let v=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),"prestashop"===a.site?.integration&&(_.productId=window.id_product),"woocommerce"===a.site?.integration&&(_.productId=document.querySelector("[data-product_id]")?.getAttribute("data-product_id"));var k={landing:0,exit:1,scroll:2,delay:3},j={mobile:0,desktop:1};_sendAnalyticsToIframes(),window.addEventListener("message",(i=>{"vidjet"===i.data.messageOrigin&&function(i){const{origin:o,properties:n}=i&&i.data,d=document.querySelector(".vidjet-iframe")||document.querySelector(".vidjet-embed-iframe");if(d)if("closeMainPlayer"===o){if(n&&n.currentVideoId&&"original"===e.bubbleShape){const e=p.find((e=>e._id===n.currentVideoId));u={height:e.height,width:e.width}}if(h=!1,setTimeout((()=>{const{width:e,height:t}=_setBubbleSize();d.style.width=`${e+b.width}px`,d.style.height=`${t+b.height}px`}),500),e.isFullScreen){document.querySelectorAll(".vidjet-body").forEach((e=>e.classList.remove("vidjet-body"))),d.classList.remove("vidjet-fullscreen"),window.scrollTo(0,v);const t=10;d.style.bottom=e.moveY?`${e.moveY+t}px`:`${t}px`,d.style.display="block",1===e.position?(d.style.left="unset",d.style.right=e.moveX?`${e.moveX+t}px`:`${t}px`):0===e.position&&(d.style.right="unset",d.style.left=e.moveX?`${e.moveX+t}px`:`${t}px`)}}else if("openMainPlayer"===o)if(h=!0,f&&(u={width:1080,height:1920}),e.isFullScreen)d.style.height="100%",d.style.width="100%",d.style.bottom="0px",d.style.right="0px",d.style.left="0px",d.classList.add("vidjet-fullscreen"),_injectCssFullScreen();else{if(_isWarmangoProductCampaign(a.site._id,t._id))return d.style.width="auto",void(d.style.height="100%");const{iframeWidth:e,iframeHeight:i}=_setIframeSize(u);d.style.width=`${e}px`,d.style.height=`${i}px`}else if("destroyIframe"===o)setTimeout((()=>{_destroyIframe(),e?.isStickyBar&&document.getElementById("vidjet-stickybar")&&document.getElementById("vidjet-stickybar").classList.remove("vidjet-hidden")}),500);else if("getCartItems"===o)!async function(){const e=[document.querySelector(".vidjet-iframe"),...document.querySelectorAll(".vidjet-embed-iframe")],t={action:"sendCartItems",data:await _getCartItems()},i=e.filter((e=>e));i.length>0&&i.forEach((e=>{e.contentWindow.postMessage(t,"*")}))}();else if("addToCart"===o)!function(e){switch(a.site.integration){case"shopify":!function(e){let t={items:[{id:e.variantId,qty:e.qty||1}]};fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}(e);break;case"woocommerce":window.vidjetAddToCart(e),e.isBuyNow&&(window.location.href=window.vidjetcheckoutUrl);break;case"prestashop":!function(e){const t=window.prestashop&&prestashop.static_token,i=window.prestashop&&prestashop.urls?.pages?.cart||location.origin;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=>{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"===a.site._id){const e=[document.querySelector(".vidjet-iframe"),...document.querySelectorAll(".vidjet-embed-iframe")],t={action:"scriptCloseEvent"},i=e.filter((e=>e));i.length>0&&i.forEach((e=>{e.contentWindow.postMessage(t,"*")})),document.dispatchEvent(new CustomEvent("cart:refresh"));const a=document.querySelector("cart-drawer");a&&!a.hasAttribute("open")&&a.show(),document.dispatchEvent(new CustomEvent("cart:refresh"))}}(n);else if("killIframe"===o){const e=document.querySelector(`iframe[data-vidjet-campaign-id="${n.campaignId}"]`);e?.parentElement?.remove()}else if("getAnalytics"===o){const e={action:"getAnalytics",data:_};d.contentWindow.postMessage(e,"*")}else"openFullScreen"===o?(!function(e){const t=".vidjet-fullscreen { \n position: fixed !important; \n height: 100% !important; \n width: 100% !important; \n z-index: 2147483647; \n top: 0; \n right: 0; \n bottom: 0px; \n left: 0px; \n max-height: none !important; \n margin: 0 !important\n } ",i=document.createElement("style");i.innerText=t,document.head.appendChild(i),window.scrollY&&(v=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"}))}(n),_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,v),document.querySelectorAll(".vidjet-iframe").forEach((e=>{e.style.display="block"}))):"carouselHeight"===o?_targetCarousels(n.campaignId).forEach((e=>{e.parentElement.style.height=`calc(${n.carouselHeight}px + 32px)`,e.parentElement.style.paddingBottom="0"})):"bulkSegMatched"===o?_targetCarousels(n).forEach((e=>{"0"!==e.parentElement.style.height&&"0px"!==e.parentElement.style.height&&e.parentElement.style.height||(e.parentElement.style.height="100px")})):"youtubeThumbnailClicked"===o&&document.querySelector("#videos")?.scrollIntoView({behavior:"smooth"})}(i)}),!1),_sendEvent("pageView"),function(){let e=document.querySelector("style[data-vidjet]");if(e)return e.remove();{const e="";document.head.insertAdjacentHTML("beforeend",e)}}();var I,S=[{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(S){let e="prestashop"===S.integration?window.vidjetPreastshopCartId:_getCookie(S.cookieName);"shopify"===S?.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 a=function(e){const{mobile:t,tablet:i,desktop:a,bigDesktop:o,giantDesktop:n}={mobile:{square:.8,portrait:.65,landscape:.95},tablet:{square:.6,portrait:.3,landscape:.7},desktop:{square:.35,portrait:.25,landscape:.5},bigDesktop:{square:.3,portrait:.2,landscape:.4},giantDesktop:{square:.25,portrait:.2,landscape:.3}},d=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),r=function({height:e,width:t}){return e/t>.9&&e/t<1.2?"square":e>t?"portrait":"landscape"}(e);switch(!0){case d<=480:return d*t[r];case d<=768:return d*i[r];case d<=1024:return d*a[r];case d<=1680:return d*o[r];default:return d*n[r]}}(t);const o=e.hideBubble||i,n=f?0:30,d=o?0:g||120,{width:r,height:s}=t;return iframeHeight=s/(r/a)+n+d,{iframeWidth:a,iframeHeight:iframeHeight}}function _setBubbleSize(){if(g=g||90,"original"===e.bubbleShape){const{width:e,height:t}=u,i=e/t;return i<1?{width:g,height:g/i}:{width:g*i,height:g}}return{width:g,height:g}}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:o}=h?_setIframeSize({width:i,height:t}):_setBubbleSize(),n=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)-20,d=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)-20;let{moveX:r,moveY:s}=e;const c=s+o,l=r+a;return c>n&&(s-=c-n),l>d&&(r-=l-d),{offsetX:r,offsetY:s}}function _addElement(t,i,a,o,n,d){if(e.isStickyBar)return _sendEvent("display"),function(t,i,a,o,n){const d=document.createElement("div"),{backgroundColor:r,textColor:s,text:c}=e.stickyBarOptions,{moveY:l}=o;d.classList.add("vidjet-stickyBar"),d.id="vidjet-stickybar",d.style["background-color"]=r,l&&(d.style.bottom=`${l||20}px`),d.innerHTML=`\n \n
\n
![](https://vidjetvideostorage.s3.eu-west-1.amazonaws.com/Play+Icon+2.0+SVG.svg)
\n
${c}\n
\n
\n
![](https://vidjetvideostorage.s3.eu-west-1.amazonaws.com/Close+icon+Sticky+Play+Button.svg)
\n
\n
\n `,document.body.appendChild(d),document.getElementById("vidjet-stickybar-open-video").addEventListener("click",(function(){d.classList.add("vidjet-hidden"),_addIframe(t,i,a,o,n)})),document.getElementById("vidjet-stickybar-close").addEventListener("click",(function(){d.classList.add("vidjet-hidden")}))}(t,i,a,o,n);_addIframe(t,i,a,o,n)}function _addIframe(t,o,n,d,r,s){const{campaignType:c}=t||{},{offsetX:l,offsetY:m}=_limitOffset(d);if(!document.querySelectorAll(".vidjet-iframe").length){let t=document.createElement("iframe");var p=`${a.playerUrl}/${o}/${n}`,h=new URL(p);const d="popup"===c;h.searchParams.set("sessionId",w),h.searchParams.set("device",i?"mobile":"desktop"),h.searchParams.set("url",_.url),_.productId&&h.searchParams.set("productId",_.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=d?0:m?`${m}px`:`${s}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`:`${s}px`:t.style.right=l?`${l}px`:`${s}px`,t.style.zIndex="4815162342","3b552290-2fcf-4b40-84bb-eb6c0118d821"===o?t.style.zIndex="2147483646":"4eb27fa9-2ff9-4c62-8a74-184ded24bb80"===o&&(t.style.zIndex="29"),t.src=h.toString(),!d)if(r&&!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+b.width}px`,t.style.height=`${i+b.height}px`}if(_isWarmangoProductCampaign(o,n))return t.style.position="absolute",document.getElementsByClassName("media-viewer__image-link")[0].style.position="relative",void document.getElementsByClassName("media-viewer__image-link")[0].appendChild(t);document.body.appendChild(t)}}async function _getCartItems(){if("shopify"===a.site.integration){return(await async function(){const e=await fetch("/cart.json");if(200===e.status)return e.json();console.log(`Failed to get request, Shopify returned ${e.status} ${e.statusText}`)}()).items.map((e=>({productId:e.id,variantId:e.variant_id,quantity:e.quantity})))}}function _targetCarousels(e){let t=document.querySelectorAll(".vidjet-embed-iframe");t=Array.prototype.slice.call(t);let i=[];return 1===t.length?t:(i=t.filter((t=>t.dataset.vidjetCampaignId===e||(t.dataset&&t.dataset.src&&t.dataset.src.value.includes("vidjet.io")?t.dataset.src.value.includes(e):t.attributes.src.value.includes(e)))),i)}function _injectCssFullScreen(){if("object"!=typeof Array.from(document.head.querySelectorAll("style")).find((e=>"vidjet-body"===e.id))){const e=".vidjet-body {\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n height: 100vh;\n width: 100vw;\n background-color: white;\n color: white;\n }\n .vidjet-body *:not(.vidjet-fullscreen) {z-index: unset !important;} ",t=document.createElement("style");t.setAttribute("id","vidjet-body-style"),t.innerText=e,document.head.appendChild(t)}document.querySelector("body").classList.add("vidjet-body"),document.querySelector("html").classList.add("vidjet-body"),window.scrollTo(0,1)}function _decryptParams(e){let t={};return 0===e?.formatType?t.campaignType="popup":1===e?.formatType&&(0===e?.position&&(t.campaignType="left"),1===e?.position&&(t.campaignType="right")),e?.isFullScreen&&(t.isFullScreen="fullscreen"),t}function _setCookie(e,t,i){var a="";if(i){var o=new Date;o.setTime(o.getTime()+60*i*60*1e3),a="; expires="+o.toUTCString()}document.cookie=e+"="+(t||"")+a+"; path=/"}function _displayLaunchPopup(e){return vidjetDisplayLaunchPopup(e)}function _getCookie(e){for(var t=e+"=",i=document.cookie.split(";"),a=0;a1?(f=!0,u={width:1080,height:1920}):u={width:a.videos[0].width,height:a.videos[0].height},h=e.openByDefault&&!e.isFullScreen);const{moveX:y,moveY:w,bubbleSize:_}=e||{},j={siteId:b,_id:v,videoOriginalSize:u,moveX:y,moveY:w,isPlayerOpen:h,bubbleSize:_};g=_,a.bulk||function(){const e=_getCookie(`vidjet_view_${t._id}`),i=e?parseInt(e)+1:1;_setCookie(`vidjet_view_${t._id}`,i,t.segmentation.viewRestriction.notShownTime+1),i>=t.segmentation.viewRestriction.maxView&&(_setCookie(`vidjet_timing_${t._id}`,new Date((new Date).getTime()+1e3*t.segmentation.viewRestriction.notShownTime*3600).toISOString(),t.segmentation.viewRestriction.notShownTime+1),_deleteCookie(`vidjet_view_${t._id}`))}(),!a?.segmentation?.trigger?.type||a.segmentation.trigger.type===d||o?_addElement(_decryptParams(e),b,v,{moveX:y,moveY:w},h):a.segmentation.trigger.type===r?(document.addEventListener("mouseout",(e=>{_onExitIntent(e,j)})),i&&document.addEventListener("scroll",(e=>{_onExitIntent(e,j)}))):a.segmentation.trigger.type===s?window.addEventListener("scroll",(function(t){l||(window.requestAnimationFrame((function(){!function(t,i){let a=document.documentElement,o=document.body,n="scrollTop",d="scrollHeight",r=(a[n]||o[n])/((a[d]||o[d])-a.clientHeight)*100;const{siteId:s,_id:c,moveX:l,moveY:p,isPlayerOpen:u,bubbleSize:f}=i;r>=t.segmentation.trigger.option&&!m&&(_addElement(_decryptParams(e),s,c,{moveX:l,moveY:p},u),m=!0)}(a,j),l=!1})),l=!0)}),!0):a.segmentation.trigger.type===c&&setTimeout((()=>{_addElement(_decryptParams(e),b,v,{moveX:y,moveY:w},h)}),1e3*(a.segmentation.trigger.option||10))}let x=0;const _onExitIntent=(t,i)=>{const{siteId:a,_id:o,moveX:n,moveY:d,isPlayerOpen:r,bubbleSize:s}=i;if(t.clientY<50&&null==t.relatedTarget&&"select"!==t.target.nodeName.toLowerCase())document.removeEventListener("mouseout",(e=>{console.log(e,"removed")})),_addElement(_decryptParams(e),a,o,{moveX:n,moveY:d},r);else if("scroll"==t.type){let t=window.pageYOffset||document.documentElement.scrollTop;t+50{console.log(e,"removed")})),_addElement(_decryptParams(e),a,o,{moveX:n,moveY:d},r)),x=t<=0?0:t}};function _deleteCookie(e){document.cookie=e+"=; Max-Age=-99999999;"}function _destroyIframe(){if(document.querySelector(".vidjet-iframe")){return document.querySelector(".vidjet-iframe").remove()}}function _makeRequest(e,t,i){var a=new XMLHttpRequest,o=i+e;a.onreadystatechange=function(){if(4===this.readyState)return 200===this.status?JSON.parse(this.responseText.trim()):console.log((new Date).toISOString(),"AJAX ERROR for [",o,"]:",this.status,"with message [",this.statusText,"]")},a.open("POST",o,!0),a.timeout=5e3,a.setRequestHeader("Content-Type","application/json"),a.send(JSON.stringify(t))}function _sendAnalyticsToIframes(){const e=[...document.querySelectorAll(".vidjet-embed-iframe")],t={action:"getAnalytics",data:_},i=e.filter((e=>e));i.length>0&&i.forEach((e=>{e.contentWindow.postMessage(t,"*")}))}function _sendEvent(e,n){if(o)return;const d={siteId:a.site._id,campaignId:t&&t._id,sessionId:w,type:e,date:(new Date).toISOString(),device:i?"mobile":"desktop",params:n};if("cartCreated"===e){const e=_getCookie("vidjet_cart_id");e&&(d.cartId=e)}_makeRequest("/track-event",d,a.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):!!_.url&&_matchUrlSegmentation(e.segmentation.url)}function _compareUrl(e){return"eq"===e.comparison&&e.string===document.location.href||("not_eq"===e.comparison&&e.string!==document.location.href||(!("contains"!==e.comparison||!document.location.href.includes(e.string))||"not_contains"===e.comparison&&!document.location.href.includes(e.string)))}function _matchUrlSegmentation(e,t){if(!e||!e.length)return!1;for(const i of e){if(!i.type&&!t)return _compareUrl(i);if(i.type){let e=_matchUrlSegmentation(i.filters,i.type);if(!t)return e;if("or"===t&&e)return!0;if("and"===t&&!e)return!1}else{let e=_compareUrl(i);if("or"===t&&e)return!0;if("and"===t&&!e)return!1}}return"or"!==t}function _matchProductIdSegmentation(e){return e.includes(_.productId.toString())||e.includes(parseInt(_.productId))}function _matchSegmentation(t,a=!1){if(e=i?t.formats.find((e=>e.deviceType===j.mobile)):t.formats.find((e=>e.deviceType===j.desktop)),a)return!0;if(!e)return!1;if(!o){const e=_getCookie(`vidjet_timing_${t._id}`);if(e&&(new Date).getTime()"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 n=document.getElementsByClassName("magictoolbox-selector mz-thumb");for(let t of n)t.addEventListener(e,(()=>{document.getElementsByClassName("magic-slide mt-active")[0].style.display="block",document.getElementsByClassName("magic-slide mt-active vidjet-toggle")[0].style.display="none";const e=document.getElementsByClassName("magictoolbox-selector mz-thumb vidjet-toggle")[0];e.classList.remove("active-selector"),e.classList.remove("mz-thumb-selected")}));const d=document.createElement("a");d.innerHTML=`![Audemars Piguet Royal Oak - 14](${o.videos[0].thumbnail})
`,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}}}(),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"===(r.has("vidjet")&&r.get("vidjet"))&&r.has("campaignId"),{isLocked:t}=a.site,n=a.campaignsActivated.length;if(e){const e=a.campaignsPaused.find((e=>e._id===r.get("campaignId")));e?(o=!0,!i&&_displayLaunchPopup(e._id),_matchSegmentation(e,!0)&&_displayIframeBasedOnTrigger(e),_setCookie("vidjet-preview",!0,1),_setCookie("vidjet-campaignId",r.get("campaignId"),1)):(_deleteCookie("vidjet-preview"),_deleteCookie("vidjet-campaignId"))}else if(s){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||!n)return;for(const e of a.campaignsActivated)if(_matchSegmentation(e)){_displayIframeBasedOnTrigger(e);break}}}(),e){const{isFullScreen:t}=_decryptParams(e);!t&&_addResizeListener()}},showCampaign:function(t,o){const d=a.campaignsActivated.find((e=>e._id==t));if(!d)return console.error(`Invalid campaign id for ${t}`);e=i?d.formats.find((e=>e.deviceType===j.mobile)):d.formats.find((e=>e.deviceType===j.desktop));const{isFullScreen:r}=_decryptParams(e);if(o)_destroyIframe(),n=!1,l=!1,m=!1,_displayIframeBasedOnTrigger(d),!r&&_addResizeListener();else{if(document.querySelectorAll(".vidjet-iframe").length)return console.warn('Campaign already running. To show this video, pass "true" as the second parameter to force show.');n=!1,l=!1,m=!1,_displayIframeBasedOnTrigger(d),!r&&_addResizeListener()}},initSpa:function(){const e=this;let t=location.href;setInterval((function(){t!=location.href&&(console.log("VIDJET: page change detected"),_destroyIframe(),n=!1,l=!1,m=!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()}));