Homesnap.templates["controllers/ActionBar.html"] = '{{#with data}} {{/with}}'; OR . "Pending":"Contract",i="#ff7f17";else if(e.listing.sListingStatus.sold)o=s? 7304 NW 164th Ave Portland, OR, 97229 - Zillow define("controllers/ActionBar",["require","ControllerObjects","Application","jquery"],function(e){return function(t){function r(e){m.call("bubble",e)}function o(e){y.update(e),n()}function n(){try{y.requireDom(),y.require("propertyAddressItem"),y.optional("showFavorite"),y.optional("showShare"),y.optional("showContactAgent"),y.optional("showInverseColors")}catch(e){throw e}p=!1,v=function(){return w.Deferred()}(),A.template.get({$dom:y.$dom,data:{propertyAddressItem:y.get("propertyAddressItem"),showSendInAMessage:y.get("showFavorite",!1),showFavorite:y.get("showFavorite",!1),showShare:y.get("showShare",!1),showContactAgent:y.get("showContactAgent",!1),showInverseColors:y.get("showInverseColors",!1)}})}function i(e){var t;u=e.$dom;var o=e.data,n=["win32","win64","windows"],i=-1!==n.indexOf(null===(t=navigator)||void 0===t?void 0:t.platform.toLowerCase());u.liShare.on("show.bs.dropdown",function(e){var t;I.add("share",new g.ChildController({type:"controllers/ActionBarShare",namespace:f.get(),register:{bubble:r,actionBarShareHide:function(){u.liShare.removeClass("open")}}}),!0),null!==(t=navigator)&&void 0!==t&&t.share&&!i&&u.ulShare.addClass("hidden"),y.updateController("share",{$dom:u.ulShare,data:{propertyAddressItem:o.propertyAddressItem}}),p=!0}),u.liSendInAMessage.on("click",function(e){C.done(function(){return c.registrationStatus.registered?v.done(function(e){s(e,o.propertyAddressItem)}):r({type:"account.mode"}),!1})}),null!==o&&void 0!==o&&o.showFavorite&&a()}function s(e,t){I.add("sendInAMessageMaster",new g.ChildController({type:"controllers/SendInAMessageMaster",namespace:f.get(),register:{bubble:r}}),!0),y.updateController("sendInAMessageMaster",{data:{paItem:t,listingDetails:e}})}function a(){u&&u.liFavorite.length&&y.get("propertyAddressItem")&&(I.add("favorite",new g.ChildController({type:"controllers/Property/PropertyFavorite",namespace:f.get(),register:{bubble:r}}),!0),y.updateController("favorite",{$dom:u.liFavorite,data:{propertyAddressItem:y.get("propertyAddressItem")}}))}function l(e){var t,r,o=y.get("propertyAddressItem"),n=(null===o||void 0===o?void 0:null===(t=o.listing)||void 0===t?void 0:t.id)===(null===e||void 0===e?void 0:null===(r=e.ids)||void 0===r?void 0:r.listingID),i=o&&!o.listing&&(null===e||void 0===e?void 0:e.ids)&&!e.ids.listingID&&o.propertyID===e.ids.propertyID,s=o&&!o.listing&&(null===e||void 0===e?void 0:e.ids)&&!e.ids.listingID&&!o.propertyID&&!e.ids.propertyID&&o.id===e.ids.propertyAddressID;(n||i||s)&&(null!==e&&void 0!==e&&e.favoriteStatus&&null!==o&&void 0!==o&&o.status? [0].status.showWithMessageTextBox}}