12 cold spring drive trumbull, ctstarkey ranch development

Written by on July 7, 2022

define("controllers/Property/PropertySidebar",["require","ControllerObjects","Application","Objects","Utilities"],function(e){return function(t){function n(e){switch(e.type){case"trackUserEvent":e.data&&(e.data.viewSourceID=3);break;case"leadgenForm.show":d();break;case"sellspeed.show":return B.exists("showSellSpeed")&&B.call("showSellSpeed"),!1;case"sellspeed.open":return B.exists("openSellSpeed")&&B.call("openSellSpeed"),!1;case"getAvailability.success":return D&&j.get("myListingAdminPanel").event("getAvailability.data",e.data.getAvailabilityData),!1;case"getAvailability.failure":return D&&j.get("myListingAdminPanel").event("getAvailability.failure"),!1;case"userItem.phoneNumberClicked":return"function"==typeof gtag&>ag("event","listing_lead_gen_phone_click"),!1}return B.call("bubble",e),!1}function o(e){W.update(e),i()}function i(){try{W.requireDom(),W.require("details"),W.require("propertyAddressItem"),W.optional("mlsFeedbackParams"),W.optional("qs")}catch(e){throw e}q.getCurrentUser(function(e){var t,n,o,i;A=e.user,S=null===(t=A)||void 0===t?void 0:null===(n=t.currentDetails)||void 0===n?void 0:null===(o=n.products)||void 0===o?void 0:null===(i=o.pro)||void 0===i?void 0:i.availableForUse,H.template.get({$dom:W.$dom,data:{details:W.get("details"),pro:S,permissions:A.permissions,coStarBrand:_,isCitysnap:E},pass:{$mobileActionsContainer:W.get("mobileActionsContainer"),$mobileConversationsContainer:W.get("mobileConversationsContainer"),$mobileAgentsContainer:W.get("mobileAgentsContainer")}})})}function r(e){var t,o,r,u,v,m,C,b;h=e.$dom;var M=e.data;y=e.data.details,null!==(t=y)&&void 0!==t&&null!==(o=t.status)&&void 0!==o&&o.enableCoExclusiveListing&&(j.add("listingRelatedListings",new x.ChildController({type:"controllers/Property/ListingRelatedListings",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("listingRelatedListings",{$dom:h.divRelatedListings,data:{listingID:y.listingID}}));var L=W.get("propertyAddressItem"),k=W.get("mlsFeedbackParams");if(D=!1,A&&A.permissions&&A.permissions.mlsAgent){var R,F=y&&y.agentOnly&&y.agentOnly.agents.filter(function(e){return e.agent.entityID===A.entityID&&e});if(D=F&&F.length>=1,D&&(I=F.role),F&&A.permissions.homeSnapAdminTools&&null!==(R=Homesnap)&&void 0!==R&&R.environmentType&&1!=(1&Homesnap.environmentType)){var P=$("").addClass("font-12").text("to toggle the My Listing Admin Panel"),U=$("").addClass("bs4--border-0 bs4--bg-transparent bs4--text-hs-blue").text("Click Here");P.prepend(U),h.divFloatingContainer.append(P),U.on("click",function(e){return W.set("currentUserRelatedToListing",!D),i(),!1}),D=W.get("currentUserRelatedToListing")}a(e.pass.$mobileActionsContainer)}if(y&&y.conversations&&l(e.pass.$mobileConversationsContainer),(null!==(r=A)&&void 0!==r&&null!==(u=r.permissions)&&void 0!==u&&u.mlsAgent||S)&&p(),y.status&&y.status.canGenerateRapidCMA&&!D&&(j.add("requestCMA",new x.ChildController({type:"controllers/ListingRequestCMA",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("requestCMA",{$dom:h.divRequestCMA,data:{listing:y,pro:S}}),h.divAgentActions.removeClass("hidden")),y.agentOnly&&(y.agentOnly.status&&y.agentOnly.status.checkForShowingUrl&&(D?g(L):(j.add("scheduleShowing",new x.ChildController({type:"controllers/ListingScheduleShowing",namespace:N.get(),register:{bubble:n,showingUrlSuccess:function(){h.divAgentActions.removeClass("hidden")},showingUrlHomesnapSuccess:function(){g(L)}}}),!0),W.updateController("scheduleShowing",{$dom:h.divScheduleShowing,data:{propertyAddressItem:W.get("propertyAddressItem")}}))),y.agentOnly.agents&&!D)){h.divRelatedAgentsPanel.length>0&&h.divRelatedAgentsPanel.removeClass("bs4--d-none"),c(e.pass.$mobileAgentsContainer);var O=y.agentOnly.agents.length>1;j.add("relatedAgents",new x.ChildControllerArray({type:"controllers/ListingRelatedAgent",namespace:N.get(),register:{bubble:n,listingRelatedAgentCheck:function(e){j.get("relatedAgents").event("check",e.data),j.get("conversationInlineSend").event("relatedAgentsRecipient",e.data)},listingRelatedAgentUnCheck:function(e){j.get("relatedAgents").event("uncheck",e.data)}}}),!0),W.updateController("relatedAgents",{$dom:h.divRelatedAgents,data:y.agentOnly.agents.map(function(e,t){return{relatedAgent:e,showCheckBox:O&&e.status.showWithMessageTextBox,checked:0===t}})}),j.add("conversationInlineSend",new x.ChildController({type:"controllers/ConversationInlineSend",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("conversationInlineSend",{$dom:h.divInlineConversation,data:{relatedAgent:y.agentOnly.agents[0],listing:y}})}if(y&&!y.listingID&&S&&L&&L.propertyID&&H.getOwner.get({$dom:W.$dom,data:{propertyID:L.propertyID},success:s,failure:function(){throw W&&console.info(W),new Error("Property Sidebar controller: Unhandled Error in GetOwnershipSnapshot web service")}}),null!==(v=A)&&void 0!==v&&null!==(m=v.permissions)&&void 0!==m&&m.agent){var T;null!==L&&void 0!==L&&null!==(T=L.transactionType)&&void 0!==T&&T.forSale&&!y.listingID&&h.btnNetSheet.on("click",function(){return j.add("netSheetCalculator",new x.ChildController({type:"controllers/NetSheetCalculator",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("netSheetCalculator",{data:{propertyAddressItem:L,propertyDetails:y}}),!1}).removeClass("hidden"),j.add("advertiseUnits",new x.ChildController({type:"controllers/AdvertiseUnits",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("advertiseUnits",{$dom:h.divAdvertiseUnits,data:{placementType:L&&L.listing?3:4,currentUser:A}})}var G=k&&"object"==typeof k&&Object.keys(k).length>0;!L||!h.divLeadGenForm||G||null!==(C=A)&&void 0!==C&&null!==(b=C.permissions)&&void 0!==b&&b.agent||d(e.pass.$mobileAgentsContainer),y.conversations&&y.conversations.length>0&&h.divRelatedConversations&&(j.add("conversationItem",new x.ChildControllerArray({type:"controllers/ConversationItem",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("conversationItem",{$dom:h.divRelatedConversations,data:y.conversations.map(function(e){return{conversationItem:e,relatedConversation:!0}})}),h.btnSendInAMessage.on("click",function(){return j.add("sendInAMessageMaster",new x.ChildController({type:"controllers/SendInAMessageMaster",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("sendInAMessageMaster",{data:{paItem:y}}),!1})),A&&A.currentDetails&&M.isCitysnap&&(A.currentDetails.clientAppType&&!A.currentDetails.clientAppType.isAppUser? 16 Wendover Rd "now":n<60?n.toString()+"s":a<60?a.toString()+"m":o<24?o.toString()+"h":i<7?i.toString()+"d":s<5?s.toString()+"w":c.toString()+"mo"}},getAgoAsDays:function(e){var t=Date.now();if(e){var r=t-e.getTime(),n=Math.round(r/1e3),a=Math.round(n/60),o=Math.round(a/60);return Math.round(o/24)}},getAgoFriendly:function(e){var t=Date.now();if(e){var r=t-e.getTime(),n=Math.round(r/1e3),a=Math.round(n/60),o=Math.round(a/60),i=Math.round(o/24);return n<=0?"Today":n<60?"Today":a<60?"Today":o<24?"Today":o>=24&&o<48?"Yesterday":i<7? {raw:e,commas:e.toLocaleString(),short:this.getShortNumber(e),decimal0:e.toLocaleString(void 0,{style:"decimal",maximumFractionDigits:0}),decimal1:e.toLocaleString(void 0,{style:"decimal",maximumFractionDigits:1,minimumFractionDigits:1}),decimal2:e.toLocaleString(void 0,{style:"decimal",maximumFractionDigits:2,minimumFractionDigits:2}),decimal3:e.toLocaleString(void 0,{style:"decimal",maximumFractionDigits:3,minimumFractionDigits:3})}:null},getPercent:function(e,t){if(e||0===e){var r=t||1,n=this.getNumber(Math.abs(e*r));return{raw:e*r,abs:n.raw,commas:n.commas+"%",decimal0:n.decimal0+"%",decimal1:n.decimal1+"%",decimal2:n.decimal2+"%",decimal3:n.decimal3+"%",isPositive:e>0}}return null},getPhoneNumber:function(e,t){if(!e)return null;var r=e.replace(/\D/g,"").replace(/^1/,""),n=null!==t&&void 0!==t?t:r.substr(10,100),a="(".concat(r.substr(0,3),") ").concat(r.substr(3,3),"-").concat(r.substr(6,4)),o="".concat(r.substr(0,3),"-").concat(r.substr(3,3),"-").concat(r.substr(6,4)),i="".concat(r.substr(0,3),".").concat(r.substr(3,3),". Ten-X holds real estate licenses in all 50 states and D.C.

§ 442-H New York Standard Operating Procedures

New York Fair Housing Notice

TREC: Information about brokerage services, Consumer protection notice

California DRE #01937601

Contact Ten-X Brokerage