PageSourceSearch

https://shopyai.ai/_next/static/chunks/14888-a93f0eb317cc10b9.js

js shopyai.ai collected 2026-10-05 15:10:47 UTC 7,237 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14888],{14888:(e,t,r)=>{r.d(t,{IN:()=>k,JF:()=>$,Mr:()=>C,UL:()=>j,VO:()=>y,Yq:()=>I,ZA:()=>S,a2:()=>_,al:()=>U,eR:()=>T,fF:()=>Z,h9:()=>F,iO:()=>b,im:()=>D,n6:()=>z,r4:()=>q,ub:()=>N,zJ:()=>A});var n=r(44539);let o=["ok","upgrade_required","plugin_disabled","not_connected","no_data"],s=/^\d{4}-\d{2}-\d{2}$/,i=/^\d{4}-\d{2}$/,l=/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/;class u extends Error{}function a(e){if(null===e||"object"!=typeof e||Array.isArray(e))throw new u;return e}function c(e){if("number"!=typeof e||!Number.isSafeInteger(e)||e<0)throw new u;return e}function p(e){if("string"!=typeof e||!s.test(e))throw new u;return e}function d(e){return null==e?null:p(e)}function f(e){if("boolean"!=typeof e)throw new u;return e}function m(e){let t=a(e);return{from:p(t.from),to:p(t.to)}}function g(e){let t=a(e);if("string"!=typeof t.status||!o.includes(t.status))throw new u;return{status:t.status,since:d(t.since),until:d(t.until)}}function h(e){let t=a(e),r=null;if(null!==t.position&&void 0!==t.position){if("number"!=typeof t.position||!Number.isFinite(t.position)||t.position<0)throw new u;r=t.position}return{clicks:c(t.clicks),impressions:c(t.impressions),position:r}}function v(e){let t=a(e);return{pageViews:c(t.pageViews),ctaClicks:c(t.ctaClicks)}}function w(e,t){if(!Array.isArray(e))throw new u;return e.map(t)}function y(e){try{let t=a(e),r=a(t.sources),n=a(t.rolling),o=a(n.own),s=null===n.google||void 0===n.google?null:a(n.google);return{generatedAt:"string"==typeof t.generatedAt?t.generatedAt:"",sources:{google:g(r.google),visits:g(r.visits),leads:g(r.leads)},rolling:{days:c(n.days),google:s?{current:m(s.current),previous:m(s.previous),currentTotals:h(s.currentTotals),previousTotals:h(s.previousTotals),days:w(s.days,e=>{let t=a(e);return{date:p(t.date),clicks:c(t.clicks),impressions:c(t.impressions),previousClicks:c(t.previousClicks),previousImpressions:c(t.previousImpressions)}})}:null,own:{current:m(o.current),previous:m(o.previous),currentVisits:v(o.currentVisits),previousVisits:v(o.previousVisits),currentLeads:c(o.currentLeads),previousLeads:c(o.previousLeads),days:w(o.days,e=>{let t=a(e);return{date:p(t.date),pageViews:c(t.pageViews),leads:c(t.leads),previousPageViews:c(t.previousPageViews),previousLeads:c(t.previousLeads)}})}},months:w(t.months,e=>{let t=a(e);if("string"!=typeof t.month||!i.test(t.month))throw new u;return{month:t.month,from:p(t.from),to:p(t.to),running:f(t.running),google:null===t.google||void 0===t.google?null:h(t.google),googleComplete:f(t.googleComplete),visits:null===t.visits||void 0===t.visits?null:v(t.visits),visitsComplete:f(t.visitsComplete),leads:null===t.leads||void 0===t.leads?null:c(t.leads),leadsComplete:f(t.leadsComplete)}}),addressChanges:null===t.addressChanges||void 0===t.addressChanges?[]:w(t.addressChanges,e=>{let t=a(e);return{on:p(t.on),previousHost:function(e){if("string"!=typeof e||e.length>253||!l.test(e))throw new u;return e}(t.previousHost)}})}}catch(e){if(e instanceof u)return null;throw e}}function k(e,t,r){let n=null;for(let o of r)o.on>e&&o.on<=t&&(!n||o.on>n.on)&&(n=o);return n}function b(e){let t=e.rolling.google;if(!t)return{comparable:!0};let r=k(t.previous.from,t.current.to,e.addressChanges);if(r)return{comparable:!1,reason:"addressChanged",change:r};let n=e.sources.google.since;return n&&t.previous.from<n?{comparable:!1,reason:"dataSince",since:n}:{comparable:!0}}function T(e,t){let r=null;for(let n of t)n.on>=e.from&&n.on<=e.to&&(!r||n.on>r.on)&&(r=n);return r}function C(e,t){if(e===t)return{trend:"flat",percent:0,isNew:!1};if(0===t)return{trend:"up",percent:null,isNew:!0};let r=Math.round((e-t)/t*100);return 0===r?{trend:"flat",percent:0,isNew:!1}:{trend:r>0?"up":"down",percent:r,isNew:!1}}function N(e,t){if(null===e||null===t)return{trend:"none",places:null};let r=Math.round((t-e)*10)/10;return .1>Math.abs(r)?{trend:"flat",places:0}:{trend:r>0?"better":"worse",places:r}}function F(e,t){try{return new Intl.NumberFormat((0,n.jN)(t),{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:0}).format(e/100)}catch(t){return"".concat(e>0?"+":"").concat(e," %")}}function A(e,t){try{return new Intl.NumberFormat((0,n.jN)(t),{minimumFractionDigits:1,maximumFractionDigits:1}).format(e)}catch(t){return e.toFixed(1)}}function L(e){return new Date("".concat(e,"T00:00:00Z"))}let V={"ps-AF":"fa-AF"};function M(e){var t;let r=(0,n.ej)(e);return null!=(t=V[r])?t:r}function D(e,t){try{return new Intl.DateTimeFormat(M(t),{day:"numeric",month:"numeric",calendar:"gregory",timeZone:"UTC"}).format(L(e))}catch(t){return e}}function I(e,t){try{return new Intl.DateTimeFormat(M(t),{day:"numeric",month:"numeric",year:"numeric",calendar:"gregory",timeZone:"UTC"}).format(L(e))}catch(t){return e}}function _(e,t){let r=t.endsWith(".");return e.replace(/\{date\}(\.?)/,(e,n)=>
1r&&n?t:t+n)}function j(e,t,r){let o=Number(e.slice(0,4));try{return new Intl.DateTimeFormat((0,n.ej)(t),{month:"long",...void 0!==r&&o!==r?{year:"numeric"}:{},calendar:"gregory",timeZone:"UTC"}).format(L("".concat(e,"-01")))}catch(t){return e}}function z(e){if(!Number.isFinite(e)||e<=1)return 1;let t=Math.floor(Math.log10(e)),r=10**t;for(let t of[1,2,5,10])if(e<=t*r)return t*r;return 10*r}function U(e,t,r,n){if(0===e.length)return"";let o=n>0?n:1,s=e.length>1?t/(e.length-1):0;return e.map((e,t)=>{let n=Math.round(t*s*10)/10,i=Math.round((r-Math.max(0,e)/o*r)*10)/10;return"".concat(n,",").concat(i)}).join(" ")}let x=["clicks","impressions","position","pageViews","leads"];function Z(e){if(null===e||"object"!=typeof e||Array.isArray(e))return null;let t=e.hidden;return Array.isArray(t)?x.filter(e=>t.includes(e)):null}function S(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),x.filter(e=>r.has(e))}let E={1:"grid-cols-2",2:"grid-cols-2",3:"grid-cols-2 sm:grid-cols-3",4:"grid-cols-2 lg:grid-cols-4",5:"grid-cols-2 sm:grid-cols-3 lg:grid-cols-5"};function $(e){var t;return null!=(t=E[e])?t:E[5]}function q(e,t){var r,n,o,s,i,l;let u=[],a=new Set(null!=(r=t.hidden)?r:[]),c=b(e).comparable?e.rolling.google:null,p=e.rolling.own;if(c){let e=C(c.currentTotals.impressions,c.previousTotals.impressions),r=c.currentTotals.impressions-c.previousTotals.impressions;!a.has("impressions")&&"up"===e.trend&&r>=20&&(e.isNew||(null!=(n=e.percent)?n:0)>=20)&&u.push({tone:"good",key:"impressionsUp",params:{n:t.format(r),pct:null===e.percent?"":F(e.percent,t.lang)}});let d=N(c.currentTotals.position,c.previousTotals.position);!a.has("position")&&"better"===d.trend&&(null!=(o=d.places)?o:0)>=1&&u.push({tone:"good",key:"positionBetter",params:{from:A(null!=(s=c.previousTotals.position)?s:0,t.lang),to:A(null!=(i=c.currentTotals.position)?i:0,t.lang)}});let f=C(c.currentTotals.clicks,c.previousTotals.clicks),m=c.currentTotals.clicks-c.previousTotals.clicks,g=!a.has("clicks");g&&t.leadsMatter&&!a.has("leads")&&"up"===f.trend&&m>=5&&p.currentLeads<p.previousLeads?u.push({tone:"warn",key:"clicksUpLeadsDown",params:{from:t.format(p.previousLeads),to:t.format(p.currentLeads)}}):g&&"up"===f.trend&&m>=5&&(f.isNew||(null!=(l=f.percent)?l:0)>=20)&&u.push({tone:"good",key:"clicksUp",params:{n:t.format(m)}})}return u.slice(0,3)}}}]);

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.