PageSourceSearch

https://www.profruits.in/_next/static/chunks/2433.de3c3f055fa34585.js

js profruits.in collected 2026-10-02 01:05:03 UTC 14,169 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2433],{2433:function(e,r,t){t.r(r),t.d(r,{default:function(){return p}});var o=t(5893),s=t(7294),n=t(7536),a=t(7555),l=t.n(a);t(6194);var c=t(4853),i=t(9359),d=t(6188),u=t(2920);t(822);var m=t(3349);function p(e){var r,t,a,p,h,v;let{resolvedData:x,pageData:g,location:f}=e,{register:y,handleSubmit:j,reset:b,clearErrors:N,setValue:E,setError:_,getValues:C,control:w,setFocus:S,formState:{errors:A}}=(0,n.cI)({shouldFocusError:!1}),[k,q]=(0,s.useState)([]),[P,T]=(0,s.useState)([]),[Z,L]=(0,s.useState)(""),[I,R]=(0,s.useState)(),[D,O]=(0,s.useState)(!1),[Y,B]=(0,s.useState)(""),{showSharePopup:F,copied:M,sharePopupRef:W,handleCopyLink:U,handleNativeShare:z}=(0,m.Z)({urlType:i.Z.URL_TYPE_STATIC});(0,s.useEffect)(()=>{let e=Object.keys(A)[0];e&&S(e)},[A,S]);let H=async e=>{let r={name:null==e?void 0:e.full_name,email:null==e?void 0:e.email,company_name:null==e?void 0:e.company_name,country:Z,city:null==e?void 0:e.city,service:null==e?void 0:e.service,phone_number:C("country_code")+(null==e?void 0:e.mobile_number),message:null==e?void 0:e.message};try{let t=await new d.Z().sendCorporateInquiry(r);t&&"success"===t.status?(b(),B(null==t?void 0:t.message),O(!0)):t&&"error"===t.status&&u.Am.error(null==t?void 0:t.message)}catch(o){console.error("Error during API call:",o)}};(0,s.useEffect)(()=>{document.querySelectorAll('a[href^="#"]').forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();let r=document.querySelector(this.getAttribute("href"));r&&r.scrollIntoView({behavior:"smooth",block:"start"})})});let e=new IntersectionObserver(e=>{e.forEach((e,r)=>{e.isIntersecting&&setTimeout(()=>{e.target.classList.add("visible")},100*r)})},{threshold:.1,rootMargin:"0px 0px -80px 0px"});document.querySelectorAll(".corporate-fade-in").forEach(r=>{e.observe(r)});let r=document.querySelector(".corporate-hero");if(r){let t=0,o=0;r.addEventListener("mousemove",e=>{t=(e.clientX/window.innerWidth-.5)*2,o=(e.clientY/window.innerHeight-.5)*2,r.style.backgroundPosition="".concat(50+20*t,"% ").concat(50+20*o,"%")}),r.addEventListener("mouseleave",()=>{r.style.backgroundPosition="50% 50%"})}window.addEventListener("scroll",()=>{window.pageYOffset,document.querySelector(".corporate-about"),document.querySelector(".corporate-about-image img")}),document.querySelectorAll(".corporate-feature-card").forEach(e=>{e.addEventListener("mouseenter",function(e){let r=this.getBoundingClientRect(),t=e.clientX-r.left,o=e.clientY-r.top,s=r.width/2,n=r.height/2;this.style.transform="perspective(1000px) rotateX(".concat((o-n)/10,"deg) rotateY(").concat((s-t)/10,"deg) translateY(-8px)")}),e.addEventListener("mouseleave",function(){this.style.transform="perspective(1000px) rotateX(0) rotateY(0) translateY(0)"})}),document.querySelectorAll(".corporate-form-control").forEach(e=>{e.addEventListener("focus",function(){this.parentElement.style.transform="translateY(-2px)"}),e.addEventListener("blur",function(){this.parentElement.style.transform="translateY(0)"})})},[]),(0,s.useEffect)(()=>{let e=async()=>{try{let e=await new d.Z().getInitialMasterForCorporatePage({data:{}});if(e&&"success"===e.status){var r,t;q(null==e?void 0:null===(r=e.result)||void 0===r?void 0:r.country_dropdown),T(null==e?void 0:null===(t=e.result)||void 0===t?void 0:t.corporate_services_dropdown)}else e&&"error"===e.status&&e.errors}catch(o){console.error("Error during API call:",o)}};e()},[]);let Q=async e=>{let r={};r.data={country_id:e};let t=await new d.Z().cityBasOnCountry(r);(null==t?void 0:t.status)===i.Z.SUCCESS_STATUS&&R(null==t?void 0:t.result)},V=()=>{let e=document.querySelector("#corporateForm .text-danger");e&&e.scrollIntoView({behavior:"smooth",block:"center"})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{ref:W,style:{position:"fixed",flexShrink:0,bottom:"168px",padding:"15px 48px 0 0",right:"-36px",zIndex:"2"},children:[(0,o.jsxs)("div",{onClick:z,style:{cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,o.jsx)("i",{className:"fa-solid fa-share-nodes",style:{fontSize:"20px",color:"#555"}}),(0,o.jsx)("span",{style:{fontSize:"11px",color:"#555",marginTop:"2px"},children:"Share"})]}),F&&(0,o.jsx)("div",{style:{position:"absolute",top:"calc(100% + 8px)",right:"26px",background:"#fff",borderRadius:"12px",boxShadow:"0 4px 20px rgba(0,0,0,0.15)",padding:"8px 0",minWidth:"160px",zIndex:9999},children:(0,o.jsxs)("div",{onClick:U,style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 16px",cursor:"pointer",fontSize:"14px",color:"#333",borderRadius:"8px"},onMouseEnter:e=>e.currentTarget.style.background="#f5f5f5",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:[(0,o.jsx)("i",{className:M?"fa-solid fa-check":"fa-solid fa-link",style:{color:M?"#1e8e3e":"#5
155",fontSize:"16px"}}),M?"Copied!":"Copy Link"]})})]}),D&&(0,o.jsx)("div",{className:"corp-success-overlay",onClick:()=>O(!1),children:(0,o.jsx)("div",{className:"corp-success-modal",onClick:e=>e.stopPropagation(),children:(0,o.jsxs)("div",{className:"corp-success-body",children:[(0,o.jsx)("div",{className:"corp-success-icon-wrap",children:(0,o.jsx)("div",{className:"corp-success-ring",children:(0,o.jsx)("svg",{className:"corp-success-icon",viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M14 27l9 9 15-18",stroke:"#16a34a",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})})})}),(0,o.jsx)("span",{className:"corp-success-badge",children:"Submitted Successfully"}),(0,o.jsx)("h3",{className:"corp-success-title",children:"Inquiry Sent!"}),(0,o.jsx)("div",{className:"corp-success-divider"}),(0,o.jsx)("p",{className:"corp-success-msg",children:Y||"Your corporate inquiry has been received. Our team will reach out to you shortly with a personalized quote."}),(0,o.jsxs)("button",{className:"corp-success-close-btn",onClick:()=>O(!1),children:[(0,o.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,o.jsx)("polyline",{points:"20 6 9 17 4 12"})}),"Got It, Thanks!"]})]})})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:null==g?void 0:null===(r=g.result)||void 0===r?void 0:r.page_content}}),(0,o.jsx)("section",{className:"corporate-contact-form",id:"contact",children:(0,o.jsxs)("div",{className:"corporate-container",children:[(0,o.jsxs)("div",{className:"corporate-section-title corporate-fade-in",children:[(0,o.jsx)("h2",{children:"Get In Touch With Us"}),(0,o.jsx)("p",{children:"Ready to elevate your corporate gifting strategy? Contact us for a personalized consultation and custom quote tailored to your business needs."})]}),(0,o.jsx)("div",{className:"corporate-form-container corporate-fade-in",children:(0,o.jsxs)("form",{id:"corporateForm",onSubmit:j(H,V),children:[(0,o.jsxs)("div",{className:"corporate-form-grid",children:[(0,o.jsxs)("div",{className:"corporate-form-group",children:[(0,o.jsx)("input",{type:"text",className:"corporate-form-control",placeholder:"Your Full Name",...y("full_name",{required:"Please enter your full name"})}),A.full_name&&(0,o.jsx)("small",{className:"text-danger",children:null==A?void 0:null===(t=A.full_name)||void 0===t?void 0:t.message})]}),(0,o.jsxs)("div",{className:"corporate-form-group",children:[(0,o.jsx)("input",{type:"text",className:"corporate-form-control",placeholder:"Company Name",...y("company_name",{required:"Please enter your company name"})}),A.company_name&&(0,o.jsx)("small",{className:"text-danger",children:null==A?void 0:null===(a=A.company_name)||void 0===a?void 0:a.message})]}),(0,o.jsxs)("div",{className:"corporate-form-group",children:[(0,o.jsx)("input",{type:"email",className:"corporate-form-control",placeholder:"Business Email Address",...y("email",{required:"Please enter your email address",pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"Please enter valid email address"}})}),A.email&&(0,o.jsx)("small",{className:"text-danger",children:null==A?void 0:null===(p=A.email)||void 0===p?void 0:p.message})]}),(0,o.jsxs)("div",{className:"corporate-form-group",children:[(0,o.jsx)(n.Qr,{name:"mobile_number",control:w,rules:{required:"Please enter your contact number"},render(e){let{field:r}=e;return(0,o.jsx)(l(),{country:null===i.Z||void 0===i.Z?void 0:i.Z.DEFAULT_COUNTRY_CODE,value:r.value?"".concat(C("country_code")).concat(r.value):"",onChange(e,t){let o="+".concat(t.dialCode),s=e.replace(t.dialCode,"");E("country_code",o,{shouldValidate:!0}),r.onChange(s)},inputProps:{name:"mobile_number",required:!0},inputClass:"corporate-form-control"})}}),A.mobile_number&&(0,o.jsx)("small",{className:"text-danger",children:A.mobile_number.message})]})]}),(0,o.jsxs)("div",{className:"corporate-form-grid",children:[(0,o.jsx)("div",{className:"corporate-form-group",children:(0,o.jsx)(n.Qr,{name:"country",control:w,rules:{required:"Please select a country"},render(e){let{field:r,fieldState:t}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("select",{id:"country",...r,className:"corporate-form-control",onChange(e){let t=e.target.value,o=e.target.options[e.target.selectedIndex].text;r.onChange(t),Q(t),L(o)},children:(null==k?void 0:k.length)>0&&k.map((e,r)=>(0,o.jsx)("option",{value:e.id,children:e.text},r))}),t.error&&(0,o.jsx)("small",{className:"text-danger",children:t.error.message})]})}})}),(null==I?void 0:I.length)>0&&(0,o.jsx)("div",{className:"corporate-form-group",children:(0,o.jsx)(n.Qr,{name:"city",control:w,rules:{required:"Please select a city"},render(e){let{field:r,fieldState:t}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("select",{id:"city",...r,className:"corporate-form-control",children:[(0,o.jsx)("option",{value:"",children:"Select City"}),(null==I?void 0:I.length)>0&&I.map((e,r)=>(0,o.jsx)("option",{value:e.text,children:e.text},r))]}),t.error&&(0,o.jsx)("small",{className:"text-danger",children:t.error.message})]})}})}),(0,o.jsx)("div",{className:"corporate-form-group",children:(0,o.jsx)(n.Qr,{name:"service",control:w,rules:{required:"Please select a service"},render(e){let{field:r,fieldState:t}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("select",{id:"service",...r,className:"corporate-form-control",children:[(0,o.jsx)("option",{value:"",children:"Service Required"}),(null==P?void 0:P.length)>0&&P.map((e,r)=>(0,o.jsx)("option",{value:e.name,children:e.name},r))]}),t.error&&(0,o.jsx)("small",{className:"text-danger",children:t.error.message})]})}})})]}),(0,o.jsxs)("div",{className:"corporate-form-group",children:[(0,o.jsx)("textarea",{className:"corporate-form-control",placeholder:"Tell us about your corporate gifting requirements: preferred delivery dates, quantity needed, budget range, special occasions, branding requirements, and any specific preferences or corporate values we should reflect in our arrangements...",...y("message",{required:"Please enter description",minLength:{value:10,message:"Description must be at least 10 characters long"},maxLength:{value:500,message:"Description cannot exceed 500 characters"}}),defaultValue:""}),A.message&&(0,o.jsx)("small",{className:"text-danger",children:null==A?void 0:null===(h=A.message)||void 0===h?void 0:h.message})]}),(0,o.jsxs)("div",{className:"captcha-design",children:[(0,o.jsx)(c.Z,{style:{transform:"scale(0.8)",transformOrigin:"0 0"},sitekey:null===i.Z||void 0===i.Z?void 0:i.Z.RECAPTCHA_SITE_KEY,...y("recaptcha",{required:"Captcha is required."}),onChange:function(e){N("recaptcha"),E("recaptcha",e)}}),A.recaptcha&&(0,o.jsx)("small",{className:"text-danger",children:null==A?void 0:null===(v=A.recaptcha)||void 0===v?void 0:v.message})]}),(0,o.jsxs)("button",{type:"submit",className:"corporate-submit-btn",children:[(0,o.jsx)("i",{className:"fas fa-paper-plane"}),"Send Corporate Inquiry"]}),(0,o.jsxs)("div",{style:{marginTop:"3rem",textAlign:"center",color:"#666666",padding:"2rem",background:"#F9F9F9",borderRadius:15},className:"corporate-alternative-contac",children:[(0,o.jsx)("p",{style:{marginBottom:"1rem",fontSize:"1.1rem",fontWeight:600,color:"#2D2D2D"},children:"Alternative Contact Methods"}),(0,o.jsxs)("p",{style:{marginBottom:"0.5rem"},children:["\uD83D\uDCE7 Email us directly:"," ",(0,o.jsx)("a",{href:"mailto:[email protected]",style:{color:"#1A1A1A",textDecoration:"none",fontWeight:600},children:null===i.Z||void 0===i.Z?void 0:i.Z.CORPORATE_EMAIL})]}),(0,o.jsxs)("p",{style:{marginBottom:"0.5rem"},children:["\uD83D\uDCDE Call our corporate team:"," ",(0,o.jsx)("a",{href:"tel:".concat(null===i.Z||void 0===i.Z?void 0:i.Z.CORPORATE_MOBILE_NUMBER),style:{color:"#1A1A1A",textDecoration:"none",fontWeight:600},children:null===i.Z||void 0===i.Z?void 0:i.Z.CORPORATE_MOBILE_NUMBER})]}),(0,o.jsxs)("p",{style:{marginBottom:0},children:["\uD83D\uDCAC WhatsApp for quick queries:"," ",(0,o.jsx)("a",{href:"https://wa.me/".concat(null===i.Z||void 0===i.Z?void 0:i.Z.CORPORATE_WHATSAPP_NO),style:{color:"#1A1A1A",textDecoration:"none",fontWeight:600},children:null===i.Z||void 0===i.Z?void 0:i.Z.CORPORATE_WHATSAPP_NO})]})]})]})})]})})]})]})}},3349:function(e,r,t){var o=t(7294),s=t(9359);let n=function(){let{urlType:e=s.Z.URL_TYPE_PRODUCT,seoContent:r=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,o.useState)(!1),[a,l]=(0,o.useState)(!1),c=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=e=>{c.current&&!c.current.contains(e.target)&&n(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let i=()=>{let r=window.location.pathname,t=window.location.origin;return"".concat(t,"/dlink/").concat(e).concat(r)},d=()=>{let e=i();navigator.clipboard.writeText(e),l(!0),setTimeout(()=>{l(!1),n(!1)},1500)},u=async()=>{let e=i(),t=navigator.userAgent,o=/Android|iPhone|iPad|iPod/i.test(t);if(o&&navigator.share){try{await navigator.share({title:(null==r?void 0:r.seo_title)||document.title,text:(null==r?void 0:r.seo_description)||"",url:e}),l(!0),setTimeout(()=>l(!1),1500)}catch(s){}return}n(!0)};return{showSharePopup:t,copied:a,sharePopupRef:c,handleCopyLink:d,handleNativeShare:u}};r.Z=n}}]);

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.