Liquid syntax error: Variable ' prev_asset.variants_json | default: '{}' was not properly terminated with regexp: /\}\}/ <div class="pf-modal modal-pf-content-form-strategy max-w-full relative z-[10000]" aria-labelledby="modal-title" role="dialog" aria-modal="true" id="pf-modal" style="display: none;" > <div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"></div> <div class="fixed inset-0 z-10 overflow-y-auto"> <div class="flex flex-row min-h-full justify-center p-4 pt-10 items-start"> <div class="modal-content relative max-w-full"> <style> .pf-custom-form--content_form_strategy { background-size: cover; background-position: center; background-image: url(); background-color: #EC0000; background-repeat: no-repeat; } </style> <div style="width: 1000px;" class="pf-form pf-custom-form--content_form_strategy max-w-full h-full flex flex-col justify-center items-center text-[#ffffff]" data-pf-theme-artefact-id="form-external" data-pf-theme-form-library-id="18786" data-pf-theme-block-id="content_form_strategy" data-pf-theme-block-type="component" data-pf-theme-block-ref="form" data-pf-theme-modal-type="" > <iframe sandbox="allow-forms allow-same-origin allow-scripts allow-modals allow-popups allow-popups-to-escape-sandbox allow-top-navigation allow-downloads" style="height: 700px;" class="pf-form-iframe--content_form_strategy px-[25px] pb-[25px] rounded-b w-full block m-0 border-none bg-[rgba(255,255,255,0)]" src="https://go.crowdstrike.com/form-pf-asset.html" > </iframe> </div> <div class="embed-form-submitted-message form-submitted-message flex flex-col justify-center items-center w-[400px] min-w-[400px] h-[500px] p-[30px] bg-[white]" style="display: none;" > <i class="fa-regular fa-circle-check text-[100px] text-[#00FF00]"></i> <div class="pf_font_preset_0 text-[#000000] font-bold">Thank You</div> <div class="pf_font_preset_4 text-[#000000]">Your submission has been sent</div> </div> <div class="form-submitted-status visually-hidden" role="status" aria-live="polite"></div> </div> </div> </div> </div> <script> const pfExperienceFormStrategy = `` ? JSON.parse(``) : null; const pfContentFormStrategy = `{"form_id":18786,"dismissable":false,"title_override":"Fill This Out to Continue","show_after_time":30,"customize_header":false,"show_on_contents":["1178510","1178508","1178509","1178507","1178506","1178505","1178504","1178503","1178502"],"promoters_clickable":true,"description_override":"This content will be available after you complete this form.","submitted_show_again":false,"show_to_known_visitors":false,"show_to_unknown_visitors":true}` ? JSON.parse(`{"form_id":18786,"dismissable":false,"title_override":"Fill This Out to Continue","show_after_time":30,"customize_header":false,"show_on_contents":["1178510","1178508","1178509","1178507","1178506","1178505","1178504","1178503","1178502"],"promoters_clickable":true,"description_override":"This content will be available after you complete this form.","submitted_show_again":false,"show_to_known_visitors":false,"show_to_unknown_visitors":true}`) : null; const pfExperienceFormPresent = false; const pfContentFormPresent = true; const pfExperienceFormModalSelector = ".modal-pf-experience-form-strategy"; const pfContentFormModalSelector = ".modal-pf-content-form-strategy"; const pfVisitorKnown = () => { const params = new URLSearchParams(window.location.search); const pfses = params.get('_pfses'); const knownViaLbEmail = window.pfConsentStatus && pfConsentStatus() && pfses; return false || knownViaLbEmail; }; const pfIsLandingPage = false; const pfExperienceFormModal = pfExperienceFormPresent && document.querySelector(pfExperienceFormModalSelector); const pfContentFormModal = pfContentFormPresent && document.querySelector(pfContentFormModalSelector); if (pfExperienceFormPresent || pfContentFormPresent) { setInterval(() => { document.dispatchEvent(new CustomEvent("pf_page_ping", { detail: { interval: 5 }, })); }, 5000); } const pfFormConditionsMet = ({ formModal, config, toggleModal = false, pdfButtonClick = false }) => { if (!config) { return false; } if (window.pdfFormModalOpen) { return false; } const currentSession = JSON.parse(localStorage.getItem("pfCurrentSession") || "{}"); const knownVisitorCondition = config.show_to_known_visitors && pfVisitorKnown(); const unknownVisitorCondition = config.show_to_unknown_visitors && !pfVisitorKnown(); const formSubmittedAlready = JSON.parse(localStorage.getItem("pfSubmittedForms") || "[]").filter((sf) => { return ( sf.experienceId == "229122" && sf.formId == config.form_id ); }).length > 0; const submittedShowAgainCondition = config.submitted_show_again || !formSubmittedAlready; const formNotDismissed = JSON.parse(localStorage.getItem("pfDismissedForms") || "[]").filter((df) => { return ( df.experienceId == "229122" && df.formId == config.form_id ); }).length == 0; const visibleModal = Array.from(document.querySelectorAll(".pf-modal")).filter((m) => m.style.display !== "none").length > 0; const show = pdfButtonClick || (knownVisitorCondition || unknownVisitorCondition) && submittedShowAgainCondition && formNotDismissed && !visibleModal; if (toggleModal && formModal) { formModal.style.display = show ? "block" : "none"; formModal.style.opacity = 0; setTimeout(() => formModal.style.opacity = show ? 1 : 0, 500); if (show) { if (!pdfButtonClick) { window.pfFormsShown = [...new Set((window.pfFormsShown || []).concat([config.form_id]))]; } (window.pfVideoPlayers || []).forEach((player) => { player.pause(); }); window.showForm({ formType: pfContentFormPresent ? "external" : "", formData: { value: pfContentFormPresent ? "content_form_strategy" : "experience_form_strategy" } }); } } return show; }; const pdfButtonHandler = (e) => { e.preventDefault(); pfFormConditionsMet({ formModal: pfContentFormModal, config: pfContentFormStrategy, toggleModal: true, pdfButtonClick: true, }); setTimeout(() => window.pdfFormModalOpen = e?.target?.id, 0); } const getPdfElements = () => { const pfPrint = document.getElementById("print_pf"); const pfDownload = document.getElementById("download_pf"); const printBtn = document.getElementById("print"); const downloadBtn = document.getElementById("download"); if (!pfPrint || !pfDownload || !printBtn || !downloadBtn) { return false; } return { pfPrint, pfDownload, printBtn, downloadBtn } } const switchPdfButtons = ({ showCustomButtons, config }) => { const pdfElements = getPdfElements(); if (!pdfElements) { return; } const { pfPrint, pfDownload, printBtn, downloadBtn } = pdfElements; if (showCustomButtons) { const { show_on_print, show_on_download } = config; if (show_on_print) { pfPrint.style.display = "inline-block"; printBtn.style.display = "none"; pfPrint.addEventListener("click", pdfButtonHandler); window.originalPrint = window.print; window.print = () => {}; } if (show_on_download) { pfDownload.style.display = "inline-block"; downloadBtn.style.display = "none"; pfDownload.addEventListener("click", pdfButtonHandler); } } else { pfPrint.style.display = "none"; pfDownload.style.display = "none"; printBtn.style.display = "inline-block"; downloadBtn.style.display = "inline-block"; [pfPrint, pfDownload].forEach(button => { button.removeEventListener('click', pdfButtonHandler); }); } } const pfPdfFormConditionsMet = ({ config }) => { if (!config) { return false; } const { show_on_print, show_on_download } = config; if (!show_on_print && !show_on_download) { return; } const knownVisitorCondition = config.show_to_known_visitors && pfVisitorKnown(); const unknownVisitorCondition = config.show_to_unknown_visitors && !pfVisitorKnown(); const formSubmittedAlready = JSON.parse(localStorage.getItem("pfSubmittedForms") || "[]").filter((sf) => { return ( sf.experienceId == "229122" && sf.formId == config.form_id ); }).length > 0; const submittedShowAgainCondition = config.submitted_show_again || !formSubmittedAlready; const showForm = (knownVisitorCondition || unknownVisitorCondition) && submittedShowAgainCondition; switchPdfButtons({ showCustomButtons: showForm, config }); }; const isBypassEngagementEnabled = (config) => { if (!config) return false; const { enable_bypass_engagement, show_on_download, show_on_print, } = config; if (!getPdfElements()) { return false; } return enable_bypass_engagement && (show_on_download || show_on_print); }; const resumePdfActions = (modal) => { return new Promise((resolve, reject) => { let counter = 0; const modalCloseInterval = setInterval(() => { try { if (modal.style.display === "none" || counter > 10) { clearInterval(modalCloseInterval); if (window.pdfFormModalOpen) { if (window.pdfFormModalOpen === "print_pf") { if (window.originalPrint) { window.print = window.originalPrint; } window.PDFViewerApplication?.triggerPrinting(); } else if (window.pdfFormModalOpen === "download_pf") { window.PDFViewerApplication?.downloadOrSave(); } } window.pdfFormModalOpen = false; pfPdfFormConditionsMet({ config: pfContentFormStrategy }); resolve(); } else { counter++; } } catch (error) { clearInterval(modalCloseInterval); reject(error); } }, 500); }); }; const pfContentFormStrategyEligible = pfContentFormPresent && pfFormConditionsMet({ config: pfContentFormStrategy }); const pfExperienceFormStrategyEligible = pfExperienceFormPresent && pfFormConditionsMet({ config: pfExperienceFormStrategy }); const pfActiveFormStrategy = (pfContentFormStrategyEligible && "contentStrategy") || (pfExperienceFormStrategyEligible && "experienceStrategy"); const promotersClickable = (pfActiveFormStrategy === "experienceStrategy" && pfExperienceFormStrategy.promoters_clickable) || (pfActiveFormStrategy === "contentStrategy" && pfContentFormStrategy.promoters_clickable); pfContentFormPresent && pfPdfFormConditionsMet({ config: pfContentFormStrategy }); const pfForceExperienceFormStrategy = pfExperienceFormPresent && isBypassEngagementEnabled(pfContentFormStrategy) && pfFormConditionsMet({ config: pfExperienceFormStrategy }); const pfUpdateEngagementTimes = (pagePing) => { const engagementTimes = JSON.parse(localStorage.getItem("pfExperienceEngagement") || "[]"); const engagementTimeIndex = engagementTimes.findIndex((et) => { return et.experienceId == "229122" }); let contentEngagementIndex = -1; const contentEngagements = engagementTimes[engagementTimeIndex]?.contentEngagements || []; const contentEngagement = contentEngagements.find((ce, i) => { if (ce.contentId == "1178505") { contentEngagementIndex = i; return true; } }) || {}; const newContentEngagement = { ...contentEngagement, contentId: "1178505", duration: (contentEngagement.duration || 0) + pagePing.interval }; const updatedEngagementTime = { experienceId: "229122", duration: (engagementTimeIndex > -1 ? engagementTimes[engagementTimeIndex].duration : 0) + pagePing.interval, contents: engagementTimeIndex > -1 ? [...new Set(engagementTimes[engagementTimeIndex].contents.concat(["1178505"]))] : ["1178505"], contentEngagements: contentEngagementIndex > -1 ? contentEngagements.map((ce) => ce.contentId == "1178505" ? newContentEngagement : ce) : [...contentEngagements, newContentEngagement] }; if (engagementTimeIndex > -1) { engagementTimes[engagementTimeIndex] = updatedEngagementTime; } else { engagementTimes.push(updatedEngagementTime); } localStorage.setItem("pfExperienceEngagement", JSON.stringify(engagementTimes)); localStorage.setItem("pfCurrentSession", JSON.stringify(updatedEngagementTime)); if (pfActiveFormStrategy === "experienceStrategy" || pfForceExperienceFormStrategy) { const assetsViewedCondition = updatedEngagementTime.contents.length >= pfExperienceFormStrategy.assets_viewed && updatedEngagementTime.duration >= pfExperienceFormStrategy.assets_viewed_time; const timeOnExperienceCondition = updatedEngagementTime.duration >= pfExperienceFormStrategy.time_on_experience; const formNotYetShown = (window.pfFormsShown || []).indexOf(pfExperienceFormStrategy.form_id) == -1; if ( (pfExperienceFormStrategy.form_trigger_type !== "assetsViewed" || assetsViewedCondition) && (pfExperienceFormStrategy.form_trigger_type !== "timeOnExperience" || timeOnExperienceCondition) && formNotYetShown ) { pfFormConditionsMet({ config: pfExperienceFormStrategy, formModal: pfExperienceFormModal, toggleModal: true }); } } if (pfActiveFormStrategy === "contentStrategy") { const timeOnContentCondition = (newContentEngagement.duration >= pfContentFormStrategy.show_after_time) && !isBypassEngagementEnabled(pfContentFormStrategy); const formNotYetShown = (window.pfFormsShown || []).indexOf(pfContentFormStrategy.form_id) == -1; if (timeOnContentCondition && formNotYetShown) { pfFormConditionsMet({ formModal: pfContentFormModal, config: pfContentFormStrategy, toggleModal: true }) } } }; if (promotersClickable) { const pfPromoter = document.querySelector("#sidebar"); if (pfPromoter) { pfPromoter.style["z-index"] = 1000000; } } document.addEventListener("pf_page_ping", (e) => { if (pfIsLandingPage && pfExperienceFormStrategy?.exclude_landing_page) { return; } if (pfIsLandingPage && document.querySelector(".lookbook-overlay-content")) { return; } const pagePingEvent = e.detail; pfUpdateEngagementTimes(pagePingEvent); }); window.addEventListener("message", (event) => { if (!(event.data?.lookbookExternalForm || event.data?.pfStandardForm)) { return; } const visibleModal = Array.from(document.querySelectorAll("#pf-modal")).filter((m) => m.style.display !== "none")[0]; const visibleForm = visibleModal?.querySelector("[data-pf-theme-block-ref='form']"); const formId = visibleForm?.getAttribute("data-pf-theme-form-library-id"); if (formId) { const submittedForms = JSON.parse(localStorage.getItem("pfSubmittedForms") || "[]"); const submittedForm = { experienceId: "229122", formId }; const submittedFormNotLogged = submittedForms.findIndex((x) => x.experienceId == submittedForm.experienceId && x.formId == submittedForm.formId ) === -1; if (submittedFormNotLogged) { submittedForms.push(submittedForm); localStorage.setItem("pfSubmittedForms", JSON.stringify(submittedForms)); } resumePdfActions(visibleModal).then(() => { window.resetForm(visibleModal); }) } }); window.addEventListener("DOMContentLoaded", () => { if (pfIsLandingPage && pfExperienceFormStrategy?.exclude_landing_page) { return; } const currentSession = JSON.parse(localStorage.getItem("pfCurrentSession") || "{}"); if ( currentSession.experienceId == "229122" || (pfExperienceFormStrategy && pfExperienceFormStrategy.time_on_experience === 0) || (pfContentFormStrategy && pfContentFormStrategy.show_after_time === 0) ) { pfUpdateEngagementTimes({ interval: 0 }); } }); </script> <!-- OneTrust Cookies Consent Notice start for crowdstrike.com --> <script type="text/javascript" src="https://cdn.cookielaw.org/consent/bee15b7c-b632-450e-9003-9c8b60b3b978/OtAutoBlock.js" ></script> <script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" data-document-language="true" type="text/javascript" charset="UTF-8" data-domain-script="bee15b7c-b632-450e-9003-9c8b60b3b978" ></script> <!-- OneTrust Cookies Consent Notice end for crowdstrike.com --> <script> var cookieCategory = "C0003"; function getCookie(cname) { let name = cname + "="; let decodedCookie = decodeURIComponent(document.cookie); let ca = decodedCookie.split(';'); for(let i = 0; i <ca.length; i++) { let c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } // Add custom code here. const oneTrustHandler = () => { OneTrust.OnConsentChanged( function() { console.log("consent changed"); if (pfConsentStatus() != true && getCookie("OptanonConsent").includes(cookieCategory+":1")==true) { console.log('Consent Changed to Accepted'); window.pf("setConsentSettings", { accepted: true }); } if (pfConsentStatus() != false && getCookie("OptanonConsent").includes(cookieCategory+":1")==false ) { console.log('Consent Changed to Declined'); window.pf("setConsentSettings", { accepted: false }); } }); } loadOneTrustConsent = () => { let retryCount = 0; const retryOneTrust = (cookiePreferences, oneTrustLoaded) => { if (cookiePreferences && oneTrustLoaded && cookiePreferences.includes("C0003:1") && retryCount < 5) { console.log('inside function to opt-in') window.pf("setConsentSettings", { accepted: true }); oneTrustHandler(); cookiePreferences = getCookie("OptanonConsent"); } else if (retryCount > 5 && !cookiePreferences.includes("C0003:1")) { console.log('inside function to opt-out') window.pf("setConsentSettings", { accepted: false }); oneTrustHandler(); cookiePreferences = getCookie("OptanonConsent"); } else { setTimeout(() => { retryCount++; retryOneTrust(getCookie("OptanonConsent"), window.OneTrust); }, 1000) } }; retryOneTrust(getCookie("OptanonConsent"), window.OneTrust); } pfOnJukeboxLoad.then(function () { loadOneTrustConsent(); }); </script> <style id="pdfDlHide" type="text/css"> button#download, button#print { display: none!important; } </style> <style id="pdfDlShow" type="text/css"> button#download, button#print { display: inline; } </style> <script> handleJukeboxDispatchedEvents = event => { switch (event.detail.eventName) { case "load_show": // Add custom code here. console.info('Load Show Event', event.detail); if ("{{visitor.email" != "") { document.querySelector('#pdfDlHide').type = 'text/plain'; } break; case "submit_external_form": // Add custom code here. console.info('Submit External Form', event.detail); document.querySelector('#pdfDlShow').type = 'text/plain'; break; } }; window.addEventListener("pf_event", this.handleJukeboxDispatchedEvents, false);