PageSourceSearch

https://www.castingbell.com/assets/About-DDxaJqzP.js

js castingbell.com collected 2026-10-08 20:53:09 UTC 6,722 bytes, 1 lines download raw bytes

1import{r as c,w as C,x as f,j as e,d as a,F as y,y as u,z as p,q as w,o as S,A as P,u as R,H as $,g as j,p as F}from"./index-DOEDGpFv.js";import{c as T}from"./cms.service-Qn6_G2ih.js";import{D as A}from"./DashBroadHeader-Db3vYkBl.js";import{c as E,a as V,b as x,u as L}from"./index.esm-DaRz_fRj.js";import{R as k}from"./recaptcha-wrapper-B-SbVzhn.js";function q(){var d,o,m;const[i,l]=c.useState(!1),n=E({name:x().required("Please enter your name"),email:x().email("Please enter valid email id").required("Please enter your email id"),phone:x().required("Please enter your phone number").matches(C,"Please enter valid phone number"),message:x().required("Please enter the message"),recaptcha:V().oneOf([!0],"Field must be checked").required("")}),s=L({validateOnMount:!0,initialValues:{name:"",email:"",phone:"",message:"",recaptcha:!1},enableReinitialize:!0,validationSchema:n,onSubmit:({name:t,email:h,phone:b,message:g},{setStatus:v,setSubmitting:N},B)=>{l(!0),v();let _={name:t,email:h,mobile:b,message:g};f.contactUs(_).then(I=>{l(!1),N(!0)})}}),r=t=>{t?s.setFieldValue("recaptcha",!0):s.setFieldValue("recaptcha",!1)};return e.jsxs("section",{className:"bg-white rounded-lg  flex flex-col Padding0",children:[e.jsx("div",{className:"mb-8",children:e.jsx(a.Row,{children:e.jsx(a.Col,{sm:12,children:e.jsx("h2",{className:"profile_color",children:"Send us a message "})})})}),e.jsx(y,{variant:"standard",sx:{m:1,minWidth:120,margin:0},children:e.jsxs(a.Row,{children:[e.jsx(a.Col,{sm:8,children:e.jsx("div",{className:`mb-8 ${s.values.name?"value_broder border_bottom":"border_bottom"}`,children:e.jsxs("div",{className:"switch_design_profile",children:[e.jsx("h5",{className:"label_text ",children:"Your name"}),e.jsx(u,{style:{width:"100%"},variant:"standard",name:"name",placeholder:"Please enter your name",value:s.values.name,slotProps:{input:{autoComplete:"new-password"}},onChange:t=>{s.setFieldValue("name",t.target.value)},error:s.touched.name&&s.errors.name,helperText:s.touched.name&&s.errors.name})]})})}),e.jsx(a.Col,{sm:8,children:e.jsx("div",{className:`mb-8 ${s.values.email?"value_broder border_bottom":"border_bottom"}`,children:e.jsxs("div",{className:"switch_design_profile",children:[e.jsx("h5",{className:"label_text ",children:"Your email id"}),e.jsx(u,{style:{width:"100%"},variant:"standard",name:"email",placeholder:"Please enter your email id",value:s.values.email,slotProps:{input:{autoComplete:"new-password"}},onChange:t=>{s.setFieldValue("email",t.target.value)},error:s.touched.email&&s.errors.email,helperText:s.touched.email&&s.errors.email})]})})}),e.jsx(a.Col,{sm:8,children:e.jsx("div",{className:`mb-8 ${s.values.phone?"value_broder border_bottom":"border_bottom"}`,children:e.jsxs("div",{className:"switch_design_profile",children:[e.jsx("h5",{className:"label_text ",children:"Your phone number"}),e.jsx(u,{style:{width:"100%"},variant:"standard",name:"phone",placeholder:"Please enter your phone number",value:s.values.phone,slotProps:{input:{autoComplete:"new-password"}},onChange:t=>{var h;((h=t.target.value)==null?void 0:h.length)<=10&&s.setFieldValue("phone",t.target.value)},error:s.touched.phone&&s.errors.phone,helperText:s.touched.phone&&s.errors.phone})]})})}),e.jsx(a.Col,{sm:12,children:e.jsx("div",{className:`mb-7 ${s.values.message?"value_broder border_bottom":"border_bottom"}`,children:e.jsxs("div",{className:"switch_design_profile",children:[e.jsx("h5",{className:"label_text",children:"Message"}),e.jsx(u,{slotProps:{input:{maxLength:p}},style:{width:"100%"},id:"standard-textarea",placeholder:"Please enter the Message",autoComplete:"off",multiline:!0,variant:"standard",name:"message",value:(d=s==null?void 0:s.values)==null?void 0:d.message,onChange:s.handleChange,error:s.touched.message&&s.errors.message,helperText:e.jsxs("div",{className:"flex justify-between",children:[e.jsx("p",{children:s.touched.message&&s.errors.message})," ",e.jsxs("span",{className:`chartAtLimit ${s.touched.message&&s.errors.message?"":"charColor"}`,children:["(",`${(m=(o=s==null?void 0:s.values)==null?void 0:o.message)==null?void 0:m.length} / ${p}`,")"]})]}),minRows:4})]})})}),e.jsx(a.Col,{sm:12,className:`flex ${s.isSubmitting?"":"mb-4"}`,children:e.jsx("div",{className:"recaptcha",children:e.jsx(k,{sitekey:w.recapchaKey,onChange:r,hidden:s.isSubmitting})})}),e.jsx(a.Col,{sm:12,className:"flex",children:e.jsx(S,{onClick:s.handleSubmit,text:s.isSubmitting?"Sent":"Send",isLoading:i,disabled:s.isSubmitting,className:`${s.isSubmitting||!s.isValid?"submit_notVaild":""}`})}),s.isSubmitting&&!i?e.jsx("p",{className:"thanksText mt-4 ml-4",style:{fontSize:"14px !important"}
1,children:"Thank you for your message. We will get back to you soon."}):null]})})]})}const Y=()=>{var o;const{user:i}=c.useContext(P),l=R(),[n,s]=c.useState(null),[r,d]=c.useState(null);return c.useEffect(()=>{s(l==null?void 0:l.pathname.split("/").pop()),l.pathname.split("/").pop()==="company"&&T.getCmsByid("about-us").then(m=>{d(m)}),window.scrollTo(0,0)},[l]),window.dataLayer.push({event:"pageview"}),e.jsxs("section",{className:"cms_moduls",children:[e.jsx($,{htmlAttributes:!0,children:e.jsx("title",{children:n==="contact-us"?"Contact Us | Casting Bell":"About Us | Casting Bell"})}),e.jsx("section",{className:"py-3 sm:py-5",style:{backgroundColor:"#E5E5E5"},children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs(a.Row,{children:[e.jsx(a.Col,{lg:6,xs:12,sm:6,children:e.jsx("div",{className:"top_title",children:e.jsx("h1",{children:"Company"})})}),e.jsx(a.Col,{lg:6,xs:12,sm:6,className:"items-center justify-center",children:((o=i==null?void 0:i.talenter)==null?void 0:o.is_profile_creation_completed)&&e.jsx(A,{})})]})})}),e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx("div",{className:"w-full",children:e.jsx("div",{className:"cms_section_new",children:e.jsxs(a.Row,{children:[e.jsx(a.Col,{md:3,sm:3,xs:12,children:e.jsx("div",{className:"cms_sidebar",children:e.jsxs("ul",{children:[e.jsx("li",{className:n==="company"?"active":"",children:e.jsx(j,{to:"/about/company",children:e.jsxs("h2",{children:[e.jsx("span",{className:"compy_icon"}),"About us"]})})}),e.jsx("li",{className:n==="contact-us"?"active":"",children:e.jsx(j,{to:"/about/contact-us",children:e.jsxs("h2",{children:[e.jsx("span",{className:"contact_icon"}),"Contact us"]})})})]})})}),e.jsxs(a.Col,{md:9,sm:9,xs:12,children:[n==="company"&&e.jsx("div",{className:"cms-para",children:e.jsx("div",{className:"paragraph",children:(r==null?void 0:r.content)&&F(r==null?void 0:r.content)})}),n==="contact-us"&&e.jsx("div",{className:"bg-white rounded-lg",style:{padding:"37px"},children:e.jsx(q,{})})]})]})})}),e.jsx("div",{className:"bottom_space"})]})]})};export{Y as default};

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.