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AEiC,KAASjC,EAAEiC,IAC7C,KACD,MACF,CAACkoB,IACH3jB,QAAO,SAASgkB,EAAGxqB,GAAK,OAAOA,IAAM,IAExC,GAAU,MAANsqB,EACF,OAAOltB,EACF,GAAI0E,OAAO4mB,UAAUC,eAAeC,KAAKqB,EAAcK,GAC5D,OAAOL,EAAaK,GAAIltB,GAExB,MAAM0sB,EAAW,yBAA2BQ,EAAK,SAQ3D,IAAInpB,EAAS6oB,EAAO,IAGpB7oB,EAAO6oB,OAASA,EAGhB7oB,EAAOspB,OAAS,SAAS/B,EAAWuB,GAClC,IAAIS,EAAUV,EAAOC,GACrBvB,EAAUvnB,OAAS,WACjB,IAAIgpB,EAAOxjB,MAAM+hB,UAAUxQ,MAAM0Q,KAAKK,WAEtC,OADAkB,EAAKQ,QAAQrG,MACNoG,EAAQE,MAAMjD,EAAQwC,KAM/B/D,EAAOC,QAAUllB,IAOnBynB,KAAKtE,KAAMA,Q","sources":["webpack:///../../../../../../../tools/nodev6/src/API/Connections.js","webpack:///../../../../../../../tools/nodev6/src/API/ContentSubscription.js","webpack:///../../../../../../../tools/nodev6/src/API/SaveReblast.js","webpack:///../../../../../../../tools/nodev6/src/API/UserSearch.js","webpack:///../../../../../../../tools/nodev6/src/API/SaveReblastAttachment.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Attachment/CommentAttachment.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Attachment/CommentAttachmentPreview.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Avatar.js","webpack:///../../../../../../../tools/nodev6/src/API/ClientStorage.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/ClientStorage.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/ConfirmAlert.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/SendMessage.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/ConnectButton.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/DateFromNow.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/ErrorMessage.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/IdBar.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/PopUp.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Reblast/Content.js","webpack:///../../../../../../../tools/nodev6/src/API/SaveLike.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Reblast/ReblastTools.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Reblast/ReblastImpressions.js","webpack:///../../../../../../../tools/nodev6/src/API/Reblast.js","webpack:///../../../../../../../tools/nodev6/src/API/RemoveReblast.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Reblast/ReblastActions.js","webpack:///../../../../../../../tools/nodev6/src/API/SaveComment.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Reblast/DeleteComment.js","webpack:///../../../../../../../tools/nodev6/src/API/SearchComment.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Reblast/CommentsView.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Reblast/CommentAuthor.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Reblast/CommentsContainer.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Reblast/ReblastContainer.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Share.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Spinner.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Tasks/userTasks.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Tasks/Container.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Tooltip.js","webpack:///../../../../../../../tools/nodev6/src/API/Notifications.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/TrackPhoneNumber.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/UserInfo.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/UserMention.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/ZillowWidget.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Recommendation/Header.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Recommendation/Content.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Recommendation/Footer.js","webpack:///../../../../../../../tools/nodev6/src/components/Common/Recommendation/Container.js","webpack:///../../../../../../../tools/nodev6/src/components/ReblastDetails/RecommendationAdapter.js","webpack:///../../../../../../../tools/nodev6/src/components/ReblastDetails/ReblastDetailsAdapter.js","webpack:///../../../../../../../tools/nodev6/src/components/ReblastDetails/ReblastNotificationToggle.js","webpack:///../../../../../../../tools/nodev6/src/components/ReblastDetails/index.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/equals.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/internal/_arrayFromIterator.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/internal/_equals.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/internal/_functionName.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/internal/_has.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/internal/_includesWith.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/internal/_isArguments.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/internal/_objectIs.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/keys.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/pathEq.js","webpack:///../../../../../../../tools/nodev6/node_modules/ramda/src/type.js","webpack:///../../../../../../../tools/nodev6/node_modules/string-format/index.js"],"sourcesContent":["import axios from 'axios';\r\nimport _path from 'ramda/src/path';\r\nimport request from './AxiosRequest';\r\nimport GeneralUtility from '../utilities/generalUtility';\r\n\r\nlet initOnce = false;\r\nlet pending = [];\r\nlet error = false;\r\nlet cancel = null;\r\nlet connections = null;\r\nconst pendingRequests = [];\r\n\r\nconst defer = () => {\r\n var deferred = {};\r\n var promise = new Promise((resolve, reject) => {\r\n deferred.resolve = resolve;\r\n deferred.reject = reject;\r\n });\r\n deferred.promise = promise;\r\n return deferred;\r\n};\r\n\r\nconst init = () => {\r\n if (initOnce) {\r\n return;\r\n }\r\n\r\n initOnce = true;\r\n\r\n const r = request({\r\n url: `/Services/api/contacts/relationships`,\r\n method: 'GET',\r\n cancel: true\r\n });\r\n\r\n cancel = r.cancel;\r\n GeneralUtility.appendPendingRequest(pendingRequests, r);\r\n r.request\r\n .then(response => {\r\n connections = response.data;\r\n pending.forEach(pendingRequest => {\r\n pendingRequest.resolve(connections);\r\n });\r\n })\r\n .catch(error => {\r\n if (!axios.isCancel(error)) {\r\n error = true;\r\n pending.forEach(pendingRequest => {\r\n pendingRequest.reject(error);\r\n });\r\n GeneralUtility.logWebRequestFailure(error, 'GetConnections');\r\n }\r\n });\r\n};\r\n\r\nconst browse = () => {\r\n if (!initOnce) {\r\n init();\r\n }\r\n if (connections) {\r\n return { request: Promise.resolve(connections), cancel: cancel };\r\n }\r\n if (error) {\r\n return { request: Promise.reject(new Error('fail')), cancel: cancel };\r\n }\r\n\r\n const pendingRequest = defer();\r\n pending.push(pendingRequest);\r\n return { request: pendingRequest.promise, cancel: cancel };\r\n};\r\n\r\nconst add = data => {\r\n const r = request({\r\n url: `/Services/ContactService.svc/json/Save`,\r\n method: 'POST',\r\n data\r\n });\r\n\r\n r.then(response => {\r\n const original = connections.find(i => i.UserId === data.contact.KnownContactUserId);\r\n const update = connections.filter(i => i.UserId !== data.contact.KnownContactUserId);\r\n\r\n update.push({\r\n UserId: data.contact.KnownContactUserId,\r\n ImFollowing: true,\r\n FollowingMe: _path(['FollowingMe'], original),\r\n Connected: _path(['FollowingMe'], original)\r\n });\r\n\r\n connections = update;\r\n });\r\n\r\n return r;\r\n};\r\n\r\nconst reset = () => {\r\n initOnce = false;\r\n connections = null;\r\n pending = [];\r\n error = false;\r\n cancel = null;\r\n};\r\n\r\nconst Connections = {\r\n browse,\r\n add,\r\n reset\r\n};\r\n\r\nexport default Connections;\r\n","import request from './AxiosRequest';\r\n\r\nconst getNotificationSetting = contentId => \r\n\trequest({\r\n\t\turl: `/Services/api/contentsubscription?ContentId=${contentId}`,\r\n\t\tmethod: 'GET'\r\n\t});\r\n\r\nconst setNotificationSetting = data => \r\n\trequest({\r\n\t\turl: '/Services/api/contentsubscription',\r\n\t\tmethod: 'POST',\r\n\t\tdata\r\n\t});\r\n\r\nconst ContentSubscriptionService = {\r\n\tgetNotificationSetting,\r\n\tsetNotificationSetting\r\n};\r\n\r\nexport default ContentSubscriptionService;\r\n","import request from './AxiosRequest';\r\n\r\nconst add = params =>\r\n\trequest({\r\n\t\tmethod: 'POST',\r\n\t\turl: '/Services/api/reblast/save',\r\n\t\tdata: params\r\n\t});\r\n\r\nconst deleteReblast = reblastId =>\r\n\trequest({\r\n\t\tmethod: 'POST',\r\n\t\turl: '/Services/MainService.svc/json/SaveReblast',\r\n\t\tdata: {\r\n\t\t\treblast: {\r\n\t\t\t\tIdentifier: reblastId,\r\n\t\t\t\tDelete: true\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\nconst SaveReblast = {\r\n\tadd,\r\n\tdelete: deleteReblast\r\n};\r\n\r\nexport default SaveReblast;\r\n","import request from './AxiosRequest';\r\n\r\nconst read = data =>\r\n request({\r\n url: `/services/api/usersearch`,\r\n method: 'GET',\r\n cancel: true,\r\n data\r\n });\r\n\r\nconst search = data =>\r\n request({\r\n url: `/services/Api/usersearch/Search`,\r\n method: 'GET',\r\n cancel: true,\r\n data\r\n });\r\n\r\nconst mention = data =>\r\n request({\r\n url: `/services/Api/usersearch/mentions`,\r\n method: 'GET',\r\n cancel: true,\r\n data\r\n });\r\n\r\nconst UserSearch = {\r\n read,\r\n search,\r\n mention\r\n};\r\n\r\nexport default UserSearch;\r\n","import request from './AxiosRequest';\r\n\r\nconst add = (params) =>\r\n\trequest({\r\n\t\tmethod: 'POST',\r\n\t\turl: '/Services/StreamedDataService.svc/json/SaveReblastAttachment',\r\n\t\tdata: params\r\n\t});\r\n\r\nconst SaveReblastAttachment = {\r\n\tadd\r\n}\r\n\r\nexport default SaveReblastAttachment;\r\n","import React, { useState, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _path from 'ramda/src/path';\r\nimport SaveReblastAttachment from '../../../API/SaveReblastAttachment';\r\nimport Tooltip from '../Tooltip';\r\nimport LogglyLogger from '../../../API/Loggly';\r\nimport resx from '../../../utilities/resx';\r\nimport { LOGGLY_LEVEL_ERROR, RESX_REBLASTS, RESX_GLOBAL } from '../../../Constants';\r\nimport { withMessage } from '../Message';\r\n\r\nfunction CommentAttachment(props) {\r\n const [errorValidationError, setErrorValidationError] = useState(null);\r\n const refFileImg = useRef(null);\r\n const refFilePdf = useRef(null);\r\n\r\n function fileAttachementValidation(files, contentType) {\r\n let isFileCorrectType;\r\n const fileName = files.name;\r\n const fileSize = files.size;\r\n\r\n setErrorValidationError(null);\r\n\r\n if (!fileName || !fileSize || !contentType) return false;\r\n\r\n // extension validation\r\n const filExt = fileName.split('.').pop();\r\n const isValidExtension = /(jpeg|png|pdf|jpg|gif|tiff|tif|bmp)$/gi.test(filExt);\r\n\r\n if (!isValidExtension) {\r\n setErrorValidationError(resx(RESX_GLOBAL, 'INVALID_FILE_TYPE'));\r\n return false;\r\n }\r\n\r\n // size validation\r\n const isValidSize = !(fileSize <= 0 || fileSize > 20000000);\r\n\r\n if (!isValidSize) {\r\n setErrorValidationError(resx(RESX_REBLASTS, 'REBLAST_ATTACHMENT_ERROR'));\r\n return false;\r\n }\r\n\r\n // correct file type\r\n const isImage = /(jpeg|png|jpg|gif|tiff|tif|bmp)$/gi.test(filExt);\r\n const isPdf = /(pdf)$/gi.test(filExt);\r\n\r\n if ((isImage && contentType === '5') || (isPdf && contentType === '4')) {\r\n isFileCorrectType = false;\r\n } else if ((isImage && contentType === '4') || (isPdf && contentType === '5')) {\r\n isFileCorrectType = true;\r\n }\r\n\r\n if (!isFileCorrectType) {\r\n setErrorValidationError(resx(RESX_REBLASTS, 'REBLASTS_FILE_ATTACHMENT_ERROR'));\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n function fileAttachementOnChange(e) {\r\n const contentTypeId = e.target.dataset.attachtype;\r\n const data = new FormData();\r\n\r\n data.append('file', e.target.files[0]);\r\n data.append('contenttypeid', contentTypeId);\r\n\r\n if (fileAttachementValidation(e.target.files[0], contentTypeId)) {\r\n // adding spinner\r\n const isLoadingTimeout = setTimeout(() => {\r\n props.update(prevState => ({ ...prevState, isUploadingAttachment: true }));\r\n }, 500);\r\n\r\n // save attchments\r\n SaveReblastAttachment.add(data)\r\n .then(response => {\r\n const result = _path(['data'], response);\r\n\r\n if (!result || !result.Success) {\r\n throw new Error(result.Message);\r\n }\r\n\r\n const attachmentImagePreview = result.Data.AttachmentImage\r\n ? result.Data.AttachmentImage[0].Url\r\n : '/assets/home/images/adobe.png';\r\n const commentsAttachmentsId = result.Data.AttachmentImage\r\n ? result.Data.AttachmentImage[0].UniqueKey\r\n : result.Data.AttachmentDocument.UniqueKey;\r\n props.update(prevState => ({\r\n ...prevState,\r\n commentsAttachmentsId: commentsAttachmentsId,\r\n commentsAttachmentsImage: attachmentImagePreview,\r\n commentsAttachmentTypeId: contentTypeId\r\n }));\r\n\r\n // clear fileList\r\n refFileImg.current.value = '';\r\n refFilePdf.current.value = '';\r\n })\r\n .catch(error => {\r\n props.message.addMessage({\r\n message: resx(RESX_GLOBAL, 'GENERIC_WEBSERVICE_ERROR_MESSAGE'),\r\n type: 'error'\r\n });\r\n LogglyLogger.add(\r\n LOGGLY_LEVEL_ERROR,\r\n 'Saving comments attachment failure on the details page',\r\n error\r\n );\r\n })\r\n .then(() => {\r\n clearTimeout(isLoadingTimeout);\r\n props.update(prevState => ({ ...prevState, isUploadingAttachment: false }));\r\n });\r\n }\r\n }\r\n\r\n return (\r\n \r\n
  • \r\n \r\n
  • \r\n {errorValidationError &&
  • {errorValidationError}
  • }\r\n
    \r\n );\r\n}\r\n\r\nCommentAttachment.propTypes = {\r\n message: PropTypes.object,\r\n data: PropTypes.object.isRequired,\r\n update: PropTypes.func.isRequired\r\n};\r\n\r\nexport default withMessage(CommentAttachment);\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Spinner from '../Spinner';\r\nimport resx from '../../../utilities/resx';\r\nimport { RESX_REBLASTS } from '../../../Constants';\r\nimport ConfirmAlert from '../ConfirmAlert';\r\n\r\n\r\nfunction CommentAttachmentPreview(props) {\r\n\t\r\n\tfunction handleRemovePreview() {\r\n\t\tConfirmAlert({\r\n\t\t\tdescription: resx(RESX_REBLASTS, 'CONFIRM_REMOVING_ATTACHMENT'),\r\n\t\t\tconfirmLabel: resx(RESX_REBLASTS, 'REBLASTS_REMOVE'),\r\n\t\t\tabortLabel: resx(RESX_REBLASTS, 'CANCEL_TEXT')\r\n\t\t}).then(() => {\r\n\t\t\tprops.update(prevState => ({ ...prevState, commentsAttachmentsImage: null }));\r\n\t\t})\r\n\t}\r\n\t\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t{props.data.commentsAttachmentsImage &&\r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t}\r\n\t\t
    \r\n\t);\r\n};\r\n\r\n\r\n\r\nCommentAttachmentPreview.propTypes = {\r\n\tdata: PropTypes.object.isRequired,\r\n\tupdate: PropTypes.func.isRequired,\r\n\tcommentsAttchmentsImage: PropTypes.string\r\n};\r\n\r\nexport default CommentAttachmentPreview;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _pathEq from 'ramda/src/pathEq';\r\nimport _path from 'ramda/src/path';\r\n\r\nimport Image from './Image';\r\n\r\nconst Avatar = props => {\r\n\tconst buildProfileImagePath = (id, self, cdn, nocdn) => {\r\n\t\tconst fakeArr = [];\r\n\t\tconst contentUrl = self ? nocdn : cdn;\r\n\r\n\t\tlet i;\r\n\t\tlet path = '';\r\n\t\tlet defaultPath = \"https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/common/images/profile.png\";\r\n\r\n\t\tif (typeof id !== 'number' || !cdn || !nocdn) {\r\n\t\t\treturn defaultPath;\r\n\t\t}\r\n\r\n\t\tfunction addCommas(idInt) {\r\n\t\t\tconst idStr = `${idInt}`;\r\n\t\t\tconst x = idStr.split('.');\r\n\t\t\tlet x1 = x[0];\r\n\t\t\tconst x2 = x.length > 1 ? `.${x[1]}` : '';\r\n\t\t\tconst rgx = /(\\d+)(\\d{3})/;\r\n\t\t\twhile (rgx.test(x1)) {\r\n\t\t\t\tx1 = x1.replace(rgx, '$1,$2');\r\n\t\t\t}\r\n\t\t\treturn x1 + x2;\r\n\t\t}\r\n\r\n\t\tconst chunks = (function getRelPath(idInt) {\r\n\t\t\tconst idString = addCommas(idInt || 0);\r\n\t\t\tconst idArray = idString.split(',');\r\n\t\t\treturn idArray;\r\n\t\t})(id);\r\n\r\n\t\tconst loopage = 3 - chunks.length;\r\n\r\n\t\tfor (i = 0; i < loopage; i++) {\r\n\t\t\tfakeArr.push(0);\r\n\t\t}\r\n\r\n\t\tfor (i = 0; i < chunks.length; i++) {\r\n\t\t\tchunks[i] = parseInt(chunks[i], 10);\r\n\t\t\tfakeArr.push(chunks[i]);\r\n\t\t}\r\n\r\n\t\tfor (i = 0; i < fakeArr.length; i++) {\r\n\t\t\tpath += `${fakeArr[i]}/`;\r\n\t\t}\r\n\r\n\t\treturn `${contentUrl}assets/realtors/website/${path}profile.png`;\r\n\t};\r\n\r\n\tconst getWidth = size => {\r\n\t\tlet width;\r\n\r\n\t\tswitch (size) {\r\n\t\t\tcase 'xxs':\r\n\t\t\t\twidth = 30;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'xs':\r\n\t\t\t\twidth = 36;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'sm':\r\n\t\t\t\twidth = 50;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'md':\r\n\t\t\t\twidth = 84;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'lg':\r\n\t\t\t\twidth = 110;\r\n break;\r\n case 'xl':\r\n width = 220;\r\n break;\r\n\t\t\tdefault:\r\n\t\t\t\twidth = 228;\r\n\t\t}\r\n\r\n\t\treturn width;\r\n\t};\r\n\r\n\tconst self = _pathEq(['User2', 'WebsiteId'], props.websiteId, RESAAS);\r\n\tconst cdn = _path(['Environment', 'ContentUrl'], RESAAS);\r\n\tconst nocdn = _path(['Environment', 'ContentUrlNoCDN'], RESAAS);\r\n\tconst path = props.src || buildProfileImagePath(props.websiteId, self, cdn, nocdn);\r\n\tconst width = getWidth(props.size);\r\n\tconst resize = !self;\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n\r\nAvatar.propTypes = {\r\n\tdisplayName: PropTypes.string,\r\n\thasProfileBadge: PropTypes.bool,\r\n\thasGeBadge: PropTypes.bool,\r\n\thasPremiumPlusBadge: PropTypes.bool,\r\n\timageAttributes: PropTypes.object,\r\n\tsize: PropTypes.string,\r\n\tsrc: PropTypes.string,\r\n\twebsiteId: PropTypes.number,\r\n\tlazy: PropTypes.bool,\r\n\timgClassName: PropTypes.string,\r\n\tdivClassName: PropTypes.string,\r\n};\r\nexport default Avatar;\r\n","import request from './AxiosRequest';\r\nimport axios from 'axios';\r\nimport GeneralUtility from '../utilities/generalUtility';\r\n\r\nconst variableList = [\r\n 'SkipReferralWizardIntroVersion',\r\n 'ShowProfileProgressContainer',\r\n 'CCBrokerOnAgreementEmail',\r\n 'JobRole',\r\n 'RESAASPayRequested',\r\n 'UserTasks',\r\n 'DefaultFeed'\r\n];\r\n\r\nfunction defer() {\r\n var deferred = {};\r\n var promise = new Promise((resolve, reject) => {\r\n deferred.resolve = resolve;\r\n deferred.reject = reject;\r\n });\r\n deferred.promise = promise;\r\n return deferred;\r\n}\r\n\r\nconst pendingRequests = [];\r\n\r\nclass ClientStorage {\r\n static initOnce = false;\r\n\r\n static data = null;\r\n\r\n static pending = [];\r\n\r\n static error = false;\r\n\r\n static cancel = null;\r\n\r\n componentWillUnmount() {\r\n GeneralUtility.cleanupRequests(pendingRequests);\r\n }\r\n\r\n static init() {\r\n if (ClientStorage.initOnce) {\r\n return;\r\n }\r\n\r\n ClientStorage.initOnce = true;\r\n\r\n const r = request({\r\n url: `/Services/api/useraccount/GetClientStorage`,\r\n method: 'POST',\r\n // data is a list of all configuration variables to request from BE\r\n data: variableList,\r\n cancel: true\r\n });\r\n ClientStorage.cancel = r.cancel;\r\n GeneralUtility.appendPendingRequest(pendingRequests, r);\r\n r.request\r\n .then(response => {\r\n const dataObj = {};\r\n response.data.forEach(obj => {\r\n dataObj[obj.RowKey] = obj.value;\r\n });\r\n ClientStorage.data = dataObj;\r\n ClientStorage.pending.forEach(pendingRequest => {\r\n pendingRequest.resolve(ClientStorage.data);\r\n });\r\n })\r\n .catch(error => {\r\n if (!axios.isCancel(error)) {\r\n ClientStorage.error = true;\r\n ClientStorage.pending.forEach(pendingRequest => {\r\n pendingRequest.reject(error);\r\n });\r\n GeneralUtility.logWebRequestFailure(error, 'GetClientStorage');\r\n }\r\n });\r\n }\r\n\r\n static browse() {\r\n if (!ClientStorage.initOnce) {\r\n ClientStorage.init();\r\n }\r\n if (ClientStorage.data) {\r\n return { request: Promise.resolve(ClientStorage.data), cancel: ClientStorage.cancel };\r\n }\r\n if (ClientStorage.error) {\r\n return { request: Promise.reject(new Error('fail')), cancel: ClientStorage.cancel };\r\n }\r\n const pendingRequest = defer();\r\n ClientStorage.pending.push(pendingRequest);\r\n return { request: pendingRequest.promise, cancel: ClientStorage.cancel };\r\n }\r\n\r\n static edit(data) {\r\n if (ClientStorage.data === null) {\r\n const pendingRequest = defer();\r\n return { request: pendingRequest.promise };\r\n }\r\n\r\n Object.keys(data).map(key => {\r\n ClientStorage.data[key] = data[key];\r\n return ClientStorage.data;\r\n });\r\n\r\n const r = request({\r\n url: `/Services/api/useraccount/PostClientStorage`,\r\n method: 'POST',\r\n data: data,\r\n cancel: true\r\n });\r\n\r\n GeneralUtility.appendPendingRequest(pendingRequests, r);\r\n return r;\r\n }\r\n}\r\n\r\nexport default ClientStorage;\r\n","import React, { useEffect } from 'react';\r\nimport GeneralUtility from '../../utilities/generalUtility';\r\nimport ClientStorageService from '../../API/ClientStorage';\r\n\r\nconst get = (keys, cancel) => {\r\n let rejector;\r\n\r\n const promise = new Promise((resolve, reject) => {\r\n const ClientStorageBrowse = ClientStorageService.browse();\r\n rejector = reject;\r\n ClientStorageBrowse.request\r\n .then(data => {\r\n const obj = {};\r\n Object.keys(data).forEach(dataKey => {\r\n if (keys.includes(dataKey)) {\r\n obj[dataKey] = data[dataKey];\r\n }\r\n });\r\n return resolve(obj);\r\n })\r\n .catch(e => {\r\n return reject(e);\r\n });\r\n });\r\n\r\n return cancel\r\n ? {\r\n promise,\r\n cancel: () => {\r\n rejector('cancel');\r\n }\r\n }\r\n : promise;\r\n};\r\n\r\nconst set = (name, value) => {\r\n const promise = new Promise((resolve, reject) => {\r\n const x = {};\r\n x[name] = value;\r\n const ClientStorageEdit = ClientStorageService.edit(x);\r\n ClientStorageEdit.request.then(data => resolve(data)).catch(e => reject(e));\r\n });\r\n\r\n return promise;\r\n};\r\n\r\nconst ClientStorage = {\r\n get,\r\n set\r\n};\r\n\r\nexport default ClientStorage;\r\n","import React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport PropTypes from 'prop-types';\r\nimport Button from './Button';\r\n\r\nconst OpenModal = props => (\r\n\t\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    {props.description}
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{props.abortLabel && (\r\n\t\t\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t
    \r\n);\r\n\r\nOpenModal.propTypes = {\r\n\tdescription: PropTypes.string,\r\n\tabortLabel: PropTypes.string,\r\n\tconfirmLabel: PropTypes.string.isRequired,\r\n\tcloseModal: PropTypes.func,\r\n\tconfirm: PropTypes.func\r\n};\r\n\r\nconst ConfirmAlert = props =>\r\n\tnew Promise(resolve => {\r\n\t\tconst promise = { resolve };\r\n\t\tconst wrapper = document.body.appendChild(document.createElement('div'));\r\n\t\twrapper.setAttribute('id', 'ConfirmAlert');\r\n\r\n\t\tconst confirm = () => {\r\n\t\t\tprops.closeModal();\r\n\t\t\treturn promise.resolve(true);\r\n\t\t};\r\n\r\n\t\tconst closeModal = () => {\r\n\t\t\tconst thingToRemove = document.getElementById('ConfirmAlert');\r\n\t\t\tthingToRemove.parentNode.removeChild(thingToRemove);\r\n\t\t};\r\n\r\n\t\tObject.assign(props, { confirm: confirm, closeModal: closeModal });\r\n\r\n\t\tReactDOM.render(, wrapper);\r\n\t\tdocument.getElementById('re-confirm-buttons').focus();\r\n\t});\r\n\r\nexport default ConfirmAlert;\r\n","import React, { useState, useEffect } from 'react';\r\nimport format from 'string-format';\r\nimport PopUp from './PopUp';\r\nimport Button from './Button';\r\nimport { withMessage } from './Message';\r\nimport ErrorMessage from './ErrorMessage';\r\nimport resx from '../../utilities/resx';\r\nimport { RESX_GLOBAL } from '../../Constants';\r\n\r\nconst SendMessage = ({ closeForm, userFullName, handleConnectionRequest, isSubmitting }) => {\r\n const [message, setMessage] = useState('');\r\n const [validationMessages, setValidationMessages] = useState({\r\n message: ''\r\n });\r\n\r\n const validate = () => {\r\n let validated = true;\r\n\r\n if (message.length > 400) {\r\n const newState = {\r\n message: 'Maximum 400 characters'\r\n };\r\n setValidationMessages(prevState => ({ ...prevState, ...newState }));\r\n validated = false;\r\n } else {\r\n const newState = {\r\n message: ''\r\n };\r\n setValidationMessages(prevState => ({ ...prevState, ...newState }));\r\n }\r\n\r\n return validated;\r\n };\r\n\r\n const handleFormSubmit = () => {\r\n if (message) {\r\n if (validate()) {\r\n handleConnectionRequest(message);\r\n } \r\n } else {\r\n handleConnectionRequest(null);\r\n }\r\n };\r\n\r\n // for live validation\r\n useEffect(\r\n () => {\r\n if (message) {\r\n validate();\r\n }\r\n },\r\n [message]\r\n );\r\n\r\n return (\r\n \r\n \r\n
    \r\n
    \r\n {resx(RESX_GLOBAL, 'SEND_MESSAGE_POPUP_ADD_A_NOTE')}\r\n
    \r\n
    \r\n
    \r\n \r\n {\r\n e.preventDefault();\r\n }}\r\n >\r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default withMessage(SendMessage);\r\n","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _path from 'ramda/src/path';\r\nimport Connections from '../../API/Connections';\r\nimport Mixpanel from '../../API/Mixpanel';\r\nimport SendMessage from './SendMessage';\r\nimport { withMessage } from './Message';\r\nimport resx from '../../utilities/resx';\r\nimport GeneralUtility from '../../utilities/generalUtility';\r\n\r\nimport { RESX_GLOBAL, MIXPANEL_RELATIONSHIP, MIXPANEL_CONTENT, MIXPANEL_LAND } from '../../Constants';\r\n\r\nconst ConnectButton = props => {\r\n const [isSubmitting, setIsSubmitting] = useState(false);\r\n const [sendMessage, setSendMessage] = useState(false);\r\n const [connection, setConnection] = useState({\r\n ImFollowing: false,\r\n FollowingMe: false,\r\n Connected: false,\r\n UserId: props.userId\r\n });\r\n const [connections, setConnections] = useState([]);\r\n const [totalConnected, setTotalConnected] = useState(0);\r\n const [canConnect, setCanConnect] = useState(true);\r\n const isMe = props.userId === _path(['RESAAS', 'User2', 'UserId'], window);\r\n const imProfessional =\r\n _path(['RESAAS', 'User2', 'IsProfessional'], window) &&\r\n !_path(['RESAAS', 'User2', 'IsPendingProfessional'], window);\r\n const pendingRequests = [];\r\n const daysAgoCreated = GeneralUtility.daysAgo(\r\n GeneralUtility.getDateYMD(new Date()),\r\n _path(['RESAAS', 'User2', 'CreatedDate'], window)\r\n );\r\n const isPaid =\r\n _path(['RESAAS', 'User2', 'ReferralPro'], window) ||\r\n _path(['RESAAS', 'User2', 'PremiumPlus'], window);\r\n\r\n useEffect(() => {\r\n if (!isMe && imProfessional) {\r\n getConnections();\r\n }\r\n return () => {\r\n GeneralUtility.cleanupRequests(pendingRequests);\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n const c = connections.find(i => i.UserId === props.userId);\r\n\r\n if (c) {\r\n setConnection(c);\r\n }\r\n\r\n setTotalConnected(\r\n connections.reduce((a, c) => {\r\n if (c.Connected) {\r\n return a + 1;\r\n }\r\n return a;\r\n }, 0)\r\n );\r\n }, [connections]);\r\n\r\n useEffect(() => {\r\n // CAN CONNECT IF: they are paid, accepting a connection, have < 5 connections or account is < 3 days old\r\n setCanConnect(isPaid || connection.FollowingMe || totalConnected < 5 || daysAgoCreated < 3);\r\n }, [totalConnected, connection]);\r\n\r\n const getConnections = () => {\r\n const connectionsBrowse = Connections.browse();\r\n GeneralUtility.appendPendingRequest(pendingRequests, connectionsBrowse);\r\n connectionsBrowse.request\r\n .then(response => {\r\n if (Array.isArray(response)) {\r\n setConnections(response);\r\n }\r\n })\r\n .catch(error => {\r\n if (axios.isCancel(error)) {\r\n return;\r\n }\r\n GeneralUtility.logWebRequestFailure(error, `fetch relationships from ConnectButton`);\r\n });\r\n };\r\n\r\n const connectButtonOnClick = () => {\r\n if (canConnect) {\r\n // accepting the request\r\n if ((!connection.Connected && connection.FollowingMe)) {\r\n handleConnectionRequest();\r\n } else {\r\n // sending a connect request\r\n setSendMessage(true);\r\n }\r\n } else {\r\n Mixpanel.add(MIXPANEL_LAND, { pageType: 'community paywall', type: 'connect button' });\r\n }\r\n }\r\n\r\n const handleConnectionRequest = (message) => {\r\n \r\n var successMessage;\r\n if (message) {\r\n setIsSubmitting(true);\r\n }\r\n \r\n Connections.add({\r\n contact: {\r\n KnownContactUserId: props.userId,\r\n InvitationMessage: message,\r\n Relationships: [\r\n {\r\n Type: 1,\r\n Action: 0\r\n }\r\n ]\r\n }\r\n })\r\n .then(results => {\r\n if (!_path(['data', 'SaveResult', 'Success'], results)) {\r\n const errorMsg =\r\n _path(['data', 'SaveResult', 'Message'], results) ===\r\n resx(RESX_GLOBAL, 'RELATIONSHIP_ALREADY_EXISTS')\r\n ? resx(RESX_GLOBAL, 'RELATIONSHIP_ALREADY_EXISTS')\r\n : resx(RESX_GLOBAL, 'GENERIC_WEBSERVICE_ERROR_MESSAGE');\r\n\r\n props.message.addMessage({ message: errorMsg, type: 'error' });\r\n } else {\r\n if (!connection.Connected && connection.FollowingMe) {\r\n successMessage = `You’re Connected! Click here to start a conversation and explore new opportunities together!`;\r\n } else {\r\n successMessage = 'Your connection request has been sent!';\r\n }\r\n\r\n props.message.addMessage({\r\n message: successMessage,\r\n type: 'success',\r\n autoDelete: false,\r\n perpetuate: false\r\n });\r\n\r\n getConnections();\r\n\r\n Mixpanel.add(MIXPANEL_RELATIONSHIP, mixpanel());\r\n if (message) {\r\n Mixpanel.add(MIXPANEL_CONTENT, {\r\n content: 'Send Message',\r\n type: 'Connect request message'\r\n });\r\n }\r\n }\r\n })\r\n .catch(() => {\r\n props.message.addMessage({\r\n message: resx(RESX_GLOBAL, 'GENERIC_WEBSERVICE_ERROR_MESSAGE'),\r\n type: 'error'\r\n });\r\n })\r\n .then(() => {\r\n \r\n if (message) {\r\n setIsSubmitting(false);\r\n }\r\n\r\n setSendMessage(false);\r\n }); \r\n };\r\n\r\n const buttonText = () => {\r\n let buttonText;\r\n if (connection.Connected) {\r\n buttonText = resx(RESX_GLOBAL, 'CONNECTION_BUTTON_CONNECTED');\r\n } else if (connection.ImFollowing) {\r\n buttonText = resx(RESX_GLOBAL, 'CONNECTION_BUTTON_REQUEST_SENT');\r\n } else if (connection.FollowingMe) {\r\n buttonText = resx(RESX_GLOBAL, 'CONNECTION_BUTTON_ACCEPT_REQUEST');\r\n } else {\r\n buttonText = resx(RESX_GLOBAL, 'CONNECTION_BUTTON_CONNECT');\r\n }\r\n return buttonText;\r\n };\r\n\r\n const className = () => {\r\n let className;\r\n\r\n if (connection.Connected) {\r\n className = `re-btn ${props.small ? 're-btn-small' : ''} re-btn-disabled re-btn-full-width re-icon re-icon-md re-icon-green re-icon-check-circle`;\r\n } else if (connection.ImFollowing) {\r\n className = `re-btn ${props.small ? 're-btn-small' : ''} re-btn-disabled re-btn-full-width re-icon re-icon-md re-icon-green re-icon-check-circle`;\r\n } else if (connection.FollowingMe) {\r\n className = `re-btn ${props.small ? 're-btn-small' : ''} re-btn-full-width`;\r\n } else {\r\n className = `re-btn ${props.small ? 're-btn-small' : ''} ${props.black ? 're-text-black' : ''} re-btn-subtle re-btn-full-width ${\r\n !canConnect ? 'ub-joinCommunityPaywall' : ''\r\n }`;\r\n }\r\n\r\n return className;\r\n };\r\n\r\n const mixpanel = () => {\r\n let mixpanel;\r\n\r\n if (!connection.ImFollowing && connection.FollowingMe) {\r\n mixpanel = {\r\n type: 'connection accepted',\r\n requester: `${RESAAS.User2.FirstName} ${RESAAS.User2.LastName}`,\r\n receiver: props.displayName,\r\n content: 'relationship accepted',\r\n element: props.mixpanelElement\r\n };\r\n } else if (!connection.ImFollowing && !connection.FollowingMe) {\r\n mixpanel = {\r\n type: 'connection request',\r\n requester: `${RESAAS.User2.FirstName} ${RESAAS.User2.LastName}`,\r\n receiver: props.displayName,\r\n element: props.mixpanelElement\r\n };\r\n }\r\n\r\n return mixpanel;\r\n };\r\n\r\n return (\r\n \r\n {!isMe && imProfessional ? (\r\n
    \r\n {sendMessage ? (\r\n setSendMessage(false)}\r\n handleConnectionRequest={(message) => handleConnectionRequest(message)}\r\n isSubmitting={isSubmitting}\r\n />\r\n ) : null}\r\n \r\n
    \r\n ) : null}\r\n
    \r\n );\r\n};\r\n\r\nConnectButton.propTypes = {\r\n userId: PropTypes.string.isRequired,\r\n message: PropTypes.object,\r\n displayName: PropTypes.string,\r\n mixpanelElement: PropTypes.string,\r\n mixpanelContext: PropTypes.string,\r\n small: PropTypes.bool\r\n};\r\n\r\nConnectButton.defaultProps = {\r\n small: true,\r\n mixpanelElement: 'connect button'\r\n};\r\n\r\nexport default withMessage(ConnectButton);\r\n","import PropTypes from 'prop-types';\r\nimport Moment from 'moment';\r\n\r\nconst DateFromNow = props => {\r\n const { date } = props;\r\n\r\n Moment.updateLocale('en', {\r\n relativeTime: {\r\n future: diff => (diff == 'just now' ? diff : `in ${diff}`),\r\n past: diff => (diff == 'just now' ? diff : `${diff} ago`),\r\n s: 'just now',\r\n ss: 'just now'\r\n }\r\n });\r\n\r\n const utcFormat = Moment.utc(date).format();\r\n\r\n const d = Moment.utc(utcFormat)\r\n .local()\r\n .fromNow();\r\n\r\n return d;\r\n};\r\n\r\nDateFromNow.propTypes = {\r\n date: PropTypes.string\r\n};\r\n\r\nexport default DateFromNow;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst errorMessage = props => {\r\n\tif (props.validationMessages[props.fieldName]) {\r\n\t\treturn (\r\n\t\t\t
    \r\n\t\t\t\t{props.validationMessages[props.fieldName]}\r\n\t\t\t
    \r\n\t\t);\r\n\t}\r\n\treturn null;\r\n};\r\n\r\nerrorMessage.propTypes = {\r\n\tvalidationMessages: PropTypes.object,\r\n\tfieldName: PropTypes.string\r\n};\r\n\r\nexport default errorMessage;\r\n","import _path from 'ramda/src/path';\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Avatar from './Avatar';\r\nimport DateFromNow from './DateFromNow';\r\nimport resx from '../../utilities/resx';\r\nimport Tooltip from './Tooltip';\r\nimport UserInfo from './UserInfo';\r\nimport { RESX_REBLASTS } from '../../Constants';\r\n\r\nconst IdBar = props => {\r\n const { date, GroupLinkPublicPage, GroupName, HideFirmFeed, lazy, IsScrubbed } = props;\r\n const {\r\n City,\r\n Country,\r\n CountryId,\r\n FirstName,\r\n FirmName,\r\n FullName,\r\n FirmUniqueName,\r\n HasProfileBadge,\r\n HasPremiumPlusBadge,\r\n LastName,\r\n Latitude,\r\n Longitude,\r\n State,\r\n UserDomain,\r\n UserProfilePictureUrl,\r\n WebsiteId,\r\n InstantReferralAuthorVerified,\r\n Connected\r\n } = props.user;\r\n\r\n const formattedName = FullName || `${FirstName} ${LastName}`;\r\n let locationFormatted, locationLink;\r\n if (City && Latitude && Longitude) {\r\n locationLink = `/agents/location/${City}/${State || ''}?Latitude=${Latitude}&Longitude=${Longitude}`;\r\n }\r\n\r\n if (City) {\r\n if (Country && CountryId && CountryId !== _path(['User2', 'CountryId'], RESAAS)) {\r\n locationFormatted = `${City}, ${Country}`;\r\n } else if (State) {\r\n locationFormatted = `${City}, ${State}`;\r\n } else {\r\n locationFormatted = City;\r\n }\r\n }\r\n\r\n return (\r\n
    \r\n {!IsScrubbed && (\r\n
    \r\n {(UserProfilePictureUrl || WebsiteId) && (\r\n \r\n ) : (\r\n \r\n )\r\n }\r\n >\r\n \r\n \r\n )}\r\n
    \r\n )}\r\n {IsScrubbed && (\r\n \r\n \r\n \r\n )}\r\n
    \r\n {!IsScrubbed && (\r\n
    \r\n \r\n ) : (\r\n \r\n )\r\n }\r\n >\r\n {formattedName}{' '}\r\n \r\n \r\n {/* we dont show group info if we are in a group page or the group info is for resaas-commercial group */}\r\n {GroupLinkPublicPage && window.location.pathname.indexOf('/group') === -1 && GroupLinkPublicPage.indexOf('/group/resaas-commercial') === -1 ? (\r\n
    \r\n  in \r\n \r\n
    ) : null} \r\n
    \r\n )}\r\n {IsScrubbed && (\r\n \r\n {formattedName}\r\n {InstantReferralAuthorVerified && (\r\n \r\n {' '}\r\n \r\n \r\n )}\r\n \r\n )}\r\n
      \r\n {!IsScrubbed &&
    • @{UserDomain}
    • }\r\n {!IsScrubbed &&\r\n FirmName &&\r\n !HideFirmFeed && (\r\n
    • \r\n {FirmUniqueName ? (\r\n \r\n ) : (\r\n FirmName\r\n )}\r\n
    • \r\n )}\r\n {locationFormatted ? (\r\n
    • \r\n {locationLink ? (\r\n \r\n {locationFormatted}\r\n \r\n ) : (\r\n locationFormatted\r\n )}\r\n
    • \r\n ) : null}\r\n {date && (\r\n
    • \r\n \r\n
    • \r\n )}\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nIdBar.propTypes = {\r\n HideFirmFeed: PropTypes.bool,\r\n user: PropTypes.object.isRequired,\r\n date: PropTypes.string,\r\n GroupName: PropTypes.string,\r\n GroupLinkPublicPage: PropTypes.string,\r\n lazy: PropTypes.bool,\r\n IsScrubbed: PropTypes.bool\r\n};\r\n\r\nexport default IdBar;\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport { createPortal } from 'react-dom';\r\nimport PropTypes from 'prop-types';\r\n\r\n/* when using this component ensure _overlay scss partial is on the page */\r\n\r\nconst PopUp = ({ align, children, dataTestid, onClose, popUpWidth, popUpHeight, allowToClose = true }) => {\r\n const popupStyle = {\r\n maxWidth: popUpWidth,\r\n minHeight: popUpHeight\r\n };\r\n\r\n const popupWrapperId = 'PopUpWrapper';\r\n const popupRef = useRef();\r\n const [root, setRoot] = useState(null);\r\n const scrollY = useRef();\r\n const [show, setShow] = useState(false);\r\n\r\n const handleClose = e => {\r\n e.preventDefault();\r\n onClose();\r\n };\r\n\r\n const handleEscapeKey = e => {\r\n if (e.keyCode === 27 && popupRef.current.nextElementSibling === null) {\r\n onClose();\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n const existingRoot = document.querySelector(`#${popupWrapperId}`);\r\n const html = document.querySelector('html');\r\n const pageOuterWrapper = document.querySelector('.re-page-outer-wrapper');\r\n\r\n scrollY.current = window.scrollY;\r\n\r\n if (existingRoot) {\r\n setRoot(existingRoot);\r\n } else {\r\n const div = document.createElement('div');\r\n div.setAttribute('id', popupWrapperId);\r\n setRoot(document.body.appendChild(div));\r\n }\r\n\r\n if (html) {\r\n html.classList.add('re-overlay-open');\r\n }\r\n\r\n if (pageOuterWrapper) {\r\n pageOuterWrapper.classList.add('re-overlay-stick-content');\r\n pageOuterWrapper.style.top = `-${scrollY.current}px`;\r\n }\r\n\r\n document.addEventListener('keydown', handleEscapeKey);\r\n window.scrollTo(0, 0);\r\n\r\n setShow(true);\r\n\r\n return () => {\r\n if (popupRef.current.previousElementSibling === null) {\r\n const html2 = document.querySelector('html');\r\n const pageOuterWrapper2 = document.querySelector('.re-page-outer-wrapper');\r\n\r\n if (html2) {\r\n html2.classList.remove('re-overlay-open');\r\n }\r\n\r\n if (pageOuterWrapper2) {\r\n pageOuterWrapper2.classList.remove('re-overlay-stick-content');\r\n pageOuterWrapper2.style.top = 'auto';\r\n }\r\n }\r\n\r\n document.removeEventListener('keydown', handleEscapeKey);\r\n window.scrollTo(0, scrollY.current);\r\n };\r\n }, []);\r\n\r\n return (\r\n \r\n {show &&\r\n root &&\r\n createPortal(\r\n \r\n (allowToClose ? handleClose(e) : null)}\r\n data-testid={`${dataTestid}-background`}\r\n />\r\n
    \r\n {allowToClose ? (\r\n \r\n \r\n Close\r\n \r\n \r\n ) : null}\r\n {children}\r\n
    \r\n ,\r\n root\r\n )}\r\n
    \r\n );\r\n};\r\n\r\nPopUp.propTypes = {\r\n align: PropTypes.string,\r\n children: PropTypes.node.isRequired,\r\n dataTestid: PropTypes.string,\r\n onClose: PropTypes.func.isRequired,\r\n popUpWidth: PropTypes.string,\r\n popUpHeight: PropTypes.string\r\n};\r\n\r\nPopUp.defaultProps = {\r\n align: 'center',\r\n dataTestid: 'PopUpComponent',\r\n popUpHeight: '425px',\r\n popUpWidth: '450px'\r\n};\r\n\r\nexport default PopUp;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _path from 'ramda/src/path';\r\nimport format from 'string-format';\r\nimport resx from '../../../utilities/resx';\r\nimport utilities from '../../../utilities/generalUtility';\r\n\r\nimport { RESX_LISTINGS, RESX_REBLASTS, RESX_DASHBOARD } from '../../../Constants';\r\n\r\nconst Content = props => {\r\n const { lazy } = props;\r\n const {\r\n ContentType,\r\n FileAttachmentUrl,\r\n HasFileInAttachment,\r\n HasListing,\r\n HasImageInAttachment,\r\n ListingAddress,\r\n ListingCity,\r\n ListingCoopFeeAmount,\r\n ListingCountry,\r\n ListingCurrencyCode,\r\n ListingFormattedPrice,\r\n ListingFormattedPricePerAmount,\r\n ListingHasImage,\r\n ListingInteriorSize,\r\n ListingInteriorSizeUnit,\r\n ListingIsSold,\r\n ListingIsLease,\r\n ListingNumberBedrooms,\r\n ListingNumberBathrooms,\r\n ListingPrice,\r\n ListingPricePerAmount,\r\n ListingPriceSuffix,\r\n ListingPropertySize,\r\n ListingSeoUrl,\r\n ListingSoldLabel,\r\n ListingLeaseLabel,\r\n ListingState,\r\n ListingSuiteNumber2,\r\n ListingLargeImageUrl,\r\n ListingVirtualTourAddress,\r\n ListingMarketStatus,\r\n ImageLargeAttachmentUrl,\r\n ReblastDescription\r\n } = props.data;\r\n const HidePreMarketDetails =\r\n ContentType === 'PreMarketListing' &&\r\n !(\r\n _path(['RESAAS', 'User2', 'IsProfessional'], window) &&\r\n !_path(['RESAAS', 'User2', 'IsPendingProfessional'], window)\r\n ) &&\r\n !ListingIsSold;\r\n\r\n const listingInteriorSizeUnitText = () => {\r\n if (ListingInteriorSizeUnit === 0) {\r\n return resx(RESX_LISTINGS, 'SQFT');\r\n }\r\n\r\n if (ListingInteriorSizeUnit === 1) {\r\n return resx(RESX_DASHBOARD, 'SQUARE_METERS_ABBR');\r\n }\r\n\r\n if (ListingInteriorSizeUnit === 2) {\r\n return resx(RESX_DASHBOARD, 'ACRES_UNIT_TEXT');\r\n }\r\n\r\n return resx(RESX_LISTINGS, 'SQFT');\r\n };\r\n\r\n const formatAddress = () => {\r\n let address = '';\r\n\r\n if (!HidePreMarketDetails) {\r\n if (ListingSuiteNumber2) {\r\n if (ListingCountry === 'USA') {\r\n address = format('{0} #{1}', ListingAddress, ListingSuiteNumber2);\r\n } else {\r\n address = format('{0} - {1}', ListingSuiteNumber2, ListingAddress);\r\n }\r\n } else {\r\n address = ListingAddress;\r\n }\r\n }\r\n\r\n if (ListingCity) {\r\n address = HidePreMarketDetails ? ListingCity : `${address}, ${ListingCity}`;\r\n }\r\n if (ListingState) {\r\n address = `${address}, ${ListingState}`;\r\n }\r\n if (ListingCountry) {\r\n address = `${address}, ${ListingCountry}`;\r\n }\r\n\r\n return address;\r\n };\r\n\r\n const vidUrl = _path(['vidUrl'], utilities.generateVideoPlayerIframe(ReblastDescription, lazy));\r\n let virtualTourAddressVidUrl;\r\n const virtualTourAddressVidIframe = utilities.generateVideoPlayerIframe(ListingVirtualTourAddress, lazy);\r\n if (Object.keys(virtualTourAddressVidIframe).length > 0) {\r\n let videoObj = {};\r\n videoObj = virtualTourAddressVidIframe;\r\n\r\n virtualTourAddressVidUrl = videoObj.vidUrl;\r\n }\r\n\r\n const formattedAddress = formatAddress();\r\n const listingImageAlt = `${resx(RESX_REBLASTS, 'LISTING_LARGE_IMAGE_ALT')} ${formattedAddress}`;\r\n\r\n let listingImageSrc;\r\n let listingImageSrcSet;\r\n\r\n if (ListingLargeImageUrl) {\r\n listingImageSrc = utilities.addParamsToUrlQueryString(ListingLargeImageUrl, {\r\n width: 634,\r\n height: 357,\r\n mode: 'crop',\r\n quality: 80\r\n });\r\n listingImageSrcSet = `${utilities.addParamsToUrlQueryString(ListingLargeImageUrl, {\r\n width: 320,\r\n height: 180,\r\n mode: 'crop',\r\n quality: 80\r\n })} 320w, ${utilities.addParamsToUrlQueryString(ListingLargeImageUrl, {\r\n width: 634,\r\n height: 357,\r\n mode: 'crop',\r\n quality: 80\r\n })} 634w, ${utilities.addParamsToUrlQueryString(ListingLargeImageUrl, {\r\n width: 1268,\r\n height: 714,\r\n mode: 'crop',\r\n quality: 80\r\n })} 1268w`;\r\n }\r\n\r\n const contentImg = (src, srcset, className, alt, sizes, testid) => {\r\n const imgProps = {};\r\n\r\n if (lazy) {\r\n if (src) {\r\n imgProps['data-src'] = src;\r\n }\r\n if (srcset) {\r\n imgProps['data-srcset'] = srcset;\r\n }\r\n\r\n if (className) {\r\n imgProps.className = `${className} lazyload`;\r\n } else {\r\n imgProps.className = 'lazyload';\r\n }\r\n } else {\r\n if (src) {\r\n imgProps.src = src;\r\n }\r\n if (srcset) {\r\n imgProps.srcSet = srcset;\r\n }\r\n if (className) {\r\n imgProps.className = className;\r\n }\r\n }\r\n\r\n if (alt) {\r\n imgProps.alt = alt;\r\n }\r\n if (sizes) {\r\n imgProps.sizes = sizes;\r\n }\r\n if (testid) {\r\n imgProps['data-testid'] = testid;\r\n }\r\n\r\n return ;\r\n };\r\n\r\n const renderListingImage = () => {\r\n // Image is google map do not add additional params as it will invalidate signature\r\n if (ListingLargeImageUrl && ListingLargeImageUrl.includes('googleapis')) {\r\n return contentImg(ListingLargeImageUrl, null, 'listing-image', listingImageAlt, null, null);\r\n }\r\n return contentImg(\r\n listingImageSrc,\r\n listingImageSrcSet,\r\n 'listing-image',\r\n listingImageAlt,\r\n '(min-width: 25em) 634px, 350px',\r\n 'listingimage'\r\n );\r\n };\r\n\r\n const renderContentImage = () => {\r\n return contentImg(\r\n `${ImageLargeAttachmentUrl}?width=634&quality=80`,\r\n `${ImageLargeAttachmentUrl}?width=320&quality=80 320w,${ImageLargeAttachmentUrl}?width=634&quality=80 634w,${ImageLargeAttachmentUrl}?width=1268&quality=80&scale=both 1268w`,\r\n 'bg-attachment-photo reblast-photo-exists',\r\n resx(RESX_REBLASTS, 'IMAGE_ATTACHMENT_ALT'),\r\n '(min-width: 25em) 634px, 350px',\r\n null\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n \r\n {vidUrl &&
    }\r\n\r\n {HasImageInAttachment && (\r\n
    \r\n
    \r\n \r\n {renderContentImage()}\r\n \r\n
    \r\n
    \r\n )}\r\n {HasFileInAttachment && (\r\n
    \r\n \r\n )}\r\n {HasListing && ListingHasImage && (\r\n \r\n \r\n \r\n {ContentType === 'PreMarketListing' && (\r\n
    \r\n {resx(RESX_LISTINGS, 'PUBLIC_PRE_MARKET_LISTING_LABEL')}\r\n
    \r\n )}\r\n\r\n {parseInt(ListingMarketStatus, 10) === 2 ? (\r\n
    \r\n {resx(RESX_LISTINGS, 'OFFMARKET_LABEL')}\r\n
    \r\n ) : null}\r\n\r\n {ListingIsSold ? (\r\n \r\n {ListingSoldLabel}\r\n
    \r\n ) : null}\r\n\r\n {ListingIsLease && !ListingIsSold ? (\r\n \r\n {resx(RESX_LISTINGS, 'TRANSACTION_TYPE_FOR_LEASE_TEXT')}\r\n
    \r\n ) : null}\r\n\r\n
      \r\n {!HidePreMarketDetails && !ListingPricePerAmount && ListingPrice > 0 ? (\r\n
    • \r\n {ListingFormattedPrice} {ListingCurrencyCode}\r\n
    • \r\n ) : null}\r\n {!HidePreMarketDetails && ListingPricePerAmount ? (\r\n
    • \r\n {ListingFormattedPricePerAmount} {ListingCurrencyCode} /{' '}\r\n {resx(RESX_LISTINGS, 'SQFT')}\r\n
    • \r\n ) : null}\r\n {ListingNumberBedrooms && ListingNumberBedrooms !== 0 ? (\r\n
    • \r\n {ListingNumberBedrooms} {resx(RESX_LISTINGS, 'BEDROOMS_SHORT_TEXT')}\r\n
    • \r\n ) : (\r\n ''\r\n )}\r\n {ListingNumberBathrooms && ListingNumberBathrooms !== 0 ? (\r\n
    • \r\n {ListingNumberBathrooms} {resx(RESX_LISTINGS, 'BATHROOMS_SHORT_TEXT')}\r\n
    • \r\n ) : (\r\n ''\r\n )}\r\n {ListingInteriorSize && ListingInteriorSize !== 0 ? (\r\n
    • \r\n {ListingInteriorSize} {listingInteriorSizeUnitText()}\r\n
    • \r\n ) : (\r\n ''\r\n )}\r\n {ListingPropertySize && ListingPropertySize !== 0 ? (\r\n
    • \r\n {ListingPropertySize} {resx(RESX_LISTINGS, 'SQFT')}\r\n
    • \r\n ) : (\r\n ''\r\n )}\r\n {ListingCoopFeeAmount && ListingCoopFeeAmount !== 0 ? (\r\n
    • \r\n {ListingCoopFeeAmount}% {resx(RESX_LISTINGS, 'COOP_FEE')}\r\n
    • \r\n ) : (\r\n ''\r\n )}\r\n
    \r\n {formattedAddress}\r\n \r\n
    \r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nContent.propTypes = {\r\n data: PropTypes.object.isRequired,\r\n lazy: PropTypes.bool\r\n};\r\n\r\nexport default Content;\r\n","import request from './AxiosRequest';\r\n\r\nconst edit = params =>\r\n\trequest({\r\n\t\turl: `/Services/MainService.svc/json/SaveLike`,\r\n\t\tmethod: 'post',\r\n\t\tdata: { like: params }\r\n\t});\r\n\r\nconst SaveLike = {\r\n\tedit\r\n};\r\n\r\nexport default SaveLike;","import React, { useState, useEffect } from 'react';\r\nimport _path from 'ramda/src/path';\r\nimport PropTypes from 'prop-types';\r\nimport resx from '../../../utilities/resx';\r\nimport { LOGGLY_LEVEL_ERROR, RESX_REBLASTS, RESX_GLOBAL } from '../../../Constants';\r\nimport Share from '../Share';\r\nimport SaveLike from '../../../API/SaveLike';\r\nimport LogglyLogger from '../../../API/Loggly';\r\nimport { withMessage } from '../Message';\r\n\r\nfunction ReblastTools(props) {\r\n\tconst [newCommentCount, setNewCommentCount] = useState(0);\r\n\tconst [pendingLike, setPendingLike] = useState(false);\r\n\r\n\t// initialize\r\n\tuseEffect(() => {\r\n\t\t// subscribe to realtime events\r\n\t\tconst handleNewComment = (e, data) => {\r\n\t\t\t// ignore if this was a comment you posted\r\n\t\t\tif (data.UserId === RESAAS.User2.UserId) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// ignore if this is for a different reblast\r\n\t\t\tif (props.data.ReblastId !== data.ReblastGUID) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// ignore if not new comment\r\n\t\t\tif (data.Event !== 'NewComment') {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// otherwise increment new comment count\r\n\t\t\tsetNewCommentCount(prevCommentCount => prevCommentCount + 1);\r\n\t\t};\r\n\r\n\t\t$('body')\r\n\t\t\t.trigger('RSRealtimeSubscribe', [\r\n\t\t\t\t{\r\n\t\t\t\t\tchannel: 'GlobalCommentListener',\r\n\t\t\t\t\tevent: 'NewComment'\r\n\t\t\t\t}\r\n\t\t\t])\r\n\t\t\t.on('RSRealtimeNewComment', handleNewComment);\r\n\r\n\t\t// check session storage for like status\r\n\t\tif (window.sessionStorage) {\r\n\t\t\tconst likeStatus = JSON.parse(window.sessionStorage.getItem(props.data.ReblastId));\r\n\t\t\tif (likeStatus && likeStatus.UserId === RESAAS.User2.UserId) {\r\n\t\t\t\tif (likeStatus.IsLikedByUser !== props.data.UserLikedReblast) {\r\n\t\t\t\t\tif (likeStatus.IsLikedByUser) {\r\n\t\t\t\t\t\tprops.update(prevState => ({ ...prevState, UserLikedReblast: likeStatus.IsLikedByUser, ReblastLikeCounter: prevState.ReblastLikeCounter + 1 }));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tprops.update(prevState => ({ ...prevState, UserLikedReblast: likeStatus.IsLikedByUser, ReblastLikeCounter: prevState.ReblastLikeCounter - 1 }));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// cleanup\r\n\t\treturn function cleanup() {\r\n\t\t\t$('body').off('RSRealtimeNewComment', handleNewComment);\r\n\t\t};\r\n\t}, []);\r\n\r\n\t// click like \r\n\tfunction clickLike() {\r\n\t\tif (pendingLike) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst likedState = !props.data.UserLikedReblast;\r\n\r\n\t\tlet criteria = { \"ContentIdentifier\": props.data.ReblastId, \"ContentType\": \"1\" };\r\n\t\tif (!likedState) {\r\n\t\t\tcriteria={ ...criteria, \"Delete\": true };\r\n\t\t}\r\n\r\n\t\tsetPendingLike(true);\r\n\t\tSaveLike.edit(criteria)\r\n\t\t\t.then((result) => {\r\n\t\t\t\tif (!_path(['data', 'SaveLikeResult', 'Success'], result)) {\r\n\t\t\t\t\tthrow _path(['data', 'SaveLikeResult', 'Message'], result);\r\n\t\t\t\t}\r\n\t\t\t\tif (likedState) {\r\n\t\t\t\t\tprops.update(prevState => ({ ...prevState, UserLikedReblast: likedState, ReblastLikeCounter: prevState.ReblastLikeCounter + 1 }));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tprops.update(prevState => ({ ...prevState, UserLikedReblast: likedState, ReblastLikeCounter: prevState.ReblastLikeCounter - 1 }));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (window.sessionStorage) {\r\n\t\t\t\t\twindow.sessionStorage.setItem(props.data.ReblastId, JSON.stringify({\r\n\t\t\t\t\t\t\"IsLikedByUser\": likedState,\r\n\t\t\t\t\t\t\"UserId\": RESAAS.User2.UserId\r\n\t\t\t\t\t}));\r\n\t\t\t\t}\r\n\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tprops.message.addMessage({ message: resx(RESX_GLOBAL, 'GENERIC_WEBSERVICE_ERROR_MESSAGE'), type: 'error' });\r\n\t\t\t\tLogglyLogger.add(LOGGLY_LEVEL_ERROR, 'SaveLike failure to update like', error);\r\n\t\t\t})\r\n\t\t\t.finally(() => {\r\n\t\t\t\tsetPendingLike(false);\r\n\t\t\t});\r\n\t}\r\n\r\n\tfunction clickComment() {\r\n\t\t// clear new comment count\r\n\t\tsetNewCommentCount(0);\r\n\r\n\t\t// update state to expand comments commonent\r\n\t\tprops.update(prevState => ({\r\n\t\t\t...prevState,\r\n\t\t\tcommentsFetch: true,\r\n\t\t\tcommentsDisplayCount: Infinity,\r\n\t\t\tcommentsRequestedByUser: true,\r\n\t\t\tcommentsPendingId: prevState.commentsPendingId + 1,\r\n\t\t\thasMoreCommentsToShow: false\r\n\t\t}));\r\n\t}\r\n\r\n\tfunction renderLikeButton() {\r\n\t\tconst likedClassName = props.data.UserLikedReblast ? \"liked\" : \"\";\r\n\t\tconst likeText = props.data.UserLikedReblast ? resx(RESX_GLOBAL, 'LIKED') : resx(RESX_GLOBAL, 'LIKE');\r\n\t\tconst isUser = _path(['User2', 'UserId'], RESAAS);\r\n\t\tif (!isUser) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t
  • \r\n\t\t\t\t\r\n\t\t\t\t\t{likeText}\r\n\t\t\t\t\r\n\t\t\t
  • \r\n\t\t);\r\n\t}\r\n\r\n\tfunction renderCommentButton() {\r\n\t\tif (!props.data.CanPostComments) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (props.data.IsScrubbed) {\r\n\t\t\treturn null;\t\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t
  • \r\n\t\t\t\t\r\n\t\t\t\t\t{newCommentCount < 1 ? {resx(RESX_REBLASTS, 'COMMENT_TEXT')} : ''}\r\n\t\t\t\t\t{newCommentCount === 1 ? {newCommentCount} {resx(RESX_REBLASTS, 'NEW_COMMENT')} : ''}\r\n\t\t\t\t\t{newCommentCount > 1 ? {newCommentCount} {resx(RESX_REBLASTS, 'NEW_COMMENTS')}: ''}\r\n\t\t\t\t\r\n\t\t\t
  • \r\n\t\t);\r\n\t};\r\n\r\n\t// render share text\r\n\tfunction renderShareButton() {\r\n\t\tconst firstName = _path(['data', 'User', 'FirstName'], props);\r\n\t\tconst lastName = _path(['data', 'User', 'LastName'], props);\r\n\t\tconst domain = _path(['RESAAS', 'Environment', 'ApplicationUrl'], window);\r\n\t\tconst author = `${firstName} ${lastName}`;\t\r\n\t\tconst url = props.data.ListingSeoUrl ? props.data.ListingSeoUrl:`${domain}/reblast/${props.data.ReblastId}`;\r\n\t\tlet type = \"post\";\r\n\t\r\n\t\t/***ReblastType\r\n\t\t\tOriginal = 0,\r\n\t\t\tFirm = 1,\r\n\t\t\tGroup = 2,\r\n\t\t\tReferralGroup = 3\r\n\t\t***/\r\n\t\tconst reblastType = ['Firm', 'Group', 'ReferralGroup', 1, 2, 3];\r\n\r\n\t\tif (reblastType.indexOf(props.data.ReblastType) !== -1) {\r\n\t\t\ttype = \"privatepost\";\r\n\t\t}\r\n\t\telse if (props.data.Listing) {\r\n\t\t\ttype = \"listingpost\";\r\n\t\t}\r\n\t\telse if (props.data.HasImageInAttachment) {\r\n\t\t\ttype = \"imagepost\";\r\n\t\t}\r\n\t\treturn (\r\n
  • \r\n \r\n\t\t\t
  • \r\n\t\t);\r\n\t}\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t
      \r\n\t\t\t\t{renderLikeButton()}\r\n\t\t\t\t{renderCommentButton()}\r\n\t\t\t\t{renderShareButton()}\r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n}\r\n\r\nReblastTools.propTypes = {\r\n\tmessage: PropTypes.object,\r\n\tdata: PropTypes.object.isRequired,\r\n\tupdate: PropTypes.func.isRequired\r\n};\r\n\r\nexport default withMessage(ReblastTools);\r\n","import React from 'react';\r\nimport format from 'string-format';\r\nimport PropTypes from 'prop-types';\r\nimport _path from 'ramda/src/path';\r\nimport resx from '../../../utilities/resx';\r\nimport { RESX_GLOBAL } from '../../../Constants';\r\n\r\n\r\nfunction ReblastImpressions(props) {\r\n\tconst isUser = _path(['User2', 'UserId'], RESAAS);\r\n\tif (!isUser) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tfunction renderLikeCaption() {\r\n\t\tlet likeCaptionText;\r\n\t\tif (props.data.UserLikedReblast) {\r\n\t\t\tif (props.data.ReblastLikeCounter === 1) {\r\n\t\t\t\tlikeCaptionText = resx(RESX_GLOBAL, 'LIKE_COUNT_YOU');\r\n\t\t\t}\r\n\t\t\telse if (props.data.ReblastLikeCounter === 2) {\r\n\t\t\t\tlikeCaptionText = resx(RESX_GLOBAL, 'LIKE_COUNT_YOU_AND_SINGULAR');\r\n\t\t\t}\r\n\t\t\telse if (props.data.ReblastLikeCounter > 2) {\r\n\t\t\t\tlikeCaptionText = format(resx(RESX_GLOBAL, 'LIKE_COUNT_YOU_AND_PLURAL'), props.data.ReblastLikeCounter-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (props.data.ReblastLikeCounter === 1) {\r\n\t\t\tlikeCaptionText = resx(RESX_GLOBAL, 'LIKE_COUNT_SINGULAR');\r\n\t\t}\r\n\t\telse if (props.data.ReblastLikeCounter > 1) {\r\n\t\t\tlikeCaptionText = format(resx(RESX_GLOBAL, 'LIKE_COUNT_PLURAL'), props.data.ReblastLikeCounter);\r\n\t\t}\r\n\r\n\t\t// note: onClick is handled by re_like_list_control.js, listening to '#ReblastDetailsComponent.re-like-count'\r\n\t\treturn (\r\n\t\t\tlikeCaptionText && (
    {likeCaptionText}
    )\r\n\t\t);\r\n\t}\r\n\r\n\tfunction renderUniqueViewCount() {\r\n\t\tif (!props.data.UniqueViewCount || props.data.UniqueViewCount === '0') {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (props.data.IsReblastOwner) {\r\n\t\t\t// note: onClick is handled by re_reach_list_control.js, listening to '.js-uniqueviewcount'\r\n\t\t\treturn ();\r\n\t\t}\r\n\t\treturn ({props.data.UniqueViewCount});\r\n\t}\r\n\r\n\tfunction renderUniqueTotalViews() {\r\n\t\tif (!props.data.TotalViewCount || props.data.TotalViewCount === '0') {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t{props.data.TotalViewCount}\r\n\t\t);\r\n\t}\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t{renderLikeCaption()}\r\n\t\t\t
    \r\n\t\t\t\t{renderUniqueViewCount()}\r\n\t\t\t\t{renderUniqueTotalViews()}\r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};\r\nReblastImpressions.propTypes = {\r\n\tdata: PropTypes.object.isRequired\r\n};\r\n\r\nexport default ReblastImpressions;","import request from './AxiosRequest';\r\n\r\nconst updateReblastIsFeatured = (data) =>\r\n\trequest({\r\n\t\tmethod: 'POST',\r\n\t\turl: '/Services/api/reblast/updatereblastisfeatured',\r\n\t\tdata\r\n\t});\r\n\r\nconst Reblast = {\r\n\tupdateReblastIsFeatured: updateReblastIsFeatured\r\n};\r\n\r\nexport default Reblast;\r\n","import request from './AxiosRequest';\r\n\r\nconst deleteReblast = (reblastId, websiteId) =>\r\n\trequest({\r\n\t\tmethod: 'POST',\r\n\t\turl: '/Services/MainService.svc/json/RemoveReblast',\r\n\t\tdata: {\r\n\t\t\treblast: {\r\n\t\t\t\tIdentifier: reblastId,\r\n\t\t\t\tWebsiteId: websiteId\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\nconst RemoveReblast = {\r\n\tdelete: deleteReblast\r\n};\r\n\r\nexport default RemoveReblast;\r\n","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _path from 'ramda/src/path';\r\nimport resx from '../../../utilities/resx';\r\nimport {\r\n RESX_DASHBOARD,\r\n RESX_REBLASTS,\r\n RESX_GLOBAL,\r\n LOGGLY_LEVEL_ERROR,\r\n LOGGLY_LEVEL_INFO,\r\n MIXPANEL_DELETE\r\n} from '../../../Constants';\r\nimport Button from '../Button';\r\nimport ConfirmAlert from '../ConfirmAlert';\r\nimport Spinner from '../Spinner';\r\nimport reblast from '../../../API/Reblast';\r\nimport saveReblast from '../../../API/SaveReblast';\r\nimport removeReblast from '../../../API/RemoveReblast';\r\nimport { withMessage } from '../Message';\r\nimport loggly from '../../../API/Loggly';\r\nimport mixpanel from '../../../API/Mixpanel';\r\n\r\nconst ReblastActions = ({\r\n state,\r\n setState,\r\n isGroupAdmin,\r\n isFeed,\r\n deleteReblastFromState,\r\n message,\r\n closeDropdown,\r\n canPinPost\r\n}) => {\r\n const isReblastOwner = state.IsReblastOwner;\r\n const reblastId = state.ReblastId;\r\n const userWebsiteId = state.User.WebsiteId;\r\n\r\n const [showDropdown, setShowDropdown] = useState(false);\r\n const [loading, setLoading] = useState(false);\r\n\r\n const isModerator = _path(['User2', 'LoggedInUserIsAdminOrStaff'], RESAAS);\r\n const isIdentifiedUser = _path(['User2', 'UserId'], RESAAS);\r\n let loadingTimer;\r\n\r\n const handleClickDropdown = () => {\r\n setShowDropdown(!showDropdown);\r\n };\r\n\r\n const handleDeleteCatchError = error => {\r\n setShowDropdown(false);\r\n clearTimeout(loadingTimer);\r\n setLoading(false);\r\n message.addMessage({ message: resx(RESX_GLOBAL, 'GENERIC_WEBSERVICE_ERROR_MESSAGE'), type: 'error' });\r\n loggly.add(LOGGLY_LEVEL_ERROR, `Reblast could not be deleted: ${error}`);\r\n };\r\n\r\n const inSessionStorage = () => {\r\n var rtValue = false;\r\n\r\n for (let i = 0; i < sessionStorage.length; i++) {\r\n const obj = sessionStorage.getItem(sessionStorage.key(i));\r\n if (obj === reblastId) {\r\n rtValue = true;\r\n }\r\n }\r\n\r\n return rtValue;\r\n };\r\n\r\n const addToSessionStorage = () => {\r\n if (window.Modernizr && window.Modernizr.sessionstorage) {\r\n let reblastIdx = Object.keys(window.sessionStorage).filter(key => key.includes('reblast#')).length;\r\n\r\n if (!inSessionStorage(reblastId)) {\r\n const index = `reblast#${++reblastIdx}`; // increment reblastIdx\r\n // save to sessionStorage\r\n sessionStorage.setItem(index, reblastId);\r\n }\r\n }\r\n };\r\n\r\n const handleDeleteClick = () => {\r\n ConfirmAlert({\r\n description: resx(RESX_DASHBOARD, 'DASHBOARD_REBLAST_DELETE_CONFIRM'),\r\n confirmLabel: resx(RESX_DASHBOARD, 'DASHBOARD_REBLAST_TEXT_DELETE'),\r\n abortLabel: resx(RESX_DASHBOARD, 'DASHBOARD_REBLAST_TEXT_CANCEL')\r\n }).then(() => {\r\n loadingTimer = setTimeout(() => {\r\n setLoading(true);\r\n }, 1000);\r\n if (isModerator) {\r\n removeReblast\r\n .delete(reblastId, userWebsiteId)\r\n .then(response => {\r\n if (!_path(['data', 'RemoveReblastResult', 'Success'], response)) {\r\n throw new Error(_path(['data', 'SaveReblastResult', 'Message'], response));\r\n }\r\n\r\n mixpanel.add(MIXPANEL_DELETE, { content: 'Reblast Text', type: 'Group Admin Delete Reblast' });\r\n\r\n clearTimeout(loadingTimer);\r\n setShowDropdown(false);\r\n setLoading(false);\r\n addToSessionStorage();\r\n\r\n if (isFeed) {\r\n deleteReblastFromState(reblastId);\r\n } else {\r\n window.location.assign('/');\r\n }\r\n })\r\n .catch(error => {\r\n handleDeleteCatchError(error);\r\n loggly.add(LOGGLY_LEVEL_ERROR, `Failed to delete reblast from /removeReblast`, error);\r\n });\r\n } else {\r\n saveReblast\r\n .delete(reblastId)\r\n .then(response => {\r\n if (!_path(['data', 'SaveReblastResult', 'Success'], response)) {\r\n throw new Error(_path(['data', 'SaveReblastResult', 'Message'], response));\r\n }\r\n mixpanel.add(MIXPANEL_DELETE, { content: 'Reblast Text' });\r\n\r\n clearTimeout(loadingTimer);\r\n setShowDropdown(false);\r\n setLoading(false);\r\n addToSessionStorage();\r\n\r\n if (isFeed) {\r\n deleteReblastFromState(reblastId);\r\n } else {\r\n window.location.assign('/');\r\n }\r\n })\r\n .catch(error => {\r\n handleDeleteCatchError(error);\r\n loggly.add(LOGGLY_LEVEL_ERROR, `Failed to delete reblast from /saveReblast`, error);\r\n });\r\n }\r\n });\r\n };\r\n\r\n const handlePinClick = () => {\r\n const isFeatured = !state.IsFeatured;\r\n\r\n setState(prevState => ({ ...prevState, IsFeatured: isFeatured }));\r\n\r\n reblast\r\n .updateReblastIsFeatured({\r\n IsFeatured: isFeatured,\r\n Identifier: reblastId,\r\n FirmId: state.FirmID\r\n })\r\n .then(() => {\r\n const m = isFeatured ? 'PINNED_POST_SUCCESS' : 'UNPINNED_POST_SUCCESS';\r\n message.addMessage({ message: resx(RESX_GLOBAL, m), type: 'success' });\r\n })\r\n .catch(error => {\r\n setState(prevState => ({ ...prevState, IsFeatured: !isFeatured }));\r\n message.addMessage({ message: resx(RESX_GLOBAL, 'GENERIC_WEBSERVICE_ERROR_MESSAGE'), type: 'error' });\r\n loggly.add(LOGGLY_LEVEL_ERROR, `pin-unpin error: ${error}`);\r\n });\r\n };\r\n\r\n const handleReportClick = () => {\r\n loggly.add(LOGGLY_LEVEL_INFO, `Innappropriate Content Report: Reblast: ${reblastId}`);\r\n message.addMessage({ message: resx(RESX_GLOBAL, 'REPORT_INAPPROPRIATE_CONTENT_SUCCESS'), type: 'warning' });\r\n };\r\n\r\n useEffect(\r\n () => {\r\n setShowDropdown(false);\r\n },\r\n [closeDropdown]\r\n );\r\n\r\n return (\r\n
    \r\n {isIdentifiedUser ? (\r\n {\r\n setTimeout(() => {\r\n setShowDropdown(false);\r\n }, 250);\r\n }}\r\n />\r\n ) : null}\r\n\r\n {showDropdown ? (\r\n
      \r\n {canPinPost ? (\r\n
    • \r\n \r\n
    • \r\n ) : null}\r\n {!isReblastOwner ? (\r\n
    • \r\n \r\n
    • \r\n ) : null}\r\n {isReblastOwner || isModerator || isGroupAdmin ? (\r\n
    • \r\n \r\n
    • \r\n ) : null}\r\n
    \r\n ) : null}\r\n
    \r\n );\r\n};\r\n\r\nReblastActions.propTypes = {\r\n state: PropTypes.object,\r\n setState: PropTypes.func,\r\n message: PropTypes.object,\r\n isFeed: PropTypes.bool,\r\n deleteReblastFromState: PropTypes.func,\r\n closeDropdown: PropTypes.number.isRequired,\r\n canPinPost: PropTypes.bool\r\n};\r\n\r\nexport default withMessage(ReblastActions);\r\n","import request from './AxiosRequest';\r\n\r\nconst addComment = data =>\r\n\trequest({\r\n\t\turl: `/Services/MainService.svc/json/SaveComment`,\r\n\t\tmethod: 'POST',\r\n\t\tdata\r\n\t});\r\n\r\nconst deleteComment = commentId =>\r\n\trequest({\r\n\t\turl: '/Services/MainService.svc/json/SaveComment',\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tcomment: {\r\n\t\t\t\tAction: 2,\r\n\t\t\t\tCommentId: commentId\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\nconst SaveComment = {\r\n\tadd: addComment,\r\n\tdelete: deleteComment\r\n}\r\n\r\nexport default SaveComment;\r\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _path from 'ramda/src/path';\r\nimport Button from '../Button';\r\nimport ConfirmAlert from '../ConfirmAlert';\r\nimport resx from '../../../utilities/resx';\r\nimport saveComment from '../../../API/SaveComment';\r\nimport { withMessage } from '../Message';\r\nimport loggly from '../../../API/Loggly';\r\nimport mixpanel from '../../../API/Mixpanel';\r\nimport { LOGGLY_LEVEL_ERROR, MIXPANEL_DELETE, RESX_GLOBAL, RESX_REBLASTS, RESX_DASHBOARD } from '../../../Constants';\r\n\r\nconst DeleteComment = props => {\r\n const { setState, commentId, message } = props;\r\n const [loading, setLoading] = useState(false);\r\n const [showDropdown, setShowDropdown] = useState(false);\r\n let loadingTimer;\r\n const handleDropdownClick = () => {\r\n setShowDropdown(!showDropdown);\r\n };\r\n\r\n const handleDeleteClick = () => {\r\n ConfirmAlert({\r\n description: resx(RESX_REBLASTS, 'REBLASTS_DELETE_COMMENT'),\r\n confirmLabel: resx(RESX_DASHBOARD, 'DASHBOARD_CONTACT_DELETE'),\r\n abortLabel: resx(RESX_REBLASTS, 'CANCEL_TEXT')\r\n }).then(() => {\r\n loadingTimer = setTimeout(() => {\r\n setLoading(true);\r\n }, 1000);\r\n saveComment\r\n .delete(commentId)\r\n .then(response => {\r\n if (!_path(['data', 'SaveCommentResult', 'Success'], response)) {\r\n throw new Error(_path(['data', 'SaveCommentResult', 'Message'], response));\r\n }\r\n mixpanel.add(MIXPANEL_DELETE, { content: 'Comment Text' });\r\n clearTimeout(loadingTimer);\r\n setLoading(false);\r\n setState(prevState => ({\r\n ...prevState,\r\n Comments: prevState.Comments.filter(comment => comment.CommentId !== commentId)\r\n }));\r\n })\r\n .catch(error => {\r\n clearTimeout(loadingTimer);\r\n setLoading(false);\r\n message.addMessage({\r\n message: resx(RESX_GLOBAL, 'GENERIC_WEBSERVICE_ERROR_MESSAGE'),\r\n type: 'error'\r\n });\r\n loggly.add(LOGGLY_LEVEL_ERROR, `Reblast comment could not be deleted: ${error}`);\r\n });\r\n });\r\n };\r\n\r\n return (\r\n \r\n {\r\n setTimeout(() => {\r\n setShowDropdown(false);\r\n }, 250);\r\n }}\r\n />\r\n {showDropdown ? (\r\n
    \r\n \r\n
    \r\n ) : null}\r\n
    \r\n );\r\n};\r\n\r\nDeleteComment.propTypes = {\r\n commentId: PropTypes.string.isRequired,\r\n message: PropTypes.object,\r\n setState: PropTypes.func.isRequired\r\n};\r\n\r\nexport default withMessage(DeleteComment);\r\n","import request from './AxiosRequest';\r\n\r\nconst browse = (data) =>\r\n\trequest({\r\n\t\turl: '/Services/MainService.svc/json/SearchComment',\r\n\t\tmethod: 'POST',\r\n\t\tdata\r\n\t});\r\n\r\nconst SearchComment = {\r\n\tbrowse\r\n}\r\n\r\nexport default SearchComment;","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport format from 'string-format';\r\nimport _path from 'ramda/src/path';\r\nimport Avatar from '../Avatar';\r\nimport Image from '../Image';\r\nimport Button from '../Button';\r\nimport DateFromNow from '../DateFromNow';\r\nimport DeleteComment from './DeleteComment';\r\nimport { withMessage } from '../Message';\r\nimport resx from '../../../utilities/resx';\r\nimport generalUtilities from '../../../utilities/generalUtility';\r\nimport searchComment from '../../../API/SearchComment';\r\nimport loggly from '../../../API/Loggly';\r\nimport { RESX_GLOBAL, RESX_REBLASTS, LOGGLY_LEVEL_ERROR } from '../../../Constants';\r\n\r\nfunction CommentsView(props) {\r\n if (!_path(['RESAAS', 'User2', 'IsProfessional'], window)) {\r\n return null;\r\n }\r\n const lazy = props.lazy;\r\n const state = props.data;\r\n const {\r\n Comments,\r\n TotalCommentCount,\r\n commentsFetch,\r\n commentsDisplayCount,\r\n commentsRequestedByUser,\r\n commentsPendingId,\r\n hasMoreCommentsToShow\r\n } = props.data;\r\n const { setState } = props;\r\n const [loading, setLoading] = useState(false);\r\n const applicationUrl = _path(['RESAAS', 'Environment', 'ApplicationUrl'], window);\r\n let loadingTimeout;\r\n\r\n const sortComments = comments => {\r\n return [...comments].sort((a, b) => {\r\n const dateA = new Date(a.DateCreatedFormatted);\r\n const dateB = new Date(b.DateCreatedFormatted);\r\n return dateB - dateA;\r\n });\r\n };\r\n\r\n const handleReplyClick = usermention => {\r\n props.textareaRef.current.click();\r\n props.setInputValue(`@${usermention.replace(/^\\//, '')} `);\r\n props.textareaRef.current.focus();\r\n };\r\n\r\n useEffect(\r\n () => {\r\n const hasMoreComments =\r\n Comments && (Comments.length > commentsDisplayCount || TotalCommentCount > commentsDisplayCount);\r\n setState(prevState => ({ ...prevState, hasMoreCommentsToShow: hasMoreComments }));\r\n },\r\n [hasMoreCommentsToShow]\r\n );\r\n\r\n const fetchComments = () => {\r\n loadingTimeout = setTimeout(() => {\r\n setLoading(true);\r\n }, 1000);\r\n searchComment\r\n .browse({\r\n criteria: {\r\n ContentId: state.ReblastId,\r\n RecordCount: state.commentsDisplayCount === Infinity ? 100 : state.commentsDisplayCount + 1\r\n }\r\n })\r\n .then(response => {\r\n const result = _path(['data', 'SearchCommentResult'], response);\r\n if (!result || !result.Success) {\r\n throw new Error(result.Message);\r\n }\r\n setState(prevState => ({ ...prevState, Comments: sortComments(result.Data) }));\r\n })\r\n .catch(error => {\r\n props.message.addMessage({\r\n message: resx(RESX_GLOBAL, 'CANNOT_RETRIEVE_COMMENTS_ERROR'),\r\n type: 'error'\r\n });\r\n loggly.add(LOGGLY_LEVEL_ERROR, `Reblast comments could not be retrieved: ${error}`);\r\n })\r\n .finally(() => {\r\n clearTimeout(loadingTimeout);\r\n setLoading(false);\r\n });\r\n };\r\n\r\n useEffect(\r\n () => {\r\n if (commentsFetch) {\r\n fetchComments();\r\n }\r\n },\r\n [commentsFetch, commentsDisplayCount, commentsPendingId]\r\n );\r\n\r\n const handleLoadMoreClick = () => {\r\n setState(prevState => ({\r\n ...prevState,\r\n commentsFetch: true,\r\n commentsDisplayCount: Infinity,\r\n commentsRequestedByUser: false,\r\n hasMoreCommentsToShow: false\r\n }));\r\n };\r\n\r\n const loadMoreText = () => {\r\n const remainingComments = TotalCommentCount - commentsDisplayCount;\r\n\r\n if (remainingComments === 1) {\r\n return resx(RESX_REBLASTS, 'VIEW_ONE_MORE_COMMENT');\r\n }\r\n\r\n return format(resx(RESX_REBLASTS, 'VIEW_MORE_COMMENTS'), remainingComments);\r\n };\r\n\r\n const showCTA = () => Comments && Comments.length === 0 && commentsRequestedByUser;\r\n const showDelete = comment => comment.WebsiteId === RESAAS.User2.WebsiteId || comment.IsOwner;\r\n const displayName = comment => `${comment.FirstName} ${comment.LastName}`;\r\n const formatText = comment => ({ __html: generalUtilities.linkifyTextString(comment.Text) });\r\n\r\n return (\r\n \r\n {showCTA() && (\r\n
    \r\n {resx(RESX_REBLASTS, 'NO_NEW_COMMENTS')}\r\n
    \r\n )}\r\n
      \r\n {Comments &&\r\n Comments.slice(0, commentsDisplayCount).map(comment => (\r\n
    • \r\n \r\n \r\n \r\n
      \r\n
        \r\n
      • \r\n \r\n {displayName(comment)}\r\n \r\n \r\n @{comment.DomainUrl.replace(/^\\//, '')}\r\n \r\n
      • \r\n
      • \r\n {showDelete(comment) ? (\r\n \r\n ) : null}\r\n
      • \r\n
      \r\n \r\n
      \r\n
      \r\n \r\n
      \r\n handleReplyClick(comment.DomainUrl)}\r\n >\r\n Reply\r\n \r\n
      \r\n {comment.Attachment &&\r\n comment.Attachment.AttachmentImage && (\r\n
      \r\n \r\n \r\n \r\n
      \r\n )}\r\n {comment.Attachment &&\r\n comment.Attachment.AttachmentDocument && (\r\n
      \r\n \r\n
      \r\n {resx(RESX_GLOBAL, 'VIEW_PDF_TEXT')}\r\n \r\n
      \r\n )}\r\n
      \r\n
    • \r\n ))}\r\n
    \r\n {hasMoreCommentsToShow ? (\r\n handleLoadMoreClick()}\r\n />\r\n ) : null}\r\n {loading ? (\r\n \r\n
  • \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
  • \r\n
  • \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
  • \r\n
  • \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
  • \r\n
    \r\n ) : null}\r\n
    \r\n );\r\n}\r\n\r\nCommentsView.propTypes = {\r\n data: PropTypes.object.isRequired,\r\n lazy: PropTypes.bool,\r\n message: PropTypes.object,\r\n setState: PropTypes.func.isRequired\r\n};\r\n\r\nexport default withMessage(CommentsView);\r\n","import React, { useState, useEffect, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _path from 'ramda/src/path';\r\nimport resx from '../../../utilities/resx';\r\nimport { LOGGLY_LEVEL_ERROR, RESX_GLOBAL, RESX_REBLASTS, MIXPANEL_CONTENT } from '../../../Constants';\r\nimport CommentAttachment from '../Attachment/CommentAttachment';\r\nimport CommentAttachmentPreview from '../Attachment/CommentAttachmentPreview';\r\nimport SaveComment from '../../../API/SaveComment';\r\nimport { withMessage } from '../Message';\r\nimport LogglyLogger from '../../../API/Loggly';\r\nimport Mixpanel from '../../../API/Mixpanel';\r\nimport Avatar from '../Avatar';\r\nimport UserMention from '../UserMention';\r\n\r\nconst CommentAuthor = ({ data, setState, message, lazy, inputValue, setInputValue, textareaRef }) => {\r\n if (\r\n !_path(['RESAAS', 'User2', 'IsProfessional'], window) ||\r\n _path(['RESAAS', 'User2', 'IsPendingProfessional'], window)\r\n ) {\r\n return null;\r\n }\r\n\r\n const [buttonStatus, setButtonStatus] = useState('');\r\n const [messageStatus, setMessageStatus] = useState('');\r\n const [commentMessage, setCommentMessage] = useState('');\r\n const [showCommentActions, setShowCommentActions] = useState(false);\r\n const [textAreaHeight, setTextAreaHeight] = useState('');\r\n\r\n const handleInputClick = event => {\r\n handleInput(event);\r\n setShowCommentActions(true);\r\n textareaRef.current.focus();\r\n\r\n setState(prevState => ({\r\n ...prevState,\r\n commentsFetch: data.hasMoreCommentsToShow,\r\n commentsDisplayCount: Infinity,\r\n commentsRequestedByUser: true,\r\n commentsPendingId: prevState.commentsPendingId + 1,\r\n hasMoreCommentsToShow: false\r\n }));\r\n };\r\n\r\n useEffect(\r\n () => {\r\n if (data.commentsPendingId > 0) {\r\n // user clicked comment, apply focus and expand self\r\n setShowCommentActions(true);\r\n }\r\n },\r\n [data.commentsPendingId]\r\n );\r\n\r\n const websiteId = _path(['RESAAS', 'User2', 'WebsiteId'], window);\r\n const saveComment = () => {\r\n const commentData = {\r\n comment: {\r\n ContentId: data.ReblastId,\r\n ContentTypeId: 3,\r\n Text: inputValue\r\n }\r\n };\r\n\r\n if (data.commentsAttachmentsId && data.commentsAttachmentTypeId) {\r\n commentData.comment.AttachmentId = data.commentsAttachmentsId;\r\n commentData.comment.AttachmentTypeId = data.commentsAttachmentTypeId;\r\n }\r\n\r\n // check input has at least 1 character before submitting\r\n if (inputValue.length && inputValue.length < 1000 && buttonStatus === '') {\r\n // adding spinner\r\n setButtonStatus('submitting');\r\n\r\n SaveComment.add(commentData)\r\n .then(response => {\r\n if (!response.data.SaveCommentResult.Success) {\r\n setButtonStatus('');\r\n throw new Error(response.data.SaveCommentResult.Message);\r\n }\r\n\r\n setInputValue('');\r\n setTextAreaHeight('');\r\n setCommentMessage('');\r\n\r\n const responseData = response.data.SaveCommentResult.Data;\r\n const newComment = {\r\n ...responseData,\r\n DomainUrl: window.RESAAS.User2.DomainUrl,\r\n WebsiteId: window.RESAAS.User2.WebsiteId,\r\n FirstName: window.RESAAS.User2.FirstName,\r\n LastName: window.RESAAS.User2.LastName\r\n };\r\n\r\n setState(prevState => {\r\n prevState.Comments.push(newComment);\r\n return {\r\n ...prevState,\r\n commentsAttachmentsId: null,\r\n commentsAttachmentTypeId: null,\r\n commentsAttachmentsImage: null\r\n };\r\n });\r\n\r\n Mixpanel.add(MIXPANEL_CONTENT, { content: 'Reblast Comment', from: window.pageType });\r\n })\r\n .catch(error => {\r\n setButtonStatus('');\r\n const errorMessage = resx(RESX_GLOBAL, 'GENERIC_WEBSERVICE_ERROR_MESSAGE');\r\n message.addMessage({ message: errorMessage, type: 'error' });\r\n\r\n LogglyLogger.add(LOGGLY_LEVEL_ERROR, 'SaveCommentService.add from Reblast Details Page', error);\r\n })\r\n .finally(() => {\r\n setButtonStatus('');\r\n });\r\n } else {\r\n setMessageStatus('failed');\r\n setCommentMessage(resx(RESX_GLOBAL, 'COMMENT_TEXT'));\r\n }\r\n };\r\n\r\n const handleInput = event => {\r\n const { value } = event.target;\r\n setInputValue(value);\r\n setTextAreaHeight(textareaRef.current.scrollHeight);\r\n };\r\n\r\n const handleBlur = () => {\r\n setInputValue(textareaRef.current.value);\r\n setTextAreaHeight(textareaRef.current.scrollHeight);\r\n };\r\n\r\n const handleCancel = () => {\r\n setShowCommentActions(false);\r\n setInputValue('');\r\n setTextAreaHeight('');\r\n };\r\n\r\n return (\r\n \r\n
    \r\n
    \r\n
    \r\n {websiteId && (\r\n \r\n )}\r\n
    \r\n\r\n
    \r\n \r\n \r\n {data.commentsAttachmentsImage && }\r\n
    \r\n
    \r\n\r\n {showCommentActions && (\r\n \r\n \r\n\r\n
    {commentMessage}
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nCommentAuthor.propTypes = {\r\n data: PropTypes.object.isRequired,\r\n lazy: PropTypes.bool,\r\n setState: PropTypes.func.isRequired,\r\n message: PropTypes.object\r\n};\r\n\r\nexport default withMessage(CommentAuthor);\r\n","import React, { useState, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _path from 'ramda/src/path';\r\nimport CommentsView from './CommentsView';\r\nimport CommentAuthor from './CommentAuthor';\r\nimport { MessageProvider } from '../Message';\r\n\r\nconst CommentsContainer = ({ data, setState, lazy }) => {\r\n const [inputValue, setInputValue] = useState('');\r\n const textareaRef = useRef(null);\r\n\r\n if (!_path(['RESAAS', 'User2', 'UserId'], window)) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nCommentsContainer.propTypes = {\r\n data: PropTypes.object.isRequired,\r\n lazy: PropTypes.bool,\r\n setState: PropTypes.func.isRequired\r\n};\r\n\r\nexport default CommentsContainer;\r\n","import React, { useState, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Content from './Content';\r\nimport IdBar from '../IdBar';\r\nimport ReblastTools from './ReblastTools';\r\nimport ReblastImpressions from './ReblastImpressions';\r\nimport ReblastActions from './ReblastActions';\r\nimport CommentsContainer from './CommentsContainer';\r\n\r\nfunction ReblastContainer(props) {\r\n\tconst data = props.data;\r\n\tdata.commentsRequestedByUser = false;\r\n\tdata.commentsPendingId = 0;\r\n\tdata.commentsAttachmentsId = null;\r\n\tdata.commentsAttachmentsImage = null;\r\n\tdata.commentsAttachmentTypeId = null;\r\n\tdata.isUploadingAttachment = false;\r\n\tdata.hasMoreCommentsToShow = false;\r\n\r\n\tconst [state, setState] = useState(data);\r\n\tconst { isFeed } = props;\r\n\r\n\tconst reblastActionRef = useRef();\r\n\tconst [closeReblastActions, setCloseReblastActions] = useState(0);\r\n\tconst clickedReblastContainer = event => {\r\n\t\tif (reblastActionRef.current && !reblastActionRef.current.contains(event.target)) {\r\n\t\t\tsetCloseReblastActions(prev => prev + 1);\r\n\t\t}\r\n\t};\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t{data.ContentTrackingUrl ? (\r\n\t\t\t\t\r\n\t\t\t): null}\r\n\t\t\t
    \r\n\t\t\t\t\r\n\r\n\t\t\t\t
    \r\n\t\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t{!state.IsScrubbed && }\r\n\t\t\r\n\t);\r\n}\r\n\r\nReblastContainer.propTypes = {\r\n\tcanPinPost: PropTypes.bool,\r\n\tdata: PropTypes.object.isRequired,\r\n\tdeleteReblastFromState: PropTypes.func,\r\n\tisFeed: PropTypes.bool,\r\n\tisGroupAdmin: PropTypes.bool,\r\n\tlazy: PropTypes.bool\r\n};\r\n\r\nexport default ReblastContainer;\r\n","import React, { useState, useRef, useEffect } from \"react\";\r\nimport PropTypes from 'prop-types';\r\n\r\nconst Share = ({ shareUrl, contentType, showIconOnly, showIconWithText, showIconWithButton, shareMessage, showDetails, privacyType }) => {\r\n let facebook, twitter, linkedin; \r\n\r\n const [isOpen, setIsOpen] = useState(false);\r\n const menuRef = useRef(null);\r\n const buttonRef = useRef(null);\r\n\r\n switch (privacyType) {\r\n case 'privatepost':\r\n facebook = false;\r\n twitter = false;\r\n linkedin = false;\r\n break;\r\n case 'privatelead':\r\n case 'privatelisting':\r\n facebook = false;\r\n twitter = false;\r\n linkedin = false;\r\n break;\r\n default:\r\n facebook = true;\r\n twitter = true;\r\n linkedin = true;\r\n break;\r\n }\r\n\r\n const encodedMessage = encodeURIComponent(shareMessage);\r\n\r\n const shareOptions = [\r\n facebook && {\r\n name: 'facebook',\r\n icon: 're-icon-facebook',\r\n url: `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`\r\n },\r\n twitter && {\r\n name: 'twitter',\r\n icon: 're-icon-twitter',\r\n url: `https://twitter.com/intent/tweet?url=${encodeURIComponent(shareUrl)}&text=${encodedMessage}`\r\n },\r\n linkedin && {\r\n name: 'linkedin',\r\n icon: 're-icon-linkedin',\r\n url: `https://www.linkedin.com/shareArticle?mini=true&text=${encodedMessage} ${encodeURIComponent(shareUrl)}`\r\n },\r\n {\r\n name: 'email',\r\n icon: 're-icon-email re-btn-black',\r\n url: `mailto:?subject=Check%20this%20out!&body=${encodedMessage}%20${encodeURIComponent(shareUrl)}`\r\n },\r\n {\r\n name: 'inbox',\r\n icon: 're-icon-comment',\r\n url: `${window.location.origin}/inbox?Message=${encodedMessage}%20${encodeURIComponent(shareUrl)}`\r\n }\r\n ].filter(Boolean); \r\n\r\n useEffect(() => {\r\n const handleClickOutside = (event) => {\r\n if (menuRef.current && !menuRef.current.contains(event.target)) {\r\n setIsOpen(false);\r\n }\r\n };\r\n document.addEventListener(\"mousedown\", handleClickOutside);\r\n return () => document.removeEventListener(\"mousedown\", handleClickOutside);\r\n }, []);\r\n\r\n return (\r\n
    \r\n {showIconOnly ? { e.preventDefault(); setIsOpen(!isOpen) }}\r\n title=\"share\"\r\n data-testid=\"sharebtnicononly\"\r\n className=\"re-icon re-icon-md re-icon-clockwise\"\r\n data-share-type={privacyType}\r\n >: null }\r\n \r\n {showIconWithText ? { e.preventDefault(); setIsOpen(!isOpen) }}\r\n data-testid=\"sharebtniconwithtext\"\r\n className=\"re-btn re-btn-plain re-icon re-icon-xs re-icon-clockwise\"\r\n data-share-type={privacyType}\r\n >\r\n share\r\n : null}\r\n\r\n {showIconWithButton ? { e.preventDefault(); setIsOpen(!isOpen) }}\r\n data-testid=\"sharebtniconwithbutton\"\r\n className=\"re-icon re-icon-xs re-icon-clockwise re-icon-xs re-btn re-btn-small re-btn-white re-btn-full-width re-share-widget-button-item\"\r\n data-share-type={privacyType}\r\n >\r\n Share\r\n : null}\r\n\r\n {isOpen ? (\r\n
    \r\n
    \r\n {shareOptions.map((option, index) => (\r\n \r\n \r\n ))}\r\n {(showDetails && window.location.href !== shareUrl) ? : null}\r\n
    \r\n ) : null}\r\n
    \r\n );\r\n};\r\n\r\n\r\nShare.propTypes = {\r\n shareUrl: PropTypes.string,\r\n contentType: PropTypes.string,\r\n showIconOnly: PropTypes.bool,\r\n showIconWithText: PropTypes.bool,\r\n showButton: PropTypes.bool,\r\n showDetails: PropTypes.bool\r\n};\r\n\r\nShare.defaultProps = {\r\n showIconOnly: false,\r\n showIconWithButton: false,\r\n showIconWithText: false,\r\n showDetails: false\r\n};\r\n\r\nexport default Share;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst Spinner = props => (\r\n\tprops.loading ?\r\n\t\t
    \r\n\t: null)\r\n\r\nSpinner.propTypes = {\r\n\tsize: PropTypes.string.isRequired,\r\n\tcolor: PropTypes.string,\r\n\tloading: PropTypes.bool\r\n};\r\n\r\nexport default Spinner;\r\n","import _path from 'ramda/src/path';\r\n\r\nconst residential = [\r\n {\r\n name: 'resaas-tour',\r\n title: 'Discover the power of RESAAS (3 min)',\r\n description:\r\n 'Join us on this virtual tour as we showcase the key features and benefits that make RESAAS the ultimate destination for real estate professionals.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/3190d384-6a3f-41f0-a7dc-451629b60a83.png',\r\n cta: 'https://www.youtube.com/watch?v=Di5WdLDzb4g&list=PLpGkTkqrNhvX6bMZzQsDm-4QHGy3cDDk_&index=1',\r\n ctaText: 'Watch Now',\r\n successMessage: 'Your efforts are paying off!',\r\n newTab: true\r\n },\r\n {\r\n name: 'introduce-yourself',\r\n title: 'Network for Success',\r\n description:\r\n 'Post about your background, skills, and journey. Your unique perspective is your competitive advantage.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/af70c069-647f-48b8-a0e6-505eeceb5ede.png',\r\n cta: '/feed/global?createpost=1',\r\n ctaText: 'Start Sharing Now',\r\n successMessage: 'Your efforts are paying off!',\r\n newTab: false\r\n },\r\n {\r\n name: 'invite-someone',\r\n title: 'Maximize Your Network's Impact',\r\n description:\r\n 'Invite others to join RESAAS and be a part of a dynamic network where collaboration and growth are at the forefront.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/a77fedac-0f79-4be4-b6de-f64290a6c191.png',\r\n cta: '#invite',\r\n ctaText: 'Power Up Your Network',\r\n successMessage: 'Your efforts are paying off!',\r\n newTab: false\r\n },\r\n {\r\n name: 'maintain-listings',\r\n title: 'Stay Competitive',\r\n description:\r\n 'Ensure your listings leave a positive impression. Verify property details and update pricing when necessary to position yourself as a proactive and reliable agent.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/79601dba-ce40-4011-a734-2f2e64b1b684.png',\r\n cta: '/mylistings',\r\n ctaText: 'Maintain My Listings',\r\n successMessage: 'Your efforts are paying off!',\r\n newTab: false\r\n },\r\n {\r\n name: 'default-feed',\r\n title: 'Start with what matters most',\r\n description:\r\n 'Setting your default feed ensures that each time you return, you’re greeted with the content that matters most to you.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/6c309840-b65e-4716-be69-3e3994f4c273.png',\r\n cta: '/mypreferences',\r\n ctaText: 'Set My Default Feed',\r\n successMessage: 'RESAAS, tailored just for you!',\r\n newTab: false\r\n },\r\n {\r\n name: 'marketing-tip',\r\n title: 'Share your marketing expertise',\r\n description:\r\n 'Empower the RESAAS community with your tips on how to market listings. Your expertise can inspire others, elevate the industry and build your reputation.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/c2d10427-b36d-462b-b5e5-4ebbaf173604.png',\r\n cta: '/feed/global?createpost=1',\r\n ctaText: 'Share Now',\r\n successMessage: 'Your community appreciates it!',\r\n newTab: false\r\n },\r\n {\r\n name: 'open-house',\r\n title: 'Amplify Your Open House',\r\n description:\r\n 'Share the details of an upcoming open house and let the RESAAS community be part of your success. Create anticipation, and connect with potential attendees by posting in your global feed.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/c165bdec-d62c-41e5-85d5-4b66abc2c16c.png',\r\n cta: '/feed/global?createpost=1',\r\n ctaText: 'Post Now',\r\n successMessage: 'Your efforts are paying off!',\r\n newTab: false\r\n },\r\n {\r\n name: 'coming-soon-listing',\r\n title: 'The Early Bird Gets the Sale',\r\n description:\r\n 'Coming Soon listings create buzz for your property in advance, ensuring it stands out from the crowd. Don't wait, get ahead of the game!',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/d2b5b1ba-6819-4ec6-b0be-0332614e06cf.png',\r\n cta: '/mylistings',\r\n ctaText: 'Share Yours Now',\r\n successMessage: 'That's sure to grab some attention!',\r\n newTab: false\r\n }\r\n];\r\nconst commercial = [\r\n {\r\n name: 'collaborate-investment',\r\n title: 'Collaborate on Investment Opportunities',\r\n description: 'Share and discuss investment deals with fellow brokers to identify partnership opportunities.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/d75afe1e-25c0-48f1-b873-22ea64be874f.jpg',\r\n cta: '/feed/global?createpost=1',\r\n ctaText: 'Share Opportunities',\r\n successMessage: 'Your collaboration builds connections!',\r\n newTab: false\r\n },\r\n {\r\n name: 'coming-soon-listing',\r\n title: 'The Early Bird Gets the Sale',\r\n description:\r\n 'Coming Soon listings create buzz for your property in advance, ensuring it stands out from the crowd. Don't wait, get ahead of the game!',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/59bfd102-0b5a-4ea9-afb2-f422400cbc3b.jpg',\r\n cta: '/mylistings',\r\n ctaText: 'Share Yours Now',\r\n successMessage: 'That's sure to grab some attention!',\r\n newTab: false\r\n },\r\n {\r\n name: 'introduce-yourself',\r\n title: 'Network for Success',\r\n description:\r\n 'Post about your background, skills, and journey. Your unique perspective is your competitive advantage.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/af70c069-647f-48b8-a0e6-505eeceb5ede.png',\r\n cta: '/feed/global?createpost=1',\r\n ctaText: 'Start Sharing Now',\r\n successMessage: 'Your efforts are paying off!',\r\n newTab: false\r\n },\r\n {\r\n name: 'exchange-market-data',\r\n title: 'Exchange Market Data with Peers',\r\n description: 'Share insights on market trends, cap rates, or property performance to enhance mutual knowledge.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/da45b79c-6414-4e35-891c-d35738b878f7.jpg',\r\n cta: '/feed/global?createpost=1',\r\n ctaText: 'Post Market Insights',\r\n successMessage: 'Shared knowledge elevates us all!',\r\n newTab: false\r\n },\r\n {\r\n name: 'share-marketing-strategies',\r\n title: 'Share Marketing Strategies',\r\n description: 'Post your most effective strategies for marketing properties to inspire and educate fellow brokers.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/b8a52b1f-8999-433b-897a-f76159c12450.jpg',\r\n cta: '/feed/global?createpost=1',\r\n ctaText: 'Share Strategies',\r\n successMessage: 'Your expertise is building community knowledge!',\r\n newTab: false\r\n },\r\n {\r\n name: 'host-virtual-tour',\r\n title: 'Host a Virtual Tour',\r\n description: 'Organize a virtual tour for a property and invite other brokers to share their insights or bring interested clients.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/e6c86f7c-94ed-4ef4-ab0e-d1e20e40e95d.jpg',\r\n cta: '/feed/global?createpost=1',\r\n ctaText: 'Share an Upcoming Tour',\r\n successMessage: 'Your tour is connecting brokers!',\r\n newTab: false\r\n },\r\n {\r\n name: 'maintain-listings',\r\n title: 'Stay Competitive',\r\n description:\r\n 'Ensure your listings leave a positive impression. Verify property details and update pricing when necessary to position yourself as a proactive and reliable broker.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/b22ee2c2-4b28-4eea-b979-c959b0202cf3.jpg',\r\n cta: '/mylistings',\r\n ctaText: 'Maintain My Listings',\r\n successMessage: 'Your efforts are paying off!',\r\n newTab: false\r\n },\r\n {\r\n name: 'default-feed',\r\n title: 'Start with what matters most',\r\n description:\r\n 'Setting your default feed ensures that each time you return, you’re greeted with the content that matters most to you.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/6c309840-b65e-4716-be69-3e3994f4c273.png',\r\n cta: '/mypreferences',\r\n ctaText: 'Set My Default Feed',\r\n successMessage: 'RESAAS, tailored just for you!',\r\n newTab: false\r\n },\r\n {\r\n name: 'connect-commercial-brokers',\r\n title: 'Find and Connect with Other Brokers',\r\n description: 'Browse the RESAAS broker page to discover and connect with top brokers in your area and beyond. Build your network for collaborations and referrals.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/af70c069-647f-48b8-a0e6-505eeceb5ede.png',\r\n cta: '/agents',\r\n ctaText: 'Explore Brokers',\r\n successMessage: 'Your network just got stronger!',\r\n newTab: false\r\n },\r\n {\r\n name: 'showcase-deal-success',\r\n title: 'Showcase a Success Story',\r\n description: 'Share your recent success story. Outline how you tackled challenges and closed the transaction.',\r\n image: 'https://content-eecuhxg6gch7hahp.a03.azurefd.net/assets/96415afb-a1e2-4881-bdf3-7e300f562a5c.jpg',\r\n cta: '/feed/global?createpost=1',\r\n ctaText: 'Share Success Story',\r\n successMessage: 'Your success inspires the community!',\r\n newTab: false\r\n }\r\n];\r\n\r\nconst UserTasks = _path(['Environment', 'Experience'], RESAAS) === 'commercial' ? commercial : residential;\r\n\r\nexport default UserTasks;\r\n","import React, { useEffect, useState } from 'react';\r\nimport _path from 'ramda/src/path';\r\nimport Image from '../Image';\r\nimport ClientStorage from '../ClientStorage';\r\nimport userTasks from './userTasks';\r\nimport { MIXPANEL_CONTENT, MIXPANEL_DELETE } from '../../../Constants';\r\nimport Mixpanel from '../../../API/Mixpanel';\r\n\r\nconst UserTaskWidget = () => {\r\n const [task, setTask] = useState(null);\r\n const [isCompleted, setIsCompleted] = useState(false);\r\n const [completedTasks, setCompletedTasks] = useState([]);\r\n const [lastCompletedTaskTime, setLastCompletedTaskTime] = useState(null);\r\n\r\n const showNewTask = time => {\r\n // current timestamp\r\n const currentTimestamp = Date.now();\r\n\r\n // lastCompletedTaskTime\r\n const taskCompletedTimestamp = time;\r\n\r\n // the next 12-hour timestamp\r\n const twelveHoursInMillis = 12 * 60 * 60 * 1000;\r\n const next12HourTimestamp = taskCompletedTimestamp + twelveHoursInMillis;\r\n return currentTimestamp >= next12HourTimestamp;\r\n };\r\n\r\n const randomTask = incompletedTasks => {\r\n const taskIndex = Math.floor(Math.random() * incompletedTasks.length);\r\n return incompletedTasks[taskIndex];\r\n };\r\n\r\n const renderIncompletedTask = task => {\r\n if (task) {\r\n setTask(task);\r\n sessionStorage.setItem('userTask', task.name);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n let clientStorage;\r\n\r\n if (\r\n !_path(['Environment', 'GateUserTasks'], RESAAS) \r\n \r\n ) {\r\n let inCompletedTask;\r\n const userTaskSessionStorage = sessionStorage.getItem('userTask');\r\n const inCompletedTaskInSessionStorage = userTasks.find(task => task.name === userTaskSessionStorage);\r\n clientStorage = ClientStorage.get(['UserTasks'], true);\r\n clientStorage.promise\r\n .then(value => {\r\n if (inCompletedTaskInSessionStorage) {\r\n inCompletedTask = inCompletedTaskInSessionStorage;\r\n } else if (value && value.UserTasks) {\r\n const userTaskInfo = JSON.parse(value.UserTasks);\r\n setCompletedTasks(userTaskInfo.completedTasks);\r\n setLastCompletedTaskTime(userTaskInfo.lastCompletedTaskTime);\r\n if (showNewTask(userTaskInfo.lastCompletedTaskTime)) {\r\n const inCompletedTasks = userTasks.filter(\r\n item =>\r\n !userTaskInfo.completedTasks.some(\r\n obj => obj.name === item.name && obj.done === true\r\n )\r\n );\r\n\r\n inCompletedTask = randomTask(inCompletedTasks);\r\n }\r\n } else {\r\n inCompletedTask = randomTask(userTasks);\r\n }\r\n if (inCompletedTask) {\r\n renderIncompletedTask(inCompletedTask);\r\n }\r\n })\r\n .catch(error => {\r\n if (error !== 'cancel') {\r\n LogglyLogger.add(\r\n LOGGLY_LEVEL_ERROR,\r\n 'WebRequestFailure: ClientStorage.get in TasksContainer.js',\r\n error\r\n );\r\n }\r\n });\r\n }\r\n\r\n return () => {\r\n if (clientStorage) {\r\n clientStorage.cancel();\r\n }\r\n };\r\n }, []);\r\n\r\n const taskCompleted = () => {\r\n const newCompletedTask = { name: task.name, done: true };\r\n const newData = { lastCompletedTaskTime: Date.now() };\r\n newData.completedTasks = completedTasks.concat(newCompletedTask);\r\n\r\n ClientStorage.set('UserTasks', JSON.stringify(newData))\r\n .then(() => {\r\n Mixpanel.add(MIXPANEL_CONTENT, { content: 'usertask', context: task.name });\r\n setCompletedTasks(newData.completedTasks);\r\n setIsCompleted(true);\r\n sessionStorage.removeItem('userTask');\r\n })\r\n .catch(error => {\r\n LogglyLogger.add(LOGGLY_LEVEL_ERROR, `Set ${newData} as completed task is failed`, error);\r\n });\r\n };\r\n\r\n const undoTask = () => {\r\n sessionStorage.setItem('userTask', task.name);\r\n setIsCompleted(false);\r\n const undoTask = task.name;\r\n const newData = { lastCompletedTaskTime: lastCompletedTaskTime };\r\n newData.completedTasks = Object.assign(completedTasks).filter(task => task.name !== undoTask);\r\n setCompletedTasks(newData.completedTasks);\r\n ClientStorage.set('UserTasks', JSON.stringify(newData))\r\n .then(() => {\r\n Mixpanel.add(MIXPANEL_DELETE, { content: 'usertask', context: undoTask });\r\n })\r\n .catch(error => {\r\n LogglyLogger.add(LOGGLY_LEVEL_ERROR, `undo ${newData} is failed`, error);\r\n });\r\n };\r\n\r\n const handleTaskChange = e => {\r\n if (!isCompleted) {\r\n taskCompleted();\r\n } else {\r\n undoTask();\r\n }\r\n };\r\n\r\n return (\r\n \r\n {task ? (\r\n \r\n
    Today's Task
    \r\n
    \r\n \r\n
    \r\n
    Congratulations
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n
    \r\n {task.cta ? (\r\n
    \r\n \r\n {task.ctaText}\r\n \r\n
    \r\n ) : null}\r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n ) : null}\r\n \r\n );\r\n};\r\n\r\nexport default UserTaskWidget;\r\n","import React, { useState, useEffect, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst ToolTip = props => {\r\n const [show, setShow] = useState(false);\r\n\r\n useEffect(() => {\r\n document.body.addEventListener('click', e => {\r\n if (!e.target.matches('.re-tooltip-contents *') && !e.target.matches('.re-popup-component *')) {\r\n setShow(false);\r\n }\r\n });\r\n }, []);\r\n\r\n const showContent = () => {\r\n setShow(!show);\r\n };\r\n\r\n return (\r\n \r\n \r\n {props.children}\r\n
    \r\n\r\n {show ? (\r\n \r\n {props.withArrow ?
    : null}\r\n {props.overlay}\r\n
    \r\n ) : null}\r\n \r\n );\r\n};\r\n\r\nToolTip.propTypes = {\r\n overlay: PropTypes.object,\r\n children: PropTypes.node,\r\n mixpanelType: PropTypes.string,\r\n withArrow: PropTypes.bool\r\n};\r\nexport default ToolTip;\r\n","import request from './AxiosRequest';\r\n\r\nconst phoneview = params =>\r\n request({\r\n url: `/Services/api/notifications/phoneview`,\r\n method: 'POST',\r\n data: params\r\n });\r\n\r\nconst notifications = {\r\n phoneview\r\n};\r\n\r\nexport default notifications;\r\n","import React, { useState } from 'react';\r\nimport axios from 'axios';\r\nimport _path from 'ramda/src/path';\r\nimport Button from './Button';\r\nimport Mixpanel from '../../API/Mixpanel';\r\nimport Notifications from '../../API/Notifications';\r\nimport { MIXPANEL_INTENT, MIXPANEL_LAND } from '../../Constants';\r\nimport GeneralUtility from '../../utilities/generalUtility';\r\n\r\nconst TrackPhoneNumber = props => {\r\n const [revealPhone, setRevealPhone] = useState(false);\r\n\r\n const buttonText = props.btnText ? props.btnText : 'CALL ME'\r\n\r\n const handleRevealPhoneNumber = e => {\r\n e.preventDefault();\r\n\r\n if (!revealPhone) {\r\n setRevealPhone(true);\r\n const phoneView = Notifications.phoneview({ targetUserId: props.userId });\r\n phoneView\r\n .then(response => {\r\n if (response.status !== 200) {\r\n throw new Error(response.data.Message);\r\n }\r\n })\r\n .catch(error => {\r\n GeneralUtility.logWebRequestFailure(\r\n error,\r\n `send notification phone view is failed - pageType: ${window.pageType}`\r\n );\r\n });\r\n\r\n const mixData = { type: 'reveal phone' };\r\n if (props.dataContext) {\r\n mixData.context = props.dataContext;\r\n }\r\n Mixpanel.add(MIXPANEL_INTENT, mixData);\r\n }\r\n };\r\n\r\n return (\r\n \r\n {revealPhone ? props.phoneNumber : buttonText}\r\n \r\n );\r\n};\r\n\r\nexport default TrackPhoneNumber;\r\n","import format from 'string-format';\r\nimport React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _path from 'ramda/src/path';\r\nimport Avatar from './Avatar';\r\nimport TrackPhoneNumber from './TrackPhoneNumber';\r\nimport resx from '../../utilities/resx';\r\nimport { RESX_GLOBAL } from '../../Constants';\r\nimport GeneralUtility from '../../utilities/generalUtility';\r\nimport ConnectButton from './ConnectButton';\r\nimport UserSearch from '../../API/UserSearch';\r\n\r\nconst UserInfo = props => {\r\n const [userInfo, setUserInfo] = useState({});\r\n const [placeholder, setPlaceholder] = useState(true);\r\n const [fallbackMessage, setFallbackMessage] = useState(false);\r\n const isOwner =\r\n _path(['RESAAS', 'User2', 'WebsiteId'], window) === props.WebsiteId ||\r\n _path(['RESAAS', 'User2', 'UserId'], window) === props.UserId ||\r\n _path(['RESAAS', 'User2', 'DomainUrl'], window).split('/')[1] === props.Domain;\r\n useEffect(() => {\r\n let payload;\r\n if (props.WebsiteId) {\r\n payload = { WebsiteId: props.WebsiteId };\r\n } else if (props.UserId) {\r\n payload = { UserId: props.UserId };\r\n } else if (props.Domain) {\r\n payload = { Domain: props.Domain };\r\n }\r\n const getUserDetails = UserSearch.search(payload);\r\n\r\n getUserDetails.request\r\n .then(response => {\r\n if (_path(['data', 'Data'], response) && response.data.Data.length > 0) {\r\n const userData = response.data.Data[0];\r\n userData.addressFormatted = userData.Province ? `, ${userData.Province}, ${userData.Country}` : '';\r\n\r\n if (_path(['EnhancedProfile', 'StartedIn'], userData)) {\r\n userData.YearsExpStr = format(\r\n RESAAS.Localization.Global.USER_INFO_YEARS_EXP,\r\n new Date().getFullYear() - parseInt(userData.EnhancedProfile.StartedIn, 10)\r\n );\r\n }\r\n if (userData.Phone) {\r\n userData.phoneNumber = userData.Phone;\r\n }\r\n if (userData.AwardedReferrals) {\r\n userData.AwardedReferralsStr = format(\r\n RESAAS.Localization.Global.USER_INFO_REFERRAL_AWARDED,\r\n userData.AwardedReferrals\r\n );\r\n }\r\n if (userData.ListingActiveCount || userData.ListingComingSoonCount) {\r\n userData.ListingActiveCountStr = format(\r\n RESAAS.Localization.Global.USER_INFO_ACTIVE_LISTINGS,\r\n userData.ListingActiveCount + userData.ListingComingSoonCount\r\n );\r\n }\r\n if (!userData.Phone && userData.OfficePhone) {\r\n userData.phoneNumber = userData.OfficePhone;\r\n }\r\n\r\n setPlaceholder(false);\r\n setUserInfo(userData);\r\n \r\n } else {\r\n throw new Error();\r\n }\r\n })\r\n .catch(error => {\r\n GeneralUtility.logWebRequestFailure(error, `fetch user info from user info tooltip`);\r\n setPlaceholder(false);\r\n setFallbackMessage(true);\r\n });\r\n }, []);\r\n\r\n return (\r\n \r\n {' '}\r\n
    \r\n {placeholder ? (\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n ) : null}\r\n {userInfo.UserId ? (\r\n \r\n
    \r\n {' '}\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n {' '}\r\n \r\n
    {`${userInfo.Firstname} ${\r\n userInfo.Lastname\r\n }`}
    \r\n
    \r\n
      \r\n
    • @{userInfo.Domain.split('/')[0]}
    • \r\n {userInfo.Firm ? (\r\n
    • \r\n {userInfo.Firm}\r\n
    • \r\n ) : null}\r\n
    \r\n {userInfo.City ? (\r\n
    \r\n {userInfo.City}\r\n {userInfo.addressFormatted}\r\n
    \r\n ) : null}\r\n
    \r\n {userInfo.YearsExpStr || userInfo.AwardedReferralsStr || userInfo.ListingActiveCountStr ? (\r\n
      \r\n {userInfo.YearsExpStr ?
    • {userInfo.YearsExpStr}
    • : null}\r\n {userInfo.AwardedReferralsStr ?
    • {userInfo.AwardedReferralsStr}
    • : null}\r\n {userInfo.ListingActiveCountStr ?
    • {userInfo.ListingActiveCountStr}
    • : null}\r\n
    \r\n ) : null}\r\n
    \r\n \r\n {resx(RESX_GLOBAL, 'SENDIMBUTTON_TEXT')}\r\n \r\n\r\n {userInfo.phoneNumber ? (\r\n \r\n ) : null}\r\n\r\n \r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n {fallbackMessage ? (\r\n
    \r\n \r\n
    \r\n ) : null}\r\n
    \r\n \r\n );\r\n};\r\n\r\nUserInfo.propTypes = {\r\n UserId: PropTypes.string,\r\n WebsiteId: PropTypes.number,\r\n Domain: PropTypes.string,\r\n FirstName: PropTypes.string\r\n};\r\nexport default UserInfo;\r\n","import React, { useState, useEffect } from 'react';\r\nimport UserSearch from '../../API/UserSearch';\r\nimport resx from '../../utilities/resx';\r\nimport _path from 'ramda/src/path';\r\nimport { RESX_GLOBAL } from '../../Constants';\r\nimport LogglyLogger from '../../API/Loggly';\r\nimport { LOGGLY_LEVEL_ERROR } from '../../Constants';\r\nimport Image from './Image';\r\n\r\nconst UserMention = ({ inputValue, setInputValue, inputRef }) => {\r\n const [searchResults, setSearchResults] = useState([]);\r\n const [showSuggestions, setShowSuggestions] = useState(false);\r\n\r\n useEffect(\r\n () => {\r\n const debounceTimeout = 300;\r\n let debounceTimer;\r\n const handleKeyPress = event => {\r\n clearTimeout(debounceTimer);\r\n debounceTimer = setTimeout(() => {\r\n const cursorPosition = inputRef.current.selectionStart;\r\n const inputText = inputRef.current.value;\r\n\r\n const lastAtIndex = inputText.lastIndexOf('@', cursorPosition - 1);\r\n if (lastAtIndex !== -1) {\r\n const textAfterAt = inputText.substring(lastAtIndex + 1, cursorPosition);\r\n if (!/\\s/.test(textAfterAt)) {\r\n if (textAfterAt) {\r\n const query = { SearchFor: textAfterAt };\r\n UserSearch.mention(query)\r\n .request.then(response => {\r\n if (!_path(['data', 'Success'], response)) {\r\n throw new Error(response.data);\r\n }\r\n if (_path(['data', 'Data'], response)) {\r\n setSearchResults(response.data.Data);\r\n setShowSuggestions(true);\r\n } else {\r\n setShowSuggestions(false);\r\n }\r\n })\r\n .catch(error => {\r\n LogglyLogger.add(\r\n LOGGLY_LEVEL_ERROR,\r\n 'UserMention.mention via UserMention component',\r\n error\r\n );\r\n setShowSuggestions(false);\r\n });\r\n }\r\n } else {\r\n setShowSuggestions(false);\r\n }\r\n } else {\r\n setShowSuggestions(false);\r\n }\r\n }, debounceTimeout);\r\n };\r\n\r\n inputRef.current.addEventListener('input', handleKeyPress);\r\n\r\n return () => {\r\n if (inputRef.current) {\r\n inputRef.current.removeEventListener('input', handleKeyPress);\r\n }\r\n };\r\n },\r\n [inputValue, inputRef]\r\n );\r\n\r\n const handleUserSelect = domian => {\r\n const atIndex = inputValue.lastIndexOf('@', inputRef.current.selectionStart - 1);\r\n const cursorPosition = inputRef.current.selectionStart;\r\n\r\n const newValue = `${inputValue.slice(0, atIndex + 1)}${domian}${inputValue.slice(cursorPosition)}`;\r\n const newCursorPosition = atIndex + domian.length + 1;\r\n setInputValue(newValue);\r\n setShowSuggestions(false);\r\n inputRef.current.focus();\r\n setTimeout(() => {\r\n inputRef.current.setSelectionRange(newCursorPosition, newCursorPosition);\r\n }, 0);\r\n };\r\n\r\n return (\r\n
    \r\n {showSuggestions && (\r\n
      \r\n {searchResults.length > 0 ? (\r\n searchResults.map((user, index) => (\r\n handleUserSelect(user.Domain)}\r\n data-testid=\"usermentionitem\"\r\n >\r\n \r\n {`${user.Firstname} ${user.Lastname}`}\r\n \r\n ))\r\n ) : (\r\n
    • \r\n {resx(RESX_GLOBAL, 'USERMENTION_NO_USERS_FOUND')}\r\n
    • \r\n )}\r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nexport default UserMention;\r\n","import React, { useEffect, useState } from 'react';\r\nimport _path from 'ramda/src/path';\r\nimport Image from './Image';\r\nimport resx from '../../utilities/resx';\r\nimport { RESX_GLOBAL, MIXPANEL_INTENT } from '../../Constants';\r\nimport Mixpanel from '../../API/Mixpanel';\r\n\r\nconst ZillowWidget = () => {\r\n const countryList = [224, 38];\r\n const gateZillowPushFeature = _path(['Environment', 'PushToZillowFeatureGate'], RESAAS);\r\n const isUltimate = _path(['User2', 'PremiumPlus'], RESAAS);\r\n const isIntl = !countryList.includes(_path(['User2', 'CountryId'], RESAAS))\r\n const isCommercial = _path(['Environment', 'Experience'], RESAAS) === 'commercial';\r\n const learnMoreUrl = isUltimate\r\n ? 'https://get.resaas.com/coming-soon-listings-find-out-more/'\r\n : 'https://get.resaas.com/coming-soon-listings-upgrade/';\r\n\r\n return (\r\n \r\n {!gateZillowPushFeature && !isIntl && !isCommercial ? (\r\n \r\n \r\n
    {resx(RESX_GLOBAL, 'ZILLOW_WIDGET_DESCRIPTION')}
    \r\n \r\n {resx(RESX_GLOBAL, 'ZILLOW_WIDGET_BUTTON_TEXT')}\r\n \r\n \r\n ) : null}\r\n
    \r\n );\r\n};\r\n\r\nexport default ZillowWidget;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst RecommendationHeader = ({ iconName }) => {\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};\r\n\r\n\r\nRecommendationHeader.propTypes = {\r\n\ticonName: PropTypes.string.isRequired\r\n};\r\n\r\nexport default RecommendationHeader;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst RecommendationContent = ({ contentText }) => {\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};\r\n\r\nRecommendationContent.propTypes = {\r\n\tcontentText: PropTypes.string.isRequired\r\n};\r\n\r\nexport default RecommendationContent;","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst RecommendationFooter = ({ url, buttonText, mixPanelContext, mixPanelType }) => {\r\n\treturn (\r\n\t\t
    \r\n\t\t\t\r\n\t\t\t\t{buttonText}\r\n\t\t\t\r\n\t\t
    \r\n\t);\r\n};\r\n\r\nRecommendationFooter.propTypes = {\r\n\turl: PropTypes.string.isRequired,\r\n\tbuttonText: PropTypes.string.isRequired,\r\n\tmixPanelType: PropTypes.string.isRequired,\r\n\tmixPanelContext: PropTypes.string.isRequired\r\n};\r\n\r\nexport default RecommendationFooter;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport RecommendationHeader from './Header';\r\nimport RecommendationContent from './Content';\r\nimport RecommendationFooter from './Footer';\r\n\r\nconst RecommendationContainer = ({\r\n\tdata: { iconName, contentText, url, buttonText, mixPanelType, mixPanelContext }\r\n}) => (\r\n\t
    \r\n\t\t\r\n\t\t\r\n\t\t\r\n\t
    \r\n);\r\n\r\nRecommendationContainer.propTypes = {\r\n\tdata: PropTypes.object.isRequired\r\n};\r\n\r\nexport default RecommendationContainer;\r\n","import React, { Component } from 'react';\r\nimport format from 'string-format';\r\nimport PropTypes from 'prop-types';\r\nimport _path from 'ramda/src/path';\r\nimport { withMessage } from '../Common/Message';\r\nimport RecommendationContainer from '../Common/Recommendation/Container';\r\nimport resx from '../../utilities/resx';\r\nimport loggly from '../../API/Loggly';\r\nimport { RESX_REBLASTS, RESX_GLOBAL, LOGGLY_LEVEL_ERROR } from '../../Constants';\r\n\r\nclass RecommendationAdapter extends Component {\r\n\tconstructor() {\r\n\t\tsuper();\r\n\t\tthis.state = {\r\n\t\t\ticonName: '',\r\n\t\t\tcontentText: '',\r\n\t\t\turl: '',\r\n\t\t\tbuttonText: '',\r\n\t\t\tmixPanelContext: '',\r\n\t\t\tmixPanelType: ''\r\n\t\t};\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.adaptData();\r\n\t}\r\n\r\n\tadaptData() {\r\n\t\tif (!window.reblastDetails) {\r\n\t\t\tthis.props.message.addMessage({ message: resx(RESX_GLOBAL, 'GENERIC_WEBSERVICE_ERROR_MESSAGE'), type: 'error' });\r\n\t\t\tloggly.add(LOGGLY_LEVEL_ERROR, 'the window.reblastDetails object is undfined in reblsat details page');\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\tconst { ContentType, ListingIsSold } = window.reblastDetails;\r\n\t\t\tlet data;\r\n\t\t\tswitch (ContentType) {\r\n\t\t\t\tcase 'Listing':\r\n\t\t\t\t\tif (ListingIsSold === 'True') {\r\n\t\t\t\t\t\tdata = this.getSoldListingData();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tdata = this.getListingData();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'Referral':\r\n\t\t\t\t\tdata = this.getReferralData();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'PreMarketListing':\r\n\t\t\t\t\tdata = this.getPreMarketListingData();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif (!data) {\r\n\t\t\t\tdata = this.getContentTypeUnknownState();\r\n\t\t\t}\r\n\r\n\t\t\tif (data) {\r\n\t\t\t\t this.setState(data);\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tgetPreMarketListingData = () => {\r\n\t\tconst { ListingCity, ListingState, ListingLongitude, ListingLatitude } = window.reblastDetails;\r\n\t\tif (!ListingCity || !ListingState || !ListingLongitude || !ListingLatitude) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tconst address = `${ListingCity}, ${ListingState}`;\r\n\t\treturn {\r\n\t\t\ticonName: 'clock',\r\n\t\t\tcontentText: format(resx(RESX_REBLASTS, 'RECOMMENDATION_SEE_COMING_SOON_LISTINGS'), ListingCity, ListingState),\r\n\t\t\turl: `${\r\n\t\t\t\tRESAAS.Environment.ApplicationUrl\r\n\t\t\t}/listings?&rtf=0&mnp=&mxp=&pr=&mnb=Bedrooms&mnba=Bathrooms&ls=3&z=12&la=${ListingLatitude}&lo=${ListingLongitude}&gn=&st=1&address=${encodeURIComponent(\r\n\t\t\t\taddress\r\n\t\t\t)}`,\r\n\t\t\tbuttonText: format(resx(RESX_REBLASTS, 'RECOMMENDATION_VIEW_LISTINGS')),\r\n\t\t\tmixPanelContext: 'pre-market Listing',\r\n\t\t\tmixPanelType: 'reblast CTA'\r\n\t\t};\r\n\t}\r\n\r\n\tgetSoldListingData = () => {\r\n\t\tconst { FirstName, UserDomain } = window.reblastDetails;\r\n\t\tif (!FirstName || !UserDomain) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn {\r\n\t\t\ticonName: 'dollar-sign',\r\n\t\t\tcontentText: format(resx(RESX_REBLASTS, 'RECOMMENDATION_SEE_MORE_USER_LISTINGS'), FirstName),\r\n\t\t\turl: `${RESAAS.Environment.ApplicationUrl}/${UserDomain}/listings`,\r\n\t\t\tbuttonText: format(resx(RESX_REBLASTS, 'RECOMMENDATION_VIEW_PROFILE')),\r\n\t\t\tmixPanelContext: 'sold listing',\r\n\t\t\tmixPanelType: 'reblast CTA'\r\n\t\t};\r\n\t}\r\n\r\n\tgetListingData = () => {\r\n\t\tconst { ListingCity, ListingState, ListingLongitude, ListingLatitude } = window.reblastDetails;\r\n\t\tif (!ListingCity || !ListingState || !ListingLongitude || !ListingLatitude) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tconst address = `${ListingCity}, ${ListingState}`;\r\n\t\treturn {\r\n\t\t\ticonName: 'location',\r\n\t\t\tcontentText: format(resx(RESX_REBLASTS, 'RECOMMENDATION_SEE_MORE_LISTINGS'), ListingCity, ListingState),\r\n\t\t\turl: `${\r\n\t\t\t\tRESAAS.Environment.ApplicationUrl\r\n\t\t\t}/listings?&rtf=0&mnp=&mxp=&pr=&mnb=Bedrooms&mnba=Bathrooms&ls=0&z=12&la=${ListingLatitude}&lo=${ListingLongitude}&gn=&st=1&address=${encodeURIComponent(\r\n\t\t\t\taddress\r\n\t\t\t)}`,\r\n\t\t\tbuttonText: format(resx(RESX_REBLASTS, 'RECOMMENDATION_VIEW_LISTINGS')),\r\n\t\t\tmixPanelContext: 'on-market Listing',\r\n\t\t\tmixPanelType: 'reblast CTA'\r\n\t\t};\r\n\t}\r\n\r\n\tgetReferralData = () => {\r\n\t\tconst ReblastDescription = window.reblastDetails.ReblastDescription;\r\n\t\tconst newElement = document.createElement('div');\r\n\t\tnewElement.innerHTML = ReblastDescription;\r\n\t\tconst element = newElement.getElementsByTagName('a')[0];\r\n\t\tlet html;\r\n\t\tlet url;\r\n\r\n\t\tif (element) {\r\n\t\t\thtml = element.innerHTML;\r\n\t\t\turl = element.getAttribute('href');\r\n\t\t}\r\n\r\n\t\tif (!html || !url) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\ticonName: 'referral re-icon-custom',\r\n\t\t\tcontentText: format(resx(RESX_REBLASTS, 'RECOMMENDATION_SEE_MORE_REFERRAL'), html),\r\n\t\t\turl,\r\n\t\t\tbuttonText: format(resx(RESX_REBLASTS, 'RECOMMENDATION_VIEW_NOW')),\r\n\t\t\tmixPanelContext: 'referral/buyer need upsell',\r\n\t\t\tmixPanelType: 'reblast CTA'\r\n\t\t};\r\n\t}\r\n\r\n\tgetContentTypeUnknownState = () => {\r\n const isPremiumUser = _path(['RESAAS', 'User2', 'ReferralPro'], window);\r\n\t\tconst reblastDescription = _path(['reblastDetails', 'ReblastDescription'], window);\r\n\t\tconst isMsgPremiumJoin = (typeof reblastDescription === 'string') ? reblastDescription.indexOf('www.resaas.com/pricing') >= 0 : false;\r\n\r\n\t\t// show premium upsell if user is not currently premium and reblast desc contains a link to pricing page\r\n\t\tif (!isPremiumUser && isMsgPremiumJoin) {\r\n\t\t\treturn {\r\n\t\t\t\ticonName: 'resaas-black re-icon-custom',\r\n\t\t\t\tcontentText: resx(RESX_REBLASTS, 'RECOMMENDATION_PREMIUM_UPSELL'),\r\n\t\t\t\turl: '/pricingplan',\r\n\t\t\t\tbuttonText: resx(RESX_GLOBAL, 'DEFAULT_SUBSCRIPTION_GET_STARTED'),\r\n\t\t\t\tmixPanelContext: 'premium upsell',\r\n\t\t\t\tmixPanelType: 'reblast CTA'\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tconst { FirstName, LastName, UserDomain, ContentType } = window.reblastDetails;\r\n\t\tconst name = `${FirstName} ${LastName}`;\r\n\t\tconst type = ContentType === 'Unknown' ? 'text' : ContentType.toLowerCase();\r\n\t\tif (!FirstName || !LastName || !UserDomain) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn {\r\n\t\t\ticonName: 'attach-image',\r\n\t\t\tcontentText: format(resx(RESX_REBLASTS, 'RECOMMENDATION_CHECK_OUT_POSTS'), name),\r\n\t\t\turl: `/${UserDomain}/profile`,\r\n\t\t\tbuttonText: resx(RESX_REBLASTS, 'RECOMMENDATION_VIEW_PROFILE'),\r\n\t\t\tmixPanelContext: `new ${type} post`,\r\n\t\t\tmixPanelType: 'reblast CTA'\r\n\t\t};\t\t\r\n\t}\r\n\r\n\trender() {\r\n\t\tif (!this.state.url) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default withMessage(RecommendationAdapter);\r\n\r\nRecommendationAdapter.propTypes = {\r\n\tmessage: PropTypes.object\r\n};\r\n","import _path from 'ramda/src/path';\r\nimport React from 'react';\r\nimport ReblastContainer from '../Common/Reblast/ReblastContainer';\r\n\r\nfunction ReblastDetailsAdapter() {\r\n\tconst initalState = {\r\n\t\tCanPostComments: _path(['reblastDetails', 'CanPostComments'], window) === 'True',\r\n\t\tCanReadComments: _path(['reblastDetails', 'CanReadComments'], window) === 'True',\r\n\t\tContentTrackingUrl: _path(['reblastDetails', 'ContentTrackingUrl'], window),\r\n\t\tContentType: _path(['reblastDetails', 'ContentType'], window),\r\n\t\tcommentsFetch: true,\r\n\t\tcommentsDisplayCount: Infinity,\r\n\t\tFileAttachmentUrl: _path(['reblastDetails', 'FileAttachmentUrl'], window),\r\n\t\tGroupLinkPublicPage: _path(['reblastDetails', 'GroupLinkPublicPage'], window),\r\n\t\tGroupName: _path(['reblastDetails', 'GroupName'], window),\r\n\t\tHasCommented: _path(['reblastDetails', 'HasCommented'], window) === 'True',\r\n\t\tHasImageInAttachment: _path(['reblastDetails', 'HasImageInAttachment'], window) === 'True',\r\n\t\tHasFileInAttachment: _path(['reblastDetails', 'HasFileInAttachment'], window) === 'True',\r\n\t\tHasListing: _path(['reblastDetails', 'HasListing'], window) === 'True',\r\n\t\tHideFirmFeed: _path(['reblastDetails', 'HideFirmFeed'], window) === 'True',\r\n\t\tImageLargeAttachmentUrl: _path(['reblastDetails', 'ImageLargeAttachmentUrl'], window),\r\n\t\tIsReblastOwner: _path(['reblastDetails', 'IsReblastOwner'], window) === 'True',\r\n\t\tIsScrubbed: _path(['reblastDetails', 'IsScrubbed'], window) === 'True',\r\n\t\tListingAddress: _path(['reblastDetails', 'ListingAddress'], window),\r\n\t\tListingCity: _path(['reblastDetails', 'ListingCity'], window),\r\n\t\tListingCoopFeeAmount: parseInt(_path(['reblastDetails', 'ListingCoopFeeAmount'], window), 10),\r\n\t\tListingCountry: _path(['reblastDetails', 'ListingCountry'], window),\r\n\t\tListingCurrencyCode: _path(['reblastDetails', 'ListingCurrencyCode'], window),\r\n\t\tListingFormattedPrice: _path(['reblastDetails', 'ListingFormattedPrice'], window),\r\n\t\tListingFormattedPricePerAmount: _path(['reblastDetails', 'ListingFormattedPricePerAmount'], window),\r\n\t\tListingHasImage: _path(['reblastDetails', 'ListingHasImage'], window) === 'True',\r\n\t\tListingInteriorSize: parseInt(_path(['reblastDetails', 'ListingInteriorSize'], window), 10),\r\n\t\tListingInteriorSizeUnit: parseInt(_path(['reblastDetails', 'ListingInteriorSizeUnit'], window), 10),\r\n\t\tListingIsLease: _path(['reblastDetails', 'ListingTransactionType'], window) === 1,\r\n\t\tListingIsSold: _path(['reblastDetails', 'ListingIsSold'], window) === 'True',\r\n\t\tListingLargeImageUrl: _path(['reblastDetails', 'ListingLargeImageUrl'], window),\r\n\t\tListingNumberBedrooms: parseInt(_path(['reblastDetails', 'ListingNumberBedrooms'], window), 10),\r\n\t\tListingNumberBathrooms: parseInt(_path(['reblastDetails', 'ListingNumberBathrooms'], window), 10),\r\n\t\tListingPrice: _path(['reblastDetails', 'ListingPrice'], window),\r\n ListingPricePerAmount: parseInt(_path(['reblastDetails', 'ListingPricePerAmount'], window)),\r\n\t\tListingPriceSuffix: _path(['reblastDetails', 'ListingPriceSuffix'], window),\r\n\t\tListingPropertySize: parseInt(_path(['reblastDetails', 'ListingPropertySize'], window), 10),\r\n\t\tListingSeoUrl: _path(['reblastDetails', 'ListingSeoUrl'], window),\r\n\t\tListingSoldLabel: _path(['reblastDetails', 'ListingSoldLabel'], window),\r\n\t\tListingState: _path(['reblastDetails', 'ListingState'], window),\r\n\t\tListingSuiteNumber2: _path(['reblastDetails', 'ListingSuiteNumber2'], window),\r\n\t\tListingVirtualTourAddress: _path(['reblastDetails', 'ListingVirtualTourAddress'], window),\r\n\t\tListingMarketStatus: _path(['reblastDetails', 'ListingMarketStatus'], window),\r\n\t\tReblastCreatedOn: _path(['reblastDetails', 'ReblastCreatedOn'], window),\r\n\t\tReblastDescription: _path(['reblastDetails', 'ReblastDescription'], window),\r\n\t\tReblastId: _path(['reblastDetails', 'ReblastId'], window),\r\n\t\tReblastLikeCounter: parseInt(_path(['reblastDetails', 'ReblastLikeCounter'], window),10),\r\n\t\tReblastType: _path(['reblastDetails', 'ReblastType'], window),\r\n\t\tTotalViewCount: _path(['reblastDetails', 'TotalViewCount'], window),\r\n\t\tUniqueViewCount: _path(['reblastDetails', 'UniqueViewCount'], window),\r\n\t\tUser: {\r\n\t\t\tCity: _path(['reblastDetails', 'City'], window),\r\n\t\t\tFirmName: _path(['reblastDetails', 'FirmName'], window),\r\n\t\t\tFirmUniqueName: _path(['reblastDetails', 'FirmUniqueName'], window),\r\n\t\t\tFirstName: _path(['reblastDetails', 'FirstName'], window),\r\n\t\t\tLastName: _path(['reblastDetails', 'LastName'], window),\r\n\t\t\tLatitude: _path(['reblastDetails', 'UserLatitude'], window),\r\n\t\t\tLongitude: _path(['reblastDetails', 'UserLongitude'], window),\r\n\t\t\tState: _path(['reblastDetails', 'Province'], window),\r\n\t\t\tUserDomain: _path(['reblastDetails', 'UserDomain'], window),\r\n\t\t\tUserProfilePictureUrl: _path(['reblastDetails', 'UserProfilePictureUrl'], window),\r\n\t\t\tHasProfileBadge: _path(['reblastDetails', 'HasProfileBadge'], window) === 'True',\r\n\t\t\tHasPremiumPlusBadge: _path(['reblastDetails', 'HasPremiumPlusBadge'], window) === 'True',\r\n\t\t\tWebsiteId: parseInt(_path(['reblastDetails', 'UserWebsiteId'], window), 10)\r\n\t\t},\r\n\t\tUserLikedReblast: _path(['reblastDetails', 'UserLikedReblast'], window) === 'True'\r\n\t};\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n\r\nexport default ReblastDetailsAdapter;\r\n","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport resx from '../../utilities/resx';\r\nimport { LOGGLY_LEVEL_ERROR, RESX_GLOBAL } from '../../Constants';\r\nimport { withMessage } from '../Common/Message';\r\nimport ContentSubscriptionService from '../../API/ContentSubscription';\r\nimport LogglyLogger from '../../API/Loggly';\r\n\r\nconst ReblastNotificationToggle = ({ message}) => {\r\n\tconst [isSubscribed, setIsSubscribed] = useState(false);\r\n\tconst [buttonClass, setButtonClass] = useState('');\r\n\tconst [buttonText, setButtonText] = useState('');\r\n\tconst [mixPanelType, setMixPanelType] = useState('');\r\n\tconst [notificationStatus, setNotificationStatus] = useState('');\r\n\tconst [visibility, setVisibility] = useState('');\r\n\tconst contentId = window.location.pathname.slice(9);\r\n\r\n\tconst getNotificationConfig = () => {\r\n\t\tsetButtonClass('submitting');\r\n\t\tContentSubscriptionService.getNotificationSetting(contentId)\r\n\t\t\t.then(response => {\r\n\t\t\t\tif (!response.data.Success) {\r\n\t\t\t\t\tthrow new Error(response.data.Message);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tsetVisibility('visible');\r\n\t\t\t\tconst { IsSubscribed } = response.data.Data;\r\n\t\t\t\tsetIsSubscribed(IsSubscribed);\r\n\t\t\t\tif (IsSubscribed) {\r\n\t\t\t\t\tsetButtonClass('is-on');\r\n\t\t\t\t\tsetNotificationStatus(resx(RESX_GLOBAL, 'NOTIFICATION_ON_TEXT'));\r\n\t\t\t\t\tsetButtonText(resx(RESX_GLOBAL, 'TURN_OFF_NOTIFICATION_TEXT'));\r\n\t\t\t\t\tsetMixPanelType('off');\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetButtonClass('is-off');\r\n\t\t\t\t\tsetNotificationStatus(resx(RESX_GLOBAL, 'NOTIFICATION_OFF_TEXT'));\r\n\t\t\t\t\tsetButtonText(resx(RESX_GLOBAL, 'TURN_ON_NOTIFICATION_TEXT'));\r\n\t\t\t\t\tsetMixPanelType('on');\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch(error => {\r\n\t\t\t\tlet errorMessage;\r\n\r\n\t\t\t\tif (error.response && error.response.status) {\r\n\t\t\t\t\terrorMessage = resx(RESX_GLOBAL, 'ERROR_GET_NOTIFICATION_SETTINGS');\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrorMessage = error.message;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmessage.addMessage({ message: errorMessage, type: 'error' });\r\n\r\n\t\t\t\tLogglyLogger.add(LOGGLY_LEVEL_ERROR, 'ContentSubscriptionService.getNotificationSetting from Reblast Details Page', error);\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst toggleNotification = () => {\r\n\t\tsetButtonClass('submitting');\r\n\r\n\t\tconst data = {\r\n\t\t\tIsSubscribed: !isSubscribed,\r\n\t\t\tcontentId: contentId\r\n\t\t};\r\n\r\n\t\tContentSubscriptionService.setNotificationSetting(data)\r\n\t\t\t.then(response => {\r\n\t\t\t\tif (!response.data.Success) {\r\n\t\t\t\t\tthrow new Error(response.data.Message);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (isSubscribed) {\r\n\t\t\t\t\tsetIsSubscribed(false);\r\n\t\t\t\t\tsetButtonClass('is-off');\r\n\t\t\t\t\tsetNotificationStatus(resx(RESX_GLOBAL, 'NOTIFICATION_OFF_TEXT'));\r\n\t\t\t\t\tsetButtonText(resx(RESX_GLOBAL, 'TURN_ON_NOTIFICATION_TEXT'));\r\n\t\t\t\t\tsetMixPanelType('on');\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetIsSubscribed(true);\r\n\t\t\t\t\tsetButtonClass('is-on');\r\n\t\t\t\t\tsetNotificationStatus(resx(RESX_GLOBAL, 'NOTIFICATION_ON_TEXT'));\r\n\t\t\t\t\tsetButtonText(resx(RESX_GLOBAL, 'TURN_OFF_NOTIFICATION_TEXT'));\r\n\t\t\t\t\tsetMixPanelType('off');\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch(error => {\r\n\t\t\t\tlet errorMessage;\r\n\r\n\t\t\t\tif (error.response && error.response.status) {\r\n\t\t\t\t\terrorMessage = resx(RESX_GLOBAL, 'ERROR_SET_NOTIFICATION_SETTINGS');\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrorMessage = error.message;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmessage.addMessage({ message: errorMessage, type: 'error' });\r\n\r\n\t\t\t\tLogglyLogger.add(LOGGLY_LEVEL_ERROR, 'ContentSubscriptionService.setNotificationSetting from Reblast Details Page', error);\r\n\t\t\t});\r\n\t};\r\n\r\n\tuseEffect(() => {\r\n\t\tgetNotificationConfig();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\tvisibility &&\r\n\t\t
    \r\n\t\t\t{notificationStatus && (\r\n\t\t\t\t\r\n\t\t\t\t\t

    {resx(RESX_GLOBAL, 'TOGGLE_NOTIFICATION_TITLE_TEXT')}

    \r\n\t\t\t\t\t

    \r\n\t\t\t\t\t\t{resx(RESX_GLOBAL, 'REBLAST_NOTIFICATION_TEXT')}\r\n\t\t\t\t\t\t {notificationStatus}\r\n\t\t\t\t\t

    \r\n\t\t\t\t\t toggleNotification()}\r\n\t\t\t\t\t\tdata-mixpanel-name=\"Intent\"\r\n\t\t\t\t\t\tdata-mixpanel-type={`notification ${mixPanelType}`}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{buttonText}\r\n\t\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t)}\r\n\t\t
    \r\n\t);\r\n};\r\n\r\nReblastNotificationToggle.propTypes = {\r\n\tmessage: PropTypes.object\r\n};\r\n\r\nexport default withMessage(ReblastNotificationToggle);\r\n","import React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport RecommendationAdapter from './RecommendationAdapter';\r\nimport ReblastDetailsAdapter from './ReblastDetailsAdapter';\r\nimport ReblastNotificationToggle from './ReblastNotificationToggle';\r\nimport UserTask from '../Common/Tasks/Container';\r\nimport ZillowWidget from '../Common/ZillowWidget';\r\nimport { MessageProvider } from '../Common/Message';\r\n\r\nReactDOM.render(\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t,\r\n\tdocument.querySelector('#RecommendationComponent')\r\n);\r\n\r\nif (RESAAS.Environment.ToggleView && window.reblastDetails) {\r\n\tReactDOM.render(\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t,\r\n\t\tdocument.querySelector('#ReblastNotificationToggleComponent')\r\n\t);\r\n}\r\nif (window.reblastDetails) {\r\n\tReactDOM.render(\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t,\r\n\t\tdocument.querySelector('#ReblastDetailsComponent')\r\n\t);\r\n}\r\n\r\nReactDOM.render(\r\n \r\n \r\n\t\t\r\n\t,\r\n\tdocument.querySelector('#SideWidget')\r\n);\r\n\r\n\r\n\r\n","var _curry2 = /*#__PURE__*/require('./internal/_curry2');\n\nvar _equals = /*#__PURE__*/require('./internal/_equals');\n\n/**\n * Returns `true` if its arguments are equivalent, `false` otherwise. Handles\n * cyclical data structures.\n *\n * Dispatches symmetrically to the `equals` methods of both arguments, if\n * present.\n *\n * @func\n * @memberOf R\n * @since v0.15.0\n * @category Relation\n * @sig a -> b -> Boolean\n * @param {*} a\n * @param {*} b\n * @return {Boolean}\n * @example\n *\n * R.equals(1, 1); //=> true\n * R.equals(1, '1'); //=> false\n * R.equals([1, 2, 3], [1, 2, 3]); //=> true\n *\n * const a = {}; a.v = a;\n * const b = {}; b.v = b;\n * R.equals(a, b); //=> true\n */\n\n\nvar equals = /*#__PURE__*/_curry2(function equals(a, b) {\n return _equals(a, b, [], []);\n});\nmodule.exports = equals;","function _arrayFromIterator(iter) {\n var list = [];\n var next;\n while (!(next = iter.next()).done) {\n list.push(next.value);\n }\n return list;\n}\nmodule.exports = _arrayFromIterator;","var _arrayFromIterator = /*#__PURE__*/require('./_arrayFromIterator');\n\nvar _includesWith = /*#__PURE__*/require('./_includesWith');\n\nvar _functionName = /*#__PURE__*/require('./_functionName');\n\nvar _has = /*#__PURE__*/require('./_has');\n\nvar _objectIs = /*#__PURE__*/require('./_objectIs');\n\nvar keys = /*#__PURE__*/require('../keys');\n\nvar type = /*#__PURE__*/require('../type');\n\n/**\n * private _uniqContentEquals function.\n * That function is checking equality of 2 iterator contents with 2 assumptions\n * - iterators lengths are the same\n * - iterators values are unique\n *\n * false-positive result will be returned for comparision of, e.g.\n * - [1,2,3] and [1,2,3,4]\n * - [1,1,1] and [1,2,3]\n * */\n\nfunction _uniqContentEquals(aIterator, bIterator, stackA, stackB) {\n var a = _arrayFromIterator(aIterator);\n var b = _arrayFromIterator(bIterator);\n\n function eq(_a, _b) {\n return _equals(_a, _b, stackA.slice(), stackB.slice());\n }\n\n // if *a* array contains any element that is not included in *b*\n return !_includesWith(function (b, aItem) {\n return !_includesWith(eq, aItem, b);\n }, b, a);\n}\n\nfunction _equals(a, b, stackA, stackB) {\n if (_objectIs(a, b)) {\n return true;\n }\n\n var typeA = type(a);\n\n if (typeA !== type(b)) {\n return false;\n }\n\n if (a == null || b == null) {\n return false;\n }\n\n if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {\n return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);\n }\n\n if (typeof a.equals === 'function' || typeof b.equals === 'function') {\n return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);\n }\n\n switch (typeA) {\n case 'Arguments':\n case 'Array':\n case 'Object':\n if (typeof a.constructor === 'function' && _functionName(a.constructor) === 'Promise') {\n return a === b;\n }\n break;\n case 'Boolean':\n case 'Number':\n case 'String':\n if (!(typeof a === typeof b && _objectIs(a.valueOf(), b.valueOf()))) {\n return false;\n }\n break;\n case 'Date':\n if (!_objectIs(a.valueOf(), b.valueOf())) {\n return false;\n }\n break;\n case 'Error':\n return a.name === b.name && a.message === b.message;\n case 'RegExp':\n if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {\n return false;\n }\n break;\n }\n\n var idx = stackA.length - 1;\n while (idx >= 0) {\n if (stackA[idx] === a) {\n return stackB[idx] === b;\n }\n idx -= 1;\n }\n\n switch (typeA) {\n case 'Map':\n if (a.size !== b.size) {\n return false;\n }\n\n return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));\n case 'Set':\n if (a.size !== b.size) {\n return false;\n }\n\n return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));\n case 'Arguments':\n case 'Array':\n case 'Object':\n case 'Boolean':\n case 'Number':\n case 'String':\n case 'Date':\n case 'Error':\n case 'RegExp':\n case 'Int8Array':\n case 'Uint8Array':\n case 'Uint8ClampedArray':\n case 'Int16Array':\n case 'Uint16Array':\n case 'Int32Array':\n case 'Uint32Array':\n case 'Float32Array':\n case 'Float64Array':\n case 'ArrayBuffer':\n break;\n default:\n // Values of other types are only equal if identical.\n return false;\n }\n\n var keysA = keys(a);\n if (keysA.length !== keys(b).length) {\n return false;\n }\n\n var extendedStackA = stackA.concat([a]);\n var extendedStackB = stackB.concat([b]);\n\n idx = keysA.length - 1;\n while (idx >= 0) {\n var key = keysA[idx];\n if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {\n return false;\n }\n idx -= 1;\n }\n return true;\n}\nmodule.exports = _equals;","function _functionName(f) {\n // String(x => x) evaluates to \"x => x\", so the pattern may not match.\n var match = String(f).match(/^function (\\w*)/);\n return match == null ? '' : match[1];\n}\nmodule.exports = _functionName;","function _has(prop, obj) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\nmodule.exports = _has;","function _includesWith(pred, x, list) {\n var idx = 0;\n var len = list.length;\n\n while (idx < len) {\n if (pred(x, list[idx])) {\n return true;\n }\n idx += 1;\n }\n return false;\n}\nmodule.exports = _includesWith;","var _has = /*#__PURE__*/require('./_has');\n\nvar toString = Object.prototype.toString;\nvar _isArguments = /*#__PURE__*/function () {\n return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {\n return toString.call(x) === '[object Arguments]';\n } : function _isArguments(x) {\n return _has('callee', x);\n };\n}();\n\nmodule.exports = _isArguments;","// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\nfunction _objectIs(a, b) {\n // SameValue algorithm\n if (a === b) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return a !== 0 || 1 / a === 1 / b;\n } else {\n // Step 6.a: NaN == NaN\n return a !== a && b !== b;\n }\n}\n\nmodule.exports = typeof Object.is === 'function' ? Object.is : _objectIs;","var _curry1 = /*#__PURE__*/require('./internal/_curry1');\n\nvar _has = /*#__PURE__*/require('./internal/_has');\n\nvar _isArguments = /*#__PURE__*/require('./internal/_isArguments');\n\n// cover IE < 9 keys issues\n\n\nvar hasEnumBug = ! /*#__PURE__*/{ toString: null }.propertyIsEnumerable('toString');\nvar nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];\n// Safari bug\nvar hasArgsEnumBug = /*#__PURE__*/function () {\n 'use strict';\n\n return arguments.propertyIsEnumerable('length');\n}();\n\nvar contains = function contains(list, item) {\n var idx = 0;\n while (idx < list.length) {\n if (list[idx] === item) {\n return true;\n }\n idx += 1;\n }\n return false;\n};\n\n/**\n * Returns a list containing the names of all the enumerable own properties of\n * the supplied object.\n * Note that the order of the output array is not guaranteed to be consistent\n * across different JS platforms.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Object\n * @sig {k: v} -> [k]\n * @param {Object} obj The object to extract properties from\n * @return {Array} An array of the object's own properties.\n * @see R.keysIn, R.values\n * @example\n *\n * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']\n */\nvar keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/_curry1(function keys(obj) {\n return Object(obj) !== obj ? [] : Object.keys(obj);\n}) : /*#__PURE__*/_curry1(function keys(obj) {\n if (Object(obj) !== obj) {\n return [];\n }\n var prop, nIdx;\n var ks = [];\n var checkArgsLength = hasArgsEnumBug && _isArguments(obj);\n for (prop in obj) {\n if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {\n ks[ks.length] = prop;\n }\n }\n if (hasEnumBug) {\n nIdx = nonEnumerableProps.length - 1;\n while (nIdx >= 0) {\n prop = nonEnumerableProps[nIdx];\n if (_has(prop, obj) && !contains(ks, prop)) {\n ks[ks.length] = prop;\n }\n nIdx -= 1;\n }\n }\n return ks;\n});\nmodule.exports = keys;","var _curry3 = /*#__PURE__*/require('./internal/_curry3');\n\nvar equals = /*#__PURE__*/require('./equals');\n\nvar path = /*#__PURE__*/require('./path');\n\n/**\n * Determines whether a nested path on an object has a specific value, in\n * [`R.equals`](#equals) terms. Most likely used to filter a list.\n *\n * @func\n * @memberOf R\n * @since v0.7.0\n * @category Relation\n * @typedefn Idx = String | Int\n * @sig [Idx] -> a -> {a} -> Boolean\n * @param {Array} path The path of the nested property to use\n * @param {*} val The value to compare the nested property with\n * @param {Object} obj The object to check the nested property in\n * @return {Boolean} `true` if the value equals the nested object property,\n * `false` otherwise.\n * @example\n *\n * const user1 = { address: { zipCode: 90210 } };\n * const user2 = { address: { zipCode: 55555 } };\n * const user3 = { name: 'Bob' };\n * const users = [ user1, user2, user3 ];\n * const isFamous = R.pathEq(['address', 'zipCode'], 90210);\n * R.filter(isFamous, users); //=> [ user1 ]\n */\n\n\nvar pathEq = /*#__PURE__*/_curry3(function pathEq(_path, val, obj) {\n return equals(path(_path, obj), val);\n});\nmodule.exports = pathEq;","var _curry1 = /*#__PURE__*/require('./internal/_curry1');\n\n/**\n * Gives a single-word string description of the (native) type of a value,\n * returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not\n * attempt to distinguish user Object types any further, reporting them all as\n * 'Object'.\n *\n * @func\n * @memberOf R\n * @since v0.8.0\n * @category Type\n * @sig (* -> {*}) -> String\n * @param {*} val The value to test\n * @return {String}\n * @example\n *\n * R.type({}); //=> \"Object\"\n * R.type(1); //=> \"Number\"\n * R.type(false); //=> \"Boolean\"\n * R.type('s'); //=> \"String\"\n * R.type(null); //=> \"Null\"\n * R.type([]); //=> \"Array\"\n * R.type(/[A-z]/); //=> \"RegExp\"\n * R.type(() => {}); //=> \"Function\"\n * R.type(undefined); //=> \"Undefined\"\n */\n\n\nvar type = /*#__PURE__*/_curry1(function type(val) {\n return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);\n});\nmodule.exports = type;","void function(global) {\n\n 'use strict';\n\n // ValueError :: String -> Error\n function ValueError(message) {\n var err = new Error(message);\n err.name = 'ValueError';\n return err;\n }\n\n // create :: Object -> String,*... -> String\n function create(transformers) {\n return function(template) {\n var args = Array.prototype.slice.call(arguments, 1);\n var idx = 0;\n var state = 'UNDEFINED';\n\n return template.replace(\n /([{}])\\1|[{](.*?)(?:!(.+?))?[}]/g,\n function(match, literal, _key, xf) {\n if (literal != null) {\n return literal;\n }\n var key = _key;\n if (key.length > 0) {\n if (state === 'IMPLICIT') {\n throw ValueError('cannot switch from ' +\n 'implicit to explicit numbering');\n }\n state = 'EXPLICIT';\n } else {\n if (state === 'EXPLICIT') {\n throw ValueError('cannot switch from ' +\n 'explicit to implicit numbering');\n }\n state = 'IMPLICIT';\n key = String(idx);\n idx += 1;\n }\n\n // 1. Split the key into a lookup path.\n // 2. If the first path component is not an index, prepend '0'.\n // 3. Reduce the lookup path to a single result. If the lookup\n // succeeds the result is a singleton array containing the\n // value at the lookup path; otherwise the result is [].\n // 4. Unwrap the result by reducing with '' as the default value.\n var path = key.split('.');\n var value = (/^\\d+$/.test(path[0]) ? path : ['0'].concat(path))\n .reduce(function(maybe, key) {\n return maybe.reduce(function(_, x) {\n return x != null && key in Object(x) ?\n [typeof x[key] === 'function' ? x[key]() : x[key]] :\n [];\n }, []);\n }, [args])\n .reduce(function(_, x) { return x; }, '');\n\n if (xf == null) {\n return value;\n } else if (Object.prototype.hasOwnProperty.call(transformers, xf)) {\n return transformers[xf](value);\n } else {\n throw ValueError('no transformer named \"' + xf + '\"');\n }\n }\n );\n };\n }\n\n // format :: String,*... -> String\n var format = create({});\n\n // format.create :: Object -> String,*... -> String\n format.create = create;\n\n // format.extend :: Object,Object -> ()\n format.extend = function(prototype, transformers) {\n var $format = create(transformers);\n prototype.format = function() {\n var args = Array.prototype.slice.call(arguments);\n args.unshift(this);\n return $format.apply(global, args);\n };\n };\n\n /* istanbul ignore else */\n if (typeof module !== 'undefined') {\n module.exports = format;\n } else if (typeof define === 'function' && define.amd) {\n define(function() { return format; });\n } else {\n global.format = format;\n }\n\n}.call(this, this);\n"],"names":["initOnce","pending","error","cancel","connections","pendingRequests","Connections","browse","r","request","url","method","GeneralUtility","then","response","data","forEach","pendingRequest","resolve","catch","axios","reject","init","Promise","Error","deferred","promise","push","add","original","find","i","UserId","contact","KnownContactUserId","update","filter","ImFollowing","FollowingMe","_path","Connected","reset","ContentSubscriptionService","getNotificationSetting","contentId","setNotificationSetting","SaveReblast","params","delete","reblastId","reblast","Identifier","Delete","UserSearch","read","search","mention","CommentAttachment","props","useState","errorValidationError","setErrorValidationError","refFileImg","useRef","refFilePdf","fileAttachementOnChange","e","contentTypeId","target","dataset","attachtype","FormData","append","files","contentType","isFileCorrectType","fileName","name","fileSize","size","filExt","split","pop","test","resx","RESX_GLOBAL","RESX_REBLASTS","isImage","isPdf","fileAttachementValidation","isLoadingTimeout","setTimeout","prevState","isUploadingAttachment","SaveReblastAttachment","result","Success","Message","attachmentImagePreview","Data","AttachmentImage","Url","commentsAttachmentsId","UniqueKey","AttachmentDocument","commentsAttachmentsImage","commentsAttachmentTypeId","current","value","message","addMessage","type","LogglyLogger","LOGGLY_LEVEL_ERROR","clearTimeout","className","onClick","click","ref","accept","title","encType","onChange","Tooltip","overlay","withArrow","mixpanelType","propTypes","PropTypes","withMessage","CommentAttachmentPreview","color","loading","src","ConfirmAlert","description","confirmLabel","abortLabel","commentsAttchmentsImage","Avatar","self","_pathEq","websiteId","RESAAS","cdn","nocdn","path","id","fakeArr","contentUrl","chunks","idInt","x","x1","x2","length","rgx","replace","addCommas","loopage","parseInt","buildProfileImagePath","width","getWidth","resize","divClassName","hasProfileBadge","hasPremiumPlusBadge","hasGeBadge","attributes","imageAttributes","format","alt","displayName","lazy","imgClassName","variableList","defer","ClientStorage","dataObj","obj","RowKey","Object","keys","map","key","get","rejector","ClientStorageBrowse","ClientStorageService","dataKey","includes","set","OpenModal","tabIndex","text","closeModal","confirm","wrapper","document","body","appendChild","createElement","setAttribute","assign","thingToRemove","getElementById","parentNode","removeChild","ReactDOM","focus","closeForm","userFullName","handleConnectionRequest","isSubmitting","setMessage","validationMessages","setValidationMessages","validate","validated","newState","useEffect","PopUp","onClose","popUpWidth","popUpHeight","dangerouslySetInnerHTML","__html","onSubmit","preventDefault","htmlFor","placeholder","ErrorMessage","fieldName","Button","dataTestid","ConnectButton","setIsSubmitting","sendMessage","setSendMessage","userId","connection","setConnection","setConnections","totalConnected","setTotalConnected","canConnect","setCanConnect","isMe","window","imProfessional","daysAgoCreated","Date","isPaid","getConnections","c","reduce","a","connectionsBrowse","Array","isArray","isCancel","successMessage","InvitationMessage","Relationships","Type","Action","results","autoDelete","perpetuate","Mixpanel","MIXPANEL_RELATIONSHIP","mixpanel","MIXPANEL_CONTENT","content","errorMsg","requester","User2","FirstName","LastName","receiver","element","mixpanelElement","small","black","MIXPANEL_LAND","pageType","mixpanelContext","defaultProps","DateFromNow","date","Moment","relativeTime","future","diff","past","s","ss","utcFormat","local","fromNow","errorMessage","IdBar","locationFormatted","locationLink","GroupLinkPublicPage","GroupName","HideFirmFeed","IsScrubbed","user","City","Country","CountryId","FirmName","FullName","FirmUniqueName","HasProfileBadge","HasPremiumPlusBadge","Latitude","Longitude","State","UserDomain","UserProfilePictureUrl","WebsiteId","InstantReferralAuthorVerified","formattedName","Domain","undefined","location","pathname","indexOf","href","align","children","allowToClose","popupStyle","maxWidth","minHeight","popupWrapperId","popupRef","root","setRoot","scrollY","show","setShow","handleClose","handleEscapeKey","keyCode","nextElementSibling","existingRoot","querySelector","html","pageOuterWrapper","div","classList","style","top","addEventListener","scrollTo","previousElementSibling","html2","pageOuterWrapper2","remove","removeEventListener","createPortal","role","Content","virtualTourAddressVidUrl","ContentType","FileAttachmentUrl","HasFileInAttachment","HasListing","HasImageInAttachment","ListingAddress","ListingCity","ListingCoopFeeAmount","ListingCountry","ListingCurrencyCode","ListingFormattedPrice","ListingFormattedPricePerAmount","ListingHasImage","ListingInteriorSize","ListingInteriorSizeUnit","ListingIsSold","ListingIsLease","ListingNumberBedrooms","ListingNumberBathrooms","ListingPrice","ListingPricePerAmount","ListingPropertySize","ListingPriceSuffix","ListingSeoUrl","ListingSoldLabel","ListingState","ListingLeaseLabel","ListingSuiteNumber2","ListingLargeImageUrl","ListingVirtualTourAddress","ListingMarketStatus","ImageLargeAttachmentUrl","ReblastDescription","HidePreMarketDetails","vidUrl","utilities","virtualTourAddressVidIframe","address","listingImageSrc","listingImageSrcSet","formattedAddress","listingImageAlt","height","mode","quality","contentImg","srcset","sizes","testid","imgProps","srcSet","rel","RESX_LISTINGS","RESX_DASHBOARD","like","ReblastTools","firstName","lastName","domain","likedClassName","likeText","newCommentCount","setNewCommentCount","pendingLike","setPendingLike","handleNewComment","ReblastId","ReblastGUID","Event","prevCommentCount","$","trigger","channel","event","on","sessionStorage","likeStatus","JSON","parse","getItem","IsLikedByUser","UserLikedReblast","ReblastLikeCounter","off","likedState","criteria","SaveLike","setItem","stringify","finally","CanPostComments","commentsFetch","commentsDisplayCount","Infinity","commentsRequestedByUser","commentsPendingId","hasMoreCommentsToShow","ReblastType","Listing","Share","shareUrl","showIconWithText","showDetails","shareMessage","privacyType","ReblastImpressions","likeCaptionText","UniqueViewCount","IsReblastOwner","TotalViewCount","updateReblastIsFeatured","ReblastActions","loadingTimer","state","setState","isGroupAdmin","isFeed","deleteReblastFromState","closeDropdown","canPinPost","isReblastOwner","userWebsiteId","User","showDropdown","setShowDropdown","setLoading","isModerator","isIdentifiedUser","handleDeleteCatchError","loggly","addToSessionStorage","Modernizr","sessionstorage","reblastIdx","rtValue","inSessionStorage","index","onBlur","isFeatured","IsFeatured","FirmId","FirmID","m","LOGGLY_LEVEL_INFO","removeReblast","MIXPANEL_DELETE","saveReblast","commentId","comment","CommentId","DeleteComment","saveComment","Comments","CommentsView","loadingTimeout","TotalCommentCount","applicationUrl","hasMoreComments","searchComment","ContentId","RecordCount","comments","sort","b","dateA","DateCreatedFormatted","remainingComments","formatText","generalUtilities","Text","slice","DomainUrl","IsOwner","showDelete","usermention","textareaRef","setInputValue","Attachment","Image","CommentAuthor","inputValue","buttonStatus","setButtonStatus","messageStatus","setMessageStatus","commentMessage","setCommentMessage","showCommentActions","setShowCommentActions","textAreaHeight","setTextAreaHeight","handleInput","scrollHeight","rows","autoComplete","UserMention","inputRef","commentData","ContentTypeId","AttachmentId","AttachmentTypeId","SaveComment","SaveCommentResult","newComment","from","CommentsContainer","ReblastContainer","reblastActionRef","closeReblastActions","setCloseReblastActions","contains","prev","ContentTrackingUrl","ReblastCreatedOn","facebook","twitter","linkedin","showIconOnly","showIconWithButton","isOpen","setIsOpen","menuRef","buttonRef","encodedMessage","encodeURIComponent","shareOptions","icon","origin","Boolean","handleClickOutside","option","showButton","Spinner","image","cta","ctaText","newTab","task","setTask","isCompleted","setIsCompleted","completedTasks","setCompletedTasks","lastCompletedTaskTime","setLastCompletedTaskTime","randomTask","incompletedTasks","Math","floor","random","clientStorage","inCompletedTask","userTaskSessionStorage","inCompletedTaskInSessionStorage","userTasks","UserTasks","userTaskInfo","time","now","inCompletedTasks","item","some","done","renderIncompletedTask","undoTask","newData","context","newCompletedTask","concat","removeItem","checked","ToolTip","matches","revealPhone","setRevealPhone","buttonText","btnText","phoneNumber","Notifications","targetUserId","status","mixData","dataContext","MIXPANEL_INTENT","UserInfo","userInfo","setUserInfo","setPlaceholder","fallbackMessage","setFallbackMessage","payload","userData","addressFormatted","Province","YearsExpStr","Localization","Global","USER_INFO_YEARS_EXP","getFullYear","EnhancedProfile","StartedIn","Phone","AwardedReferrals","AwardedReferralsStr","USER_INFO_REFERRAL_AWARDED","ListingActiveCount","ListingComingSoonCount","ListingActiveCountStr","USER_INFO_ACTIVE_LISTINGS","OfficePhone","itemProp","Firstname","Lastname","IsPremium","IsPremiumPlus","ProfileImageUrl","Firm","itemScope","itemType","searchResults","setSearchResults","showSuggestions","setShowSuggestions","debounceTimer","handleKeyPress","cursorPosition","selectionStart","inputText","lastAtIndex","lastIndexOf","textAfterAt","substring","query","SearchFor","domian","atIndex","newValue","newCursorPosition","setSelectionRange","gateZillowPushFeature","isUltimate","isIntl","isCommercial","learnMoreUrl","RecommendationHeader","iconName","RecommendationContent","contentText","RecommendationFooter","mixPanelContext","mixPanelType","RecommendationContainer","RecommendationAdapter","reblastDetails","ListingLongitude","ListingLatitude","Environment","ApplicationUrl","newElement","innerHTML","getElementsByTagName","getAttribute","isPremiumUser","reblastDescription","isMsgPremiumJoin","toLowerCase","this","adaptData","getSoldListingData","getListingData","getReferralData","getPreMarketListingData","getContentTypeUnknownState","Component","initalState","CanReadComments","HasCommented","ReblastNotificationToggle","isSubscribed","setIsSubscribed","buttonClass","setButtonClass","setButtonText","setMixPanelType","notificationStatus","setNotificationStatus","visibility","setVisibility","IsSubscribed","toggleNotification","ToggleView","ZillowWidget","Z","_curry2","_equals","equals","module","exports","iter","next","list","_arrayFromIterator","_includesWith","_functionName","_has","_objectIs","_uniqContentEquals","aIterator","bIterator","stackA","stackB","eq","_a","_b","aItem","typeA","constructor","valueOf","source","global","ignoreCase","multiline","sticky","unicode","idx","entries","values","keysA","extendedStackA","extendedStackB","f","match","String","prop","prototype","hasOwnProperty","call","pred","len","toString","_isArguments","arguments","is","_curry1","hasEnumBug","propertyIsEnumerable","nonEnumerableProps","hasArgsEnumBug","nIdx","ks","checkArgsLength","_curry3","pathEq","val","ValueError","err","create","transformers","template","args","literal","_key","xf","maybe","_","extend","$format","unshift","apply"],"sourceRoot":""}