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 j.exists("showSellSpeed")&&j.call("showSellSpeed"),!1;case"sellspeed.open":return j.exists("openSellSpeed")&&j.call("openSellSpeed"),!1;case"getAvailability.success":return R&&B.get("myListingAdminPanel").event("getAvailability.data",e.data.getAvailabilityData),!1;case"userItem.phoneNumberClicked":return"function"==typeof gtag&>ag("event","listing_lead_gen_phone_click"),!1}return j.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;h=e.user,S=null===(t=h)||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:h.permissions,coStarBrand:_},pass:{$mobileActionsContainer:W.get("mobileActionsContainer"),$mobileConversationsContainer:W.get("mobileConversationsContainer"),$mobileAgentsContainer:W.get("mobileAgentsContainer")}})})}function r(e){var t,o,r,u;A=e.$dom,y=e.data.details;var v=_.includedMLSIds;y.mlsID&&v.indexOf(y.mlsID)>-1&&(B.add("listingRelatedListings",new x.ChildController({type:"controllers/Property/ListingRelatedListings",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("listingRelatedListings",{$dom:A.divRelatedListings,data:{listingID:y.listingID}}));var m=W.get("propertyAddressItem"),C=W.get("mlsFeedbackParams");if(R=!1,h&&h.permissions&&h.permissions.mlsAgent){var b,M=y&&y.agentOnly&&y.agentOnly.agents.filter(function(e){return e.agent.entityID===h.entityID&&e});if(R=M&&M.length>=1,R&&(I=M.role),M&&h.permissions.homeSnapAdminTools&&null!==(b=Homesnap)&&void 0!==b&&b.environmentType&&1!=(1&Homesnap.environmentType)){var L=$("").addClass("font-12").text("to toggle the My Listing Admin Panel"),k=$("").addClass("bs4--border-0 bs4--bg-transparent bs4--text-hs-blue").text("Click Here");L.prepend(k),A.divFloatingContainer.append(L),k.on("click",function(e){return W.set("currentUserRelatedToListing",!R),i(),!1}),R=W.get("currentUserRelatedToListing")}a(e.pass.$mobileActionsContainer)}if(y&&y.conversations&&l(e.pass.$mobileConversationsContainer),(null!==(t=h)&&void 0!==t&&null!==(o=t.permissions)&&void 0!==o&&o.mlsAgent||S)&&p(),y.status&&y.status.canGenerateRapidCMA&&!R&&(B.add("requestCMA",new x.ChildController({type:"controllers/ListingRequestCMA",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("requestCMA",{$dom:A.divRequestCMA,data:{listing:y,pro:S}}),A.divAgentActions.removeClass("hidden")),y.agentOnly&&(y.agentOnly.status&&y.agentOnly.status.checkForShowingUrl&&(R?g(m):(B.add("scheduleShowing",new x.ChildController({type:"controllers/ListingScheduleShowing",namespace:N.get(),register:{bubble:n,showingUrlSuccess:function(){A.divAgentActions.removeClass("hidden")},showingUrlHomesnapSuccess:function(){g(m)}}}),!0),W.updateController("scheduleShowing",{$dom:A.divScheduleShowing,data:{propertyAddressItem:W.get("propertyAddressItem")}}))),y.agentOnly.agents&&!R)){A.divRelatedAgentsPanel.length>0&&A.divRelatedAgentsPanel.removeClass("bs4--d-none"),c(e.pass.$mobileAgentsContainer);var P=y.agentOnly.agents.length>1;B.add("relatedAgents",new x.ChildControllerArray({type:"controllers/ListingRelatedAgent",namespace:N.get(),register:{bubble:n,listingRelatedAgentCheck:function(e){B.get("relatedAgents").event("check",e.data),B.get("conversationInlineSend").event("relatedAgentsRecipient",e.data)},listingRelatedAgentUnCheck:function(e){B.get("relatedAgents").event("uncheck",e.data)}}}),!0),W.updateController("relatedAgents",{$dom:A.divRelatedAgents,data:y.agentOnly.agents.map(function(e,t){return{relatedAgent:e,showCheckBox:P&&e.status.showWithMessageTextBox,checked:0===t}})}),B.add("conversationInlineSend",new x.ChildController({type:"controllers/ConversationInlineSend",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("conversationInlineSend",{$dom:A.divInlineConversation,data:{relatedAgent:y.agentOnly.agents[0],listing:y}})}if(y&&!y.listingID&&S&&m&&m.propertyID&&H.getOwner.get({$dom:W.$dom,data:{propertyID:m.propertyID},success:s,failure:function(){throw W&&console.info(W),new Error("Property Sidebar controller: Unhandled Error in GetOwnershipSnapshot web service")}}),null!==(r=h)&&void 0!==r&&null!==(u=r.permissions)&&void 0!==u&&u.agent){var D;null!==m&&void 0!==m&&null!==(D=m.transactionType)&&void 0!==D&&D.forSale&&!y.listingID&&A.btnNetSheet.on("click",function(){return B.add("netSheetCalculator",new x.ChildController({type:"controllers/NetSheetCalculator",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("netSheetCalculator",{data:{propertyAddressItem:m,propertyDetails:y}}),!1}).removeClass("hidden"),B.add("advertiseUnits",new x.ChildController({type:"controllers/AdvertiseUnits",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("advertiseUnits",{$dom:A.divAdvertiseUnits,data:{placementType:m&&m.listing?3:4,currentUser:h}})}var F=R&&y.sListingStatus&&(y.sListingStatus.active||y.specialFeatures.comingSoon),O=y&&!y.listingID&&h&&h.permissions&&h.permissions.mlsAgent,T=h&&h.permissions&&h.permissions.homeSnapAdminTools;(O||F||T)&&(B.add("myPhotography",new x.ChildController({type:"controllers/account/MyPhotography",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("myPhotography",{$dom:A.myPhotographyContainer,data:{details:y,pro:S}}),B.add("findPhotographer",new x.ChildController({type:"controllers/FindPhotographer",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("findPhotographer",{$dom:A.findPhotographer,data:{details:y,pro:S}}));var U=C&&"object"==typeof C&&Object.keys(C).length>0;m&&A.divLeadGenForm&&!U&&d(e.pass.$mobileAgentsContainer),y.conversations&&y.conversations.length>0&&A.divRelatedConversations&&(B.add("conversationItem",new x.ChildControllerArray({type:"controllers/ConversationItem",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("conversationItem",{$dom:A.divRelatedConversations,data:y.conversations.map(function(e){return{conversationItem:e,relatedConversation:!0}})}),A.btnSendInAMessage.on("click",function(){return B.add("sendInAMessageMaster",new x.ChildController({type:"controllers/SendInAMessageMaster",namespace:N.get(),register:{bubble:n}}),!0),W.updateController("sendInAMessageMaster",{data:{paItem:y}}),!1})),h&&h.currentDetails&&(h.currentDetails.clientAppType&&!h.currentDetails.clientAppType.isAppUser? / Etux Karen, Johnson Anthony Bowden / Etux Ruth, Isley John Robert / Etux Cynthia D, Curtis Michael Hugh & Etal Homesnap.templates["controllers/Header.html"] = '{{#with data}}
Allegiant Not Eligible For Mobile Check In,
Farm Houses For Sale In Florida Under $100 000,
Can You Buy Scratch Offs With A Debit Card,
Articles C
{{/with}}'; Taxes paid after this date will incur a 1% interest penalty per month. [0]}} , 0&&"{"===e.substring(0,1)&&"}"===e.substring(r-1,r))try{t=JSON.parse(e)}catch(e){}return t},deleteNullProperties:function(e){return e? View upcoming meeting materials, archived video meetings, and contracts for review by council. Our Mission: To WebThere are no personal income taxes on wages and salaries in Tennessee. Generally, the regular City Council meets on Tuesday at 2 p.m. and/or 5 p.m. / Etux Mary Sue, Gupton Linda Gail Additionally, all fees/penalties may NOT appear online. / Etux Karen Reed, Johnson Julian "),Object.keys(e.queryString).forEach(function(t){"brokerageID"===t&&(r.withBrokerageID=!0),r.url=r.url.concat("".concat(t,"="),e.queryString[t],"&")}))}return r},reloadWithBrokerage:function(e,t){var r,a,n=null===e||void 0===e?void 0:null===(r=e.agentDetails)||void 0===r?void 0:null===(a=r.brokerageDetails)||void 0===a?void 0:a.entityID;if((null===t||void 0===t||!t.withBrokerageID)&&null!==t&&void 0!==t&&t.url&&n)return t.url.indexOf("&")>-1&&!t.url.endsWith("&")?t.url="".concat(t.url,"&"):-1!==t.url.indexOf("&")||t.url.endsWith("?")||(t.url="".concat(t.url,"? (t.instagram=!0,t.name="Instagram",t.color={text:"#c93a9b",background:"#c9399b",rgb:"201,57,155",gradient:"radial-gradient(at bottom right, #7D3CAF 0%, #B33393 100%)"},t.icon={color:n.path.getImageUrl("/listing-promos/ig-colored-256px.png"),colorSM:n.path.getImageUrl("/listing-promos/ig-colored-70px-2x.png"),white:n.path.getImageUrl("/listing-promos/ig-white-70px-2x.png"),grey:n.path.getImageUrl("/listing-promos/ig-grey-70px-2x.png")}):3===e? / Etux Geneva K, Rivera Alvaro Jimenez And (s.price=a.currentPrice?a.currentPrice.raw:void 0,s.sPropertyType2=a.sPropertyType2.raw):(s.price=a.value?a.value.raw:void 0,s.sPropertyType2=a.mappedSPropertyType),s.yearBuilt=a.yearBuilt,s.latitude=a.latitude,s.longitude=a.longitude,m.updateController("similar",{$dom:n.divSimilar,data:s})}else n.divSimilar.remove()}function i(){u.uninit()}function l(e,t){u.event(e,t)}var n,p=e("ControllerObjects"),d=new p.Unique(t),c=new p.Callbacks,u=new p.ChildControllerManager,m=new p.StateManager(u,{}),y={template:new p.Getter({namespace:d.get(),success:function(e){try{s(e)}catch(e){throw m&&console.info(m),e}},template:{url:"controllers/Property/PropertyCollapses.html",dom:["divSchools","divMap","divMassTransit","divFeatures","divMortgageCalculator","divSimilar","divCommuteTimes"]}})};return{update:o,restore:function(e){m.restore(e,a)},uninit:i,getState:m.getState.bind(m),register:c.register.bind(c),event:l}}});