PageSourceSearch

https://acapitalgroup.com/static/js/3384.1968fea8.chunk.js

js acapitalgroup.com collected 2026-10-09 03:53:14 UTC 5,767 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[3384],{18103(e,t,a){a.d(t,{A:()=>r});var s=a(89379),l=a(5544),n=a(9950),c=a(26213),i=a(44414);function r(e){let t=e.value,a=e.onChange,r=e.render,d=e.disabled,o=void 0!==d&&d;const h=(0,c.uU)(),x=h.enabled,u=h.defaultLang,m=(0,n.useState)(u),p=(0,l.A)(m,2),v=p[0],g=p[1];if(!x||x.length<=1||o){var j;return r({value:"object"===typeof t&&null!==t?null!==(j=t[u])&&void 0!==j?j:"":t||"",onChange:e=>a("object"===typeof t&&null!==t?(0,s.A)((0,s.A)({},t),{},{[u]:e}):e)})}const b=(0,c.YW)(t,v);return(0,i.jsxs)("div",{className:"localized-field",children:[(0,i.jsx)("div",{className:"flex items-center gap-1 mb-2","data-testid":"locale-tab-row",children:x.map(e=>{var a;return(0,i.jsxs)("button",{type:"button",onClick:()=>g(e),className:"text-[10px] uppercase tracking-wider font-semibold px-2.5 py-1 rounded-sm transition-colors ".concat(v===e?"bg-[#0D9488] text-white":"bg-slate-100 text-slate-500 hover:bg-slate-200"),"data-testid":"locale-tab-".concat(e),children:[(null===(a=c.lX[e])||void 0===a?void 0:a.short)||e.toUpperCase(),"object"===typeof t&&t&&t[e]&&""!==t[e]?(0,i.jsx)("span",{className:"ml-1 w-1 h-1 rounded-full bg-emerald-400 inline-block align-middle",title:"Translated"}):null]},e)})}),r({value:b,onChange:e=>a((0,c.Or)(t,v,e))})]})}},73384(e,t,a){a.r(t),a.d(t,{default:()=>v});var s=a(89379),l=a(5544),n=a(9950),c=a(81473),i=a(32033),r=a(94779),d=a(68105),o=a(42989),h=a(61878),x=a(71742),u=a(18103),m=a(64490),p=a(44414);function v(){const e=(0,n.useState)({title:"Contact",subtitle:"Let's Work Together",description:"Have a project in mind? Let's discuss how we can help"}),t=(0,l.A)(e,2),a=t[0],v=t[1],g=(0,n.useState)(!1),j=(0,l.A)(g,2),b=j[0],C=j[1];(0,n.useEffect)(()=>{c.Er.getContactSettings().then(e=>{e.data&&v(e.data)}).catch(()=>{})},[]);return(0,p.jsxs)("div",{"data-testid":"contact-settings-manager",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("h1",{className:"text-2xl font-bold text-[#1a2332]",style:{fontFamily:"Playfair Display, serif"},children:"Contact Section"}),(0,p.jsx)("p",{className:"text-sm text-slate-400 mt-1",children:"Edit the text displayed in the contact section on the homepage"})]}),(0,p.jsx)(h.A,{className:"w-8 h-8 text-slate-200"})]}),(0,p.jsxs)("div",{className:"bg-white border border-slate-200 rounded-sm p-6 max-w-2xl",children:[(0,p.jsxs)("div",{className:"space-y-4",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(d.J,{className:"text-xs text-slate-500",children:"Title"}),(0,p.jsx)(u.A,{value:a.title,onChange:e=>v((0,s.A)((0,s.A)({},a),{},{title:e})),render:e=>{let t=e.value,a=e.onChange;return(0,p.jsx)(r.p,{value:t||"",onChange:e=>a(e.target.value),className:"mt-1","data-testid":"contact-title-input"})}})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(d.J,{className:"text-xs text-slate-500",children:"Subtitle"}),(0,p.jsx)(u.A,{value:a.subtitle,onChange:e=>v((0,s.A)((0,s.A)({},a),{},{subtitle:e})),render:e=>{let t=e.value,a=e.onChange;return(0,p.jsx)(r.p,{value:t||"",onChange:e=>a(e.target.value),className:"mt-1","data-testid":"contact-subtitle-input"})}})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(d.J,{className:"text-xs text-slate-500",children:"Description"}),(0,p.jsx)("p",{className:"text-xs text-slate-400 mb-1",children:"Rich text \u2014 rendered formatted on the website."}),(0,p.jsx)(u.A,{value:a.description,onChange:e=>v((0,s.A)((0,s.A)({},a),{},{description:e})),render:e=>{let t=e.value,a=e.onChange;return(0,p.jsx)(m.A,{value:t||"",onChange:a,placeholder:"Have a project in mind? Let's discuss\u2026"})}})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(d.J,{className:"text-xs text-slate-500",children:"Name placeholder"}),(0,p.jsx)(u.A,{value:a.name_placeholder,onChange:e=>v((0,s.A)((0,s.A)({},a),{},{name_placeholder:e})),render:e=>{let t=e.value,a=e.onChange;return(0,p.jsx)(r.p,{value:t||"",onChange:e=>a(e.target.value),placeholder:"Your name",className:"mt-1","data-testid":"contact-name-ph"})}})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(d.J,{className:"text-xs text-slate-500",children:"Email placeholder"}),(0,p.jsx)(u.A,{value:a.email_placeholder,onChange:e=>v((0,s.A)((0,s.A)({},a),{},{email_placeholder:e})),render:e=>{let t=e.value,a=e.onChange;return(0,p.jsx)(r.p,{value:t||"",onChange:e=>a(e.target.value),placeholder:"Your email",className:"mt-1","data-testid":"contact-email-ph"})}})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(d.J,{className:"text-xs text-slate-500",children:"Message placeholder"}),(0,p.jsx)(u.A,{value:a.message_placeholder,onChange:e=>v((0,s.A)((0,s.A)({},a),{},{message_placeholder:e})),render:e=>{let t=e.value,a=e.onChange;return(0,p.jsx)(r.p,{value:t||"",onChange:e=>a(e.target.value),placeholder:"Your message",className:"mt-1","data-testid":"contact-msg-ph"})}})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(d.J,{className:"text-xs text-slate-500",children:"Submit button text"}),(0,p.jsx)(u.A,{value:a.submit_text,onChange:e=>v((0,s.A)((0,s.A)({},a),{},{submit_text:e})),render:e=>{let t=e.value,a=e.onChange;return(0,p.jsx)(r.p,{value:t||"",onChange:e=>a(e.target.value),placeholder:"Send message",className:"mt-1","data-testid":"contact-submit-text"})}})]})]}),(0,p.jsxs)("button",{onClick:async()=>{C(!0);try{await c.Er.updateContactSettings(a),i.oR.success("Contact section saved!")}catch(e){i.oR.error("Failed to save")}finally{C(!1)}},disabled:b,className:"mt-6 bg-[#0D9488] text-white px-6 py-2.5 rounded-sm text-sm font-medium flex items-center gap-2 disabled:opacity-50 hover:bg-[#0D9488]/80 transition-colors","data-testid":"contact-save-btn",children:[b?(0,p.jsx)(o.A,{className:"w-4 h-4 animate-spin"}):(0,p.jsx)(x.A,{className:"w-4 h-4"})," Save Contact Section"]})]})]})}}}]);

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.