1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5386,7738],{7738:function(e,t,r){r.r(t),r.d(t,{adminFeesHelpAtom:function(){return P},cartItemsAtom:function(){return N},default:function(){return j}});var n=r(16835),a=r(35944),i=[{name:"APPEALS",href:"/appeals"},{name:"VOLUNTEER WITH US",href:"/volunteer-with-us"},{name:"ABOUT US",href:"/about-us"},{name:(0,a.tZ)("div",{children:"CHARITY: EXPLAINED"}),href:"/charity-explained"},{name:(0,a.tZ)("div",{children:"ZAKAT CALCULATOR"}),href:"/zakat-calculator"},{name:"OUR BLOG",href:"/our-blog"},{name:"GALLERY",href:"/gallery"},{name:"PRODUCTS",href:"/products"}],l=r(16054),o=r(2682),c=r(44492),s=r(47454),d=r(11868),u=r(17108),p=r(54642),m=r(48583),h=r(95495),f=r(5152),b=r.n(f),g=r(89755),y=r.n(g),v=r(41664),Z=r.n(v),x=r(67294),O=r(37392),w=r(11163),S=b()(function(){return Promise.all([r.e(9943),r.e(2961),r.e(5951),r.e(8675),r.e(5456)]).then(r.bind(r,88675))},{loadableGenerated:{webpack:function(){return[88675]}}}),N=(0,h.O4)("cartItems",[]),P=(0,h.O4)("adminFeesHelp",{included:!1,agreedAmount:0}),j=function(){var e=x.useState(!1),t=(0,n.Z)(e,2),r=t[0],h=t[1],f=function(){h(!r)},b=x.useState(!1),g=(0,n.Z)(b,2),v=g[0],P=g[1],j=(0,m.KO)(N),k=(0,n.Z)(j,2),I=k[0];k[1];var C=(0,m.KO)(O.LF),A=(0,n.Z)(C,2),L=A[0],B=A[1];console.log("cartItems in header",I);var D=(0,w.useRouter)();(0,x.useEffect)(function(){B((0,O.PR)())},[]);var E=function(){(0,O.kS)(),B(null),D.push("/")};return(0,a.tZ)("div",{className:"z-50",children:(0,a.BX)("div",{className:"fixed w-full z-50",id:"header",children:[(0,a.tZ)("div",{className:"bg-primary py-2",children:(0,a.BX)("div",{className:"md:px-20 mx-auto flex flex-col lg:flex-row md:gap-5 items-center justify-between",children:[(0,a.BX)("div",{className:"flex sm:flex-row flex-col gap-1 md:gap-6 text-black",children:[(0,a.BX)("div",{className:"md:flex hidden md:items-start md:justify-start items-center justify-center gap-1 md:gap-2",children:[(0,a.tZ)(c.Z,{}),(0,a.tZ)("a",{href:"mailto:".concat(l.S.compnay_email),children:l.S.compnay_email})]}),(0,a.BX)("div",{className:"md:flex hidden md:items-start md:justify-start items-center justify-center gap-1",children:[(0,a.tZ)(d.Z,{}),(0,a.tZ)("a",{href:"tel:".concat(l.S.tel_number),children:l.S.tel_number})]})]}),(0,a.BX)("div",{className:"flex gap-5 items-center",children:[L?(0,a.BX)("div",{className:"flex items-center gap-3",children:[(0,a.tZ)(Z(),{href:"/customer-portal",legacyBehavior:!0,children:(0,a.tZ)("span",{className:"text-black font-semibold cursor-pointer hover:underline",children:L.first_name||L.email})}),(0,a.tZ)("button",{onClick:E,className:"text-black hover:underline text-sm",children:"Logout"})]}):(0,a.BX)("div",{className:"flex items-center gap-3",children:[(0,a.tZ)(Z(),{href:"/login",legacyBehavior:!0,children:(0,a.tZ)("button",{className:"text-black hover:underline font-semibold",children:"Login"})}),(0,a.tZ)(Z(),{href:"/sign-up",legacyBehavior:!0,children:(0,a.tZ)("button",{className:"text-black hover:underline font-semibold",children:"Sign Up"})})]}),(0,a.BX)("div",{className:"cursor-pointer pr-4 relative",onClick:function(){P(!0)},children:[(0,a.tZ)(u.Z,{className:"text-black text-3xl md:text-4xl"}),I.length>0&&(0,a.tZ)("div",{className:"absolute top-0 right-2 bg-white rounded-full text-black text-[14px] font-semibold px-[4px]",children:I.length})]})]})]})}),(0,a.BX)("div",{className:"bg-black w-full z-10 md:px-20 py-2 xl:py-0 flex items-center justify-between ",children:[(0,a.tZ)("div",{onClick:function(){h(!r)},className:"lg:hidden block bg-secondary py-5 ",children:(0,a.tZ)(s.Z,{className:"text-white text-4xl"})}),(0,a.tZ)("div",{className:"",children:(0,a.tZ)(Z(),{href:"/",children:(0,a.tZ)(y(),{src:l.S.logo_url,alt:l.S.logo_alt,width:l.S.width,height:l.S.height})})}),(0,a.BX)("div",{className:"lg:flex hidden lg:flex-1 lg:min-w-0 lg:items-start lg:justify-between lg:gap-6 py-6 lg:ml-6",children:[(0,a.tZ)("div",{className:"flex items-center flex-wrap gap-x-4 gap-y-2 text-white hover:text-white/50 transition-all",children:i.map(function(e,t){return(0,a.tZ)("div",{className:"whitespace-nowrap text-md",children:(0,a.tZ)(Z(),{href:e.href,className:"hover:text-primary transition-all",children:e.name})},t)})}),(0,a.BX)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,a.tZ)(Z(),{href:"/gift-card",legacyBehavior:!0,children:(0,a.tZ)("button",{className:"bg-primary text-black hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold",children:"GIFT CARD"})}),(0,a.tZ)(Z(),{href:"/",legacyBehavior:!0,children:(0,a.tZ)("button",{className:"bg-primary text-black hover:bg-white/50 transition-all px-3 py-2 rounded font-semibold",children:"DONATE"})}),L?(0,a.tZ)(Z(),{href:"/customer-portal",legacyBehavior:!0,children:(0,a.tZ)("button",{className:"bg-primary text-black hover:bg-white/50 transition-all px-3 py-2 rounded font-semibold",children:"Dashboard"})}):(0,a.tZ)(a.HY,{})]})]}),(0,a.tZ)(p.ZP,{anchor:"left",open:r,onClose:f,children:(0,a.BX)("div",{className:"bg-black h-full overflow-scroll w-[80vw] md:w-[50vw] px-5 md:px-20 py-10",children:[(0,a.BX)("div",{className:"",children:[(0,a.tZ)(Z(),{href:"/",children:(0,a.tZ)(y(),{src:l.S.logo_url,alt:l.S.logo_alt,width:l.S.width,height:l.S.height})}),(0,a.tZ)(o.Z,{className:"absolute top-5 right-5 text-white cursor-pointer",onClick:f})]}),(0,a.BX)("div",{className:"mt-10 space-y-7",children:[i.map(function(e,t){return(0,a.tZ)("div",{children:(0,a.tZ)("div",{children:(0,a.tZ)(Z(),{href:e.href,onClick:function(){h(!1)},className:"text-white transition-all text-lg font-semibold",children:e.name})})},t)}),(0,a.BX)("div",{className:"space-y-4",children:[(0,a.tZ)(Z(),{href:"/gift-card",legacyBehavior:!0,children:(0,a.tZ)("button",{onClick:function(){return h(!1)},className:"bg-primary text-white hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold",children:"GIFT CARD"})}),L?(0,a.BX)(a.HY,{children:[(0,a.tZ)(Z(),{href:"/customer-portal",legacyBehavior:!0,children:(0,a.tZ)("button",{onClick:function(){return h(!1)},className:"bg-primary text-white hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold block w-full",children:"Dashboard"})}),(0,a.tZ)("button",{onClick:function(){E(),h(!1)},className:"bg-primary text-white hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold block w-full",children:"Logout"})]}):(0,a.BX)(a.HY,{children:[(0,a.tZ)(Z(),{href:"/login",legacyBehavior:!0,children:(0,a.tZ)("button",{onClick:function(){return h(!1)},className:"bg-primary text-white hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold block w-full",children:"Login"})}),(0,a.tZ)(Z(),{href:"/sign-up",legacyBehavior:!0,children:(0,a.tZ)("button",{onClick:function(){return h(!1)},className:"bg-primary text-white hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold block w-full",children:"Sign Up"})}),(0,a.BX)("div",{className:" items-center justify-center gap-1 md:gap-2 text-white ",children:[(0,a.tZ)(c.Z,{}),(0,a.tZ)("a",{href:"mailto:".concat(l.S.compnay_email),children:l.S.compnay_email})]}),(0,a.BX)("div",{className:"items-center justify-center gap-1 md:gap-2 text-white",children:[(0,a.tZ)(d.Z,{}),(0,a.tZ)("a",{href:"tel:".concat(l.S.tel_number),children:l.S.tel_number})]})]})]})]})]})}),(0,a.tZ)(S,{CartState:v,setCartState:P})]})]})})}},75386:function(e,t,r){r.d(t,{Z:function(){return N}});var n=r(59499),a=r(27812),i=r(16835),l=r(7738),o=r(86782),c=r(56312),s=r(41411),d=r(35384),u=r(19479),p=r(6620),m=r(31745),h=r(48583),f=r(67294),b=r(87536),g=r(58480),y=r(1604),v=[{country:"Afghanistan",slug:"afghanistan",options:[{type:"small",label:"Small Animal",price:90},{type:"large",label:"Large Animal",price:420},{type:"share",label:"1/7th Share",price:60}]},{country:"Bosnia",slug:"bosnia",options:[{type:"small",label:"Small Animal",price:150}]},{country:"India",slug:"india",options:[{type:"large",label:"Large Animal (Full Share)",price:115},{type:"share",label:"1/7th Share",price:17}]},{country:"Madagascar",slug:"madagascar",options:[{type:"small",label:"Small Animal",price:50},{type:"large",label:"Large Animal",price:600},{type:"share",label:"1/7th Share",price:86}]},{country:"Pakistan",slug:"pakistan",options:[{type:"small",label:"Small Animal",price:95},{type:"large",label:"Large Animal",price:315},{type:"share",label:"1/7th Share",price:45}]},{country:"Sierra Leone",slug:"sierra-leone",options:[{type:"small",label:"Small Animal",price:70},{type:"large",label:"Large Animal",price:500},{type:"share",label:"1/7th Share",price:72}]},{country:"Sudan / Port Sudan",slug:"sudan",options:[{type:"small",label:"Small Animal",price:60},{type:"large",label:"Large Animal",price:1300},{type:"share",label:"1/7th Share",price:186}]},{country:"Zimbabwe",slug:"zimbabwe",options:[{type:"small",label:"Small Animal",price:65},{type:"large",label:"Large Animal",price:355},{type:"share",label:"1/7th Share",price:51}]},{country:"Egypt (Gazan Refugees)",slug:"egypt",options:[{type:"small",label:"Small Animal",price:215}
1,{type:"large",label:"Large Animal",price:1640},{type:"share",label:"1/7th Share",price:235}]},{country:"Lebanon",slug:"lebanon",options:[{type:"small",label:"Small Animal",price:160},{type:"large",label:"Large Animal",price:2e3},{type:"share",label:"1/7th Share",price:286}]},{country:"Palestine - Gaza",slug:"palestine-gaza",options:[{type:"small",label:"Small Animal",price:2500}]},{country:"Palestine - West Bank",slug:"palestine-westbank",options:[{type:"small",label:"Small Animal",price:500},{type:"large",label:"Large Animal",price:4e3},{type:"share",label:"1/7th Share",price:572}]},{country:"Syria",slug:"syria",options:[{type:"small",label:"Small Animal",price:130},{type:"large",label:"Large Animal",price:1200},{type:"share",label:"1/7th Share",price:172}]},{country:"Yemen",slug:"yemen",options:[{type:"small",label:"Small Animal",price:90},{type:"large",label:"Large Animal",price:560},{type:"share",label:"1/7th Share",price:80}]}],Z=r(35944);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var w=y.z.object({country:y.z.string().min(1,{message:"Country is required"}),optionLabel:y.z.string().min(1,{message:"Size is required"}),unitPrice:y.z.coerce.number().min(1,{message:"Price is required"}),quantity:y.z.coerce.number().int().min(1,{message:"Quantity must be at least 1"})}),S={country:"",optionLabel:"",unitPrice:0,quantity:1},N=function(){var e=(0,g.dF)(),t=(0,h.KO)(l.cartItemsAtom),r=(0,i.Z)(t,2),n=r[0],y=r[1],x=(0,b.cI)({resolver:(0,c.F)(w),defaultValues:S}),N=(0,b.qo)({control:x.control,name:"country"}),P=Number((0,b.qo)({control:x.control,name:"unitPrice"})||0)*Number((0,b.qo)({control:x.control,name:"quantity"})||0),j=(0,f.useMemo)(function(){var e,t=v.find(function(e){return e.country===N});return null!==(e=null==t?void 0:t.options)&&void 0!==e?e:[]},[N]);return(0,Z.tZ)(o.l0,O(O({},x),{},{children:(0,Z.BX)("form",{onSubmit:x.handleSubmit(function(t){var r="".concat(t.country,"/").concat(t.optionLabel);y([].concat((0,a.Z)(n),[{SelectedReason:"Qurbani Donation",SelectedSubReason:r,description:r,country:t.country,animal:t.optionLabel,quantity:Number(t.quantity),amount:Number(t.unitPrice),donationType:"oneTime"}])),e("Added to cart successfully!","success"),x.reset(S)}),className:"bg-white py-7 grid grid-cols-1 rounded-lg px-4 lg:px-10 items-center gap-4 overflow-visible overflow-auto",children:[(0,Z.tZ)("div",{className:"text-3xl font-bold",children:"Qurbani Donation"}),(0,Z.tZ)(o.Wi,{control:x.control,name:"country",render:function(e){var t=e.field;return(0,Z.BX)(o.xJ,{children:[(0,Z.tZ)(o.lX,{children:"Country"}),(0,Z.tZ)(o.NI,{children:(0,Z.BX)(m.Z,{fullWidth:!0,value:t.value,onChange:function(e){var r=e.target.value;t.onChange(r),x.setValue("optionLabel",""),x.setValue("unitPrice",0),x.setValue("quantity",1)},displayEmpty:!0,children:[(0,Z.tZ)(s.Z,{value:"",disabled:!0,children:"Select Country"}),v.map(function(e){return(0,Z.tZ)(s.Z,{value:e.country,children:e.country},e.slug)})]})}),(0,Z.tZ)(o.zG,{className:"text-red-500 text-sm mt-1"})]})}}),(0,Z.tZ)(o.Wi,{control:x.control,name:"optionLabel",render:function(e){var t=e.field;return(0,Z.BX)(o.xJ,{children:[(0,Z.tZ)(o.lX,{children:"Type of Donation"}),(0,Z.tZ)(o.NI,{children:(0,Z.BX)(m.Z,{fullWidth:!0,value:t.value,onChange:function(e){var r,n=e.target.value;t.onChange(n);var a=j.find(function(e){return e.label===n});x.setValue("unitPrice",null!==(r=null==a?void 0:a.price)&&void 0!==r?r:0,{shouldValidate:!0}),x.setValue("quantity",1,{shouldValidate:!0})},disabled:!N,displayEmpty:!0,children:[(0,Z.tZ)(s.Z,{value:"",disabled:!0,children:"Select Size"}),j.map(function(e){return(0,Z.BX)(s.Z,{value:e.label,children:[e.label," (\xa3",e.price,")"]},"".concat(e.type,"-").concat(e.price))})]})}),(0,Z.tZ)(o.zG,{className:"text-red-500 text-sm mt-1"})]})}}),(0,Z.tZ)(o.Wi,{control:x.control,name:"quantity",render:function(e){var t=e.field;return(0,Z.BX)(o.xJ,{children:[(0,Z.tZ)(o.lX,{children:"Quantity"}),(0,Z.tZ)(o.NI,{children:(0,Z.tZ)(d.Z,{type:"number",fullWidth:!0,value:t.value,onChange:t.onChange,disabled:!N||!x.getValues("optionLabel"),inputProps:{min:1}})}),(0,Z.tZ)(o.zG,{className:"text-red-500 text-sm mt-1"})]})}}),(0,Z.BX)(o.xJ,{children:[(0,Z.tZ)(o.lX,{children:"Total Amount"}),(0,Z.tZ)(o.NI,{children:(0,Z.tZ)(d.Z,{fullWidth:!0,disabled:!0,value:P>0?P:"",placeholder:"0",InputProps:{startAdornment:(0,Z.tZ)(u.Z,{position:"start",children:"\xa3"})}})})]}),(0,Z.tZ)("div",{className:"flex justify-end",children:(0,Z.tZ)(p.Z,{type:"submit",className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"Donate Now"})})]})}))}},86782:function(e,t,r){r.d(t,{l0:function(){return S},NI:function(){return A},pf:function(){return L},Wi:function(){return P},xJ:function(){return I},lX:function(){return C},zG:function(){return B}});var n=r(4730),a=r(59499),i=r(77191),l=r(36864),o=r(67294),c=r(88426),s=r(87536),d=r(49102),u=r(45139),p=r(83307),m=r(35944),h=["className"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var b=(0,u.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),g=o.forwardRef(function(e,t){var r=e.className,i=(0,n.Z)(e,h);return(0,m.tZ)(d.f,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?f(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:(0,p.cn)(b(),r)},i))});g.displayName=d.f.displayName;var y=["className"],v=["className"],Z=["className"],x=["className","children"];function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var S=s.RV,N=o.createContext({}),P=function(e){var t=(0,l.Z)({},((0,i.Z)(e),e));return(0,m.tZ)(N.Provider,{value:{name:t.name},children:(0,m.tZ)(s.Qr,w({},t))})},j=function(){var e=o.useContext(N),t=o.useContext(k),r=(0,s.Gc)(),n=r.getFieldState,a=r.formState,i=n(e.name,a);if(!e)throw Error("useFormField should be used within <FormField>");var l=t.id;return w({id:l,name:e.name,formItemId:"".concat(l,"-form-item"),formDescriptionId:"".concat(l,"-form-item-description"),formMessageId:"".concat(l,"-form-item-message")},i)},k=o.createContext({}),I=o.forwardRef(function(e,t){var r=e.className,a=(0,n.Z)(e,y),i=o.useId();return(0,m.tZ)(k.Provider,{value:{id:i},children:(0,m.tZ)("div",w({ref:t,className:(0,p.cn)("space-y-2",r)},a))})});I.displayName="FormItem";var C=o.forwardRef(function(e,t){var r=e.className,a=(0,n.Z)(e,v),i=j(),l=i.error,o=i.formItemId;return(0,m.tZ)(g,w({ref:t,className:(0,p.cn)(l&&"text-red-500 dark:text-red-900",r),htmlFor:o},a))});C.displayName="FormLabel";var A=o.forwardRef(function(e,t){var r=(0,l.Z)({},((0,i.Z)(e),e)),n=j(),a=n.error,o=n.formItemId,s=n.formDescriptionId,d=n.formMessageId;return(0,m.tZ)(c.g7,w({ref:t,id:o,"aria-describedby":a?"".concat(s," ").concat(d):"".concat(s),"aria-invalid":!!a},r))});A.displayName="FormControl";var L=o.forwardRef(function(e,t){var r=e.className,a=(0,n.Z)(e,Z),i=j().formDescriptionId;return(0,m.tZ)("p",w({ref:t,id:i,className:(0,p.cn)("text-sm text-slate-500 dark:text-slate-400",r)},a))});L.displayName="FormDescription";var B=o.forwardRef(function(e,t){var r=e.className,a=e.children,i=(0,n.Z)(e,x),l=j(),o=l.error,c=l.formMessageId,s=o?String(null==o?void 0:o.message):a;return s?(0,m.tZ)("p",w(w({ref:t,id:c,className:(0,p.cn)("text-sm font-medium text-red-500 dark:text-red-900",r)},i),{},{children:s})):null});B.displayName="FormMessage"},19479:function(e,t,r){r.d(t,{Z:function(){return P}});var n,a=r(4730),i=r(59499),l=r(67294),o=r(90512),c=r(94317),s=r(79566),d=r(55245),u=r(62718),p=r(38396),m=r(62947),h=r(75913),f=r(25685),b=r(57967),g=r(98230);function y(e){return(0,g.ZP)("MuiInputAdornment",e)}var v=(0,b.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Z=r(85893),x=["children","className","component","disablePointerEvents","disableTypography","position","variant"];function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach(function(t){(0,i.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var S=function(e){var t=e.classes,r=e.disablePointerEvents,n=e.hiddenLabel,a=e.position,i=e.size,l=e.variant,o={root:["root",r&&"disablePointerEvents",a&&"position".concat((0,s.Z)(a)
1),l,n&&"hiddenLabel",i&&"size".concat((0,s.Z)(i))]};return(0,c.Z)(o,y,t)},N=(0,m.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["position".concat((0,s.Z)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((0,h.Z)(function(e){var t=e.theme;return{display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:(0,i.Z)({},"&.".concat(v.positionStart,"&:not(.").concat(v.hiddenLabel,")"),{marginTop:16})},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}})),P=l.forwardRef(function(e,t){var r=(0,f.i)({props:e,name:"MuiInputAdornment"}),i=r.children,c=r.className,s=r.component,m=r.disablePointerEvents,h=r.disableTypography,b=r.position,g=r.variant,y=(0,a.Z)(r,x),v=(0,p.Z)()||{},O=g;g&&v.variant,v&&!O&&(O=v.variant);var P=w(w({},r),{},{hiddenLabel:v.hiddenLabel,size:v.size,disablePointerEvents:void 0!==m&&m,position:b,variant:O}),j=S(P);return(0,Z.jsx)(u.Z.Provider,{value:null,children:(0,Z.jsx)(N,w(w({as:void 0===s?"div":s,ownerState:P,className:(0,o.Z)(j.root,c),ref:t},y),{},{children:"string"!=typeof i||void 0!==h&&h?(0,Z.jsxs)(l.Fragment,{children:["start"===b?n||(n=(0,Z.jsx)("span",{className:"notranslate",children:"â"})):null,i]}):(0,Z.jsx)(d.Z,{color:"textSecondary",children:i})}))})})},41411:function(e,t,r){r.d(t,{Z:function(){return C}});var n=r(4730),a=r(59499),i=r(67294),l=r(90512),o=r(94317),c=r(53109),s=r(98425),d=r(62947),u=r(75913),p=r(25685),m=r(42480),h=r(74600),f=r(11402),b=r(24159),g=r(57967),y=(0,g.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),v=(0,g.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]),Z=(0,g.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),x=r(98230);function O(e){return(0,x.ZP)("MuiMenuItem",e)}var w=(0,g.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),S=r(85893),N=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"];function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var k=function(e){var t=e.disabled,r=e.dense,n=e.divider,a=e.disableGutters,i=e.selected,l=e.classes,c=(0,o.Z)({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",i&&"selected"]},O,l);return j(j({},l),c)},I=(0,d.ZP)(h.Z,{shouldForwardProp:function(e){return(0,s.Z)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((0,u.Z)(function(e){var t,r=e.theme;return j(j({},r.typography.body1),{},(t={display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,a.Z)(t,"&.".concat(w.selected),(0,a.Z)({backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},"&.".concat(w.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)})),(0,a.Z)(t,"&.".concat(w.selected,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)}}),(0,a.Z)(t,"&.".concat(w.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,a.Z)(t,"&.".concat(w.disabled),{opacity:(r.vars||r).palette.action.disabledOpacity}),(0,a.Z)(t,"& + .".concat(y.root),{marginTop:r.spacing(1),marginBottom:r.spacing(1)}),(0,a.Z)(t,"& + .".concat(y.inset),{marginLeft:52}),(0,a.Z)(t,"& .".concat(Z.root),{marginTop:0,marginBottom:0}),(0,a.Z)(t,"& .".concat(Z.inset),{paddingLeft:36}),(0,a.Z)(t,"& .".concat(v.root),{minWidth:36}),(0,a.Z)(t,"variants",[{props:function(e){return!e.ownerState.disableGutters},style:{paddingLeft:16,paddingRight:16}},{props:function(e){return e.ownerState.divider},style:{borderBottom:"1px solid ".concat((r.vars||r).palette.divider),backgroundClip:"padding-box"}},{props:function(e){return!e.ownerState.dense},style:(0,a.Z)({},r.breakpoints.up("sm"),{minHeight:"auto"})},{props:function(e){return e.ownerState.dense},style:j(j({minHeight:32,paddingTop:4,paddingBottom:4},r.typography.body2),{},(0,a.Z)({},"& .".concat(v.root," svg"),{fontSize:"1.25rem"}))}]),t))})),C=i.forwardRef(function(e,t){var r,a=(0,p.i)({props:e,name:"MuiMenuItem"}),o=a.autoFocus,c=void 0!==o&&o,s=a.component,d=a.dense,u=void 0!==d&&d,h=a.divider,g=a.disableGutters,y=void 0!==g&&g,v=a.focusVisibleClassName,Z=a.role,x=a.tabIndex,O=a.className,w=(0,n.Z)(a,N),P=i.useContext(m.Z),C=i.useMemo(function(){return{dense:u||P.dense||!1,disableGutters:y}},[P.dense,u,y]),A=i.useRef(null);(0,f.Z)(function(){c&&A.current&&A.current.focus()},[c]);var L=j(j({},a),{},{dense:C.dense,divider:void 0!==h&&h,disableGutters:y}),B=k(a),D=(0,b.Z)(A,t);return a.disabled||(r=void 0!==x?x:-1),(0,S.jsx)(m.Z.Provider,{value:C,children:(0,S.jsx)(I,j(j({ref:D,role:void 0===Z?"menuitem":Z,tabIndex:r,component:void 0===s?"li":s,focusVisibleClassName:(0,l.Z)(B.focusVisible,v),className:(0,l.Z)(B.root,O)},w),{},{ownerState:L,classes:B}))})})},37392:function(e,t,r){r.d(t,{LF:function(){return n},PR:function(){return a},av:function(){return l},is:function(){return i},kS:function(){return o}});var n=(0,r(95495).O4)("user",null),a=function(){var e=localStorage.getItem("user");if(!e||"null"===e)return null;try{return JSON.parse(e)}catch(e){return null}},i=function(){var e=localStorage.getItem("userData");if(!e||"null"===e)return null;try{return JSON.parse(e)}catch(e){return null}},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){localStorage.setItem("user",JSON.stringify(e));var r=t||e,n={firstName:r.firstName||r.first_name||"",lastName:r.lastName||r.last_name||"",email:r.email||"",phone:r.phone||"",address:r.address||"",city:r.city||"",country:r.country||"",postcode:r.postcode||""};localStorage.setItem("userData",JSON.stringify(n))}else localStorage.removeItem("user"),localStorage.removeItem("userData")},o=function(){localStorage.removeItem("user"),localStorage.removeItem("userData")}}}]);
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.