PageSourceSearch

https://www.nameclub.com/web/assets/BByNS7tP.js

js nameclub.com collected 2026-10-09 22:41:48 UTC 1,434 bytes, 1 lines download raw bytes

1import{a2 as p,Y as m,A as W,a$ as y,k as C,ae as S,U as w,S as f}from"./CYMs3uwY.js";import{u as v}from"./BhCObGnq.js";const g=()=>({getWishlist:t=>p.get("/wishlist/list",t),getWishlistOnCSR:t=>m.get("/wishlist/list",t),addWish:t=>m.post("/wishlist/add",{},{domain:t}),removeWish:t=>m.post("/wishlist/remove",{},{domain:t}),moveToCart:t=>m.post("/wishlist/move-to-cart",{wishlistIds:[t.wishlistId],cartId:t.cartId}),moveFromCart:t=>p.post("/wishlist/move-from-cart",t)}),I=()=>{const c=W(),u=v(),{getWishlistOnCSR:e}=g(),r=y("glouble-wishCount",()=>0);return{wishCount:r,refreshWishCount:async()=>{var t;if(!c.isLogin)return;const l=await e({cartId:u.shoppingCart.cartId,offset:0,limit:1});r.value=Number(((t=l.data)==null?void 0:t.total)||0)}}},F=()=>{const{removeWish:c,moveToCart:u}=g(),e=v(),{refreshWishCount:r}=I(),o=C(!1),l=async(a,{openEdge:n=!0,withLoading:s=!0}={})=>{if(!(s&&o.value)){s&&(o.value=!0);try{const i={wishlistId:a,cartId:e.shoppingCart.cartId};await u(i),r(),n?e.setEdgeShoppingCart():e.refreshShoppingCart()}catch(i){f({type:"error",message:i.msg})}finally{s&&(o.value=!1)}}},t=S(),d=a=>{w(t(`/domain/${a}`))},h=C(!1);return{moveToCartLoading:o,removeLoading:h,moveToCart:l,handleRemove:async(a,{afterRemove:n,withLoading:s=!0})=>{try{if(s&&h.value)return;s&&(h.value=!0),await c(a),r(),n==null||n()}catch(i){f({type:"error",message:i.msg})}finally{s&&(h.value=!1)}},buyNow:d}};export{g as a,F as b,I as u};

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.