1"use strict";(globalThis.webpackChunkfrontend=globalThis.webpackChunkfrontend||[]).push([[9249],{87779(e,t,a){a.d(t,{Ab:()=>M,BY:()=>u,CV:()=>E,D1:()=>G,Db:()=>q,I:()=>D,Jy:()=>p,K_:()=>v,Ks:()=>n,Ln:()=>r,ME:()=>b,Mr:()=>T,Pu:()=>c,SX:()=>y,Zt:()=>o,aU:()=>N,ap:()=>_,bi:()=>$,cx:()=>L,dL:()=>R,er:()=>d,es:()=>I,kd:()=>g,mI:()=>f,pQ:()=>i,qA:()=>w,sT:()=>h,sb:()=>m,tK:()=>x,ts:()=>k,ur:()=>C,wN:()=>P,xM:()=>j,yR:()=>S,yu:()=>A});var s=a(30112);const l=e=>`/api/orgs/${e}/marketing`,n=(e,t)=>s.default.get(`${l(e)}/contacts`,{params:t}),i=(e,t,a)=>s.default.post(`${l(e)}/clients/${t}/marketing-consent`,{action:a}),o=e=>s.default.get(`${l(e)}/facets`),r=e=>s.default.get(`${l(e)}/segments`),d=(e,t)=>s.default.post(`${l(e)}/segments`,t),u=(e,t,a)=>s.default.patch(`${l(e)}/segments/${t}`,a),m=(e,t)=>s.default.post(`${l(e)}/segments/preview`,t),c=(e,t)=>s.default.delete(`${l(e)}/segments/${t}`),p=(e,t)=>s.default.post(`${l(e)}/ai/compose`,t),g=(e,t)=>s.default.post(`${l(e)}/ai/compliance`,t),h=(e,t)=>s.default.post(`${l(e)}/ai/footer`,t?{existing:t}:{}),f=e=>s.default.get(`${l(e)}/settings`),x=(e,t)=>s.default.patch(`${l(e)}/settings`,t),b=e=>s.default.get(`${l(e)}/campaigns`),$=(e,t)=>s.default.post(`${l(e)}/campaigns`,t),y=(e,t,a)=>s.default.patch(`${l(e)}/campaigns/${t}`,a),v=(e,t)=>s.default.delete(`${l(e)}/campaigns/${t}`),w=(e,t)=>s.default.get(`${l(e)}/campaigns/${t}/recipients-count`),j=(e,t)=>s.default.post(`${l(e)}/preview`,t),C=e=>s.default.get(`${l(e)}/moments/triggers`),N=e=>s.default.get(`${l(e)}/moments`),k=(e,t)=>s.default.post(`${l(e)}/moments`,t),A=(e,t,a)=>s.default.patch(`${l(e)}/moments/${t}`,a),S=(e,t)=>s.default.delete(`${l(e)}/moments/${t}`),_=(e,t,a)=>s.default.post(`${l(e)}/moments/${t}/run`,a||{}),E=(e,t)=>s.default.post(`${l(e)}/campaigns/${t}/hold`,{}),q=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return s.default.post(`${l(e)}/campaigns/${t}/send`,{test:a})},M=(e,t)=>s.default.get(`/api/orgs/${e}/clients/${t}`),I=(e,t)=>s.default.get(`/api/public/campaign/${e}/${t}`),L=(e,t,a)=>s.default.post(`/api/public/campaign/${e}/${t}/enquiry`,a),R=e=>s.default.get(`/api/orgs/${e}/marketing/access-status`),P=(e,t)=>s.default.post(`/api/orgs/${e}/marketing/request-access`,{note:t}),T=e=>s.default.get(`${l(e)}/lists`),G=(e,t)=>s.default.post(`${l(e)}/lists`,t),D=(e,t)=>s.default.delete(`${l(e)}/lists/${t}`)},99181(e,t,a){a.d(t,{A:()=>n});var s=a(65043),l=a(37951);function n(e){let{title:t,description:a,ogTitle:n,ogDescription:i,ogImage:o,canonicalPath:r,breadcrumbs:d,noindex:u=!1}=e;return(0,s.useEffect)(()=>{document.title=(0,l.xd)(t);const e=(e,t,a)=>{if(!a)return;let s=document.querySelector(`meta[${e}='${t}']`);s||(s=document.createElement("meta"),s.setAttribute(e,t),document.head.appendChild(s)),s.setAttribute("content",a)};if(a&&e("name","description",a),e("property","og:title",n||t||"CRMandGo"),(i||a)&&e("property","og:description",i||a),o&&e("property","og:image",o),e("property","og:type","website"),e("name","twitter:card","summary_large_image"),e("name","twitter:title",n||t||"CRMandGo"),(i||a)&&e("name","twitter:description",i||a),o&&e("name","twitter:image",o),e("name","robots",u?"noindex, nofollow":"index, follow, max-image-preview:large"),r){const t=`https://crmandgo.com.au${r}`;e("property","og:url",t);let a=document.querySelector("link[rel='canonical']");a||(a=document.createElement("link"),a.setAttribute("rel","canonical"),document.head.appendChild(a)),a.href=t;let s=document.querySelector("link[rel='alternate'][hreflang='en-AU']");s||(s=document.createElement("link"),s.setAttribute("rel","alternate"),s.setAttribute("hreflang","en-AU"),document.head.appendChild(s)),s.href=t}},[t,a,n,i,o,r,u]),(0,s.useEffect)(()=>{const e=document.querySelector("script[data-breadcrumb-ld]");if(e&&e.remove(),null===d||void 0===d||!d.length)return;const t={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:d.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.name,item:e.url?`https://crmandgo.com.au${e.url}`:void 0}))},a=document.createElement("script");return a.type="application/ld+json",a.setAttribute("data-breadcrumb-ld","true"),a.textContent=JSON.stringify(t),document.head.appendChild(a),()=>a.remove()},[d]),null}},37951(e,t,a){a.d(t,{xd:()=>n});
1const s="CRMandGo",l="CRMandGo: Australian CRM Platform";function n(e){if(!e)return l;const t=String(e).trim();return t?t.toLowerCase().includes(s.toLowerCase())?t:`${t} | ${s}`:l}},49249(e,t,a){a.r(t),a.d(t,{default:()=>u});var s=a(65043),l=a(92087),n=a(76833),i=a(22024),o=a(99181),r=a(87779),d=a(70579);function u(){const{orgId:e,campaignId:t}=(0,l.g)(),[a,u]=(0,s.useState)(null),[m,c]=(0,s.useState)(!0),[p,g]=(0,s.useState)({first_name:"",last_name:"",email:"",phone:"",message:"",website:""}),[h,f]=(0,s.useState)(!1),[x,b]=(0,s.useState)(!1),[$,y]=(0,s.useState)(null);(0,s.useEffect)(()=>{(0,r.es)(e,t).then(e=>u(e.data)).catch(()=>y("This page is not available.")).finally(()=>c(!1))},[e,t]);const v=(e,t)=>g(a=>({...a,[e]:t})),w=(null===a||void 0===a?void 0:a.primary_color)||"#2563eb";return m?(0,d.jsxs)("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,d.jsx)(o.A,{title:"Enquiry",noindex:!0}),(0,d.jsx)(i.A,{className:"h-6 w-6 animate-spin text-slate-400"})]}):(0,d.jsxs)("div",{className:"min-h-screen bg-slate-50 flex items-center justify-center p-4",children:[(0,d.jsx)(o.A,{title:"Enquiry",noindex:!0}),(0,d.jsxs)("div",{className:"w-full max-w-md bg-white rounded-2xl border border-slate-200 shadow-sm p-8",children:[null!==a&&void 0!==a&&a.logo_url?(0,d.jsx)("img",{src:a.logo_url,alt:a.business_name,className:"h-10 w-auto max-w-[180px] object-contain mb-5"}):(0,d.jsx)("p",{className:"text-lg font-semibold text-slate-900 mb-5",children:null===a||void 0===a?void 0:a.business_name}),x?(0,d.jsxs)("div",{className:"text-center py-6",children:[(0,d.jsx)(n.A,{className:"h-12 w-12 mx-auto mb-3",style:{color:w}}),(0,d.jsx)("h1",{className:"text-xl font-semibold text-slate-900 mb-1",children:"Thank you"}),(0,d.jsx)("p",{className:"text-slate-600 text-sm",children:"We've received your details and will be in touch shortly."})]}):$&&!a?(0,d.jsx)("p",{className:"text-slate-600 text-center py-8",children:$}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-slate-900 mb-1",children:null===a||void 0===a?void 0:a.headline}),(0,d.jsx)("p",{className:"text-slate-500 text-sm mb-5",children:null===a||void 0===a?void 0:a.intro}),(0,d.jsxs)("form",{onSubmit:async a=>{if(a.preventDefault(),p.email.trim()||p.phone.trim()){f(!0),y(null);try{await(0,r.cx)(e,t,p),b(!0)}catch(n){var s,l;y((null===n||void 0===n||null===(s=n.response)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.detail)||"Something went wrong. Please try again.")}finally{f(!1)}}else y("Please give us an email or phone number.")},className:"space-y-3",children:[(0,d.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off","aria-hidden":"true",value:p.website,onChange:e=>v("website",e.target.value),style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"}}),(0,d.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,d.jsx)("input",{className:"border border-slate-300 rounded-lg px-3 py-2 text-sm",placeholder:"First name",value:p.first_name,onChange:e=>v("first_name",e.target.value)}),(0,d.jsx)("input",{className:"border border-slate-300 rounded-lg px-3 py-2 text-sm",placeholder:"Last name",value:p.last_name,onChange:e=>v("last_name",e.target.value)})]}),(0,d.jsx)("input",{className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm",type:"email",placeholder:"Email",value:p.email,onChange:e=>v("email",e.target.value)}),(0,d.jsx)("input",{className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm",placeholder:"Mobile",value:p.phone,onChange:e=>v("phone",e.target.value)}),(0,d.jsx)("textarea",{className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm",rows:3,placeholder:"Anything you'd like us to know? (optional)",value:p.message,onChange:e=>v("message",e.target.value)}),$&&(0,d.jsx)("p",{className:"text-sm text-rose-600",children:$}),(0,d.jsx)("button",{type:"submit",disabled:h,className:"w-full text-white font-semibold rounded-lg py-2.5 disabled:opacity-60",style:{backgroundColor:w},children:h?"Sending\u2026":(null===a||void 0===a?void 0:a.cta_label)||"Submit enquiry"})]}),!1!==(null===a||void 0===a?void 0:a.powered_by)&&(0,d.jsx)("p",{className:"text-[11px] text-slate-400 text-center mt-4",children:"Powered by CRMandGo"})]})]})]})}}}]); 2//# sourceMappingURL=9249.c7deff9c.chunk.js.map
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.