1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4895],{12392:(t,e,r)=>{"use strict";r.d(e,{p:()=>n});var a=r(88938),o=r(39778),s=r(9923);let n=o.forwardRef((t,e)=>{let{className:r,type:o,...n}=t;return(0,a.jsx)("input",{type:o,className:(0,s.cn)("flex h-9 w-full rounded-md border border-neutral-200 bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-neutral-950 placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:border-neutral-800 dark:file:text-neutral-50 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300",r),ref:e,...n})});n.displayName="Input"},22276:(t,e,r)=>{"use strict";r.d(e,{bq:()=>h,eb:()=>w,gC:()=>p,l6:()=>c,yv:()=>u});var a=r(88938),o=r(39778),s=r(27053),n=r(41532),i=r(47581),l=r(638),d=r(9923);let c=s.bL;s.YJ;let u=s.WT,h=o.forwardRef((t,e)=>{let{className:r,children:o,...i}=t;return(0,a.jsxs)(s.l9,{ref:e,className:(0,d.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-neutral-200 bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-white data-[placeholder]:text-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-950 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 dark:border-neutral-800 dark:ring-offset-neutral-950 dark:data-[placeholder]:text-neutral-400 dark:focus:ring-neutral-300",r),...i,children:[o,(0,a.jsx)(s.In,{asChild:!0,children:(0,a.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]})});h.displayName=s.l9.displayName;let m=o.forwardRef((t,e)=>{let{className:r,...o}=t;return(0,a.jsx)(s.PP,{ref:e,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...o,children:(0,a.jsx)(i.A,{className:"h-4 w-4"})})});m.displayName=s.PP.displayName;let f=o.forwardRef((t,e)=>{let{className:r,...o}=t;return(0,a.jsx)(s.wn,{ref:e,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...o,children:(0,a.jsx)(n.A,{className:"h-4 w-4"})})});f.displayName=s.wn.displayName;let p=o.forwardRef((t,e)=>{let{className:r,children:o,position:n="popper",...i}=t;return(0,a.jsx)(s.ZL,{children:(0,a.jsxs)(s.UC,{ref:e,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...i,children:[(0,a.jsx)(m,{}),(0,a.jsx)(s.LM,{className:(0,d.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,a.jsx)(f,{})]})})});p.displayName=s.UC.displayName,o.forwardRef((t,e)=>{let{className:r,...o}=t;return(0,a.jsx)(s.JU,{ref:e,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",r),...o})}).displayName=s.JU.displayName;let w=o.forwardRef((t,e)=>{let{className:r,children:o,...n}=t;return(0,a.jsxs)(s.q7,{ref:e,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",r),...n,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.VF,{children:(0,a.jsx)(l.A,{className:"h-4 w-4"})})}),(0,a.jsx)(s.p4,{children:o})]})});w.displayName=s.q7.displayName,o.forwardRef((t,e)=>{let{className:r,...o}=t;return(0,a.jsx)(s.wv,{ref:e,className:(0,d.cn)("-mx-1 my-1 h-px bg-neutral-100 dar
1k:bg-neutral-800",r),...o})}).displayName=s.wv.displayName},23929:(t,e,r)=>{"use strict";r.d(e,{I:()=>s});var a=r(74197),o=r(77747);function s(t,e){return(0,o.t)(t,a.$,e)}},27690:(t,e,r)=>{Promise.resolve().then(r.bind(r,35998))},35998:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>d});var a=r(88938),o=r(84544),s=r(14743),n=r(81461),i=r(28104),l=r(67471);function d(){let t=(0,s.c3)("ShopPage"),e=(0,i.Ym)(),r=(0,l.useSearchParams)().get("category")||"";return(0,n.H)("Shop - MyKG",e),(0,a.jsxs)("div",{className:"min-h-screen bg-white",children:[(0,a.jsxs)("div",{className:"relative bg-gradient-to-br from-[#f53939] via-[#e02d2d] to-[#c42020] overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute ltr:-right-10 rtl:-left-10 -bottom-10 md:ltr:right-8 md:rtl:left-8 md:-bottom-6 w-[200px] h-[200px] md:w-[260px] md:h-[260px] rounded-full bg-white/15 flex items-center justify-center select-none pointer-events-none",children:(0,a.jsx)("img",{src:"/images/k_letter.svg",alt:"",className:"h-[100px] md:h-[140px] drop-shadow-lg"})}),(0,a.jsx)("div",{className:"absolute top-6 ltr:right-[280px] rtl:left-[280px] w-16 h-16 rounded-full bg-white/10 hidden md:block"}),(0,a.jsx)("div",{className:"absolute bottom-8 ltr:left-10 rtl:right-10 w-20 h-20 rounded-full bg-white/8"}),(0,a.jsx)("div",{className:"absolute top-1/2 ltr:left-1/4 rtl:right-1/4 w-10 h-10 rounded-full bg-white/10"}),(0,a.jsxs)("div",{className:"max-w-[1140px] mx-auto px-4 max-md:px-6 py-12 md:py-16 relative z-10",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 mb-3",children:[(0,a.jsx)("div",{className:"w-12 h-12 rounded-full bg-white/25 flex items-center justify-center backdrop-blur-sm",children:(0,a.jsx)("img",{src:"/images/k_letter.svg",alt:"",className:"w-8 h-8"})}),(0,a.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-white",children:t("shop")})]}),(0,a.jsx)("p",{className:"text-white/80 text-base max-w-md",children:t("shopDescription")})]}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 w-full leading-[0]",children:(0,a.jsx)("svg",{viewBox:"0 0 1440 60",className:"w-full h-[40px] md:h-[60px] f
1ill-white",preserveAspectRatio:"none",children:(0,a.jsx)("path",{d:"M0,30 C360,60 1080,0 1440,30 L1440,60 L0,60 Z"})})})]}),(0,a.jsx)("div",{className:"max-w-[1140px] mx-auto px-4 max-md:px-6 py-8",children:(0,a.jsx)(o.A,{providerType:"global",showFilters:!0,showCategories:!0,limit:20,initialCategory:r})})]})}},67471:(t,e,r)=>{"use strict";var a=r(35671);r.o(a,"useParams")&&r.d(e,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(e,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(e,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(e,{useSearchParams:function(){return a.useSearchParams}})},75434:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});let a=(0,r(358).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},76367:(t,e,r)=>{"use strict";r.d(e,{DD:()=>d,Iq:()=>m,Jr:()=>x,Lw:()=>w,Mh:()=>n,ND:()=>p,Pp:()=>s,Qw:()=>u,WY:()=>i,j0:()=>o,jE:()=>c,k0:()=>h,vZ:()=>f,vc:()=>l,wR:()=>g});var a=r(67117);async function o(t){let{pageParam:e="1",filter:r={},limit:o=10}=t;try{let t=(0,a.Y9)(r,e,o),n="/products?".concat(t.toString()),i=await (0,a.Jt)(n);if(!i.ok){var s;let t=await i.json();throw Error((null==t||null==(s=t.messages)?void 0:s[0])||"HTTP ".concat(i.status,": ").concat(i.statusText))}let l=await i.json();return{data:l.data||[],meta:l.meta||{}}}catch(t){throw console.error("Error fetching products:",t),t}}async function s(t){let{pageParam:e="1",filter:r={},limit:o=10}=t;try{var s;let t=(0,a.Y9)(r,e,o),n="/products/my-products?".concat(t.toString()),i=await (0,a.Jt)(n),{data:l,error:d,meta:c}=await (0,a._z)(i);if(l)return{data:l,meta:c};throw Error((null==d||null==(s=d.messages)?void 0:s[0])||"Failed to fetch products")}catch(t){throw console.error("Error fetching products:",t),t}}async function n(t){try{if(!t)throw Error("Product ID is required");let r=await (0,a.Jt)("/products/".concat(t)),o=await r.json();if(!r.ok){var e;throw Error((null==(e=o.messages)?void 0:e[0])||"Failed to fetch product")}return o}catch(t){throw console.error("Error fetching product:",t),t}}async function i(t){try{let r=await (0,a.bE)("/products",t),o=await r.json();if(!r.ok){var e;throw Error((null==(e=o.messages)?void 0:e[0])||"Failed to create product")}return{data:o,ok:r.ok}}catch(t){throw console.error("Error creating product:",t),t}}async function l(t,e){try{let o=await (0,a.F6)("/products/".concat(t),e),s=await o.json();if(!o.ok){var r;throw Error((null==(r=s.messages)?void 0:r[0])||"Failed to update product")}return{data:s,ok:o.ok}}catch(t){throw console.error("Error updating product:",t),t}}async function d(t){try{let r=await (0,a.yH)("/products/".concat(t)),o=await r.json();if(!r.ok){var e;throw Error((null==(e=o.messages)?void 0:e[0])||"Failed to delete product")}return{data:o,ok:r.ok}}catch(t){throw console.error("Error deleting product:",t),t}}async function c(){try{let e=await (0,a.Jt)("/categories");if(!e.ok){var t;let r=await e.json();throw Error((null==r||null==(t=r.messages)?void 0:t[0])||"HTTP ".concat(e.status,": ").concat(e.statusText))}let r=await e.json();return{data:r.data||r||[],meta:r.meta||{}}}catch(t){throw console.error("Error fetching categories:",t),t}}async function u(t){try{if(!t)return{data:[],ok:!0};let r=await (0,a.Jt)("/categories/form-builder/".concat(t)),o=await r.json();if(!r.ok){var e;throw Error((null==(e=o.messages)?void 0:e[0])||"Failed to fetch category attributes")}return{data:o,ok:r.ok}}catch(t){throw console.error("Error fetching category attributes:",t),t}}async function h(t,e,r){try{let s=await (0,a.bE)("/products/".concat(t,"/attributes"),{attributes:e,category_ids:r}),n=await s.json();if(!s.ok){var o;throw Error((null==(o=n.messages)?void 0:o[0])||"Failed to add product attributes")}return{data:n,ok:s.ok}}catch(t){throw console.error("Error adding product attributes:",t),t}}async function m(t,e,r){try{let s=await (0,a.F6)("/products/".concat(t,"/attributes"),{attributes:e,categoryIds:r}),n=await s.json();if(!s.ok){var o;throw Error((null==(o=n.messages)?void 0:o[0])||"Failed to update product attributes")}return{data:n,ok:s.ok}}catch(t){throw console.error("Error updating product attributes:",t),t}}async function f(t,e){try{let o=await (0,a.F6)("/products/".concat(t,"/activate/").concat(e),{}),s=await o.json();if(!o.ok){var r;throw Error((null==(r=s.messages)?void 0:r[0])||"Failed to change product status")}return{data:s,ok:o.ok}}catch(t){throw console.error("Error changing product status:",t),t}}async function p(t,e){try{e.start_date=new Date(e.start_date),e.end_date=new Date(e.end_date);let o=await (0,a.bE)("/products/".concat(t,"/discounts"),e),s=await o.json();if(!o.ok){var r;throw Error((null==(r=s.messages)?void 0:r[0])||"Failed to add discount")}return{data:s,ok:o.ok}}catch(t){throw console.error("Error adding discount:",t),t}}async function w(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;try{if(!t)throw Error("Product ID is required");let s=new URLSearchParams({page:e.toString(),limit:r.toString()}),n=await (0,a.Jt)("/products/".concat(t,"/reviews?").concat(s.toString())),i=await n.json();if(!n.ok){var o;throw Error((null==(o=i.messages)?void 0:o[0])||"Failed to fetch reviews")}return i}catch(t){throw console.error("Error fetching product reviews:",t),t}}async function x(t,e){try{if(!t)throw Error("Product ID is required");let o=await (0,a.bE)("/products/".concat(t,"/reviews"),e),s=await o.json();if(!o.ok){var r;throw Error((null==(r=s.messages)?void 0:r[0])||"Failed to add review")}return{data:s,ok:o.ok}}catch(t){throw console.error("Error adding product review:",t),t}}async function g(t){if(!t||0===t.length)return[];let e=t.join(","),r=await (0,a.Jt)("/products/products/by-ids?ids=".concat(encodeURIComponent(e))),o=await r.json();if(!r.ok){var s;throw Error((null==o||null==(s=o.messages)?void 0:s[0])||"Failed to fetch products by ids")}return o}}},t=>{t.O(0,[3685,8104,1689,6334,332,3917,8369,6036,7117,8144,5264,9388,7358],()=>t(t.s=27690)),_N_E=t.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.