PageSourceSearch

https://www.carpulse.al/_next/static/chunks/1900-8a10f15906cd99d5.js

js carpulse.al collected 2026-09-24 13:29:42 UTC 6,920 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1900],{41900:function(n,t,e){e.d(t,{CH:function(){return L},Kc:function(){return S},MetaPixel:function(){return s},NO:function(){return q},P0:function(){return g},Q4:function(){return w},Qc:function(){return C},Qr:function(){return A},U3:function(){return I},UE:function(){return N},YT:function(){return D},_H:function(){return x},cp:function(){return R},hI:function(){return E},i2:function(){return k},ix:function(){return v},kN:function(){return j},kS:function(){return P},qA:function(){return T},qk:function(){return b},rb:function(){return O},tk:function(){return h},xh:function(){return U}});var c=e(90621),o=e(58831),i=e(29746),r=e(19812),a=e(67817);let u="2030007700976893",l=new Set(["AddPaymentInfo","AddToCart","AddToWishlist","CompleteRegistration","Contact","CustomizeProduct","Donate","FindLocation","InitiateCheckout","Lead","Purchase","Schedule","Search","StartTrial","SubmitApplication","Subscribe","ViewContent"]);function d(){let n=(0,i.usePathname)(),t=(0,i.useSearchParams)();return(0,r.useEffect)(()=>{let n=null==t?void 0:t.get("fbclid");if(n&&"undefined"!=typeof document&&!document.cookie.split(";").some(n=>n.trim().startsWith("_fbc="))){let t="fb.1.".concat(Date.now(),".").concat(n),e=window.location.hostname.replace(/^www\./,"");document.cookie="_fbc=".concat(t,"; path=/; max-age=").concat(31536e3,"; domain=.").concat(e,"; SameSite=Lax")}},[t]),(0,r.useEffect)(()=>{(function(){try{let n=new URLSearchParams(window.location.search).get("fbclid");if(!n)return;let t=JSON.stringify({fbclid:n,ts:Date.now()});window.localStorage.setItem(y,t)}catch(n){}})(),"function"==typeof window.fbq&&window.fbq("track","PageView")},[n,t]),null}function f(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.default,{id:"meta-pixel-init",strategy:"afterInteractive",children:"\n          !function(f,b,e,v,n,t,s)\n          {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n          n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n          if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n          n.queue=[];}(window, document,'script');\n          fbq('init', '".concat(u,"');\n        ")}),(0,c.jsx)(o.default,{src:"https://connect.facebook.net/en_US/fbevents.js",strategy:"afterInteractive",crossOrigin:"anonymous"}),(0,c.jsx)("noscript",{children:(0,c.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=".concat(u,"&ev=PageView&noscript=1"),alt:""})}),(0,c.jsx)(r.Suspense,{fallback:null,children:(0,c.jsx)(d,{})})]})}function s(n){let{market:t}=n,[e,o]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{o(!0)},[t]),e)?(0,c.jsx)(f,{}):null}let p=null;function v(n){if(!n){p=null;return}p={email:n.email||void 0,phone:n.phone_number||n.phone||void 0,external_id:null!=n.id?String(n.id):void 0,country:n.country||"al",fn:n.fn||void 0,ln:n.ln||void 0,ct:n.ct||void 0,st:n.st||void 0,zp:n.zp||void 0}}function h(){p=null}let m=n=>{if("undefined"==typeof document)return;let t=document.cookie.match(RegExp("(^|; )"+n+"=([^;]+)"));return t?decodeURIComponent(t[2]):void 0},y="cp_fbclid_v1";function _(n,t,e,c){var o,i,r,u;let d={...p||{},...e||{}},f=null==d.external_id&&null!==(o=(0,a.kG)())&&void 0!==o?o:void 0,s={...d,external_id:null!==(i=d.external_id)&&void 0!==i?i:f,fbp:null!==(r=d.fbp)&&void 0!==r?r:m("_fbp"),fbc:null!==(u=d.fbc)&&void 0!==u?u:function(){let n=m("_fbc");if(n)return n;try{let n=window.localStorage.getItem(y);if(!n)return;let{fbclid:t,ts:e}=JSON.parse(n);if(!t||!e||Date.now()-e>7776e6)return;return"fb.1.".concat(e,".").concat(t)}catch(n){return}}()},v=c||("undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2)));"function"==typeof window.fbq&&window.fbq(l.has(n)?"track":"trackCustom",n,t,{eventID:v}),fetch("/api/x/t",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_name:n,event_id:v,event_time:Math.floor(Date.now()/1e3),event_source_url:window.location.href,action_source:"website",custom_data:t,user_data:s,consent:"accepted"}),keepalive:!0}).then(async t=>{if(!t.ok){let e=await t.text().catch(()=>"");console.warn("[CAPI] non-2xx",t.status,n,e.slice(0,200))}}).catch(t=>{console.warn("[CAPI] fetch failed",n,t)})}function w(n){_("ViewContent",{...n,currency:n.currency||"EUR"})}function g(n){_("Contact",{content_name:n.carName,content_ids:["".concat(n.carId)],content_type:"vehicle",content_category:n.inquiryType,value:n.value,currency:"EUR"})}function b(n){_("Contact",{content_ids:["".concat(n.carId)],content_type:"vehicle",content_category:"offer",value:n.amountEur,currency:"EUR"},void 0,"offer-".concat(n.carId,"-").concat(n.phoneHash8))}function S(n){_("AddToCart",{...n,content_type:n.content_type||"vehicle",currency:"EUR"})}function k(n){_("AddToWishlist",{...n,content_type:n.content_type||"vehicle",currency:"EUR"})}function C(n){let{invoiceId:t,...e}=n;_("Purchase",{...e,currency:"EUR"},void 0,null!=t?"purchase-".concat(t):void 0)}function x(n,t,e){_("CompleteRegistration",n,t,null!=e?"cr-".concat(e):void 0)}function I(n){_("Search",n)}function U(n){let{draftSessionId:t,...e}=n||{};_("AddPaymentInfo",{...e,currency:"EUR"},void 0,t?"api-".concat(t):void 0)}function E(n){let{draftSessionId:t,...e}=n||{};_("InitiateCheckout",{...e,currency:"EUR"},void 0,t?"ic-".concat(t):void 0)}function P(n){let{draftSessionId:t,...e}=n||{};_("ListingStarted",e,void 0,t?"ls-".concat(t):void 0)}function R(n){_("ListingPhotoUploaded",n)}function q(n){_("ListingDraftCompleted",{...n,currency:"EUR"})}function D(n){_("PaywallBailed",n)}function A(n){_("Lead",{content_name:"listing_published",content_category:"dealer"===n.userType?"dealer_listing":"consumer_listing",content_ids:[n.listingId],value:n.value,currency:n.currency||"EUR"},void 0,"pub-".concat(n.listingId))}function T(n,t){var e,c;let o=null!==(c=null!==(e=null==t?void 0:t.external_id)&&void 0!==e?e:(0,a.kG)())&&void 0!==c?c:"anon",i=new Date().toISOString().slice(0,10).replace(/-/g,""),r=null!=n.estimateId?"calc-".concat(n.estimateId):"calc-".concat(o,"-").concat(i);_("Lead",{content_name:"calc_estimate",content_category:"vehicle_valuation",content_type:"product",value:n.estimateValue,currency:n.currency||"EUR",...n.make?{make:n.make}:{},...n.model?{model:n.model}:{},...n.year?{year:n.year}:{}},t,r)}function j(n){_("SellAbandoned",null!=n?n:{})}function L(n){let t;let{draft_session_id:e,...c}=n||{};if(e){let n=new Date().toISOString().slice(0,13).replace(/[-T]/g,"");t="ds-".concat(e,"-").concat(n)}_("DraftSaved",c,void 0,t)}function N(n,t){var e;let c=null!==(e=(0,a.kG)())&&void 0!==e?e:"anon",o=null!=t?String(t):c;_("CardClaimed",null!=n?n:{},void 0,"cc-".concat(o))}function O(n){var t;let e=null!==(t=(0,a.kG)())&&void 0!==t?t:"anon",c=(null==n?void 0:n.draft_session_id)||e;_("NoCardClicked",n,void 0,"nc-".concat(c))}}}]);

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.