PageSourceSearch

https://marketplaceapp.com/_next/static/chunks/app/global-error-969af81e7c3ba42c.js

js marketplaceapp.com collected 2026-09-28 06:44:47 UTC 11,502 bytes, 16 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6470],{29129:function(e,t,n){Promise.resolve().then(n.bind(n,77490))},33480:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2265),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
2 * @license lucide-react v0.363.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let c=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{color:o="currentColor",size:u=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:f="",children:d,...m}=n;return(0,r.createElement)("svg",{ref:a,...i,width:u,height:u,stroke:o,strokeWidth:l?24*Number(s)/Number(u):s,className:["lucide","lucide-".concat(c(e)),f].join(" "),...m},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(d)?d:[d]])});return n.displayName="".concat(e),n}},76780:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
7 * @license lucide-react v0.363.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */let r=(0,n(33480).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},66706:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
12 * @license lucide-react v0.363.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let r=(0,n(33480).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},77490:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(57437),i=n(2265),c=n(89733),a=n(76780),o=n(66706),u=n(89506);function s(e){let{error:t,reset:n}=e;return(0,i.useEffect)(()=>{console.error("Global critical error:",t);let e=t.digest?"critical: ".concat(t.message," (").concat(t.digest,")"):"critical: ".concat(t.message||"Unknown root error");(0,u.OO)(e,!0).catch(()=>{})},[t]),(0,r.jsx)("html",{children:(0,r.jsx)("body",{children:(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-white",children:(0,r.jsxs)("div",{className:"text-center max-w-md mx-auto px-4",children:[(0,r.jsx)("div",{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-red-100 flex items-center justify-center",children:(0,r.jsx)(a.Z,{className:"h-8 w-8 text-red-600"})}),(0,r.jsx)("h2",{className:"text-2xl font-bold mb-2 text-gray-900",children:"Something went wrong!"}),(0,r.jsx)("p",{className:"text-gray-600 mb-6",children:"A critical error occurred. Please refresh the page."}),(0,r.jsxs)(c.z,{onClick:n,className:"gap-2",children:[(0,r.jsx)(o.Z,{className:"h-4 w-4"}),"Try again"]})]})})})})}},89733:function(e,t,n){"use strict";n.d(t,{d:function(){return u},z:function(){return s}});var r=n(57437),i=n(2265),c=n(13027),a=n(3274),o=n(49354);let u=(0,c.j)("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98]",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm hover:shadow-md",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",success:"bg-success text-success-foreground hover:bg-success/90 shadow-sm",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm",gradient:"bg-gradient-to-r from-primary to-primary text-white hover:opacity-90 shadow-md"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-lg px-8 text-base",xl:"h-12 rounded-lg px-10 text-lg",icon:"h-10 w-10","icon-sm":"h-8 w-8","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),s=i.forwardRef((e,t)=>
16{let{className:n,variant:i,size:c,isLoading:s,leftIcon:l,rightIcon:f,children:d,disabled:m,...h}=e;return(0,r.jsxs)("button",{className:(0,o.cn)(u({variant:i,size:c,className:n})),ref:t,disabled:m||s,...h,children:[s?(0,r.jsx)(a.Z,{className:"mr-2 h-4 w-4 animate-spin"}):l?(0,r.jsx)("span",{className:"mr-2",children:l}):null,d,f&&!s&&(0,r.jsx)("span",{className:"ml-2",children:f})]})});s.displayName="Button"},89506:function(e,t,n){"use strict";let r,i,c;n.d(t,{$N:function(){return w},CD:function(){return I},Iz:function(){return S},J9:function(){return b},Kz:function(){return m},M6:function(){return f},Nc:function(){return p},OO:function(){return h},Q8:function(){return _},Ti:function(){return x},_O:function(){return g},bk:function(){return E},ck:function(){return D},fE:function(){return C},hH:function(){return d},kW:function(){return j},n1:function(){return N},ru:function(){return k},u1:function(){return z},uv:function(){return v},w1:function(){return y}});var a=n(15236),o=n(28420),u=n(54230);let s={apiKey:"AIzaSyCVxCsAPkWckFF07I_8M59OORAxbR73hEg",authDomain:"marketplace-1542627681065.firebaseapp.com",projectId:"marketplace-1542627681065",storageBucket:"marketplace-1542627681065.firebasestorage.app",messagingSenderId:"811746378138",appId:"1:811746378138:web:ea0d8be13f529b73d93a23",measurementId:"G-E1S6FN2Y8S"};function l(){return r||0!==(0,a.C6)().length?r||(r=(0,a.C6)()[0]):s.apiKey&&s.projectId&&(r=(0,a.ZF)(s)),r}async function f(){if(i)return i;let e=l();if(e)return await (0,o.Gb)()&&(i=(0,o.IH)(e)),i}function d(){if(c)return c;let e=l();if(e){try{c=(0,u.r)(e)}catch(e){console.debug("[FirebasePerf] init failed:",e)}return c}}async function m(e,t){try{let n=await f();n&&(0,o.Kz)(n,e,t)}catch(t){console.debug("[Analytics] Failed to log event:",e,t)}}async function h(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];await m("exception",{description:e.slice(0,100),fatal:t})}async function p(e,t){await m("page_view",{page_title:e,page_path:t,page_location:window.location.href})}async function g(e,t,n,r,i){await m("view_item",{item_id:e,item_name:t,item_category:n,item_price:r,currency:i||"USD"})}async function y(e){await m("search",{search_term:e})}async function w(e){await m("sign_up",{method:e})}async function b(e){await m("login",{method:e})}async function v(e,t,n,r){await m("add_to_wishlist",{item_id:e,item_name:t,item_price:n,currency:r||"USD"})}async function _(e,t,n,r,i){await m("create_listing",{item_id:e,item_name:t,item_category:n,item_price:r,currency:i||"USD"})}async function x(e,t,n){await m("boost_listing",{item_id:e,promotion_type:t,value:n})}async function k(e,t){await m("subscribe",{plan_id:e,value:t})}async function N(e,t){await m("contact_seller",{item_id:e,seller_id:t})}async function j(e,t,n){await m("make_offer",{item_id:e,value:t,currency:n||"USD"})}async function S(e,t){await m("share",{item_id:e,method:t})}async function C(e,t){await m("view_category",{item_category:t,item_id:e})}async function I(e,t){await m("click_banner",{banner_id:e,item_name:t})}async function D(e){await m("begin_checkout",{value:e.value,currency:e.currency,item_name:e.contentName,promotion_type:e.checkoutType})}async function z(e){await m("purchase",{transaction_id:e.transactionId,value:e.value,currency:e.currency,item_id:e.itemId,item_name:e.itemName})}async function E(e,t,n){await m("rate",{item_id:e,value:t,seller_id:n})}},49354:function(e,t,n){"use strict";n.d(t,{$h:function(){return g},Bs:function(){return b},HB:function(){return d},Jn:function(){return w},Qm:function(){return f},S4:function(){return m},SY:function(){return s},T4:function(){return o},_J:function(){return y},aF:function(){return l},cn:function(){return a},fd:function(){return h},lb:function(){return p},p6:function(){return u}});var r=n(44839),i=n(96164),c=n(20357);function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.m6)((0,r.W)(t))}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";return 0===e||null==e?"Free":new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:0,maximumFractionDigits:2}).format(e)}function u(e,t){if(!e)return"";try{let n=new Date(e);if(isNaN(n.getTime()))return"";let r={year:"numeric",month:"short",day:"numeric",...t};return new Intl.DateTimeFormat("en-US",r).format(n)}catch(e){return""}}function s(e){if(!e)return"";try{let t=new Date,n=new Date(e);if(isNaN(n.getTime()))return"";let r=Math.floor((t.getTime()-n.getTime())/1e3);if(r<0||r<60)return"Just now";if(r<3600)return"".concat(Math.floor(r/60),"m ago");if(r<86400)return"".concat(Math.floor(r/3600),"h ago");if(r<604800)return"".concat(Math.floor(r/86400),"d ago");if(r<2592e3)return"".concat(Math.floor(r/604800),"w ago");return u(e)}catch(e){return""}}function l(e,t){return e.length<=t?e:e.slice(0,t).trim()+"..."}function f(e){return e.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2)}function d(e){return!e||e.includes("/media/logo/")||/_logo\.(png|jpe?g|webp)$/i.test(e)}function m(e){return e?e.split(" ")[0]:""}function h(e,t){let n=(t||"product").toLowerCase().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,50).replace(/-+$/,"");return"".concat(n,"-").concat(e)}function p(e){if(!e)return"";if(/^\d+$/.test(e))return e;let t=e.split("-"),n=t[t.length-1];return/^\d+$/.test(n)?n:e}function g(e,t){return t?"/products/".concat(h(e,t)):"/products/".concat(e)}function y(e,t){if(t){let n=t.replace(/^@/,"");return"/user/@".concat(n,"/").concat(e)}return"/user/@user/".concat(e)}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"product";if(!e)return"user"===t?"":"/images/placeholder.png";if(e.startsWith("http"))return e;switch(t){case"user":return"".concat("https://marketplaceapp.club/media/user","/").concat(e);case"product":default:return"".concat("https://marketplaceapp.club/media/item","/").concat(e);case"category":case"banner":return"".concat("https://marketplaceapp.club/backend/web/uploads","/").concat(e);case"chat":return"".concat("https://marketplaceapp.club","/media/chat/").concat(e)}}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"product",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"user"===t?96:400,r=w(e,t);if(!r||r.startsWith("/")||!r.startsWith("http")||r.includes("/resized/")||"0"===c.env.
16NEXT_PUBLIC_CARD_IMAGE_RESIZE)return r;try{let e=new URL(r),i=e.pathname,c=i.match(/\/media\/item\/(.+)$/i);if(c&&"product"===t)return e.pathname="/resized/item/".concat(n,"/").concat(c[1]),e.toString();let a=i.match(/\/profile\/(.+)$/i);if(a)return e.pathname="/resized/profile/".concat(n,"/").concat(a[1]),e.toString();let o=i.match(/\/media\/user\/(.+)$/i);if(o)return e.pathname="/resized/user/".concat(n,"/").concat(o[1]),e.toString()}catch(e){}return r}}},function(e){e.O(0,[8869,8902,2971,7023,1744],function(){return e(e.s=29129)}),_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.