PageSourceSearch

https://www.webcar.eu/assets/GoogleTagManager.cbff6717.js

js webcar.eu collected 2026-10-10 01:41:47 UTC 4,077 bytes, 1 lines download raw bytes

1import u from"./Modal.4f38c16e.js";import{N as _,I as p}from"./index.048b20d9.js";import{n as l,E as s,h as o}from"./vehicleNavigationOverlay.700ee384.js";import{y as h}from"./vendor.3765fd31.js";const m={components:{Modal:u},data(){return{modalId:"ios-consent-modal"}},mounted(){s.$on("SHOW_IOS_CONSENT_MODAL",this.showModal)},beforeDestroy(){s.$off("SHOW_IOS_CONSENT_MODAL",this.showModal)},methods:{showModal(){this.$root.$emit("bv::show::modal",this.modalId)},hideModal(){this.$root.$emit("bv::hide::modal",this.modalId)},async openSettings(){await _.openIOS({option:p.Tracking}),this.hideModal()}}};var f=function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-contents"},[e("Modal",{attrs:{"modal-id":t.modalId,hideHeaderClose:!0,noCloseOnBackdrop:!0,noCloseOnEsc:!0,"modal-header-extra-class":"mb-4","modal-size":"lg"},scopedSlots:t._u([{key:"mainCaption",fn:function(){return[e("h4",{staticClass:"modal-title text-break no-hyphen mr-3"},[t._v(t._s(t.$t("ios_tracking_prompt_title")))])]},proxy:!0},{key:"body",fn:function(){return[e("p",[t._v(t._s(t.$t("ios_tracking_prompt_text")))])]},proxy:!0},{key:"footer",fn:function(){return[e("div",{staticClass:"btn-group"},[e("button",{staticClass:"btn btn-light mr-4",attrs:{type:"button"},on:{click:function(a){return a.preventDefault(),t.hideModal.apply(null,arguments)}}},[t._v(" "+t._s(t.$t("Close"))+" ")]),e("button",{staticClass:"btn btn-secondary",attrs:{type:"button"},on:{click:function(a){return a.preventDefault(),t.openSettings.apply(null,arguments)}}},[t._v(" "+t._s(t.$t("Open settings"))+" ")])])]},proxy:!0}])})],1)},C=[],O=l(m,f,C,!1,null,null,null,null);const T=O.exports,d=h("AppTrackingTransparency",{web:()=>import("./web.017c35e3.js").then(n=>new n.AppTrackingTransparencyWeb)});window.dataLayer=window.dataLayer||[];function M(){dataLayer.push(arguments)}
1const S={name:"GoogleTagManager",components:{IOSConsentModal:T},data(){return{currentTagManagerId:null,isConsentGiven:!1}},created(){this.loadTagManager()},mounted(){o.methods.isIOS()&&this.setupIOSConsent(),s.$on("FORCE_COMPONENT_UPDATE",this.reLoadTagManager),s.$on("COOKIE_CONSENT_UPDATE",this.cookieConsentUpdate)},beforeDestroy(){s.$off("FORCE_COMPONENT_UPDATE",this.reLoadTagManager),s.$off("COOKIE_CONSENT_UPDATE",this.cookieConsentUpdate)},methods:{cookieConsentUpdate(n){this.isConsentGiven=n,this.reLoadTagManager()},reLoadTagManager(){this.loadTagManager(),this.updateGoogleTagConsent()},loadTagManager(){o.methods.isWebPlatform()||this.currentTagManagerId===this.$page.props.currentSite.tagManager.id||!this.$page.props.currentSite.tagManager.id||(this.currentTagManagerId=this.$page.props.currentSite.tagManager.id,function(n,t,e,a,c){n[a]=n[a]||[],n[a].push({"gtm.start":new Date().getTime(),event:"gtm.js"});let i=t.getElementsByTagName(e)[0],r=t.createElement(e),g=a!=="dataLayer"?"&l="+a:"";r.defer=!0,r.src="https://www.googletagmanager.com/gtm.js?id="+c+g,i.parentNode.insertBefore(r,i)}(window,document,"script","dataLayer",this.currentTagManagerId))},updateGoogleTagConsent(){M("consent","update",{ad_user_data:this.isConsentGiven?"granted":"denied",ad_personalization:this.isConsentGiven?"granted":"denied",ad_storage:this.isConsentGiven?"granted":"denied",analytics_storage:this.isConsentGiven?"granted":"denied"})},async setupIOSConsent(){const n=await d.getStatus(),t=await o.methods.getObjectFromStorage("was_ios_consent_modal_shown");n.status!=="denied"?d.requestPermission().then(async e=>{e.status==="notDetermined"&&!t?await this.showIOSConsentModal():(e.status==="authorized"||e.status==="restricted")&&(this.isConsentGiven=!0,t&&await o.methods.storeObjectInStorage("was_ios_consent_modal_shown",!1)),this.updateGoogleTagConsent()}):(t||await this.showIOSConsentModal(),this.updateGoogleTagConsent())},async showIOSConsentModal(){s.$emit("SHOW_IOS_CONSENT_MODAL"),await o.methods.storeObjectInStorage("was_ios_consent_modal_shown",!0)}}};var w=function(){var t=this,e=t._self._c;return e("div",[e("i-o-s-consent-modal")],1)},y=[],v=l(S,w,y,!1,null,null,null,null);const N=v.exports;export{N as default};

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.