PageSourceSearch

https://mobilithek.info/assets/MarketplaceOfferContact-Cit72Iex.js

js mobilithek.info collected 2026-10-02 05:03:53 UTC 6,320 bytes, 1 lines download raw bytes

1import{s as y,cu as m,fc as E,fd as S,E as A,dM as _,eu as F,o as $,a7 as w,a9 as p,r as g,R as i,f as x,a as L,b as M,d as v,n as b}from"./index-ChSLynr4.js";import{A as R}from"./AppBreadcrumbs-B9e6ow05.js";import{v as d,c as k}from"./ValidationUtils-DMWQzUT1.js";import{A as T}from"./AppFormFrame-COS5un4n.js";import{A as P}from"./AppForm-CR-iQKQv.js";import{C as D}from"./ContactSupportMessage-DTGQwSTM.js";import{O as N}from"./OfferService-CGwN8qO2.js";import{H as h}from"./HttpStatusCode-DcFhi7I7.js";import{A as q}from"./AppLoadingTile-CFxg1aa0.js";import"./StringUtils-CMeKVQbU.js";import"./FileUtils-CMUAZTTL.js";import"./RequestUtils-BYX7BqyI.js";import"./mdp-ui-kit.common-DBredVY1.js";import"./vue.runtime.esm-CL8Ml0hl.js";import"./AppFormFieldset-olBVvfgg.js";import"./AppFormRow-D7f_4zzY.js";import"./AppSelect-B-pRIMo_.js";import"./AppSpinner-CYP1qSJY.js";var I=Object.defineProperty,K=Object.getOwnPropertyDescriptor,u=(o,e,t,r)=>{for(var s=r>1?void 0:r?K(e,t):e,c=o.length-1,f;c>=0;c--)(f=o[c])&&(s=(r?f(e,t,s):f(s))||s);return r&&s&&I(e,t,s),s};let n=class extends A{get isOfferHarvested(){var o;return!!((o=this.offer)!=null&&o.harvested)}async sendContactMessage(o){if(!this.topic)throw new Error("Topic is not selected");if(!_.profile)throw new Error("User should be authenticated");this.isLoading=!0;const e={recipient:this.recipient,topic:`${F.t(this.topic,$.EN)}`,message:this.message,language:_.profile.language};try{await w.sendMessageConcerningOffer(o,e),p.addSuccess("contactRequestSuccess"),this.resetState()}catch(t){throw p.addError("contactRequestError"),t}finally{this.isLoading=!1}}async getOffer(o){var e,t;this.isLoading=!0;try{this.offer=await N.getOfferEssentials(o),this.isOfferHarvested&&await g.push({name:i.MARKETPLACE_HOME})}catch(r){if(x.isAxiosError(r)&&(((e=r.response)==null?void 0:e.status)===h.NOT_FOUND||((t=r.response)==null?void 0:t.status)===h.FORBIDDEN)){p.addError("dataOfferNotFound"),await g.push({name:i.MARKETPLACE_HOME});return}throw r}finally{this.isLoading=!1}}};u([M],n.prototype,"sendContactMessage",1);u([M],n.prototype,"getOffer",1);n=u([L({generateMutationSetters:!0})],n);const a=new n({state:{isLoading:!1,topic:null,recipient:null,topicOptions:m(S),recipientOptions:m(E),message:"",offer:null},store:y,name:"offerContact"}),O=v({name:"MarketplaceOfferContactForm",components:{AppFormFrame:T,AppForm:P,ContactSupportMessage:D,AppLoadingTile:q},props:{offerId:{type:String,required:!0}},data(){return{offerContactModule:a}},computed:{isFormDisabled(){return this.$v.$error||a.isLoading},validator(){return k(this.$v.offerContactModule)}},validations(){return{offerContactModule:{topic:{required:d.required},message:{required:d.required},recipient:{required:d.required}}}},destroyed(){a.resetState()},methods:{async sendMessage(){this.$v.$touch(),!this.isFormDisabled&&(await a.sendContactMessage(this.offerId),a.resetState(),this.$v.$reset())}}});var l={en:{title:"Contact",titleDescription:"For contacting the data providing organisation or the user support please fill in the following formular.",sendMessage:"Send Message",contactMessageSubtitle:"Please choose the recipient of the message and enter the message details. If you wish to report a specific technical problem, please provide a description of the error, including the exact time the problem occurred."},de:{title:"Kontakt",titleDescription:"Um mit dem Datenanbieter oder mit der Nutzerbetreuung Kontakt aufzunehmen, füllen Sie bitte das folgende Formular aus.",sendMessage:"Nachricht senden",contactMessageSubtitle:"Bitte wählen Sie den Empfänger der Nachricht und geben Sie die Nachricht ein. Wenn Sie ein bestimmtes technisches Problem melden möchten, geben Sie bitte eine Beschreibung des Fehlers sowie den genauen Zeitpunkt des Auftretens des Problems an."}};const B=l;l.en;l.de;function C(o){const e=o.options||o;e.__i18n=e.__i18n||[],e.__i18n.push(JSON.stringify(B))}var H=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"marketplace-offer-contact-form"},[t("div",{staticClass:"container"},[t("AppFormFrame",{staticClass:"marketplace-offer-contact-form__frame"},[t("AppForm",{staticClass:"marketplace-offer-contact-form__form",attrs:{novalidate:""},on:{submit:e.sendMessage},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("title"))+" ")]},proxy:!0},{key:"head",fn:function(){return[t("p",{staticClass:"marketplace-offer-contact-form__title-description"},[e._v(" "+e._s(e.$t("titleDescription"))+" ")])]},proxy:!0},{key:"footer",fn:function(){return[t("button",{staticClass:"marketplace-offer-contact-form__send-message button button--primary",attrs:{type:"submit",disabled:e.isFormDisabled}},[e._v(" "+e._s(e.$t("sendMessage"))+" ")])]},proxy:!0}])},[e.offerContactModule.isLoading?t("AppLoadingTile",[e._v(" "+e._s(e.$t("generalFormLoadingText"))+" ")]):e._e(
1),t("ContactSupportMessage",{attrs:{topic:e.offerContactModule.topic,recipient:e.offerContactModule.recipient,message:e.offerContactModule.message,"recipient-options":e.offerContactModule.recipientOptions,"topic-options":e.offerContactModule.topicOptions,validator:e.validator},on:{"update:topic":function(r){return e.$set(e.offerContactModule,"topic",r)},"update:recipient":function(r){return e.$set(e.offerContactModule,"recipient",r)},"update:message":function(r){return e.$set(e.offerContactModule,"message",r)}},scopedSlots:e._u([{key:"description",fn:function(){return[e._v(" "+e._s(e.$t("contactMessageSubtitle"))+" ")]},proxy:!0}])})],1)],1)],1)])},U=[];typeof C=="function"&&C(O);var z=b(O,H,U,!1,null,"fa6bf6bb");const j=z.exports,V=v({name:"MarketplaceOfferContact",components:{AppBreadcrumbs:R,MarketplaceOfferContactForm:j},props:{offerId:{type:String,required:!0}},data(){return{breadcrumbs:[i.MARKETPLACE_RESULTS,i.MARKETPLACE_OFFER,i.MARKETPLACE_OFFER_CONTACT]}},created(){a.getOffer(this.offerId)},destroyed(){a.resetState()}});var J=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"marketplace-offer-contact"},[t("AppBreadcrumbs",{staticClass:"marketplace-offer-contact__breadcrumbs",attrs:{items:e.breadcrumbs}}),t("MarketplaceOfferContactForm",{staticClass:"marketplace-offer-contact__form",attrs:{"offer-id":e.offerId}})],1)},W=[],Z=b(V,J,W,!1,null,"e2408a47");const me=Z.exports;export{me as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.