{"version":3,"sources":["webpack:///./src/consts/rating.js","webpack:///./src/components/pages/conversation/detail.vue?4770","webpack:///./src/services/contract.graphql","webpack:///./src/components/pages/conversation/detail.vue","webpack:///./src/components/conversation/date.vue","webpack:///src/components/conversation/date.vue","webpack:///./src/components/conversation/date.vue?932e","webpack:///./src/components/conversation/date.vue?0da3","webpack:///./src/services/contract.js","webpack:///src/components/pages/conversation/detail.vue","webpack:///./src/components/pages/conversation/detail.vue?99ee","webpack:///./src/components/pages/conversation/detail.vue?2a66","webpack:///./src/components/pages/conversation/detail.vue?869b","webpack:///./src/components/pages/conversation/detail.vue?517e","webpack:///./src/components/conversation/date.vue?866c"],"names":["RATING","RATING_LABELS","id","propertyName","label","doc","loc","source","collectFragmentReferences","node","refs","kind","add","name","value","type","selectionSet","selections","forEach","selection","variableDefinitions","def","definitions","definitionRefs","findOperation","i","length","element","oneQuery","operationName","newDoc","hasOwnProperty","opRefs","Set","allRefs","newRefs","refName","size","prevRefs","has","childRefs","childRef","op","push","module","exports","render","_vm","this","_c","_self","staticClass","attrs","$consts","enums","PORTAL_HEADER","$t","urls","URL_LIST_CONVERSATION","conversationId","conversation","adId","adTitle","adImage","adOrganization","canCreateContract","isAccountOnboardingComplete","_e","_l","messagesByDay","day","key","date","toString","messages","message","sid","body","attachedMedia","contractId","attributes","dateUpdated","isCurrentUser","isSystemUser","on","loadContractId","conversationSid","otherParticipantName","staticRenderFns","_v","_s","getDate","props","Date","required","computed","isToday","i18nHelpers","instance","t","locale","getLocalizedDate","SHORT_DAY_MONTH_YEAR","SHORT_MONTH_DAY_YEAR","component","getContractIdByConversationId","_x5","_getContractIdByConversationId","apply","arguments","_asyncToGenerator","result","Apollo","defaultClient","query","fetchPolicy","GetContractIdByConversationId","variables","data","contract","mounted","EventBus","$on","TWILIO_EVENT_MESSAGE_SENT","onMessageSent","TWILIO_EVENT_MESSAGE_ADDED","onMessageAdded","beforeDestroy","$off","components","ConversationBubble","ConversationDate","ConversationSidebar","AdSnippet","NavReturn","SendMessageForm","twilioConversation","conversationContractId","ad","translationOrDefault","title","gallery","organization","adOwnerId","user","$route","params","split","last","me","otherParticipant","participants","find","x","profile","publicName","haveContract","account","stripeAccount","accountOnboardingComplete","methods","_loadContractId","participant","participantSid","_onMessageSent","scrollBottom","refreshMessages","_onMessageAdded","event","_x","_refreshMessages","TwilioService","setAllMessagesReadOnConversation","getConversationMessages","getMessagesByDay","_getMessagesByDay","currentDate","getFullYear","getMonth","media","temporaryUrl","getContentTemporaryUrl","_x2","_scrollBottom","Promise","resolve","reject","setTimeout","window","scrollTo","document","scrollHeight","apollo","$options","Me","ConversationById","language","CONTENT_LANG_FR","_ref","_this","getConversationBySid","gqlDocs","handler","default"],"mappings":"kHAAA,oEAAO,MAAMA,EAAS,CAAC,YAAa,WAAY,YAAa,cAAe,aAAc,cAC7EC,EAAgB,CAC3B,CACEC,GAAI,UACJC,aAAc,gBACdC,MAAO,kBAET,CACEF,GAAI,YACJC,aAAc,kBACdC,MAAO,oBAET,CACEF,GAAI,gBACJC,aAAc,sBACdC,MAAO,wBAET,CACEF,GAAI,aACJC,aAAc,mBACdC,MAAO,qBAET,CACEF,GAAI,cACJC,aAAc,oBACdC,MAAO,sBAET,CACEF,GAAI,WACJC,aAAc,iBACdC,MAAO,qB,qCC9BX,yBAAqR,eAAG,G,qBCCpR,IAAIC,EAAM,CAAC,KAAO,WAAW,YAAc,CAAC,CAAC,KAAO,sBAAsB,UAAY,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,kBAAkB,oBAAsB,CAAC,CAAC,KAAO,qBAAqB,SAAW,CAAC,KAAO,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,UAAU,KAAO,CAAC,KAAO,cAAc,KAAO,CAAC,KAAO,YAAY,KAAO,CAAC,KAAO,OAAO,MAAQ,yBAAyB,WAAa,KAAK,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAA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AG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,yBAAyB,UAAY,GAAG,WAAa,cAAc,IAAM,CAAC,MAAQ,EAAE,IAAM,OAClsJrJ,EAAQ,CAAC,uBAAwB,EAAM,KAAM,EAAK,KAAO,SAAS,MAAQ,IAAI,UAAY,YAAc,GACxGsJ,EAAU,EAAQ,QAElBA,EAAQC,UACVD,EAAUA,EAAQC,SAEpB/J,EAAOC,QAAU,SAA0B2D,GACzCkG,EAAQlG,EAAWiG,EAASrJ,K,oCCTtC,W,yDCAA","file":"js/chunk-cc916bae.01b9a2c6.js","sourcesContent":["export const RATING = [\"ZERO_STAR\", \"ONE_STAR\", \"TWO_STARS\", \"THREE_STARS\", \"FOUR_STARS\", \"FIVE_STARS\"];\r\nexport const RATING_LABELS = [\r\n {\r\n id: \"respect\",\r\n propertyName: \"respectRating\",\r\n label: \"respect-rating\"\r\n },\r\n {\r\n id: \"fiability\",\r\n propertyName: \"fiabilityRating\",\r\n label: \"fiability-rating\"\r\n },\r\n {\r\n id: \"communication\",\r\n propertyName: \"communicationRating\",\r\n label: \"communication-rating\"\r\n },\r\n {\r\n id: \"compliance\",\r\n propertyName: \"complianceRating\",\r\n label: \"compliance-rating\"\r\n },\r\n {\r\n id: \"cleanliness\",\r\n propertyName: \"cleanlinessRating\",\r\n label: \"cleanliness-rating\"\r\n },\r\n {\r\n id: \"security\",\r\n propertyName: \"securityRating\",\r\n label: \"security-rating\"\r\n }\r\n];\r\n","import mod from \"-!../../../../node_modules/vue-graphql-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail.vue?vue&type=custom&index=0&blockType=graphql\"; export default mod; export * from \"-!../../../../node_modules/vue-graphql-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail.vue?vue&type=custom&index=0&blockType=graphql\"","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"CreateContract\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"CreateContractInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createContract\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}]}},{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"UpdateContract\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"UpdateContractInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"updateContract\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}]}},{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"RateContract\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"RateContractInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"rateContract\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"adRating\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"userRatings\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"raterUser\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}]}}]}},{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"GetContractIdByConversationId\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"conversation\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":651}};\n doc.loc.source = {\"body\":\"mutation CreateContract($input: CreateContractInput!) {\\r\\n createContract(input: $input) {\\r\\n contract {\\r\\n id\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\nmutation UpdateContract($input: UpdateContractInput!) {\\r\\n updateContract(input: $input) {\\r\\n contract {\\r\\n id\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\nmutation RateContract($input: RateContractInput!) {\\r\\n rateContract(input: $input) {\\r\\n contract {\\r\\n id\\r\\n adRating {\\r\\n id\\r\\n }\\r\\n userRatings {\\r\\n id\\r\\n raterUser {\\r\\n id\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\nquery GetContractIdByConversationId($id: ID!) {\\r\\n conversation(id: $id) {\\r\\n id\\r\\n contract {\\r\\n id\\r\\n }\\r\\n }\\r\\n}\\r\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \r\n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \r\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"CreateContract\"] = oneQuery(doc, \"CreateContract\");\n \n module.exports[\"UpdateContract\"] = oneQuery(doc, \"UpdateContract\");\n \n module.exports[\"RateContract\"] = oneQuery(doc, \"RateContract\");\n \n module.exports[\"GetContractIdByConversationId\"] = oneQuery(doc, \"GetContractIdByConversationId\");\n \r\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"conversation-detail\"},[_c('portal',{attrs:{\"to\":_vm.$consts.enums.PORTAL_HEADER}},[_c('div',[_c('nav-return',{attrs:{\"aria-title\":_vm.$t('sr.conversation-nav'),\"to\":{ name: _vm.$consts.urls.URL_LIST_CONVERSATION }}},[_c('conversation-sidebar',{attrs:{\"conversation-id\":_vm.conversationId}})],1),(_vm.conversation)?_c('ad-snippet',{attrs:{\"id\":_vm.adId,\"title\":_vm.adTitle,\"title-tag\":\"h1\",\"image\":_vm.adImage,\"organization\":_vm.adOrganization,\"conversation\":_vm.conversation,\"conversationId\":_vm.conversationId,\"canCreateContract\":_vm.canCreateContract,\"isAccountOnboardingComplete\":_vm.isAccountOnboardingComplete,\"smallTitle\":\"\",\"noWrapTitle\":\"\",\"snippetIsLink\":\"\"}}):_vm._e()],1)]),(_vm.conversation)?[_c('div',{staticClass:\"conversation-detail__bubble\"},_vm._l((_vm.messagesByDay),function(day){return _c('div',{key:day.date.toString(),staticClass:\"section section--md my-3 d-flex flex-column\"},[_c('conversation-date',{attrs:{\"date\":day.date}}),_vm._l((day.messages),function(message){return _c('conversation-bubble',{key:message.sid,attrs:{\"body\":message.body,\"medias\":message.attachedMedia,\"contract-id\":_vm.contractId,\"attributes\":message.attributes,\"date-updated\":message.dateUpdated,\"is-current-user\":_vm.isCurrentUser(message),\"is-system\":_vm.isSystemUser(message)},on:{\"loadContractId\":_vm.loadContractId}})})],2)}),0),_c('div',{staticClass:\"conversation-detail__send\"},[_c('div',{staticClass:\"section section--md\"},[_c('send-message-form',{attrs:{\"conversation-sid\":_vm.conversationSid,\"other-participant-name\":_vm.otherParticipantName}})],1)])]:_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"conversation-date\"},[_c('span',{staticClass:\"conversation-date__label small\"},[_vm._v(_vm._s(_vm.getDate()))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n {{ getDate() }}\r\n
\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./date.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./date.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./date.vue?vue&type=template&id=90e52284\"\nimport script from \"./date.vue?vue&type=script&lang=js\"\nexport * from \"./date.vue?vue&type=script&lang=js\"\nimport style0 from \"./date.vue?vue&type=style&index=0&id=90e52284&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Apollo from \"@/graphql/vue-apollo\";\r\n\r\nimport { CreateContract, UpdateContract, RateContract, GetContractIdByConversationId } from \"./contract.graphql\";\r\nimport { uploadFile } from \"./file-upload\";\r\n\r\nimport { addMaybeValue } from \"@/helpers/graphql\";\r\nimport { RATING } from \"@/consts/rating\";\r\n\r\nconst FILES_FOLDER = \"/files/\";\r\n\r\nexport async function createContract(input) {\r\n let fileItems = undefined;\r\n if (input.fileItems.length > 0) {\r\n fileItems = { value: await GetFileItems(input.fileItems) };\r\n }\r\n\r\n let result = await Apollo.instance.defaultClient.mutate({\r\n mutation: CreateContract,\r\n variables: {\r\n input: {\r\n conversationId: input.conversationId,\r\n datePrecision: input.datePrecision,\r\n fileItems,\r\n price: input.price,\r\n startDate: input.startDate,\r\n endDate: input.endDate,\r\n terms: input.terms\r\n }\r\n }\r\n });\r\n\r\n return result;\r\n}\r\n\r\nexport async function updateContract(input) {\r\n let mutationInput = {\r\n contractId: input.contractId\r\n };\r\n\r\n addMaybeValue(input, mutationInput, \"datePrecision\");\r\n addMaybeValue(input, mutationInput, \"startDate\");\r\n addMaybeValue(input, mutationInput, \"endDate\");\r\n addMaybeValue(input, mutationInput, \"price\");\r\n addMaybeValue(input, mutationInput, \"terms\");\r\n\r\n await addMaybeValue(input, mutationInput, \"fileItems\", GetFileItems);\r\n\r\n let result = await Apollo.instance.defaultClient.mutate({\r\n mutation: UpdateContract,\r\n variables: {\r\n input: mutationInput\r\n }\r\n });\r\n\r\n return result;\r\n}\r\n\r\nexport async function rateContract(input) {\r\n let mutationInput = {\r\n contractId: input.contractId,\r\n userRating: convertRatingToEnumsValue(input.userRating)\r\n };\r\n\r\n await addMaybeValue(input, mutationInput, \"adRating\", convertRatingToEnumsValue);\r\n\r\n let result = await Apollo.instance.defaultClient.mutate({\r\n mutation: RateContract,\r\n variables: {\r\n input: mutationInput\r\n }\r\n });\r\n\r\n return result;\r\n}\r\n\r\nasync function GetFileItems(files) {\r\n let fileItems = [];\r\n\r\n for (let i = 0; i < files.length; i++) {\r\n let fileId = \"\";\r\n let file = files[i];\r\n if (file.name.indexOf(FILES_FOLDER) === -1) {\r\n fileId = await uploadFile(file);\r\n } else {\r\n fileId = file.name.substring(file.name.indexOf(FILES_FOLDER) + FILES_FOLDER.length, file.name.indexOf(\"?\"));\r\n }\r\n fileItems.push(fileId);\r\n }\r\n\r\n return fileItems;\r\n}\r\n\r\nfunction convertRatingToEnumsValue(rating) {\r\n let enumValuesRating = {};\r\n for (const [key, value] of Object.entries(rating)) {\r\n enumValuesRating[key] = RATING[value];\r\n }\r\n return enumValuesRating;\r\n}\r\n\r\nexport async function getContractIdByConversationId(id) {\r\n let result = await Apollo.instance.defaultClient.query({\r\n fetchPolicy: \"network-only\",\r\n query: GetContractIdByConversationId,\r\n variables: {\r\n id\r\n }\r\n });\r\n\r\n return result.data.conversation.contract.id;\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\nquery ConversationById($id: ID!, $language: ContentLanguage!) {\r\n conversation(id: $id) {\r\n id\r\n sid\r\n participants {\r\n id\r\n sid\r\n user {\r\n id\r\n profile {\r\n id\r\n ... on UserProfileGraphType {\r\n publicName\r\n }\r\n }\r\n }\r\n }\r\n contract {\r\n id\r\n status\r\n }\r\n ad {\r\n id\r\n gallery {\r\n id\r\n src\r\n alt\r\n }\r\n translationOrDefault(language: $language) {\r\n id\r\n title\r\n }\r\n user {\r\n id\r\n }\r\n organization\r\n }\r\n }\r\n}\r\n\r\nquery Me {\r\n me {\r\n id\r\n stripeAccount {\r\n id\r\n accountOnboardingComplete\r\n accountOnboardingLink\r\n }\r\n }\r\n}\r\n\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./detail.vue?vue&type=template&id=71b4cb10\"\nimport script from \"./detail.vue?vue&type=script&lang=js\"\nexport * from \"./detail.vue?vue&type=script&lang=js\"\nimport style0 from \"./detail.vue?vue&type=style&index=0&id=71b4cb10&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* custom blocks */\nimport block0 from \"./detail.vue?vue&type=custom&index=0&blockType=graphql\"\nif (typeof block0 === 'function') block0(component)\n\nexport default component.exports","\n let gqlDocs = [{\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"ConversationById\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"language\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ContentLanguage\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"conversation\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sid\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"participants\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sid\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"user\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"profile\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"InlineFragment\",\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"UserProfileGraphType\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"publicName\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"ad\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"gallery\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"src\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"alt\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"translationOrDefault\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"language\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"language\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"user\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"organization\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":742}},{\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"Me\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"me\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"stripeAccount\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"accountOnboardingComplete\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"accountOnboardingLink\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":742}}];\n let attrs = {\"noAnonymousOperations\":false,\"vue\":true,\"type\":\"custom\",\"index\":\"0\",\"blockType\":\"graphql\"} || {};\n let handler = require(\"D:\\\\a\\\\1\\\\s\\\\YellowDuck.FE\\\\node_modules\\\\vue-graphql-loader\\\\lib\\\\handler\");\n\n if (handler.default) {\n handler = handler.default;\n }\n module.exports = function vueGraphqlLoader(component) {\n handler(component, gqlDocs, attrs);\n }","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail.vue?vue&type=style&index=0&id=71b4cb10&prod&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./date.vue?vue&type=style&index=0&id=90e52284&prod&lang=scss\""],"sourceRoot":""}