PageSourceSearch

https://www.hajurbuwa.com/_next/static/chunks/pages/notifications-505311f565a5af36.js

js hajurbuwa.com collected 2026-10-02 01:32:24 UTC 15,228 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8769],{1865:function(e,a,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications",function(){return r(3535)}])},9558:function(e,a,r){"use strict";r.d(a,{Z:function(){return s}});var t=r(5893),n=r(7294),o=r(2179),l=r(348);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(a){let[r,s]=(0,n.useState)({accessGranted:!1,userDetails:{}});return(0,t.jsx)(e,{...a,access:r,initialiseBase:()=>{try{let e=localStorage.getItem("userDetails"),a=localStorage.getItem(l.Wd);"string"==typeof e&&(e=JSON.parse(e)),a&&(o.M.defaults.headers.common.Authorization="Bearer ".concat(a),s({accessGranted:!0,userDetails:e}))}catch(e){console.log(e)}}})}}},416:function(e,a,r){"use strict";r.d(a,{Z:function(){return i}});var t=r(5893),n=r(9008),o=r.n(n),l=r(348),s=r(5651),c=r(4605);function i(e){let{type:a,name:r,path:n,image:i,titleOverride:u,descriptionOverride:p,keywordsOverride:d,noindex:h}=e,b=null!=u?u:(0,s.T$)(a,r),w=null!=p?p:(0,s.$O)(a,r),m=d?d.join(", "):(0,c.Q9)(a,r),g="".concat(l._O).concat(n),f=null!=i?i:l.R9;return(0,t.jsxs)(o(),{children:[(0,t.jsx)("title",{children:b}),(0,t.jsx)("meta",{name:"description",content:w}),(0,t.jsx)("meta",{name:"keywords",content:m}),h&&(0,t.jsx)("meta",{name:"robots",content:"noindex, follow"}),(0,t.jsx)("link",{rel:"canonical",href:g}),(0,t.jsx)("meta",{property:"og:title",content:b}),(0,t.jsx)("meta",{property:"og:description",content:w}),(0,t.jsx)("meta",{property:"og:url",content:g}),(0,t.jsx)("meta",{property:"og:type",content:"product"===a?"product":"website"}),(0,t.jsx)("meta",{property:"og:image",content:f}),(0,t.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,t.jsx)("meta",{name:"twitter:title",content:b}),(0,t.jsx)("meta",{name:"twitter:description",content:w}),(0,t.jsx)("meta",{name:"twitter:image",content:f})]})}},3535:function(e,a,r){"use strict";r.r(a),r.d(a,{default:function(){return m}});var t=r(5893),n=r(7294),o=r(1163),l=r(3636),s=r(9558),c=r(416),i=r(1053);let u="/order-management";function p(e,a){for(let r of a.split("|")){let a=e.match(RegExp("[?&]".concat(r,"=([^&#]+)"),"i"));if(a)return decodeURIComponent(a[1])}return null}function d(e,a){let r=e.match(RegExp("/(?:".concat(a,")/([A-Za-z0-9_-]+)"),"i"));return r?r[1]:null}var h=r(9616);let b={order:"Orders",group_deal:"Group deals",system:"System",promotion:"Offers",product:"Products",finance:"Payments"},w=h.qq.filter(e=>"product"!==e);var m=(0,s.Z)(function(e){var a;let{access:r,initialiseBase:s}=e,m=(0,o.useRouter)(),[g,f]=(0,n.useState)(null),[j,x]=(0,n.useState)("order"),[y,k]=(0,n.useState)(!0);(0,n.useEffect)(()=>{m.isReady&&(s(),(0,h.TH)().then(e=>f((0,h.DF)(e).buckets)).catch(()=>f(null)).finally(()=>k(!1)))},[m.isReady]);let N=e=>{Number(e.is_read)||(f(a=>{var r;if(!a)return a;let t={...a};return t[e.type]=(null!==(r=a[e.type])&&void 0!==r?r:[]).map(a=>({...a,data:a.data.map(a=>a.id===e.id?{...a,is_read:1}:a)})),t}),(0,h.iG)(e.id).catch(()=>{}))},H=e=>{N(e),m.push(function(e,a){var r,t,n,o,l,s,c;if((null==a?void 0:a.type)==="invoice"&&a.id)return"/account/finance/invoice/".concat(a.id);let i=(null!=e?e:"").trim();if(!i)return(null==a?void 0:a.type)==="order"&&a.id?"/order?order_id=".concat(a.id):(null==a?void 0:a.type)==="product"&&a.id?"/product?productId=".concat(a.id):u;if(i.includes("/rankings")){let e=null!==(r=p(i,"categoryID|id"))&&void 0!==r?r:d(i,"rankings");return e?"/rankings/".concat(e):"/rankings"}if(i.includes("/brand")){let e=null!==(t=p(i,"brandID|id"))&&void 0!==t?t:d(i,"brand|brand-product");return e?"/brand-product?brandID=".concat(e):"/brands"}if(i.includes("/category")){let e=null!==(n=p(i,"categoryID|id"))&&void 0!==n?n:d(i,"category");return e?"/category?categoryID=".concat(e):"/category"}let h=d(i,"seller-campaigns");if(h)return"/seller-campaigns/".concat(h);if(i.includes("/seller")||i.includes("/store")||i.includes("seller?")){let e=null!==(o=p(i,"sellerID|storeID|id"))&&void 0!==o?o:d(i,"store|seller");return e?"/store?sellerID=".concat(e):u}if(i.includes("/order")){let e=null!==(l=p(i,"orderID|order_id|id"))&&void 0!==l?l:d(i,"order|orders");return e?"/order?order_id=".concat(e):u}if(i.includes("/product")){let e=null!==(s=p(i,"productId|id"))&&void 0!==s?s:d(i,"product");return e?"/product?productId=".concat(e):"/products/browse"}if(i.includes("/group")){let e=null!==(c=p(i,"groupOrderID|groupID|id"))&&void 0!==c?c:d(i,"group-order|group");return e?"/group-order?groupID=".concat(e):u}return u}(e.link,e.entity))},v=e=>e.forEach(N),_=null!==(a=null==g?void 0:g[j])&&void 0!==a?a:[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Z,{type:"page",name:"Notifications",path:"/notifications",noindex:!0}),(0,t.jsx)(l.Z,{backTitle:"Notifications",wholePageLoader:y,accessGranted:r.accessGranted,children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-3xl py-4",children:[(0,t.jsx)("div",{className:"mb-4 flex gap-2 overflow-x-auto pb-1",children:w.map(e=>{var a;let r=(0,h.Il)(null!==(a=null==g?void 0:g[e])&&void 0!==a?a:[]),n=e===j;return(0,t.jsxs)("button",{type:"button",onClick:()=>x(e),className:"flex shrink-0 items-center gap-1.5 rounded-full px-4 py-2 text-sm font-semibold transition-colors ".concat(n?"bg-primary text-white":"bg-box text-black hover:bg-backgroundColor"),children:[b[e],r>0&&(0,t.jsx)("span",{className:"min-w-[18px] rounded-full px-1 text-[10px] font-bold ".concat(n?"bg-white text-primary":"bg-primary text-white"),children:r>99?"99+":r})]},e)})}),0===_.length?(0,t.jsx)("p",{className:"py-12 text-center text-grey",children:r.accessGranted?"Nothing here yet.":"Sign in to see your notifications."}):_.map(e=>{var a;let r=(null!==(a=e.data)&&void 0!==a?a:[]).filter(e=>!Number(e.is_read));return(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"text-sm font-bold uppercase tracking-wide text-grey",children:e.title}),r.length>0&&(0,t.jsx)("button",{type:"button",onClick:()=>v(r),className:"text-xs font-semibold text-secondaryColor hover:underline",children:"Mark all as read"})]}),(0,t.jsx)("div",{className:"overflow-hidden rounded-xl border border-backgroundColor bg-white",children:e.data.map((e,a)=>{let r=(0,i.CO)(e.image);return(0,t.jsxs)("button",{type:"button",onClick:()=>H(e),className:"flex w-full items-start gap-3 p-4 text-left hover:bg-backgroundLightColor ".concat(a>0?"border-t border-backgroundColor":""," ").concat(Number(e.is_read)?"":"bg-blue-1"),children:[r?(0,t.jsx)("img",{src:r,alt:"",className:"h-10 w-10 shrink-0 rounded-lg object-cover"}):(0,t.jsx)("span",{className:"h-10 w-10 shrink-0 rounded-lg bg-box"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block text-sm font-bold text-black",children:e.title}),(0,t.jsx)("span",{className:"mt-0.5 block text-sm text-grey",children:e.message}),(0,t.jsx)("span",{className:"mt-1 block text-xs text-lightGrey",children:e.created})]}),!Number(e.is_read)&&(0,t.jsx)("span",{className:"mt-1 h-2 w-2 shrink-0 rounded-full bg-primary"})]},e.id)})})]},e.title)})]})})]})})},5651:function(e,a,r){"use strict";r.d(a,{$O:function(){return c},PY:function(){return o},T$:function(){return s}});var t=r(4605);let n={product:"this product",store:"this store",category:"this category",brand:"these products",collection:"these products",search:"these products",home:"Hajurbuwa",page:"this page",ranking:"top rankings",campaign:"this sale",groupOrder:"this group buy"};function o(e,a){let r=a||n[e];switch(e){case"product":return"Buy ".concat(r," at best wholesale price in Nepal with Hajurbuwa app");case"store":return"Shop from ".concat(r," at best wholesale prices in Nepal with Hajurbuwa app");case"category":return"Buy ".concat(r," at the best wholesale prices in Nepal with Hajurbuwa app");case"brand":return"Buy ".concat(r," products at the best wholesale prices in Nepal with Hajurbuwa app");case"collection":return"Explore ".concat(r," at the best wholesale prices in Nepal with Hajurbuwa app");case"search":return"Find ".concat(r," at the best wholesale prices in Nepal with Hajurbuwa app");case"home":return"Shop wholesale prices in Nepal with the Hajurbuwa app";case"page":return"".concat(r," — Hajurbuwa, Nepal's wholesale marketplace for shops and retailers");case"ranking":return a?"Check out the top-ranked ".concat(a," products at wholesale price in Nepal with Hajurbuwa app"):"Check out ".concat(r," at wholesale price in Nepal with Hajurbuwa app");case"campaign":return"Check out ".concat(r," at the best wholesale prices in Nepal with Hajurbuwa app");case"groupOrder":return"Join my group buy for ".concat(r," at the best wholesale price in Nepal with Hajurbuwa app")}}function l(e,a,r){var t;let n="".concat(e).concat(a);if(n.length<=60)return n;let o="".concat(e).concat(r);return o.length<=60?o:"".concat((t=60-r.length,e.length<=t?e:"".concat(e.slice(0,Math.max(0,t-1)).trimEnd(),"…"))).concat(r)}function s(e,a){switch(e){case"product":return a?l(a," | Wholesale Price in Nepal | Hajurbuwa"," | Hajurbuwa"):"Wholesale Products in Nepal | Hajurbuwa";case"brand":return a?l(a," Wholesale Price in Nepal | Hajurbuwa"," | Hajurbuwa"):"Wholesale Brands in Nepal | Hajurbuwa";case"category":return a?l(a," Wholesale in Nepal | Hajurbuwa"," | Hajurbuwa"):"Wholesale Products in Nepal | Hajurbuwa";case"store":return a?l(a," | Wholesale Seller in Nepal | Hajurbuwa"," | Hajurbuwa"):"Wholesale Sellers in Nepal | Hajurbuwa";case"search":return a?l(a," Wholesale in Nepal | Hajurbuwa"," | Hajurbuwa"):"Search Wholesale Products | Hajurbuwa";case"collection":case"page":return a?"".concat(a," | Hajurbuwa"):"Hajurbuwa";case"home":return"Hajurbuwa | Wholesale Platform for Nepal Shops & Retailers";case"ranking":return a?l(a," Top Rankings | Hajurbuwa"," | Hajurbuwa"):"Top Rankings | Hajurbuwa";case"campaign":return a?l(a," | Hajurbuwa"," | Hajurbuwa"):"Seasonal Sale | Hajurbuwa";case"groupOrder":return a?"Group Buy: ".concat(a," | Hajurbuwa"):"Group Buy | Hajurbuwa"}}function c(e,a){let r=a||n[e];switch(e){case"product":return"Buy ".concat(r," at wholesale price in Nepal. Fast wholesale ordering for shops and retailers on Hajurbuwa.");case"brand":return a?"Shop genuine ".concat(r," products at wholesale price in Nepal. Bulk ").concat(r," stock for shops and retailers on Hajurbuwa, Nepal's wholesale marketplace."):"Shop ".concat(r," products at wholesale prices in Nepal. Hajurbuwa is a one-stop wholesale marketplace for shops and retailers.");case"category":{let e=(0,t.PN)(a).slice(0,3);return a?"Buy ".concat(r," at wholesale price in Nepal").concat(e.length?" — ".concat(e.join(", ")," and more in bulk"):" in bulk"," for shops and retailers on Hajurbuwa."):"Browse ".concat(r," at wholesale prices in Nepal. Hajurbuwa connects retailers with trusted wholesale suppliers.")}case"store":return a?"Buy wholesale from ".concat(r," on Hajurbuwa — bulk prices in Nepal for shops and retailers, online or on the Hajurbuwa app."):"Shop wholesale products from ".concat(r," on Hajurbuwa, Nepal's wholesale marketplace for shops and retailers.");case"search":return a?"".concat(r," at wholesale price in Nepal — compare bulk prices from wholesale suppliers on Hajurbuwa."):"Search results for ".concat(r," — wholesale prices for shops and retailers on Hajurbuwa.");case"collection":return"Explore ".concat(r," at wholesale prices on Hajurbuwa, Nepal's one-stop wholesale marketplace for retailers.");case"home":return"Hajurbuwa is Nepal's wholesale marketplace app for shops and retailers — buy mobile, electronics, and general goods in bulk at wholesale prices.";case"page":return a?"".concat(a," — information about Hajurbuwa, Nepal's wholesale marketplace for shops and retailers."):"Information about Hajurbuwa, Nepal's wholesale marketplace for shops and retailers.";case"ranking":return a?"The top-selling ".concat(a," products on Hajurbuwa, ranked — wholesale prices for shops and retailers in Nepal."):"".concat(r," on Hajurbuwa — the best-selling wholesale products in Nepal, by category.");case"campaign":return a?"".concat(a," — seasonal wholesale deals on Hajurbuwa for shops and retailers in Nepal."):"Seasonal wholesale deals on Hajurbuwa, Nepal's marketplace for shops and retailers.";case"groupOrder":return a?"Join the group buy for ".concat(a," at wholesale price on Hajurbuwa."):"Join a group buy at wholesale price on Hajurbuwa, Nepal's marketplace for shops and retailers."}}},4605:function(e,a,r){"use strict";r.d(a,{PN:function(){return o},Q9:function(){return c}});let t={"earphones and neckbands":["earbuds","tws earbuds","bluetooth earphones","neckband earphones"],"headphones and speakers":["headphones","bluetooth speakers","wireless headphones"],"power banks":["power bank","portable charger"],"chargers and cables":["mobile charger","usb cable","data cable","fast charger"],"mobile battery":["phone battery","smartphone battery"]},n=e=>e.toLowerCase().replace(/&/g,"and").replace(/\s+/g," ").trim();function o(e){var a;return e&&null!==(a=t[n(e)])&&void 0!==a?a:[]}let l=["wholesale market in nepal","wholesale suppliers in nepal","b2b wholesale marketplace nepal","bulk price for shops and retailers"],s=e=>Array.from(new Set(e.map(e=>
1e.trim()).filter(Boolean)));function c(e,a){return(function(e,a){let r=null==a?void 0:a.trim(),t=null==r?void 0:r.toLowerCase();switch(e){case"category":{if(!t)return l;let e=["".concat(t," wholesale in nepal"),"".concat(t," price in nepal"),"buy ".concat(t," in bulk in nepal"),"".concat(t," suppliers in nepal")];for(let a of o(r))e.push("".concat(a," wholesale in nepal"),"".concat(a," price in nepal"));return s([...e,...l])}case"brand":if(!t)return s(["wholesale brands in nepal",...l]);return s(["".concat(t," wholesale in nepal"),"".concat(t," price in nepal"),"".concat(t," distributor in nepal"),"genuine ".concat(t," products in nepal"),"".concat(t," bulk supplier nepal"),...l]);case"store":return s([...t?["".concat(t," wholesale supplier nepal"),"buy wholesale from ".concat(t)]:[],"wholesale sellers in nepal",...l]);case"product":if(!t)return l;return s(["".concat(t," price in nepal"),"".concat(t," wholesale price in nepal"),"buy ".concat(t," in nepal"),...l]);case"search":if(!t)return l;return s(["".concat(t," wholesale in nepal"),"".concat(t," price in nepal"),...l]);case"home":return s([...l,"online wholesale shopping nepal","mobile accessories wholesale nepal","cosmetics wholesale in nepal","stationery wholesale in nepal"]);case"collection":return s([...t?["".concat(t," wholesale in nepal")]:[],...l]);case"page":return l;case"ranking":return s([...t?["best selling ".concat(t," in nepal"),"top ".concat(t," wholesale nepal")]:[],"top selling wholesale products nepal",...l]);case"campaign":return s([...t?["".concat(t," wholesale sale nepal")]:[],"seasonal wholesale deals nepal","wholesale discounts nepal",...l]);case"groupOrder":return s([...t?["".concat(t," group buy nepal")]:[],"group buy wholesale nepal","bulk group order nepal",...l])}})(e,a).slice(0,14).join(", ")}},9008:function(e,a,r){e.exports=r(3867)}},function(e){e.O(0,[4838,3365,6660,5675,999,8738,3636,2888,9774,179],function(){return e(e.s=1865)}),_N_E=e.O()}]);

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.