PageSourceSearch

https://businesssales.com.au/_next/static/chunks/71064.eabe9677e172f666.js

js businesssales.com.au collected 2026-09-29 21:19:48 UTC 23,607 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[71064],{42536:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});let i=e=>{let{listingPrice:t,listingStock:n,priceOptions:i,closingDate:a}=e,r=(n||"").trim();/^(no stock|walk in walk out)$/i.test(r)&&(r="");let l=null!=t&&""!==t&&!isNaN(Number(t))&&Number(t)>0?"$".concat(Number(t).toLocaleString()):"";if("Listing price"===i||"forsale"===i)return l?"".concat(l," ").concat(r).trim():"";if(a&&!isNaN(Date.parse(a))){let e=new Date(a),t=e.getDate(),n=e.toLocaleString("default",{month:"long"}),r=e.getFullYear();return"".concat(i," ending ").concat(t," ").concat(n," ").concat(r)}return"I'm not sure of the price, but I'm open to offers"===i?"Open to offers":i||(l?"".concat(l," ").concat(r).trim():"")}},53281:()=>{},71063:(e,t,n)=>{"use strict";n.d(t,{Ot:()=>v,Zr:()=>g,oR:()=>x,qb:()=>o,qy:()=>f,rc:()=>c});var i=n(6829),a=n(75433),r=n(44064);let l="jwt_token_prod";async function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;try{let o=(0,i.nh)(l),s={method:t.method||"GET",headers:{Authorization:n?"Bearer ".concat(o):"BearerNextJs ".concat(o),"Content-Type":"application/json",...t.headers||{}}};t.body&&(s.body=JSON.stringify(t.body));let c=await fetch("".concat(n||"https://app.businesssales.com.au").concat(e),s);if(!c.ok){if(401===c.status)return a.ks.emit(r.i.SESSION_EXPIRED),null;return console.error("HTTP error! status: ".concat(c.status),await c.text()),null}return await c.json()}catch(e){return console.error("Network or parsing error:",e),null}}let s=new Set(["POST","PUT","PATCH","DELETE"]);class c extends Error{constructor(e,t,n,i,a){super(t),this.code=e,this.status=n,this.requestId=i,this.details=a,this.name="AmlApiError"}}let d={CROSS_FIRM_DENIED:"You do not have access to this firm. Reach out to your administrator.",AML_GROUP_REQUIRED:"You are not set up for AML access. Please contact BusinessSales support.",AML_ADMIN_GATE:"AML is currently restricted to administrators. Contact your administrator to request access.",IDEMPOTENCY_CONFLICT:"This action was already submitted with different details. Refresh and try again.",PROVIDER_UNAVAILABLE:"Identity or registry service is temporarily unavailable. Try again shortly.",VALIDATION_FAILED:"Please review the highlighted fields and try again.",PARTY_RECLASSIFICATION_LOCKED:"This party's classification is locked and can no longer be changed. Contact your compliance officer if it needs to be reviewed.",PRECONDITION_FAILED:"A required step is incomplete. Check the action centre for details.",INVITE_ON_SIGNED_OFF_CASE:"This case has already been signed off. Reopen the case before sending new verification invites.",CASE_NOT_REOPENABLE:"A blocked, closed or archived case cannot be reopened. Record a new compliance decision instead.",PERSON_SET_LOCKED:"The people on this party can no longer be changed: its AML case is blocked, closed or archived.",AML_LISTING_ARCHIVED:"This listing is archived. Unarchive the listing before sending verification links.",AML_ARCHIVE_BLOCKED_HOLD:"This listing cannot be archived while a case is blocked or a suspicious matter report is open. Resolve it first.",EXTERNAL_ADMINISTRATION_LIVE_INVITES:"Mark the sent invites as no longer required before recording the liquidator.",EXTERNAL_ADMINISTRATION_INCOMPLETE:"Complete the Registered Liquidator record, including authority evidence, before clearance.",EXTERNAL_ADMINISTRATION_REQUIRES_LOW_RISK:"A seller under external administration can only be cleared on the liquidator record when the risk rating is low.",EXTERNAL_ADMINISTRATION_NOT_ACTIVE:"There is no active external administration record to withdraw.",EXTERNAL_ADMINISTRATION_EVIDENCE_INVALID:"The authority or AUSTRAC evidence on the Registered Liquidator record is no longer available on this case. Edit the record and attach the evidence again before clearance.",EXTERNAL_ADMINISTRATION_CHANGED:"The Registered Liquidator record changed while this decision was being recorded. Review the record and decide again.",EXTERNAL_ADMINISTRATION_EVIDENCE_IN_USE:"This document is evidence on the Registered Liquidator record. Edit or withdraw the record first, then remove the document.",TRUST_OWNERSHIP_EVIDENCE_REQUIRED:"This trust has no ownership evidence yet. Clearance needs at least one beneficial owner who is a person on the entity diagram, or a trust deed that has been processed by the KYB provider.",OWNER_ENTITY_UNRESOLVED:"Every trust or company on the entity diagram must have its people added, or be marked as 
1not required, before clearance.",UNAUTHENTICATED:"Your session has expired. Please sign in again.",NETWORK_ERROR:"Network error. Check your connection and try again.",CONFIG_MISSING:"AML backend is not configured for this environment."},u=RegExp("".concat("Simple","\\s*[-_]?\\s*").concat("KYC"),"gi"),p=RegExp("\\b".concat("s").concat("kyc","\\b"),"gi");function h(e){return e.replace(u,"the verification provider").replace(p,"the verification provider")}function g(e,t){return t instanceof c&&t.requestId?"".concat(e," (Request ID: ").concat(t.requestId,")"):e}let m=[{pattern:/ownershipPercentage must not be (greater than 100|less than 0)/i,copy:"An ownership percentage outside 0–100% was rejected. Correct the ownership percentage for this person, then send again."}];function f(e){let t=m.find(t=>t.pattern.test(e));return t?t.copy:e}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Something went wrong.";if(e instanceof c){var n;let i=e.message&&!/^HTTP \d+$/.test(e.message)?f(e.message):void 0;return g(h(null!=(n=null!=i?i:d[e.code])?n:e.message||t),e)}return e instanceof Error?h(e.message||t):"string"==typeof e?h(e||t):h(t)}function b(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"ri
1d-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}async function v(e){var t,n,o,d,u,p,h,g;let m,f,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},v="https://api2.businesssales.com.au";if(!v)throw new c("CONFIG_MISSING","NEXT_PUBLIC_API_V2_HOST is not configured",0,void 0,void 0);let y=(0,i.nh)(l),E=null!=(t=x.method)?t:"GET",I=b(),N=null!=(n=x.correlationId)?n:I,T={Authorization:"Bearer ".concat(null!=y?y:""),"Content-Type":"application/json","X-Request-Id":I,"X-Correlation-Id":N,...null!=(o=x.headers)?o:{}};!s.has(E)||x.skipIdempotency||T["Idempotency-Key"]||(T["Idempotency-Key"]=null!=(d=x.idempotencyKey)?d:b());let A={method:E,headers:T};void 0!==x.body&&(A.body=JSON.stringify(x.body));try{f=await fetch("".concat(v).concat(e),A)}catch(e){throw new c("NETWORK_ERROR",e instanceof Error?e.message:"Network failure",0,I,void 0)}if(401===f.status)throw a.ks.emit(r.i.SESSION_EXPIRED),new c("UNAUTHENTICATED","Session expired",401,I,void 0);let w=await f.text();if(w)try{m=JSON.parse(w)}catch(e){m=w}if(!f.ok){let e=null!=m?m:{};throw new c(null!=(u=e.code)?u:403===(g=f.status)?"CROSS_FIRM_DENIED":409===g?"IDEMPOTENCY_CONFLICT":412===g?"PRECONDITION_FAILED":422===g?"VALIDATION_FAILED":502===g||503===g?"PROVIDER_UNAVAILABLE":"HTTP_ERROR",null!=(p=e.message)?p:"HTTP ".concat(f.status),f.status,null!=(h=e.requestId)?h:I,e.details)}return m}},71064:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>V});var i=n(95155),a=n(12115),r=n(6800),l=n.n(r),o=n(81957),s=n(7005),c=n(50736);n(99875),n(75410),n(53281);let d=e=>"string"==typeof e&&""!==e.trim()?e:void 0,u=e=>"object"==typeof e&&null!==e?e:{},p=e=>e.replace(/\s*data-u-link-value="[^"]*"/g,""),h=e=>d(u(u(e).values).href),g=e=>d(u(u(e).values).target);function m(e,t){let n=o.By.getBlockByType(e);if(!n)throw Error("Unknown block type ".concat(e));return n.create(t)}function f(e){var t,n,i,a,r,l,s;let c=null!=(t=e.values)?t:{},f=d(c.containerPadding),x=d(c.textAlign);switch(e.type){case"heading":{let e=null!=(n=d(c.headingType))?n:"h1";return m(o.dA.TEXT,{attributes:{padding:f,align:x,"font-size":d(c.fontSize),"line-height":d(c.lineHeight),color:d(c.color)},data:{value:{content:"<".concat(e,' style="margin:0">').concat(p(null!=(i=d(c.text))?i:""),"</").concat(e,">")}}})}case"text":return m(o.dA.TEXT,{attributes:{padding:f,align:x,"font-size":d(c.fontSize),"line-height":d(c.lineHeight),color:d(c.color)},data:{value:{content:p(null!=(a=d(c.text))?a:"")}}});case"image":{let e=u(c.src),t=d(e.maxWidth);return m(o.dA.IMAGE,{attributes:{src:d(e.url),alt:d(c.altText),href:h(c.action),target:g(c.action),align:x,padding:f,width:!1===e.autoWidth&&t&&"100%"!==t?t:void 0}})}case"button":{let e=u(c.buttonColors),t=u(c.size);return m(o.dA.BUTTON,{attributes:{href:h(c.href),target:g(c.href),"background-color":d(e.backgroundColor),color:d(e.color),"border-radius":d(c.borderRadius),"inner-padding":d(c.padding),padding:f,align:x,"font-size":d(c.fontSize),width:!1===t.autoWidth?d(t.width):void 0},data:{value:{content:(null!=(r=d(c.text))?r:"").replace(/<[^>]*>/g,"").trim()}}})}case"divider":{let e=u(c.border);return m(o.dA.DIVIDER,{attributes:{"border-width":d(e.borderTopWidth),"border-style":d(e.borderTopStyle),"border-color":d(e.borderTopColor),width:d(c.width),align:x,padding:f}})}case"html":return m(o.dA.RAW,{data:{value:{content:null!=(l=d(c.html))?l:""}}});default:return m(o.dA.TEXT,{attributes:{padding:null!=f?f:"10px"},data:{value:{content:'<p>[Legacy "'.concat(null!=(s=e.type)?s:"unknown",'" block: add it again with the new editor]</p>')}}})}}function x(e){var t,n,i,a;let r=null!=(n=e.values)?n:{},l=null!=(i=e.columns)?i:[],s=(null==(t=e.cells)?void 0:t.length)===l.length?e.cells:l.map(()=>1),c=s.reduce((e,t)=>e+t,0)||1,u=d(r.columnsBackgroundColor);return m(o.dA.SECTION,{attributes:{padding:null!=(a=d(r.padding))?a:"0px","background-color":d(r.backgroundColor),"text-align":"center"},children:l.map((e,t)=>{var n,i,a;let r=null!=(n=e.values)?n:{};return m(o.dA.COLUMN,{attributes:{width:"".concat((s[t]/c*100).toFixed(2),"%"),padding:d(r.padding),"background-color":null!=(i=d(r.backgroundColor))?i:u},children:(null!=(a=e.contents)?a:[]).map(f)})})})}let b={name:"Recipient full name",first_name:"Recipient first name",last_name:"Recipient last name",email:"Recipient email",broker_name:"Broker name",listing_title:"Listing title",ca_link:"Confidentiality agreement link",data_room_link:"Data room link",link_unsubscribe:"Unsubscribe link"},v="listings",y=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),E=(e,t,n,i,a)=>{let r=Math.max(Math.floor(t/n),8);return Math.min(e.reduce((e,t)=>
1Math.max(e,Math.ceil(t.length/r)),1),a)*Math.ceil(1.3*i)},I=(0,o.lD)({name:"Listings",type:v,validParentType:[o.dA.PAGE,o.dA.WRAPPER,o.ph.WRAPPER],create:e=>(0,o.ae)({type:v,data:{value:{listings:[],columns:"2",align:"left",buttonText:"Learn more",buttonColor:"#0A3C55",buttonTextColor:"#ffffff",showPrice:!0}},attributes:{padding:"20px 0px 20px 0px","background-color":"#ffffff"},children:[]},e),render(e){let{data:t,idx:n,mode:a}=e,{Wrapper:r,Section:l,Column:s,Image:c,Text:d,Button:u,Spacer:p}=o.dK,{listings:h,columns:g,buttonText:m,buttonColor:f,buttonTextColor:x,showPrice:b}=t.data.value,v=t.data.value.align||"left",I=Math.min(Math.max(Number(g)||1,1),3),N="".concat((100/I).toFixed(2),"%"),T=Math.max(600/I-20,80),A=Array.isArray(h)?h:[],w=Math.round(.525*T),S=(e,t,n)=>"".concat(n?"<style>@media only screen and (max-width:480px){.bs-listing-box{height:auto !important}}</style>":"",'<div class="bs-listing-box" style="height:').concat(t,'px;overflow:hidden">').concat(e,"</div>"),k="testing"===a?(0,o.pS)(t.attributes["css-class"],(0,o.Cw)(null!=n?n:null,t.type)):t.attributes["css-class"],R=((e,t)=>{let n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n})(A,I);return(0,i.jsx)(r,{padding:t.attributes.padding,"background-color":t.attributes["background-color"],"css-class":k,children:0===R.length?"testing"===a?(0,i.jsx)(l,{padding:"0px",children:(0,i.jsx)(s,{children:(0,i.jsx)(d,{padding:"24px",align:"center",color:"#888888","font-size":"14px",children:"No listings selected yet. Use Choose listings in the settings panel."})})}):null:R.map((e,t)=>{let n=E(e.map(e=>e.title||""),T,9.5,16,6),a=E(e.map(e=>b&&e.price||""),T,8,14,3);return(0,i.jsxs)(l,{padding:"0px",children:[e.map(r=>{var l;return(0,i.jsxs)(s,{width:N,padding:"10px","vertical-align":"top",children:[r.image?(0,i.jsx)(c,{src:r.image,href:r.url||void 0,alt:r.title,align:v,padding:"0px 0px 10px 0px","fluid-on-mobile":"true"}):(0,i.jsx)(p,{height:"".concat(w,"px"),padding:"0px 0px 10px 0px"}),(0,i.jsx)(d,{align:v,padding:"0px 0px 6px 0px","font-size":"16px","font-weight":"bold","line-height":"1.3",children:S(y(r.title),n,0===t&&r===e[0])}),b?(0,i.jsx)(d,{align:v,padding:"0px 0px 10px 0px","font-size":"".concat(14,"px"),"line-height":String(1.3),color:"#555555",children:S(r.price?y(r.price):"&nbsp;",a,!1)}):null,(null==(l=r.url)?void 0:l.trim())?(0,i.jsx)(u,{href:r.url.trim(),align:v,padding:"0px","inner-padding":"10px 20px","background-color":f,color:x,"border-radius":"4px","font-size":"14px",children:y(m||"Learn more")}):null]},r.id)}),Array.from({length:I-e.length}).map((e,t)=>(0,i.jsx)(s,{width:N,padding:"10px",children:(0,i.jsx)(p,{height:"1px",padding:"0px"})},"pad-".concat(t)))]},t)})})}});var N=n(66143),T=n(40029),A=n(6487),w=n(30942),S=n(31959),k=n(15279),R=n(20556),_=n(42536),C=n(99379);function j(e){var t;return(null!=(t=e.title)?t:"").trim()}function O(e){var t,n;return{id:String(null!=(n=e.id)?n:""),title:j(e),price:function(e){var t,n,i;let{price:a}=e;return"string"==typeof a&&a.trim()&&!Number.isFinite(Number(a))?a.trim():(0,_.$)({listingPrice:null!=a?a:void 0,listingStock:null!=(t=e.stock)?t:"",priceOptions:null!=(n=e.priceOptions)?n:"",closingDate:null!=(i=e.closingDate)?i:""})}(e),image:e.thumbnail||e.mainImage||"",url:(null==(t=e.link)?void 0:t.trim())||""}}function L(e){let{visible:t,selectedIds:n,onHide:r,onAdd:l}=e,{userMeta:o}=(0,R.Q)(),s=(null==o?void 0:o.userId)?Number(o.userId):void 0,[c,d]=(0,a.useState)(""),[u]=(0,k.Q3)(c,300),[p,h]=(0,a.useState)(!0),[g,m]=(0,a.useState)(!1),[f,x]=(0,a.useState)(!1),[b,v]=(0,a.useState)(1),[y,E]=(0,a.useState)([]),[I,N]=(0,a.useState)(1),[_,L]=(0,a.useState)(!1),[D,P]=(0,a.useState)(!1),[M,B]=(0,a.useState)({});(0,a.useEffect)(()=>{if(!t)return;let e=!1;return x(!1),C.Z.list({status:"off_market",page:1,pageSize:1}).then(t=>{e||x(!!(null==t?void 0:t.items.some(e=>"off_market"===e.status)))}),()=>{e=!0}},[t]),(0,a.useEffect)(()=>{if(!t)return;let e=!1;return L(!0),P(!1),C.Z.list({q:u||void 0,status:g?"current,under_offer,off_market":"current,under_offer",ownerUserId:p&&s?s:void 0,page:b,pageSize:20,sort:"-createdAt"}).then(t=>{if(!e){if(L(!1),!t){P(!0),E([]);return}E(t.items),N(Math.max(1,t.pagination.pageCount))}}),()=>{e=!0}},[t,u,p,g,b,s]),(0,a.useEffect)(()=>{t||(B({}),v(1),m(!1))},[t]);let U=(0,a.useMemo)(()=>new Set(n),[n]),q=Object.keys(M).length;return(0,i.jsxs)(w.l,{header:"Choose listings",visible:t,onHide:r,dismissableMask:!0,className:"w-[95vw] max-w-3xl",footer:(0,i.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,i.jsx)(T.Button,{label:"Cancel",text:!0,onClick:r}
1),(0,i.jsx)(T.Button,{label:q?"Add ".concat(q," listing").concat(1===q?"":"s"):"Add",icon:"pi pi-plus",disabled:0===q,onClick:()=>{l(Object.values(M).map(O)),r()}})]}),children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[(0,i.jsx)(S.S,{value:c,onChange:e=>{d(e.target.value),v(1)},placeholder:"Search listings",className:"flex-1 min-w-[200px]","aria-label":"Search listings"}),(0,i.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,i.jsx)(A.S,{inputId:"listing-picker-only-mine",checked:p&&!!s,onChange:e=>{h(!!e.checked),v(1)},disabled:!s}),(0,i.jsx)("span",{children:"Only my listings"})]}),f?(0,i.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,i.jsx)(A.S,{inputId:"listing-picker-off-market",checked:g,onChange:e=>{let t=!!e.checked;m(t),v(1),t||B(e=>Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return"off_market"!==t.status})))}}),(0,i.jsx)("span",{children:"Include off-market listings"})]}):null]}),D?(0,i.jsx)("p",{className:"text-sm text-red-600",children:"Listings could not be loaded. Try again."}):_&&0===y.length?(0,i.jsx)("p",{className:"text-sm text-gray-500",children:"Loading listings..."}):0===y.length?(0,i.jsx)("p",{className:"text-sm text-gray-500",children:"No listings match."}):(0,i.jsx)("ul",{className:"m-0 p-0 list-none divide-y divide-gray-200 max-h-[50vh] overflow-y-auto",children:y.map(e=>{var t;let n=String(null!=(t=e.id)?t:""),a=U.has(n),r=O(e),l=!j(e),o=!r.url,s=r.title||e.internalName||"Untitled listing";return(0,i.jsxs)("li",{className:"flex items-center gap-3 py-2",children:[(0,i.jsx)(A.S,{inputId:"listing-picker-".concat(n),checked:a||!!M[n],disabled:a||l||o,onChange:()=>(e=>{var t,n;if(!j(e)||!(null==(t=e.link)?void 0:t.trim()))return;let i=String(null!=(n=e.id)?n:"");B(t=>{let n={...t};return n[i]?delete n[i]:n[i]=e,n})})(e)}),r.image?(0,i.jsx)("img",{src:r.image,alt:"",className:"h-12 w-16 object-cover rounded shrink-0"}):(0,i.jsx)("div",{className:"h-12 w-16 rounded bg-gray-100 shrink-0"}),(0,i.jsxs)("label",{htmlFor:"listing-picker-".concat(n),className:"flex-1 min-w-0 cursor-pointer",children:[(0,i.jsx)("span",{className:"block font-medium truncate",children:s}),(0,i.jsxs)("span",{className:"block text-xs text-gray-500",children:[l?"No public title yet, so it cannot go in an email":o?"No public link yet, so it cannot go in an email":r.price||"Price not set",a?" \xb7 already in the block":""]})]})]},n)})}),I>1&&(0,i.jsxs)("nav",{className:"mt-3 flex items-center justify-between","aria-label":"Listing pages",children:[(0,i.jsx)(T.Button,{label:"Previous",text:!0,disabled:b<=1||_,onClick:()=>v(b-1)}),(0,i.jsxs)("span",{className:"text-sm text-gray-600",children:["Page ",b," of ",I]}),(0,i.jsx)(T.Button,{label:"Next",text:!0,disabled:b>=I||_,onClick:()=>v(b+1)})]})]})}let D=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],P=[{value:"1",label:"1 per row"},{value:"2",label:"2 per row"},{value:"3",label:"3 per row"}];function M(e){let{title:t,children:n}=e;return(0,i.jsxs)("section",{style:{borderBottom:"1px solid var(--color-neutral-3, #e5e6eb)"},children:[(0,i.jsx)("h4",{style:{margin:0,padding:"10px 20px",fontSize:14,fontWeight:600,background:"var(--color-fill-1, #f7f8fa)"},children:t}),(0,i.jsx)("div",{style:{padding:"12px 20px"},children:n})]})}let B=!1;var U=n(22120),q=n(87252);o.xY.setBaseUrl("/email-templates/editor/images"),B||(B=!0,o.By.registerBlocks({[v]:I}),c.Tw.add({[v]:function(){let{focusIdx:e}=(0,s.P0)(),{input:t}=(0,N.Mt)("".concat(e,".data.value.listings"),{parse:e=>e}),n=Array.isArray(t.value)?t.value:[],[r,l]=(0,a.useState)(!1);return(0,i.jsxs)(c.v$,{style:{padding:0},children:[(0,i.jsx)(M,{title:"Listings",children:(0,i.jsxs)(s.BJ,{vertical:!0,spacing:"tight",children:[0===n.length?(0,i.jsx)("span",{style:{color:"#888",fontSize:13},children:"No listings selected."}):n.map(e=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[e.image?(0,i.jsx)("img",{src:e.image,alt:"",style:{width:48,height:36,objectFit:"cover",borderRadius:4}}):(0,i.jsx)("div",{style:{width:48,height:36,background:"#eee",borderRadius:4}}),(0,i.jsx)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:13},title:e.title,children:e.title}),(0,i.jsx)(T.Button,{type:"button",icon:"pi pi-times",text:!0,rounded:!0,size:"small",severity:"danger","aria-label":"Remove ".concat(e.title),onClick:()=>{let i;return i=e.id,t.onChange(n.filter(e=>e.id!==i))}})]}
1,e.id)),(0,i.jsx)(T.Button,{type:"button",label:"Choose listings",icon:"pi pi-search",size:"small",className:"w-full",onClick:()=>l(!0)})]})}),(0,i.jsx)(M,{title:"Layout",children:(0,i.jsxs)(s.BJ,{vertical:!0,spacing:"tight",children:[(0,i.jsx)(c.zM,{label:"Columns",name:"".concat(e,".data.value.columns"),options:P}),(0,i.jsx)(c.zM,{label:"Text align",name:"".concat(e,".data.value.align"),options:D}),(0,i.jsx)(c.by,{label:"Show price",name:"".concat(e,".data.value.showPrice")})]})}),(0,i.jsx)(M,{title:"Button",children:(0,i.jsxs)(s.BJ,{vertical:!0,spacing:"tight",children:[(0,i.jsx)(c.A_,{label:"Button text",name:"".concat(e,".data.value.buttonText")}),(0,i.jsx)(c.cS,{label:"Button color",name:"".concat(e,".data.value.buttonColor"),inline:!0}),(0,i.jsx)(c.cS,{label:"Button text color",name:"".concat(e,".data.value.buttonTextColor"),inline:!0})]})}),(0,i.jsx)(M,{title:"Dimension",children:(0,i.jsxs)(s.BJ,{vertical:!0,spacing:"tight",children:[(0,i.jsx)(c.Yq,{}),(0,i.jsx)(c.i0,{})]})}),(0,i.jsx)(L,{visible:r,selectedIds:n.map(e=>e.id),onHide:()=>l(!1),onAdd:e=>t.onChange([...n,...e])})]})}}),(0,c.zq)({[v]:"icon-collection"}));let z=[{label:"Content",active:!0,blocks:[{type:o.ph.TEXT},{type:o.ph.IMAGE,payload:{attributes:{padding:"0px 0px 0px 0px"}}},{type:o.ph.BUTTON},{type:o.ph.SOCIAL},{type:o.ph.DIVIDER},{type:o.ph.SPACER},{type:o.dA.HERO},{type:o.ph.WRAPPER}]},{label:"Layout",active:!0,displayType:"column",blocks:[{title:"2 columns",payload:[["50%","50%"],["33%","67%"],["67%","33%"],["25%","75%"],["75%","25%"]]},{title:"3 columns",payload:[["33.33%","33.33%","33.33%"],["25%","25%","50%"],["50%","25%","25%"]]},{title:"4 columns",payload:[["25%","25%","25%","25%"]]}]}],V=(0,a.forwardRef)(function(e,t){let{firmId:n,initialDesign:r,subject:p,enabledBlocks:h}=e;(0,a.useEffect)(()=>{let e=document.createElement("link");return e.rel="stylesheet",e.href="/email-templates/editor/arco.css",document.head.appendChild(e),()=>{e.remove()}},[]);let g=(0,a.useRef)(null),f=(0,a.useMemo)(()=>h.includes(v)?[{label:"BusinessSales",active:!0,blocks:[{type:v}]},...z]:z,[h]),y=(0,a.useCallback)(async e=>{let t=await U.y.uploadImage(n,e);if((0,q.h)(t))throw Error(t.error);return t.url},[n]),E=(0,a.useMemo)(()=>({subject:p,subTitle:"",content:function(e){var t;return"object"==typeof e&&null!==e&&e.type===o.dA.PAGE?e:"object"==typeof e&&null!==e&&Array.isArray(null==(t=e.body)?void 0:t.rows)?function(e){var t,n,i,a,r;let l=null!=(i=null==(t=e.body)?void 0:t.values)?i:{},s=u(l.fontFamily);return m(o.dA.PAGE,{attributes:{"background-color":d(l.backgroundColor),width:null!=(a=d(l.contentWidth))?a:"600px"},data:{value:{"font-family":d(s.value),"text-color":d(l.textColor)}},children:(null!=(r=null==(n=e.body)?void 0:n.rows)?r:[]).map(x)})}(e):o.By.getBlockByType(o.dA.PAGE).create({})}(r)}),[]);return(0,a.useImperativeHandle)(t,()=>({export:()=>{let e=g.current;if(!e)return null;let t=(0,o.oJ)({data:e.content,mode:"production",context:e.content});return{design:e.content,html:l()(t).html}}})),(0,i.jsx)("div",{className:"bs-email-editor",children:(0,i.jsx)(s.$4,{data:E,height:"max(520px, calc(100vh - 220px))",autoComplete:!0,dashed:!1,mergeTags:b,onUploadImage:y,children:e=>{let{values:t}=e;return g.current=t,(0,i.jsx)(c.Wx,{categories:f,showSourceCode:!1,compact:!1,children:(0,i.jsx)(s.EG,{})})}})})})},99379:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(71063);let a={async list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new URLSearchParams;e.q&&t.set("q",e.q),e.status&&t.set("status",e.status),null!=e.ownerUserId&&t.set("ownerUserId",String(e.ownerUserId)),null!=e.page&&t.set("page",String(e.page)),null!=e.pageSize&&t.set("pageSize",String(e.pageSize)),e.sort&&t.set("sort",e.sort);let n="https://api2.businesssales.com.au";if(!n)return console.error("NEXT_PUBLIC_API_V2_HOST is not configured"),null;let a=t.toString();return(0,i.qb)("/api/v1/listings".concat(a?"?".concat(a):""),{method:"GET"},n)}}}}]);

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.