PageSourceSearch

https://www.mobileappdaily.com/_next/static/chunks/6760.92cbf7041f45c0e8.js

js mobileappdaily.com collected 2026-10-02 05:02:19 UTC 18,018 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6760],{6229:(e,r,a)=>{"use strict";a.d(r,{A:()=>d});var t=a(95155),o=a(12115),c=a(78968),n=a(80669);function s(e){let{countryCode:r,alt:a="",width:o=20,height:s=15,className:l="",style:i,title:d}=e;if(!r)return(0,t.jsx)("div",{style:{width:o,height:s,backgroundColor:"#e0e0e0",borderRadius:"2px",display:"inline-block",flexShrink:0,...i},className:l});let m=r.toUpperCase(),u=`${n.xw}/mad/flag_list/${m.toLowerCase()}.svg`;return(0,t.jsx)(c.A,{src:u,alt:a||`${m} flag`,width:o,height:s,title:d||m,className:l,style:{objectFit:"cover",borderRadius:"2px",flexShrink:0,...i},onError:e=>{let r=e.target;r.src!==u&&(r.src=u)}})}var l=a(30926);let i=(0,l.createServerReference)("006140230f200bad887178e88c44f84ad89d54dfcb",l.callServer,void 0,l.findSourceMapURL,"fetchCountryListAction");function d(e){let{value:r,onChange:a,options:c,countryList:n=[],name:l}=e,[d,m]=(0,o.useState)(!1),[u,p]=(0,o.useState)(""),[_,h]=(0,o.useState)([]),[f,y]=(0,o.useState)(!1),x=(0,o.useRef)(null),g=(0,o.useRef)(null),v=[{code:"+1",country:"US/CA",phonecode:"1",country_code:"US",uniqueKey:"1-0",flag_url:""},{code:"+44",country:"UK",phonecode:"44",country_code:"GB",uniqueKey:"44-1",flag_url:""},{code:"+91",country:"India",phonecode:"91",country_code:"IN",uniqueKey:"91-2",flag_url:""},{code:"+49",country:"Germany",phonecode:"49",country_code:"DE",uniqueKey:"49-3",flag_url:""},{code:"+33",country:"France",phonecode:"33",country_code:"FR",uniqueKey:"33-4",flag_url:""}];(0,o.useEffect)(()=>{(async()=>{if((!c||!(c.length>0))&&!(n.length>0)&&!(_.length>0)){y(!0);try{let e=await i();e.length>0?h(e):console.warn("Failed to fetch country list, using defaults")}catch(e){console.error("Error fetching country list:",e)}finally{y(!1)}}})()},[]);let j=n.length>0?n:_.length>0?_:[],b=c&&c.length>0?c:j.length>0?j.map((e,r)=>({code:`+${e.phonecode}`,country:e.country_name,phonecode:e.phonecode,country_code:e.country_code||`country-${r}`,uniqueKey:e.country_code||`${e.phonecode}-${r}`,flag_url:e.flag_url||""})):v,N=b.length>0?b:v;(0,o.useEffect)(()=>{if(!r&&N.length>0){let e=N.find(e=>"US"===e.country_code);e?a(e.phonecode):a(N[0].phonecode)}},[N.length,r]),(0,o.useEffect)(()=>{let e=e=>{x.current&&!x.current.contains(e.target)&&(m(!1),p(""))};return d&&(document.addEventListener("mousedown",e),setTimeout(()=>{g.current?.focus()},100)),()=>{document.removeEventListener("mousedown",e)}},[d]),(0,o.useEffect)(()=>{d||p("")},[d]);let $="1"===r?N.find(e=>e.phonecode===r&&"US"===e.country_code)||N.find(e=>e.phonecode===r):N.find(e=>e.phonecode===r),S=""===u.trim()?N:N.filter(e=>e.country.toLowerCase().includes(u.toLowerCase())||e.code.toLowerCase().includes(u.toLowerCase())||e.phonecode.includes(u));return(0,t.jsxs)("div",{className:`country-select ${d?"open":""}`,ref:x,children:[(0,t.jsx)("div",{className:"selected",onClick:()=>{m(!d),d||p("")},role:"button","aria-expanded":d,"aria-haspopup":"listbox",children:$?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s,{countryCode:$.country_code,alt:$.country,width:20,height:15,title:$.country_code,style:{flexShrink:0,marginRight:"6px"}}),(0,t.jsx)("span",{children:$.code})]}):(0,t.jsx)("span",{style:{color:"#999"},children:"+1"})}),d&&(0,t.jsxs)("div",{className:"country-select-items",children:[(0,t.jsx)("div",{className:"country-search",children:(0,t.jsx)("div",{className:"dropdown-search",children:(0,t.jsx)("input",{ref:g,type:"text",value:u,onChange:e=>p(e.target.value),placeholder:"Search...",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()})})}),0===S.length?(0,t.jsx)("div",{style:{padding:"12px",textAlign:"center",color:"#999",fontSize:"14px"},children:"No countries found"}):S.map(e=>(0,t.jsxs)("div",{onClick:()=>{a(e.phonecode),m(!1),p("")},className:r===e.phonecode?"selected":"",style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,t.jsx)(s,{countryCode:e.country_code,alt:e.country,width:20,height:15,style:{flexShrink:0}}),(0,t.jsx)("span",{style:{fontSize:"14px",color:"#010101"},children:e.code})]},e.uniqueKey))]}),(0,t.jsx)("input",{type:"hidden",name:l,value:r})]})}},76760:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>u});var t=a(95155);a(88828);var o=a(12115),c=a(47650),n=a(20063),s=a(78968),l=a(6229),i=a(30926);let d=(0,i.createServerReference)("40ee98f443569dde3fd556ff3ef7cac107cbaf5b99",i.callServer,void 0,i.findSourceMapURL,"submitLeaveQueryAction"),m=["Less than $5000","$5000 - $10000","$25,000 - $50,000","$50,000 - $100,000","$100,000 - $250,000","$250,000 - $500,000","$500,000 - $1,000,000","$1,000,000 - $5,000,000","$5,000,000+"];function u(e){let{isOpen:r=!1,onClose:a,companyData:i=null,directoryId:u,directoryTitle:p="",countryList:_=[],companyOverride:h=null}=e,f=(0,n.useRouter)(),[y,x]=(0,o.useState)(!1),g=(0,o.useRef)(!1),[v,j]=(0,o.useState)({report_full_name:"",report_company_name:"",report_email_address:"",country_code:"",contact_number:"",project_budget:"",description:"",captcha_value:"",captcha_1:"",captcha_2
1:""}),[b,N]=(0,o.useState)({}),[$,S]=(0,o.useState)(!1),[w,C]=(0,o.useState)({}),[k,L]=(0,o.useState)(!1),F=(0,o.useRef)(null);(0,o.useEffect)(()=>{x(!0)},[]),(0,o.useEffect)(()=>{if(r&&!g.current){let e=Math.floor(10*Math.random())+1,r=Math.floor(10*Math.random())+1;j(a=>({...a,captcha_1:e.toString(),captcha_2:r.toString(),captcha_value:""}))}g.current=r},[r]),(0,o.useEffect)(()=>{if(r){document.body.classList.add("overflow_hidden");let e=document.querySelector("[data-scroll-container]");e&&(e.style.overflow="hidden")}else{document.body.classList.remove("overflow_hidden");let e=document.querySelector("[data-scroll-container]");e&&(e.style.overflow="")}return()=>{document.body.classList.remove("overflow_hidden");let e=document.querySelector("[data-scroll-container]");e&&(e.style.overflow="")}},[r]),(0,o.useEffect)(()=>{let e=e=>{F.current&&!F.current.contains(e.target)&&L(!1)};return k&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[k]);let E=e=>{let{name:r,value:a}=e.target;if("contact_number"===r){let e=a.replace(/\D/g,"").slice(0,10);j(a=>({...a,[r]:e}))}else j(e=>({...e,[r]:a}));b[r]&&N(e=>({...e,[r]:void 0}))},P=e=>{let{name:r}=e.target;C(e=>({...e,[r]:!0}))},z=e=>{let{name:r,value:a}=e.target;C(e=>({...e,[r]:""!==a.trim()}))},R=async e=>{if(e.preventDefault(),(()=>{let e={};if(v.report_full_name.trim()||(e.report_full_name="Please enter full name."),v.report_company_name.trim()||(e.report_company_name="Please enter company name."),v.report_email_address.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v.report_email_address)||(e.report_email_address="Please enter a valid email address."):e.report_email_address="Please enter your email address.",v.contact_number.trim()&&(/^\d{10}$/.test(v.contact_number.trim())||(e.contact_number="Please enter a valid 10-digit phone number.")),v.description.trim()||(e.description="Please tell us more about your project."),v.captcha_value.trim()){let r=parseInt(v.captcha_1)+parseInt(v.captcha_2);parseInt(v.captcha_value)!==r&&(e.captcha_value="Please enter a correct captcha value.")}else e.captcha_value="Please enter captcha.";return N(e),0===Object.keys(e).length})()){S(!0);try{let e={directory_id:String(u||""),directory_company_name:i?.companies.name||h?.name||"",directory_company_id:String(i?.companies.id??h?.id??""),directory_cta_name:"Leave Query",report_title:p,report_full_name:v.report_full_name,report_company_name:v.report_company_name,report_email_address:v.report_email_address,country_code:v.country_code||"",contact_number:v.contact_number||"",project_budget:v.project_budget||"",description:v.description,captcha_1:v.captcha_1,captcha_2
1:v.captcha_2,captcha_value:v.captcha_value,page_url:window.location.href},r=await d(e);if(r.success){let e=Math.floor(10*Math.random())+1,r=Math.floor(10*Math.random())+1;j({report_full_name:"",report_company_name:"",report_email_address:"",country_code:"",contact_number:"",project_budget:"",description:"",captcha_value:"",captcha_1:e.toString(),captcha_2:r.toString()}),f.push("/thank-you")}else N({captcha_value:r.message||"An error occurred. Please try again."})}catch(e){console.error("Form submission error:",e),N({captcha_value:e instanceof Error?e.message:"An unexpected error occurred. Please try again."})}finally{S(!1)}}},q=()=>{j({report_full_name:"",report_company_name:"",report_email_address:"",country_code:"",contact_number:"",project_budget:"",description:"",captcha_value:"",captcha_1:"",captcha_2:""}),N({}),C({}),L(!1),a&&a(),document.body.classList.remove("overflow_hidden")};if(!y||!r)return null;let M=i?.companies?{id:i.companies.id,name:i.companies.name}:h?{id:h.id,name:h.name}:void 0,A=i?.profile,I=A?.address,K=i?(e=>{if(!e)return"";return e.city&&e.state?e.city===e.state?`${e.city}, ${e.country}`:`${e.city}, ${e.state}, ${e.country}`:e.city?`${e.city}, ${e.country}`:e.state?`${e.state}, ${e.country}`:e.country||""})(I):h?.locationText||"",T=i?i.companies.monogram_img||i.companies.logo:h?.logo||"",U=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"modal_overlay",onClick:q,style:{zIndex:99999,position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)"}}),(0,t.jsxs)("div",{className:"common_modal_popup dir_modal",id:"directory_leave_query_form",style:{zIndex:1e5,position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("div",{className:"close_modal_btn",onClick:q,children:(0,t.jsx)("span",{})}),(0,t.jsx)("div",{className:"form_dialog_wrapper",children:(0,t.jsx)("div",{className:"dialog_inner",children:(0,t.jsxs)("form",{id:"directory_cta_form",onSubmit:R,children:[(0,t.jsx)("input",{type:"hidden",name:"directory_id",id:"directory_id",value:u||""}),(0,t.jsx)("input",{type:"hidden",name:"directory_company_name",id:"directory_company_name",value:M?.name||""}),(0,t.jsx)("input",{type:"hidden",name:"directory_company_id",id:"directory_company_id",value:M?.id??""}),(0,t.jsx)("input",{type:"hidden",name:"directory_cta_name",id:"directory_cta_name",value:"Leave Query"}),(0,t.jsx)("input",{type:"hidden",name:"report_title",id:"report_title",value:p}),(0,t.jsxs)("div",{className:"contactForm_right",children:[(0,t.jsx)("div",{className:"contact-form-head",children:"Send a message to"}),M&&(0,t.jsxs)("div",{className:"dp_flex aic",children:[(0,t.jsx)("div",{className:"directory_logo",children:(0,t.jsx)("figure",{children:T&&(0,t.jsx)(s.A,{id:"directory_comp_logo",src:T,alt:`${M.name} logo`,loading:"lazy",width:64,height:64,className:"img_fluid"})})}),(0,t.jsx)("div",{className:"directory_comp",children:(0,t.jsxs)("div",{className:"abt_comp",children:[(0,t.jsx)("p",{className:"directory_comp_nm",id:"directory_comp_name",children:M.name}),(0,t.jsx)("div",{className:"comp_tagline",id:"directory_comp_locat",children:K?`${K}`:""})]})})]}),(0,t.jsx)("div",{className:"whouare",children:"Who are you?"}),(0,t.jsxs)("div",{className:"form_row",children:[(0,t.jsx)("div",{className:"form_half_col",children:(0,t.jsx)("div",{className:"form_group",children:(0,t.jsxs)("div",{className:"form_floating",children:[(0,t.jsx)("input",{type:"text",className:`form_control ${b.report_full_name?"error":""}`,name:"report_full_name",id:"report_full_name",value:v.report_full_name,onChange:E,onFocus:P,onBlur:z,autoComplete:"name"}),(0,t.jsxs)("label",{className:`form__label ${w.report_full_name||v.report_full_name?"focused":""}`,htmlFor:"report_full_name",children:["Full Name ",(0,t.jsx)("span",{className:"error",children:"*"})]}),b.report_full_name&&(0,t.jsx)("em",{className:"error-message",style:{color:"red",fontSize:"12px",display:"block",marginTop:"4px"},children:b.report_full_name})]})})}),(0,t.jsx)("div",{className:"form_half_col",children:(0,t.jsx)("div",{className:"form_group",children:(0,t.jsxs)("div",{className:"form_floating",children:[(0,t.jsx)("input",{type:"text",className:`form_control ${b.report_company_name?"error":""}`,name:"report_company_name",id:"report_company_name",value:v.report_company_name,onChange:E,onFocus:P,onBlur:z,autoComplete:"organization"}),(0,t.jsxs)("label",{className:`form__label ${w.report_company_name||v.report_company_name?"focused":""}`,htmlFor:"report_company_name",children:["Company Name ",(0,t.jsx)("span",{className:"error",children:"*"})]}),b.report_company_name&&(0,t.jsx)("em",{className:"error-message",style:{color:"red",fontSize:"12px",display:"block",marginTop:"4px"},children:b.report_company_name})]})})})]}),(0,t.jsxs)("div",{className:"form_row",children:[(0,t.jsx)("div",{className:"form_half_col full_width",children:(0,t.jsx)("div",{className:"form_group icon_wrap",children:(0,t.jsxs)("div",{className:"form_floating",children:[(0,t.jsx)("input",{type:"text",className:`form_control ${b.report_email_address?"error":""}`,name:"report_email_address",id:"report_email_address",value:v.report_email_address,onChange:E,onFocus:P,onBlur:z,autoComplete:"email"}),(0,t.jsxs)("label",{className:`form__label ${w.report_email_address||v.report_email_address?"focused":""}`,htmlFor:"report_email_address",children:["Professional Email ",(0,t.jsx)("span",{className:"error",children:"*"})]}),b.report_email_address&&(0,t.jsx)("em",{className:"error-message",style:{color:"red",fontSize:"12px",display:"block",marginTop:"4px"},children:b.report_email_address})]})})}),(0,t.jsx)("div",{className:"form_half_col full_width",children:(0,t.jsxs)("div",{className:"country_wrap",children:[(0,t.jsx)("div",{className:"country_dropdown",children:(0,t.jsx)("div",{className:"form_group",children:(0,t.jsx)("div",{className:"country-select",style:{position:"relative"},children:(0,t.jsx)(l.A,{value:v.country_code,onChange:e=>{j(r=>({...r,country_code:e})),b.country_code&&N(e=>({...e,country_code:void 0}))},countryList:_,name:"country_code"})})})}),(0,t.jsx)("div",{className:"contact_number",children:(0,t.jsx)("div",{className:"form_group",children:(0,t.jsxs)("div",{className:"form_floating",children:[(0,t.jsx)("input",{type:"text",name:"contact_number",id:"c
1ontact_number",className:`form_control dlqf_phone_no ${b.contact_number?"error":""}`,value:v.contact_number,onChange:E,onFocus:P,onBlur:z,autoComplete:"tel",maxLength:10,inputMode:"numeric",pattern:"[0-9]*"}),(0,t.jsx)("label",{className:`form__label ${w.contact_number||v.contact_number?"focused":""}`,htmlFor:"contact_number",children:"Phone number"}),b.contact_number&&(0,t.jsx)("em",{className:"error-message",style:{color:"red",fontSize:"12px",display:"block",marginTop:"4px"},children:b.contact_number})]})})})]})})]}),(0,t.jsx)("div",{className:"form_row",children:(0,t.jsx)("div",{className:"form_full_col",children:(0,t.jsx)("div",{className:"project_infos",children:(0,t.jsx)("div",{className:"form_group",children:(0,t.jsx)("div",{className:"form_floating",children:(0,t.jsxs)("div",{className:"custom-select-box dropdown-list search_select",ref:F,children:[(0,t.jsx)("label",{className:`form__label ${w.project_budget||v.project_budget?"focused":""}`,htmlFor:"project_budget",children:"Your Budget"}),(0,t.jsxs)("div",{className:`dropdown-select ${k?"open":""}`,onClick:()=>L(!k),children:[(0,t.jsx)("input",{type:"text",className:"form_control",id:"project_budget",name:"project_budget",value:v.project_budget,readOnly:!0,placeholder:"",style:{cursor:"pointer"}}),(0,t.jsx)("input",{type:"hidden",name:"project_budget",value:v.project_budget})]}),k&&(0,t.jsx)("div",{className:"custom-select-items",style:{display:"block",position:"absolute",top:"100%",width:"100%",zIndex:100001,backgroundColor:"#fff",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.15)",maxHeight:"210px",overflowY:"auto"},children:m.map(e=>(0,t.jsx)("div",{className:`option ${v.project_budget===e?"selected":""}`,onClick:()=>{j(r=>({...r,project_budget:e})),L(!1),C(e=>({...e,project_budget:!0}))},style:{padding:"12px",cursor:"pointer",backgroundColor:v.project_budget===e?"#0066cc":"transparent",color:v.project_budget===e?"#fff":"#000",fontSize:"14px"},children:e},e))})]})})})})})}),(0,t.jsx)("div",{className:"form_row",children:(0,t.jsx)("div",{className:"form_full_col",children:(0,t.jsx)("div",{className:"project_info",children:(0,t.jsx)("div",{className:"form_group",children:(0,t.jsxs)("div",{className:"form_textarea",children:[(0,t.jsxs)("label",{htmlFor:"description",className:"form__label",children:["Message ",(0,t.jsx)("span",{className:"error",children:"*"})]}),(0,t.jsx)("textarea",{className:`form__textarea ${b.description?"error":""}`,name:"description",id:"description",cols:20,rows:2,value:v.description,onChange:E,onFocus:P,onBlur:z,placeholder:"Write here..."}),b.description&&(0,t.jsx)("em",{className:"error-message",style:{color:"red",fontSize:"12px",display:"block",marginTop:"4px"},children:b.description})]})})})})}),(0,t.jsx)("div",{className:"form_row",children:(0,t.jsx)("div",{className:"form_full_col",children:(0,t.jsxs)("div",{className:"form_bottom",children:[(0,t.jsxs)("div",{className:"form_captcha",children:[(0,t.jsxs)("span",{className:"form_captcha_text",children:[(0,t.jsx)("span",{id:"captcha_1",children:v.captcha_1})," + ",(0,t.jsx)("span",{id:"captcha_2",children:v.captcha_2})," =",(0,t.jsx)("input",{className:`number_txt ${b.captcha_value?"error":""}`,"aria-label":"captcha_value",type:"number",id:"captcha_value",name:"captcha_value",value:v.captcha_value,onChange:E,maxLength:2}),(0,t.jsx)("input",{type:"hidden",name:"captcha_1",className:"captcha_1",value:v.captcha_1}),(0,t.jsx)("input",{type:"hidden",name:"captcha_2",className:"captcha_2",value:v.captcha_2})]}),b.captcha_value&&(0,t.jsx)("em",{className:"error",id:"blog_commor_form_error",style:{color:"red",fontSize:"12px",display:"block",marginTop:"4px"},children:b.captcha_value})]}),(0,t.jsx)("div",{className:"form_submit",children:(0,t.jsx)("button",{role:"button","aria-label":"Submit Requirement",type:"submit",className:"primary_btn",id:"submit_directory_form_btn",disabled:$,children:$?"Submitting...":"Submit"})})]})})})]})]})})})]})]});return(0,c.createPortal)(U,document.body)}},88828:()=>{}}]);

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.