|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/sbaedu/test.sbaedu.com/static/js/ |
Upload File : |
/*! For license information please see 304.1deb6d1d.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunktechwind=self.webpackChunktechwind||[]).push([[304],{9172:(e,t,a)=>{a.d(t,{aX:()=>o,c0:()=>c,gF:()=>d,k6:()=>m});var s=a(3402),r=a(4592),l=a(1822);s.Z.defaults.baseURL=l.gA;const n=r.Z.get("icp_authData")?JSON.parse(r.Z.get("icp_authData")):null,i=n?n.token:null,o=async e=>{try{const t=await s.Z.post("/register",e,{headers:{apikey:l.vo,domain:l.nw}});t.data.data;return localStorage.setItem("icp_islogin","true"),t}catch(t){return console.log("Registration failed:",t),t||{status:500,data:{message:"An unexpected error occurred."}}}},d=async e=>{try{return await s.Z.post("/forgot-password",e,{headers:{apikey:l.vo,domain:l.nw}})}catch(t){return t||{status:500,data:{message:"An unexpected error occurred."}}}},c=async e=>{try{return await s.Z.post("/forgot-password-continue",e,{headers:{apikey:l.vo,domain:l.nw}})}catch(t){return t||{status:500,data:{message:"An unexpected error occurred."}}}},m=async e=>{try{return await s.Z.post("/update-profile",e,{headers:{apikey:l.vo,domain:l.nw,token:i}})}catch(t){return t||{status:500,data:{message:"An unexpected error occurred."}}}}},2987:(e,t,a)=>{a.d(t,{Q:()=>o,n:()=>d});var s=a(2595),r=a(8700),l=a(3402),n=a(1822);l.Z.defaults.baseURL=n.gA;const i=new r.Z,o=e=>async t=>{t({type:s.Cn,payload:[]});try{const a=await l.Z.post("/login",e,{headers:{apikey:n.vo,domain:n.nw}}),r=a.data.data;localStorage.setItem("icp_islogin","true"),localStorage.setItem("icp_authData",JSON.stringify(r)),t({type:s.XP,payload:a.data})}catch(a){t({type:s.iP,error:a})}},d=()=>e=>{localStorage.removeItem("icp_islogin"),localStorage.removeItem("icp_authData"),i.remove("icp_authData"),e({type:s.Nv})}},5460:(e,t,a)=>{a.r(t),a.d(t,{default:()=>O});var s=a(9867),r=a(4670),l=a(5644),n=a(3402),i=a(1822);const o=a.p+"static/media/5.6e4c0f78ee599bce16a7.png";var d=a(4234),c=a(2909),m=a(1241),p=a(1403),x=a(8731),u=a.n(x);function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},h.apply(this,arguments)}function b(e,t){if(null==e)return{};var a,s,r=function(e,t){if(null==e)return{};var a,s,r={},l=Object.keys(e);for(s=0;s<l.length;s++)a=l[s],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)a=l[s],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var g=(0,s.forwardRef)((function(e,t){var a=e.color,r=void 0===a?"currentColor":a,l=e.size,n=void 0===l?24:l,i=b(e,["color","size"]);return s.createElement("svg",h({ref:t,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},i),s.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),s.createElement("polyline",{points:"17 8 12 3 7 8"}),s.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"}))}));g.propTypes={color:u().string,size:u().oneOfType([u().string,u().number])},g.displayName="Upload";const f=g;var j=a(333),y=a(4592),v=a(9172),N=a(4436),w=a(2987),k=a(2834);function O(){const[e,t]=(0,s.useState)(0),[a,x]=(0,s.useState)(),[u,h]=(0,s.useState)(),[b,g]=(0,s.useState)(),[O,S]=(0,s.useState)(),C=(0,r.s0)(),_=(0,N.I0)(),I=(0,N.v9)((e=>e.websiteReducer.data)),[D,U]=(0,s.useState)([]),[Z,z]=(0,s.useState)(1),[A,E]=(0,s.useState)(0),[P,T]=(0,s.useState)(0),R=P;console.log(A);const F=localStorage.getItem("icp_authData"),B=F?JSON.parse(F):null,L=e=>{t(e)};(0,s.useEffect)((()=>{x(B),h(B.name),g(B.email),J()}),[Z]);const J=()=>{let e=JSON.stringify({user_unique_id:B.user_unique_id}),t={method:"post",maxBodyLength:1/0,url:i.gA+"/myorder?page=".concat(Z,"&limit=").concat(R),headers:{apikey:i.vo,domain:i.nw,"Content-Type":"application/json"},data:e};n.Z.request(t).then((e=>{U(e.data.data.data),z(e.data.data.current_page),T(e.data.data.per_page),E(Math.ceil(e.data.data.total/e.data.data.per_page))})).catch((e=>{console.log(e)}))};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(d.Z,{navClass:"nav-sticky"}),(0,k.jsx)("section",{className:"relative table w-full py-5 lg:py-10 bg-gray-50 dark:bg-slate-800",children:(0,k.jsxs)("div",{className:"container relative",children:[(0,k.jsx)("div",{className:"grid grid-cols-1 mt-12",children:(0,k.jsx)("h3",{className:"text-3xl leading-normal font-semibold",children:"My Account"})}),(0,k.jsx)("div",{className:"relative mt-3",children:(0,k.jsxs)("ul",{className:"tracking-[0.5px] mb-0 inline-flex space-x-1",children:[(0,k.jsx)("li",{className:"inline-block uppercase text-[13px] font-bold duration-500 ease-in-out hover:text-indigo-600",children:(0,k.jsx)(l.rU,{to:"/index-shop",children:I?I.data.site_name:""})}),(0,k.jsx)("li",{className:"inline-block text-base text-slate-950 dark:text-white mx-0.5",children:(0,k.jsx)(j.AeIR,{className:"text-xl"})}),(0,k.jsx)("li",{className:"inline-block uppercase text-[13px] font-bold duration-500 ease-in-out text-indigo-600","aria-current":"page",children:"My Account"})]})})]})}),(0,k.jsx)("section",{className:"relative md:py-12 py-8",children:(0,k.jsx)("div",{className:"container",children:(0,k.jsxs)("div",{className:"grid lg:grid-cols-12 md:grid-cols-2 grid-cols-1 gap-[30px]",children:[(0,k.jsx)("div",{className:"lg:col-span-3 md:col-span-5 bg-white dark:bg-slate-900 shadow dark:shadow-gray-800 rounded-md",children:(0,k.jsxs)("div",{className:"sticky top-20 ",children:[(0,k.jsxs)("div",{className:"flex items-center p-3",children:[(0,k.jsx)("img",{src:a?a.profile_pics:o,className:"size-16 rounded-full shadow dark:shadow-gray-800",alt:"user"}),(0,k.jsxs)("div",{className:"ms-2",children:[(0,k.jsx)("p",{className:"font-semibold text-slate-400",children:"Hello,"}),(0,k.jsx)("h5",{className:"text-lg font-semibold",children:a?a.name:""})]})]}),(0,k.jsxs)("ul",{className:"flex-column p-6 ",id:"myTab","data-tabs-toggle":"#myTabContent",role:"tablist",children:[(0,k.jsx)("li",{role:"presentation",children:(0,k.jsxs)("button",{onClick:()=>L(0),className:"".concat(0===e?"text-white bg-indigo-600 hover:text-white":""," px-4 py-2 text-start font-semibold rounded-md w-full mt-3 hover:text-indigo-600 transition-all duration-500 ease-in-out flex items-center"),id:"dashboard-tab","data-tabs-target":"#dashboard",type:"button",role:"tab","aria-controls":"dashboard","aria-selected":"false",children:[(0,k.jsx)(j.LkTr,{className:"text-[20px] me-2 align-middle"}),"Dashboard"]})}),(0,k.jsx)("li",{role:"presentation",children:(0,k.jsxs)("button",{onClick:()=>L(1),className:"".concat(1===e?"text-white bg-indigo-600 hover:text-white":""," px-4 py-2 text-start font-semibold rounded-md w-full mt-3 hover:text-indigo-600 transition-all duration-500 ease-in-out flex items-center"),id:"dashboard-tab","data-tabs-target":"#dashboard",type:"button",role:"tab","aria-controls":"dashboard","aria-selected":"false",children:[(0,k.jsx)(j.G8QQ,{className:"text-[20px] me-2 align-middle"}),"Orders"]})}),(0,k.jsx)("li",{role:"presentation"}),(0,k.jsx)("li",{role:"presentation",children:(0,k.jsxs)("button",{onClick:()=>{_((0,w.n)()),C("/")},className:"".concat(5===e?"text-white bg-indigo-600 hover:text-white":""," px-4 py-2 text-start font-semibold rounded-md w-full mt-3 hover:text-indigo-600 transition-all duration-500 ease-in-out flex items-center"),id:"dashboard-tab","data-tabs-target":"#dashboard",type:"button",role:"tab","aria-controls":"dashboard","aria-selected":"false",children:[(0,k.jsx)(j.B1gI,{className:"text-[20px] me-2 align-middle"}),"Logout"]})})]})]})}),(0,k.jsx)("div",{className:"lg:col-span-9 md:col-span-7",children:(0,k.jsxs)("div",{id:"myTabContent",className:"p-6 bg-white dark:bg-slate-900 shadow dark:shadow-gray-800 rounded-md",children:[0===e?(0,k.jsx)("div",{className:"",id:"dashboard",role:"tabpanel","aria-labelledby":"profile-tab",children:(0,k.jsx)("h1",{children:"Dashboard"})}):"",1===e?(0,k.jsx)("div",{id:"order",role:"tabpanel","aria-labelledby":"order-tab",children:(0,k.jsx)("div",{className:"relative overflow-x-auto shadow dark:shadow-gray-800 rounded-md",children:(0,k.jsxs)("table",{className:"w-full text-start text-slate-500 dark:text-slate-400",children:[(0,k.jsx)("thead",{className:"text-sm uppercase bg-slate-50 dark:bg-slate-800",children:(0,k.jsxs)("tr",{className:"text-start",children:[(0,k.jsx)("th",{scope:"col",className:"px-2 py-3 text-start",children:"Order no."}),(0,k.jsx)("th",{scope:"col",className:"px-2 py-3 text-start",children:"Product Name"}),(0,k.jsx)("th",{scope:"col",className:"px-2 py-3 text-start",children:"Date"}),(0,k.jsx)("th",{scope:"col",className:"px-2 py-3 text-start",children:"Status"}),(0,k.jsx)("th",{scope:"col",className:"px-2 py-3 text-start",children:"Total"})]})}),(0,k.jsxs)("tbody",{children:[D.map((e=>(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)("tr",{className:"bg-white dark:bg-slate-900 text-start",children:[(0,k.jsx)("th",{className:"px-2 py-3 text-start",scope:"row",children:e.id}),(0,k.jsx)("th",{className:"px-2 py-3 text-start",scope:"row",children:e.product_name}),(0,k.jsx)("td",{className:"px-2 py-3 text-start",children:e.created_at}),(0,k.jsx)("td",{className:"px-2 py-3 text-start text-green-600",children:e.payment_status}),(0,k.jsxs)("td",{className:"px-2 py-3 text-start",children:[(0,k.jsx)("i",{className:"fa fa-inr"})," ",e.total_amount," "]})]},e.id)}))),(0,k.jsxs)("div",{children:[(0,k.jsx)("button",{onClick:()=>z(Z-1),disabled:1===Z,children:"Previous"}),Array.from({length:A},((e,t)=>(0,k.jsx)("button",{onClick:()=>z(t+1),style:{fontWeight:Z===t+1?"bold":"normal"},children:t+1},t))),(0,k.jsx)("button",{onClick:()=>z(Z+1),disabled:Z===A,children:"Next"})]})]})]})})}):"",2===e?(0,k.jsx)("div",{id:"download",role:"tabpanel","aria-labelledby":"download-tab",children:(0,k.jsx)("div",{className:"relative overflow-x-auto shadow dark:shadow-gray-800 rounded-md",children:(0,k.jsxs)("table",{className:"w-full text-start text-slate-500 dark:text-slate-400",children:[(0,k.jsx)("thead",{className:"text-sm uppercase bg-slate-50 dark:bg-slate-800",children:(0,k.jsxs)("tr",{className:"text-start",children:[(0,k.jsx)("th",{scope:"col",className:"px-2 py-3 text-start min-w-[160px]",children:"Product Name"}),(0,k.jsx)("th",{scope:"col",className:"px-2 py-3 text-start min-w-[360px]",children:"Description"}),(0,k.jsx)("th",{scope:"col",className:"px-2 py-3 text-start min-w-[160px]",children:"Status"})]})}),(0,k.jsx)("tbody",{children:(0,k.jsxs)("tr",{className:"bg-white dark:bg-slate-900 text-start",children:[(0,k.jsx)("th",{className:"px-2 py-3 text-start",scope:"row",children:"Quick heal"}),(0,k.jsx)("td",{className:"px-2 py-3 text-start",children:"It is said that song composers of the past used dummy texts as lyrics when writing melodies in order to have a 'ready-made' text to sing with the melody."}),(0,k.jsx)("td",{className:"px-2 py-3 text-start text-green-600",children:"Downloaded"})]})})]})})}):"",3===e?(0,k.jsxs)("div",{id:"address",role:"tabpanel","aria-labelledby":"address-tab",children:[(0,k.jsx)("h6",{className:"text-slate-400 mb-0",children:"The following addresses will be used on the checkout page by default."}),(0,k.jsxs)("div",{className:"md:flex mt-6",children:[(0,k.jsxs)("div",{className:"md:w-1/2 md:px-3",children:[(0,k.jsxs)("div",{className:"flex items-center mb-4 justify-between",children:[(0,k.jsx)("h5",{className:"text-xl font-semibold",children:"Billing Address:"}),(0,k.jsx)(l.rU,{to:"/#",className:"text-indigo-600 text-lg",children:(0,k.jsx)(j.vPQn,{})})]}),(0,k.jsxs)("div",{className:"pt-4 border-t border-gray-100 dark:border-gray-700",children:[(0,k.jsx)("p",{className:"text-lg font-semibold mb-2",children:"Cally Joseph"}),(0,k.jsxs)("ul",{className:"list-none",children:[(0,k.jsxs)("li",{className:"flex items-start",children:[(0,k.jsx)(j.F3sq,{className:"me-2 mt-1"}),(0,k.jsxs)("p",{className:"text-slate-400",children:["C/54 Northwest Freeway, Suite 558, ",(0,k.jsx)("br",{})," Houston, USA 485"]})]}),(0,k.jsxs)("li",{className:"flex items-center mt-1",children:[(0,k.jsx)(j.tUtz,{className:"me-2 text-lg"}),(0,k.jsx)("p",{className:"text-slate-400",children:"+123 897 5468"})]})]})]})]}),(0,k.jsxs)("div",{className:"md:w-1/2 md:px-3 mt-[30] md:mt-0",children:[(0,k.jsxs)("div",{className:"flex items-center mb-4 justify-between",children:[(0,k.jsx)("h5",{className:"text-xl font-semibold",children:"Shipping Address:"}),(0,k.jsx)(l.rU,{to:"/#",className:"text-indigo-600 text-lg",children:(0,k.jsx)(j.vPQn,{})})]}),(0,k.jsxs)("div",{className:"pt-4 border-t border-gray-100 dark:border-gray-700",children:[(0,k.jsx)("p",{className:"text-lg font-semibold mb-2",children:"Cally Joseph"}),(0,k.jsxs)("ul",{className:"list-none",children:[(0,k.jsxs)("li",{className:"flex items-start",children:[(0,k.jsx)(j.F3sq,{className:"me-2 mt-1"}),(0,k.jsxs)("p",{className:"text-slate-400",children:["C/54 Northwest Freeway, Suite 558, ",(0,k.jsx)("br",{})," Houston, USA 485"]})]}),(0,k.jsxs)("li",{className:"flex items-start mt-1",children:[(0,k.jsx)(j.tUtz,{className:" text-lg me-2"}),(0,k.jsx)("p",{className:"text-slate-400",children:"+123 897 5468"})]})]})]})]})]})]}):"",4===e?(0,k.jsxs)("div",{id:"accountdetail",role:"tabpanel","aria-labelledby":"accountdetail-tab",children:[(0,k.jsx)("h5",{className:"text-lg font-semibold mb-4",children:"Personal Detail :"}),(0,k.jsxs)("form",{onSubmit:async e=>{e.preventDefault();const t=new FormData(e.target),a=await(0,v.k6)(t);if(200!==a.status)return console.log(a.response),!1;if(1===a.data.status){const e=a.data.data,t=JSON.parse(y.Z.get("icp_authData"));t.name=e.name,t.email=e.email,t.profile_pics=e.profile_pics,x(t),y.Z.set("icp_authData",JSON.stringify(t),{expires:365})}},children:[(0,k.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 gap-5 ",children:[(0,k.jsxs)("div",{children:[(0,k.jsxs)("label",{className:"form-label font-medium",children:["Full Name ",(0,k.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,k.jsxs)("div",{className:"form-icon relative mt-2",children:[(0,k.jsx)(m.Z,{className:"size-4 absolute top-3 start-4"}),(0,k.jsx)("input",{type:"text",name:"username",value:u,className:"form-input ps-12 w-full py-2 px-3 h-10 bg-transparent dark:bg-slate-900 dark:text-slate-200 rounded outline-none border border-gray-200 focus:border-indigo-600 dark:border-gray-800 dark:focus:border-indigo-600 focus:ring-0",placeholder:"Your Name",id:"firstname",onChange:e=>h(e.target.value),required:!0})]})]}),(0,k.jsxs)("div",{children:[(0,k.jsxs)("label",{className:"form-label font-medium",children:["Your Email : ",(0,k.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,k.jsxs)("div",{className:"form-icon relative mt-2",children:[(0,k.jsx)(p.Z,{className:"size-4 absolute top-3 start-4"}),(0,k.jsx)("input",{type:"email",value:b,onChange:e=>g(e.target.value),className:"form-input ps-12 w-full py-2 px-3 h-10 bg-transparent dark:bg-slate-900 dark:text-slate-200 rounded outline-none border border-gray-200 focus:border-indigo-600 dark:border-gray-800 dark:focus:border-indigo-600 focus:ring-0",placeholder:"Email",name:"email",required:!0})]})]}),(0,k.jsxs)("div",{className:"mb-5 pb-5",children:[(0,k.jsx)("label",{className:"form-label font-medium",children:"Upload Profile Image "}),(0,k.jsx)("div",{className:"form-icon relative mt-2",children:(0,k.jsxs)("div",{className:"border rounded-sm absolute",style:{top:0,width:"100%",zIndex:1},children:[(0,k.jsx)("div",{className:"flex justify-end",children:(0,k.jsx)("input",{name:"profile_pics",accept:"image/*",id:"occupation",type:"file",className:"form-input ps-12 w-full py-2 px-3 h-10 dark:bg-slate-900 dark:text-slate-200 rounded outline-none border border-gray-200 focus:ring-0 border",onChange:e=>{S(e.target.files[0])},style:{zIndex:1e3,opacity:0}})}),(0,k.jsx)("div",{className:"flex justify-end",style:{marginTop:-40},children:(0,k.jsx)("button",{type:"button",className:"btn bg-blue-800 text-white px-3 py-2",children:(0,k.jsx)(f,{className:" "})})})]})})]})]}),(0,k.jsx)("button",{type:"submit",id:"submit",className:"py-2 px-5 inline-block font-semibold tracking-wide border align-middle duration-500 text-base text-center bg-indigo-600 hover:bg-indigo-700 border-indigo-600 hover:border-indigo-700 text-white rounded-md mt-5",children:"SUBMIT"})]})]}):""]})})]})})}),(0,k.jsx)(c.Z,{})]})}},1403:(e,t,a)=>{a.d(t,{Z:()=>d});var s=a(9867),r=a(8731),l=a.n(r);function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},n.apply(this,arguments)}function i(e,t){if(null==e)return{};var a,s,r=function(e,t){if(null==e)return{};var a,s,r={},l=Object.keys(e);for(s=0;s<l.length;s++)a=l[s],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)a=l[s],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=(0,s.forwardRef)((function(e,t){var a=e.color,r=void 0===a?"currentColor":a,l=e.size,o=void 0===l?24:l,d=i(e,["color","size"]);return s.createElement("svg",n({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},d),s.createElement("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),s.createElement("polyline",{points:"22,6 12,13 2,6"}))}));o.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},o.displayName="Mail";const d=o},1241:(e,t,a)=>{a.d(t,{Z:()=>d});var s=a(9867),r=a(8731),l=a.n(r);function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},n.apply(this,arguments)}function i(e,t){if(null==e)return{};var a,s,r=function(e,t){if(null==e)return{};var a,s,r={},l=Object.keys(e);for(s=0;s<l.length;s++)a=l[s],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)a=l[s],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=(0,s.forwardRef)((function(e,t){var a=e.color,r=void 0===a?"currentColor":a,l=e.size,o=void 0===l?24:l,d=i(e,["color","size"]);return s.createElement("svg",n({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},d),s.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),s.createElement("circle",{cx:"12",cy:"7",r:"4"}))}));o.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},o.displayName="User";const d=o},4592:(e,t,a)=>{function s(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)e[s]=a[s]}return e}a.d(t,{Z:()=>r});var r=function e(t,a){function r(e,r,l){if("undefined"!==typeof document){"number"===typeof(l=s({},a,l)).expires&&(l.expires=new Date(Date.now()+864e5*l.expires)),l.expires&&(l.expires=l.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var n="";for(var i in l)l[i]&&(n+="; "+i,!0!==l[i]&&(n+="="+l[i].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+n}}return Object.create({set:r,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var a=document.cookie?document.cookie.split("; "):[],s={},r=0;r<a.length;r++){var l=a[r].split("="),n=l.slice(1).join("=");try{var i=decodeURIComponent(l[0]);if(s[i]=t.read(n,i),e===i)break}catch(o){}}return e?s[e]:s}},remove:function(e,t){r(e,"",s({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,s({},this.attributes,t))},withConverter:function(t){return e(s({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
//# sourceMappingURL=304.1deb6d1d.chunk.js.map