PageSourceSearch

https://teemdrop.com/_nuxt/Dsx5wvGu.js

js teemdrop.com collected 2026-09-25 18:51:09 UTC 7,417 bytes, 1 lines download raw bytes

1import{A as W}from"./rzr1vcYR.js";import{d as E,A as V,z as v,o as T,a,y as s,N as D,C as e,aj as Y,ak as Q,x as m,al as O,a9 as F,a0 as k,a1 as S,E as y,D as C,K as j,a5 as B,a3 as N,a4 as $,_ as z,Q as q,F as I,U as X,w as ee}from"./ZPaimFvj.js";import{_ as R,a as J}from"./BjhYqHWo.js";import{C as K}from"./B7q-CiZz.js";import{_ as te}from"./DaiVIdSZ.js";const Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAACOSURBVDiNpdLBDcMgDAXQ/5MeOkZG6YW5Quf6SJ0hm3QDcgqiCVBDfELYPIwwUYkQwgfAq5bPY7IU/YtHI7dV9i/dsedGSZ7ket43P6cAfI/FPALEGN8knwAWUyclwDnn85omYgGaiBWoIj0ASnPSAaQ5+pmT3g4uyCiQkDsAAPAugPPvjAApJHlJY4cB7J51ZZY3a2WKAAAAAElFTkSuQmCC",oe={key:0,class:"search-box-content"},se={key:1,class:"hot-product-list"},le={class:"product-item-box"},ae={key:2,class:"hot-product-list"},ne={class:"product-item-box"},ie=["onClick"],re={class:"product-item-content"},ce={class:"product-item-name"},ue={class:"product-item-price"},de=E({__name:"HotProductBlock.mobile",props:{hotProductList:{default:()=>[]},showSearch:{type:Boolean,default:!0},mobileLimit:{default:0},showMobileMore:{type:Boolean,default:!1}},setup(_){const t=_,c=V(()=>{const g=t.hotProductList||[];return t.mobileLimit>0?g.slice(0,t.mobileLimit):g}),d=V(()=>t.mobileLimit>0?t.mobileLimit:4),u=v(""),h=v({firstName:"",lastName:"",userNumber:""}),P={firstName:"",lastName:"",userNumber:""},M=()=>{h.value=B()?JSON.parse(B()):P},A=()=>{u.value&&N(`/search-list?keyword=${u.value}`,{external:!0})},p=g=>{$(`/product/detail?source=TD&id=${g}`)},x=()=>{if(!h.value.firstName){N("/login?type=register",{external:!0});return}$("/home/hotProducts")};return T(()=>{M()}),(g,i)=>(s(),a("div",{class:j(["search-box",{"search-box-no-search":!t.showSearch}])},[t.showSearch?(s(),a("div",oe,[i[1]||(i[1]=e("img",{src:R,class:"search-icon",alt:"TeemDrop Logo"},null,-1)),i[2]||(i[2]=e("span",{class:"search-box-content-title notranslate"},null,-1)),Y(e("input",{"onUpdate:modelValue":i[0]||(i[0]=r=>F(u)?u.value=r:null),maxlength:"50",variant:"none",style:{border:"none"},class:"search-input","trailing-icon":"i-lucide-search",placeholder:"Find the product you're looking for",onKeyup:O(A,["enter"])},null,544),[[Q,m(u)]]),e("img",{src:J,class:"search-icon",alt:"search icon",onClick:A})])):D("",!0),t.hotProductList?.length?(s(),a("div",ae,[e("div",ne,[(s(!0),a(k,null,S(m(c),(r,L)=>(s(),a("div",{key:L,class:"product-item",onClick:H=>p(r.id)},[y(K,{src:r.image,alt:r.nameEn,width:"176px",height:"176px",loading:L<4?"eager":"lazy",fetchpriority:"low",decoding:"async"},null,8,["src","alt","loading"]),e("div",re,[e("div",ce,C(r.nameEn),1),e("div",ue,"$"+C(r.productPrice),1)])],8,ie))),128))])])):(s(),a("div",se,[e("div",le,[(s(!0),a(k,null,S(m(d),r=>(s(),a("div",{key:r,class:"product-item product-item-skeleton"},[...i[3]||(i[3]=[e("div",{class:"skeleton-block skeleton-image"},null,-1),e("div",{class:"product-item-content"},[e("div",{class:"skeleton-line skeleton-name"}),e("div",{class:"skeleton-line skeleton-price"})],-1)])]))),128))])])),t.showMobileMore&&m(c).length?(s(),a("p",{key:3,class:"more-learn-box",onClick:x},[...i[4]||(i[4]=[e("img",{src:Z,class:"more-gray-icon",alt:"view-icon"},null,-1),e("span",{class:"view-more-text"},"View more dropshipping products",-1)])])):D("",!0)],2))}}),me=Object.assign(z(de,[["__scopeId","data-v-7071c6ad"]]),{__name:"HotProductBlockMobile"}),he={key:0,class:"search-box-content"},pe={class:"skeleton-hot-product-list"},ge={class:"skeleton-product-item-box"},fe={class:"hot-product-list"},ve={class:"product-item-box"},ke=["onClick"],_e={class:"product-item-name"},Ae={class:"product-item-price"},we=3e3,be=E({__name:"HotProductBlock.pc",props:{hotProductList:{default:()=>[]},showSearch:{type:Boolean,default:!0}},setup(_){const t=_,c=V(()=>{const l=t.hotProductList;if(!l.length)return[];if(l.length<=6)return[{list:l}];const o=Array.from({length:30},(w,n)=>l[n%l.length]);return Array.from({length:5},(w,n)=>({list:o.slice(n*6,n*6+6)}))}),d=v(0),u=v(!1),h=new Set,P=()=>{d.value=Math.min(1,c.value.length-1),u.value=c.value.length>1},M=l=>{d.value=Math.min(Math.max(d.value,l+1),c.value.length-1)},A=(l,o)=>{const w=c.value[l]?.list[o];if(l!==0||!w?.image||h.has(o))return;h.add(o);const n=c.value[0]?.list.filter(f=>f.image).length??0;!n||h.size<n||P()};q(c,async l=>{h.clear(),d.value=0,u.value=!1,l.length&&!l[0]?.list.some(o=>o.image)&&(await X(),P())},{immediate:!0});const p=v(""),x=v({firstName:"",lastName:"",userNumber:""}),g={firstName:"",lastName:"",userNumber:""},i=()=>{x.value=B()?JSON.parse(B()):g},r=()=>{p.value&&N(`/search-list?keyword=${p.value}`,{external:!0})},L=l=>{$(`/find-product/product-detail?id=${l}`)},H=()=>
1{if(!x.value.firstName){N("/login?type=register",{external:!0});return}$("/find-product/hot-selling-products")};return T(()=>{i()}),(l,o)=>{const w=te;return s(),a("div",{class:j(["search-box",{"search-box-no-search":!t.showSearch}])},[t.showSearch?(s(),a("div",he,[o[1]||(o[1]=e("img",{src:R,class:"search-icon",alt:"TeemDrop Logo"},null,-1)),o[2]||(o[2]=e("span",{class:"search-box-content-title notranslate"},"Teemdrop",-1)),Y(e("input",{"onUpdate:modelValue":o[0]||(o[0]=n=>F(p)?p.value=n:null),maxlength:"50",variant:"none",style:{border:"none"},class:"search-input","trailing-icon":"i-lucide-search",placeholder:"Find the product you're looking for",onKeyup:O(r,["enter"])},null,544),[[Q,m(p)]]),e("img",{src:J,class:"search-icon",alt:"search icon",onClick:r})])):D("",!0),t.hotProductList?.length?(s(),a(k,{key:2},[e("div",fe,[y(w,{loop:"",autoplay:m(u)?{delay:we}:!1,items:m(c),class:"hot-product-list-carousel",onSelect:M},{default:I(({item:n,index:f})=>[e("div",ve,[(s(!0),a(k,null,S(n.list,(b,U)=>(s(),a("div",{key:U,class:"product-item",onClick:G=>L(b.id)},[y(K,{src:f<=m(d)?b.image:"",alt:b.nameEn,width:"176px",height:"176px",loading:f===0?"eager":"lazy",fetchpriority:"low",decoding:"async",onLoad:G=>A(f,U),onError:G=>A(f,U)},null,8,["src","alt","loading","onLoad","onError"]),e("div",_e,C(b.nameEn),1),e("div",Ae,"$"+C(b.productPrice),1)],8,ke))),128))])]),_:1},8,["autoplay","items"])]),e("p",{class:"more-learn-box",onClick:H},[...o[5]||(o[5]=[e("img",{src:Z,class:"more-gray-icon",alt:"view-icon"},null,-1),e("span",{class:"view-more-text"},"View more dropshipping products",-1)])])],64)):(s(),a(k,{key:1},[e("div",pe,[e("div",ge,[(s(),a(k,null,S(6,n=>e("div",{key:n,class:"product-item product-item-skeleton"},[...o[3]||(o[3]=[e("div",{class:"skeleton-block skeleton-image"},null,-1),e("div",{class:"skeleton-line skeleton-name"},null,-1),e("div",{class:"skeleton-line skeleton-price"},null,-1)])])),64))])]),o[4]||(o[4]=e("div",{class:"skeleton-more"},null,-1))],64))],2)}}}),ye=Object.assign(z(be,[["__scopeId","data-v-87a4c73c"]]),{__name:"HotProductBlockPc"}),Pe=E({__name:"index",props:{hotProductList:{default:()=>[]},showSearch:{type:Boolean,default:!0},mobileLimit:{default:0},showMobileMore:{type:Boolean,default:!1}},setup(_){const t=_;return(c,d)=>(s(),ee(W,null,{pc:I(()=>[y(ye,{"hot-product-list":t.hotProductList,"show-search":t.showSearch},null,8,["hot-product-list","show-search"])]),mobile:I(()=>[y(me,{"hot-product-list":t.hotProductList,"show-search":t.showSearch,"mobile-limit":t.mobileLimit,"show-mobile-more":t.showMobileMore},null,8,["hot-product-list","show-search","mobile-limit","show-mobile-more"])]),_:1}))}}),Ne=Object.assign(Pe,{__name:"HotProductBlock"});export{Ne as H};

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.