PageSourceSearch

https://portal.heritageproperty.com/assets/communications._id_-DXoCpm2-.js

js heritageproperty.com collected 2026-09-28 05:57:01 UTC 3,239 bytes, 1 lines download raw bytes

1import{u as x,j as a,S as p,B as f,F as o,b6 as h,a9 as b,k as j,I as s,dJ as g,aQ as c,q as m}from"./elements-5kxJS_4j.js";import{u as N}from"./useRedirectOnAssociationChange-4ruYXzIx.js";import{x as v,$ as C}from"./index-CtCeyryw.js";import{c as y}from"./board-communications-BjIyroYp.js";import{p as A}from"./index-BSR_b3JY.js";import"./grids-DGmfp9GI.js";import"./startOfDay-AazlW55I.js";const B={title:"Communications",showPropertySelector:!0,showAi:!0};function F(){var t,i;N("/communications");const{t:n}=x(),l=v(),{id:r=""}=C(),{data:e,isLoading:u}=y(r),d=()=>{l("/communications")};return u?a.jsx("div",{className:"flex justify-center items-center h-full",children:a.jsx(p,{})}):e?a.jsxs("div",{className:"w-full bg-base-fill rounded-xl space-y-4 p-9 max-mobile:px-4",children:[a.jsx(f,{"data-qa":"communication-detail-back",variant:"primaryLink",onClick:d,className:"!px-0",startIcon:a.jsx(o,{icon:h}),children:n("main.common.back")}),a.jsx(b,{children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("span",{className:"text-sm font-semibold",children:n("board.communications.readOnly")}),a.jsx("span",{className:"text-sm",children:n("board.communications.messageSent",{createdAt:j(e.createdAt,{format:"numeric"})})})]})}),a.jsx("form",{className:"px-4 flex flex-col gap-4","data-qa":"communication-detail-form",children:a.jsxs("div",{className:"flex flex-col gap-5 max-w-[532px]",children:[a.jsx(s,{readOnly:!0,value:e.messageName,type:"text",label:n("board.communications.createCommunication.name")}),e.email&&a.jsxs(a.Fragment,{children:[a.jsx(s,{readOnly:!0,value:e.email.subject,type:"text",label:n("board.communications.createCommunication.emailSubject")}),a.jsxs("div",{className:"flex flex-col gap-4 border-2 border-base-border rounded-md py-6 px-9",children:[a.jsxs("div",{className:"flex gap-4 items-center",children:[a.jsx(o,{icon:g,className:"h-5 w-5 text-base-icon"}),a.jsx("p",{className:"font-semibold",children:n("board.communications.createCommunication.emailTemplate")})]}),e.email.body&&a.jsx("div",{className:"max-h-[200px] overflow-auto flex-1",children:A(e.email.body)})]})]}),e.inSiteAnnouncement&&a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(c,{"data-qa":"communication-detail-announcement-message",readOnly:!0,value:e.inSiteAnnouncement.message,label:n("board.communications.createCommunication.announcementMessage")}),a.jsx("p",{className:m("text-xs self-end"),children:n("board.communications.createCommunication.maxCharacters",{characterCount:((t=e.inSiteAnnouncement.message)==null?void 0:t.length)||0})})]}),e.pushNotification&&a.jsxs(a.Fragment,{children:[a.jsx(s,{readOnly:!0,value:e.pushNotification.title,type:"text",label:n("board.communications.createCommunication.pushNotificationTitle")}),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(c,{"data-qa":"communication-detail-push-message",readOnly:!0,value:e.pushNotification.message,label:n("board.communications.createCommunication.pushNotification")}),a.jsx("p",{className:m("text-xs self-end"),children:n("board.communications.createCommunication.maxCharacters",{characterCount:((i=e.pushNotification.message)==null?void 0:i.length)||0})})]})]})]})})]}):null}export{F as Component,B as handle};

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.