PageSourceSearch

https://my.bod.se/assets/js/ServiceModule-ServiceModuleMixin.70886e36c50d76cbe7ee.chunk.js

js bod.se collected 2026-10-03 19:30:43 UTC 10,412 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkDashboard=self.webpackChunkDashboard||[]).push([[2491],{79386:(e,t,s)=>{s.a(e,(async e=>{s.r(t),s.d(t,{ServiceManager:()=>p,SimpleStepFormIndex:()=>l,SimpleStepFormFinal:()=>v,MultiStepFormIndex:()=>b,MultiStepFormOverview:()=>m,SimpleStepForm:()=>f,MultiStepForm:()=>g,reCaptcha:()=>k,default:()=>y});var i=s(46015),r=s(76610),o=s(21589),a=e([o]);function n(e,t,s,i,r,o,a){try{var n=e[o](a),c=n.value}catch(e){return void s(e)}n.done?t(c):Promise.resolve(c).then(i,r)}function c(e){return function(){var t=this,s=arguments;return new Promise((function(i,r){var o=e.apply(t,s);function a(e){n(o,i,r,a,c,"next",e)}function c(e){n(o,i,r,a,c,"throw",e)}a(void 0)}))}}function h(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function d(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?h(Object(s),!0).forEach((function(t){u(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):h(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function u(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}o=(a.then?await a:a)[0];var p={props:{serviceModule:Object},computed:{config:function(){return this.serviceModule.config()},service:function(){return this.serviceModule.$store.get("service")},bookProjectListType:function(){return this.config.bookProjectListType||null},isAuthorized:function(){return this.$store.getters.isAuthorized}},methods:{getServiceSession:function(){var e=this;if(this.service.id&&this.service.name)this.loading=!1;else{var t={service_type:this.config.key,mandant:i.vv},s="/v1/services";this.isAuthorized&&(s="/v1/me/services"),r.hi.post(s,t).then((function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data;e.setServiceSession({id:s.id,name:s.service_type}),e.loading=!1})).catch((function(e){console.error(e)}))}},getServiceData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.service.data&&0!==Object.keys(this.service.data).length)switch(e){case"BookProjectList":this.service.data.bookProject&&(this.productType=this.service.data.bookProject.type,this.selected=this.service.data.bookProject.data);break;case"Comment":this.service.data.message&&(this.message=this.service.data.message);break;case"PressPackage":this.service.data.pressPackage&&(this.message=this.service.data.pressPackage["message".concat(t)]);break;case"BookstoreList":this.service.data.bookstores&&(this.zip=this.service.data.bookstores.zip,this.selected=this.service.data.bookstores.selected);break;case"Phone":this.service.data.phone&&(this.phone=this.service.data.phone);break;case"Bookblock":this.service.data.bookblock&&(this.bookblock=this.service.data.bookblock);break;case"Vlbtix":this.service.data.vlbtix&&(this.vlbtix=this.service.data.vlbtix);break;case"Dropzone":this.service.data.upload&&(this.upload=this.service.data.upload)}},setServiceSession:function(e){this.serviceModule.$store.set("SET_SERVICE_SESSION_DATA",e)}}},l={mixins:[p],data:function(){return{type:5230,address:{gender:"",firstname:"",lastname:"",address:"",zip:"",city:"",country:"",phone:"",email:""},message:"",bookProject:{type:"new",data:{}},upload:{localStorage:!0,file:{name:"",type:"",size:"",image:"",complete:!1}},loading:!0}},computed:{isFileUploading:function(){return""!=this.upload.file.name&&0==this.upload.file.complete}},mounted:function(){this.getServiceSession()},methods:{setAddressData:function(e){this.address=d(d({},this.address),{gender:e.gender,firstname:e.firstname,lastname:e.lastname,address:e.address,zip:e.zip,city:e.city,country:e.country,phone:e.phone,email:e.email})},setCommentData:function(e){this.message=e},setDropzoneData:function(e){this.upload.file=e},submitForm:function(){var e=this;if(!this.recaptchaIsNotVerifyed()&&!this.isFileUploading){var t={bodNr:parseInt(this.bookProject.data.bodNr),projectId:parseInt(this.bookProject.data.projectId),objectId:parseInt(this.bookProject.data.objectId),ebook_only:this.ebook_only,gender:this.address.gender,firstName:this.address.firstname,lastName:this.address.lastname,address:this.address.address,zip:this.address.zip,city:this.address.city,country:this.address.country,phone:this.address.phone,email:this.address.email,message:this.message,finish_order:!0},s={type:this.service.name,id:this.service.id},i="/v1/services/{type}/{id}";this.isAuthorized&&(i="/v1/me/services/{type}/{id}"),r.hi.put(i,t,s).then((function(t){e.resetServiceData(),e.serviceModule.step("next")})).catch((function(e){console.error(e)}))}},resetServiceData:function(){this.serviceModule.$store.set("RESET_SERVICE_DATA")}}},v={props:{serviceModule:Object},mounted:function(){window.addEventListener("beforeunload",this.resetFinalStep)},methods:{resetFinalStep:function(){this.serviceModule.$store.set("SET_STEP",1)}}},b={mixins:[p],data:function(){return{type:5230,message:"",pressPackage:{},bookstores:{zip:"",selected:{}},phone:"",bookblock:"",vlbtix:{banner_template:"1",claim:"",usp1:"",usp2:"",usp3:"",website_contributor:"",website_book:"",facebook:"",instagram:"",twitter:"",youtube:"",other_channel:"",copyright:""},bookProject:{type:"new",data:{}},upload:{localStorage:!0,file:{name:"",type:"",size:"",image:"",complete:!1}},loading:!0}},computed:{isRegistrationCompleted:function(){return"REGISTRATION_COMPLETED"==this.$store.getters.user.accountStatus},isFileUploading:function(){return""!=this.upload.file.name&&0==this.upload.file.complete}}
1,mounted:function(){this.isRegistrationCompleted?this.getServiceSession():this.$router.push({name:"account"})},methods:{setCommentData:function(e){this.message=e},setPressPackageData:function(e){this.pressPackage["message".concat(e.index)]=e.message},setPhoneData:function(e){this.phone=e},setBookblockData:function(e){this.bookblock=e},setVlbtixData:function(e){this.vlbtix=e},setDropzoneData:function(e){this.upload.file=e,this.setServiceUploadData(this.upload)},submitForm:function(){var e=this;if(!this.isFileUploading){var t={bodNr:parseInt(this.bookProject.data.bodNr),projectId:parseInt(this.bookProject.data.projectId),objectId:parseInt(this.bookProject.data.objectId),phone:this.phone,message:this.message,banner_template:parseInt(this.vlbtix.banner_template),claim:this.vlbtix.claim,sales_information1:this.vlbtix.usp1,sales_information2:this.vlbtix.usp2,sales_information3:this.vlbtix.usp3,website_contributor:this.vlbtix.website_contributor,website_book:this.vlbtix.website_book,facebook:this.vlbtix.facebook,instagram:this.vlbtix.instagram,twitter:this.vlbtix.twitter,youtube:this.vlbtix.youtube,other_channel:this.vlbtix.other_channel,copyright:this.vlbtix.copyright};this.bookblock&&(t=d(d({},t),{buchblock:"Buchblockdesign-".concat(parseInt(this.bookblock))})),this.pressPackage&&(t=d(d({},t),{},{reading_audience:this.pressPackage.message1,buyer_motivation:this.pressPackage.message2,background_information:this.pressPackage.message3,publications:this.pressPackage.message4,media_contacts:this.pressPackage.message5,interviews:this.pressPackage.message6,cooperations:this.pressPackage.message7,readings:this.pressPackage.message8,aspects_of_interest:this.pressPackage.message9,press_vita:this.pressPackage.message10})),0!==this.bookstores.selected.length&&(t.bookstores=this.bookstores.selected);var s={type:this.service.name,id:this.service.id};r.hi.put("/v1/me/services/{type}/{id}",t,s).then((function(t){e.setServiceData({bookProject:e.bookProject,message:e.message,phone:e.phone,bookblock:e.bookblock,pressPackage:e.pressPackage,bookstores:e.bookstores,vlbtix:e.vlbtix,upload:e.upload}),e.serviceModule.step("next")})).catch((function(e){console.error(e)}))}},setServiceData:function(e){this.serviceModule.$store.set("SET_SERVICE_DATA",e)},setServiceUploadData:function(e){this.serviceModule.$store.set("SET_SERVICE_UPLOAD_DATA",e)}}},m={mixins:[p],data:function(){return{data:null,loading:!0,alertErrorMessage:"",isContractActual:!0}},mounted:function(){var e=this;return c(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getIsContractActual();case 2:e.isContractActual=t.sent,e.getOrderOverview();case 4:case"end":return t.stop()}}),t)})))()},methods:{getIsContractActual:function(){return c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.hi.get("/v1/me/contracts",{contractType:"base"}).then((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.data;return t.additionalData.baseContractIsUpToDate})));case 1:case"end":return e.stop()}}),e)})))()},getOrderOverview:function(){var e=this,t={type:this.service.name,id:this.service.id};r.hi.get("/v1/me/services/{type}/{id}",t).then((function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data;e.data=s,e.loading=!1})).catch((function(e){console.error(e)}))},submitAuthorContract:function(){return r.hi.post("/v1/me/contracts",{contractType:"AUTORENVERTRAG"})},submitForm:function(){var e=this;return c(regeneratorRuntime.mark((function t(){var s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isContractActual){t.next=3;break}return t.next=3,e.submitAuthorContract();case 3:s={finish_order:!0},i={type:e.service.name,id:e.service.id},r.hi.put("/v1/me/services/{type}/{id}",s,i).then((function(t){e.resetServiceData(),e.serviceModule.step("next")})).catch((function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.response,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.data;403==s.status&&"SERVICE_IS_ALREADY_ORDERED"==i.code&&(e.alertErrorMessage=e.$t("services.errors.orderedTwice"))}));case 6:case"end":return t.stop()}}),t)})))()},resetServiceData:function(){this.serviceModule.$store.set("RESET_SERVICE_DATA")}}},f={Index:l,Final:v},g={Index:b,Overview:m},k={data:function(){return{recaptchaVerify:!1,recaptchaError:!1}},methods:{recaptchaIsNotVerifyed:function(){if(!this.recaptchaVerify)return this.recaptchaError=!0,!0}}};const y={ServiceManager:p,SimpleStepForm:f,MultiStepForm:g,reCaptcha:k}}))}}]);

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.