PageSourceSearch

https://member.gastrosuisse.ch/js/1112.d93cb1ea.js

js gastrosuisse.ch collected 2026-10-02 17:07:55 UTC 5,791 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkgs_memberPortal"]=self["webpackChunkgs_memberPortal"]||[]).push([[1112],{1112:function(e,t,s){s.r(t),s.d(t,{default:function(){return M}});var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("gs-wizard",{attrs:{title:e.title,steps:e.steps,"initialize-data":e.initializeData,"service-function":e.serviceFunction,"model-class":e.model,"to-on-complete":"/gs/shop/"}})},i=[],n=s(5471),o=s(6530),a=s(3006),d=s(8789);class c extends o.A{get orderReference(){return this.dto.orderReference}set orderReference(e){this.dto.orderReference=e}get paymentMethod(){return this.dto.paymentMethod}set paymentMethod(e){this.dto.paymentMethod=e}get acceptAgb(){return this.dto.acceptAgb}set acceptAgb(e){this.dto.acceptAgb=e}transformFromQuery(e){const t={};let s;Object.keys(e).forEach(s=>{t[s.toLowerCase()]=e[s]}),this.dto.orderReference=t.orderreference,s=Number.parseFloat(t.paymentmethod),s=Number.isNaN(s)?void 0:s,this.dto.paymentMethod=s,s="true"===t.acceptAgb||t.acceptagb,s="false"!==t.acceptAgb&&void 0,this.dto.acceptAgb=s}}class p extends c{}class u extends o.A{transformToDTO(){}transformFromDTO(){}getOrderReference(){if(n.A._.isEmpty(this.order.orderReference)){if(n.A._.isSet(this.invoiceAddress.firstName)&&n.A._.isSet(this.invoiceAddress.lastName))return`${this.invoiceAddress.lastName} ${this.invoiceAddress.firstName}`;if(n.A._.isSet(this.invoiceAddress.company))return this.invoiceAddress.company}return this.order.orderReference}get userId(){return this.dto.userId}set userId(e){this.dto.userId=e}get order(){return this.getObjectModel(()=>this.dto.order,p)}set order(e){this.setObjectModel(()=>this.dto.order,e)}get invoiceAddress(){return this.getObjectModel(()=>this.dto.invoiceAddress,d.A)}set invoiceAddress(e){this.setObjectModel(()=>this.dto.invoiceAddress,e)}get deliveryAddress(){return this.getObjectModel(()=>this.dto.deliveryAddress,a.A)}set deliveryAddress(e){this.setObjectModel(()=>this.dto.deliveryAddress,e)}}var l=s(3776),h=s(5041),m=s(1842),b={properties:{invoiceAddress:Object.assign({},h.A.properties({company:{type:"string"},salutation:{type:"number",required:!0},firstName:{type:"string",required:!0},lastName:{type:"string",required:!0},street:{type:"string",required:!0},houseNumber:{type:"string"},postalCode:{type:"string",required:!0},city:{type:"string",required:!0},eMail:{type:"string",required:!0,pattern:m.A.email},poBox:{type:"string"},additionalLine:{type:"string"},countryIso2:{type:"string",required:!0},phone:{type:"string",pattern:m.A.phone},mobilePhone:{type:"string",pattern:m.A.phone}}))}},g={properties:{deliveryAddress:Object.assign(Object.assign({},h.A.properties({isDifferent:{type:"boolean",required:!0},company:{type:"string"},salutation:{type:"number"},firstName:{type:"string"},lastName:{type:"string"},street:{type:"string"},houseNumber:{type:"string"},postalCode:{type:"string"},city:{type:"string"},eMail:{type:"string",pattern:m.A.email},poBox:{type:"string"},additionalLine:{type:"string"},countryIso2:{type:"string"},phone:{type:"string",pattern:m.A.phone},mobilePhone:{type:"string",pattern:m.A.phone}})),{allOf:[Object.assign(Object.assign({},h.A.if({isDifferent:!0})),h.A.thenRequired(["street","postalCode","city","countryIso2"])),Object.assign(Object.assign({},h.A.if({isDifferent:!0,isCompanySet:!0,isNameSet:!1})),h.A.thenRequired(["company"])),Object.assign(Object.assign({},h.A.if({isDifferent:!0,isCompanySet:!1,isNameSet:!0})),h.A.thenRequired(["salutation","firstName","lastName"])),Object.assign(Object.assign({},h.A.if({isDifferent:!0,isCompanySet:!0,isNameSet:!0})),h.A.thenRequired(["company","salutation","firstName","lastName"])),Object.assign(Object.assign({},h.A.if({isDifferent:!0,isCompanySet:!1,isNameSet:!1})),h.A.thenRequired(["salutation","firstName","lastName"]))]})}},y={properties:{order:Object.assign({},h.A.properties({orderReference:{type:"string"},paymentMethod:{type:"number",required:!0},acceptAgb:{type:"boolean",required:!0}}))}},A=Object.assign({},h.A.properties({})),f=Object.assign({},h.A.properties({})),v=n.A.extend({auth:!0,hasBackButton:!0,data:()=>({title:"shop.checkout.page.title",model:u,steps:[{breadcrumb:"shop.checkout.label.stepTitles.1",component:()=>s.e(3972).then(s.bind(s,3972)),schema:b,sendData:!1},{breadcrumb:"shop.checkout.label.stepTitles.2",component:()=>s.e(5322).then(s.bind(s,5322)),condition:e=>n.A.$service.api.memberships.getIsMember(),schema:g,sendData:!1},{breadcrumb:"shop.checkout.label.stepTitles.3",component:()=>s.e(5711).then(s.bind(s,5711)),schema:y,sendData:!1},{breadcrumb:"shop.checkout.label.stepTitles.4",component:()=>s.e(1114).then(s.bind(s,1114)),condition:e=>{var t;return(null===(t=null===e||void 0===e?void 0:e.order)||void 0===t?void 0:t.paymentMethod)===l.A.OnlinePayment},sendData:!1,schema:A},{breadcrumb:"shop.checkout.label.stepTitles.5",component:()=>s.e(3796).then(s.bind(s,3796)),sendData:!1,schema:f,clearProgressOnMounted:!0,disablePreviousSteps:!0}]}),computed:{contactId(){return this.$route.params.id}},async beforeMount(){if(await this.$auth.getUser(),this.$auth.isInRole("unverified")){const e=n.A.$config.values["auth-redirects-verify-user"];n.A.$routerUtils.redirect(e)}},methods:{async serviceFunction(e){}
1,async initializeData(){var e;const t=(new u).fromDTO({userId:null===(e=n.A.$auth.user)||void 0===e?void 0:e.id,invoiceAddress:{},deliveryAddress:{},order:{}}),s=this.$service.api.memberships.getIsMember();if(!s){const e=new a.A;e.isDifferent=!1,await this.$service.api.shopCheckout.updateDeliveryAddress(t.userId,e)}return t}}}),O=v,N=s(1656),j=(0,N.A)(O,r,i,!1,null,null,null),M=j.exports},3776:function(e,t){var s;(function(e){e[e["Invoice"]=1]="Invoice",e[e["OnlinePayment"]=2]="OnlinePayment"})(s||(s={})),t.A=s}}]);
2//# sourceMappingURL=1112.d93cb1ea.js.map

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.