{"version":3,"sources":["webpack:///./src/components/form/s-field.vue","webpack:///src/components/form/s-field.vue","webpack:///./src/components/form/s-field.vue?fdec","webpack:///./src/components/form/s-field.vue?1b03","webpack:///./src/services/ad.js","webpack:///./src/services/google-map.js","webpack:///./src/components/pages/ad/transfer.vue","webpack:///src/components/pages/ad/transfer.vue","webpack:///./src/components/pages/ad/transfer.vue?9602","webpack:///./src/components/pages/ad/transfer.vue?5ad1","webpack:///./src/components/generic/form-complete.vue","webpack:///src/components/generic/form-complete.vue","webpack:///./src/components/generic/form-complete.vue?ffc9","webpack:///./src/components/generic/form-complete.vue?aaea","webpack:///./node_modules/core-js/modules/es6.function.name.js","webpack:///./src/components/nav/close.vue?14de","webpack:///./src/assets/icons/checklist-yellow.svg","webpack:///./src/services/file-upload.js","webpack:///./src/components/form/s-form-input.vue","webpack:///src/components/form/s-form-input.vue","webpack:///./src/components/form/s-form-input.vue?d9de","webpack:///./src/components/form/s-form-input.vue?0011","webpack:///./src/components/form/s-field.vue?cd9f","webpack:///./src/components/nav/close.vue","webpack:///src/components/nav/close.vue","webpack:///./src/components/nav/close.vue?f4cf","webpack:///./src/components/nav/close.vue?2138","webpack:///./src/components/pages/ad/transfer.vue?0f6e","webpack:///./src/components/form/s-form.vue","webpack:///src/components/form/s-form.vue","webpack:///./src/components/form/s-form.vue?e96e","webpack:///./src/components/form/s-form.vue?e204","webpack:///./src/services/ad.graphql"],"names":["render","_vm","this","_c","_self","class","margin","attrs","name","rules","mode","scopedSlots","_u","key","fn","_ref","errors","valid","failed","validate","className","id","label","inputId","labelColsWithDefault","labelColsSm","labelCols","labelClass","labelSrOnly","description","trim","_t","staticClass","domProps","_s","proxy","getSlotState","staticRenderFns","props","String","Number","Boolean","type","default","Object","computed","methods","component","IMAGES_FOLDER","createAd","_x","_createAd","apply","arguments","_asyncToGenerator","input","galleryItems","undefined","length","value","GetGalleryItems","address","getAddressFromGooglePlace","mutationInput","title","category","isAvailableForRent","isAvailableForSale","isAvailableForDonation","isAvailableForTrade","language","CONTENT_LANG_FR","showAddress","rentPriceToBeDetermined","rentPrice","salePriceToBeDetermined","salePrice","rentPriceDescription","salePriceDescription","donationDescription","tradeDescription","organization","addMaybeValue","result","Apollo","instance","defaultClient","mutate","mutation","CreateAd","variables","AuthentificationService","renewToken","updateAd","_x2","_updateAd","updateAdTranslation","adId","keys","UpdateAd","publishAd","_x3","_publishAd","PublishAd","unpublishAd","_x4","_unpublishAd","UnpublishAd","transferAd","_x5","_transferAd","TransferAd","_x6","_updateAdTranslation","UpdateAdTranslation","_x7","_GetGalleryItems","images","i","fileId","file","indexOf","uploadImage","substring","push","src","alt","_getAddressFromGooglePlace","place","reverseGeocodeResult","reverseGeocode","latitude","longitude","raw","JSON","stringify","locality","postal_code","postalCode","route","street_number","streetNumber","neighborhood","sublocality","_reverseGeocode","geocoder","window","google","maps","Geocoder","latlng","lat","parseFloat","lng","geocoded","geocode","location","results","findComponent","types","find","x","components","address_components","j","long_name","adTransfered","$t","require","formCompleteCtas","$consts","enums","PORTAL_HEADER","urls","URL_AD_DETAIL","params","_v","on","model","userEmail","callback","$$v","expression","disabledBtn","NavClose","SForm","SFormInput","FormComplete","data","isSubmitted","action","$router","URL_ROOT","text","$route","split","last","_this","scrollTo","gqlErrors","USER_NOT_FOUND","error","image","_e","htmlTitle","htmlDescription","linkTitle","links","ctas","_l","link","href","cta","getBtnVariant","$event","Array","isAdmin","variant","dP","f","FProto","Function","prototype","nameRE","NAME","configurable","get","match","e","module","exports","_uploadImage","Authentification","token","getUserToken","FormData","append","response","fetch","VUE_APP_ROOT_API","method","headers","Authorization","body","status","json","Error","i18n","t","uploadFile","_uploadFile","sState","prepend","placeholder","required","$emit","computedValue","SField","set","val","to","NavBase","handleSubmit","preventDefault","onSubmit","doc","loc","source","collectFragmentReferences","node","refs","kind","add","selectionSet","selections","forEach","selection","variableDefinitions","def","definitions","definitionRefs","findOperation","element","oneQuery","operationName","newDoc","hasOwnProperty","opRefs","Set","allRefs","newRefs","refName","size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AKmD,OAASmN,OALvC,GAiEAzC,EAAOC,QAAUmC,EAEbpC,EAAOC,QAAQ,YAAcqD,EAASlB,EAAK,YAE3CpC,EAAOC,QAAQ,YAAcqD,EAASlB,EAAK,YAE3CpC,EAAOC,QAAQ,uBAAyBqD,EAASlB,EAAK,uBAEtDpC,EAAOC,QAAQ,aAAeqD,EAASlB,EAAK,aAE5CpC,EAAOC,QAAQ,eAAiBqD,EAASlB,EAAK,eAE9CpC,EAAOC,QAAQ,cAAgBqD,EAASlB,EAAK","file":"js/chunk-323b5201.dd2e46a9.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('validation-provider',{class:[{ 'my-0': _vm.margin === 'none' }, { 'my-3': _vm.margin === 'sm' }, { 'my-4': _vm.margin === 'md' }],attrs:{\"name\":_vm.name,\"rules\":_vm.rules,\"events\":\"['change|blur']\",\"mode\":_vm.mode,\"slim\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ errors, valid, failed, validate }){return [_c('b-form-group',{class:_vm.className || '',attrs:{\"id\":_vm.id,\"label\":_vm.label,\"label-for\":_vm.inputId,\"label-cols\":_vm.labelColsWithDefault,\"label-cols-sm\":_vm.labelColsSm || _vm.labelCols,\"label-class\":_vm.labelClass || '',\"label-sr-only\":_vm.labelSrOnly,\"invalidFeedback\":errors[0],\"state\":valid},scopedSlots:_vm._u([(_vm.description && _vm.description.trim() != '')?{key:\"description\",fn:function(){return [_vm._t(\"description\",function(){return [_c('span',{staticClass:\"text-muted\",domProps:{\"innerHTML\":_vm._s(_vm.description)}})]})]},proxy:true}:null],null,true)},[_vm._t(\"default\",null,{\"sValidate\":validate,\"sState\":_vm.getSlotState(failed)})],2)]}}],null,true)})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./s-field.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!./s-field.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./s-field.vue?vue&type=template&id=230265fa\"\nimport script from \"./s-field.vue?vue&type=script&lang=js\"\nexport * from \"./s-field.vue?vue&type=script&lang=js\"\nimport style0 from \"./s-field.vue?vue&type=style&index=0&id=230265fa&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\nimport { CreateAd, UpdateAd, UpdateAdTranslation, PublishAd, UnpublishAd, TransferAd } from \"./ad.graphql\";\r\n\r\nimport { CONTENT_LANG_FR } from \"@/consts/langs\";\r\n\r\nimport { addMaybeValue } from \"@/helpers/graphql\";\r\n\r\nimport { getAddressFromGooglePlace } from \"@/services/google-map\";\r\nimport AuthentificationService from \"./authentification\";\r\nimport { uploadImage } from \"./file-upload\";\r\n\r\nconst IMAGES_FOLDER = \"/images/\";\r\n\r\nexport async function createAd(input) {\r\n let galleryItems = undefined;\r\n if (input.galleryItems.length > 0) {\r\n galleryItems = { value: await GetGalleryItems(input.galleryItems) };\r\n }\r\n\r\n let address = await getAddressFromGooglePlace(input.address);\r\n\r\n let mutationInput = {\r\n title: input.title,\r\n category: input.category,\r\n isAvailableForRent: typeof input.isAvailableForRent === \"boolean\" ? input.isAvailableForRent : false,\r\n isAvailableForSale: typeof input.isAvailableForSale === \"boolean\" ? input.isAvailableForSale : false,\r\n isAvailableForDonation: typeof input.isAvailableForDonation === \"boolean\" ? input.isAvailableForDonation : false,\r\n isAvailableForTrade: typeof input.isAvailableForTrade === \"boolean\" ? input.isAvailableForTrade : false,\r\n language: CONTENT_LANG_FR,\r\n galleryItems,\r\n address,\r\n showAddress: typeof input.showAddress === \"boolean\" ? input.showAddress : false,\r\n rentPriceToBeDetermined: typeof input.rentPriceToBeDetermined === \"boolean\" ? input.rentPriceToBeDetermined : false,\r\n rentPrice: input.rentPrice,\r\n salePriceToBeDetermined: typeof input.salePriceToBeDetermined === \"boolean\" ? input.salePriceToBeDetermined : false,\r\n salePrice: input.salePrice,\r\n rentPriceDescription: input.rentPriceDescription,\r\n salePriceDescription: input.salePriceDescription,\r\n donationDescription: input.donationDescription,\r\n tradeDescription: input.tradeDescription,\r\n organization: input.organization\r\n };\r\n\r\n addMaybeValue(input, mutationInput, \"rentPriceRange\");\r\n addMaybeValue(input, mutationInput, \"salePriceRange\");\r\n addMaybeValue(input, mutationInput, \"conditions\");\r\n addMaybeValue(input, mutationInput, \"description\");\r\n addMaybeValue(input, mutationInput, \"surfaceSize\");\r\n addMaybeValue(input, mutationInput, \"equipment\");\r\n addMaybeValue(input, mutationInput, \"surfaceDescription\");\r\n addMaybeValue(input, mutationInput, \"professionalKitchenEquipment\");\r\n addMaybeValue(input, mutationInput, \"professionalKitchenEquipmentOther\");\r\n addMaybeValue(input, mutationInput, \"deliveryTruckType\");\r\n addMaybeValue(input, mutationInput, \"deliveryTruckTypeOther\");\r\n addMaybeValue(input, mutationInput, \"dayAvailability\");\r\n addMaybeValue(input, mutationInput, \"eveningAvailability\");\r\n addMaybeValue(input, mutationInput, \"availabilityRestriction\");\r\n addMaybeValue(input, mutationInput, \"refrigerated\");\r\n addMaybeValue(input, mutationInput, \"canSharedRoad\");\r\n addMaybeValue(input, mutationInput, \"canHaveDriver\");\r\n addMaybeValue(input, mutationInput, \"certification\");\r\n addMaybeValue(input, mutationInput, \"allergen\");\r\n\r\n let result = await Apollo.instance.defaultClient.mutate({\r\n mutation: CreateAd,\r\n variables: {\r\n input: mutationInput\r\n }\r\n });\r\n\r\n // Renew the token since we want the new ad in our\r\n await AuthentificationService.renewToken();\r\n return result;\r\n}\r\n\r\nexport async function updateAd(input) {\r\n if (\r\n \"title\" in input ||\r\n \"description\" in input ||\r\n \"rentPriceDescription\" in input ||\r\n \"salePriceDescription\" in input ||\r\n \"donationDescription\" in input ||\r\n \"tradeDescription\" in input ||\r\n \"conditions\" in input ||\r\n \"professionalKitchenEquipmentOther\" in input ||\r\n \"deliveryTruckTypeOther\" in input ||\r\n \"equipment\" in input ||\r\n \"surfaceSize\" in input ||\r\n \"surfaceDescription\" in input\r\n ) {\r\n await updateAdTranslation(input);\r\n }\r\n\r\n let mutationInput = {\r\n adId: input.adId\r\n };\r\n\r\n addMaybeValue(input, mutationInput, \"category\");\r\n addMaybeValue(input, mutationInput, \"isAvailableForRent\");\r\n addMaybeValue(input, mutationInput, \"isAvailableForSale\");\r\n addMaybeValue(input, mutationInput, \"isAvailableForDonation\");\r\n addMaybeValue(input, mutationInput, \"isAvailableForTrade\");\r\n await addMaybeValue(input, mutationInput, \"address\", getAddressFromGooglePlace);\r\n await addMaybeValue(input, mutationInput, \"galleryItems\", GetGalleryItems);\r\n addMaybeValue(input, mutationInput, \"rentPrice\");\r\n addMaybeValue(input, mutationInput, \"salePrice\");\r\n addMaybeValue(input, mutationInput, \"showAddress\");\r\n addMaybeValue(input, mutationInput, \"rentPriceToBeDetermined\");\r\n addMaybeValue(input, mutationInput, \"salePriceToBeDetermined\");\r\n addMaybeValue(input, mutationInput, \"rentPriceRange\");\r\n addMaybeValue(input, mutationInput, \"salePriceRange\");\r\n addMaybeValue(input, mutationInput, \"organization\");\r\n addMaybeValue(input, mutationInput, \"professionalKitchenEquipment\");\r\n addMaybeValue(input, mutationInput, \"deliveryTruckType\");\r\n addMaybeValue(input, mutationInput, \"dayAvailability\");\r\n addMaybeValue(input, mutationInput, \"eveningAvailability\");\r\n addMaybeValue(input, mutationInput, \"availabilityRestriction\");\r\n addMaybeValue(input, mutationInput, \"refrigerated\");\r\n addMaybeValue(input, mutationInput, \"canSharedRoad\");\r\n addMaybeValue(input, mutationInput, \"canHaveDriver\");\r\n addMaybeValue(input, mutationInput, \"certification\");\r\n addMaybeValue(input, mutationInput, \"allergen\");\r\n\r\n if (Object.keys(mutationInput).length > 1) {\r\n let result = await Apollo.instance.defaultClient.mutate({\r\n mutation: UpdateAd,\r\n variables: {\r\n input: mutationInput\r\n }\r\n });\r\n\r\n return result;\r\n }\r\n}\r\n\r\nexport async function publishAd(adId) {\r\n let mutationInput = {\r\n adId\r\n };\r\n\r\n let result = await Apollo.instance.defaultClient.mutate({\r\n mutation: PublishAd,\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 unpublishAd(adId) {\r\n let mutationInput = {\r\n adId\r\n };\r\n\r\n let result = await Apollo.instance.defaultClient.mutate({\r\n mutation: UnpublishAd,\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 transferAd(input) {\r\n const result = await Apollo.instance.defaultClient.mutate({\r\n mutation: TransferAd,\r\n variables: {\r\n input\r\n }\r\n });\r\n\r\n return result;\r\n}\r\n\r\nasync function updateAdTranslation(input) {\r\n let mutationInput = {\r\n adId: input.adId,\r\n language: CONTENT_LANG_FR\r\n };\r\n\r\n addMaybeValue(input, mutationInput, \"description\");\r\n addMaybeValue(input, mutationInput, \"title\");\r\n addMaybeValue(input, mutationInput, \"rentPriceDescription\");\r\n addMaybeValue(input, mutationInput, \"salePriceDescription\");\r\n addMaybeValue(input, mutationInput, \"donationDescription\");\r\n addMaybeValue(input, mutationInput, \"tradeDescription\");\r\n addMaybeValue(input, mutationInput, \"conditions\");\r\n addMaybeValue(input, mutationInput, \"rentPriceToBeDetermined\");\r\n addMaybeValue(input, mutationInput, \"salePriceToBeDetermined\");\r\n addMaybeValue(input, mutationInput, \"equipment\");\r\n addMaybeValue(input, mutationInput, \"surfaceSize\");\r\n addMaybeValue(input, mutationInput, \"surfaceDescription\");\r\n addMaybeValue(input, mutationInput, \"professionalKitchenEquipmentOther\");\r\n addMaybeValue(input, mutationInput, \"deliveryTruckTypeOther\");\r\n addMaybeValue(input, mutationInput, \"isAvailableForRent\");\r\n addMaybeValue(input, mutationInput, \"isAvailableForSale\");\r\n addMaybeValue(input, mutationInput, \"isAvailableForDonation\");\r\n addMaybeValue(input, mutationInput, \"isAvailableForTrade\");\r\n\r\n let result = await Apollo.instance.defaultClient.mutate({\r\n mutation: UpdateAdTranslation,\r\n variables: {\r\n input: mutationInput\r\n }\r\n });\r\n\r\n return result;\r\n}\r\n\r\nasync function GetGalleryItems(images) {\r\n let galleryItems = [];\r\n\r\n for (let i = 0; i < images.length; i++) {\r\n let fileId = \"\";\r\n let file = null;\r\n file = images[i].file;\r\n if (file.name.indexOf(IMAGES_FOLDER) === -1) {\r\n fileId = await uploadImage(file);\r\n } else {\r\n // Trouver le nom du fichier dans l'url de la source déjà existante\r\n fileId = file.name.substring(file.name.indexOf(IMAGES_FOLDER) + IMAGES_FOLDER.length);\r\n }\r\n galleryItems.push({ src: fileId, alt: images[i].alt });\r\n }\r\n\r\n return galleryItems;\r\n}\r\n","export async function getAddressFromGooglePlace(place) {\r\n let reverseGeocodeResult = await reverseGeocode(place.latitude, place.longitude);\r\n let address = { raw: JSON.stringify(place), latitude: place.latitude, longitude: place.longitude };\r\n\r\n if (place.locality !== undefined) {\r\n address.locality = { value: place.locality };\r\n }\r\n\r\n if (place.postal_code !== undefined) {\r\n address.postalCode = { value: place.postal_code };\r\n }\r\n\r\n if (place.route !== undefined) {\r\n address.route = { value: place.route };\r\n }\r\n\r\n if (place.street_number !== undefined) {\r\n address.streetNumber = { value: place.street_number };\r\n }\r\n\r\n if (reverseGeocodeResult.neighborhood !== undefined) {\r\n address.neighborhood = { value: reverseGeocodeResult.neighborhood };\r\n }\r\n\r\n if (reverseGeocodeResult.sublocality !== undefined) {\r\n address.sublocality = { value: reverseGeocodeResult.sublocality };\r\n }\r\n\r\n return address;\r\n}\r\n\r\nasync function reverseGeocode(latitude, longitude) {\r\n const geocoder = new window.google.maps.Geocoder();\r\n const latlng = {\r\n lat: parseFloat(latitude),\r\n lng: parseFloat(longitude)\r\n };\r\n\r\n let neighborhood = \"\";\r\n let sublocality = \"\";\r\n\r\n let geocoded = await geocoder.geocode({ location: latlng });\r\n\r\n for (let i = 0; i < geocoded.results.length; i++) {\r\n let result = geocoded.results[i];\r\n\r\n if (neighborhood === \"\") {\r\n neighborhood = findComponent(result, \"neighborhood\");\r\n }\r\n if (sublocality === \"\") {\r\n sublocality = findComponent(result, \"sublocality\");\r\n }\r\n }\r\n\r\n return { neighborhood, sublocality };\r\n}\r\n\r\nfunction findComponent(result, type) {\r\n if (result.types.find((x) => x === type)) {\r\n let components = result.address_components;\r\n for (let j = 0; j < components.length; j++) {\r\n let component = components[j];\r\n if (component.types.find((x) => x === type)) {\r\n return component.long_name;\r\n }\r\n }\r\n }\r\n return \"\";\r\n}\r\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"transfer fab-container w-100 mt-4 mt-md-5\"},[(!_vm.adTransfered)?[_c('portal',{attrs:{\"to\":_vm.$consts.enums.PORTAL_HEADER}},[_c('nav-close',{attrs:{\"to\":{ name: _vm.$consts.urls.URL_AD_DETAIL, params: { id: this.adId } }}})],1),_c('div',{staticClass:\"section section--md section--padding-x my-4\"},[_c('h1',{staticClass:\"my-4\"},[_vm._v(_vm._s(_vm.$t(\"page-title.transfer-ad\")))])]),_c('s-form',{staticClass:\"transfer__form\",on:{\"submit\":_vm.transferAd}},[_c('div',{staticClass:\"transfer__form-content section section--md section--padding-x my-4 pb-3 rm-child-margin\"},[_c('s-form-input',{attrs:{\"id\":\"userEmail\",\"label\":_vm.$t('label.ad-transfer-user-email'),\"name\":\"userEmail\",\"rules\":\"email|required\",\"placeholder\":_vm.$t('placeholder.ad-transfer-user-email'),\"required\":\"\"},model:{value:(_vm.userEmail),callback:function ($$v) {_vm.userEmail=$$v},expression:\"userEmail\"}})],1),_c('div',{staticClass:\"fab-container__fab\"},[_c('div',{staticClass:\"section section--md\"},[_c('b-button',{attrs:{\"disabled\":_vm.disabledBtn,\"type\":\"submit\",\"variant\":\"admin\",\"size\":\"lg\",\"block\":\"\",\"aria-label\":_vm.$t('sr.confirm')}},[_vm._v(\" \"+_vm._s(_vm.$t(\"btn.confirm-ad-transfer\"))+\" \")])],1)])])]:_c('form-complete',{attrs:{\"title\":_vm.$t('form-complete.transfer-ad.title'),\"description\":_vm.$t('form-complete.transfer-ad.description'),\"image\":require('@/assets/icons/checklist-yellow.svg'),\"ctas\":_vm.formCompleteCtas}})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./transfer.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!./transfer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./transfer.vue?vue&type=template&id=851bb4cc\"\nimport script from \"./transfer.vue?vue&type=script&lang=js\"\nexport * from \"./transfer.vue?vue&type=script&lang=js\"\nimport style0 from \"./transfer.vue?vue&type=style&index=0&id=851bb4cc&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","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"w-100\"},[(_vm.title || _vm.image || _vm.description)?_c('div',{staticClass:\"section section--sm my-4\"},[(_vm.title)?_c('h1',{staticClass:\"h2 my-4\"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),(_vm.image)?_c('b-img',{staticClass:\"my-4\",attrs:{\"src\":_vm.image,\"alt\":\"\",\"height\":\"100\",\"block\":\"\"}}):_vm._e(),(_vm.description)?_c('p',{staticClass:\"my-4\"},[_vm._v(_vm._s(_vm.description))]):_vm._e()],1):_vm._e(),(_vm.htmlTitle || _vm.htmlDescription)?_c('div',{staticClass:\"section section--sm my-4\",class:{ 'section--border-top': _vm.htmlTitle && _vm.title }},[(_vm.htmlTitle)?_c('h2',{staticClass:\"h3 text-primary my-4\"},[_vm._v(_vm._s(_vm.htmlTitle))]):_vm._e(),(_vm.htmlDescription)?_c('div',{staticClass:\"my-4\",domProps:{\"innerHTML\":_vm._s(_vm.htmlDescription)}}):_vm._e()]):_vm._e(),(_vm.linkTitle || _vm.links || _vm.ctas)?_c('div',{staticClass:\"section section--sm my-4\",class:{ 'section--border-top': _vm.linkTitle && (_vm.title || _vm.htmlTitle) }},[(_vm.linkTitle)?_c('h2',{staticClass:\"h3 text-primary my-4\"},[_vm._v(_vm._s(_vm.linkTitle))]):_vm._e(),(_vm.links && _vm.links.length > 1)?_c('ul',{staticClass:\"my-4\"},_vm._l((_vm.links),function(link){return _c('li',{key:link.text},[_c('a',{attrs:{\"href\":link.href}},[_vm._v(_vm._s(link.text))])])}),0):(_vm.links && _vm.links[0])?_c('p',{staticClass:\"my-4\"},[_c('a',{key:_vm.links[0].text,attrs:{\"href\":_vm.links[0].href}},[_vm._v(_vm._s(_vm.links[0].text))])]):_vm._e(),(_vm.ctas)?_vm._l((_vm.ctas),function(cta){return _c('b-button',{key:cta.text,class:{ 'mt-3': cta !== _vm.ctas[0] },attrs:{\"variant\":_vm.getBtnVariant(cta),\"size\":\"lg\",\"block\":\"\"},on:{\"click\":function($event){return cta.action()}}},[_vm._v(_vm._s(cta.text))])}):_vm._e()],2):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./form-complete.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!./form-complete.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./form-complete.vue?vue&type=template&id=2edcb8a2\"\nimport script from \"./form-complete.vue?vue&type=script&lang=js\"\nexport * from \"./form-complete.vue?vue&type=script&lang=js\"\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","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\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!./close.vue?vue&type=style&index=0&id=782a82b6&prod&lang=scss\"","module.exports = __webpack_public_path__ + \"img/checklist-yellow.a7841a88.svg\";","import Authentification from \"./authentification\";\r\nimport { VUE_APP_ROOT_API } from \"@/helpers/env\";\r\nimport i18n from \"@/helpers/i18n\";\r\n\r\nexport async function uploadImage(file) {\r\n // Make sure auth token will be valid\r\n await Authentification.renewToken();\r\n\r\n const token = Authentification.getUserToken();\r\n const data = new FormData();\r\n data.append(\"file\", file);\r\n\r\n const response = await fetch(`${VUE_APP_ROOT_API}/upload/image`, {\r\n method: \"post\",\r\n headers: {\r\n Authorization: `Bearer ${token}`\r\n },\r\n body: data\r\n });\r\n\r\n if (response.status === 200) {\r\n const result = await response.json();\r\n return result.fileId;\r\n } else {\r\n throw new Error(i18n.t(\"error.image-upload\"));\r\n }\r\n}\r\n\r\nexport async function uploadFile(file) {\r\n // Make sure auth token will be valid\r\n await Authentification.renewToken();\r\n\r\n const token = Authentification.getUserToken();\r\n const data = new FormData();\r\n data.append(\"file\", file);\r\n\r\n const response = await fetch(`${VUE_APP_ROOT_API}/upload/file`, {\r\n method: \"post\",\r\n headers: {\r\n Authorization: `Bearer ${token}`\r\n },\r\n body: data\r\n });\r\n\r\n if (response.status === 200) {\r\n const result = await response.json();\r\n return result.fileId;\r\n } else {\r\n throw new Error(i18n.t(\"error.file-upload\"));\r\n }\r\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('s-field',{attrs:{\"id\":_vm.id,\"label\":_vm.label,\"name\":_vm.name,\"inputId\":_vm.inputId,\"labelSrOnly\":_vm.labelSrOnly,\"rules\":_vm.rules,\"description\":_vm.description},scopedSlots:_vm._u([{key:\"default\",fn:function({ sState }){return [_c('b-input-group',{attrs:{\"prepend\":_vm.prepend,\"append\":_vm.append}},[_vm._t(\"input-group-prepend\",null,{\"sState\":sState}),_c('b-form-input',{attrs:{\"id\":_vm.inputId,\"type\":_vm.type,\"placeholder\":_vm.placeholder,\"required\":_vm.required,\"state\":sState},on:{\"change\":function($event){return _vm.$emit('change', $event)}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v},expression:\"computedValue\"}}),_vm._t(\"input-group-append\",null,{\"sState\":sState})],2)]}}],null,true)})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./s-form-input.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!./s-form-input.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./s-form-input.vue?vue&type=template&id=aedf481e\"\nimport script from \"./s-form-input.vue?vue&type=script&lang=js\"\nexport * from \"./s-form-input.vue?vue&type=script&lang=js\"\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","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!./s-field.vue?vue&type=style&index=0&id=230265fa&prod&lang=scss\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('nav-base',[_c('b-button',{staticClass:\"nav-close h3\",attrs:{\"size\":\"lg\",\"aria-label\":_vm.label || _vm.$t('sr.close-panel'),\"to\":_vm.to},on:{\"click\":function($event){return _vm.$emit('close')}}},[_c('b-icon-x',{attrs:{\"aria-hidden\":\"true\"}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./close.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!./close.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./close.vue?vue&type=template&id=782a82b6\"\nimport script from \"./close.vue?vue&type=script&lang=js\"\nexport * from \"./close.vue?vue&type=script&lang=js\"\nimport style0 from \"./close.vue?vue&type=style&index=0&id=782a82b6&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","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!./transfer.vue?vue&type=style&index=0&id=851bb4cc&prod&lang=scss\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('validation-observer',{attrs:{\"slim\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ handleSubmit }){return [_c('form',{attrs:{\"novalidate\":\"\"},on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.onSubmit)}}},[_vm._t(\"default\")],2)]}}],null,true)})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./s-form.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!./s-form.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./s-form.vue?vue&type=template&id=28d6b4d0\"\nimport script from \"./s-form.vue?vue&type=script&lang=js\"\nexport * from \"./s-form.vue?vue&type=script&lang=js\"\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","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"CreateAd\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"CreateAdInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createAd\"},\"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\":\"ad\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}]}},{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"UpdateAd\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"UpdateAdInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"updateAd\"},\"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\":\"ad\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}]}},{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"UpdateAdTranslation\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"UpdateAdTranslationInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"updateAdTranslation\"},\"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\":\"adTranslation\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}]}},{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"PublishAd\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"PublishAdInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"publishAd\"},\"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\":\"ad\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isPublish\"},\"arguments\":[],\"directives\":[]}]}}]}}]}},{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"UnpublishAd\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"UnpublishAdInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"unpublishAd\"},\"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\":\"ad\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isPublish\"},\"arguments\":[],\"directives\":[]}]}}]}}]}},{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"TransferAd\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"TransferAdInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"transferAd\"},\"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\":\"ad\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isAdminOnly\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":779}};\n doc.loc.source = {\"body\":\"mutation CreateAd($input: CreateAdInput!) {\\r\\n createAd(input: $input) {\\r\\n ad {\\r\\n id\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\nmutation UpdateAd($input: UpdateAdInput!) {\\r\\n updateAd(input: $input) {\\r\\n ad {\\r\\n id\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\nmutation UpdateAdTranslation($input: UpdateAdTranslationInput!) {\\r\\n updateAdTranslation(input: $input) {\\r\\n adTranslation {\\r\\n id\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\nmutation PublishAd($input: PublishAdInput!) {\\r\\n publishAd(input: $input) {\\r\\n ad {\\r\\n id\\r\\n isPublish\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\nmutation UnpublishAd($input: UnpublishAdInput!) {\\r\\n unpublishAd(input: $input) {\\r\\n ad {\\r\\n id\\r\\n isPublish\\r\\n }\\r\\n }\\r\\n}\\r\\n\\r\\nmutation TransferAd($input: TransferAdInput!) {\\r\\n transferAd(input: $input) {\\r\\n ad {\\r\\n id\\r\\n isAdminOnly\\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[\"CreateAd\"] = oneQuery(doc, \"CreateAd\");\n \n module.exports[\"UpdateAd\"] = oneQuery(doc, \"UpdateAd\");\n \n module.exports[\"UpdateAdTranslation\"] = oneQuery(doc, \"UpdateAdTranslation\");\n \n module.exports[\"PublishAd\"] = oneQuery(doc, \"PublishAd\");\n \n module.exports[\"UnpublishAd\"] = oneQuery(doc, \"UnpublishAd\");\n \n module.exports[\"TransferAd\"] = oneQuery(doc, \"TransferAd\");\n \r\n"],"sourceRoot":""}