1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8394],{64750:function(e,t,r){"use strict";var n=r(57437),a=r(64494),s=r(2265),i=r(40718),o=r.n(i);let l=(e,t)=>{let r=new Set([...Object.keys(e),...t.flatMap(e=>Object.keys(e))]),n={};return r.forEach(r=>{n[r]=[e[r],...t.map(e=>e[r])]}),n},c=e=>{let{text:t="",delay:r=200,className:i="",animateBy:o="words",direction:c="top",threshold:u=.1,rootMargin:d="0px",animationFrom:p,animationTo:m,easing:h=e=>e,onAnimationComplete:g,stepDuration:f=.35,style:b={}}=e,y=(0,s.useMemo)(()=>"words"===o?t.split(/(\s+)/).filter(Boolean):t.split(""),[t,o]),[x,v]=(0,s.useState)(!1),w=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!w.current)return;let e=new IntersectionObserver(t=>{let[r]=t;r.isIntersecting&&(v(!0),e.unobserve(w.current))},{threshold:u,rootMargin:d});return e.observe(w.current),()=>e.disconnect()},[u,d]);let _=(0,s.useMemo)(()=>"top"===c?{filter:"blur(10px)",opacity:0,y:-50}:{filter:"blur(10px)",opacity:0,y:50},[c]),N=(0,s.useMemo)(()=>[{filter:"blur(5px)",opacity:.5,y:"top"===c?5:-5},{filter:"blur(0px)",opacity:1,y:0}],[c]),j=null!=p?p:_,T=null!=m?m:N,S=T.length+1,E=f*(S-1),C=Array.from({length:S},(e,t)=>1===S?0:t/(S-1));return(0,n.jsx)("p",{ref:w,className:"blur-text ".concat(i," flex flex-wrap"),style:b,children:y.map((e,t)=>{let s=l(j,T);return/^\s+$/.test(e)?(0,n.jsx)("span",{children:e.replace(/ /g,"\xa0")},t):(0,n.jsx)(a.E.span,{className:"inline-block will-change-[transform,filter,opacity]",initial:j,animate:x?s:j,transition:{duration:E,times:C,delay:t*r/1e3,ease:h},onAnimationComplete:t===y.length-1?g:void 0,children:e},t)})})};c.propTypes={text:o().string,delay:o().number,className:o().string,animateBy:o().oneOf(["words","chars"]),direction:o().oneOf(["top","bottom"]),threshold:o().number,rootMargin:o().string,animationFrom:o().object,animationTo:o().arrayOf(o().object),easing:o().func,onAnimationComplete:o().func,stepDuration:o().number,style:o().object},t.Z=c},26207:function(e,t,r){"use strict";var n=r(57437),a=r(2265),s=r(36498),i=r(59498),o=r(83644);s.p8.registerPlugin(i.i,o.C),t.Z=e=>{let{text:t,className:r="",delay:i=100,duration:l=.6,ease:c="power3.out",splitType:u="chars",from:d={opacity:0,y:40},to:p={opacity:1,y:0},threshold:m=.1,rootMargin:h="-100px",textAlign:g="center",onLetterAnimationComplete:f,style:b=""}=e,y=(0,a.useRef)(null),x=(0,a.useRef)(!1),v=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e,r;if(!y.current||!t)return;let n=y.current;x.current=!1;let a="lines"===u;a&&(n.style.position="relative");try{e=new o.C(n,{type:u,absolute:a,linesClass:"split-line"})}catch(e){console.error("Failed to create SplitText:",e);return}switch(u){case"lines":r=e.lines;break;case"words":r=e.words;break;default:r=e.chars}if(!r||0===r.length){console.warn("No targets found for SplitText animation"),e.revert();return}r.forEach(e=>{e.style.willChange="transform, opacity"});let g=(1-m)*100,b=/^(-?\d+(?:\.\d+)?)(px|em|rem|%)?$/.exec(h),w=b?parseFloat(b[1]):0,_=b&&b[2]||"px",N=w<0?"-=".concat(Math.abs(w)).concat(_):"+=".concat(w).concat(_),j="top ".concat(g,"%").concat(N),T=s.p8.timeline({scrollTrigger:{trigger:n,start:j,toggleActions:"play none none none",once:!0,onToggle:e=>{v.current=e}},smoothChildTiming:!0,onComplete:()=>{x.current=!0,s.p8.set(r,{...p,clearProps:"willChange",immediateRender:!0}),null==f||f()}});return T.set(r,{...d,immediateRender:!1,force3D:!0}),T.to(r,{...p,duration:l,ease:c,stagger:i/1e3,force3D:!0}),()=>{T.kill(),v.current&&(v.current.kill(),v.current=null),s.p8.killTweensOf(r),e&&e.revert()}},[t,i,l,c,u,d,p,m,h,f]),(0,n.jsx)("p",{ref:y,className:"split-parent overflow-hidden inline-block whitespace-normal ".concat(r),style:{textAlign:g,wordWrap:"break-word",...b},children:t})}},77162:function(e,t,r){"use strict";r.d(t,{b:function(){return a},h:function(){return n}});let n="https://api.on1tap.in",a={get_Access:"/shop/vendor/get-access/",createAccount:"/pos/auth/signup",uploadimage:"/upload-image-public",curruntlocation:"/geo/find_current_location",Online_Order:"/shop/vendor/create-online-order",SendOTP:"/otp/send_web_otp",lendingpage:"/admin/comman-data/on1tap_in_data",get_plans:"/admin/comman-data/plan_data",VerifyOTP:"/otp/verify",businessType:"/admin/business-type",product_category:"/shop/vendor/product-category",product:"/shop/vendor/get-product?",get_business_detail
1:"/shop/vendor/get-business-detail",inquiry:"/web/inquiry",On1tapPayments:"/payments/vendor/on1tap_subscription_create",find_Mobilenumber:"/pos/auth/signup/mobile/",apply_subscription_coupon:"/api/apply_subscription_coupon",GETTOKEN:"/shop/vendor/get-access/",FATCHBUSINESS:"/shop/vendor/get-business-detail",InqurieSlice:"/shop/vcard-inquiry",GETCATEGORY:"/shop/vendor/product-category?",GETPRODUCT:"/shop/vendor/get-product?",User:"/pos/customers",AddressApi:"/customer-address",LoginUser:"/otp/send_web_otp",OTPUser:"/otp/verify",GetOrders:"/customer/api/get_order",SubmitOrderData:"/shop/vendor/create-online-order",SubmitPayment:"/payments/vendor/customers_payment_split_collect",GetPartnerList:"/delivery/calculate_shipment",getLandingData:"/admin/comman-data/on1tap_in_data",getLoction:"/geo/find_similar",getCurrnetLoaction:"/geo/find_current_location",getFindletlon:"/geo/find_latlon"}},81842:function(e,t,r){"use strict";r.d(t,{o:function(){return p}}),r(26680);var n=r(80928),a=r.n(n);r(14474);let s="on1tap_web_api_secret_svh156484135biknbcdhgolcasbu^*";function i(e){try{if(!e||"string"!=typeof e)return null;if(!e.includes(":")&&e.length<40)return console.warn("Skipping decrypt â value is not AES encrypted."),null;let t=a().AES.decrypt(e,s).toString(a().enc.Utf8);return t?JSON.parse(t):null}catch(e){return console.error("Decrypt error:",e),null}}let o=e=>s?{data:a().AES.encrypt(JSON.stringify(e),s).toString()}:(console.error("Cannot encrypt data: API secret is missing."),null);var l=r(25566);let c=["/shop/vendor/get-business-detail","/shop/vendor/product-category","/shop/vendor/get-product","/delivery/calculate_shipment","/payments/vendor/customers_payment_split_collect","/shop/vendor/create-online-order","/admin/comman-data/on1tap_in_data","/geo/find_similar","/geo/find_current_location","/geo/find_latlon"],u=["/customer-address","/pos/customers","/customer/api/get_order","AddedAdressEdit","Deleteaddress","getCoupon","getbyidCoupon","UpdateCoupon","SubmitPUTUser","GetOrders"];function d(e,t){let r=e.toLowerCase().split("?")[0].replace(/\/+$/,""),n=t.toLowerCase().replace(/\/+$/,"");return r.includes(n)}async function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="on1tap_web_api_secret_svh156484135biknbcdhgolcasbu^*",n=l.env.NEXT_PUBLIC_ORIGIN_URL,p="";{let e=localStorage.getItem("accessToken");if(e)try{p=i(e)}catch(e){console.warn("Failed to decrypt accessToken, clearing storage",e),localStorage.removeItem("accessToken")}}let m="";{let e=localStorage.getItem("userToken");if(e)try{m=i(e)}catch(e){console.warn("Failed to decrypt userToken",e)}}let h=r,g=u.some(t=>d(e,t)),f=c.some(t=>d(e,t));h=g?m||r:f&&p||r;let b=null==e?void 0:e.includes("/otp/verify"),y=function(e){try{if(!s)return console.warn("API secret is missing! Check your .env.local file for NEXT_PUBLIC_WEB_API_SECRET."),"";return a().HmacSHA256(JSON.stringify(e),s).toString(a().enc.Hex)}catch(e){return console.error("Error generating signature:",e),""}}({token:h}),x=e.startsWith("/")?e:"/".concat(e),v=e.startsWith("http")?e:"".concat("https://api.on1tap.in").concat(x),w={"Content-Type":"application/json",Origin:n,Authorization:"Bearer ".concat(h),"x-request-signature":y,...t.headers||{}},_=b?JSON.stringify(null==t?void 0:t.body):JSON.stringify(o(null==t?void 0:t.body));try{let e=await fetch(v,{method:t.method||"GET",headers:w,body:t.body?_:void 0}),r=await e.json().catch(()=>({}));if((null==r?void 0:r.data)&&"string"==typeof r.data)try{let e=i(r.data);r.data=e}catch(e){console.warn("Decryption failed or data was not encrypted:",e)}return{ok:e.ok,status:e.status,data:r}}catch(e){return console.error("API Error:",e),{ok:!1,status:500,error:e.message}}}},80789:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(2265),a=r(81842);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[s,i]=(0,n.useState)(null),[o,l]=(0,n.use
1State)(r),[c,u]=(0,n.useState)(null),d=(0,n.useRef)(t),p=(0,n.useCallback)(async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(!0),u(null);let r={...d.current,...t};d.current=r;try{let t=await (0,a.o)(e,r);return t.ok?i(t.data):u(t.data||"Something went wrong"),t.data}catch(e){return u(e.message||"Unknown error"),null}finally{l(!1)}},[e]);return(0,n.useEffect)(()=>{d.current=t,r&&p()},[JSON.stringify(t),r,p]),{data:null==s?void 0:s.data,loading:o,error:c,refetch:p}}},78843:function(e,t,r){"use strict";var n=r(57437);r(2265);var a=r(26207),s=r(64750);t.Z=e=>{let t,{title:r,bgPrimary:i,className:o,index:l=0}=e,c=l%2;return 0==c?t=(0,n.jsx)(a.Z,{text:r,className:"text-2xl font-semibold text-center ".concat(o),style:{color:i},delay:50,duration:.5,ease:"power3.out",splitType:"chars",from:{opacity:0,y:40},href:{opacity:1,y:0},threshold:.1,rootMargin:"-100px",textAlign:"center"}):1===c&&(t=(0,n.jsx)(s.Z,{text:r,delay:100,animateBy:"words",direction:"top",className:" text-2xl ".concat(o),style:{color:i}})),(0,n.jsx)("div",{className:"relative py-3 text-center poppins",children:t})}},20311:function(e,t,r){"use strict";var n=r(57437);r(2265);var a=r(94242),s=r(29501),i=r(68575),o=r(80789),l=r(77162);t.Z=e=>{let{shop:t,bgPrimary:r,themeIndex:c}=e,{token:u}=(0,i.v9)(e=>e.auth),{register:d,handleSubmit:p,reset:m,formState:{errors:h}}=(0,s.cI)({defaultValues:{name:"",email:"",mobile:"",message:""}}),{loading:g,refetch:f}=(0,o.h)(null===l.b||void 0===l.b?void 0:l.b.InqurieSlice,{method:"POST",headers:{Authorization:"Bearer ".concat(u),"x-request-signature":"on1tap_web_api_secret_svh156484135biknbcdhgolcasbu^*"},body:{}},!1),b=async e=>{var r;let n={business_id:null==t?void 0:t.id,branch_id:null==t?void 0:null===(r=t.branch)||void 0===r?void 0:r.id,name:e.name,email:e.email,mobile:e.mobile,message:e.message};try{let e=await f({body:n});(null==e?void 0:e.status)===1||(null==e?void 0:e.success)?(a.Am.success("Inquiry submitted successfully!"),m()):a.Am.error((null==e?void 0:e.message)||"Submission failed")}catch(e){console.error("Submit Error:",e),a.Am.error("Failed to submit inquiry")}},y="text-red-500 text-xs mt-1 ml-1",x="bg-transparent border-b px-3 text-[#9b9fa6] placeholder:text-white h-[50px] w-full focus:outline-none";return 7===c?(0,n.jsxs)("form",{className:"w-full h-full",onSubmit:p(b),children:[(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 poppins",children:[(0,n.jsxs)("div",{className:"w-full px-3 mb-4",children:[(0,n.jsx)("input",{type:"text",className:x,style:{borderColor:r},placeholder:"Your Name",...d("name",{required:"Name is required"})}),h.name&&(0,n.jsx)("p",{className:y,children:h.name.message})]}),(0,n.jsxs)("div",{className:"w-full px-3 mb-4",children:[(0,n.jsx)("input",{type:"text",className:x,style:{borderColor:r},placeholder:"Enter email address",...d("email",{required:"Email is required",pattern:{value:/^\S+@\S+$/i,message:"Invalid email"}})}),h.email&&(0,n.jsx)("p",{className:y,children:h.email.message})]}),(0,n.jsxs)("div",{className:"w-full px-3 mb-4",children:[(0,n.jsx)("input",{type:"text",className:x,style:{borderColor:r},placeholder:"Enter phone Number",...d("mobile",{required:"Mobile is required",pattern:{value:/^[0-9]{10}$/,message:"10 digits required"}})}),h.mobile&&(0,n.jsx)("p",{className:y,children:h.mobile.message})]}),(0,n.jsxs)("div",{className:"w-full px-3 mb-4",children:[(0,n.jsx)("textarea",{rows:2,className:x,style:{borderColor:r},placeholder:"Type a message here...",...d("message",{required:"Message is required"})}),h.message&&(0,n.jsx)("p",{className:y,children:h.message.message})]})]}),(0,n.jsx)("div",{className:"w-full text-center",children:(0,n.jsx)("button",{type:"submit",disabled:g,className:"h-10 w-full sm:w-[240px] text-white rounded-lg bg-[var(--active-bgPrimary)] border-[var(--active-bgPrimary)] disabled:opacity-50",children:g?"Sending...":"Send Message"})})]}):(0,n.jsx)("form",{onSubmit:p(b),children:(0,n.jsxs)("div",{className:"flex flex-wrap poppins",children:[(0,n.jsxs)("div",{className:"w-full px-3 mb-4",children:[(0,n.jsx)("input",{type:"text",className:"bg-transparent border-b px-3 text-[#9b9fa6] h-[50px] w-full focus:outline-none",style:{borderColor:r},placeholder:"Your Name",...d("name",{required:"Name is required"})}),h.name&&(0,n.jsx)("p",{className:y,children:h.name.message})]}),(0,n.jsxs)("div",{className:"w-full px-3 mb-4",children:[(0,n.jsx)("input",{type:"text",className:"bg-transparent border-b px-3 text-[#9b9fa6] h-[50px] w-full focus:outline-none",style:{borderColor:r},placeholder:"Enter email address",...d("email",{required:"Email is required",pattern:{value:/^\S+@\S+$/i,message:"Invalid email"}})}),h.email&&(0,n.jsx)("p",{className:y,children:h.email.message})]}),(0,n.jsxs)("div",{className:"w-full px-3 mb-4",children:[(0,n.jsx)("input",{type:"text",className:"bg-transparent border-b px-3 text-[#9b9fa6] h-[50px] w-full focus:outline-none",style:{borderColor:r},placeholder:"Enter phone Number",...d("mobile",{required:"Mobile is required",pattern:{value:/^[0-9]{10}$/,message:"10 digits required"}})}),h.mobile&&(0,n.jsx)("p",{className:y,children:h.mobile.message})]}),(0,n.jsxs)("div",{className:"w-full px-3 mb-4",children:[(0,n.jsx)("textarea",{rows:2,className:"bg-transparent border-b px-3 text-[#9b9fa6] h-[50px] w-full focus:outline-none",style:{borderColor:r},placeholder:"Type a message here...",...d("message",{required:"Message is required"})}),h.message&&(0,n.jsx)("p",{className:y,children:h.message.message})]}),(0,n.jsx)("div",{className:"w-full text-center",children:(0,n.jsx)("button",{type:"submit",disabled:g,className:"h-10 w-full sm:w-[240px] text-white rounded-lg bg-[var(--active-bgPrimary)] border-[var(--active-bgPrimary)] disabled:opacity-50",children:g?"Sending...":"Send Message"})})]})})}},35799:function(e,t,r){"use strict";var n=r(57437),a=r(2265),s=r(40718),i=r.n(s),o=r(64494),l=r(27648);let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;e||(e="#000000");let r=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,r,n)=>t+t+r+r+n+n),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);return n?"rgba(".concat(parseInt(n[1],16),", ").concat(parseInt(n[2],16),", ").concat(parseInt(n[3],16),", ").concat(t,")"):e},u=(0,a.memo)(e=>{let t,{bgPrimary:r,children:s,path:i,height:u,width:d,bg:p=!0,Css:m,animation:h=!0}=e,g=(0,a.useMemo)(()=>p?"inset 0 30px 60px -12px ".concat(c(r,.3),", inset 0 18px 36px -18px ").concat(c(r,.5)):void 0,[p,r]),f=(0,a.useMemo)(()=>({borderColor:r,height:u,width:d,boxShadow:g}),[r,u,d,g]),b=i&&(i.startsWith("http")||i.startsWith("mailto:")||i.startsWith("tel:")),y={};return i?b?(t=h?o.E.a:"a",y={href:i,target:"_blank",rel:"noopener noreferrer"}):(t=h?(0,o.E)(l.default):l.default,y={href:i}):t=h?o.E.div:"div",(0,n.jsx)(t,{className:"".concat(m," z-50 flex justify-center items-center flex-col relative border-dashed"),style:f,...y,...h?{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.4,ease:"easeOut"},viewport:{once:!0}}:{},children:s})});u.displayName="BoxTheme",u.propTypes={bgPrimary:i().string,children:i().node.isRequired,path:i().string,height:i().string,width:i().string,bg:i().bool,Css:i().string,animation:i().bool},t.Z=u},88394:function(e,t,r){"use strict";r.r(t);var n=r(57437);r(2265);var a=r(96559),s=r(35799),i=r(20311);t.default=e=>{let{shop:t,bgPrimary:r,bgSecondary:o,bgmain:l}=e;return(0,n.jsxs)("section",{className:"relative px-6 pt-10 pb-[25px]",children:[(0,n.jsx)(a.Z,{title:"Inquries",bgPrimary:"var(--active-bgPrimary)",color:"text-black",animationindex:7}),(0,n.jsx)("div",{className:"flex flex-col gap-5",children:(0,n.jsx)(s.Z,{bgSecondary:"var(--active-bgSecondary)",bgPrimary:"var(--active-bgPrimary)",bg:!1,Css:"p-[20px] border-2 rounded-[30px]",children:(0,n.jsx)(i.Z,{shop:t,bgPrimary:"var(--active-bgPrimary)"})})})]})}},96559:function(e,t,r){"use strict";var n=r(57437),a=r(2265),s=r(40718),i=r.n(s),o=r(1679),l=r(78843);let c=(0,a.memo)(e=>{let{title:t,imgcss:r,color:a,image:s,margin:i="mb-7",animationindex:c=0}=e;return(0,n.jsxs)("div",{className:"relative text-center ".concat(i),children:[(0,n.jsx)("h2",{className:"relative inline-block mx-auto mb-1 font-semibold ".concat(a," capitalize text-2xl"),children:(0,n.jsx)(l.Z,{index:c,title:t})}),s&&(0,n.jsx)("div",{className:"absolute ".concat(r),children:(0,n.jsx)(o.default,{src:s,width:160,height:90,alt:"","aria-hidden":"true",className:"w-[90%] object-contain aspect-video"})})]})});c.displayName="Themeheading",c.propTypes={title:i().string.isRequired,imgcss:i().string,color:i().string.isRequired,image:i().string,margin:i().string,animationindex:i().number},t.Z=c},25566:function(e){var t,r,n,a=e.exports={};function s(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}
1catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l=[],c=!1,u=-1;function d(){c&&n&&(c=!1,n.length?l=n.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=o(d);c=!0;for(var t=l.length;t;){for(n=l,l=[];++u<t;)n&&n[u].run();u=-1,t=l.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new m(e,t)),1!==l.length||c||o(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}},14474:function(e,t,r){"use strict";class n extends Error{}n.prototype.name="InvalidTokenError"}}]);
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.