1"use strict";(self.webpackChunkwebpack=self.webpackChunkwebpack||[]).push([[1044],{11044:function(t,e,r){r.r(e),r.d(e,{default:function(){return a}});var s=r(42799);class a extends s.o{constructor(t){super(t),this.HIDDEN_CLASS="u-opt-0",this.UTM_SOURCE_STRING="utm_source",this.UTM_CAMPAIGN_STRING="utm_campaign",this.UTM_CONTENT_STRING="utm_content",this.UTM_MEDIUM_STRING="utm_medium",this.UTM_TERM_STRING="utm_term",this.FORM_IFRAME_CLASS=".hs-form-iframe",this.init()}init(){var t="https://js.hsforms.net/forms/embed/v2.js";this.parm.newForm&&(t="https://js-eu1.hsforms.net/forms/embed/developer/27021741.js");const e=new URLSearchParams(window.location.search);if(!(e.has("utm_campaign")||e.has("utm_source")||e.has("utm_medium")||null!=this.parm.utmParameters&&this.parm.utmParameters.utm_campaign)){const t=localStorage.getItem("source_productportfolio");t&&(null==this.parm.utmParameters?this.parm.utmParameters={utm_campaign:t}:this.parm.utmParameters.utm_campaign=t)}this.loadScript(t,(()=>{this.hbsptInstance=window.HubSpotForms,this.hbsptInstance&&this.hbsptInstance.create({region:this.parm.region,portalId:this.parm.portalId,formId:this.parm.formId,sfdcCampaignId:this.parm.campaignId,target:`#${this.element.id}`,onFormReady:this.handleFormRender()})})),window.addEventListener("message",(t=>{"hsFormCallback"===t.data.type&&"onFormReady"===t.data.eventName&&this.handleTracking()})),this.parm.newForm&&this.showForm()}loadScript(t,e){const r=document.head,s=document.createElement("script");s.type="text/javascript",s.src=t,s.crossOrigin="anonymous",s.onload=e,r.appendChild(s)}handleFormRender(){this.formIframe=this.element.querySelector(this.FORM_IFRAME_CLASS),this.formIframe||(this.removeCurrentForm(),this.reInitForm()),this.showForm()}removeCurrentForm(){const t=this.element.querySelector(".hbspt-form");t?t.remove():this.element.innerHTML=""}showForm(){this.element.classList.remove(this.HIDDEN_CLASS)}handleTracking(){this.parm.utmParameters&&(this.prefillTrackingInput(`[name*=${this.UTM_SOURCE_STRING}]`,this.parm.utmParameters.utm_source),this.prefillTrackingInput(`[name*=${this.UTM_CAMPAIGN_STRING}]`,this.parm.utmParameters.utm_campaign),this.prefillTrackingInput(`[name*=${this.UTM_CONTENT_STRING}]`,this.parm.utmParameters.utm_content),this.prefillTrackingInput(`[name*=${this.UTM_MEDIUM_STRING}]`,this.parm.utmParameters.utm_medium),this.prefillTrackingInput(`[name*=${this.UTM_TERM_STRING}]`,this.parm.utmParameters.utm_term))}prefillTrackingInput(t,e){const r=this.element.querySelector(t);r&&e&&(r.value=e)}reInitForm(){this.hbsptInstance.create({region:this.parm.region,portalId:this.parm.portalId,formId:this.parm.formId,sfdcCampaignId:this.parm.campaignId,cssRequired:"",css:"",target:`#${this.element.id}`})}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.