<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6458,227,3778],{53778:function(e,i,n){n.d(i,{zT:function(){return j},t:function(){return t.t},pJ:function(){return l.p}});var t=n(78315),r=n(11527);n(16023);var l=n(44872),o=n(38534),a=n(55814),s=n(83031),d=n(25236),c=n(2370),u=n(72250),p=n(48431),h=n(55087),m=n(86378),x=n(10326),v=n(95079),g=n(11603),_=n(13348),f=n(82495);let b=(0,o.k)(()=&gt;({cardWrapper:{overflow:"hidden"},card:{height:"9.375rem",flexDirection:"column",justifyContent:"space-between",display:"flex",gap:"0.5rem",margin:"auto"},cardInner:{backgroundColor:"#F3FBFF",width:"7.75rem",height:"7.75rem",display:"flex",justifyContent:"center",alignItems:"center"}})),j=e=&gt;{var i,n,t,l;let{attachment:o,hide:j,onDelete:y,onToggle:w}=e,C=(0,a.rZ)(),{classes:k}=b(),z=(0,g.useRouter)().query["product-id"],{productMutate:S}=(0,f.Em)(parseInt(z,10));async function E(){200===(await (0,f.OW)(o.id)).status?((0,v.A)({message:"Attachment Deleted",variant:"success"}),S()):(0,v.A)({message:"Something went wrong",variant:"error"})}console.log(o);let L=null===(i=o.attachment_name)||void 0===i?void 0:i.split("_").slice(1).join(" "),F=0===L.length?o.attachment_name:L,Z=async()=&gt;{if(!o.attachment_url||!o.attachment_name){(0,v.A)({message:"Invalid attachment data",variant:"error"});return}try{let e=await fetch(o.attachment_url,{mode:"cors"}),i=await e.blob(),n=window.URL.createObjectURL(i),t=document.createElement("a");t.href=n,t.download=F,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(n)}catch(e){window.open(o.attachment_url,"_blank"),(0,v.A)({message:"Error downloading the file",variant:"error"})}};return(0,r.jsx)(s.K,{align:"center",className:k.cardWrapper,title:o.attachment_name,children:(0,r.jsxs)(d.Z,{withBorder:!0,p:"sm",radius:"md",className:k.card,children:[(0,r.jsx)("div",{className:k.cardInner,children:(0,r.jsx)(c.E,{src:(0,_.P6k)(null===(n=o.attachment_name)||void 0===n?void 0:n.split(".")[1]).src,alt:"Icon",height:50,width:50})}),(0,r.jsxs)(u.Z,{position:"apart",children:[(0,r.jsx)(p.x,{children:(0,r.jsx)(h.e,{component:"a",style:{display:"inline-block"},href:o.attachment_url,target:"_blank",rel:"noopener noreferrer",size:"sm",weight:"bold",title:F,onClick:e=&gt;{e.preventDefault(),Z()},lineClamp:1,children:F.slice(0,12).concat("...")})}),!(null==j?void 0:j.includes("delete"))&amp;&amp;(0,r.jsx)(m.A,{size:"sm",onClick:y||E,children:(0,r.jsx)(x.IT,{color:"red"})})]}),(0,r.jsx)(h.e,{size:"xs",color:C.colors.gray[6],href:o.attachment_url,target:"_blank",rel:"noopener noreferrer",children:(null===(t=o.attachment_url)||void 0===t?void 0:t.trim().length)&gt;10?"".concat(null===(l=o.attachment_url)||void 0===l?void 0:l.slice(0,25),"..."):o.attachment_url})]})})}},78315:function(e,i,n){n.d(i,{t:function(){return x}});var t=n(11527),r=n(25236),l=n(83031),o=n(2370),a=n(55087),s=n(60475),d=n(61145),c=n(48431),u=n(72250),p=n(65323),h=n(16023),m=n.n(h);let x=e=&gt;{var i,n,h,x,v,g,_,f,b;let{project:j}=e;return(0,t.jsx)(r.Z,{style:{height:"14rem",width:"auto"},p:"sm",shadow:"xs",children:(0,t.jsxs)(l.K,{spacing:"sm",justify:"space-between",children:[(0,t.jsx)("div",{children:(0,t.jsx)(o.E,{radius:8,src:null==j?void 0:j.cover_image,alt:"card",height:100})}),(0,t.jsx)(a.e,{size:"sm",weight:"bold",component:m(),transform:"capitalize",href:"/projects/".concat(null==j?void 0:j.id,"?title=").concat(null==j?void 0:j.title),style:{display:"inline-block",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:null==j?void 0:j.title}),(0,t.jsxs)(l.K,{spacing:"xs",children:[(0,t.jsxs)(s.k,{align:"center",gap:"sm",children:[(0,t.jsx)(d.q,{size:"sm",src:(null==j?void 0:j.facilitator_details)?null==j?void 0:null===(i=j.facilitator_details)||void 0===i?void 0:i.student_avatar_url:null==j?void 0:null===(h=j.project_educator_details)||void 0===h?void 0:null===(n=h.educator_customization)||void 0===n?void 0:n.educator_logo,alt:"Other Company Logo",radius:"lg",children:null==j?void 0:null===(v=j.facilitator_details)||void 0===v?void 0:null===(x=v.student_first_name)||void 0===x?void 0:x.slice(0,1)}),(0,t.jsx)(c.x,{size:"sm",lineClamp:1,tt:"capitalize",children:(null==j?void 0:j.facilitator_details)?"".concat(null==j?void 0:null===(g=j.facilitator_details)||void 0===g?void 0:g.student_first_name," ").concat(null==j?void 0:null===(_=j.facilitator_details)||void 0===_?void 0:_.student_last_name):null==j?void 0:null===(f=j.project_educator_details)||void 0===f?void 0:f.educator_name})]}),(0,t.jsxs)(u.Z,{position:"apart",noWrap:!0,children:[(0,t.jsx)(p.C,{variant:"light",size:"sm",children:null==j?void 0:j.experience}),(0,t.jsxs)(s.k,{align:"center",gap:"5px",children:[!1,(0,t.jsxs)(c.x,{sx:{whiteSpace:"nowrap"},size:"sm",lineClamp:1,children:[null!==(b=null==j?void 0:j.approved_solution_count)&amp;&amp;void 0!==b?b:"0"," ",(null==j?void 0:j.approved_solution_count)&gt;1?"Submissions":"Submission"]})]})]})]})]})})}},44872:function(e,i,n){n.d(i,{p:function(){return f}});var t=n(11527),r=n(55814),l=n(25236),o=n(2370),a=n(83031),s=n(55087),d=n(48431),c=n(62594),u=n(72250),p=n(61145),h=n(28026),m=n.n(h),x=n(16023),v=n.n(x),g=n(23821),_=n(11603);let f=e=&gt;{var i,n,h;let{resource:x}=e,f=(0,r.rZ)(),b=m()(null==x?void 0:x.createdAt).format("MMM DD, YYYY"),j=(0,_.useRouter)();return(0,t.jsxs)(l.Z,{style:{height:"15.75rem",width:"auto",maxWidth:"350px"},radius:"8px",p:"0px",shadow:"xs",onClick:()=&gt;j.push("/resources/".concat(null==x?void 0:x.resource_slug,"?title=").concat(null==x?void 0:x.resource_title)),children:[(0,t.jsx)(o.E,{src:null==x?void 0:x.resource_thumbnail,alt:"Wiki Image",height:134,radius:"8px"}),(0,t.jsxs)(a.K,{spacing:"sm",p:"sm",justify:"space-between",children:[(0,t.jsx)(s.e,{size:"sm",weight:"bold",component:v(),href:"/resources/".concat(null==x?void 0:x.resource_slug,"?title=").concat(null==x?void 0:x.resource_title),lineClamp:1,children:(0,g.j)(null==x?void 0:x.resource_title)}),(0,t.jsx)(d.x,{size:(0,c.h)(10),color:"primaryColor",lineClamp:3,dangerouslySetInnerHTML:{__html:null==x?void 0:x.resource_content},style:{height:"25px",display:"inline-block",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}}),(0,t.jsxs)(u.Z,{noWrap:!0,position:"apart",style:{marginTop:"auto"},children:[(0,t.jsxs)(u.Z,{noWrap:!0,spacing:5,children:[(0,t.jsx)(p.q,{radius:"xl",size:"sm",src:null==x?void 0:null===(n=x.resource_educator_details)||void 0===n?void 0:null===(i=n.educator_customization)||void 0===i?void 0:i.educator_logo}),(0,t.jsx)(d.x,{size:(0,c.h)(10),weight:"bold",lineClamp:1,children:(0,g.j)(null==x?void 0:null===(h=x.resource_educator_details)||void 0===h?void 0:h.educator_name)})]}),(0,t.jsx)("div",{className:"flex  gap-2",children:(0,t.jsx)(d.x,{size:(0,c.h)(10),weight:"bold",color:f.colors.gray[6],style:{borderLeft:"2px solid ".concat(f.colors.gray[6]),paddingLeft:"8px"},lineClamp:1,children:b})})]})]})]})}},68880:function(e,i,n){n.d(i,{_:function(){return y},t:function(){return w}});var t=n(11527),r=n(38534),l=n(62594),o=n(89384),a=n(20392),s=n(62098),d=n(48431),c=n(19309),u=n(72250),p=n(73630),h=n(90038),m=n(50959),x=n(90177),v=n(55255),g=n(13348),_=n(54716),f=n(52567),b=n(1163);let j=(0,r.k)((e,i)=&gt;{let{focused:n}=i;return{control:{height:"100%",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:e.spacing.sm,paddingLeft:e.spacing.xs,borderTopLeftRadius:0,borderBottomLeftRadius:0,border:"".concat((0,l.h)(1)," solid ").concat(n?e.colors[e.primaryColor][6]:"#323232"),borderTopRightRadius:e.radius.xs,borderBottomRightRadius:e.radius.xs,borderLeft:"none",transition:"background-color 150ms ease",backgroundColor:"#F6F6F6","&amp;:hover":{backgroundColor:e.white}}}}),y=e=&gt;{var i;let{overview:n,mutate:t,isLoading:r}=(0,_.KM)(),l=(null==n?void 0:n.educator_portfolio.stripe_sub_account_id)?"stripe":(null==n?void 0:n.educator_portfolio.paystack_sub_account_id)?"paystack":null,o=(null==n?void 0:n.educator_portfolio.stripe_sub_account_id)!==null,a=null==n?void 0:n.educator_country,s=(null==a?void 0:null===(i=a.replace(/\s*\(.*?\)\s*/g,""))||void 0===i?void 0:i.trim())||"";return{countryCodes:(0,f.xY)(s,e||l),isStripe:o}};function w(e){var i;let{label:n,placeholder:r,onChange:l,value:_,prefix:f,clearInputErrorOnChange:w,...C}=e,[k,z]=(0,m.useState)(!1),[S,E]=(0,m.useState)(!1),[L,F]=(0,h.C)({value:_,finalValue:_,defaultValue:{price:0,currency:"USD",code:"US",symbol:"$"},onChange:l}),{classes:Z,theme:D}=j({focused:S}),{countryCodes:M,isStripe:R}=y(),P=Object.entries(b).map(e=&gt;{let[i,n]=e;return{code:i,currency:n.currency_code,symbol:n.currency_symbol}});return(0,t.jsx)(v.h3,{customInput:o.o,label:n,error:null==C?void 0:C.error,onFocusCapture:()=&gt;E(!0),onBlurCapture:()=&gt;E(!1),placeholder:"0",min:0,allowNegative:!1,value:L.price,onValueChange:e=&gt;{let{value:i}=e;F({...L,price:Number(i)})},decimalScale:2,thousandSeparator:!0,prefix:f||(0,g.ym9)(L.currency,R),styles:{input:{fontSize:D.fontSizes.sm},rightSection:{display:"block !important"}},rightSection:(0,t.jsxs)(a.v,{withinPortal:!0,disabled:null==C?void 0:C.disabled,opened:k,offset:0,children:[(0,t.jsx)(a.v.Target,{children:(0,t.jsxs)(s.k,{role:"button",className:Z.control,onClick:()=&gt;z(e=&gt;!e),children:[(0,t.jsx)(p.Z,{countryCode:(null===(i=P.find(e=&gt;e.currency===L.currency))||void 0===i?void 0:i.code)||"US",svg:!0,style:{width:"1.5em",height:"1.5em"}}),(0,t.jsx)(d.x,{size:10,weight:"bolder",children:L.currency}),(0,t.jsx)(x.Z,{size:10})]})}),(0,t.jsx)(a.v.Dropdown,{onMouseEnter:()=&gt;z(!0),onMouseLeave:()=&gt;z(!1),children:(0,t.jsx)(c.x.Autosize,{mah:200,scrollbarSize:5,children:P.map(e=&gt;(0,t.jsx)(a.v.Item,{onClick:()=&gt;{F({...L,currency:e.currency,code:e.code,symbol:e.symbol}),z(!1)},children:(0,t.jsxs)(u.Z,{noWrap:!0,children:[(0,t.jsx)(p.Z,{countryCode:e.code,svg:!0,style:{width:"1.5em",height:"1.5em"}}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column-reverse"},children:(0,t.jsx)(d.x,{size:"sm",opacity:.65,children:e.currency})})]})},e.code))})})]}),rightSectionWidth:80,rightSectionProps:{onMouseEnter:()=&gt;z(!0),onMouseLeave:()=&gt;z(!1)},...C})}},71231:function(e,i,n){n.d(i,{M:function(){return c}});var t=n(14489),r=n(11527),l=n(8485),o=n(77151);function a(){let e=(0,t._)(["\n  * {\n    font-family: Poppins, sans-serif;\n  }\n  font-size: 0.875rem;\n  margin: 0;\n  padding: 0;\n  pre::-webkit-scrollbar {\n    width: 0.5rem;\n    height: 0.5rem;\n  }\n  pre::-webkit-scrollbar-track {\n    background: #fff;\n  }\n  pre::-webkit-scrollbar-thumb {\n    background: #ccc;\n    border-radius: 0.5rem;\n  }\n  pre::-webkit-scrollbar-thumb:hover {\n    background: #ccc;\n  }\n\n  pre {\n    background: #fff;\n    padding: 1rem;\n    border-radius: 0.5rem;\n    overflow-x: auto;\n    font-size: 0%.875rem;\n  }\n  code {\n    line-height: 1.55;\n    padding: 0.0625rem 0.3125rem;\n    border-radius: 0.25rem;\n    color: #000;\n    background-color: #f8f9fa;\n    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New,\n      monospace;\n    font-size: 0.8rem;\n    border: 0.0625rem solid #dee2e6;\n  }\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p {\n    margin: 0;\n    padding: 0;\n  }\n  p {\n    margin: 0;\n    padding: 0 0;\n    word-wrap: break-word;\n  }\n\n  ul li {\n    margin-left: 1rem;\n  }\n  ol li {\n    margin-left: 1rem;\n  }\n"]);return a=function(){return e},e}function s(){let e=(0,t._)(["\n  font-size: 0.875rem;\n\n  @media (max-width: 600px) {\n    font-size: 0.75rem;\n  }\n\n  @media (min-width: 1200px) {\n    font-size: 1rem;\n  }\n\n  min-height: 200px;\n  padding: 12px;\n  border-radius: 8px;\n  background-color: #fff;\n  font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',\n    Arial, sans-serif;\n\n  h1 {\n    font-size: 24px;\n    font-weight: bold;\n    padding: 0;\n  }\n\n  h2 {\n    font-size: 20px;\n    font-weight: bold;\n    padding: 0;\n  }\n\n  p {\n    margin: 1em 0;\n    line-height: 1.6;\n    font-size: inherit;\n    padding: 0;\n    word-wrap: break-word;\n  }\n\n  strong {\n    font-weight: 600;\n  }\n\n  em {\n    font-style: italic;\n  }\n\n  u {\n    text-decoration: underline;\n  }\n\n  a {\n    color: #007bff;\n    text-decoration: none;\n  }\n\n  a:hover {\n    text-decoration: underline;\n  }\n\n  .text-left {\n    text-align: left;\n  }\n\n  .text-center {\n    text-align: center;\n  }\n\n  .text-right {\n    text-align: right;\n  }\n\n  blockquote {\n    border-left: 4px solid #ccc;\n    padding-left: 16px;\n    font-style: italic;\n    color: #666;\n  }\n\n  ul {\n    list-style-type: disc;\n    padding-left: 20px;\n  }\n\n  ol {\n    list-style-type: decimal;\n    padding-left: 20px;\n  }\n\n  ul li,\n  ol li {\n    margin: 0.3em 0;\n    padding: 0;\n  }\n  ul li p,\n  ol li p {\n    margin: 0.3em 0;\n    padding: 0;\n  }\n\n  pre {\n    background: #fff;\n    padding: 1rem;\n    border-radius: 0.5rem;\n    overflow-x: auto;\n    font-size: 0.875rem;\n  }\n\n  pre::-webkit-scrollbar {\n    width: 0.5rem;\n    height: 0.5rem;\n  }\n\n  pre::-webkit-scrollbar-track {\n    background: #fff;\n  }\n\n  pre::-webkit-scrollbar-thumb {\n    background: #ccc;\n    border-radius: 0.5rem;\n  }\n\n  pre::-webkit-scrollbar-thumb:hover {\n    background: #ccc;\n  }\n\n  code {\n    line-height: 1.55;\n    padding: 0.0625rem 0.3125rem;\n    border-radius: 0.25rem;\n    color: #000;\n    background-color: #f8f9fa;\n    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New,\n      monospace;\n    font-size: 0.8rem;\n  }\n  ul {\n    list-style: none; /* Remove default bullets */\n    padding-left: 1.5rem; /* Ensure proper indentation */\n  }\n\n  ul li {\n    position: relative;\n    padding-left: 1rem; /* Adjust spacing */\n  }\n\n  ul li::before {\n    content: '•'; /* Custom disc */\n    font-weight: bold; /* Ensure consistent weight */\n    font-size: 1rem; /* Adjust size */\n    color: inherit; /* Use text color */\n    position: absolute;\n    left: -1rem; /* Position bullet properly */\n    top: 0;\n  }\n"]);return s=function(){return e},e}l.Z.div(a());let d=l.Z.div(s()),c=e=&gt;{let{html:i,style:n}=e;return(0,r.jsx)(o.l,{children:(0,r.jsx)(d,{style:n&amp;&amp;n,dangerouslySetInnerHTML:{__html:i}})})}},52117:function(e,i,n){n.d(i,{N:function(){return l},k:function(){return r}});var t=n(11527);let r=e=&gt;(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:e.size||24,height:e.size||24,...e,children:(0,t.jsx)("path",{d:"M17 18C15.89 18 15 18.89 15 20C15 20.5304 15.2107 21.0391 15.5858 21.4142C15.9609 21.7893 16.4696 22 17 22C17.5304 22 18.0391 21.7893 18.4142 21.4142C18.7893 21.0391 19 20.5304 19 20C19 19.4696 18.7893 18.9609 18.4142 18.5858C18.0391 18.2107 17.5304 18 17 18ZM1 2V4H3L6.6 11.59L5.24 14.04C5.09 14.32 5 14.65 5 15C5 15.5304 5.21071 16.0391 5.58579 16.4142C5.96086 16.7893 6.46957 17 7 17H19V15H7.42C7.3537 15 7.29011 14.9737 7.24322 14.9268C7.19634 14.8799 7.17 14.8163 7.17 14.75C7.17 14.7 7.18 14.66 7.2 14.63L8.1 13H15.55C16.3 13 16.96 12.58 17.3 11.97L20.88 5.5C20.95 5.34 21 5.17 21 5C21 4.73478 20.8946 4.48043 20.7071 4.29289C20.5196 4.10536 20.2652 4 20 4H5.21L4.27 2M7 18C5.89 18 5 18.89 5 20C5 20.5304 5.21071 21.0391 5.58579 21.4142C5.96086 21.7893 6.46957 22 7 22C7.53043 22 8.03914 21.7893 8.41421 21.4142C8.78929 21.0391 9 20.5304 9 20C9 19.4696 8.78929 18.9609 8.41421 18.5858C8.03914 18.2107 7.53043 18 7 18Z",fill:e.color||"#161616"})}),l=e=&gt;(0,t.jsxs)("svg",{width:e.size||32,height:e.size||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("rect",{width:"32",height:"32",rx:"16",fill:"#F6F6F6"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.6654 16.0007C22.6654 19.6827 19.6807 22.6673 15.9987 22.6673C14.932 22.6673 13.924 22.4166 13.0307 21.9713C12.7947 21.8494 12.5223 21.8178 12.2647 21.8827L10.7807 22.28C10.6338 22.3192 10.4792 22.319 10.3324 22.2796C10.1856 22.2402 10.0517 22.1628 9.94425 22.0552C9.83679 21.9477 9.7595 21.8138 9.72014 21.667C9.68079 21.5201 9.68075 21.3655 9.72004 21.2186L10.1167 19.7347C10.1812 19.4772 10.1495 19.205 10.0274 18.9693C9.56846 18.0471 9.33041 17.0307 9.33204 16.0007C9.33204 12.3187 12.3167 9.33398 15.9987 9.33398C19.6807 9.33398 22.6654 12.3187 22.6654 16.0007ZM15.9987 12.834C16.1313 12.834 16.2585 12.8867 16.3523 12.9804C16.446 13.0742 16.4987 13.2014 16.4987 13.334V13.3407C17.2247 13.524 17.832 14.096 17.832 14.8893C17.832 15.0219 17.7794 15.1491 17.6856 15.2429C17.5918 15.3366 17.4646 15.3893 17.332 15.3893C17.1994 15.3893 17.0723 15.3366 16.9785 15.2429C16.8847 15.1491 16.832 15.0219 16.832 14.8893C16.832 14.6333 16.548 14.2787 15.9987 14.2787C15.4494 14.2787 15.1654 14.6333 15.1654 14.8893C15.1654 15.1453 15.4494 15.5007 15.9987 15.5007C16.922 15.5007 17.832 16.1407 17.832 17.112C17.832 17.9053 17.2247 18.478 16.4987 18.6607V18.6673C16.4987 18.7999 16.446 18.9271 16.3523 19.0209C16.2585 19.1146 16.1313 19.1673 15.9987 19.1673C15.8661 19.1673 15.7389 19.1146 15.6452 19.0209C15.5514 18.9271 15.4987 18.7999 15.4987 18.6673V18.6607C14.7727 18.478 14.1654 17.9053 14.1654 17.112C14.1654 16.9794 14.2181 16.8522 14.3118 16.7584C14.4056 16.6647 14.5328 16.612 14.6654 16.612C14.798 16.612 14.9252 16.6647 15.0189 16.7584C15.1127 16.8522 15.1654 16.9794 15.1654 17.112C15.1654 17.368 15.4494 17.7227 15.9987 17.7227C16.548 17.7227 16.832 17.368 16.832 17.112C16.832 16.856 16.548 16.5007 15.9987 16.5007C15.0754 16.5007 14.1654 15.8607 14.1654 14.8893C14.1654 14.096 14.7727 13.524 15.4987 13.3407V13.334C15.4987 13.2014 15.5514 13.0742 15.6452 12.9804C15.7389 12.8867 15.8661 12.834 15.9987 12.834Z",fill:e.color||"#161616"})]})},24363:function(e,i,n){n.d(i,{F:function(){return l},y:function(){return r}});var t=n(11527);let r=e=&gt;(0,t.jsxs)("svg",{width:e.width||48,height:e.height||48,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("path",{opacity:.4,d:"M32.4801 7.2998H15.5201C10.5801 7.2998 6.58008 11.3198 6.58008 16.2398V35.0598C6.58008 39.9798 10.6001 43.9998 15.5201 43.9998H32.4601C37.4001 43.9998 41.4001 39.9798 41.4001 35.0598V16.2398C41.4201 11.2998 37.4001 7.2998 32.4801 7.2998Z",fill:e.color||"#17191C"}),(0,t.jsx)("path",{d:"M28.6995 4H19.2995C17.2195 4 15.5195 5.68 15.5195 7.76V9.64C15.5195 11.72 17.1995 13.4 19.2795 13.4H28.6995C30.7795 13.4 32.4595 11.72 32.4595 9.64V7.76C32.4795 5.68 30.7795 4 28.6995 4Z",fill:e.color||"#17191C"}),(0,t.jsx)("path",{d:"M21.62 33.8998C21.24 33.8998 20.86 33.7598 20.56 33.4598L17.56 30.4598C16.98 29.8798 16.98 28.9198 17.56 28.3398C18.14 27.7598 19.1 27.7598 19.68 28.3398L21.62 30.2798L28.56 23.3398C29.14 22.7598 30.1 22.7598 30.68 23.3398C31.26 23.9198 31.26 24.8798 30.68 25.4598L22.68 33.4598C22.4 33.7598 22 33.8998 21.62 33.8998Z",fill:e.color||"#17191C"})]}),l=()=&gt;(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M28.3346 29.334H3.66797C3.1213 29.334 2.66797 28.8807 2.66797 28.334C2.66797 27.7873 3.1213 27.334 3.66797 27.334H28.3346C28.8813 27.334 29.3346 27.7873 29.3346 28.334C29.3346 28.8807 28.8813 29.334 28.3346 29.334Z",fill:"black"}),(0,t.jsx)("path",{opacity:"0.4",d:"M27.4532 18.2663L17.8132 27.9063C15.9198 29.7996 12.8665 29.7996 10.9865 27.9196L4.83984 21.773L21.3198 5.29297L27.4665 11.4396C29.3465 13.3196 29.3465 16.373 27.4532 18.2663Z",fill:"black"}),(0,t.jsx)("path",{d:"M21.3181 5.29355L4.8248 21.7735L3.61146 20.5602C1.73146 18.6802 1.73146 15.6269 3.6248 13.7335L13.2648 4.09355C15.1581 2.20021 18.2115 2.20021 20.0915 4.08021L21.3181 5.29355Z",fill:"black"}),(0,t.jsx)("path",{d:"M17.1884 23.4665L15.3884 25.2665C15.0151 25.6398 14.4151 25.6398 14.0417 25.2665C13.6684 24.8932 13.6684 24.2932 14.0417 23.9198L15.8417 22.1198C16.2151 21.7465 16.8151 21.7465 17.1884 22.1198C17.5617 22.4932 17.5617 23.0932 17.1884 23.4665Z",fill:"black"}),(0,t.jsx)("path",{d:"M23.0258 17.6267L19.4392 21.2133C19.0658 21.5867 18.4658 21.5867 18.0925 21.2133C17.7192 20.84 17.7192 20.24 18.0925 19.8667L21.6792 16.28C22.0525 15.9067 22.6525 15.9067 23.0258 16.28C23.3858 16.6533 23.3858 17.2533 23.0258 17.6267Z",fill:"black"})]})},29383:function(e,i,n){n.d(i,{b:function(){return r}});var t=n(11527);function r(e){return(0,t.jsxs)("svg",{...e,width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M14.3604 7.63959C14.6533 7.93249 14.6533 8.40736 14.3604 8.70025L12.0607 10.9999L14.3604 13.2996C14.6533 13.5925 14.6533 14.0674 14.3604 14.3603C14.0675 14.6531 13.5926 14.6531 13.2997 14.3603L11 12.0606L8.70037 14.3603C8.40748 14.6531 7.93261 14.6531 7.63971 14.3603C7.34682 14.0674 7.34682 13.5925 7.63971 13.2996L9.93938 10.9999L7.63971 8.70025C7.34682 8.40736 7.34682 7.93249 7.63971 7.63959C7.93261 7.3467 8.40748 7.3467 8.70037 7.63959L11 9.93926L13.2997 7.63959C13.5926 7.3467 14.0675 7.3467 14.3604 7.63959Z",fill:e.fill?e.fill:"#FF0000"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.25 11C0.25 5.08579 5.08579 0.25 11 0.25C16.9142 0.25 21.75 5.08579 21.75 11C21.75 16.9142 16.9142 21.75 11 21.75C5.08579 21.75 0.25 16.9142 0.25 11ZM11 1.75C5.91421 1.75 1.75 5.91421 1.75 11C1.75 16.0858 5.91421 20.25 11 20.25C16.0858 20.25 20.25 16.0858 20.25 11C20.25 5.91421 16.0858 1.75 11 1.75Z",fill:e.fill?e.fill:"#FF0000"})]})}},54716:function(e,i,n){n.d(i,{Bs:function(){return m},G_:function(){return f},Ik:function(){return S},Jx:function(){return _},KM:function(){return p},Ku:function(){return F},N$:function(){return C},Ow:function(){return d},Xg:function(){return h},Xn:function(){return v},bV:function(){return y},dK:function(){return s},gQ:function(){return b},ir:function(){return x},n$:function(){return a},n3:function(){return L},pe:function(){return Z},q3:function(){return c},qo:function(){return E},rf:function(){return z},sT:function(){return u},tP:function(){return g},te:function(){return D},u2:function(){return k},vi:function(){return j}});var t=n(73589),r=n(21919),l=n(58928),o=n(82576);let a=async e=&gt;await (0,o.Hx)(r.bc0,"post",e),s=async e=&gt;(0,o.Hx)(r.ZHw,"patch",e);async function d(e){return await (0,o.Hx)(r.BBe,"patch",e)}async function c(e){return await (0,o.Hx)(r.hoD,"patch",e)}let u=async e=&gt;await (0,o.Hx)(r.dlU,"patch",e),p=()=&gt;{var e;let i=(0,l.getCookie)("token"),n=(0,t.ZP)(r.L$I,()=&gt;i&amp;&amp;(0,o._i)("".concat(r.L$I)),{});return(null===(e=n.data)||void 0===e?void 0:e.data)?{overview:n.data.data,isLoading:!n.error&amp;&amp;!n.data,isError:n.error,mutate:n.mutate}:{overview:null,isLoading:!n.error&amp;&amp;!n.data,isError:n.error,mutate:n.mutate}},h=()=&gt;{var e;let i=(0,l.getCookie)("token"),n=(0,t.ZP)(r.R_f,()=&gt;i&amp;&amp;(0,o._i)("".concat(r.R_f)));return(null===(e=n.data)||void 0===e?void 0:e.data)?{subscriptionPlans:n.data.data,isLoading:!n.error&amp;&amp;!n.data,isError:n.error,mutate:n.mutate}:{subscriptionPlans:null,isLoading:!n.error&amp;&amp;!n.data,isError:n.error,mutate:n.mutate}},m=async e=&gt;await (0,o.Hx)(r.bky,"patch",e),x=async()=&gt;await (0,o.Hx)(r.Ai0,"delete"),v=async e=&gt;await (0,o.Hx)(r.VDz,"patch",e),g=async e=&gt;await (0,o.Hx)(r.h5y,"post",e),_=async e=&gt;await (0,o.Hx)(r.lIq,"post",e),f=async e=&gt;await (0,o.Hx)(r._zu,"post",e),b=async e=&gt;await (0,o.be)().patch(r.D33,e),j=async e=&gt;await (0,o.Hx)(r.JkI,"post",e),y=async e=&gt;await (0,o.Hx)(r.oQJ,"post",e),w=e=&gt;{let{promo_code:i,partner_code:n}=e;return i&amp;&amp;n?"/?promo_code=".concat(e.promo_code,"&amp;partner_code=").concat(e.partner_code):""},C=async(e,i)=&gt;await (0,o.Hx)("".concat(r.pSh).concat(w(i)),"post",e),k=()=&gt;{var e;let i=(0,t.ZP)(r.tSN,o._i,{revalidateOnFocus:!1});return(null===(e=i.data)||void 0===e?void 0:e.data)?{customizationData:i.data.data,isLoading:!i.error&amp;&amp;!i.data,isError:i.error,mutate:i.mutate}:{customizationData:[],isLoading:!i.error&amp;&amp;!i.data,isError:i.error,mutate:i.mutate}},z=async e=&gt;await (0,o.Hx)(r.uYe,"patch",e),S=async e=&gt;await (0,o.Hx)(r.zyj,"patch",e),E=()=&gt;{var e;let i=(0,t.ZP)(r.tC8,o._i,{revalidateOnFocus:!1});return(null===(e=i.data)||void 0===e?void 0:e.data)?{facilitator:i.data.data,isLoading:!i.error&amp;&amp;!i.data,isError:i.error,mutate:i.mutate}:{facilitator:null,isLoading:!i.error&amp;&amp;!i.data,isError:i.error,mutate:i.mutate}},L=e=&gt;{var i;let n=(0,t.ZP)((0,r.MpO)(e),()=&gt;e&amp;&amp;(0,o._i)("".concat((0,r.MpO)(e))));return(null===(i=n.data)||void 0===i?void 0:i.data)?{websiteData:n.data.data,isLoading:!n.error&amp;&amp;!n.data,isError:n.error,mutate:n.mutate}:{websiteData:[],isLoading:!n.error&amp;&amp;!n.data,isError:n.error,mutate:n.mutate}},F=async e=&gt;await (0,o.Hx)(r.HaK,"patch",e),Z=()=&gt;{var e;let i=(0,l.getCookie)("token"),n=(0,t.ZP)(r.LX0,()=&gt;i&amp;&amp;(0,o._i)("".concat(r.LX0)));return(null===(e=n.data)||void 0===e?void 0:e.data)?{schedules:n.data.data,isLoading:!n.error&amp;&amp;!n.data,isError:n.error,mutate:n.mutate}:{schedules:[],isLoading:!n.error&amp;&amp;!n.data,isError:n.error}},D=async()=&gt;await (0,o._i)(r.K6U)},38745:function(e,i,n){n.d(i,{hv:function(){return ea},X2:function(){return el},cJ:function(){return er}});var t=n(11527),r=n(38534),l=n(62594),o=n(91454),a=n(55814),s=n(5227),d=n(86378),c=n(10561),u=n(37730),p=n(19309),h=n(60475),m=n(48431),x=n(55087),v=n(83031),g=n(89384),_=n(6399),f=n(72250),b=n(97731),j=n(87839),y=n(80377),w=n(49758),C=n(8818),k=n(11603),z=n(50959),S=n(95079),E=n(62408),L=n(13348),F=n(82495),Z=n(73736),D=n(65362),M=n(42319),R=n(94919),P=n(24932),N=n(16034),A=n(61828),I=n(97490),H=n(54766),B=n(29357),T=n(50355),U=n(54716),O=n(40244),K=n(91977),W=n(68880),V=n(49526),q=n(45026),J=n(58318),G=n(96885),X=n(61615),Y=n(46149),$=n(90177),Q=n(25604),ee=n(52567);let ei=(0,r.k)(()=&gt;({box:{borderRadius:(0,l.h)(16),border:"2px solid #F6F6F6",display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem"}}));function en(e){var i,n,r,l,o,a,d,c,u;let{open:p,setOpen:h,overview:x,mutate:_,dataLoading:f}=e,{classes:b}=ei(),[k,E]=(0,z.useState)(!1),F=(0,C.c)({initialValues:{shipping_details:{store_pick_up:!1,national_delivery:!1,international_delivery:!1},pickup_addresses:[{address:"",zip_code:"",city:"",state:"",country:""}]},validate(e){var i,n;let t={};return(null===(i=e.shipping_details)||void 0===i?void 0:i.store_pick_up)&amp;&amp;(null==e||null===(n=e.pickup_addresses)||void 0===n||n.forEach((e,i)=&gt;{e.address||(t["pickup_addresses.".concat(i,".address")]="Address is required"),e.zip_code||(t["pickup_addresses.".concat(i,".zip_code")]="Zip code is required"),e.city||(t["pickup_addresses.".concat(i,".city")]="City is required"),e.state||(t["pickup_addresses.".concat(i,".state")]="State is required"),e.country||(t["pickup_addresses.".concat(i,".country")]="Country is required")})),t}}),{dropDownCountries:Z,states:D,countries:M}=(0,ee.ac)((null===(i=F.values.pickup_addresses[0])||void 0===i?void 0:i.country)||""),R=async e=&gt;{var i,n,t,r,l,o;let a={...e,educator_country:null==x?void 0:x.educator_country,educator_phone_number:null==x?void 0:x.educator_phone_number,educator_account_manager_type:null==x?void 0:null===(i=x.educator_portfolio)||void 0===i?void 0:i.educator_account_manager_type,manager_first_name:null==x?void 0:null===(n=x.educator_portfolio)||void 0===n?void 0:n.manager_first_name,manager_last_name:null==x?void 0:null===(t=x.educator_portfolio)||void 0===t?void 0:t.manager_last_name,manager_email:null==x?void 0:null===(r=x.educator_portfolio)||void 0===r?void 0:r.manager_email};(null==a?void 0:null===(l=a.shipping_details)||void 0===l?void 0:l.store_pick_up)||null!=a&amp;&amp;delete a.pickup_addresses,E(!0);let s=(0,L.oh7)(a),d=await (0,U.dK)(s);(null==d?void 0:d.status)===200?((0,S.A)({message:"Profile Updated",variant:"success"}),_(),E(!1),h(!1)):((0,S.A)({message:null==d?void 0:null===(o=d.data)||void 0===o?void 0:o.message,variant:"error"}),E(!1))};return(0,z.useEffect)(()=&gt;{if(x){var e,i,n,t,r;F.setValues({pickup_addresses:(null==x?void 0:null===(i=x.educator_portfolio)||void 0===i?void 0:null===(e=i.pickup_addresses)||void 0===e?void 0:e.length)&gt;0?null==x?void 0:null===(n=x.educator_portfolio)||void 0===n?void 0:n.pickup_addresses:F.values.pickup_addresses,shipping_details:(null==x?void 0:null===(t=x.educator_portfolio)||void 0===t?void 0:t.shipping_details)?null==x?void 0:null===(r=x.educator_portfolio)||void 0===r?void 0:r.shipping_details:F.values.shipping_details})}},[x]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(Q.u,{size:"md",opened:p,onClose:()=&gt;{h(!1)},centered:!0,styles:{body:{padding:0},header:{padding:10,paddingBottom:0}},children:(0,t.jsxs)(s.x,{mt:-20,children:[(0,t.jsx)(v.K,{spacing:5,p:"md",children:(0,t.jsxs)(v.K,{spacing:5,align:"center",children:[(0,t.jsx)(I.XL,{}),(0,t.jsx)(m.x,{size:"md",weight:"bold",align:"center",children:"Manage Shipping Details"}),(0,t.jsx)(m.x,{size:"sm",color:"dimmed",align:"center",children:"Oversee all shipping options for your store."})]})}),f?(0,t.jsx)(J.M,{mb:40,h:50,children:(0,t.jsx)(G.a,{})}):(0,t.jsx)("form",{onSubmit:F.onSubmit(R),children:(0,t.jsxs)(v.K,{p:"md",children:[(0,t.jsxs)(y.M,{cols:1,spacing:"sm",children:[(0,t.jsx)(X.X,{label:(0,t.jsxs)("div",{children:[(0,t.jsx)(m.x,{children:"Store Pick Up"}),(0,t.jsx)(m.x,{weight:400,children:"Customers collect orders from your store."})]}),styles:()=&gt;({body:{justifyContent:"space-between"}}),checked:null===(n=F.values.shipping_details)||void 0===n?void 0:n.store_pick_up,...F.getInputProps("shipping_details.store_pick_up"),labelPosition:"left"}),(0,t.jsx)(X.X,{label:(0,t.jsxs)("div",{children:[(0,t.jsx)(m.x,{children:"National Delivery"}),(0,t.jsx)(m.x,{weight:400,children:"Deliver orders within the country."})]}),styles:()=&gt;({body:{justifyContent:"space-between"}}),checked:null===(r=F.values.shipping_details)||void 0===r?void 0:r.national_delivery,...F.getInputProps("shipping_details.national_delivery"),labelPosition:"left"}),(0,t.jsx)(X.X,{label:(0,t.jsxs)("div",{children:[(0,t.jsx)(m.x,{children:"International Delivery"}),(0,t.jsx)(m.x,{weight:400,children:"Ship orders to other countries."})]}),styles:()=&gt;({body:{justifyContent:"space-between"}}),...F.getInputProps("shipping_details.international_delivery"),checked:null===(l=F.values.shipping_details)||void 0===l?void 0:l.international_delivery,labelPosition:"left"})]}),(null==F?void 0:null===(a=F.values)||void 0===a?void 0:null===(o=a.shipping_details)||void 0===o?void 0:o.store_pick_up)&amp;&amp;(0,t.jsx)(j.U,{in:null==F?void 0:null===(c=F.values)||void 0===c?void 0:null===(d=c.shipping_details)||void 0===d?void 0:d.store_pick_up,children:null===(u=F.values.pickup_addresses)||void 0===u?void 0:u.map((e,i)=&gt;(0,t.jsxs)(s.x,{className:b.box,mb:10,children:[(0,t.jsx)(g.o,{label:"Address",placeholder:"Enter room, building number and street address...",...F.getInputProps("pickup_addresses.".concat(i,".address"))}),(0,t.jsxs)(y.M,{cols:2,breakpoints:[{maxWidth:"sm",cols:1}],children:[(0,t.jsx)(g.o,{label:"Postal/Zip Code",placeholder:"Enter postal code...",...F.getInputProps("pickup_addresses.".concat(i,".zip_code"))}),(0,t.jsx)(g.o,{label:"City",placeholder:"Enter city...",...F.getInputProps("pickup_addresses.".concat(i,".city"))}),(0,t.jsx)(Y.Ph,{label:"Country",data:Z,placeholder:"Select Country",searchable:!0,...F.getInputProps("pickup_addresses.".concat(i,".country")),rightSection:(0,t.jsx)($.Z,{size:"1rem",color:"#7C7C7C"})}),(0,t.jsx)(Y.Ph,{label:"State",data:D,placeholder:"Select State",searchable:!0,...F.getInputProps("pickup_addresses.".concat(i,".state")),rightSection:(0,t.jsx)($.Z,{size:"1rem",color:"#7C7C7C"})})]})]},i))}),(0,t.jsx)(w.z,{fullWidth:!0,radius:"md",type:"submit",loading:k,children:"Update Details"})]})})]})})})}let et=(0,r.k)(e=&gt;({box:{borderRadius:(0,l.h)(16),border:"2px solid #F6F6F6",display:"flex",flexDirection:"column",gap:"1rem",padding:"1rem","@media (max-width: 768px)":{padding:0,border:"none"}},pricingBox:{display:"flex",flexDirection:"column",gap:"0.5rem",padding:"1rem",border:"2px solid #F6F6F6",width:"100%",position:"relative",alignItems:"center","&amp;:hover":{border:"2px solid #000"},ref:(0,o.A)("pricingBox")},pricingCheckbox:{position:"absolute",top:"0.5rem",right:"0.5rem"},pricingCheckboxChecked:{border:"2px solid ".concat(e.colors[e.primaryColor][6]," !important")}})),er=e=&gt;e?T.ou.fromJSDate(e).toMillis():null,el=e=&gt;e?T.ou.fromMillis(e).toJSDate():null,eo=[{key:"store_pick_up",label:"Store Pick-Up"},{key:"national_delivery",label:"National Delivery"},{key:"international_delivery",label:"International Delivery"}],ea=()=&gt;{var e,i,n,r;let o=(0,k.useRouter)(),{classes:J}=et(),G=(0,a.rZ)(),{countryCodes:X}=(0,W._)("paystack"),{overview:Y,mutate:$,isLoading:Q}=(0,U.KM)(),{shipping_details:ee}=(null==Y?void 0:Y.educator_portfolio)||{},{mode:ei,redirect:er}=o.query,[ea,,,es]=o.query["product-type"],[ed,ec]=(0,z.useState)(!1),{product:eu,isLoading:ep,productMutate:eh}=(0,F.Em)(es),[em,ex]=(0,z.useState)(0),[ev,eg]=(0,z.useState)(!1),[e_,ef]=(0,z.useState)(!1),[eb,ej]=(0,z.useState)([]),[ey,ew]=(0,z.useState)([]),[eC,ek]=(0,z.useState)(),{collapseSidebar:ez}=(0,N.Xe)(),[eS,eE]=(0,z.useState)(!1),[eL,eF]=(0,z.useState)(null),{updateProductFunc:eZ,submitting:eD}=(0,Z.i)(),[eM,eR]=(0,z.useState)(null),[eP,eN]=(0,z.useState)(!1),eA=(0,C.c)({initialValues:{preview_url:"",button_label:"Add to Cart",title:"",description:"",additional_description:"",thumbnail:"",is_product_free:!1,sub_type:"",physical_product_preview:[],tags:[],is_pre_order:!1,is_shipping:!1,pre_order_deadline:new Date,shipping_details:{store_pick_up:!1,national_delivery:!1,international_delivery:!1},pickup_addresses:[{address:"",zip_code:"",city:"",state:"",country:""}]},validate(e){var i,n;let t={};return e.is_shipping&amp;&amp;(null===(i=e.shipping_details)||void 0===i?void 0:i.store_pick_up)&amp;&amp;(null==e||null===(n=e.pickup_addresses)||void 0===n||n.forEach((e,i)=&gt;{e.address||(t["pickup_addresses.".concat(i,".address")]="Address is required"),e.zip_code||(t["pickup_addresses.".concat(i,".zip_code")]="Zip code is required"),e.city||(t["pickup_addresses.".concat(i,".city")]="City is required"),e.state||(t["pickup_addresses.".concat(i,".state")]="State is required"),e.country||(t["pickup_addresses.".concat(i,".country")]="Country is required")})),t}}),eI=eA.values.pre_order_deadline?T.ou.fromJSDate(eA.values.pre_order_deadline).startOf("day").toMillis():null,eH=0;eM&amp;&amp;(eH=T.ou.fromFormat(eM,"HH:mm").diff(T.ou.fromObject({hour:0,minute:0}),"milliseconds").milliseconds);let eB=eI+eH;(0,z.useEffect)(()=&gt;{eB&amp;&amp;eA.setFieldValue("pre_order_deadline",el(Math.floor(eB)))},[eB]),(0,z.useEffect)(()=&gt;{if("edit"===ei&amp;&amp;Object.keys(eu).length&gt;0){var e,i;eA.setValues({preview_url:null===eu.preview_url?"":eu.preview_url,title:eu.title,type:eu.type,payment_type:null==eu?void 0:eu.payment_type,button_label:eu.button_label||"Add to Cart",additional_description:eu.additional_description||"",description:null===eu.description?"":eu.description,is_product_free:eu.is_product_free,sub_type:eu.sub_type,physical_product_preview:null==eu?void 0:eu.physical_product_preview,tags:null==eu?void 0:eu.tags,thumbnail:null===eu.thumbnail?"":eu.thumbnail,pre_order_deadline:(null==eu?void 0:eu.pre_order_deadline)&gt;0?el(Math.floor(null==eu?void 0:eu.pre_order_deadline)):eA.values.pre_order_deadline,is_shipping:null==eu?void 0:eu.is_shipping,is_pre_order:null==eu?void 0:eu.is_pre_order,product_pricing_data:eu.product_pricing_data.map(e=&gt;{var i;return{...e,price:e.price/100,slash_price:e.is_slash_price?e.slash_price/100:e.slash_price,minimum_price:e.minimum_price?e.minimum_price/100:e.minimum_price,donation_price_presets:e.is_donation_presets?null===(i=e.donation_price_presets)||void 0===i?void 0:i.map(e=&gt;{var i;return{value:Number(null==e?void 0:e.value)/100,label:null===(i=e.label)||void 0===i?void 0:i.toString()}}):e.donation_price_presets,payment_split:e.payment_split?{...e.payment_split,split_ratio:e.payment_split.split_ratio[0]}:{split_type:"percentage",split_ratio:0,amount_to_deduct:0}}})||eA.values.product_pricing_data,is_pay_what_you_have:null==eu?void 0:eu.is_pay_what_you_have}),ej((null==eu?void 0:eu.physical_product_preview)||[]),ew((null===(e=eu.tags)||void 0===e?void 0:e.map(e=&gt;({value:e,label:e})))||[]),(null==eu?void 0:eu.pre_order_deadline)&amp;&amp;eR(null===(i=T.ou.fromMillis(Math.floor(null==eu?void 0:eu.pre_order_deadline)))||void 0===i?void 0:i.toFormat("HH:mm"))}},[ei,eu]);let eT=async e=&gt;{eE(!1),ec(!0);let i=(0,E.ap)(e);if(i)(0,S.A)({message:i,variant:"error"});else{ec(!0);let i=await (0,E.OR)(e,L.ntd,"physical_product",ex);i?(ec(!1),eF(null),ej(e=&gt;{let n=[...e,i];return eA.setFieldValue("physical_product_preview",n),n}),(0,S.A)({message:"Image Uploaded Successfully",variant:"success"})):(ec(!0),(0,S.A)({message:"Error Uploading Image",variant:"error"}))}};async function eU(e){let i=e[0];ek("preview"),(0,L.sgc)()?eT(i):(eF(i),eE(!0))}let eO=async e=&gt;{var i,n,t;let r={...e,pre_order_deadline:eB,instructors:null===(i=e.instructors)||void 0===i?void 0:i.map(e=&gt;Number(e))},l=(0,E.oh)(r);l.product_pricing_data=null===(n=l.product_pricing_data)||void 0===n?void 0:n.map(e=&gt;{var i,n,t,r;let l={...e};return(!l.payment_gateway||l.payment_gateway)&amp;&amp;(l.payment_gateway=X.includes(e.currency)?"paystack":"stripe"),l.price&amp;&amp;(l.price*=100),l.minimum_price&amp;&amp;(l.minimum_price*=100),l.donation_price_presets&amp;&amp;(l.donation_price_presets=null==l?void 0:null===(n=l.donation_price_presets)||void 0===n?void 0:n.map(e=&gt;{var i;return{value:100*Number(null==e?void 0:e.value),label:null===(i=e.label)||void 0===i?void 0:i.toString()}})),l.is_slash_price&amp;&amp;(l.slash_price*=100),(null===(i=l.payment_split)||void 0===i?void 0:i.split_type)==="percentage"&amp;&amp;(l.payment_split={...l.payment_split,split_ratio:[Number(null===(t=l.payment_split)||void 0===t?void 0:t.split_ratio),100-(null===(r=l.payment_split)||void 0===r?void 0:r.split_ratio)]},(0,E.Hh)(l.payment_split,["amount_to_deduct"])),l}),(null==l?void 0:l.is_shipping)&amp;&amp;(null==l?void 0:null===(t=l.shipping_details)||void 0===t?void 0:t.store_pick_up)||null!=l&amp;&amp;delete l.pickup_addresses,await eZ(l,eu.id,()=&gt;{(eh(),"digital"===eu.type)?"true"===er?o.push("/create-product/".concat(ea,"/").concat(eu.type,"/product-summary/").concat(eu.id,"?mode=edit&amp;title=").concat(eu.title)):o.push("/create-product/".concat(ea,"/").concat(eu.type,"/digital-upload/").concat(eu.id,"?mode=edit&amp;title=").concat(eu.title)):"true"===er?o.push("/create-product/".concat(ea,"/").concat(eu.type,"/product-summary/").concat(eu.id,"?mode=edit&amp;title=").concat(eu.title)):o.push("/create-product/".concat(ea,"/").concat(eu.type,"/stock-information/").concat(eu.id,"?mode=edit&amp;title=").concat(eu.title))})};(0,z.useEffect)(()=&gt;{ez(!0)},[]);let eK=e=&gt;{ej(i=&gt;{let n=i.filter(i=&gt;i!==e);return eA.setFieldValue("physical_product_preview",n),n})},eW=async e=&gt;{eE(!1),eg(!0);let i=(0,E.ap)(e);if(i)(0,S.A)({message:i,variant:"error"});else{eg(!0);let i=await (0,E.OR)(e,L.ntd,null==eu?void 0:eu.type,ex);i?(eg(!1),eF(null),eA.setFieldValue("thumbnail",i),(0,S.A)({message:"Image Uploaded Successfully",variant:"success"})):(eg(!0),(0,S.A)({message:"Error Uploading Image",variant:"error"}))}};async function eV(e){let i=e[0];ek("thumbnail"),(0,L.sgc)()?eW(i):(eF(i),eE(!0))}let eq=(e,i,n)=&gt;{let t=Array.from(e),[r]=t.splice(i,1);return t.splice(n,0,r),t},eJ=(0,z.useRef)();return ep?(0,t.jsx)(c.f,{visible:ep}):(0,t.jsxs)(u.r,{pos:"relative",sx:{overflow:"hidden"},children:[(0,t.jsxs)(u.r.Col,{md:12,sm:12,xl:5,lg:5,pos:{base:"static",md:"relative"},children:[(0,t.jsxs)("form",{onSubmit:eA.onSubmit(e=&gt;eO(e)),children:[(0,t.jsxs)(p.x,{w:"100%",h:{base:"100%",md:620},pos:{base:"static",md:"relative"},children:[(0,t.jsxs)(h.k,{justify:"space-between",align:"center",mb:10,mt:10,children:[(0,t.jsx)(m.x,{size:"md",weight:"bold",children:"General Information"}),(0,t.jsxs)(x.e,{onClick:()=&gt;eN(!0),sx:{fontSize:"12px",fontWeight:500,color:"#690AB5",display:"flex",alignItems:"center",gap:"4px","@media (min-width: 1025px)":{display:"none"}},children:["Preview Product ",(0,t.jsx)(R.Z,{size:14})]})]}),(0,t.jsxs)(s.x,{className:J.box,mb:20,children:[(0,t.jsxs)(v.K,{spacing:5,children:[(0,t.jsx)(m.x,{sx:e=&gt;({fontSize:e.fontSizes.sm,fontWeight:"normal","@media (max-width: 768px)":{fontSize:"12px",fontWeight:500}}),children:"Product Preview"}),(null==eu?void 0:eu.type)==="digital"&amp;&amp;(0,t.jsx)(t.Fragment,{children:(null===(i=eA.values)||void 0===i?void 0:null===(e=i.thumbnail)||void 0===e?void 0:e.length)&gt;0?(0,t.jsx)(A.e,{url:eA.values.thumbnail,onDelete:()=&gt;{eA.setFieldValue("thumbnail","")}}):(0,t.jsx)(M.wA,{onDrop:eV,title:"Thumbnail",loading:ev,showCrop:()=&gt;eE(!0),background:eA.values.thumbnail,progress:em,error:eA.errors.thumbnail,onReject:e=&gt;{e.forEach(e=&gt;{"file-too-large"===e.errors[0].code?(0,S.A)({message:"File is too large",variant:"error"}):(0,S.A)({message:"Error Uploading Image",variant:"error"})})},isSmall:window.innerWidth&lt;=768})}),(null==eu?void 0:eu.type)==="physical_product"&amp;&amp;(0,t.jsx)(M.wA,{style:{width:"168px",height:"168px",background:"#ECEBFF"},onDrop:eU,title:"Thumbnail",loading:ed,showCrop:()=&gt;eE(!0),isSmall:!0,progress:em,error:eA.errors.thumbnail,onReject:e=&gt;{e.forEach(e=&gt;{"file-too-large"===e.errors[0].code?(0,S.A)({message:"File is too large",variant:"error"}):(0,S.A)({message:"Error Uploading Image",variant:"error"})})}}),(null==eu?void 0:eu.type)==="physical_product"&amp;&amp;(0,t.jsx)(O.Z5,{onDragEnd:e=&gt;{if(!e.destination)return;let i=eq(eb,e.source.index,e.destination.index);ej(i),eA.setFieldValue("physical_product_preview",i)},children:(0,t.jsx)(O.bK,{droppableId:"droppable",direction:"horizontal",children:e=&gt;(0,t.jsxs)(h.k,{wrap:"wrap",gap:"sm",mt:15,ref:e.innerRef,...e.droppableProps,children:[eb.map((e,i)=&gt;(0,t.jsx)(O._l,{draggableId:e,index:i,children:(n,r)=&gt;(0,t.jsx)("div",{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,style:{...n.draggableProps.style,top:"0px !important",bottom:"0px !important"},children:(0,t.jsx)(A.u,{url:e,index:i,list:eb,isDragging:r.isDragging,onDelete:()=&gt;eK(e)},i)})},e)),e.placeholder]})})})]}),(0,t.jsx)(g.o,{label:"Button Label",placeholder:"Enter Button Label",...eA.getInputProps("button_label"),w:(0,l.h)(256),size:"sm"})]}),(0,t.jsx)(m.x,{mb:10,sx:e=&gt;({fontSize:e.fontSizes.sm,fontWeight:"normal","@media (max-width: 768px)":{fontSize:"12px",fontWeight:500}}),children:"Extras"}),(0,t.jsxs)(s.x,{className:J.box,mb:20,children:[(0,t.jsx)(_.NU,{label:"Product Tags",data:ey,rightSection:(0,t.jsx)(I.JK,{}),placeholder:"Enter room, building number and street address...",...eA.getInputProps("tags"),searchable:!0,creatable:!0,valueComponent:function(e){let{value:i,label:n,onRemove:r,classNames:o,...a}=e;return(0,t.jsx)("div",{...a,children:(0,t.jsxs)(s.x,{sx:e=&gt;({display:"flex",cursor:"default",alignItems:"center",gap:"4px",backgroundColor:"#F6F6F6",paddingLeft:e.spacing.xs,borderRadius:e.radius.sm,border:"1px solid ".concat(e.colors[e.primaryColor][6])}),children:[(0,t.jsx)(s.x,{sx:{lineHeight:1,fontSize:(0,l.h)(12)},children:n}),(0,t.jsx)(d.A,{onClick:r,children:(0,t.jsx)(I.ES,{})})]})})},getCreateLabel:e=&gt;"+ Add ".concat(e),onCreate:e=&gt;{let i={value:e,label:e};return ew(e=&gt;[...e,i]),i}}),(0,t.jsxs)(f.Z,{position:"apart",noWrap:!0,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(m.x,{sx:e=&gt;({fontSize:e.fontSizes.sm,fontWeight:"normal","@media (max-width: 768px)":{fontSize:"12px",fontWeight:500}}),children:"Allow Pre Order"}),(0,t.jsx)(m.x,{weight:"",size:"sm",children:"Set a deadline to enable customers to pre-order products before they are available."})]}),(0,t.jsx)(b.r,{...eA.getInputProps("is_pre_order",{type:"checkbox"}),size:"sm"})]}),(0,t.jsx)(j.U,{in:eA.values.is_pre_order,children:(0,t.jsx)(s.x,{sx:{background:"#F6F6F6",borderRadius:"8px"},p:"xs",children:(0,t.jsxs)(y.M,{cols:2,children:[(0,t.jsx)(H.a,{disabled:!eA.values.is_pre_order,valueFormat:"YYYY MMM DD",placeholder:"e.g yyyy/mm/dd",defaultValue:new Date,minDate:new Date,...eA.getInputProps("pre_order_deadline"),rightSection:(0,t.jsx)(I.nF,{})}),(0,t.jsx)(B.M,{disabled:!eA.values.is_pre_order,ref:eJ,value:eM,onChange:e=&gt;eR(e.target.value),rightSection:(0,t.jsx)(d.A,{onClick:()=&gt;eJ.current.showPicker(),children:(0,t.jsx)(P.Z,{size:"1rem",stroke:1.5})}),maw:400,styles:()=&gt;({root:{width:"100%"}}),mx:"auto"})]})})}),(null==eu?void 0:eu.type)==="physical_product"&amp;&amp;(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(f.Z,{position:"apart",noWrap:!0,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(m.x,{sx:e=&gt;({fontSize:e.fontSizes.sm,fontWeight:"normal","@media (max-width: 768px)":{fontSize:"12px",fontWeight:500}}),children:"Shipping type"}),(0,t.jsx)(m.x,{weight:"",size:"sm",children:"Manage your shipping information."})]}),(0,t.jsxs)(f.Z,{spacing:5,sx:{cursor:"pointer"},onClick:()=&gt;ef(!0),children:[(0,t.jsx)(I.$n,{color:G.colors[G.primaryColor][6]}),(0,t.jsx)(x.e,{weight:500,mt:2,size:14,children:"Edit Details"})]})]}),(0,t.jsxs)(s.x,{bg:"#F6F6F6",p:"8px",sx:{borderRadius:"8px"},children:[eo.map(e=&gt;(null==ee?void 0:ee[e.key])&amp;&amp;(0,t.jsxs)(f.Z,{spacing:10,align:"center",children:[(0,t.jsx)(m.x,{size:20,weight:600,mb:7,children:"."}),(0,t.jsx)(m.x,{size:14,weight:500,children:e.label})]},e.key)),!(null==ee?void 0:ee.store_pick_up)&amp;&amp;!(null==ee?void 0:ee.national_delivery)&amp;&amp;!(null==ee?void 0:ee.international_delivery)&amp;&amp;(0,t.jsx)(f.Z,{spacing:10,align:"center",children:(0,t.jsx)(m.x,{size:14,weight:500,children:"No Shipping Type"})})]})]})]})]})," ",(0,t.jsxs)(f.Z,{position:"apart",sx:{width:"100%",background:"#fff",marginBottom:0,"@media (max-width: 768px)":{borderTop:"1px solid #7C7C7C",position:"fixed",bottom:0,left:0,right:0,background:"white",zIndex:100}},p:"sm",children:[(0,t.jsx)(w.z,{variant:"white",color:"dark",onClick:()=&gt;"true"===er?o.push("/create-product/".concat(ea,"/").concat("mentorship"===eu.type?"consultation":eu.type,"/product-summary/").concat(eu.id,"?mode=edit&amp;title=").concat(eu.title)):o.push("/create-product/".concat(ea,"/").concat("mentorship"===eu.type?"consultation":eu.type,"/product-information/").concat(eu.id,"?title=").concat(eu.title)),children:"Back"}),(0,t.jsx)(w.z,{color:"dark",radius:"md",type:"submit",loading:eD,rightIcon:(0,t.jsx)(R.Z,{size:14}),children:"true"===er?"Update":"Continue"})]})]}),(0,t.jsx)(en,{open:e_,setOpen:ef,overview:Y,mutate:$,dataLoading:Q}),eS&amp;&amp;(0,t.jsx)(D.T,{isEdit:!0,isVisible:eS,onClose:()=&gt;eE(!1),file:eL,imageUrl:eA.values.thumbnail,setFile:eF,onSave:"preview"===eC?eT:eW})]}),(0,t.jsx)(u.r.Col,{md:12,sm:12,lg:7,xl:7,sx:{"@media (max-width: 1024px)":{display:"none"}},children:(0,t.jsx)(p.x,{w:"100%",children:(null==eA?void 0:null===(n=eA.values)||void 0===n?void 0:n.type)==="physical_product"?(0,t.jsx)(q.d,{product:eA.values,overview:Y}):(0,t.jsx)(V.P,{product:eA.values})})}),(0,t.jsx)(K.W,{isOpen:eP,onClose:()=&gt;eN(!1),radius:24,title:"Preview of Sales Landing Page",height:"90vh",withDragHandle:!0,children:(null==eA?void 0:null===(r=eA.values)||void 0===r?void 0:r.type)==="physical_product"?(0,t.jsx)(q.d,{product:eA.values,overview:Y}):(0,t.jsx)(V.P,{product:eA.values})})]})}},47746:function(e,i,n){n.d(i,{g:function(){return r}});var t=n(11527);let r=e=&gt;(0,t.jsxs)("svg",{width:900,height:43,viewBox:"0 0 900 43",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsxs)("g",{filter:"url(#filter0_b_19358_49758)",children:[(0,t.jsx)("path",{d:"M0 7.19998C0 3.22354 3.22355 0 7.19999 0H892.8C896.776 0 900 3.22355 900 7.19999V42.3913H0V7.19998Z",fill:"white",style:{fill:"white",fillOpacity:1}}),(0,t.jsx)("ellipse",{cx:34.1832,cy:21.5982,rx:5.4,ry:5.39999,fill:"#FFDB01",style:{fill:"#FFDB01",fillOpacity:1}}),(0,t.jsx)("ellipse",{cx:19.7848,cy:21.5982,rx:5.4,ry:5.39999,fill:"#FF0000",style:{fill:"#FF0000",fillOpacity:1}}),(0,t.jsx)("ellipse",{cx:48.6236,cy:21.5982,rx:5.4,ry:5.39999,fill:"#2DFF67",style:{fill:"#2DFF67",fillOpacity:1}})]}),(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:"filter0_b_19358_49758",x:-28.8,y:-28.8,width:957.6,height:99.9915,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,t.jsx)("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:14.4}),(0,t.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_19358_49758"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_backgroundBlur_19358_49758",result:"shape"})]})})]})},45026:function(e,i,n){n.d(i,{d:function(){return O}});var t=n(11527),r=n(83031),l=n(48431),o=n(93346),a=n(19309),s=n(25236),d=n(60475),c=n(89384),u=n(61615),p=n(55087),h=n(49758),m=n(58872),x=n(47746),v=n(56947),g=n(55814),_=n(5227),f=n(2370),b=n(25491),j=n(72250),y=n(65323),w=n(27009),C=n(76491),k=n(52117),z=n(50959),S=n(50355),E=n(13348);let L=()=&gt;(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"17",viewBox:"0 0 30 17",fill:"none",children:[(0,t.jsx)("path",{d:"M0 4.64062C0 2.56956 1.67893 0.890625 3.75 0.890625H26.25C28.3211 0.890625 30 2.56956 30 4.64063V12.6406C30 14.7117 28.3211 16.3906 26.25 16.3906H3.75C1.67893 16.3906 0 14.7117 0 12.6406V4.64062Z",fill:"white"}),(0,t.jsx)("rect",{x:"9.5",y:"4.64062",width:"5",height:"4.92188",rx:"2.46094",fill:"#E6E6E6"})]}),F=()=&gt;(0,t.jsxs)("svg",{width:"65",height:"23",viewBox:"0 0 65 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M0 11.3906C0 5.17742 5.0368 0.140625 11.25 0.140625H53.25C59.4632 0.140625 64.5 5.17742 64.5 11.3906C64.5 17.6038 59.4632 22.6406 53.25 22.6406H11.25C5.0368 22.6406 0 17.6038 0 11.3906Z",fill:"white"}),(0,t.jsx)("rect",{x:"3.75",y:"4",width:"15",height:"15",rx:"7.5",fill:"#F6F6F6"}),(0,t.jsx)("rect",{x:"45.75",y:"4",width:"15",height:"15",rx:"7.5",fill:"#F6F6F6"}),(0,t.jsx)("rect",{x:"22",y:"8",width:"21",height:"7.38281",rx:"3.69141",fill:"#E6E6E6"})]}),Z=e=&gt;{var i,n,o,s,c,u,p,m,x,v,Z,D,M,R,P,N,A,I,H,B,T,U,O,K,W,V,q,J,G,X,Y,$,Q,ee,ei,en,et;let{product:er}=e,el=(0,g.rZ)(),[eo,ea]=(0,z.useState)(0),[es,ed]=(0,z.useState)(0),[ec,eu]=(0,z.useState)(0),[ep,eh]=(0,z.useState)(null),em=null==er?void 0:er.pre_order_deadline,{date:ex,time:ev}=(e=&gt;{let i=S.ou.fromMillis(e);return{date:i.toFormat("MMM d"),time:i.toFormat("HH:mm 'UTC'")}})(S.ou.fromJSDate(em).toMillis()),eg=(0,z.useMemo)(()=&gt;{var e,i,n,t,r,l,o,a,s,d,c,u;let p=Number((null==er?void 0:null===(i=er.product_pricing_data)||void 0===i?void 0:null===(e=i[0])||void 0===e?void 0:e.price)||0),h=100*Number((null==er?void 0:null===(t=er.product_pricing_data)||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.slash_price)||0)||0,m=0,x=0;if((null==er?void 0:null===(r=er.product_variation)||void 0===r?void 0:r.variations)&amp;&amp;(null==er?void 0:null===(l=er.product_variation)||void 0===l?void 0:l.variations.length)&gt;0){m=(null===(a=er.product_variation.variations[eo])||void 0===a?void 0:null===(o=a.variation_add_price[0])||void 0===o?void 0:o.price)||0;let e=null===(d=er.product_variation.variations[eo])||void 0===d?void 0:null===(s=d.sub_variation)||void 0===s?void 0:s.sub_variants;e&amp;&amp;e.length&gt;0&amp;&amp;(x=(null===(u=e[es])||void 0===u?void 0:null===(c=u.variant_add_price[0])||void 0===c?void 0:c.price)||0)}return{main:p+Number(m)+Number(x),slash:h+Number(100*m)+Number(100*x)}},[er,eo,es]),e_=(0,z.useMemo)(()=&gt;(null==er?void 0:er.show_variant_images)?(0,E.QNh)(er):(null==er?void 0:er.physical_product_preview)||[],[er]);(0,z.useEffect)(()=&gt;{ec&gt;=(null==e_?void 0:e_.length)&amp;&amp;eu(0)},[e_]);let ef=(0,z.useMemo)(()=&gt;{var e,i;return(null==er?void 0:null===(i=er.product_variation)||void 0===i?void 0:null===(e=i.variations)||void 0===e?void 0:e.sort((e,i)=&gt;{var n;if((null==er?void 0:null===(n=er.product_variation)||void 0===n?void 0:n.variation_type)!=="color"){if(e.variant_object&amp;&amp;!i.variant_object)return -1;if(!e.variant_object&amp;&amp;i.variant_object)return 1}return 0}))||[]},[er]),eb=(0,z.useMemo)(()=&gt;{var e,i,n,t,r;let l=null==er?void 0:null===(e=er.product_variation)||void 0===e?void 0:e.variations,o=null==l?void 0:null===(n=l[eo])||void 0===n?void 0:null===(i=n.sub_variation)||void 0===i?void 0:i.sub_variants,a=null==l?void 0:null===(r=l[eo])||void 0===r?void 0:null===(t=r.sub_variation)||void 0===t?void 0:t.sub_variation_type;return o&amp;&amp;o.sort((e,i)=&gt;{if("color"!==a){if(e.variant_object&amp;&amp;!i.variant_object)return -1;if(!e.variant_object&amp;&amp;i.variant_object)return 1}return 0})||[]},[er,eo]);return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(_.x,{sx:{width:"100%",background:"#F6F6F6"},children:(0,t.jsxs)(d.k,{direction:{base:"column",md:"row"},children:[(0,t.jsxs)(r.K,{sx:{flex:1,padding:"20px",overflow:"hidden",position:"relative"},children:[(null==er?void 0:er.is_pre_order)&amp;&amp;(0,t.jsxs)(_.x,{sx:{position:"absolute",right:"-3px",zIndex:10,top:1},children:[(0,t.jsxs)("svg",{width:"100",height:"100",viewBox:"0 0 83 83",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M74.8963 43.9719C76.0422 42.6512 76.0422 40.6887 74.8963 39.3679L71.3877 35.3238C70.6806 34.5088 70.3873 33.4141 70.5921 32.3548L71.6086 27.0982C71.9406 25.3814 70.9594 23.6819 69.3066 23.111L64.246 21.363C63.2262 21.0108 62.4248 20.2094 62.0726 19.1896L60.3246 14.129C59.7537 12.4762 58.0541 11.4949 56.3373 11.8269L51.0808 12.8435C50.0214 13.0483 48.9267 12.755 48.1118 12.0479L44.0677 8.53929C42.7469 7.39338 40.7844 7.39338 39.4636 8.53929L35.4195 12.0479C34.6046 12.755 33.5099 13.0483 32.4506 12.8435L27.194 11.8269C25.4772 11.4949 23.7776 12.4762 23.2067 14.129L21.4588 19.1896C21.1065 20.2094 20.3051 21.0108 19.2853 21.363L14.2247 23.111C12.5719 23.6819 11.5907 25.3814 11.9227 27.0982L12.9392 32.3548C13.144 33.4141 12.8507 34.5088 12.1437 35.3238L8.63504 39.3679C7.48913 40.6887 7.48913 42.6512 8.63504 43.9719L12.1437 48.016C12.8507 48.831 13.144 49.9257 12.9392 50.985L11.9227 56.2416C11.5907 57.9584 12.5719 59.658 14.2247 60.2288L19.2853 61.9768C20.3051 62.3291 21.1065 63.1304 21.4588 64.1503L23.2067 69.2109C23.7776 70.8636 25.4772 71.8449 27.194 71.5129L32.4506 70.4964C33.5099 70.2915 34.6046 70.5848 35.4195 71.2919L39.4636 74.8005C40.7844 75.9464 42.7469 75.9464 44.0677 74.8005L48.1118 71.2919C48.9267 70.5848 50.0214 70.2915 51.0808 70.4964L56.3373 71.5129C58.0541 71.8449 59.7537 70.8636 60.3246 69.2109L62.0726 64.1503C62.4248 63.1304 63.2262 62.3291 64.246 61.9768L69.3066 60.2288C70.9594 59.658 71.9406 57.9584 71.6086 56.2416L70.5921 50.985C70.3873 49.9257 70.6806 48.831 71.3877 48.016L74.8963 43.9719Z",fill:el.colors[el.primaryColor][8]}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M81.707 44.5494C83.1393 42.8984 83.1393 40.4453 81.707 38.7943L77.0388 33.4138C76.5085 32.8025 76.2885 31.9815 76.4421 31.187L77.7946 24.1932C78.2096 22.0473 76.983 19.9228 74.9171 19.2092L68.184 16.8836C67.4192 16.6194 66.8181 16.0183 66.5539 15.2535L64.2283 8.52044C63.5147 6.45446 61.3903 5.2279 59.2443 5.64289L52.2505 6.99535C51.456 7.14899 50.635 6.929 50.0237 6.3987L44.6432 1.73054C42.9922 0.298152 40.5391 0.298151 38.8881 1.73054L33.5075 6.3987C32.8963 6.929 32.0753 7.14899 31.2808 6.99535L24.287 5.64289C22.141 5.2279 20.0165 6.45446 19.3029 8.52044L16.9773 15.2535C16.7131 16.0183 16.1121 16.6194 15.3472 16.8835L8.61419 19.2092C6.54821 19.9228 5.32165 22.0472 5.73664 24.1932L7.0891 31.187C7.24274 31.9815 7.02274 32.8025 6.49245 33.4138L1.82429 38.7943C0.391905 40.4453 0.391905 42.8984 1.82429 44.5494L6.49244 49.93C7.02274 50.5412 7.24273 51.3622 7.0891 52.1567L5.73664 59.1505C5.32164 61.2965 6.54821 63.421 8.61419 64.1346L15.3472 66.4602C16.1121 66.7244 16.7131 67.3254 16.9773 68.0903L19.3029 74.8233C20.0165 76.8893 22.141 78.1158 24.287 77.7009L31.2808 76.3484C32.0753 76.1948 32.8963 76.4148 33.5075 76.9451L38.8881 81.6132C40.5391 83.0456 42.9922 83.0456 44.6432 81.6132L50.0237 76.9451C50.635 76.4148 51.456 76.1948 52.2505 76.3484L59.2443 77.7009C61.3902 78.1159 63.5147 76.8893 64.2283 74.8233L66.5539 68.0903C66.8181 67.3254 67.4192 66.7244 68.184 66.4602L74.9171 64.1346C76.983 63.421 78.2096 61.2965 77.7946 59.1505L76.4421 52.1567C76.2885 51.3622 76.5085 50.5412 77.0388 49.93L81.707 44.5494ZM80.3803 39.9453C81.2397 40.9359 81.2397 42.4078 80.3803 43.3984L75.7121 48.779C74.8283 49.7977 74.4616 51.1661 74.7177 52.4902L76.0702 59.484C76.3192 60.7716 75.5832 62.0463 74.3436 62.4744L67.6106 64.8C66.3358 65.2404 65.3341 66.2421 64.8938 67.5169L62.5682 74.2499C62.14 75.4895 60.8653 76.2254 59.5777 75.9764L52.5839 74.624C51.2598 74.3679 49.8914 74.7345 48.8727 75.6184L43.4921 80.2865C42.5016 81.146 41.0297 81.146 40.0391 80.2865L34.6585 75.6184C33.6398 74.7345 32.2714 74.3679 30.9473 74.624L23.9535 75.9764C22.6659 76.2254 21.3912 75.4895 20.9631 74.2499L18.6374 67.5169C18.1971 66.2421 17.1954 65.2404 15.9206 64.8L9.18762 62.4744C7.94803 62.0463 7.21209 60.7716 7.46109 59.484L8.81354 52.4902C9.06961 51.1661 8.70296 49.7977 7.81913 48.779L3.15097 43.3984C2.29153 42.4078 2.29153 40.9359 3.15097 39.9453L7.81913 34.5648C8.70296 33.5461 9.06961 32.1777 8.81354 30.8535L7.46109 23.8598C7.21209 22.5722 7.94803 21.2975 9.18762 20.8693L15.9206 18.5437C17.1954 18.1034 18.1971 17.1017 18.6375 15.8269L20.9631 9.09386C21.3912 7.85428 22.6659 7.11834 23.9535 7.36733L30.9473 8.71979C32.2714 8.97586 33.6398 8.6092 34.6585 7.72537L40.0391 3.05722C41.0297 2.19778 42.5016 2.19778 43.4922 3.05722L48.8727 7.72537C49.8914 8.6092 51.2598 8.97586 52.5839 8.71979L59.5777 7.36734C60.8653 7.11834 62.14 7.85428 62.5682 9.09386L64.8938 15.8269C65.3341 17.1017 66.3358 18.1034 67.6106 18.5437L74.3436 20.8693C75.5832 21.2975 76.3192 22.5722 76.0702 23.8598L74.7177 30.8535C74.4616 32.1777 74.8283 33.5461 75.7121 34.5648L80.3803 39.9453Z",fill:el.colors[el.primaryColor][8]})]}),(0,t.jsxs)(r.K,{spacing:3,sx:{position:"absolute",right:"21px",zIndex:10,top:30},children:[(0,t.jsx)(l.x,{size:"7px",weight:500,align:"center",color:"white",children:"Pre Order last till"}),(0,t.jsx)(l.x,{size:"11px",weight:700,align:"center",color:"white",children:ex}),(0,t.jsx)(l.x,{size:"7px",weight:400,align:"center",color:"white",children:ev})]})]}),er&amp;&amp;((null==e_?void 0:e_.length)===0||!e_)?(0,t.jsx)(_.x,{sx:{width:"100%",height:"280px",background:"#E0E0E0",borderRadius:"8px"}}):(0,t.jsxs)("div",{style:{width:"100%",height:"280px",position:"relative"},children:[(0,t.jsx)(f.E,{src:ep||(er&amp;&amp;(null==e_?void 0:e_.length)&gt;0?e_[ec]:""),height:280,radius:"8px",fit:"fill"}),(0,t.jsx)(b.a,{color:"gray",zIndex:1,blur:5,sx:{borderRadius:"8px"}}),(0,t.jsx)(f.E,{src:ep||(er&amp;&amp;(null==e_?void 0:e_.length)&gt;0?e_[ec]:""),height:280,radius:"8px",fit:"contain",sx:{position:"absolute",left:0,right:0,top:0,zIndex:2}})]}),(0,t.jsx)(a.x,{w:"100%",children:(0,t.jsx)(d.k,{align:"center",justify:"center",gap:"15px",sx:{width:"100%"},children:(null==e_?void 0:e_.length)!==0&amp;&amp;e_?null==e_?void 0:e_.map((e,i)=&gt;(0,t.jsx)(f.E,{sx:{cursor:"pointer"},src:e,width:"56px",height:"56px",radius:"8px",onClick:()=&gt;{eh(null),eu(i)}},i)):(0,t.jsx)(t.Fragment,{children:null===(i=Array.from({length:7}))||void 0===i?void 0:i.map(()=&gt;(0,t.jsx)(_.x,{sx:{width:"56px",height:"56px","@media (max-width: 768px)":{height:"42.42px",width:"42.42px"},background:"#E0E0E0",borderRadius:"8px"}}))})})})]}),(0,t.jsxs)(r.K,{sx:{flex:1,padding:"20px"},children:[(0,t.jsx)(j.Z,{spacing:5,children:(null==er?void 0:null===(n=er.tags)||void 0===n?void 0:n.length)!==0&amp;&amp;(null==er?void 0:er.tags)?(0,t.jsx)(t.Fragment,{children:null==er?void 0:null===(o=er.tags)||void 0===o?void 0:o.map((e,i)=&gt;(0,t.jsx)(y.C,{size:"sm",tt:"capitalize",children:e},i))}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.x,{sx:{width:"58px",height:"12px",background:"#E6E6E6",borderRadius:"8px"}}),(0,t.jsx)(_.x,{sx:{width:"60px",height:"12px",background:"#E6E6E6",borderRadius:"8px"}})]})}),(0,t.jsx)(w.D,{lineClamp:1,size:20,order:2,className:"split-left--title",children:(null==er?void 0:null===(s=er.title)||void 0===s?void 0:s.length)&gt;0?er.title:"Product Title goes here"}),(0,t.jsxs)(j.Z,{spacing:5,children:[null===(c=Array.from({length:5}))||void 0===c?void 0:c.map(()=&gt;(0,t.jsx)(_.x,{sx:{width:"10px",height:"10px",background:"#E6E6E6",borderRadius:"50%"}})),(0,t.jsx)(_.x,{sx:{width:"60px",height:"10px",background:"#E6E6E6",borderRadius:"8px"}})]}),(0,t.jsx)(j.Z,{pos:"relative",spacing:"sm",children:(0,t.jsx)(l.x,{size:"md",weight:"bolder",children:er.is_product_free?"Free":(null===(p=er.product_pricing_data)||void 0===p?void 0:null===(u=p[0])||void 0===u?void 0:u.is_slash_price)?(0,t.jsxs)(j.Z,{spacing:"xs",children:[(0,t.jsx)(l.x,{size:"md",weight:"bold",color:el.colors[el.primaryColor][6],children:(0,t.jsx)(C.E,{price:eg.slash/100,currency:null==er?void 0:null===(x=er.product_pricing_data)||void 0===x?void 0:null===(m=x[0])||void 0===m?void 0:m.currency})}),(0,t.jsx)(l.x,{size:"md",weight:"bold",color:el.colors[el.primaryColor][6],children:(0,t.jsx)("del",{children:(0,t.jsx)(C.E,{price:null==eg?void 0:eg.main,currency:null==er?void 0:null===(v=er.product_pricing_data[0])||void 0===v?void 0:v.currency})})})]}):(0,t.jsx)(l.x,{size:"md",weight:"bold",color:el.colors[el.primaryColor][6],children:(0,t.jsx)(C.E,{price:null==eg?void 0:eg.main,currency:null==er?void 0:null===(D=er.product_pricing_data)||void 0===D?void 0:null===(Z=D[0])||void 0===Z?void 0:Z.currency})})})}),(null==er?void 0:er.has_variation)&amp;&amp;(0,t.jsx)(t.Fragment,{children:(null==er?void 0:null===(M=er.product_variation)||void 0===M?void 0:M.variation_type)?(0,t.jsx)(j.Z,{children:(0,t.jsxs)(l.x,{size:12,tt:"capitalize",weight:500,children:[(null==er?void 0:null===(R=er.product_variation)||void 0===R?void 0:R.variation_type)==="custom"?null==er?void 0:null===(P=er.product_variation)||void 0===P?void 0:P.variation_custom_label:null==er?void 0:null===(N=er.product_variation)||void 0===N?void 0:N.variation_type,": ",null==er?void 0:null===(I=er.product_variation)||void 0===I?void 0:null===(A=I.variations[eo])||void 0===A?void 0:A.variant_label]})}):(0,t.jsx)(_.x,{sx:{width:"60%",height:"6px",background:"#E6E6E6",borderRadius:"8px"}})}),!(null==er?void 0:null===(H=er.product_variation)||void 0===H?void 0:H.variations)&amp;&amp;(null==er?void 0:er.has_variation)&amp;&amp;(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(j.Z,{children:null===(B=Array.from({length:5}))||void 0===B?void 0:B.map(()=&gt;(0,t.jsx)(_.x,{sx:{width:"19px",height:"19px",background:"#fff",borderRadius:"4px"}}))})}),(null==er?void 0:null===(T=er.product_variation)||void 0===T?void 0:T.variation_type)&amp;&amp;(null==er?void 0:er.has_variation)&amp;&amp;(0,t.jsxs)(j.Z,{mt:-10,children:[ef.map((e,i)=&gt;{var n;let r={cursor:"pointer",transition:"0.5s",borderRadius:"8px",border:i===eo?"2px solid #000 !important":"2px solid #E0E0E0"};return(null==er?void 0:null===(n=er.product_variation)||void 0===n?void 0:n.variation_type)==="color"?(0,t.jsx)(_.x,{onClick:()=&gt;ea(i),sx:{...r,height:"25px",width:"25px",background:null==e?void 0:e.variant_object,borderRadius:"4px"}},i):(0,t.jsx)(_.x,{onClick:()=&gt;ea(i),sx:r,children:(null==e?void 0:e.variant_object)?(0,t.jsx)(f.E,{width:"40px",height:"40px",src:null==e?void 0:e.variant_object,radius:"8px",alt:null==e?void 0:e.variant_label,onClick:()=&gt;eh(null==e?void 0:e.variant_object)}):(0,t.jsx)(d.k,{justify:"center",align:"center",sx:{height:"25px",padding:"0px 8px",background:"#fff",borderRadius:"8px"},children:(0,t.jsx)(l.x,{size:12,tt:"capitalize",children:null==e?void 0:e.variant_label})})},i)}),0===ef.length&amp;&amp;(0,t.jsx)(t.Fragment,{children:null===(U=Array.from({length:5}))||void 0===U?void 0:U.map((e,i)=&gt;(0,t.jsx)(_.x,{sx:{width:"19px",height:"19px",background:"#fff",borderRadius:"4px"}},i))})]}),(null==er?void 0:er.has_variation)&amp;&amp;(0,t.jsx)(t.Fragment,{children:(null==er?void 0:null===(O=er.product_variation)||void 0===O?void 0:O.has_sub_variants)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.x,{size:12,tt:"capitalize",weight:500,children:[(null==er?void 0:null===(V=er.product_variation)||void 0===V?void 0:null===(W=V.variations[eo])||void 0===W?void 0:null===(K=W.sub_variation)||void 0===K?void 0:K.sub_variation_type)==="custom"?null==er?void 0:null===(G=er.product_variation)||void 0===G?void 0:null===(J=G.variations[eo])||void 0===J?void 0:null===(q=J.sub_variation)||void 0===q?void 0:q.sub_variation_custom_label:null==er?void 0:null===($=er.product_variation)||void 0===$?void 0:null===(Y=$.variations[eo])||void 0===Y?void 0:null===(X=Y.sub_variation)||void 0===X?void 0:X.sub_variation_type,":"," ",null==er?void 0:null===(en=er.product_variation)||void 0===en?void 0:null===(ei=en.variations[eo])||void 0===ei?void 0:null===(ee=ei.sub_variation)||void 0===ee?void 0:null===(Q=ee.sub_variants[es])||void 0===Q?void 0:Q.variant_label]}),(0,t.jsx)(j.Z,{mt:-10,children:eb.map((e,i)=&gt;{var n,r,o;let a={cursor:"pointer",transition:"0.5s",borderRadius:"8px",border:i===es?"2px solid #000 !important":"2px solid #E0E0E0"};return(null==er?void 0:null===(o=er.product_variation)||void 0===o?void 0:null===(r=o.variations[eo])||void 0===r?void 0:null===(n=r.sub_variation)||void 0===n?void 0:n.sub_variation_type)==="color"?(0,t.jsx)(_.x,{onClick:()=&gt;ed(i),sx:{...a,height:"25px",width:"25px",background:null==e?void 0:e.variant_object,borderRadius:"4px"}},i):(0,t.jsx)(_.x,{onClick:()=&gt;ed(i),sx:a,children:(null==e?void 0:e.variant_object)?(0,t.jsx)(f.E,{width:"40px",height:"40px",src:null==e?void 0:e.variant_object,radius:"8px",alt:null==e?void 0:e.variant_label,onClick:()=&gt;eh(null==e?void 0:e.variant_object)}):(0,t.jsx)(d.k,{justify:"center",align:"center",sx:{height:"25px",background:"#fff",borderRadius:"8px",padding:"0px 8px"},children:(0,t.jsx)(l.x,{size:12,tt:"capitalize",children:null==e?void 0:e.variant_label})})},i)})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.x,{sx:{width:"80%",height:"6px",background:"#E6E6E6",borderRadius:"8px"}}),(0,t.jsx)(j.Z,{children:null===(et=Array.from({length:5}))||void 0===et?void 0:et.map(()=&gt;(0,t.jsx)(L,{}))})]})}),(0,t.jsx)(_.x,{sx:{width:"60%",height:"6px",background:"#E6E6E6",borderRadius:"8px"}}),(0,t.jsx)(F,{}),(0,t.jsx)(h.z,{w:"max-content",radius:"md",children:(null==er?void 0:er.button_label)?(0,t.jsxs)(j.Z,{spacing:7,children:[(0,t.jsx)(k.k,{color:"#fff",width:12,height:12}),(0,t.jsx)(l.x,{size:12,children:null==er?void 0:er.button_label})]}):(0,t.jsxs)(j.Z,{spacing:7,children:[(0,t.jsx)(_.x,{sx:{width:"10px",height:"10px",background:"#E6E6E6",borderRadius:"50%"}}),(0,t.jsx)(_.x,{sx:{width:"30px",height:"6px",background:"#E6E6E6",borderRadius:"8px",marginBottom:"10px"}})]})})]})]})})})};var D=n(87839),M=n(80589),R=n(37730),P=n(27491),N=n(71231),A=n(74813),I=n(42319),H=n(90177),B=n(34848),T=n(70470);let U=e=&gt;{var i,n,o,s,d,c,u;let{product:p,overview:h}=e,{width:x}=(0,m.n)(),v=x&lt;=768,[g,f]=(0,z.useState)({shipping:!0,instruction:!0,material:!0,dimension:!0}),b=[{value:"product-details",label:"Product Details"}].filter(e=&gt;{var i;return(null==p?void 0:p.type)==="digital"?"resources"!==e.value&amp;&amp;"projects"!==e.value:(null==p?void 0:null===(i=p.product_attachments)||void 0===i?void 0:i.length)!==0||"resources"!==e.value}),y=null==p?void 0:null===(i=p.additional_description)||void 0===i?void 0:i.replace(/&lt;[^&gt;]*&gt;?/gm,""),w=b.filter(e=&gt;{var i,n;return"resources"===e.value?(null==p?void 0:null===(i=p.product_attachments)||void 0===i?void 0:i.length)&gt;0:"projects"===e.value?(null==p?void 0:null===(n=p.assigned_projects)||void 0===n?void 0:n.length)&gt;0:(e.value,!0)}),C=[(null==h?void 0:null===(o=h.educator_portfolio)||void 0===o?void 0:null===(n=o.shipping_details)||void 0===n?void 0:n.store_pick_up)&amp;&amp;"Store Pick-Up",(null==h?void 0:null===(d=h.educator_portfolio)||void 0===d?void 0:null===(s=d.shipping_details)||void 0===s?void 0:s.national_delivery)&amp;&amp;"National Delivery",(null==h?void 0:null===(u=h.educator_portfolio)||void 0===u?void 0:null===(c=u.shipping_details)||void 0===c?void 0:c.international_delivery)&amp;&amp;"International Delivery"].filter(Boolean),k=null==C?void 0:C.join(", "),S=1===C.length?"is":"are",E=1===C.length?"Type":"Types",{classes:L}=(0,T.p)(),{classes:F}=(0,A.s)(),Z=()=&gt;{var e,i,n,o,a,s,d,c,u,m,x,v,b,y,w,z,L,F;return(0,t.jsxs)(r.K,{mt:30,children:[(0,t.jsx)(_.x,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(j.Z,{position:"apart",mb:5,children:[(0,t.jsx)(l.x,{size:13,weight:600,children:"Product Dimension"}),(null==g?void 0:g.dimension)?(0,t.jsx)(B.Z,{size:14,onClick:()=&gt;f(e=&gt;({...e,dimension:!1})),cursor:"pointer"}):(0,t.jsx)(H.Z,{size:14,onClick:()=&gt;f(e=&gt;({...e,dimension:!0})),cursor:"pointer"})]}),(0,t.jsx)(D.U,{in:g.dimension,h:"100%",children:(0,t.jsxs)(r.K,{spacing:5,children:[(0,t.jsx)(l.x,{size:12,ml:7,weight:600,children:"Sizes &amp; Weight are highlighted below"}),(0,t.jsxs)(j.Z,{spacing:5,ml:7,children:[(0,t.jsx)(l.x,{size:12,children:"Packages Size (lbh):"}),(0,t.jsxs)(l.x,{size:12,children:[null==p?void 0:null===(e=p.product_parcel_dimension)||void 0===e?void 0:e.length," -",null==p?void 0:null===(i=p.product_parcel_dimension)||void 0===i?void 0:i.width," -",null==p?void 0:null===(n=p.product_parcel_dimension)||void 0===n?void 0:n.height]})]}),(0,t.jsxs)(j.Z,{spacing:5,ml:7,children:[(0,t.jsx)(l.x,{size:12,children:"Weight:"}),(0,t.jsx)(l.x,{size:12,children:null==p?void 0:null===(o=p.product_parcel_dimension)||void 0===o?void 0:o.weight})]}),(0,t.jsxs)(j.Z,{spacing:5,ml:7,children:[(0,t.jsx)(l.x,{size:12,children:"Distance unit:"}),(0,t.jsx)(l.x,{size:12,children:null==p?void 0:null===(a=p.product_parcel_dimension)||void 0===a?void 0:a.distance_unit})]}),(0,t.jsxs)(j.Z,{spacing:5,ml:7,children:[(0,t.jsx)(l.x,{size:12,children:"Mass unit:"}),(0,t.jsx)(l.x,{size:12,children:null==p?void 0:null===(s=p.product_parcel_dimension)||void 0===s?void 0:s.mass_unit})]})]})}),(0,t.jsx)(M.i,{})]})}),(0,t.jsx)(_.x,{children:(null==C?void 0:C.length)&gt;0?(0,t.jsxs)(t.Fragment,{children:[(null==C?void 0:C.length)&gt;0&amp;&amp;(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(j.Z,{position:"apart",mb:5,children:[(0,t.jsx)(l.x,{size:13,weight:600,children:"Shipping Details"}),(null==g?void 0:g.shipping)?(0,t.jsx)(B.Z,{size:14,onClick:()=&gt;f(e=&gt;({...e,shipping:!1})),cursor:"pointer"}):(0,t.jsx)(H.Z,{size:14,onClick:()=&gt;f(e=&gt;({...e,shipping:!0})),cursor:"pointer"})]})}),(0,t.jsxs)(D.U,{in:null==g?void 0:g.shipping,h:"100%",children:[(null==C?void 0:C.length)&gt;0&amp;&amp;(0,t.jsxs)(l.x,{size:12,mb:10,weight:600,children:["Shipping ",E," ",S," ",k]}),(null==h?void 0:null===(c=h.educator_portfolio)||void 0===c?void 0:null===(d=c.shipping_details)||void 0===d?void 0:d.store_pick_up)&amp;&amp;(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.x,{size:12,weight:600,children:"Store Address"}),null==h?void 0:null===(m=h.educator_portfolio)||void 0===m?void 0:null===(u=m.pickup_addresses)||void 0===u?void 0:u.map((e,i)=&gt;(0,t.jsxs)(r.K,{spacing:5,children:[(0,t.jsx)(l.x,{size:12,children:(null==e?void 0:e.address)||"Address here..."}),(0,t.jsx)(l.x,{size:12,children:(null==e?void 0:e.city)||"City here..."}),(0,t.jsxs)(j.Z,{spacing:5,children:[" ",(0,t.jsx)(l.x,{size:12,tt:"capitalize",children:(null==e?void 0:e.state)||"State..."}),",",(0,t.jsx)(l.x,{size:12,tt:"capitalize",children:(null==e?void 0:e.country)||"Country..."}),",",(0,t.jsx)(l.x,{size:12,children:(null==e?void 0:e.zip_code)||"Postal Code..."})]})]},i))]})]}),(0,t.jsx)(M.i,{})]}):(0,t.jsx)(t.Fragment,{children:null})}),(0,t.jsx)(_.x,{children:(null==p?void 0:p.is_add_instruction)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(j.Z,{position:"apart",mb:5,children:[(0,t.jsx)(l.x,{size:13,weight:600,children:"Instructions"}),(null==g?void 0:g.instruction)?(0,t.jsx)(B.Z,{size:14,onClick:()=&gt;f(e=&gt;({...e,instruction:!1})),cursor:"pointer"}):(0,t.jsx)(H.Z,{size:14,onClick:()=&gt;f(e=&gt;({...e,instruction:!0})),cursor:"pointer"})]}),(0,t.jsx)(D.U,{in:g.instruction,h:"100%",children:(null==p?void 0:null===(x=p.additional_instruction)||void 0===x?void 0:x.instruction_options)&amp;&amp;(0,t.jsxs)(r.K,{spacing:5,children:[(0,t.jsx)(l.x,{size:12,ml:7,weight:600,children:null==p?void 0:null===(v=p.additional_instruction)||void 0===v?void 0:v.instruction}),null==p?void 0:null===(y=p.additional_instruction)||void 0===y?void 0:null===(b=y.instruction_options)||void 0===b?void 0:b.map((e,i)=&gt;(0,t.jsxs)(j.Z,{spacing:5,ml:7,children:[(0,t.jsxs)(l.x,{size:12,children:[i+1,"."]}),(0,t.jsx)(l.x,{size:12,children:e})]},i))]})}),(0,t.jsx)(M.i,{})]}):(0,t.jsx)(_.x,{sx:{width:"60%",height:"7px",background:"#E6E6E6",borderRadius:"8px"}})}),(0,t.jsx)(_.x,{children:(null==p?void 0:p.is_add_material)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(j.Z,{position:"apart",mb:5,children:[(0,t.jsx)(l.x,{size:13,weight:600,children:"Material Used"}),(null==g?void 0:g.material)?(0,t.jsx)(B.Z,{size:14,onClick:()=&gt;f(e=&gt;({...e,material:!1})),cursor:"pointer"}):(0,t.jsx)(H.Z,{size:14,onClick:()=&gt;f(e=&gt;({...e,material:!0})),cursor:"pointer"})]}),(0,t.jsx)(D.U,{in:g.material,h:"100%",children:(null==p?void 0:null===(w=p.material_instruction)||void 0===w?void 0:w.material)&amp;&amp;(0,t.jsxs)(r.K,{spacing:5,children:[(0,t.jsx)(l.x,{size:12,ml:7,weight:600,children:null==p?void 0:null===(z=p.material_instruction)||void 0===z?void 0:z.material}),null==p?void 0:null===(F=p.material_instruction)||void 0===F?void 0:null===(L=F.material_options)||void 0===L?void 0:L.map((e,i)=&gt;(0,t.jsxs)(j.Z,{spacing:5,ml:7,children:[(0,t.jsxs)(l.x,{size:12,children:[i+1,"."]}),(0,t.jsx)(l.x,{size:12,children:e})]},i))]})}),(0,t.jsx)(M.i,{})]}):(0,t.jsx)(_.x,{sx:{width:"80%",height:"7px",background:"#E6E6E6",borderRadius:"8px"}})})]})};return(0,t.jsx)(_.x,{className:L.wrapper,p:10,children:(0,t.jsx)(_.x,{className:"wrapper",children:(0,t.jsxs)(R.r,{gutter:"md",children:[(0,t.jsx)(R.r.Col,{span:v?12:7,children:(0,t.jsxs)(P.m,{variant:"pills",defaultValue:"product-details",classNames:F,children:[(0,t.jsx)(P.m.List,{px:"sm",children:null==w?void 0:w.map(e=&gt;(0,t.jsx)(P.m.Tab,{value:e.value,sx:()=&gt;({height:"32px","&amp;[data-active]":{backgroundColor:"#F6F6F6"}}),children:(0,t.jsx)(l.x,{sx:()=&gt;({fontSize:"10px","@media (min-width: 768px)":{fontSize:"14px"}}),children:e.label})},e.value))}),(0,t.jsx)(P.m.Panel,{value:"product-details",pb:"sm",children:v?(0,t.jsx)(r.K,{children:(null==y?void 0:y.length)&gt;0?(0,t.jsx)(N.M,{html:null==p?void 0:p.additional_description,style:{fontSize:v?"12px":"70%"}}):(0,t.jsx)(l.x,{size:"sm",align:"center",sx:{width:"100%"},children:"No available product details. Check back another time, champ. \uD83D\uDE4C"})}):(0,t.jsx)(I.lM,{mah:300,scrollbarSize:0,children:(null==y?void 0:y.length)&gt;0?(0,t.jsx)(N.M,{html:null==p?void 0:p.additional_description,style:{fontSize:"70% "}}):(0,t.jsx)(l.x,{size:"sm",align:"center",sx:{width:"100%"},children:"No available product details. Check back another time, champ. \uD83D\uDE4C"})})})]})}),(0,t.jsx)(R.r.Col,{span:v?12:5,children:v?(0,t.jsxs)(t.Fragment,{children:[" ",Z()]}):(0,t.jsx)(a.x,{h:"250px",scrollbarSize:1,offsetScrollbars:!0,children:Z()})})]})})})},O=e=&gt;{let{product:i,overview:n}=e,[,,g]=(0,v.v)("product-type"),{width:_}=(0,m.n)(),f=()=&gt;{var e;return(0,t.jsxs)(r.K,{spacing:0,pos:"relative",h:_&gt;768?750:void 0,sx:{overflow:"hidden",paddingBottom:"50px"},children:[(0,t.jsx)(l.x,{size:"md",fw:"bold",display:{base:"none",sm:"block"},children:"Preview of Sales Landing Page"}),(0,t.jsx)(o.X,{children:(0,t.jsx)(x.g,{})}),(0,t.jsx)(Z,{product:i}),(0,t.jsx)(U,{product:i,overview:n}),"step-6"===g&amp;&amp;(0,t.jsx)(o.X,{w:{base:"40%",md:"40%"},pos:"absolute",top:"50%",left:"59%",children:(0,t.jsx)(a.x.Autosize,{mah:350,scrollbarSize:0,children:"invoice"===i.checkout_type?(0,t.jsxs)(s.Z,{style:{transition:"all linear 300ms"},w:"100%",children:[(0,t.jsx)(l.x,{fw:600,size:"md",children:"Invoice Payment"}),(0,t.jsx)(l.x,{size:"sm",children:"No Preview"})]}):(0,t.jsxs)(o.X,{w:"100%",shadow:"md",p:"sm",sx:{transition:"all linear 300ms",height:"100%",margin:"auto"},children:[(0,t.jsx)(l.x,{size:"sm",weight:"bold",mb:"sm",children:"Register For This Course"}),(0,t.jsxs)(d.k,{direction:"column",gap:"sm",children:[(0,t.jsx)(c.o,{size:"xs",placeholder:"Enter Email Address...",readOnly:!0,withAsterisk:!0,label:"Email Address"}),(0,t.jsx)(c.o,{size:"xs",placeholder:"Enter Full Name...",readOnly:!0,withAsterisk:!0,label:"Full name"}),(null===(e=i.checkout_details)||void 0===e?void 0:e.user_country)&amp;&amp;(0,t.jsx)(c.o,{size:"xs",placeholder:"Enter Country...",readOnly:!0,withAsterisk:!0,label:"Enter country"}),i.checkout_details.user_phone_number&amp;&amp;(0,t.jsx)(c.o,{size:"xs",placeholder:"Enter Phone number...",readOnly:!0,withAsterisk:!0,label:"Enter Phone number"}),(0,t.jsx)(c.o,{size:"xs",placeholder:"Enter Card details...",readOnly:!0,withAsterisk:!0,label:"Card Details"}),(0,t.jsx)(u.X,{size:"xs",label:(0,t.jsxs)(l.x,{size:"xs",span:!0,children:["I agree with the below and I have read Khaime’s"," ",(0,t.jsx)(p.e,{style:{textDecoration:"underline"},href:"https://www.khaime.com/terms-and-conditions",target:"_blank",weight:"bold",sx:{textDecoration:"underline"},children:"terms and conditions"})]})}),(0,t.jsx)(h.z,{size:"xs",children:"Proceed to Checkout"})]})]})})})]})};return(0,t.jsx)(t.Fragment,{children:_&lt;768?(0,t.jsx)(t.Fragment,{children:f()}):(0,t.jsx)(a.x.Autosize,{mah:750,scrollbarSize:0,pos:"relative",children:f()})})}},49526:function(e,i,n){n.d(i,{P:function(){return A}});var t=n(11527),r=n(55814),l=n(83031),o=n(48431),a=n(93346),s=n(19309),d=n(80377),c=n(25236),u=n(60475),p=n(89384),h=n(61615),m=n(55087),x=n(49758),v=n(63166),g=n(50959),_=n(47746),f=n(5227),b=n(37730),j=n(27491),y=n(71231),w=n(58872),C=n(74813),k=n(42319),z=n(70470),S=n(72250),E=n(27009),L=n(76491),F=n(13348),Z=n(40901);let D=()=&gt;(0,t.jsx)("svg",{width:"83.996",height:"12",viewBox:"0 0 83.996 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fill:"#f4f4f4",d:"M4.921 0.75h72.922a4.922 4.922 0 0 1 4.921 4.921 4.922 4.922 0 0 1 -4.921 4.922H4.921A4.922 4.922 0 0 1 0 5.671 4.922 4.922 0 0 1 4.921 0.75"})}),M=e=&gt;{var i,n,r,a,s,d,c,u,p,h,m,v,g,_,b,j,y,w,C,k,z,M,R,P,N,A;let{product:I}=e;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(f.x,{className:"split",children:(0,t.jsxs)(f.x,{className:"wrapper",style:{gridTemplateColumns:"1.5fr 1fr"},children:[(0,t.jsxs)(f.x,{className:"split-left",children:[(0,t.jsxs)(l.K,{children:[(0,t.jsxs)(S.Z,{children:[(0,t.jsx)(D,{}),(0,t.jsx)(D,{})]}),(0,t.jsx)(E.D,{lineClamp:2,order:2,fz:16,className:"split-left--title",children:(null==I?void 0:null===(i=I.title)||void 0===i?void 0:i.length)&gt;0?I.title:"Product Title goes here"}),!(null==I?void 0:I.is_pay_what_you_have)&amp;&amp;!(null==I?void 0:null===(r=I.product_pricing_data)||void 0===r?void 0:null===(n=r[0])||void 0===n?void 0:n.is_donation_presets)&amp;&amp;(0,t.jsx)(S.Z,{pos:"relative",spacing:"sm",children:(0,t.jsx)(o.x,{size:"md",fz:14,weight:"bolder",children:I.is_product_free?"Free":(null==I?void 0:null===(s=I.product_pricing_data)||void 0===s?void 0:null===(a=s[0])||void 0===a?void 0:a.is_slash_price)?(0,t.jsxs)(S.Z,{spacing:"xs",children:[(0,t.jsx)(o.x,{size:"md",weight:"bold",children:(0,t.jsx)(L.E,{price:I.product_pricing_data[0].slash_price,currency:null!==(z=null===(c=I.product_pricing_data)||void 0===c?void 0:null===(d=c[0])||void 0===d?void 0:d.currency)&amp;&amp;void 0!==z?z:"N/A"})}),(0,t.jsx)(o.x,{size:"md",weight:"bold",children:(0,t.jsx)("del",{children:(0,t.jsx)(L.E,{price:null!==(M=null===(p=I.product_pricing_data)||void 0===p?void 0:null===(u=p[0])||void 0===u?void 0:u.price)&amp;&amp;void 0!==M?M:0,currency:I.product_pricing_data[0].currency})})})]}):(0,t.jsx)(L.E,{price:null!==(R=null==I?void 0:null===(m=I.product_pricing_data)||void 0===m?void 0:null===(h=m[0])||void 0===h?void 0:h.price)&amp;&amp;void 0!==R?R:0,currency:null===(v=((null==I?void 0:I.product_pricing_data)||[])[0])||void 0===v?void 0:v.currency})})}),(null==I?void 0:null===(_=I.product_pricing_data)||void 0===_?void 0:null===(g=_[0])||void 0===g?void 0:g.is_donation_presets)&amp;&amp;(null==I?void 0:null===(y=I.product_pricing_data)||void 0===y?void 0:null===(j=y[0])||void 0===j?void 0:null===(b=j.donation_price_presets)||void 0===b?void 0:b.length)&gt;0&amp;&amp;(null==I?void 0:null===(k=I.product_pricing_data)||void 0===k?void 0:null===(C=k[0])||void 0===C?void 0:null===(w=C.donation_price_presets)||void 0===w?void 0:w.some(e=&gt;e.value&gt;0))&amp;&amp;(0,t.jsx)(f.x,{children:(0,t.jsx)(o.x,{size:"14px",weight:"bolder",children:(0,t.jsx)(S.Z,{spacing:8,children:(0,t.jsxs)(o.x,{size:"14px",underline:!1,weight:700,children:["From"," ",(0,t.jsx)(L.E,{price:Number(Math.min(...I.product_pricing_data[0].donation_price_presets.map(e=&gt;100*e.value)))/100,currency:I.product_pricing_data[0].currency})," ","to"," ",(0,t.jsx)(L.E,{price:Number(Math.max(...I.product_pricing_data[0].donation_price_presets.map(e=&gt;100*e.value)))/100,currency:I.product_pricing_data[0].currency})]})})})}),(0,t.jsx)(f.x,{children:(0,t.jsx)(x.z,{children:null!==(P=null==I?void 0:I.button_label)&amp;&amp;void 0!==P?P:(0,t.jsx)(D,{})})})]}),("live_training"===I.type||"donation"===I.type)&amp;&amp;(0,t.jsxs)(f.x,{className:"metadata-group",children:[I.start_date&amp;&amp;(0,t.jsxs)(S.Z,{spacing:5,className:"metadata-group--item",children:[(0,t.jsx)(o.x,{size:"sm",weight:"bold",children:"Start Date:"}),(0,t.jsx)(o.x,{size:"sm",children:(0,F.p6d)(null==I?void 0:I.start_date)})]}),I.end_date&amp;&amp;(0,t.jsxs)(S.Z,{spacing:5,className:"metadata-group--item",children:[(0,t.jsx)(o.x,{size:"sm",weight:"bold",children:"End Date:"}),(0,t.jsx)(o.x,{size:"sm",children:(0,F.p6d)(null==I?void 0:I.end_date)})]})]}),"live_event"===I.type&amp;&amp;(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(f.x,{className:"metadata-group",children:[(0,t.jsxs)(S.Z,{spacing:5,className:"metadata-group--item",children:[(0,t.jsx)(o.x,{size:"sm",weight:"bold",children:"Event Date:"}),(0,t.jsx)(o.x,{size:"sm",children:(0,F.p6d)(null==I?void 0:I.start_date)})]}),(0,t.jsxs)(S.Z,{spacing:5,className:"metadata-group--item",children:[(0,t.jsx)(o.x,{size:"sm",weight:"bold",children:"Start Time:"}),(0,t.jsx)(o.x,{size:"sm",children:(0,F.p6d)(null==I?void 0:I.start_date,"hh:mm a")})]})]}),(0,t.jsx)(f.x,{className:"metadata-group",children:(0,t.jsxs)(S.Z,{spacing:5,className:"metadata-group--item",children:[(0,t.jsx)(o.x,{size:"sm",weight:"bold",children:"Duration"}),(0,t.jsxs)(o.x,{size:"sm",children:[null!==(N=I.duration)&amp;&amp;void 0!==N?N:"0 Min"," Hour(s)"]})]})})]}),"mentorship"===I.type&amp;&amp;(0,t.jsxs)(f.x,{className:"metadata-group",children:[(0,t.jsxs)(S.Z,{spacing:5,className:"metadata-group--item",children:[(0,t.jsx)(o.x,{size:"sm",weight:"bold",children:"Time Zone:"}),(0,t.jsxs)(o.x,{size:"sm",children:[null!==(A=null==I?void 0:I.time_zone)&amp;&amp;void 0!==A?A:"N/A"," "]})]}),(0,t.jsxs)(S.Z,{spacing:5,className:"metadata-group--item",children:[(0,t.jsx)(o.x,{size:"sm",weight:"bold",children:"Duration:"}),(0,t.jsx)(o.x,{size:"sm",children:"".concat(I.time_slot_per_session||"0","Mins")})]})]}),(0,t.jsxs)(S.Z,{spacing:5,className:"metadata-group--item",children:[(0,t.jsx)(D,{}),(0,t.jsx)(D,{})]}),(0,t.jsxs)(S.Z,{spacing:5,className:"metadata-group--item",children:[(0,t.jsx)(D,{}),(0,t.jsx)(D,{})]}),(0,t.jsx)("br",{})]}),(0,t.jsx)(f.x,{className:"split-right",children:(0,t.jsx)(f.x,{className:"split-right--image",style:{width:"300px"},children:(0,t.jsx)(Z.M,{product:I})})})]})})})},R=e=&gt;{var i,n;let{product:r}=e,{width:l}=(0,w.n)(),a=l&lt;=768,s=[{value:"product-details",label:"Product Details"}].filter(e=&gt;{var i;return(null==r?void 0:r.type)==="digital"?"resources"!==e.value&amp;&amp;"projects"!==e.value:(null==r?void 0:null===(i=r.product_attachments)||void 0===i?void 0:i.length)!==0||"resources"!==e.value}),d=null==r?void 0:null===(i=r.additional_description)||void 0===i?void 0:i.replace(/&lt;[^&gt;]*&gt;?/gm,""),c=s.filter(e=&gt;{var i,n;return"resources"===e.value?(null==r?void 0:null===(i=r.product_attachments)||void 0===i?void 0:i.length)&gt;0:"projects"===e.value?(null==r?void 0:null===(n=r.assigned_projects)||void 0===n?void 0:n.length)&gt;0:(e.value,!0)});null==r||null===(n=r.product_attachments)||void 0===n||n.filter(e=&gt;"link"===e.attachment_type);let{classes:u}=(0,z.p)(),{classes:p}=(0,C.s)();return(0,t.jsxs)(f.x,{className:u.wrapper,children:[(0,t.jsx)(M,{product:r}),(0,t.jsx)(f.x,{className:"wrapper",children:(0,t.jsxs)(b.r,{gutter:"md",children:[(0,t.jsx)(b.r.Col,{span:a?12:7,children:(0,t.jsxs)(j.m,{variant:"pills",defaultValue:"product-details",classNames:p,children:[(0,t.jsx)(j.m.List,{px:"sm",children:null==c?void 0:c.map(e=&gt;(0,t.jsx)(j.m.Tab,{value:e.value,children:e.label},e.value))}),(0,t.jsx)(j.m.Panel,{value:"product-details",py:"sm",pl:"sm",children:(0,t.jsx)(k.lM,{mah:300,scrollbarSize:0,children:(null==d?void 0:d.length)&gt;0?(0,t.jsx)(y.M,{html:null==r?void 0:r.additional_description,style:{fontSize:"70% "}}):(0,t.jsx)(o.x,{size:"sm",align:"center",sx:{width:"100%"},children:"No available product details. Check back another time, champ. \uD83D\uDE4C"})})})]})}),(0,t.jsx)(b.r.Col,{span:a?12:5})]})})]})};var P=n(56947),N=n(18408);let A=e=&gt;{var i,n,f,b;let{product:j}=e,[,,,y,w]=(0,P.v)("product-type"),C="live_training"===j.type&amp;&amp;(null===(i=j.timeline)||void 0===i?void 0:i.some(e=&gt;(null==e?void 0:e.day)!=="")),k=(0,r.rZ)(),z=(0,g.useRef)(null),S=null===(n=j.timeline)||void 0===n?void 0:n.reduce((e,i)=&gt;((null==i?void 0:i.day)&amp;&amp;(e[i.day]||(e[i.day]=[]),e[i.day].push(i)),e),{});return(0,t.jsxs)(l.K,{spacing:0,pos:"relative",mah:750,sx:{overflow:"hidden",width:"100%"},children:[(0,t.jsx)(o.x,{size:"md",fw:"bold",display:{base:"none",sm:"block"},children:"Preview of Sales Landing Page"}),(0,t.jsx)(_.g,{}),(0,t.jsx)(R,{product:j}),C&amp;&amp;(0,t.jsxs)(a.X,{p:"md",radius:"md",pos:"absolute",top:"50%",right:"30%",children:[(0,t.jsx)(o.x,{size:"md",weight:"bolder",pb:"sm",children:"My Training Schedule"}),(0,t.jsx)(s.x.Autosize,{mah:200,children:(0,t.jsx)(d.M,{cols:2,breakpoints:[{maxWidth:"sm",cols:2,spacing:"md"}],bg:"#f6f6f6",p:"sm",children:Object.keys(S).map((e,i)=&gt;(0,t.jsxs)("div",{children:[(0,t.jsx)(o.x,{size:"sm",weight:"bold",children:e}),S[e].map((e,i)=&gt;(0,t.jsxs)(o.x,{size:"sm",weight:"normal",children:[(0,t.jsx)(N.q,{date:null==e?void 0:e.unix_start_time})," -",(0,t.jsx)(N.q,{date:null==e?void 0:e.unix_end_time})]},i)).slice(0,1)]},i))})})]}),"additional-checkout-details"===w&amp;&amp;(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.ZP,{target:z,draggable:!0,origin:!0,throttleDrag:1,edgeDraggable:!1,startDragRotate:0,throttleDragRotate:0,onDrag:e=&gt;{e.target.style.transform=e.transform},show:!0,onResize:e=&gt;{e.target.style.width="".concat(e.width,"px"),e.target.style.height="".concat(e.height,"px"),e.target.style.transform=e.drag.transform}}),(0,t.jsx)(a.X,{ref:z,w:{base:"40%",md:"40%"},pos:"absolute",top:"40%",left:"50%",className:"target",children:"invoice"===j.checkout_type?(0,t.jsxs)(c.Z,{style:{transition:"all linear 300ms"},w:"100%",children:[(0,t.jsx)(o.x,{fw:600,size:"md",children:"Invoice Payment"}),(0,t.jsx)(o.x,{size:"sm",children:"No Preview"})]}):(0,t.jsxs)(a.X,{w:"100%",shadow:"md",p:"sm",sx:{transition:"all linear 300ms",height:"100%",margin:"auto"},children:[(0,t.jsx)(o.x,{size:"sm",weight:"bold",mb:"sm",children:"Register For This Course"}),(0,t.jsxs)(u.k,{direction:"column",gap:"sm",children:[(0,t.jsx)(p.o,{size:"xs",placeholder:"Enter Email Address...",readOnly:!0,withAsterisk:!0,label:"Email Address"}),(0,t.jsx)(p.o,{size:"xs",placeholder:"Enter Full Name...",readOnly:!0,withAsterisk:!0,label:"Full name"}),(null===(f=j.checkout_details)||void 0===f?void 0:f.user_country)&amp;&amp;(0,t.jsx)(p.o,{size:"xs",placeholder:"Enter Country...",readOnly:!0,withAsterisk:!0,label:"Enter country"}),j.checkout_details.user_phone_number&amp;&amp;(0,t.jsx)(p.o,{size:"xs",placeholder:"Enter Phone number...",readOnly:!0,withAsterisk:!0,label:"Enter Phone number"}),(0,t.jsx)(p.o,{size:"xs",placeholder:"Enter Card details...",readOnly:!0,withAsterisk:!0,label:"Card Details"}),(0,t.jsx)(h.X,{size:"xs",label:(0,t.jsxs)(o.x,{size:"xs",span:!0,children:["I agree with the below and I have read Khaime’s"," ",(0,t.jsx)(m.e,{style:{textDecoration:"underline"},href:"https://www.khaime.com/terms-and-conditions",target:"_blank",weight:"bold",sx:{textDecoration:"underline"},children:"terms and conditions"})]})}),j.show_disclaimer&amp;&amp;(0,t.jsx)(a.X,{sx:{background:null===(b=k.colors)||void 0===b?void 0:b[k.primaryColor][1]},p:"sm",children:(0,t.jsx)(o.x,{size:"xs",children:j.disclaimer})}),(0,t.jsx)(x.z,{size:"xs",children:"Proceed to Checkout"})]})]})})]})]})}},40901:function(e,i,n){n.d(i,{z:function(){return K},M:function(){return W}});var t=n(11527),r=n(93346),l=n(48431),o=n(5227),a=n(2370),s=n(50959),d=n(94180),c=n.n(d),u=n(19955),p=n(90038),h=n(22474),m=n(42263),x=n(58928),v=n(62408),g=n(14489),_=n(8485),f=n(28900),b=n(89242),j=n.n(b),y=n(60475),w=n(72250),C=n(92578),k=n(84606),z=n(23821),S=n(77076);function E(){let e=(0,g._)(["\n  padding: 0 5px;\n  display: flex;\n  align-items: center;\n  /* margin-top: -50px; */\n  bottom: 0px;\n  min-height: 3rem;\n  min-width: 15rem;\n  width: 100%;\n  cursor: pointer;\n  opacity: ",";\n  opacity: 1;\n  background-color: rgba(0, 0, 0, 0.616);\n  transition: opacity 0.2s ease-in-out;\n  position: relative;\n  @media (min-width: 768px) {\n    min-width: 48rem;\n  }\n"]);return E=function(){return e},e}function L(){let e=(0,g._)(["\n  display: flex;\n  gap: ","rem;\n  align-items: center;\n\n  width: auto;\n  padding: 0 10px;\n"]);return L=function(){return e},e}function F(){let e=(0,g._)(["\n  &amp;[type='range'] {\n    -webkit-appearance: none;\n    background: transparent;\n    width: 100%;\n    margin: 0 5px;\n    &amp;:focus {\n      outline: none;\n    }\n    &amp;::-webkit-slider-runnable-track {\n      width: 100%;\n      height: 2px;\n      cursor: pointer;\n      box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);\n      background: rgba(255, 255, 255, 0.8);\n      border-radius: 1.3px;\n      border: 0.2px solid rgba(1, 1, 1, 0);\n    }\n    &amp;::-webkit-slider-thumb {\n      height: 13px;\n      width: 13px;\n      border-radius: 50px;\n      background: #ffc600;\n      cursor: pointer;\n      -webkit-appearance: none;\n      margin-top: -6.5px;\n      box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);\n    }\n    &amp;:focus::-webkit-slider-runnable-track {\n      background: #bada55;\n    }\n    &amp;::-moz-range-track {\n      width: 100%;\n      height: 8.4px;\n      cursor: pointer;\n      box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);\n      background: #ffffff;\n      border-radius: 1.3px;\n      border: 0.2px solid rgba(1, 1, 1, 0);\n    }\n    &amp;::-moz-range-thumb {\n      box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0);\n      height: 15px;\n      width: 15px;\n      border-radius: 50px;\n      background: #ffc600;\n      cursor: pointer;\n    }\n  }\n"]);return F=function(){return e},e}function Z(){let e=(0,g._)(["\n  background-color: transparent;\n  border: none;\n  outline: none;\n  cursor: pointer;\n  padding: 0.3rem;\n  margin: 0;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  height: 100%;\n  /* width: 50px; */\n  transition: all 0.2s ease-in-out;\n  border-radius: 5px;\n  &amp;:hover {\n    background-color: #ffc600;\n    svg {\n      transform: scale(1.2);\n    }\n  }\n"]);return Z=function(){return e},e}let D=()=&gt;(0,t.jsx)(f.JO,{icon:"bx:play",fontSize:22,color:"#fff"}),M=()=&gt;(0,t.jsx)(f.JO,{icon:"bx:bx-pause",fontSize:22,color:"#fff"}),R=()=&gt;(0,t.jsx)(f.JO,{icon:"bxs:volume",fontSize:18,color:"#fff"}),P=()=&gt;(0,t.jsx)(f.JO,{icon:"bx:bx-fullscreen",fontSize:22,color:"#fff"});_.Z.div(E(),e=&gt;{let{isHovered:i}=e;return i?1:0});let N=_.Z.div(L(),e=&gt;{let{gap:i}=e;return i||0}),A=_.Z.input(F()),I=_.Z.button(Z()),H=e=&gt;{var i,n;let{isPlaying:r,onPlayPauseClick:a,onReplayClick:d,onMaximizeClick:c,onSettingsClick:u,onVolumeChange:p,volume:h,progress:m,handleSeekMouseDown:x,handleSeekChange:v,handleSeekMouseUp:g,alwaysShowControls:_,hideControls:f,onBackWord:b,onForward:E,headerName:L,videoTitle:F,videoPlayerRef:Z}=e,[H,B]=(0,s.useState)(!1);function T(e){let i=Math.floor(e/3600);return"".concat(i&gt;1?"".concat(i,":"):"").concat(Math.floor(e%3600/60).toString().padStart(2,"0"),":").concat(Math.floor(e%60).toString().padStart(2,"0"))}let[U,O]=(0,s.useState)(!1),[K,W]=(0,s.useState)(!1),V=(0,k.O)(()=&gt;W(!1));return(0,t.jsxs)(o.x,{sx:{alignItems:"center",padding:"5px 5px",width:"100%",bottom:"0px",minHeight:"3rem",minWidth:"3rem",background:" linear-gradient(180deg, rgba(2,0,36,0) 10%, rgba(0,0,0,0.7847514005602241) 57%, rgba(0,0,0,0.7847514005602241) 68%)",position:"absolute"},children:[(0,t.jsx)(l.x,{children:(0,z.j)(L)}),(0,t.jsxs)(y.k,{justify:"space-between",children:[(0,t.jsx)(l.x,{mb:"md",fz:"md",color:"#BBBBBB",children:(0,z.j)(F)}),(0,t.jsx)(w.Z,{children:(0,t.jsxs)(l.x,{mb:"md",fz:"md",color:"#BBBBBB",children:[T(null===(i=Z.current)||void 0===i?void 0:i.getCurrentTime())," /"," ",T(null===(n=Z.current)||void 0===n?void 0:n.getDuration())]})})]}),(0,t.jsx)(y.k,{mb:"md",justify:"center",children:(0,t.jsx)(A,{type:"range",min:0,max:.999999,step:"any",value:m,onMouseDown:x,onChange:v,onMouseUp:g})}),(0,t.jsxs)(y.k,{justify:"space-between",children:[(0,t.jsxs)(w.Z,{children:[!(null==f?void 0:f.includes("playPause"))&amp;&amp;(0,t.jsx)(I,{onClick:a,children:r?(0,t.jsx)(M,{}):(0,t.jsx)(D,{})}),(0,t.jsx)(I,{onClick:b,children:(0,t.jsx)(j(),{width:35,height:35,alt:"",src:S.Z.backwardskip})}),(0,t.jsx)(I,{onClick:E,children:(0,t.jsx)(j(),{width:35,height:35,alt:"",src:S.Z.forwardskip})})]}),(0,t.jsxs)(N,{children:[(0,t.jsxs)(C.J,{width:200,position:"bottom",withArrow:!0,shadow:"md",children:[(0,t.jsx)(C.J.Target,{children:(0,t.jsx)(I,{onClick:()=&gt;{O(!U),p(0===h?1:0)},children:(0,t.jsx)(R,{})})}),(0,t.jsx)(C.J.Dropdown,{style:{backgroundColor:"#000"},children:(0,t.jsx)(A,{ref:V,type:"range",min:0,max:1,step:"any",value:h,onChange:e=&gt;p(Number(e.target.value))})})]}),(0,t.jsx)(I,{onClick:c,children:(0,t.jsx)(P,{})})]})]})]})},B=e=&gt;{let{videoPlayerState:i,setVideoPlayerState:n,activeLessonUrl:r,onEnded:l,withCustomControls:a,ref:d,setRef:g,activeLessonTracking:_,...f}=e,b=(0,s.useRef)(null),[j,y]=(0,s.useState)(!1),w=(0,u.Y)(d,b),[C,k]=(0,p.C)({value:i,defaultValue:{playing:!1,played:0,isSeeking:!1,volume:.5,muted:!1,playedSeconds:0,loaded:0,playbackRate:1},finalValue:i,onChange:n});(0,s.useEffect)(()=&gt;{},[r]);let[z,S]=(0,s.useState)(!1),E=()=&gt;{(0,v.dK)(z)};(0,s.useEffect)(()=&gt;{let e=()=&gt;{S(!!(0,v.Zl)())};return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=&gt;{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}},[]);let L=()=&gt;{k({...C,isSeeking:!1}),b.current&amp;&amp;b.current.seekTo&amp;&amp;(b.current.seekTo(b.current.getCurrentTime()-15,"seconds"),k({...C,played:b.current.getCurrentTime()-15,playing:!0}))},F=()=&gt;{k({...C,isSeeking:!1}),b.current&amp;&amp;b.current.seekTo&amp;&amp;(b.current.seekTo(b.current.getCurrentTime()+10,"seconds"),k({...C,played:b.current.getCurrentTime()+10,playing:!0}))},Z=(0,x.getCookie)("vidioId");(0,s.useEffect)(()=&gt;{Z!==(null==f?void 0:f.videoId)&amp;&amp;y(!1)},[null==f?void 0:f.videoId]);let[D,M]=(0,s.useState)(!1);return(0,t.jsxs)(o.x,{onMouseEnter:()=&gt;M(!0),onMouseLeave:()=&gt;M(!1),id:"full-screen-element",bg:"#000000",children:[(0,t.jsx)(h.o,{ratio:16/9,mah:z?"100%":650,children:(0,t.jsx)(c(),{ref:w,url:r,onEnded:l,onReady:()=&gt;{if((null==b?void 0:b.current)&amp;&amp;(null==b?void 0:b.current.seekTo)&amp;&amp;!j){var e,i,n;(0,x.setCookie)("vidioId",null==f?void 0:f.videoId),null==b||null===(e=b.current)||void 0===e||e.seekTo(null!==(i=null==_?void 0:_.secs_watched)&amp;&amp;void 0!==i?i:0,"seconds"),k({...C,played:null!==(n=null==_?void 0:_.secs_watched)&amp;&amp;void 0!==n?n:0,isSeeking:!1}),y(!0)}},width:"100%",height:"100%",playing:C.playing,volume:C.volume,onProgress:e=&gt;{C.isSeeking||k({...C,...e})},...f})}),a&amp;&amp;(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(m.u,{mounted:D,transition:"slide-down",duration:1e3,timingFunction:"ease",children:e=&gt;(0,t.jsx)(o.x,{style:{...e,zIndex:1},children:(0,t.jsx)(H,{videoPlayerRef:b,headerName:f.headerName,videoTitle:f.videoTitle,onBackWord:L,onForward:F,onSettingsClick:()=&gt;b.current,onMaximizeClick:E,onReplayClick:()=&gt;{var e;null===(e=b.current)||void 0===e||e.seekTo(0)},onPlayPauseClick:()=&gt;k({...C,playing:!C.playing}),isPlaying:C.playing,onVolumeChange:e=&gt;k({...C,volume:e}),volume:C.volume,progress:C.played,handleSeekChange:e=&gt;{k({...C,played:parseFloat(e.target.value)})},handleSeekMouseDown:()=&gt;{k({...C,isSeeking:!0})},handleSeekMouseUp:e=&gt;{var i;k({...C,played:parseFloat(e.target.value),isSeeking:!1}),null===(i=b.current)||void 0===i||i.seekTo(parseFloat(e.target.value))}})})})})]})};var T=n(13348),U=n(11603);let O=()=&gt;(0,t.jsx)(r.X,{h:230,pos:"relative",bg:"#F6F6F6",sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,t.jsx)(l.x,{size:"sm",align:"center",weight:"bolder",color:"dark.5",children:"No Preview Available"})}),K=e=&gt;{var i;let{url:n,editMode:r,styles:l}=e,s=(0,U.useRouter)(),d=r||(null===(i=s.query)||void 0===i?void 0:i.mode)==="edit";return(0,t.jsx)(o.x,{sx:{overflow:"hidden",backgroundColor:"transparent"},children:(0,t.jsx)(a.E,{style:l,src:n,width:"100%",height:d?230:443,fit:"contain",radius:"md"})})},W=e=&gt;{let{product:i}=e,n="video"===(0,T.l$L)(null==i?void 0:i.preview_url);(0,U.useRouter)();let[r,l]=(0,s.useState)(null);switch(i.preview_type){case"video":return(null==i?void 0:i.preview_url)||i.thumbnail?(0,t.jsx)(B,{ref:r,setRef:l,url:null==i?void 0:i.preview_url,width:"100%",withCustomControls:!0}):(0,t.jsx)(O,{});case"image":default:return(null==i?void 0:i.preview_url)||i.thumbnail?(0,t.jsx)(K,{url:(null==i?void 0:i.preview_url)||i.thumbnail}):(0,t.jsx)(O,{});case"link":var o;return(null==i?void 0:i.preview_url)||i.thumbnail?n?(0,t.jsx)(B,{ref:r,setRef:l,url:null==i?void 0:i.preview_url,width:"100%",withCustomControls:!0}):(0,t.jsx)(K,{url:null!==(o=null==i?void 0:i.preview_url)&amp;&amp;void 0!==o?o:i.thumbnail}):(0,t.jsx)(O,{});case"none":return i.thumbnail?(0,t.jsx)(K,{url:i.thumbnail}):(0,t.jsx)(O,{})}}},18408:function(e,i,n){n.d(i,{q:function(){return l}});var t=n(11527),r=n(13348);function l(e){let{date:i}=e,n=(0,r.p6d)(i,"hh:mm a");return(0,t.jsx)("span",{children:n})}},70470:function(e,i,n){n.d(i,{p:function(){return t}});let t=(0,n(38534).k)(e=&gt;({wrapper:{display:"flex",flexDirection:"column",width:"100%",margin:"0",padding:0,gap:"1rem","@page":{size:"landscape"},backgroundColor:"#FAFAFA",[e.breakpoints.sm]:{flexDirection:"column"},"&amp; .split":{"&amp; .wrapper":{display:"grid",gridTemplateColumns:"2fr 1fr",alignItems:"center",width:"100%",minHeight:"300px",backgroundColor:"#fff",["@media (max-width: ".concat(e.breakpoints.sm,")")]:{display:"flex",flexDirection:"column",width:"100%"},"&amp; .split-left":{display:"flex",flexDirection:"column",gap:"1rem",flex:1,padding:"2rem",paddingBottom:"2rem",backgroundColor:"#fff",overflow:"hidden",position:"relative",["@media (max-width: ".concat(e.breakpoints.sm,")")]:{paddingTop:"1rem",paddingRight:"1rem",width:"100%"},"&amp; .split-left--title":{maxWidth:"70%",textTransform:"capitalize",overflow:"hidden",wordWrap:"break-word",["@media (max-width: ".concat(e.breakpoints.sm,")")]:{maxWidth:"100%"}},"&amp; .action-button--wrapper":{maxWidth:"30rem",display:"flex",flexDirection:"row",gap:"1rem",paddingBottom:"1.5rem",["@media (max-width: ".concat(e.breakpoints.sm,")")]:{width:"100% ",justifyContent:"center",flexDirection:"column"}},"&amp; .metadata-group":{display:"grid",gridTemplateColumns:"repeat(2, 255px)",rowGap:"1.5rem",backgroundColor:"#fff",["@media (max-width: ".concat(e.breakpoints.sm,")")]:{gridTemplateColumns:"repeat(2, 1fr)"},"&amp; .metadata-group--item":{}}},"&amp; .split-right":{position:"relative",backgroundColor:"#fff",margin:"0",marginRight:"-4rem",height:"100%",["@media (max-width: ".concat(e.breakpoints.sm,")")]:{width:"100%",backgroundColor:"transparent",paddingBottom:"2rem",marginRight:"0"},"&amp; .split-right--image":{left:"-40%",top:"15%",position:"absolute",objectFit:"contain",width:"400px",borderRadius:"1rem !important",overflow:"hidden",["@media (max-width: ".concat(e.breakpoints.sm,")")]:{left:"0",top:"0",bottom:"0",position:"static",width:"100%",height:"100%"}},"&amp; .product-details__image":{width:"100%",height:"100%",objectFit:"cover"}}}}},productLists:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",alignItems:"center",width:"100%",gap:"1rem","@media (max-width: 1550px)":{gridTemplateColumns:"repeat(4, 1fr)"},["@media (max-width:".concat(e.breakpoints.md,")")]:{gridTemplateColumns:"repeat(3, 1fr)"},["@media (max-width:".concat(e.breakpoints.sm,")")]:{flexDirection:"column",gridTemplateColumns:"repeat(3, 1fr)"},["@media (max-width:".concat(e.breakpoints.xs,")")]:{flexDirection:"column",gridTemplateColumns:"repeat(2, 1fr)"},["@media (max-width:".concat(380,"px)")]:{flexDirection:"column",gridTemplateColumns:"repeat(1, 1fr)"}},productCard:{width:"30%",["@media (max-width:".concat(e.breakpoints.sm,")")]:{width:"100%",marginBottom:"20px"}}}))},56947:function(e,i,n){n.d(i,{v:function(){return r}});var t=n(11603);function r(e){let{query:i}=(0,t.useRouter)(),n=i[e];return Array.isArray(n)?[n].flat()||[]:null!=n?n:""}},52567:function(e,i,n){n.d(i,{Kb:function(){return a},xY:function(){return u},ac:function(){return o}});var t=n(60930),r=n(15733),l=n(50959);function o(){let e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",[i,n]=l.useState([]),[o,a]=l.useState([]),[s,d]=l.useState([]),[c,u]=l.useState([]),[p,h]=l.useState([]);return(0,l.useEffect)(()=&gt;{let e=t.Z.getAllCountries().map(e=&gt;({countryCode:e.isoCode,flag:e.flag,label:e.name,phoneCode:e.phonecode,isoCode:e.isoCode,value:e.name.toLowerCase()}));n(e),a(e.map(e=&gt;{let{label:i,value:n}=e;return{label:i,value:n}})),d(e.map(e=&gt;{let{label:i,isoCode:n}=e;return{label:i,value:n.toUpperCase()}}))},[]),(0,l.useEffect)(()=&gt;{if(e){let n=i.find(i=&gt;i.value.toLowerCase()===e.toLowerCase());n?u(r.ZP.getStatesOfCountry(n.countryCode).map(e=&gt;({label:e.name,value:e.name.toLowerCase()}))):u([])}},[e,i]),(0,l.useEffect)(()=&gt;{if(e){let n=i.find(i=&gt;i.isoCode.toLowerCase()===e.toLowerCase());n?h(r.ZP.getStatesOfCountry(n.countryCode).map(e=&gt;({label:e.name,value:e.isoCode.toUpperCase()}))):h([])}},[e,i]),{countries:i,states:c,dropDownCountries:o,isoStates:p,dropDownIsoCountries:s}}function a(e){let i=t.Z.getAllCountries(),n=i.find(i=&gt;i.isoCode===e),o=(0,l.useMemo)(()=&gt;n?r.ZP.getStatesOfCountry(n.isoCode).map(e=&gt;{var i;return{label:e.name,value:null===(i=e.name)||void 0===i?void 0:i.toLowerCase()}}):[],[n,e]);return{country:n,countries:i,states:o}}var s=n(1163);let d=["Nigeria","Ghana","South Africa","Kenya"],c=["NGN","GHS","ZAR","KES"];function u(e,i){let[n,t]=(0,l.useState)([]);return(0,l.useEffect)(()=&gt;{switch(i){case"paystack":{let e=Object.keys(s).map(e=&gt;s[e].currency_code).filter(e=&gt;c.includes(e));t(()=&gt;[...e]);break}case"stripe":{let e=Object.keys(s).map(e=&gt;s[e].currency_code).filter(e=&gt;!c.includes(e));t(()=&gt;[...e]);break}default:t([])}},[e,i]),n}Object.keys(s).map(e=&gt;s[e].country_full_name).filter(e=&gt;!d.includes(e))},90227:function(e,i,n){n.d(i,{Hl:function(){return a},KY:function(){return o},hH:function(){return t},o8:function(){return l},rn:function(){return r},sC:function(){return s}});let t={educator_standard:"Educator Standard",educator_pro:"Educator Pro",business_standard:"Business Standard",business_pro:"Business Pro"},r={live_training:"Live Training",live_event:"Live Event",self_pace_training:"Self-Paced Training",mentorship:"Mentorship",consultation:"Consultation",e_book:"E-Book",digital:"Digital Product",goods:"Goods/Items",services:"Services"},l=[{maxWidth:"xs",cols:2},{maxWidth:"sm",cols:2},{maxWidth:"md",cols:3},{maxWidth:"lg",cols:3},{maxWidth:"xl",cols:4}],o={Sunday:"7",Monday:"1",Tuesday:"2",Wednesday:"3",Thursday:"4",Friday:"5",Saturday:"6"},a={"application/json":[".ipynb"],"application/pdf":[".pdf"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/msword":[".doc"],"application/vnd.ms-excel":[".xls",".xlsx"],"application/vnd.ms-powerpoint":[".ppt",".pptx"],"application/vnd.ms-outlook":[".msg"],"application/vnd.ms-access":[".mdb"],"application/vnd.ms-project":[".mpp"],"application/vnd.ms-publisher":[".pub"],"application/vnd.ms-visio.drawing":[".vsd",".vsdx"],"application/vnd.ms-excel.sheet.macroEnabled.12":[".xlsm"],"image/jpeg":[".jpeg",".jpg"],"image/png":[".png"],"image/gif":[".gif"],"text/csv":[".csv"],"text/plain":[".txt"],"text/html":[".html"],"text/css":[".css"],"text/javascript":[".js"],"text/x-python":[".py"],"text/sql":[".sql"]},s=[{key:"ecommerce",name:"Sell goods and items",templates:[{name:"Afya",imageSrc:"/section-template-images/fashion-ecommerce/full-site/afya/home.webp"},{name:"Yewa",imageSrc:"/section-template-images/ecommerce/full-site/yewa/home.webp"},{name:"Alate",imageSrc:"/section-template-images/ecommerce/full-site/alate/home.webp"}],iconSrc:"/images/sell-goods.png"},{key:"edtech",name:"Teach or coach people",templates:[{name:"Jifunze",imageSrc:"/section-template-images/ed-tech/full-site/jifunze/home.webp"},{name:"Faniko",imageSrc:"/section-template-images/ed-tech/full-site/faniko/home.webp"},{name:"Ukuza",imageSrc:"/section-template-images/ed-tech/full-site/ukuza/home.webp"}],iconSrc:"/images/teach-people.png"},{key:"restaurant",name:"Own a restaurant or caf\xe9",templates:[{name:"Udia",imageSrc:"/section-template-images/restaurant/full-site/udia/home.webp"},{name:"Shito",imageSrc:"/section-template-images/restaurant/full-site/shito/home.webp"},{name:"Jollof",imageSrc:"/section-template-images/restaurant/full-site/jollof/home.webp"}],iconSrc:"/images/restaurant.png"},{key:"consulting",name:"Run a consulting company",templates:[{name:"Nia",imageSrc:"/section-template-images/consulting/full-site/nia/home.webp"},{name:"Jengo",imageSrc:"/section-template-images/consulting/full-site/jengo/home.webp"},{name:"Tuma",imageSrc:"/section-template-images/consulting/full-site/tuma/home.webp"}],iconSrc:"/images/consulting.png"},{key:"real_estate",name:"Real Estate Business",templates:[{name:"Baraka",imageSrc:"/section-template-images/real-estate/full-site/baraka/home.webp"},{name:"Kijiji",imageSrc:"/section-template-images/real-estate/full-site/kijiji/home.webp"},{name:"Eneo",imageSrc:"/section-template-images/real-estate/full-site/eneo/home.webp"}],iconSrc:"/images/real-estate.png"},{key:"art",name:"Create art or entertainment",templates:[{name:"Ekwe",imageSrc:"/section-template-images/music-band/full-site/ekwe/home.webp"},{name:"Orin",imageSrc:"/section-template-images/music-band/full-site/orin/home.webp"}],iconSrc:"/images/create-art.png"},{key:"event",name:"Other Type of Categories",templates:[{name:"Amara",imageSrc:"/section-template-images/event-planning/full-site/amara/home.webp"},{name:"Isilio",imageSrc:"/section-template-images/event-planning/full-site/isililo/home.webp"},{name:"Thabisa",imageSrc:"/section-template-images/event-planning/full-site/thabisa/home.webp"}],iconSrc:"/images/searching.png"},{key:"fitness",name:"Help people stay healthy",templates:[{name:"Amani",imageSrc:"/section-template-images/fitness/full-site/amani/home.webp"},{name:"Nyoga",imageSrc:"/section-template-images/fitness/full-site/nyoga/home.webp"},{name:"Orji",imageSrc:"/section-template-images/fitness/full-site/orji/home.webp"}],iconSrc:"/images/fitness.png"},{key:"services",name:"Offer services or contents",templates:[{name:"Gwanin",imageSrc:"/section-template-images/service-provider/full-site/gwanin/home.webp"},{name:"Hannu",imageSrc:"/section-template-images/service-provider/full-site/hannu/home.webp"},{name:"Haske",imageSrc:"/section-template-images/service-provider/full-site/haske/home.webp"}],iconSrc:"/images/services.png"}]},1163:function(e){e.exports=JSON.parse('{"US":{"currency_code":"USD","currency_symbol":"$","country_full_name":"United States"},"CA":{"currency_code":"CAD","currency_symbol":"$","country_full_name":"Canada"},"AT":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"Austria"},"BE":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"Belgium"},"DK":{"currency_code":"DKK","currency_symbol":"kr","country_full_name":"Denmark"},"FI":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"Finland"},"FR":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"France"},"DE":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"Germany"},"IE":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"Ireland"},"IT":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"Italy"},"LU":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"Luxembourg"},"NL":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"Netherlands"},"NO":{"currency_code":"NOK","currency_symbol":"kr","country_full_name":"Norway"},"PT":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"Portugal"},"ES":{"currency_code":"EUR","currency_symbol":"€","country_full_name":"Spain"},"SE":{"currency_code":"SEK","currency_symbol":"kr","country_full_name":"Sweden"},"CH":{"currency_code":"CHF","currency_symbol":"CHF","country_full_name":"Switzerland"},"GB":{"currency_code":"GBP","currency_symbol":"\xa3","country_full_name":"United Kingdom"},"AU":{"currency_code":"AUD","currency_symbol":"$","country_full_name":"Australia"},"HK":{"currency_code":"HKD","currency_symbol":"HK$","country_full_name":"Hong Kong"},"JP":{"currency_code":"JPY","currency_symbol":"\xa5","country_full_name":"Japan"},"NZ":{"currency_code":"NZD","currency_symbol":"$","country_full_name":"New Zealand"},"SG":{"currency_code":"SGD","currency_symbol":"$","country_full_name":"Singapore"},"BR":{"currency_code":"BRL","currency_symbol":"R$","country_full_name":"Brazil"},"NG":{"currency_code":"NGN","currency_symbol":"₦","country_full_name":"Nigeria"},"GH":{"currency_code":"GHS","currency_symbol":"GH₵","country_full_name":"Ghana"},"ZA":{"currency_code":"ZAR","currency_symbol":"R","country_full_name":"South Africa"},"KE":{"currency_code":"KES","currency_symbol":"KSh","country_full_name":"Kenya"}}')}}]);</pre></body></html>