1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8571],{79205:function(e,t,a){a.d(t,{Z:function(){return u}});var r=a(2265);let l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase()),i=e=>{let t=s(e);return t.charAt(0).toUpperCase()+t.slice(1)},n=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim()},o=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let d=(0,r.forwardRef)((e,t)=>{let{color:a="currentColor",size:l=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:d="",children:u,iconNode:p,...m}=e;return(0,r.createElement)("svg",{ref:t,...c,width:l,height:l,stroke:a,strokeWidth:i?24*Number(s)/Number(l):s,className:n("lucide",d),...!u&&!o(m)&&{"aria-hidden":"true"},...m},[...p.map(e=>{let[t,a]=e;return(0,r.createElement)(t,a)}),...Array.isArray(u)?u:[u]])}),u=(e,t)=>{let a=(0,r.forwardRef)((a,s)=>{let{className:o,...c}=a;return(0,r.createElement)(d,{ref:s,iconNode:t,className:n("lucide-".concat(l(i(e))),"lucide-".concat(e),o),...c})});return a.displayName=i(e),a}},79219:function(e,t,a){a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},70094:function(e,t,a){a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("images",[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]])},37760:function(e,t,a){a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},51817:function(e,t,a){a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},81555:function(e,t,a){a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]])},74767:function(e,t,a){a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},27648:function(e,t,a){a.d(t,{default:function(){return l.a}});var r=a(72972),l=a.n(r)},95342:function(e,t,a){var r=a(2265),l=a(68575);t.Z=e=>{let{bgPrimary:t,bgmain:a="",bgSecondary:s="",theme11:i}=e,n=(0,l.I0)();return(0,r.useEffect)(()=>{document.documentElement.style.setProperty("--active-bgSecondary",s),document.documentElement.style.setProperty("--active-bgmain",a),document.documentElement.style.setProperty("--active-bgPrimary",t),i&&document.documentElement.style.setProperty("--active-bgPrimary-theme11",t)},[t,a,s,n,i]),null}},1679:function(e,t,a){var r=a(57437),l=a(2265),s=a(40718),i=a.n(s),n=a(32233),o=a(70094),c=a(51817);let d="https://upload.on1tap.in",u="https://upload.on1tap.in",p=["lifestylewithsarah.com","transvelo.github.io","foodomaa.sgp1.cdn.digitaloceanspaces.com","i.postimg.cc","cdn.iconscout.com","shutterstock.com","rocareindia.com","firebasestorage.googleapis.com","cdn-icons-png.flaticon.com","cdn-icons-png.freepik.com","thursdaynightpizza.com","static.toiimg.com","images.unsplash.com"],m=["/assets","assets","/images","images","/img","img","/icons","icons","/static","static","/
1public","public","/fonts","fonts","/media","media","/svg","svg"],h=e=>{if(!e)return!1;let t=e.toLowerCase();if(t.includes("uploads/")||t.includes("uploads\\")||/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i.test(e)||/\d{13,}-[a-z0-9]+/i.test(e))return!0;if(/^[A-Za-z0-9_-]+\/[A-Za-z0-9_.-]+\.[a-z]{2,4}$/i.test(e)){let t=e.split("/")[0].toLowerCase();if(!m.map(e=>e.toLowerCase().replace("/","")).includes(t))return!0}if(/^[A-Za-z0-9_-]+\/[A-Za-z0-9_/-]+\.[a-z]{2,4}$/i.test(e)){let t=e.split("/")[0].toLowerCase();if(!m.map(e=>e.toLowerCase().replace("/","")).includes(t))return!0}return!1},f=e=>!!e&&m.some(t=>{let a=e.toLowerCase();return a.startsWith(t.toLowerCase())||a.startsWith("/".concat(t.toLowerCase()))}),b=e=>{if(!e||"string"!=typeof e)return e;let t=e.trim();if(t.startsWith("data:")||t.startsWith("blob:")||f(t))return t;if(t.startsWith("http://")||t.startsWith("https://"))try{let e=new URL(t);if("upload.on1tap.in"===e.hostname){if(e.pathname.startsWith("/uploads/"))return t;return"".concat(e.origin,"/uploads").concat(e.pathname)}if(u&&t.startsWith(u)||p.some(t=>e.hostname===t||e.hostname.includes(t)))return t;return"".concat(u,"/img_load?url=").concat(encodeURIComponent(t))}catch(e){return console.warn("Invalid URL:",t),t}if(!h(t))return t;if(t.startsWith("/uploads/"))return"".concat(d).concat(t);if(t.startsWith("uploads/"))return"".concat(d,"/").concat(t);let a=t.startsWith("/")?t.slice(1):t;return"".concat(d,"/uploads/").concat(a)},y=e=>{let{src:t,alt:a="image",className:s="",style:i,width:d,height:u,loading:p="lazy",onClick:m,onError:h,onLoad:f,fallback:y=null,autoplay:g=!0,loop:x=!0,showLoader:v=!0,objectFit:w="cover",...j}=e,[k,N]=(0,l.useState)(!1),[C,Z]=(0,l.useState)(!0),P=(0,l.useRef)(null),z=(0,l.useRef)(!0),E=b(t),L="string"==typeof t&&t&&(t.toLowerCase().includes(".lottie")||t.toLowerCase().endsWith(".json"));(0,l.useEffect)(()=>{z.current=!0,N(!1),Z(!0);let e=setTimeout(()=>{if(P.current){let e=P.current;e.complete&&e.naturalWidth>0&&z.current&&Z(!1)}},0);return()=>{z.current=!1,clearTimeout(e)}},[t,E]),(0,l.useEffect)(()=>{if(!L&&P.current){let e=P.current;e.complete&&e.naturalWidth>0&&Z(!1)}},[L]);let W=(0,l.useCallback)(e=>{z.current&&(N(!0),Z(!1)),null==h||h(e)},[h]),A=(0,l.useCallback)(e=>{z.current&&Z(!1),null==f||f(e)},[f]),_=(0,l.useCallback)(e=>{z.current&&(("error"===e||"loadError"===e)&&(N(!0),Z(!1)),("load"===e||"ready"===e||"complete"===e)&&Z(!1))},[]);return!k&&t&&E?L?(0,r.jsxs)("div",{className:"relative ".concat(s),style:i,onClick:m,role:"img","aria-label":a,children:[v&&C&&(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-100",children:(0,r.jsx)(c.Z,{className:"w-6 h-6 text-gray-400 animate-spin"})}),(0,r.jsx)(n.nI,{src:E,loop:x,autoplay:g,className:"w-full h-full",onEvent:_})]}):(0,r.jsxs)("div",{className:"relative ".concat(s),style:i,children:[v&&C&&!k&&(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-100 rounded-inherit z-10",children:(0,r.jsx)(c.Z,{className:"w-6 h-6 text-gray-400 animate-spin"})}),(0,r.jsx)("img",{ref:P,src:E,alt:a,className:"w-full h-full transition-opacity duration-300 ".concat(C?"opacity-0":"opacity-100"),style:{objectFit:w},width:d,height:u,loading:p,onClick:m,onError:W,onLoad:A,decoding:"async",...j})]}):y?"function"==typeof y?(0,r.jsx)(y,{className:s,onClick:m}):y:(0,r.jsx)("div",{className:"flex items-center justify-center bg-gray-100 text-gray-400 ".concat(s),style:{...i,objectFit:w},onClick:m,role:"img","aria-label":a,children:(0,r.jsx)(o.Z,{className:"w-1/2 h-1/2 max-w-[48px] max-h-[48px]"})})};y.propTypes={src:i().string,alt:i().string,className:i().string,style:i().object,width:i().oneOfType([i().string,i().number]),height:i().oneOfType([i().string,i().number]),loading:i().oneOf(["lazy","eager"]),onClick:i().func,onError:i().func,onLoad:i().func,fallback:i().oneOfType([i().elementType,i().node]),autoplay:i().bool,loop:i().bool,showLoader:i().bool,objectFit:i().oneOf(["cover","contain","fill","none","scale-down"])},t.default=y},38571:function(e,t,a){a.r(t),a.d(t,{default:function(){return T}});var r=a(57437),l=a(2265),s=a(99376),i=a(40718),n=a.n(i),o=a(30166),c=a(1679);let d=e=>{var t;let{shop:a,bgPrimary:l}=e,s=null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.poster,i="string"==typeof s,n=i&&(s.includes("youtube.com")||s.includes("youtu.be")||s.includes("youtube.com/embed/")),o=i&&(s.endsWith(".jpg")||s.endsWith(".jpeg")||s.endsWith(".png")||s.endsWith(".gif")),d=n?(e=>{var t,a;let r=null;if(e.includes("youtube.com/watch?v=")?r=new URL(e).searchParams.get("v"):e.includes("youtu.be/")?r=null===(t=e.split("youtu.be/")[1])||void 0===t?void 0:t.split("?")[0]:e.includes("youtube.com/embed/")&&(r=null===(a=e.split("embed/")[1])||void 0===a?void 0:a.split("?")[0]),!r)return null;let l="https://www.youtube.com/embed/".concat(r),s="autoplay=1&mute=1&rel=0&controls=0&loop=1&playlist=".concat(r);return"".concat(l,"?").concat(s)})(s):null;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("section",{className:"relative w-full h-full aspect-video",children:[n&&d&&(0,r.jsx)("iframe",{width:"100%",height:"100%",src:d,title:"YouTube video",frameBorder:"0",allow:"autoplay; encrypted-media; accelerometer; clipboard-write; gyroscope; picture-in-picture;
1 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0}),o&&(0,r.jsx)(c.default,{src:s,className:"object-cover w-full h-full aspect-video"}),(0,r.jsx)("div",{className:"absolute bottom-[-100px] lg:bottom-[-55px] border-t-2 -rotate-[10deg] border-dashed w-[110%] h-[130px] bg-white",style:{borderColor:"var(--active-bgPrimary)"}})]})})};d.propTypes={shop:n().shape({data:n().shape({poster:n().string,youtubeVideo:n().string})})};var u=a(64494),p=a(37760),m=a(79219),h=a(74767),f=a(81555),b=a(27648);let y={instagram:p.Z,facebook:m.Z,youtube:h.Z,whatsapp:f.Z},g={hidden:{opacity:0,y:30},visible:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{opacity:1,y:0,transition:{delay:.2*e,duration:.6,ease:"easeOut"}}}},x={hidden:{opacity:0,scale:.8},visible:e=>({opacity:1,scale:1,transition:{delay:.2*e,duration:.4,ease:"easeOut"}})},v=(0,l.memo)(e=>{let{shop:t,bgPrimary:a}=e,{business_image:s,business_name:i="Business Name",data:n,social:o}=t||{},{description:d}=n||{},p=(0,l.useMemo)(()=>null==o?void 0:o.map((e,t)=>{var a;let l=/^\d{7,15}$/.test(null==e?void 0:e.url),s=(null==e?void 0:e.url)||t,i=(null==e?void 0:e.title)||"Social Link",n=y[(null==e?void 0:null===(a=e.title)||void 0===a?void 0:a.toLowerCase().split(" ")[0])||"default"]||f.Z,o=l?"https://wa.me/".concat(null==e?void 0:e.url):(null==e?void 0:e.url)||"#";return(0,r.jsx)(u.E.div,{custom:t,variants:x,children:(0,r.jsx)(b.default,{prefetch:!0,href:o,target:"_blank",rel:"noopener noreferrer",className:"size-[45px] rounded-full flex justify-center items-center border-dashed border bg-white shadow-md hover:scale-105 transition-transform",style:{borderColor:"var(--active-bgPrimary)",color:"var(--active-bgPrimary)"},title:i,"aria-label":"Visit our ".concat(i," page"),children:(0,r.jsx)(n,{size:22})})},s)}),[o]);return(0,r.jsxs)(u.E.section,{className:"relative w-full px-5 md:px-[30px] mt-[-100px] sm:mt-[-125px]",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:g,children:[(0,r.jsxs)(u.E.div,{variants:g,custom:0,className:"relative z-10 items-center gap-4 pb-[25px] md:pb-[40px] flex flex-col sm:flex-row",children:[(0,r.jsx)("div",{className:"size-[150px] lg:size-[180px] min-w-[180px] border-[5px] rounded-[30px] bg-white custom_shadow overflow-hidden flex items-center justify-center",style:{borderColor:"var(--active-bgPrimary)"},children:(0,r.jsx)(c.default,{src:s,alt:"".concat(i," profile picture"),fill:!0,className:"w-full h-full object-cover",priority:!0})}),(0,r.jsx)("div",{className:"pt-[20px] sm:pt-[60px] pl-4 pr-4 pb-4 text-center",children:(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)(u.E.h2,{className:"mb-0 text-xl font-semibold text-center",variants:g,custom:1,style:{color:"#000"},children:i})})})]}),(0,r.jsx)(u.E.div,{variants:g,custom:3,className:"flex flex-wrap justify-center",children:(0,r.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-3",children:p})}),(0,r.jsx)(u.E.div,{className:"relative z-30 pt-6 pb-[25px] md:pb-10 mb-4 font-bold text-center text-[#212529] text-md",variants:g,custom:2,children:d})]})});v.displayName="Profiletheme",v.propTypes={shop:n().shape({business_image:n().string,business_name:n().string,data:n().shape({description:n().string}),social:n().arrayOf(n().shape({title:n().string,url:n().string}))}),bgPrimary:n().string.isRequired};var w=a(95342);let j=()=>(0,r.jsx)("div",{className:"w-full h-48"}),k=(0,o.default)(()=>a.e(2372).then(a.bind(a,32372)),{loadableGenerated:{webpack:()=>[32372]},loading:()=>(0,r.jsx)(j,{})}),N=(0,o.default)(()=>Promise.all([a.e(922),a.e(2564),a.e(7249)]).then(a.bind(a,47249)),{loadableGenerated:{webpack:()=>[47249]},loading:()=>(0,r.jsx)(j,{})}),C=(0,o.default)(()=>Promise.all([a.e(9912),a.e(2260),a.e(7699),a.e(922),a.e(9956),a.e(9026),a.e(2564),a.e(1017),a.e(4530),a.e(4889),a.e(1734)]).then(a.bind(a,71734)),{loadableGenerated:{webpack:()=>[71734]},loading:()=>(0,r.jsx)(j,{})}),Z=(0,o.default)(()=>Promise.all([a.e(9912),a.e(7699),a.e(922),a.e(9956),a.e(9026),a.e(2564),a.e(1301)]).then(a.bind(a,7216)),{loadableGenerated:{webpack:()=>[7216]},loading:()=>(0,r.jsx)(j,{})}),P=(0,o.default)(()=>
1Promise.all([a.e(9912),a.e(7699),a.e(922),a.e(9956),a.e(9026),a.e(2564),a.e(4391)]).then(a.bind(a,60481)),{loadableGenerated:{webpack:()=>[60481]},loading:()=>(0,r.jsx)(j,{})}),z=(0,o.default)(()=>Promise.all([a.e(922),a.e(2564),a.e(4605)]).then(a.bind(a,74605)),{loadableGenerated:{webpack:()=>[74605]},loading:()=>(0,r.jsx)(j,{})}),E=(0,o.default)(()=>Promise.all([a.e(922),a.e(5878),a.e(2564),a.e(5398),a.e(4796)]).then(a.bind(a,4796)),{loadableGenerated:{webpack:()=>[4796]},loading:()=>(0,r.jsx)(j,{})}),L=(0,o.default)(()=>Promise.all([a.e(922),a.e(4242),a.e(9501),a.e(2564),a.e(8394)]).then(a.bind(a,88394)),{loadableGenerated:{webpack:()=>[88394]},loading:()=>(0,r.jsx)(j,{})}),W=(0,o.default)(()=>a.e(7510).then(a.bind(a,57510)),{loadableGenerated:{webpack:()=>[57510]},loading:()=>(0,r.jsx)(j,{})}),A=(0,o.default)(()=>Promise.all([a.e(9912),a.e(5878),a.e(4242),a.e(9026),a.e(6838),a.e(2005),a.e(7799)]).then(a.bind(a,87799)),{loadableGenerated:{webpack:()=>[87799]},ssr:!1,loading:()=>(0,r.jsx)("div",{})}),_=l.memo(e=>{let{shop:t,onChangeColor:a,bgPrimary:i,isDemoMode:n}=e,o=(0,s.useRouter)(),c="#2d2e36",u="#fef4f0",p=(0,l.useMemo)(()=>n?"#ffab5b":""===i?"#ffab5b":i,[i]);(0,w.Z)({bgPrimary:p,bgmain:u,bgSecondary:c});let m=(0,l.useCallback)(()=>{o.push("/shop")},[o]);(0,l.useEffect)(()=>{a&&a(u)},[u,a]);let h=(0,l.useMemo)(()=>({shop:t,bgPrimary:i,bgSecondary:c,bgmain:u}),[t,i,c,u]);return(0,r.jsxs)("section",{className:"relative max-w-2xl mx-auto overflow-x-hidden bg-white poppins rounded-xl",children:[(0,r.jsx)(d,{shop:t,bgPrimary:i}),(0,r.jsxs)("div",{className:"relative ",children:[(0,r.jsx)(v,{shop:t,bgPrimary:i}),(0,r.jsx)(k,{...h}),(0,r.jsx)(N,{...h}),(0,r.jsx)(C,{...h}),(0,r.jsx)(Z,{...h,handleGoShop:m}),(0,r.jsx)(P,{...h}),(0,r.jsx)(z,{...h}),(0,r.jsx)(E,{...h}),(0,r.jsx)(L,{...h}),(0,r.jsx)(W,{...h,recivecolor:"#fff"}),(0,r.jsx)(A,{bgmain:u,shop:t,bgPrimary:i,handleGoShop:m})]})]})});_.displayName="ThemeThree",_.propTypes={shop:n().object.isRequired,onChangeColor:n().func,bgPrimary:n().string.isRequired};var T=_}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.