1import{F as h,b as f,u as l}from"./formkit.theme-DVbh0M_W.js";import"./vendor-lxhXACKn.js";import"./globalBasic-DCViCoV8.js";class w extends h{constructor(t){super(t),this.id="adWords",this.group="marketing",this.setup()}setup(){var i,a,o,e,r,s,n;if(this.allowed){var t=document.createElement("script");t.async=!0,t.src="https://www.googletagmanager.com/gtag/js?id="+((i=this.config)==null?void 0:i.id),document.head.appendChild(t),window.dataLayer=window.dataLayer||[],(a=this.config)!=null&&a.domains&&this.gtag("set","linker",{domains:(o=this.config)==null?void 0:o.domains,decorate_forms:!0,accept_incoming:!0}),this.gtag("js",new Date),this.gtag("config",(e=this.config)==null?void 0:e.id),(r=this.config)!=null&&r.additional_tracker&&Array.isArray((s=this.config)==null?void 0:s.additional_tracker)&&((n=this.config)==null||n.additional_tracker.forEach(d=>{this.gtag("config",d)}))}}gtag(){window.dataLayer.push(arguments)}conversion(t){var r,s,n,d,c,g;if(!this.allowed)return;const i=f(),a=l(),o=(r=i==null?void 0:i.settings)==null?void 0:r.currency;let e=(s=this.config)==null?void 0:s.send_to;(n=this.config)!=null&&n.additional_tracker&&Array.isArray((d=this.config)==null?void 0:d.additional_tracker)&&(e=[(c=this.config)==null?void 0:c.send_to,...(g=this.config)==null?void 0:g.additional_tracker]),this.gtag("event","conversion",{send_to:e,value:t.price,currency:o,transaction_id:t.resId,items:[{id:"HP_"+a.hotelId,start_date:t.arrival,end_date:t.departure}]})}event(t,i,a){}pageView(t,i){}}export{w as AdWords};
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.