1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19149],{2821:(e,t,s)=>{function l(){for(var e,t,s=0,l="",r=arguments.length;s<r;s++)(e=arguments[s])&&(t=function e(t){var s,l,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(s=0;s<a;s++)t[s]&&(l=e(t[s]))&&(r&&(r+=" "),r+=l)}else for(l in t)t[l]&&(r&&(r+=" "),r+=l);return r}(e))&&(l&&(l+=" "),l+=t);return l}s.d(t,{$:()=>l,A:()=>r});let r=l},21222:(e,t,s)=>{s.d(t,{A:()=>l});let l={src:"/_next/static/media/solar_cart-broken.f9ead2ee.svg",height:24,width:24,blurWidth:0,blurHeight:0}},21397:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(71847).A)("maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]])},28446:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(71847).A)("book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]])},31208:(e,t,s)=>{s.d(t,{gB:()=>r,ox:()=>a});let l=e=>encodeURIComponent(String(e));function r(e){return"/dashboard/social/user-profile/".concat(l(e))}function a(e){return"/dashboard/userprofile/".concat(l(e))}},39142:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(71847).A)("mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]])},42196:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(71847).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},42452:(e,t,s)=>{s.d(t,{F7:()=>r,JG:()=>l,w3:()=>a});let l=e=>"string"!=typeof e?null:e.trim().toLowerCase()||null,r=e=>{var t,s,r,a,n,i;if(!e)return null;for(let o of[null==e?void 0:e.status,null==e?void 0:e.product_status,null==e?void 0:e.productStatus,null==e?void 0:e.approval_status,null==e?void 0:e.approvalStatus,null==e?void 0:e.state,null==e||null==(t=e.product)?void 0:t.status,null==e||null==(s=e.product)?void 0:s.product_status,null==e||null==(r=e.product)?void 0:r.productStatus,null==e||null==(a=e.product)?void 0:a.approval_status,null==e||null==(n=e.product)?void 0:n.approvalStatus,null==e||null==(i=e.product)?void 0:i.state]){let e=l(o);if(e)return e}return null},a=e=>{var t,s,l,a,n;if(!e)return!1;let i=r(e);if(i)return"approved"===i||("pending"===i||"rejected"===i||"draft"===i||"inactive"===i||"archived"===i||"deleted"===i,!1);for(let r of[null==e?void 0:e.is_approved,null==e?void 0:e.isApproved,null==e?void 0:e.approved,null==e||null==(t=e.product)?void 0:t.is_approved,null==e||null==(s=e.product)?void 0:s.isApproved,null==e||null==(l=e.product)?void 0:l.approved])if("boolean"==typeof r)return r;for(let t of[null==e?void 0:e.is_active,null==e?void 0:e.isActive,null==e||null==(a=e.product)?void 0:a.is_active,null==e||null==(n=e.product)?void 0:n.isActive])if("boolean"==typeof t)return t;return!0}},43394:(e,t,s)=>{s.d(t,{A:()=>g});var l=s(95155),r=s(12115),a=s(65229),n=s(10052),i=s(73728),o=s(51177),c=s(82643),d=s(99919),u=s(16383),p=s(83431),m=s(20063),x=s(21693),h=s(52619),f=s.n(h),v=s(83649);function g(e){let{id:t,title:s,description:h,category:g,image:y,author:b,price:j,originalPrice:w,discount:N,productId:A,onRemove:k,isAskPriceOrder:F=!1,checked:C=!0,onCheckChange:E,isBundle:P=!1,bundleCount:S}=e,{showToast:_}=(0,u.d)(),M=(0,m.useRouter)(),{decrementCart:D,updateCartCount:L,removeFromCartMap:R}=(0,p.v)(),[B,T]=(0,r.useState)(!1),U=(0,v.g)(s)||s,I=async e=>{var t,s,l,r,a,n;if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),!B&&A)try{T(!0);let e=await (0,d.ikT)(A);(null==e?void 0:e.success)===!0||(null==e||null==(t=e.success)?void 0:t.status)===!0?(_({message:(null==e||null==(s=e.success)?void 0:s.message)||"Product removed from cart",type:"success"}),D(),R(String(A)),await L(),k&&k()):_({message:(null==e||null==(l=e.error)?void 0:l.message)||"Failed to remove product from cart",type:"error"})}catch(e){console.error("Error removing item from cart:",e),_({message:(null==e||null==(n=e.response)||null==(a=n.data)||null==(r=a.error)?void 0:r.message)||"Failed to remove product from cart",type:"error"})}finally{T(!1)}};return(0,l.jsxs)("div",{className:" relative flex flex-col sm:flex-row gap-[16px] sm:gap-[30px] p-[10px] rounded-[22px] border border-[#
1ECECFE] bg-gradient-to-t from-[#FFFFFF] to-[#F1F3FF] w-full min-h-[154px] ",children:[F&&(0,l.jsx)("span",{className:"absolute top-3 right-12 z-10 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-white bg-gradient-to-r from-[#F97316] to-[#F59E0B] rounded-full shadow-sm",children:"Ask Price Requested"}),"function"==typeof E&&(0,l.jsx)("label",{className:"flex items-start pt-1 sm:pt-2 cursor-pointer shrink-0",children:(0,l.jsx)("input",{type:"checkbox",checked:C,onChange:e=>null==E?void 0:E(e.target.checked),className:"w-4 h-4 rounded border-[#D1D5DB] text-[#7077FE] focus:ring-[#7077FE] mt-0.5"})}),(0,l.jsx)("img",{src:y,alt:U,onClick:()=>{M.push(x.v.PRODUCT_DETAIL(String(t)))},className:" w-full sm:w-[110px] aspect-[16/9] sm:aspect-[1/1] h-auto cursor-pointer rounded-[18px] bg-[#F1F3FF] object-contain sm:object-cover object-center shrink-0 "}),(0,l.jsxs)(f(),{href:x.v.PRODUCT_DETAIL(String(t)),className:"flex flex-col gap-[6px] flex-1 min-w-0",children:[(0,l.jsx)("div",{className:"flex items-center sm:-ml-2 gap-1.5 flex-wrap",children:P?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 w-fit px-2 py-0.5 rounded-full bg-[#ECFDF5] text-[#059669] text-[11px] font-semibold",children:[(0,l.jsx)("img",{src:i.A.src,alt:"Bundle",className:"w-3 h-3 object-contain"}),"Bundle"]}),null!=S&&(0,l.jsxs)("span",{className:"text-[11px] font-medium text-[#059669] bg-[#ECFDF5] px-2 py-0.5 rounded",children:["Bundle list (",S,")"]})]}):(0,l.jsx)(n.f,{label:g,color:"purple"})}),(0,l.jsx)("h3",{className:"text-[16px] font-semibold text-[#363842] leading-[20px] truncate",children:U}),(0,l.jsx)("p",{className:"text-[13px] text-[#6b7280] leading-[18px] line-clamp-2",children:h}),(0,l.jsx)(o.a,{name:b.name,avatar:b.avatar})]}),(0,l.jsxs)(f(),{href:x.v.PRODUCT_DETAIL(String(t)),className:" flex flex-row sm:flex-col justify-between sm:items-end items-center gap-4 sm:gap-0 ",children:[(0,l.jsx)("button",{onClick:I,disabled:B||!A,className:"w-[28px] h-[28px] rounded-[8px] bg-[#F2F2F2] flex items-center justify-center shrink-0 hover:bg-[#E5E5E5] transition disabled:opacity-50 disabled:cursor-not-allowed",title:"Remove From Cart",type:"button",children:(0,l.jsx)(a.A,{size:14})}),(0,l.jsx)(c.A,{currentPrice:j,originalPrice:w,discount:N,variant:"inline"})]})]})}},43586:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(71847).A)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]])},60890:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(71847).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},73728:(e,t,s)=>{s.d(t,{A:()=>l});let l={src:"/_next/static/media/mynaui_box (3).686a8deb.png",height:18,width:18,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEUGg4MFhoYHg4NMaXEHhYUAAAAIhYUIhIQJhYUHhoYOjY3LkJFxAAAAC3RSTlNEKWAAHgFnkcR5ElET8e0AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAzSURBVHicBcGBAcAwCMMwBwNt9//Bk5gxUfGr3W3JRbmBrbcUgFUCeQ19gl3nVMto2pkfHjEA00ap78cAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},82643:(e,t,s)=>{s.d(t,{A:()=>r});var l=s(95155);s(12115);let r=e=>{let{originalPrice:t,currentPrice:s,discount:r,variant:a="stacked"}=e;return"inline"===a?(0,l.jsx)("div",{className:"flex items-center gap-[8px]",children:(0,l.jsx)("div",{className:"flex items-center gap-2",children:t&&"0%"!==r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"font-['Poppins'] text-[20px] font-semibold text-[#363842] whitespace-nowrap",children:s}),(0,l.jsx)("span",{className:"font-['Poppins'] text-[16px] text-[#81859c] line-through whitespace-nowrap",children:t}),(0,l.jsx)("span",{className:"font-inter text-[10px] font-medium text-[#102b6b] bg-[#e9f0ff] px-[6px] py-[2px] rounded-[3px] whitespace-nowrap",children:r})]}):(0,l.jsx)("span",{className:"font-['Poppins'] text-[20px] font-semibold text-[#363842] whitespace-nowrap",children:t})})}):(0,l.jsx)("div",{className:"flex flex-col gap-[10px] justify-center items-start",children:(0,l.jsxs)("div",{className:"flex flex-col gap-[3px] items-start",children:[(0,l.jsx)("div",{className:"flex gap-[14px] items-center",children:(0,l.jsx)("div",{children:t&&r?(0,l.jsxs)("div",{className:"flex items-center gap-2 text-[16px] font-[poppins] font-medium",children:[(0,l.jsx)("span",{className:"line-through text-[#81859C]",children:t}),r&&(0,l.jsx)("span",{className:"px-2 py-[2px] bg-[#EEF2FF] text-[#4F46E5] rounded text-[11px] font-medium",children:r})]}):(0,l.jsx)("div",{className:"text-[30px] lg:text-[30px] font-semibold text-[#363842] font-[poppins]"})})}),(0,l.jsx)("span",{className:"font-['Poppins'] text-[30px] font-semibold leading-[36px] text-[#363842] whitespace-nowrap",children:s})]})})}},83431:(e,t,s)=>{s.d(t,{b:()=>i,v:()=>
1o});var l=s(95155),r=s(12115),a=s(99919);let n=(0,r.createContext)(void 0),i=e=>{let{children:t}=e,[s,i]=(0,r.useState)(0),[o,c]=(0,r.useState)(0),[d,u]=(0,r.useState)({}),[p,m]=(0,r.useState)({}),[x,h]=(0,r.useState)(new Set),f=(0,r.useRef)({wishlist:!1,cart:!1,library:!1}),v=async()=>{try{var e,t,s,l,r;try{let l=await (0,a.gfv)(1,100),r=(null==l||null==(t=l.data)||null==(e=t.data)?void 0:e.rows)||(null==l||null==(s=l.data)?void 0:s.rows)||[];i(r.length)}catch(s){let e=await (0,a._8u)(),t=(null==e||null==(r=e.data)||null==(l=r.data)?void 0:l.cart_items)||[];i(t.length)}}catch(e){console.error("Failed to fetch cart count:",e)}},g=async()=>{try{var e,t;let s=await (0,a.deg)(),l=(null==s||null==(t=s.data)||null==(e=t.data)?void 0:e.wishlist)||[];c(l.length)}catch(e){console.error("Failed to fetch wishlist count:",e)}},y=(0,r.useCallback)(async()=>{if(!f.current.wishlist){f.current.wishlist=!0;try{var e,t,s,l;let r=await (0,a.aoC)(1,100),n=(null==r||null==(t=r.data)||null==(e=t.data)?void 0:e.rows)||(null==r||null==(s=r.data)?void 0:s.rows)||[],i={};for(let e of n){let t=String(e.product_id||(null==(l=e.product)?void 0:l.id)||"");t&&(i[t]=e.id)}u(i),c(n.length)}catch(e){console.error("Failed to fetch wishlist map:",e)}finally{f.current.wishlist=!1}}},[]),b=(0,r.useCallback)(async()=>{if(!f.current.cart){f.current.cart=!0;try{var e,t,s,l;let r=await (0,a.gfv)(1,100),n=(null==r||null==(t=r.data)||null==(e=t.data)?void 0:e.rows)||(null==r||null==(s=r.data)?void 0:s.rows)||[],o={};for(let e of n){let t=String(e.product_id||(null==(l=e.product)?void 0:l.id)||"");t&&(o[t]=e.id||e.cart_id)}m(o),i(n.length)}catch(e){console.error("Failed to fetch cart map:",e)}finally{f.current.cart=!1}}},[]),j=(0,r.useCallback)(async()=>{if(!f.current.library){f.current.library=!0;try{var e,t,s,l;let r=await (0,a.xG1)(1,100),n=(null==r||null==(t=r.data)||null==(e=t.data)?void 0:e.rows)||(null==r||null==(s=r.data)?void 0:s.rows)||[],i=new Set;for(let e of n){let t=String(e.product_id||e.id||(null==(l=e.product)?void 0:l.id)||"");t&&i.add(t)}h(i)}catch(e){console.error("Failed to fetch library set:",e)}finally{f.current.library=!1}}},[]),w=(0,r.useCallback)((e,t)=>{u(s=>({...s,[e]:t}))},[]),N=(0,r.useCallback)(e=>{u(t=>{let s={...t};return delete s[e],s})},[]),A=(0,r.useCallback)((e,t)=>{m(s=>({...s,[e]:t}))},[]),k=(0,r.useCallback)(e=>{m(t=>{let s={...t};return delete s[e],s})},[]);return(0,r.useEffect)(()=>{localStorage.getItem("jwt")&&(b(),y(),j())},[]),(0,l.jsx)(n.Provider,{value:{cartCount:s,wishlistCount:o,updateCartCount:v,updateWishlistCount:g,incrementCart:()=>i(e=>e+1),decrementCart:()=>i(e=>Math.max(0,e-1)),incrementWishlist:()=>c(e=>e+1),decrementWishlist:()=>c(e=>Math.max(0,e-1)),setCartCount:i,setWishlistCount:c,wishlistMap:d,cartMap:p,librarySet:x,refreshWishlistMap:y,refreshCartMap:b,refreshLibrarySet:j,addToWishlistMap:w,removeFromWishlistMap:N,addToCartMap:A,removeFromCartMap:k},children:t})},o=()=>{let e=(0,r.useContext)(n);if(!e)throw Error("useCartWishlist must be used within CartWishlistProvider");return e}},83649:(e,t,s)=>{s.d(t,{g:()=>l});function l(e){let t=String(null!=e?e:"").trim();if(!t)return"";let s=t.replace(/\s+/g," ");return RegExp("\\p{Lu}","u").test(s)||!RegExp("\\p{L}","u").test(s)?s:s.toLocaleLowerCase().replace(RegExp("(^|[\\s\\-ââ/\\\\_'â\"ââ()\\[\\]{},.:;!?])(\\p{L})","gu"),(e,t,s)=>"".concat(t).concat(s.toLocaleUpperCase()))}},85449:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(71847).A)("music-2",[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]])},89442:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(71847).A)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},95150:(e,t,s)=>{s.d(t,{A:()=>h});var l=s(95155);let r={src:"/_next/static/media/image 22.726caca8.png"};var a=s(12115),n=s(47650),i=s(99919),o=s(16383),c=s(20063),d=s(84318),u=s(65229),p=s(83649),m=s(15680);function x(e){let{label:t,value:s}=e;return(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{className:"text-[#6b7280]",children:t}),(0,l.jsx)("span",{children:s})]})}function h(e){let{price:t,subtotal:s,discount:h,discountPercent:f,tax:v,total:g,
1itemizedItems:y,bundleGroups:b,bundleDiscount:j,summaryTitle:w,productIds:N=[],bundleChildSelections:A,onOrderSuccess:k}=e,[F,C]=(0,a.useState)(!1),[E,P]=(0,a.useState)(!1),[S,_]=(0,a.useState)(!1),[M,D]=(0,a.useState)({}),{showToast:L}=(0,o.d)(),R=(0,c.useRouter)();(0,a.useEffect)(()=>{if(!S)return;let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=e=>{"Escape"===e.key&&_(!1)};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t),document.body.style.overflow=e}},[S]);let B=async()=>{var e,t,s,l,r,a,n,o;if(!E)return void L({message:"Please accept the Privacy & Terms Policy",type:"warning"});if(!N||0===N.length)return void L({message:"No products in cart to order",type:"error"});try{C(!0);let a=N.map(e=>String(e)),n=await (0,i.Lm3)({product_ids:a,bundle_child_selections:A});if((null==n?void 0:n.success)===!0||(null==n||null==(e=n.success)?void 0:e.status)===!0){let e=null==n||null==(s=n.data)||null==(t=s.data)?void 0:t.url;e?(L({message:"Redirecting to payment...",type:"info",duration:2e3}),window.location.href=e):(L({message:(null==n||null==(l=n.success)?void 0:l.message)||"Order placed successfully",type:"success"}),R.push(d.v.PAYMENT_SUCCESS),k&&k())}else{let e=(null==n||null==(r=n.error)?void 0:r.message)||"Failed to place order";L({message:e,type:"error"}),console.error("Order creation failed:",null==n?void 0:n.error)}}catch(e){console.error("Error creating order:",e),L({message:(null==e||null==(o=e.response)||null==(n=o.data)||null==(a=n.error)?void 0:a.message)||"Failed to place order",type:"error"})}finally{C(!1)}};return(0,l.jsxs)("div",{className:" w-full rounded-2xl bg-gradient-to-t from-[#FFFFFF] to-[#F1F3FF] p-4 sm:p-6 xl:sticky xl:top-24 ",children:[(0,l.jsx)("h3",{className:"font-semibold font-['Poppins'] mb-4 text-[16px] text-[#363842]",children:w||"Order Summary"}),b&&b.length>0?(0,l.jsxs)("div",{className:"space-y-3 text-sm font-['Open_Sans'] mb-4",children:[b.map(e=>{let t=!1!==M[e.bundleId];return(0,l.jsxs)("div",{children:[(0,l.jsxs)("button",{type:"button",onClick:()=>{var t;return t=e.bundleId,void D(e=>({...e,[t]:!e[t]}))},className:"flex items-center justify-between w-full text-left",children:[(0,l.jsx)("span",{className:"text-[#363842] font-medium truncate pr-2",children:(0,p.g)(e.bundleName)||e.bundleName}),(0,l.jsx)("svg",{className:"w-4 h-4 shrink-0 text-[#6b7280] transition-transform ".concat(t?"rotate-180":""),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),t&&e.items.length>0&&(0,l.jsx)("div",{className:"mt-2 space-y-1.5 pl-1",children:e.items.map((e,t)=>(0,l.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,l.jsx)("span",{className:"text-[#6b7280] truncate text-[13px]",children:(0,p.g)(e.name)||e.name}),(0,l.jsx)("span",{className:"text-[#363842] font-medium shrink-0 text-[13px]",children:e.amount})]},t))})]},e.bundleId)}),y&&y.length>0&&(0,l.jsx)("div",{className:"space-y-2",children:y.map((e,t)=>(0,l.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,l.jsx)("span",{className:"text-[#363842] truncate",children:(0,p.g)(e.name)||e.name}),(0,l.jsx)("span",{className:"text-[#363842] font-medium shrink-0",children:e.amount})]},t))})]}):y&&y.length>0?(0,l.jsx)("div",{className:"space-y-2 text-sm font-['Open_Sans'] mb-4",children:y.map((e,t)=>(0,l.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,l.jsx)("span",{className:"text-[#363842] truncate",children:(0,p.g)(e.name)||e.name}),(0,l.jsx)("span",{className:"text-[#363842] font-medium shrink-0",children:e.amount})]},t))}):(0,l.jsxs)("div",{className:"space-y-3 text-sm font-['open_sans']",children:[(0,l.jsx)(x,{label:"Price",value:t||s}),h&&"0"!==h&&(0,l.jsx)(x,{label:"Discount Price",value:"-".concat(h)}),f&&"0"!==f&&(0,l.jsx)(x,{label:"Discount %",value:"".concat(f,"%")}),v&&(0,l.jsx)(x,{label:"Tax",value:v})]}),(0,l.jsx)("hr",{className:"my-4 border-[#E5E7EB]"}),(0,l.jsxs)("div",{className:"flex justify-between text-sm font-['Open_Sans'] text-[#363842]",children:[(0,l.jsx)("span",{children:"Total"}),(0,l.jsx)("span",{children:s})]}),h&&(!b||0===b.length)&&(0,l.jsxs)("div",{className:"flex justify-between text-sm font-['Open_Sans'] text-[#363842] mt-1",children:[(0,l.jsx)("span",{children:"Discount"}),(0,l.jsxs)("span",{className:"text-[#6366F1]",children:["-",h]})]}),j&&b&&b.length>0&&(0,l.jsxs)("div",{className:"flex justify-between text-sm font-['Open_Sans'] text-[#363842] mt-1",children:[(0,l.jsx)("span",{children:b&&b.length>0&&y&&y.length>0?"Discount":"Bundle Discount"}),(0,l.jsx)("span",{className:"text-[#6366F1]",children:j})]}),(0,l.jsxs)("div",{className:"flex justify-between font-semibold text-[16px] font-['Poppins'] text-[#363842] mt-3",children:[(0,l.jsx)("span",{children:"To pay"}),(0,l.jsx)("span",{children:g})]}),(0,l.jsxs)("label",{className:"flex items-start gap-2 mt-4 text-xs text-[#6b7280]",children:[(0,l.jsx)("input",{type:"checkbox",className:"mt-[2px]",checked:E,onChange:e=>P(e.target.checked)}),(0,l.jsxs)("span",{children:["Please check to acknowledge our"," ",(0,l.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),_(!0)},className:"text-[#4f5dff] cursor-pointer underline hover:no-underline focus:outline-none focus:ring-0",children:"Privacy & Terms Policy"})]})]}),(0,l.jsx)("button",{onClick:B,disabled:F||!E||N&&0===N.length,className:" w-full mt-5 rounded-lg bg-gradient-to-b from-[#3b82f6] to-[#2563eb] py-3 text-white font-semibold text-sm sm:text-base hover:opacity-95 transition disabled:opacity-50 disabled:cursor-not-allowed ",title:E?N&&0===N.length?"No products in cart":F?"Processing order...":"":"Please accept the Privacy & Terms Policy",children:F?"Processing...":"Pay ".concat(g)}),(0,l.jsx)("div",{className:"mt-3 flex justify-center",children:(0,l.jsx)("img",{src:r.src,alt:"Norton",className:"h-5 sm:h-6"})}),S&&"undefined"!=typeof document?(0,n.createPortal)((0,l.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-[10000] flex items-center justify-center p-4 overscroll-contain",onClick:()=>_(!1),children:(0,l.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Privacy & Terms Policy",className:"relative w-full max-w-lg max-h-[85vh] bg-white rounded-2xl shadow-xl overflow-hidden flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 shrink-0",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold text-gray-900 font-['open_sans']",children:"Privacy & Terms Policy"}),(0,l.jsx)("button",{type:"button",onClick:()=>_(!1),className:"p-2 rounded-full text-gray-500 hover:text-gray-700 hover:bg-gray-100 transition-colors","aria-label":"Close",children:(0,l.jsx)(u.A,{className:"w-5 h-5"})})]}),(0,l.jsxs)("div",{className:"flex-1 min-h-0 p-4 overflow-y-auto text-sm text-gray-600 font-['open_sans'] space-y-4",children:[(0,l.jsxs)("section",{children:[(0,l.jsx)("h4",{className:"font-semibold text-gray-900 mb-2",children:"Privacy Policy"}),(0,l.jsx)("p",{children:"We respect your privacy and are committed to protecting your personal data. When you place an order, we collect only the information necessary to process your payment and fulfill your purchase (e.g. email, billing details). We do not sell your data to third parties. Your payment information is processed securely through our payment provider."})]}),(0,l.jsxs)("section",{children:[(0,l.jsx)("h4",{className:"font-semibold text-gray-900 mb-2",children:"Terms of Service"}),(0,l.jsx)("p",{children:"By completing this purchase, you agree to our terms of service. You are purchasing access to digital content as described. You agree to use the content only for personal, non-commercial use unless otherwise permitted. We reserve the right to update these terms; continued use after changes constitutes acceptance."})]}),(0,l.jsxs)("section",{children:[(0,l.jsx)("h4",{className:"font-semibold text-[#DC2626] mb-2",children:"No Refund Policy"}),(0,l.jsx)("p",{children:"All sales on this platform are final. Due to the digital nature of the products, no refunds will be issued after purchase. Please review the product description, previews, and samples carefully before completing your purchase."})]}),(0,l.jsxs)("section",{children:[(0,l.jsx)("h4",{className:"font-semibold text-gray-900 mb-2",children:"Contact"}),(0,l.jsxs)("p",{children:["For questions about privacy or terms, contact us at"," ",(0,l.jsx)(m.A,{user:"support",domain:"cness.co",className:"text-[#4f5dff] hover:underline"}),"."]})]})]}),(0,l.jsx)("div",{className:"p-4 border-t border-gray-200 shrink-0",children:(0,l.jsx)("button",{type:"button",onClick:()=>_(!1),className:"w-full py-2.5 rounded-lg font-medium text-white transition-colors",style:{background:"#4f5dff"},children:"Close"})})]})}),document.body):null]})}},95268:(e,t,s)=>{s.d(t,{A:()=>i});var l=s(95155),r=s(12115),a=s(85449),n=s(21397);let i=e=>{let{type:t,url:s,thumbnail:i,title:o,layout:c="auto"}=e,[d,u]=(0,r.useState)(!1),p=(0,r.useMemo)(()=>
1!!("string"==typeof i?i.trim():"")&&!d,[i,d]);return(0,l.jsx)("div",{className:"constrained"===c?"w-full h-full":"w-full",children:(()=>{switch(t){case"video":if("constrained"===c)return(0,l.jsx)("div",{className:"relative w-full h-full bg-black rounded-lg overflow-hidden flex items-center justify-center",children:(0,l.jsx)("video",{src:s,poster:i,controls:!0,className:"w-full h-full object-contain",children:"Your browser does not support the video tag."})});return(0,l.jsx)("div",{className:"relative w-full aspect-video bg-black rounded-lg overflow-hidden",children:(0,l.jsx)("video",{src:s,poster:i,controls:!0,className:"w-full h-full",children:"Your browser does not support the video tag."})});case"audio":return(0,l.jsxs)("div",{className:"rounded-2xl border border-gray-200 bg-gradient-to-br from-[#F6F7FF] via-white to-[#F3FBFF] p-4 sm:p-6",children:[(0,l.jsxs)("div",{className:"flex items-start gap-4",children:[p?(0,l.jsx)("img",{src:i,alt:o,className:"w-16 h-16 sm:w-20 sm:h-20 rounded-xl object-cover border border-gray-200 shadow-sm",onError:()=>u(!0)}):(0,l.jsx)("div",{className:"w-16 h-16 sm:w-20 sm:h-20 rounded-xl bg-white border border-gray-200 shadow-sm flex items-center justify-center",children:(0,l.jsx)("div",{className:"w-11 h-11 rounded-full bg-[#7077FE]/10 flex items-center justify-center",children:(0,l.jsx)(a.A,{className:"w-5 h-5 text-[#7077FE]","aria-hidden":"true"})})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("h4",{className:"font-poppins font-semibold text-gray-900 leading-snug break-words",children:o}),(0,l.jsx)("p",{className:"mt-1 text-xs sm:text-sm text-gray-600",children:"Audio preview"})]})]}),(0,l.jsx)("div",{className:"mt-5 rounded-xl bg-white border border-gray-200 p-3 shadow-sm",children:(0,l.jsx)("audio",{src:s,controls:!0,className:"w-full",children:"Your browser does not support the audio tag."})})]});case"image":if("constrained"===c)return(0,l.jsx)("div",{className:"relative w-full h-full rounded-lg overflow-hidden bg-white flex items-center justify-center",children:(0,l.jsx)("img",{src:s,alt:o,className:"w-full h-full object-contain"})});return(0,l.jsx)("div",{className:"relative w-full rounded-lg overflow-hidden",children:(0,l.jsx)("img",{src:s,alt:o,className:"w-full h-auto object-contain max-h-[600px]"})});case"pdf":return(0,l.jsxs)("div",{className:"relative w-full bg-gray-100 rounded-lg overflow-hidden border border-gray-200 ".concat("constrained"===c?"h-full":"h-[70vh]"),children:[(0,l.jsx)("iframe",{src:s,title:o,className:"w-full h-full border-0"}),(0,l.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",title:"Open in new tab",className:"absolute top-2 right-2 inline-flex items-center justify-center w-9 h-9 bg-white/90 text-gray-700 rounded-lg shadow-sm hover:bg-white transition",children:(0,l.jsx)(n.A,{size:16})})]});default:return null}})()})}}}]);
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.