PageSourceSearch

https://vantevo.io/_next/static/chunks/4256.d13dc0d08b8f9d60.js

js vantevo.io collected 2026-10-03 19:03:57 UTC 18,172 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4256,9957,3286],{25542:function(e,t,a){a.d(t,{Z:function(){return n}});var s=a(85893),r=a(65865);function n(e){var t=e.type,a=e.className,n=e.loading,l=e.onClick,i=e.disabled,c=e.children;return(0,s.jsxs)("button",{disabled:i,type:t||"button",onClick:function(){l&&l()},className:"btn-vantevo ".concat(a),children:[!n&&c,n&&(0,s.jsx)(r.F8,{})]})}},25463:function(e,t,a){a.d(t,{Z:function(){return l}});var s=a(85893),r=a(65865),n=a(67294);function l(e){e.t;var t=e.onSearch,a=e.placeholder,l=(0,n.useState)(""),i=l[0],c=l[1],o=function(e){t(e||"")};return(0,s.jsx)("div",{className:"w-full bg-white rounded-md",children:(0,s.jsx)("div",{className:"flex items-center justify-center w-full",children:(0,s.jsxs)("div",{className:"flex rounded w-full",children:[(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)("input",{type:"text",className:"input-vantevo",placeholder:a||"",value:i,onChange:function(e){c(e.target.value||"")},onKeyDown:function(e){"Enter"===e.key&&o(i||"")}}),i&&(0,s.jsx)("div",{className:"absolute right-0 top-0 w-[30px] h-full",children:(0,s.jsx)("div",{className:"flex w-full h-full justify-center items-center",children:(0,s.jsxs)("a",{className:"cursor-pointer",onClick:function(){o(""),c("")},children:[" ",(0,s.jsx)(r.dA,{})]})})})]}),(0,s.jsx)("button",{onClick:function(){o(i||"")},className:"flex items-center justify-center px-4 border-l bg-vantevo-gray",children:(0,s.jsx)(r.jV,{})})]})})})}},84256:function(e,t,a){a.r(t),a.d(t,{default:function(){return q}});var s=a(34051),r=a.n(s),n=a(85893),l=a(20558),i=a(65865),c=a(67294),o=a(75398),x=a(88767),d=a(16651),p=a(33851),h=a(11163),u=a(25463),m=a(29957),f=a(25542),v=a(41664),j=a.n(v);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,s=new Array(t);a<t;a++)s[a]=e[a];return s}function w(e,t,a,s,r,n,l){try{var i=e[n](l),c=i.value}catch(o){return void a(o)}i.done?t(c):Promise.resolve(c).then(s,r)}function y(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function b(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},s=Object.keys(a);"function"===typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),s.forEach((function(t){y(e,t,a[t])}))}return e}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var s,r,n=[],l=!0,i=!1;try{for(a=a.call(e);!(l=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);l=!0);}catch(c){i=!0,r=c}finally{try{l||null==a.return||a.return()}finally{if(i)throw r}}return n}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"===typeof e)return g(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?g(e,t):void 0}}function z(e){var t,a=e.key_tab,s=(e.tab,e.link),v=e.source,g=(0,h.useRouter)(),y=(0,l._Y)(g.asPath),k=(0,l.ak)("compare",g.asPath),z=(0,c.useContext)(p.q),q=z.filters,S=z.setFilters,D=z.period,O=z.startDate,C=z.endDate,F=z.offset,A=z.setOffset,E=(0,c.useContext)(d.A),I=E.t,P=(E.lang,(0,c.useState)({item:"visitor_item",order:"desc"})),M=P[0],Z=(P[1],(0,c.useState)({items:[],totals:{}})),T=Z[0],K=Z[1],B=(0,c.useState)(""),H=B[0],L=B[1],Q=(0,c.useState)(!1),R=Q[0],U=Q[1],V=(0,c.useState)(!0),W=V[0],Y=V[1],$={domain:y,period:D||"30d",start:O,end:C,filter:q,offset:F,tab:a,order:M.item+"-"+M.order,search:H},G=(0,x.useQuery)([s,$],(t=r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.EH)(s,$);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),function(){var e=this,a=arguments;return new Promise((function(s,r){var n=t.apply(e,a);function l(e){w(n,s,r,l,i,"next",e)}function i(e){w(n,s,r,l,i,"throw",e)}l(void 0)}))}),{retry:2,staleTime:18e5,refetchInterval:!1,refetchIntervalInBackgroun
1d:!1,refetchOnWindowFocus:!1}),J=G.isLoading,X=G.data,ee=G.isError,te=(0,l.KF)(b({period:D,start:O,end:C},q))||null;(0,c.useEffect)((function(){return function(){A(0)}}),[]),(0,c.useEffect)((function(){if(v&&(Y(!0),U(!0)),0==F&&T.items.length>0&&K(b({},T,{items:[]})),X&&200==X.status){var e=X.list&&1==X.list.length&&Object.keys(X.list[0]).length>=0&&q&&q.compare;0==F?K(b({},T,{items:_(X.list),totals:X.totals,count:X.count,pagination:X.pagination})):e?(T.items.length>0&&(T.items[0]=b({},T.items[0],X.list[0])),K(b({},T,{items:_(T.items),totals:X.totals,count:X.count,pagination:X.pagination}))):K(b({},T,{items:_(T.items).concat(_(X.list)),totals:X.totals,count:X.count,pagination:X.pagination})),v&&(q&&q.compare&&k&&X.list&&1==X.list.length&&Object.keys(X.list[0]).length<X.pagination||q&&q.compare&&k&&X.list&&X.list.length<1||!k&&!q.compare&&X.pagination>X.list.length?U(!1):F<1&&A(1))}v&&Y(!1)}),[X]);var ae=function(){return(0,n.jsx)(j(),{href:"/dashboard/source/ecommerce",as:"/sites/"+y+"/source/ecommerce/"+a+"/"+(te?"?"+te:""),children:(0,n.jsx)("a",{className:"inline-flex",children:I.details})})};if(v&&ee)return(0,n.jsx)("div",{className:"flex flex-col md:flex-row flex-wrap justify-center items-center mb-2 px-4 py-2 sticky top-0 bg-red-200 z-10 rounded-md shadow-md",children:(0,n.jsx)("p",{className:"text-base font-bold text-center text-black my-2",children:I.error1})});if(v&&!J&&0==T.items.length)return(0,n.jsx)("div",{className:"flex items-start justify-center w-full h-screen bg-white z-10",children:(0,n.jsx)(m.default,{message:I.no_data})});if(v&&F<=0&&J&&0==T.items.length)return(0,n.jsx)("div",{className:"flex items-center justify-center w-full h-screen bg-transparent z-10",children:(0,n.jsx)(i.F8,{color:"#000",width:30,height:30})});var se=function(){return(0,n.jsx)(c.Fragment,{children:T.items.map((function(e,t){return(0,n.jsxs)("tr",{className:"group border-b border-gray-200 text-sm relative ".concat(t%2===0?"bg-white":"bg-vantevo-gray"," z-[1] tbody-vantevo-products"),children:[(0,n.jsx)("td",{className:"text-left sticky md:left-0 w-full ".concat(t%2===0?"bg-white":"bg-vantevo-gray"," z-[2]"),children:(0,n.jsxs)("div",{className:"relative py-2 px-2 border-r border-gray-200",children:[(0,n.jsx)("span",{className:"text-black cursor-pointer hover:underline hover:decoration-vantevo overflow-hidden break-words pr-[25px] line-clamp-2",title:e.variant,onClick:function(){return e.variant_2?(S({variant_3:e.variant}),!1):e.variant_1?(S({variant_2:e.variant}),!1):void S({variant_1:e.variant})},children:e.variant}),e.variant_1&&(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-vantevo text-[12px]",children:e.variant_1}),e.variant_2&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:" - "}),(0,n.jsx)("span",{className:"text-vantevo text-[12px]",children:e.variant_2})]})]})]})}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.uniq_visitor_view_item)}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.views)}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.art_purchase<0?0:e.art_purchase)}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.qta_purchase<0?0:e.qta_purchase)}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.products_to_cart<0?0:e.products_to_cart)}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.qta_totale_cart<0?0:e.qta_totale_cart)}),(0,n.jsxs)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:[e.purchase_perc," %"]}),(0,n.jsxs)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:[e.cart_perc," %"]})]},t)}))})},re=function(){return(0,n.jsx)(c.Fragment,{children:T&&T.items&&1==T.items.length&&Object.entries(T.items[0]).map((function(e,t){var a=N(e,2),s=a[0],r=a[1];return(0,n.jsxs)(c.Fragment,{children:[(0,n.jsxs)("tr",{className:"group border-b border-gray-200 text-sm relative bg-white",children:[(0,n.jsx)("td",{className:"text-left sticky md:left-0 w-full bg-vantevo-gray z-[2]",children:(0,n.jsxs)("div",{className:"relative py-2 px-2 border-r border-gray-200",children:[(0,n.jsx)("span",{className:"text-black cursor-pointer hover:underline hover:decoration-vantevo overflow-hidden break-words pr-[25px] line-clamp-2",title:(0,l.gM)(s),onClick:function(){return r[0].variant_2?(S({variant_3:(0,l.gM)(s)}),!1):r[0].variant_1?(S({variant_2:(0,l.gM)(s)}),!1):void S({variant_1:(0,l.gM)(s)})},children:(0,l.gM)(s)}),r[0].variant_1&&(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-vantevo text-[12px]",children:r[0].variant_1}),r[0].variant_2&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:" - "}),(0,n.jsx)("span",{className:"text-vantevo text-[12px]",children:r[0].variant_2})]})]})]})}),(0,n.jsx)("td",{className:"py-2 px-2 text-center whitespace-nowrap"}),(0,n.jsx)("td",{className:"py-2 px-2 text-center whitespace-nowrap"}),(0,n.jsx)("td",{className:"py-2 px-2 text-center whitespace-nowrap"}),(0,n.jsx)("td",{className:"py-2 px-2 text-center whitespace-nowrap"}),(0,n.jsx)("td",{className:"py-2 px-2 text-center whitespace-nowrap"}),(0,n.jsx)("td",{className:"py-2 px-2 text-center whitespace-nowrap"}),(0,n.jsx)("td",{className:"py-2 px-2 text-center whitespace-nowrap"}),(0,n.jsx)("td",{className:"py-2 px-2 text-center whitespace-nowrap"})]}),r.map((function(e,t){return(0,n.jsxs)("tr",{className:"group border-b border-gray-200 text-sm relative bg-white",children:[(0,n.jsx)("td",{className:"text-left sticky md:left-0 w-full bg-white z-[2]",children:(0,n.jsx)("div",{className:"relative border-r border-gray-200 py-2 px-2",children:(0,n.jsx)("span",{className:"text-black cursor-pointer hover:underline hover:decoration-vantevo overflow-hidden break-words pr-[25px] line-clamp-2",title:e.date,children:e.date})})}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.uniq_visitor_view_item)}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.views)}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.art_purchase<0?0:e.art_purchase)}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.qta_purchase<0?0:e.qta_purchase)}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.products_to_cart<0?0:e.products_to_cart)}),(0,n.jsx)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:(0,l.sD)(e.qta_totale_cart<0?0:e.qta_totale_cart)}),(0,n.jsxs)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:[e.purchase_perc," %"]}),(0,n.jsxs)("td",{className:"py-2 px-2 text-right whitespace-nowrap",children:[e.cart_perc," %"]})]},t)}))]},(0,l.gM)(s))}))})};return(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"w-full overflow-x-auto relative table-scroll min-h-[400px]",children:[(0,n.jsxs)("table",{className:"min-w-auto w-full table-fixed z-[9]",children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{className:"w-[250px] md:w-[400px] lg:w-[450px] xl:w-[450px]"}),(0,n.jsx)("col",{className:"w-[110px]"}),(0,n.jsx)("col",{className:"w-[110px]"}),(0,n.jsx)("col",{className:"w-[110px]"}),(0,n.jsx)("col",{className:"w-[110px]"}),(0,n.jsx)("col",{className:"w-[110px]"}),(0,n.jsx)("col",{className:"w-[110px]"}),(0,n.jsx)("col",{className:"w-[130px]"}),(0,n.jsx)("col",{className:"w-[130px]"})]}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{className:"bg-vantevo-gray border-b border-gray-500 z-[1] relative thead-vantevo-products",children:[(0,n.jsx)("th",{className:"text-left sticky md:left-0 top-0 w-full z-[3] bg-white",children:(0,n.jsxs)("div",{className:"flex w-full flex-col justify-between items-start h-[110px] border-r border-gray-200",children:[v&&(0,n.jsx)("p",{className:"text-black text-base",children:a}),!v&&(0,n.jsx)(u.Z,{t:I,onSearch:function(e){K(b({},T,{items:[]})),L(e)},placeholder:I.search_variant})]})}),(0,n.jsx)("th",{className:"text-right group sticky top-0 z-[2] bg-vantevo-gray",children:(0,n.jsxs)("div",{className:"flex flex-1 flex-col justify-between items-end h-[110px]",children:[(0,n.jsx)("div",{className:"w-full flex flex-row justify-end",children:(0,n.jsx)("p",{className:"text-black text-xs leading-normal text-right capitalize-first pl-2",children:I.visitors})}),(0,n.jsxs)("p",{className:"text-vantevo-text text-xs leading-normal capitalize-first",children:[I.totals,": ",T.totals.uniq_visitor_view_item]})]})}),(0,n.jsx)("th",{className:"text-right group sticky top-0 z-[2] bg-vantevo-gray",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-between items-end h-[110px]",children:[(0,n.jsx)("div",{className:"w-full flex flex-row justify-end",children:(0,n.jsx)("p",{className:"text-black text-xs leading-normal capitalize-first pl-2",children:I.views})}),(0,n.jsxs)("p",{className:"text-vantevo-text text-xs leading-normal capitalize-first",children:[I.totals,": ",T.totals.views]})]})}),(0,n.jsx)("th",{className:"text-right group sticky top-0 z-[2] bg-vantevo-gray",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-between items-end h-[110px]",children:[(0,n.jsx)("div",{className:"w-full flex flex-row justify-end",children:(0,n.jsx)("p",{className:"text-black text-xs leading-normal capitalize-first pl-2",children:I.products_purchased})}),(0,n.jsxs)("p",{className:"text-vantevo-text text-xs leading-normal capitalize-first",children:[I.totals,": ",T.totals.art_purchase]})]})}),(0,n.jsx)("th",{className:"text-right group sticky top-0 z-[2] bg-vantevo-gray",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-between items-end h-[110px]",children:[(0,n.jsx)("div",{className:"w-full flex flex-row justify-end",children:(0,n.jsx)("p",{className:"text-black text-xs leading-normal capitalize-first pl-2",children:I.qta_purchased})}),(0,n.jsxs)("p",{className:"text-vantevo-text text-xs leading-normal capitalize-first",children:[I.totals,": ",T.totals.qta_purchase]})]})}),(0,n.jsx)("th",{className:"text-right group sticky top-0 z-[2] bg-vantevo-gray",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-between items-end h-[110px]",children:[(0,n.jsx)("div",{className:"w-full flex flex-row justify-end",children:(0,n.jsx)("p",{className:"text-black text-xs leading-normal capitalize-first pl-2",children:I.present_cart})}),(0,n.jsxs)("p",{className:"text-vantevo-text text-xs leading-normal capitalize-first",children:[I.totals,": ",T.totals.products_to_cart]})]})}),(0,n.jsx)("th",{className:"text-right group sticky top-0 z-[2] bg-vantevo-gray",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-between items-end h-[110px]",children:[(0,n.jsx)("div",{className:"w-full flex flex-row justify-end",children:(0,n.jsx)("p",{className:"text-black text-xs leading-normal capitalize-first pl-2",children:I.qta_present_cart})}),(0,n.jsxs)("p",{className:"text-vantevo-text text-xs leading-normal capitalize-first",children:[I.totals,": ",T.totals.qta_totale_cart]})]})}),(0,n.jsx)("th",{className:"text-right group sticky top-0 z-[2] bg-vantevo-gray",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-between items-end h-[110px]",children:[(0,n.jsx)("div",{className:"w-full flex flex-row justify-end",children:(0,n.jsx)("p",{className:"text-black text-xs leading-normal capitalize-first pl-2",children:I.purc_view_rate})}),(0,n.jsxs)("p",{className:"text-vantevo-text text-xs leading-normal capitalize-first",children:[I.totals,": ",(0,l._Z)(T.totals.uniq_visitor_purchase,T.totals.uniq_visitor_view_item)," %"]})]})}),(0,n.jsx)("th",{className:"text-right group sticky top-0 z-[2] bg-vantevo-gray",children:(0,n.jsxs)("div",{className:"w-full flex flex-col justify-between items-end h-[110px]",children:[(0,n.jsx)("div",{className:"w-full flex flex-row justify-end",children:(0,n.jsx)("p",{className:"text-black text-xs leading-normal capitalize-first pl-2",children:I.cart_view_rate})}),(0,n.jsxs)("p",{className:"text-vantevo-text text-xs leading-normal capitalize-first",children:[I.totals,": ",(0,l._Z)(T.totals.uniq_visitor_add_to_cart,T.totals.uniq_visitor_view_item)," %"]})]})})]})}),(0,n.jsx)("tbody",{className:"text-black",children:q&&q.compare&&"realtime"!=D&&k?(0,n.jsx)(re,{}):(0,n.jsx)(se,{})})]}),J&&(0,n.jsx)("div",{className:"flex items-center justify-center absolute top-0 left-0 w-full h-[400px] bg-transparent z-10",children:(0,n.jsx)(i.F8,{color:"#000",width:30,height:30})}),0==T.items.length&&!J&&(0,n.jsx)("p",{className:"text-center mt-10",children:I.no_data}),!J&&T.items.length==T.pagination&&!v&&(0,n.jsx)("div",{className:"text-center mt-4",children:(0,n.jsx)(ae,{})}),T&&T.items&&1==T.items.length&&Object.keys(T.items[0]).length==T.pagination&&!v&&q&&q.compare&&k&&!J&&(0,n.jsx)("div",{className:"text-center mt-2",children:(0,n.jsx)(ae,{})}),!J&&v&&R&&(0,n.jsx)("div",{className:"text-center my-10",children:(0,n.jsx)(f.Z,{loading:W,disabled:W,onClick:function(){A(F+1),Y(!0)},children:I.load})})]})})}function q(e){var t=e.key_tab,a=e.tab,s=e.link,r=e.source;return a!=t?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(z,{key_tab:t,tab:a,link:s,source:r})}},29957:function(e,t,a){a.r(t),a.d(t,{default:function(){return r}});var s=a(85893);function r(e){var t=e.t,a=e.message,r=e.no_data;return(0,s.jsx)("p",{className:"text-center mt-10",children:a||r||t})}}}]);

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.