PageSourceSearch

https://008-338.vip/assets/theme-0/index.DDzr_WXj.js

js 008-338.vip collected 2026-10-09 04:33:36 UTC 6,176 bytes, 12 lines download raw bytes

1var I=Object.defineProperty;var R=(t,r,e)=>r in t?I(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;var s=(t,r,e)=>R(t,typeof r!="symbol"?r+"":r,e);import{z as b,K as l,gn as V,b as N,bH as k,rJ as T,sB as x,sC as P,qU as w,qH as D,rK as F,g_ as q,sD as B,sE as f,sF as M,e1 as h,sG as U}from"./commonChunk.Dhe5lqYh.js";import"./vendorChunk.BdsO83GQ.js";import"../vendors/vendor-stable.B8ub4Ug6.js";import"../vendors/vendor-swiper.T_wbf2QY.js";function $(t){return l.info(`[FB_V2_EVENT_ID]: CompleteRegistration-${t}`),`CompleteRegistration-${t}`}function S(t){return l.info(`[FB_V2_EVENT_ID]: InitiateCheckout-${t}`),`InitiateCheckout-${t}`}function O(t){return l.info(`[FB_V2_EVENT_ID]: Purchase-${t}`),`Purchase-${t}`}function K(){const t=Math.floor(Math.random()*1e6).toString().padStart(6,"0");return l.info(`[FB_V2_EVENT_ID]: ViewContent-${Date.now()}_${t}`),`ViewContent-${Date.now()}_${t}`}function C(){var n;const t=window.fbq;if(!((n=t==null?void 0:t.instance)==null?void 0:n.VERSION))return!1;const{getMetaCookie:e}=b();return!!e("_fbc")&&!!e("_fbp")}const A={USDT:{currency:"USD",rate:1}};function g(t,r){if(!r)return{amount:t,currency:r};const e=A[r.toUpperCase()];return e?{amount:t!==void 0?t*e.rate:void 0,currency:e.currency}:{amount:t,currency:r}}function u(t){if(t)return V.SHA256(`${t}`).toString()}function L(t,r){return{external_id:u(t),content_name:r,content_type:"product"}}function H(t,r,e,n){return{external_id:u(t),status:!0,ph:u(r),em:u(e==null?void 0:e.toLowerCase()),currency:n}}function y(t,r,e){const n=g(r,e);return{external_id:u(t),value:n.amount,currency:n.currency}}function J(t,r,e){const n=g(t,r);return{external_id:u(e),value:n.amount,currency:n.currency}}const E="fb_v2_backend_reported_events",Q=100;function W(t){const r=document.createElement("script");r.type="text/javascript",r.appendChild(document.createTextNode(`
2      !function(f,b,e,v,n,t,s)
3      {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
4      n.callMethod.apply(n,arguments):n.queue.push(arguments)};
5      if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
6      n.queue=[];t=b.createElement(e);t.async=!0;
7      t.src=v;s=b.getElementsByTagName(e)[0];
8      s.parentNode.insertBefore(t,s)}(window, document,'script',
9      'https://connect.facebook.net/en_US/fbevents.js');
10      fbq('init', '${t}');
11      fbq('track', 'PageView');
12    `)),document.head.appendChild(r)}function Y(t){try{const r=localStorage.getItem(E),e=r?JSON.parse(r):[];return e.includes(t)?!1:(e.push(t),localStorage.setItem(E,JSON.stringify(e.slice(-Q))),!0)}catch(r){return!0}}function j(t){var a,c,p,m,_;if(t.eventName!=="initiateCheckout"||!((a=t.payload)!=null&&a.orderNo))return;const{userInfos:r}=N(),{getMetaCookie:e}=b(),n=S(String(t.payload.orderNo));if(!Y(n))return;const i=(p=(c=t.payload)==null?void 0:c.username)!=null?p:r==null?void 0:r.username,o=y(i===void 0?void 0:String(i),(m=t.payload)!=null&&m.amount?Number(t.payload.amount):void 0,(_=t.payload)==null?void 0:_.currency),d={event_name:"InitiateCheckout",event_id:n.split("-")[1],channel_id:k().urlParams.cid,user_id:r==null?void 0:r.username,extra:{...o,order_id:String(t.payload.orderNo)},fbp:e("_fbp"),fbc:e("_fbc")};T(d)}function z(t,r,e){const{payload:n}=r;if(t==="CompleteRegistration")return H(e,n==null?void 0:n.phone,n==null?void 0:n.email,n==null?void 0:n.currency);if(t==="InitiateCheckout")return y(e,n!=null&&n.amount?Number(n.amount):void 0,n==null?void 0:n.currency);if(t==="Purchase"){const i=n!=null&&n.amount?Number(n.amount):void 0,o=n==null?void 0:n.currency;return i===void 0||!o?null:J(i,o,e)}return L(e,n==null?void 0:n.path)}function G(t,r,e){var n,i;return t==="completeRegistration"?$(String(e)):t==="initiateCheckout"&&((n=r.payload)!=null&&n.orderNo)?S(String(r.payload.orderNo)):t==="purchase"&&((i=r.payload)!=null&&i.orderNo)?O(String(r.payload.orderNo)):K()}function X(t,r,e,n){window.fbq("trackSingle",t,r,e,{eventID:n})}function v(t,r){var a,c;if(!x.has(r.eventName))return;const{userInfos:e}=N(),n=(c=(a=r.payload)==null?void 0:a.username)!=null?c:e==null?void 0:e.username,i=P[r.eventName];if(!i)return;const o=z(i,r,n);if(o===null)return;const d=G(r.eventName,r,n);X(t,i,o,`${d}`)}class ie extends w{constructor(e){super(D.FacebookMatePixelV2);s(this,"pixelId");s(this,"enabled",!1);s(this,"platformConfig");s(this,"flushTimer",null);s(this,"routeWatcherCleanup",null);s(this,"lastViewContentRouteKey");s(this,"loadedPixelId");this.pixelId=e.pixelId,this.platformConfig=e.platformConfig,this.initByManual(e)}initByManual(e){var i,o;e!=null&&e.pixelId&&(this.pixelId=e.pixelId),e!=null&&e.platformConfig&&(this.platformConfig=e.platformConfig);const n={gid:this.pixelId,closed:(i=this.platformConfig)==null?void 0:i.closed,debugChannel:(o=this.platformConfig)==null?void 0:o.debugChannel};this.enabled=F(n),this.enabled&&(this.loadedPixelId!==this.pixelId&&(W(this.pixelId),this.loadedPixelId=this.pixelId),this.watchRouteForViewContent(),this.startFlushTimer(),l.info("[FB_V2_EVENT_ID]: activated"))}initialize(){}watchRouteForViewContent(){this.routeWatcherCleanup||(this.routeWatcherCleanup=q.afterEach(e=>{if(B.has(e.path)){const n=e.fullPath||e.path;if(this.lastViewContentRouteKey===n)return;this.lastViewContentRouteKey=n,this.report({eventName:"viewContent",payload:{path:e.path}});return}this.lastViewContentRouteKey=void 0}))}report(e){if(!this.enabled)return;const n=C();if(j(e),!n){this.enqueue(e);return}this.flushQueue(),v(this.pixelId,e)}enqueue(e){const n=this.readQueue();n.push(e),localStorage.setItem(f,JSON.stringify(n))}readQueue(){try{const e=localStorage.getItem(f);return e?JSON.parse(e):[]}catch(e){return[]}}flushQueue(){if(!this.enabled)return;const e=this.readQueue();if(e.length){localStorage.removeItem(f);for(const n of e)this.trackRegistrationWithSdkNotReady(n),v(this.pixelId,n)}}trackRegistrationWithSdkNotReady(e){e.eventName===M.CompleteRegistration&&h.doReport({rule:h.rules.SENSOR_BURIED,eventName:h.sensorEvents.FbSdkNotReadyOnRegister,payload:{...e.payload}})}startFlushTimer(){this.flushTimer||(this.flushTimer=setInterval(()=>{this.enabled&&C()&&this.flushQueue()},U))}}export{ie as ReporterFacebookV2,ie 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.