PageSourceSearch

https://zahhra.vercel.app/_next/static/chunks/8336.0e361785a3486b77.js

js zahhra.vercel.app collected 2026-10-03 08:06:31 UTC 13,385 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8336],{41609:function(e,r,t){var n=t(280),i=t(64160),o=t(35694),l=t(1469),c=t(98612),a=t(44144),u=t(25726),s=t(36719),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(c(e)&&(l(e)||"string"==typeof e||"function"==typeof e.splice||a(e)||s(e)||o(e)))return!e.length;var r=i(e);if("[object Map]"==r||"[object Set]"==r)return!e.size;if(u(e))return!n(e).length;for(var t in e)if(d.call(e,t))return!1;return!0}},4470:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return Z}});var n=t(85893),i=t(94184),o=t.n(i),l=t(98055),c=t(58886),a=t(63879),u=t(39477),s=t(87427),d=t(20868),f=function(e){var r,t,i,o,l,c,f=e.item,g=e.onClick,h=(0,d.$G)("common").t;return(0,n.jsxs)("div",{className:"relative w-full h-80 rounded-lg p-8 bg-light shadow-downfall-sm transition-shadow hover:shadow-downfall-lg group",onClick:g,role:"button",children:[(0,n.jsxs)("div",{className:"flex flex-col flex-1 h-full relative z-10",children:[(0,n.jsx)("h3",{className:"text-heading font-semibold text-lg mb-1",children:f.name}),(0,n.jsx)("span",{className:"text-body text-s",children:(null===f||void 0===f||null===(r=f.children)||void 0===r?void 0:r.length)?"".concat(null===f||void 0===f||null===(t=f.children)||void 0===t?void 0:t.length," ").concat((null===f||void 0===f||null===(i=f.children)||void 0===i?void 0:i.length)>1?h("text-categories"):h("text-category")):(0,s.U)(null===f||void 0===f?void 0:f.products_count,"Item")}),(0,n.jsx)("button",{className:"mt-auto flex text-accent font-semibold text-sm underline opacity-100 lg:opacity-0 transition-opacity group-hover:opacity-100",children:h("text-view-more")})]}),(0,n.jsx)("div",{className:"absolute bottom-0 ltr:right-0 rtl:left-0 w-full h-full rounded-lg overflow-hidden",children:(0,n.jsx)(a.E,{className:"w-full h-full",src:null!==(l=null===f||void 0===f||null===(o=f.image)||void 0===o?void 0:o.original)&&void 0!==l?l:u.Hb,alt:null!==(c=null===f||void 0===f?void 0:f.name)&&void 0!==c?c:"",layout:"responsive",width:432,height:336})})]})},g=t(11163),h={src:"/_next/static/media/arrow-forward.fd3c3816.png",height:32,width:18,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAMAAAAGL8UJAAAAMFBMVEXt7e3w8PDy8vLV1dXh4eHm5ubr6+va2trn5+fk5OTc3Nzv7+/39/fs7Ozu7u7z8/PFGBEBAAAADnRSTlMBYSEMjMKXQeux9NfDVesNwZgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAqSURBVAiZBcEJAoAgCACwgXZoBf//bZvYF8ZzD2QviJr4+iTrxdHJrOAHEeIAwHFHXGkAAAAASUVORK5CYII="},v=function(e){var r=e.text,t=e.image,i=e.onClick;return(0,n.jsxs)("button",{className:o()("relative h-14 rounded-lg bg-light px-7 text-base font-semibold text-heading shadow-downfall-xs transition-shadow hover:shadow-downfall-sm",{"ltr:pr-[5.5rem] rtl:pl-[5.5rem]":t}),onClick:i,children:[(0,n.jsx)("span",{className:"whitespace-nowrap",children:r}),t&&(0,n.jsx)("span",{className:"absolute bottom-0 h-full overflow-hidden rounded-lg w-14 ltr:right-0 ltr:rounded-l-none rtl:left-0 rtl:rounded-r-none",children:(0,n.jsx)(a.E,{className:"w-full h-full",src:null!==t&&void 0!==t?t:u.Hb,alt:null!==r&&void 0!==r?r:"",layout:"responsive",width:60,height:60})})]})};function x(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){x(e,r,t[r])}))}return e}function y(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(i[t]=e[t]);return i}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var m=function(e){var r=e.text,t=e.image,i=e.onClick;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"relative w-[18px] h-[32px] flex-shrink-0",children:(0,n.jsx)(a.E,{className:"w-full h-full",src:h,alt:">",layout:"responsive",width:18,height:32})}),(0,n.jsx)(v,{text:r,image:t,onClick:i})]})},b=function(e){var r=e.categories,t=(0,d.$G)("common").t,i=(0,g.useRouter)(),o=i.pathname,l=i.query;return(0,n.jsxs)("div",{className:"flex items-center space-x-5 rtl:space-x-reverse",children:[(0,n.jsx)(v,{text:t("text-all-categories"),onClick:function(){l.category;var e=y(l,["category"]);i.push({pathname:o,query:p({},e)},void 0,{scroll:!1})}}),null===r||void 0===r?void 0:r.map((function(e){var r;return(0,n.jsx)(m,{text:null===e||void 0===e?void 0:e.name,image:null===e||void 0===e||null===(r=e.image)||void 0===r?void 0:r.original,onClick:function(){return function(e){l.category;var r=y(l,["category"]);i.push({pathname:o,query:p({},r,{category:e})},void 0,{scroll:!1})}(null===e||void 0===e?void 0:e.slug)}},null===e||void 0===e?void 0:e.slug)}))]})},j=t(13123),w=t(41609),A=t.n(w),O=function(e,r,t){return null===e||void 0===e?void 0:e.reduce((function(e,n){return e||(n.slug===r?n:n[t]?O(n[t],r,t):void 0)}),null)},P=O,N=t(44616);function S(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function k(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function C(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}
1)))),n.forEach((function(r){k(e,r,t[r])}))}return e}function E(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"===typeof e)return S(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id",n=[];if(r){var i=null===e||void 0===e?void 0:e.find((function(e){return e[t]===r}));n=(null===i||void 0===i?void 0:i.parent_id)?E(_(e,i.parent_id)).concat([i],E(n)):[i].concat(E(n))}return n}var Z=function(e){var r=e.notFound,t=e.categories,i=e.loading,a=e.variables,u=(0,d.$G)("common").t,s=(0,g.useRouter)(),h=s.pathname,v=s.query,x=Boolean(v.category)&&P(t,v.category,"children"),p=_(t,null===x||void 0===x?void 0:x.parent_id),y=Boolean(x)?null===x||void 0===x?void 0:x.children:null===t||void 0===t?void 0:t.filter((function(e){return!(null===e||void 0===e?void 0:e.parent_id)}));return i?(0,n.jsx)("div",{className:"hidden xl:block",children:(0,n.jsx)("div",{className:"mt-8 w-72 px-2",children:(0,n.jsx)(c.Z,{})})}):r?(0,n.jsx)("div",{className:"bg-light",children:(0,n.jsx)("div",{className:"min-h-full p-5 md:p-8 lg:p-12 2xl:p-16",children:(0,n.jsx)(l.Z,{text:"text-no-category",className:"h-96"})})}):(0,n.jsxs)("div",{className:"bg-light",children:[(0,n.jsx)("div",{className:"px-3 pt-3 md:px-6 md:pt-6 lg:px-10 lg:pt-10 2xl:px-14 2xl:pt-14",children:(null===v||void 0===v?void 0:v.category)?(0,n.jsx)(j.Z,{className:"w-full",children:(0,n.jsx)("div",{className:o()("px-2 pt-2 pb-7",{"mb-8 divide-dashed border-b border-dashed border-gray-200":null===v||void 0===v?void 0:v.category}),children:(0,n.jsx)(b,{categories:E(p).concat([x])})})}):(0,n.jsx)("h3",{className:"mb-8 px-2 pt-2 text-2xl font-semibold text-heading",children:u("text-all-categories")})}),(0,n.jsxs)("div",{className:"p-5 !pt-0 md:p-8 lg:p-12 2xl:p-16",children:[(0,n.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-6",children:Array.isArray(y)&&(null===y||void 0===y?void 0:y.map((function(e,r){return(0,n.jsx)(f,{item:e,onClick:function(){return r=null===e||void 0===e?void 0:e.slug,void s.push({pathname:h,query:C({},v,{category:r})},void 0,{scroll:!1});var r}},r)})))}),A()(y)&&(0,n.jsx)(N.Z,{gridClassName:"!grid-cols-[repeat(auto-fill,minmax(290px,1fr))]",variables:a})]})]})}},58886:function(e,r,t){"use strict";var n=t(85893),i=t(24561);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}r.Z=function(e){return(0,n.jsxs)(i.ZP,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){o(e,r,t[r])}))}return e}({speed:2,width:"100%",height:"100%",viewBox:"0 0 400 320",backgroundColor:"#e0e0e0",foregroundColor:"#cecece"},e,{children:[(0,n.jsx)("circle",{cx:"13",cy:"14",r:"10"}),(0,n.jsx)("rect",{x:"38",y:"4",rx:"5",ry:"5",width:"88%",height:"20"}),(0,n.jsx)("circle",{cx:"13",cy:"48",r:"10"}),(0,n.jsx)("rect",{x:"38",y:"38",rx:"5",ry:"5",width:"88%",height:"20"}),(0,n.jsx)("circle",{cx:"13",cy:"83",r:"10"}),(0,n.jsx)("rect",{x:"38",y:"73",rx:"5",ry:"5",width:"88%",height:"20"}),(0,n.jsx)("circle",{cx:"13",cy:"118",r:"10"}),(0,n.jsx)("rect",{x:"38",y:"108",rx:"5",ry:"5",width:"88%",height:"20"}),(0,n.jsx)("circle",{cx:"13",cy:"154",r:"10"}),(0,n.jsx)("rect",{x:"38",y:"144",rx:"5",ry:"5",width:"88%",height:"20"}),(0,n.jsx)("circle",{cx:"13",cy:"188",r:"10"}),(0,n.jsx)("rect",{x:"38",y:"178",rx:"5",ry:"5",width:"88%",height:"20"}),(0,n.jsx)("circle",{cx:"13",cy:"223",r:"10"}),(0,n.jsx)("rect",{x:"38",y:"213",rx:"5",ry:"5",width:"88%",height:"20"}),(0,n.jsx)("circle",{cx:"13",cy:"258",r:"10"}),(0,n.jsx)("rect",{x:"38",y:"248",rx:"5",ry:"5",width:"88%",height:"20"}),(0,n.jsx)("circle",{cx:"13",cy:"290",r:"10"}),(0,n.jsx)("rect",{x:"38",y:"280",rx:"5",ry:"5",width:"88%",height:"20"})]}))}},89874:function(e,r,t){"use strict";t.d(r,{a9:function(){return n},Fi:function(){return i},LX:function(){return o},Vc:function(){return l}});var n=30,i=15,o=30,l=30},74354:function(e,r,t){"use strict";t.d(r,{os:function(){return d},iB:function(){return f},rn:function(){return s}});var n=t(88767),i=t(10505),o=t(39128),l=t(16125);function c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(i[t]=e[t]);return i}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var u=function(e){var r=e||{},t=r.limit,n=void 0===t?30:t,i=r.price,o=r.category,l=r.text,u=r.searchType,s=r.searchQuery,d=a(r,["limit","price","category","text","searchType","searchQuery"]);return function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}
1)))),n.forEach((function(r){c(e,r,t[r])}))}return e}({limit:n},i&&{min_price:i},l&&{name:l.toString()},o&&{categories:o.toString()},u&&{type:u.toString()},s&&{name:s.toString()},d)};function s(e){var r,t=u(e),c=(0,n.useInfiniteQuery)([o.P.PRODUCTS,t],(function(e){var r=e.queryKey,t=e.pageParam;return i.Z.products.all(Object.assign({},r[1],t))}),{getNextPageParam:function(e){var r=e.current_page;return e.last_page>r&&{page:r+1}}}),a=c.data,s=c.isLoading,d=c.error,f=c.fetchNextPage,g=c.hasNextPage,h=c.isFetching,v=c.isFetchingNextPage;return{products:null!==(r=null===a||void 0===a?void 0:a.pages.flatMap((function(e){return e.data})))&&void 0!==r?r:[],paginatorInfo:Array.isArray(null===a||void 0===a?void 0:a.pages)?(0,l.Q)(null===a||void 0===a?void 0:a.pages[a.pages.length-1]):null,isLoading:s,error:d,isFetching:h,isLoadingMore:v,loadMore:function(){f()},hasMore:Boolean(g)}}var d=function(e){var r=(0,n.useQuery)([o.P.PRODUCTS_POPULAR,e],(function(e){var r=e.queryKey;return i.Z.products.popular(r[1])})),t=r.data;return{products:null!==t&&void 0!==t?t:[],isLoading:r.isLoading,error:r.error}};function f(e){var r=e.slug,t=(0,n.useQuery)([o.P.PRODUCTS,r],(function(){return i.Z.products.get(r)}));return{product:t.data,isLoading:t.isLoading,error:t.error}}},87427:function(e,r,t){"use strict";function n(e,r){return e&&e>1?"".concat(e," ").concat(r,"s"):"".concat(e," ").concat(r)}t.d(r,{U:function(){return n}})},39477:function(e,r,t){"use strict";t.d(r,{Pb:function(){return o},Qg:function(){return i},Hb:function(){return n}});var n={src:"/_next/static/media/product.ba64d04a.svg",height:210,width:270},i={src:"/_next/static/media/coupon.5015b440.svg",height:240,width:320},o={src:"/_next/static/media/avatar.c9441dc8.svg",height:120,width:120}}}]);

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.