1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2369],{92369:function(n,e,t){t.r(e),t.d(e,{default:function(){return x}});var r=t(52322),o=t(96577),s=t.n(o),i=t(2784),a=t(40794),l=t(79447),c=t(46506),d=t(55076),u=t(16508),m=function(n){var e,t,o=n.shop;return(0,r.jsx)(d.Z,{href:"/".concat(null===o||void 0===o?void 0:o.slug),children:(0,r.jsxs)("div",{className:"flex items-center p-5 bg-light border border-gray-200 rounded cursor-pointer relative",children:[!1,(0,r.jsx)("div",{className:"w-16 h-16 relative flex flex-shrink-0 border border-gray-100 items-center justify-center bg-gray-300 rounded-full overflow-hidden",children:(0,r.jsx)(s(),{alt:(null===o||void 0===o?void 0:o.name)||"Shop logo",src:null!==(t=null===o||void 0===o||null===(e=o.logo)||void 0===e?void 0:e.url)&&void 0!==t?t:"/product-placeholder-borderless.svg",layout:"fill",objectFit:"cover"})}),(0,r.jsxs)("div",{className:"flex flex-col ms-4",children:[(0,r.jsx)("span",{className:"text-lg font-semibold text-heading mb-2",children:null===o||void 0===o?void 0:o.name}),(0,r.jsx)("span",{children:(0,r.jsx)(u.Z,{textKey:o.active?"Active":"Inactive",color:o.active?"bg-accent":"bg-red-500"})})]})]})})},p=t(83731),h=t(85737),v=t(92124),g={src:"/_next/static/media/no-shop.5243ab78.svg",height:571,width:691},x=function(){var n=(0,a.a)(v.fv,{variables:{input:{searchTerm:void 0}}}),e=n.data,t=n.loading,o=n.error,d=((e||{}).vendorShops||{}).docs,u=void 0===d?[]:d;return(0,i.useEffect)((function(){(0,l.j)(p.mk.VIEW_MY_SHOPS_PAGE)}),[]),t?(0,r.jsx)(c.Z,{text:"Loading"}):o?(0,r.jsx)(h.Z,{message:o.message}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"border-b border-dashed border-border-base mb-5 sm:mb-8 pb-8",children:(0,r.jsx)("h1",{className:"text-lg font-semibold text-heading",children:"My Shops"})}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 3xl:grid-cols-5 gap-5",children:null===u||void 0===u?void 0:u.map((function(n,e){return(0,r.jsx)(m,{shop:n},e)}))}),(null===u||void 0===u?void 0:u.length)?null:(0,r.jsxs)("div",{className:"w-full flex flex-col items-center p-10",children:[(0,r.jsx)("div",{className:"w-[300px] sm:w-[490px] h-[180px] sm:h-[370px] relative",children:(0,r.jsx)(s(),{alt:"common:text-image",src:g,layout:"fill",objectFit:"cover"})}),(0,r.jsx)("span",{className:"text-lg font-semibold text-center text-body-dark mt-6 sm:mt-10",children:"No Shops Found"})]})]})}},16508:function(n,e,t){var r=t(67557),o=t(52322),s=(t(2784),t(12524)),i=t.n(s);e.Z=function(n){var e,t=n.className,s=n.color,a=n.textColor,l=n.text,c=n.textKey,d="px-3 py-1 rounded-full text-xs whitespace-nowrap",u="bg-accent",m="text-light";return(0,o.jsx)("span",{className:i()(d,(e={},(0,r.Z)(e,u,!s),(0,r.Z)(e,m,!a),e),s,a,t),children:c||l})}},85737:function(n,e,t){var r=t(52322);e.Z=function(n){var e=n.message;return(0,r.jsx)("p",{className:"bg-red-400 p-5 mt-16 mx-auto max-w-sm min-w-min text-center text-lg text-light font-semibold rounded",children:e})}},92124:function(n,e,t){t.d(e,{BV:function(){return u},LR:function(){return c},fv:function(){return d}});var r=t(75190),o=t(89130);function s(){var n=(0,r.Z)(["\n query shops($input: ShopInput) {\n shops(input: $input) {\n docs {\n id\n name\n slug\n active\n deleted\n owner {\n firstName\n }\n totalOrders\n totalProducts\n\n logo {\n url\n thumbnail\n }\n }\n }\n }\n"]);return s=function(){return n},n}function i(){var n=(0,r.Z)(["\n query vendorShops($input: ShopInput!) {\n vendorShops(input: $input) {\n docs {\n id\n name\n slug\n active\n logo {\n url\n }\n }\n }\n }\n"]);return i=function(){return n},n}function a(){var n=(0,r.Z)(["\n query shopBySlug($slug: String!) {\n shopBySlug(slug: $slug) {\n id\n name\n active\n createdAt\n active\n description\n totalOrders\n totalProducts\n slug\n logo {\n id\n url\n }\n coverImage {\n id\n url\n }\n balance {\n totalEarnings\n currentBalance\n adminCommissionRate\
1n }\n paymentInfo {\n id\n bank\n name\n account\n email\n }\n contact {\n phoneNumber\n }\n address {\n id\n street\n area {\n id\n name\n }\n }\n owner {\n phoneNumber\n }\n }\n }\n"]);return a=function(){return n},n}function l(){var n=(0,r.Z)(["\n query shopProducts($input: ShopProductInput!) {\n products(input: $input) {\n totalDocs\n page\n totalPages\n hasNextPage\n hasPrevPage\n docs {\n id\n name\n slug\n price\n deleted\n status\n quantity\n minPrice\n maxPrice\n productType\n brand {\n name\n }\n image {\n url\n }\n }\n }\n }\n"]);return l=function(){return n},n}var c=(0,o.Ps)(s()),d=(0,o.Ps)(i()),u=(0,o.Ps)(a());(0,o.Ps)(l())}}]);
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.