1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5303],{82691:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var a=s(92891),n=s(22358),o=s(78203),i=s(91322);function r(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}function l(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?r(Object(s),!0).forEach((function(t){c(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function c(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const p={name:"br-my-order",mixins:[n.Z,o.Z],data:function(){return{showDetails:!1,showTrackingHistory:null,showTracking:!1,showDenyApproval:!1,processDenyApproval:!1,showReleaseNow:!1,processReleaseNow:!1,showReleaseAdminsDetails:!1,defaultLabels:{orderDate:"Order Date",orderNumber:"Order Number",positionCount:"Pos./Articles",invoiceGrossPrice:"Invoice Price",billingAddress:"Billing Address",shippingAddress:"Shipping Address",billingAndShippingAddress:"Billing & Shipping Address",paymentMethod:"Payment Method",shippingMethod:"Shipping Method",shippingGrossPrice:"Shipping Price",actions:{releaseNow:{label:"Release now!",title:"Release this order now",icon:"check-circle"},denyApproval:{label:"Deny Approval",title:"Deny Approval",icon:"ban"}
1,showDetails:{label:"Show Details",title:"Show Positions and all Details of Order",icon:"eye"},editDetails:{label:"Edit Details",title:"Show/Edit Positions and all Details of Order",icon:"pencil-alt"},hideDetails:{label:"Hide Details",title:"Hide Positions and all Details of Order",icon:"eye"},initiateRevocation:{label:"Widerruf einleiten",title:"Widerrufsformular für diese Bestellung aufrufen",icon:"undo"},requestReturn:{label:"Rücksendung beantragen",title:"Rücksendeformular für diese Bestellung aufrufen",icon:"undo"}}}}},watch:{"compData.positions":{deep:!0,handler:function(){this.updateByPositions()}},"compData.new_comment":{deep:!0,handler:function(){this.updateByPositions()}},"compData.new_custom_order_number":{deep:!0,handler:function(){this.updateByPositions()}},"compData.new_shipping_address":{deep:!0,handler:function(){this.updateByPositions()}}},props:{isCustomerAdmin:{type:Boolean,default:!1},mayAdminOrders:{type:Boolean,default:!1},mayAdminReleaseOrders:{type:Boolean,default:!1},mayAdminEditOrders:{type:Boolean,default:!1},mayAdminEditAddresses:{type:Boolean,default:!1},mayAdminMergeOrders:{type:Boolean,default:!1},my:{default:null},data:{type:Object,default:null},orderType:{type:String,default:"release"},labels:{type:Object,default:null},salutations:{type:[Array,Object],default:null},titles:{type:[Array,Object],default:null},countries:{type:[Array,Object],default:null},mb:{type:Number,default:12}},computed:l(l(l({},(0,i.mapGetters)("appStore",{isB2b:"isB2b"})),(0,i.mapGetters)("shop",{getFormsOptions:"getFormsOptions"})),{},{compFormsReturnsActive:function(){return this.getFormsOptions&&!1!==this.getFormsOptions.formsReturnsActive},compLabels:function(){return(0,a.merge)({},this.defaultLabels,this.labels)},compIsCustomerAdmin:function(){return this.isCustomerAdmin},compMayAdminOrders:function(){return this.mayAdminOrders},compMayAdminReleaseOrders:function(){return this.mayAdminReleaseOrders},compMayAdminEditOrders:function(){return this.mayAdminEditOrders},compMayAdminEditAddresses:function(){return this.mayAdminEditAddresses},compMayAdminMergeOrders:function(){return this.mayAdminMergeOrders},compSalutations:function(){return this.salutations},compTitles:function(){return this.titles},compCountries:function(){return this.countries},compData:function(){return this.data},compId:function(){return this.compData&&this.compData.id?this.compData.id:null},compOrderNumberLabel:function(){return this.compData&&this.compData.order_number_label?this.compData.order_number_label:null},compOrderDate:function(){return this.compData&&this.compData.ordered_at?this.compData.ordered_at:null},compWorkflowState:function(){return this.compData&&this.compData.workflowState?this.compData.workflowState:null},compWorkflowStateLabel:function(){return this.compWorkflowState&&this.compLabels&&this.compLabels.workflowStates?"sendToBueroring"===this.compWorkflowState||"sendToBueroringDealerShop"===this.compWorkflowState||"sendToOpenTrans"===this.compWorkflowState?this.compLabels.workflowStates.approved:void 0!==this.compLabels.workflowStates[this.compWorkflowState]?this.compLabels.workflowStates[this.compWorkflowState]:this.compLabels.workflowStates.undefined:this.compLabels.workflowStates.undefined},compDisplayInvoiceGrossPrice:function(){return this.compData&&this.compData.display_invoice_gross_price?this.compData.display_invoice_gross_price:null},compNewDisplayInvoiceGrossPrice:function(){return this.compData&&this.compData.new_display_invoice_gross_price?this.compData.new_display_invoice_gross_price:null},compPositionCount:function(){return this.compData&&this.compData.position_count?this.compData.position_count:null},compArticleCount:function(){return this.compData&&this.compData.article_count?this.compData.article_count:null},compCount:function(){return this.compPositionCount+"/"+this.compArticleCount},compBillingAddress:function(){return this.compData&&this.compData.billing_address?this.compData.billing_address:null},compShippingAddress:function(){return this.compData&&this.compData.shipping_address?this.compData.shipping_address:null},compEditableShippingAddress:function(){return this.compData?this.compData.new_shipping_address?this.compData.new_shipping_address:this.compData.shipping_address||{}:{}},identicalAddresses:function(){return!(!this.compBillingAddress||!this.compShippingAddress||this.compShippingAddress.id!==this.compBillingAddress.id)},compPaymentMethod:function(){return this.compData&&this.compData.payment_method_data?this.compData.payment_method_data:null},compShippingMethod:function(){return this.compData&&this.compData.shipping_method_data?this.compData.shipping_method_data:null},compShippingGrossPrice:function(){return this.compData&&this.compData.display_shipping_gross_price?this.compData.display_shipping_gross_price:null},compIsMigratedData:function(){return this.compData&&this.compData.migrated_data?this.compData.migrated_data:null},compComment:function(){return this.compData&&this.compData.comment?this.compData.comment:null},compCostCenterSlug:function(){return this.compData&&this.compData.cost_center_slug?this.compData.cost_center_slug:null},compCostCenterData:function(){return this.compData&&this.compData.cost_center_data?this.compData.cost_center_data:null},compOfferNumber:function(){return this.compData&&this.compData.order_number?this.compData.order_number:null}
1,compCustomOrderNumber:function(){return this.compData&&this.compData.custom_order_number?this.compData.custom_order_number:null},compCustomerNumber:function(){return this.compData&&this.compData.customer_number?this.compData.customer_number:null},compCustomerName:function(){return this.compData&&this.compData.customer_name?this.compData.customer_name:null},compNeedRelease:function(){return this.compData&&this.compData.need_release?this.compData.need_release:null},compNeedReleaseCount:function(){return this.compData&&this.compData.need_release_count?this.compData.need_release_count:null},compHasDeletedArticles:function(){var e=!1;return this.compData&&this.compData.positions&&this.compData.positions.length&&this.compData.positions.forEach((function(t){t.new_deleted&&!0===t.new_deleted&&(e=!0)})),e},compPartialShippingAllowed:function(){return this.compData&&this.compData.partial_shipping_allowed?this.compData.partial_shipping_allowed:null},compOrderUserData:function(){return this.compIsCustomerAdmin&&this.compData&&void 0!==this.compData.order_user_data&&this.compData.order_user_data?this.compData.order_user_data:null},compOrderUserName:function(){return this.compOrderUserData&&void 0!==this.compOrderUserData.name&&this.compOrderUserData.name?this.compOrderUserData.name:null},compOrderUserEmail:function(){return this.compOrderUserData&&void 0!==this.compOrderUserData.email&&this.compOrderUserData.email?this.compOrderUserData.email:null},compOrderUserNumber:function(){return this.compOrderUserData&&void 0!==this.compOrderUserData.number&&this.compOrderUserData.number?this.compOrderUserData.number:null},compOrderPerson:function(){return this.compOrderUserData&&void 0!==this.compOrderUserData.person&&this.compOrderUserData.person?this.compOrderUserData.person:null},compOrderPersonFullName:function(){return this.compOrderPerson&&void 0!==this.compOrderPerson.full_name&&this.compOrderPerson.full_name?this.compOrderPerson.full_name:null},compOrderActionReason:function(){return this.compData&&void 0!==this.compData.order_action_reason&&this.compData.order_action_reason?this.compData.order_action_reason:null},compNeedReleaseByUsers:function(){return this.compData&&void 0!==this.compData.need_release_by_users&&this.compData.need_release_by_users?this.compData.need_release_by_users:null},compReleaseAdmins:function(){if(!this.compNeedReleaseByUsers||!this.compNeedReleaseByUsers.length)return null;var e=this.buildReleaseAdminsList(this.compNeedReleaseByUsers);return e.length?e:null},compReleaseAdminsPreview:function(){return this.compReleaseAdmins&&this.compReleaseAdmins.length?this.compReleaseAdmins.slice(0,3):[]},compReleaseAdminsMoreCount:function(){return this.compReleaseAdmins&&this.compReleaseAdmins.length&&this.compReleaseAdmins.length>3?this.compReleaseAdmins.length-3:0},compMy:function(){return(0,a.merge)({},this.my)},compAllCostCenters:function(){return this.compMy&&void 0!==this.compMy.costCenters&&this.compMy.costCenters?this.compMy.costCenters:null},compAllCustomerAdmins:function(){return this.compMy&&void 0!==this.compMy.customerAdmins&&this.compMy.customerAdmins?this.compMy.customerAdmins:null},compReleaseAllAdmins:function(){if(!this.compAllCustomerAdmins||!this.compAllCustomerAdmins.length)return null;var e=this.buildReleaseAdminsList(this.compAllCustomerAdmins);return e.length?e:null},compReleaseAllAdminsPreview:function(){return this.compReleaseAllAdmins&&this.compReleaseAllAdmins.length?this.compReleaseAllAdmins.slice(0,3):[]},compReleaseAllAdminsMoreCount:function(){return this.compReleaseAllAdmins&&this.compReleaseAllAdmins.length&&this.compReleaseAllAdmins.length>3?this.compReleaseAllAdmins.length-3:0},classes:function(){var e={"br-my-order":!0,"br-interface":"approvalRefused"!==this.compData.status&&"canceled"!==this.compData.status&&"approved"!==this.compData.status&&"shipped"!==this.compData.status&&"completed"!==this.compData.status&&"sendToBueroring"!==this.compData.status&&"sendToOpenTrans"!==this.compData.status,"bg-danger-lightest":"approvalRefused"===this.compData.status||"canceled"===this.compData.status,"bg-success-lightest":"approved"===this.compData.status||"shipped"===this.compData.status||"completed"===this.compData.status||"sendToBueroring"===this.compData.status||"sendToOpenTrans"===this.compData.status,relative:!0,"w-full":!0,border:!0};return(0,a.merge)(this.marginClasses,this.paddingClasses,e)},headerClasses:function(){return{relative:!0,"bg-interface":"approvalRefused"!==this.compData.status&&"canceled"!==this.compData.status&&"approved"!==this.compData.status&&"shipped"!==this.compData.status&&"completed"!==this.compData.status&&"sendToBueroring"!==this.compData.status&&"sendToOpenTrans"!==this.compData.status,"bg-danger-lightest":"approvalRefused"===this.compData.status||"canceled"===this.compData.status,"bg-success-lightest":"approved"===this.compData.status||"shipped"===this.compData.status||"completed"===this.compData.status||"sendToBueroring"===this.compData.status||"sendToOpenTrans"===this.compData.status,"w-full":!0,flex:!0,"flex-wrap":!0,"flex-row":!0,"justify-between":!0,"items-center":!0,"items-stretch":!0,"md:items-center":!0,"gap-y-2":!0,"px-4":!0,"py-2":!0}},header2Classes:function(){return{relative:!0,"w-full":!0,flex:!0,"flex-wrap":!0,"justify-between":!0,"items-center":!0,"px-4":!0,"md:px-6":!0,"py-4":!0,"bg-interface-lighter":!0,"border-t":!0,"text-sm":!0}},addressClasses:function(){return{relative:!0,"w-full":!0,flex:!0,"flex-wrap":!0,"justify-between":!0,"gap-x-6":!0,"gap-y-3":!0,"px-4":!0,"md:px-6":!0,"pt-2":!0,"pb-3":!0,"bg-interface-lighter":!0,"text-sm":!0}},contentClasses:function(){return{relative:!0,"w-full":!0,"px-4":!0,"py-4":!0}},labelClasses:function(){return{"text-xs":!0,uppercase:!0}}
1,buttonClasses:function(){return{"br-btn":!0,"br-btn--secondary":!0,"br-btn--flat":!0,"br-btn--sm":!0,"br-btn--label":!0,relative:!0}},buttonSuccessClasses:function(){return{"br-btn":!0,"br-btn--success":!0,"br-btn--flat":!0,"br-btn--sm":!0,"br-btn--label":!0,relative:!0}},buttonDenyClasses:function(){return{"br-btn":!0,"br-btn--danger-fill":!0,"br-btn--flat":!0,"br-btn--sm":!0,"br-btn--label":!0,relative:!0}},buttonEditClasses:function(){return{"br-btn":!0,"br-btn--secondary":!0,"br-btn--flat":!0,"br-btn--sm":!0,"br-btn--label":!0,relative:!0}}}),methods:l({prepareComponent:function(){this.compHasDeletedArticles&&(this.showDetails=!0)},scrollToAnchor:function(e){this.$root.$emit("scroll","#anchor-"+e+"-"+this._uid,250)},toggleShowDetails:function(){this.showDetails=!this.showDetails,!0===this.showDetails&&this.scrollToAnchor("positions")},toggleShowTracking:function(){this.showTracking=!this.showTracking},toggleReleaseAdminsDetails:function(){this.showReleaseAdminsDetails=!this.showReleaseAdminsDetails},displayTrackingHistory:function(e){this.showTrackingHistory=e},hideTrackingHistory:function(){this.showTrackingHistory=null},denyApproval:function(){this.showReleaseNow=!1,this.showDenyApproval=!0},releaseNow:function(){this.showDenyApproval=!1,this.showReleaseNow=!0},closeDenyApproval:function(){this.showDenyApproval=!1},closeReleaseNow:function(){this.showReleaseNow=!1},buildReleaseAdminsList:function(e){if(!e||!e.length)return[];var t=[];return(0,a.each)(e,(function(e){var s="",a="";e.person&&(e.person.person_salutation&&e.person.person_salutation.display_name&&e.person.person_salutation.display_name.length&&(""!==a&&(a+=" "),a+=e.person.person_salutation.display_name),e.person.firstname&&e.person.firstname.length&&(""!==a&&(a+=" "),a+=e.person.firstname),e.person.lastname&&e.person.lastname.length&&(""!==a&&(a+=" "),a+=e.person.lastname)),a&&a.length?s+=a:e.name&&e.name.length&&(s+=e.name),s&&""!==s&&t.push({label:s,email:e.email&&e.email.length?e.email:null})})),t},onDenyApproval:function(e){e.preventDefault(),this.processReleaseNow=!1,this.processDenyApproval=!0,this.denyOrderApproval({setLoading:!0,params:{page:this.page,limit:this.limit,data:this.compData,_func:"denyOrderApproval"},onSuccess:this.onDenySuccess,onError:this.onDenyError})},onDenySuccess:function(e){e&&(this.processDenyApproval=!1,this.showDenyApproval=!1,this.$parent.loadData(),this.$root.onScroll())},onDenyError:function(e){this.loading=!1,this.processDenyApproval=!1,this.showDenyApproval=!1,this.$parent.loadData(),this.$root.onScroll()},onReleaseNow:function(e){e.preventDefault(),this.processDenyApproval=!1,this.processReleaseNow=!0,this.releaseOrderNow({setLoading:!0,params:{page:this.page,limit:this.limit,data:this.compData,_func:"releaseOrderNow"},onSuccess:this.onReleaseSuccess,enError:this.onReleaseError})},onReleaseSuccess:function(e){e&&(this.processReleaseNow=!1,this.showReleaseNow=!1,this.$parent.loadData(),this.$root.onScroll())},onReleaseError:function(e){this.loading=!1,this.processReleaseNow=!1,this.showReleaseNow=!1,this.$parent.loadData(),this.$root.onScroll()},onDownloadPdf:function(e){this.getOrderPdf({setLoading:!0,params:{data:this.compData,_func:"downloadPdf"},onSuccess:this.onPdfDownloadSuccess,onError:this.onPdfDownloadError})},onPdfDownloadSuccess:function(e){var t=document.createElement("a");t.download=e.fileName,t.href="data:application/pdf;base64,"+e.pdfData,document.body.appendChild(t),t.click(),document.body.removeChild(t)},onPdfDownloadError:function(e){},formatCurrency:function(e){if(!e)return null;parseFloat(e);return(e=e.toFixed(2)).toString().replace(".",",")+" €"},formatNumber:function(e){if(!e)return null;parseFloat(e);return(e=e.toFixed(2)).toString()},updatePositionCostCenters:function(e){var t=this;this.compData.new_cost_center_slug&&this.compData.new_cost_center_slug.length&&"- ohne Kostenstelle -"!==this.compData.new_cost_center_slug&&(0,a.each)(this.compData.positions,(function(e){e.new_costCenter=t.compData.new_cost_center_slug})),"- ohne Kostenstelle -"===this.compData.new_cost_center_slug&&(0,a.each)(this.compData.positions,(function(e){e.new_costCenter=e.costCenter}))},updateByPositions:function(){var e,t="",s=0,n=0,o=this,i=[];if(this.compData.new_comment&&this.compData.new_comment.length&&this.compData.comment&&this.compData.comment.length?t+='<li>Kommentar Bestellung von "'+this.compData.comment+'" in "'+this.compData.new_comment+'" geändert.</li>':this.compData.new_comment&&""!==this.compData.new_comment||!this.compData.comment||!this.compData.comment.length?this.compData.new_comment&&this.compData.new_comment.length&&(t+='<li>Kommentar Bestellung hinzugefügt: "'+this.compData.new_comment+'".</li>'):t+="<li>Kommentar Bestellung entfernt.</li>",this.compData.new_custom_order_number&&this.compData.new_custom_order_number.length&&this.compData.custom_order_number&&this.compData.custom_order_number.length?t+='<li>Interne Bestell-Nr. von "'+this.compData.custom_order_number+'" in "'+this.compData.new_custom_order_number+'" geändert.</li>':this.compData.new_custom_order_number&&""!==this.compData.new_custom_order_number||!this.compData.custom_order_number||!this.compData.custom_order_number.length?this.compData.new_custom_order_number&&this.compData.new_custom_order_number.length&&(t+='<li>Interne Bestell-Nr. hinzugefügt: "'+this.compData.new_custom_order_number+'".</li>'):t+="<li>Interne Bestell-Nr. entfernt.</li>",this.compData.new_shipping_address&&this.compData.shipping_address){var r=this.compData.shipping_address,l=this.compData.new_shipping_address;(0,a.each)([{key:"name1",label:"Firma 1"},{key:"name2",label:"Firma 2"},{key:"firstname",label:"Vorname"},{key:"lastname",label:"Nachname"},{key:"streetname",label:"StraÃe"},{key:"buildingnumber",label:"Nr."},{key:"zip",label:"PLZ"},{key:"city",label:"Ort"},{key:"country_code",label:"Land"}],(function(e){var s=(r[e.key]||"").toString().trim(),a=(l[e.key]||"").toString().trim();if(s!==a){var n=s,i=a;"country_code"===e.key&&(n=s&&o.compCountries&&o.compCountries[s]?o.
1compCountries[s]:s,i=a&&o.compCountries&&o.compCountries[a]?o.compCountries[a]:a),s&&a?t+="<li>Lieferadresse "+e.label+': von "'+n+'" in "'+i+'" geändert.</li>':!s&&a?t+="<li>Lieferadresse "+e.label+': "'+i+'" hinzugefügt.</li>':s&&!a&&(t+="<li>Lieferadresse "+e.label+": entfernt.</li>")}}))}(0,a.each)(this.compData.positions,(function(e){!0===e.new_deleted&&(t+="<li>"+e.articleNumber+": gelöscht.</li>"),!0!==e.new_deleted&&parseFloat(e.quantity)!==parseFloat(e.new_quantity)&&(t+="<li>"+e.articleNumber+': Menge von "'+e.quantity+'" in "'+e.new_quantity+'" geändert.</li>',e.displaySumQuantity=o.formatNumber(parseFloat(e.new_quantity))+" "+e.unit),!0!==e.new_deleted&&e.costCenter!==e.new_costCenter&&(e.new_costCenter&&e.new_costCenter.length&&"- ohne Kostenstelle -"!==e.new_costCenter&&e.costCenter&&e.costCenter.length?t+="<li>"+e.articleNumber+': Kostenstelle von "'+e.costCenter+'" in "'+e.new_costCenter+'" geändert.</li>':e.new_costCenter&&""!==e.new_costCenter||!e.costCenter||!e.costCenter.length?e.new_costCenter&&e.new_costCenter.length&&"- ohne Kostenstelle -"!==e.new_costCenter&&(t+="<li>"+e.articleNumber+': Kostenstelle hinzugefügt: "'+e.new_costCenter+'".</li>'):t+="<li>"+e.articleNumber+": Kostenstelle entfernt.</li>"),!0!==e.new_deleted&&e.offerNumber!==e.new_offerNumber&&(t+="<li>"+e.articleNumber+': Angebot von "'+e.offerNumber+'" in "'+e.new_offerNumber+'" geändert.</li>'),!0!==e.new_deleted&&e.hint!==e.new_hint&&(e.new_hint&&e.new_hint.length&&e.hint&&e.hint.length?t+="<li>"+e.articleNumber+': Notiz von "'+e.hint+'" in "'+e.new_hint+'" geändert.</li>':e.new_hint&&""!==e.new_hint||!e.hint||!e.hint.length?e.new_hint&&e.new_hint.length&&(t+="<li>"+e.articleNumber+': Notiz hinzugefügt: "'+e.new_hint+'".</li>'):t+="<li>"+e.articleNumber+": Notiz entfernt.</li>"),!0!==e.new_deleted&&(s+=e.new_price.net_price,n+=e.new_price.gross_price,void 0!==i[e.taxRate.id]&&i[e.taxRate.id]?i[e.taxRate.id].sum+=e.new_price.tax_price:i[e.taxRate.id]={displayName:e.taxRate.display_name,id:e.taxRate.id,slug:e.taxRate.slug,sum:e.new_price.tax_price,tax:e.taxRate.tax})})),e=n-s,this.compData.new_net_price=s,this.compData.new_gross_price=n,this.compData.new_tax_price=e,this.compData.new_display_net_price=this.formatCurrency(this.compData.new_net_price),this.compData.new_display_gross_price=this.formatCurrency(this.compData.new_gross_price),this.compData.new_display_tax_price=this.formatCurrency(this.compData.new_tax_price),this.compData.new_totals.net_price=this.compData.new_net_price,this.compData.new_totals.gross_price=this.compData.new_gross_price,this.compData.new_totals.tax_price=this.compData.new_tax_price,this.compData.new_totals.display_net_price=this.compData.new_display_net_price,this.compData.new_totals.display_gross_price=this.compData.new_display_gross_price,this.compData.new_totals.display_tax_price=this.compData.new_display_tax_price,(0,a.each)(this.compData.new_shipping_positions,(function(e){e.valueOfGoods=o.compData.new_totals.net_price,e.untilValueOfGoods&&(o.compData.new_totals.net_price+=e.net_price,o.compData.new_totals.gross_price+=e.gross_price,o.compData.new_totals.tax_price+=o.compData.new_totals.gross_price-o.compData.new_totals.net_price)}));var c=0;(0,a.each)(this.compData.new_tax_positions,(function(e){if(void 0!==i[e.id]&&i[e.id]){var t=parseFloat(i[e.id].sum);e.sum=o.formatCurrency(t),c+=t}})),this.compData.new_invoice_net_price=this.compData.new_net_price,this.compData.new_invoice_gross_price=this.compData.new_gross_price,this.compData.new_invoice_tax_price=this.compData.new_invoice_gross_price-this.compData.new_invoice_net_price,this.compData.new_display_invoice_net_price=this.formatCurrency(this.compData.new_invoice_net_price),this.compData.new_display_invoice_gross_price=this.formatCurrency(this.compData.new_invoice_gross_price),this.compData.new_display_invoice_tax_price=this.formatCurrency(this.compData.new_invoice_tax_price),this.compData.new_totals.tax_positions=this.compData.new_tax_positions,this.compData.new_totals.tax_price=c,this.compData.new_totals.invoice_net_price=this.compData.new_invoice_net_price,this.compData.new_totals.invoice_gross_price=this.compData.new_invoice_gross_price,this.compData.new_totals.invoice_tax_price=this.compData.new_invoice_tax_price,this.compData.new_totals.display_invoice_net_price=this.compData.new_display_invoice_net_price,this.compData.new_totals.display_invoice_gross_price=this.compData.new_display_invoice_gross_price,this.compData.new_totals.display_invoice_tax_price=this.compData.new_display_invoice_tax_price,t&&t.length?this.compData.release_updates="<ul>"+t+"</ul>":this.compData.release_updates=null}},(0,i.mapActions)("shop",{denyOrderApproval:"denyOrderApproval",releaseOrder
1Now:"releaseOrderNow",getOrderPdf:"getOrderPdf"}))};const m=(0,s(51900).Z)(p,(function(){var e=this,t=e._self._c;return t("div",{class:e.classes},[t("div",{staticClass:"grid grid-cols-[1fr_auto] md:grid-cols-[auto_1fr_auto] grid-rows-[auto_auto] md:grid-rows-1 gap-x-3 gap-y-3 md:gap-0",class:e.headerClasses},[t("div",{staticClass:"flex flex-col md:mr-4 order-number-cell"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.orderNumber)}}),e._v(" "),t("span",[t("span",{staticClass:"font-bold br-main-button-link",domProps:{innerHTML:e._s(e.compOrderNumberLabel)}}),e._v(" "),t("span",{staticClass:"font-bold",domProps:{innerHTML:e._s("("+e.compId+")")}})])]),e._v(" "),t("div",{staticClass:"flex flex-wrap justify-end items-center md:justify-self-end md:order-3 order-buttons-cell",attrs:{id:"anchor-positions-"+e._uid}},[e.showDetails?t("div",{staticClass:"pl-0 pr-2 pb-0 md:pl-2 md:pb-2"},[t("button",{class:e.buttonClasses,attrs:{type:"button",title:e.compLabels.actions.hideDetails.title},on:{click:e.toggleShowDetail
1s}},[t("br-icon",{attrs:{icon:e.compLabels.actions.hideDetails.icon}}),e._v(" "),t("span",{staticClass:"hidden md:inline",domProps:{innerHTML:e._s(e.compLabels.actions.hideDetails.label)}})],1)]):t("div",{staticClass:"pl-0 pr-2 pb-0 md:pl-2 md:pb-2"},[e.compIsCustomerAdmin&&e.mayAdminEditOrders&&"release"===e.orderType?t("button",{class:e.buttonEditClasses,attrs:{type:"button",title:e.compLabels.actions.editDetails.title},on:{click:e.toggleShowDetails}},[t("br-icon",{attrs:{icon:e.compLabels.actions.editDetails.icon}}),e._v(" "),t("span",{staticClass:"hidden md:inline",domProps:{innerHTML:e._s(e.compLabels.actions.editDetails.label)}})],1):t("button",{class:e.buttonClasses,attrs:{type:"button",title:e.compLabels.actions.showDetails.title},on:{click:e.toggleShowDetails}},[t("br-icon",{attrs:{icon:e.compLabels.actions.showDetails.icon}}),e._v(" "),t("span",{staticClass:"hidden md:inline",domProps:{innerHTML:e._s(e.compLabels.actions.showDetails.label)}})],1)]),e._v(" "),e.compData.trackings&&e.compData.trackings.length?t("div",{staticClass:"pl-0 pr-2 pb-0 md:pl-2 md:pb-2"},[e.showTracking?t("div",{class:e.buttonClasses,attrs:{title:e.compLabels.actions.hideTrackingDetails.title},on:{click:e.toggleShowTracking}},[t("br-icon",{attrs:{icon:e.compLabels.actions.hideTrackingDetails.icon}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.compLabels.actions.hideTrackingDetails.label)}})],1):t("div",{class:e.buttonClasses,attrs:{title:e.compLabels.actions.showTrackingDetails.title},on:{click:e.toggleShowTracking}},[t("br-icon",{attrs:{icon:e.compLabels.actions.showTrackingDetails.icon}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.compLabels.actions.showTrackingDetails.label)}})],1)]):e._e(),e._v(" "),e.compIsCustomerAdmin&&e.compMayAdminReleaseOrders&&"waitingForRelease"===e.compData.status&&"release"===e.orderType?[t("div",{staticClass:"pl-0 pr-2 pb-0 md:pl-2 md:pb-2"},[t("button",{class:e.buttonDenyClasses,attrs:{type:"button",title:e.compLabels.actions.denyApproval.title},on:{click:e.denyApproval}},[t("br-icon",{attrs:{icon:e.compLabels.actions.denyApproval.icon}}),e._v(" "),t("span",{staticClass:"hidden md:inline",domProps:{innerHTML:e._s(e.compLabels.actions.denyApproval.label)}})],1)]),e._v(" "),t("div",{staticClass:"pl-0 pr-2 pb-0 md:pl-2 md:pb-2"},[t("button",{class:e.buttonSuccessClasses,attrs:{type:"button",title:e.compLabels.actions.releaseNow.title},on:{click:e.releaseNow}},[t("br-icon",{attrs:{icon:e.compLabels.actions.releaseNow.icon}}),e._v(" "),t("span",{staticClass:"hidden md:inline",domProps:{innerHTML:e._s(e.compLabels.actions.releaseNow.label)}})],1)])]:e._e(),e._v(" "),e.isB2b||e.compIsCustomerAdmin?e._e():t("div",{staticClass:"pl-0 pr-2 pb-0 md:pl-2 md:pb-2"},[t("router-link",{staticClass:"inline-block no-underline",attrs:{to:{name:"revocationrequest",query:{orderNumber:e.compOrderNumberLabel}}}},[t("div",{class:e.buttonClasses,attrs:{title:e.compLabels.actions.initiateRevocation.title}},[t("br-icon",{attrs:{icon:e.compLabels.actions.initiateRevocation.icon}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.compLabels.actions.initiateRevocation.label)}})],1)])],1),e._v(" "),!e.compIsCustomerAdmin&&e.compFormsReturnsActive?t("div",{staticClass:"pl-0 pr-2 pb-0 md:pl-2 md:pb-2"},[t("router-link",{staticClass:"inline-block no-underline",attrs:{to:{name:"returnrequest",query:{orderNumber:e.compOrderNumberLabel}}}},[t("div",{class:e.buttonClasses,attrs:{title:e.compLabels.actions.requestReturn.title}},[t("br-icon",{attrs:{icon:e.compLabels.actions.requestReturn.icon}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.compLabels.actions.requestReturn.label)}})],1)])],1):e._e(),e._v(" "),t("div",{staticClass:"pl-0 pr-2 pb-0 md:pl-2 md:pb-2"},[t("button",{class:e.buttonEditClasses,attrs:{type:"button",title:e.compLabels.actions.downloadPdf.title},on:{click:e.onDownloadPdf}},[t("br-icon",{attrs:{icon:e.compLabels.actions.downloadPdf.icon}}),e._v(" "),t("span",{staticClass:"hidden md:inline md:ml-1",domProps:{innerHTML:e._s(e.compLabels.actions.downloadPdf.label)}})],1)])],2),e._v(" "),t("div",{staticClass:"row-start-2 md:row-start-auto md:order-2 col-span-2 md:col-span-1 w-full grid grid-cols-2 md:flex md:flex-row md:flex-wrap md:justify-start gap-3 md:gap-0 order-info-rest"},[t("div",{staticClass:"flex flex-col md:px-4 md:border-l"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.orderDate)}}),e._v(" "),t("span",{staticClass:"font-bold",domProps:{innerHTML:e._s(e.compOrderDate)}})]),e._v(" "),"approvalRefused"===e.compData.status||"canceled"===e.compData.status?t("div",{staticClass:"text-danger flex flex-col md:px-4 md:border-l md:border-r"},[t("div",{staticClass:"flex flex-col justify-start items-start"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.workflowState)}}),e._v(" "),t("span",{staticClass:"font-bold",domProps:{innerHTML:e._s(e.compWorkflowStateLabel)}})]),e._v(" "),t("div",{staticClass:"text-sm flex flex-col justify-start items-start"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s("am:")}}),e._v(" "),t("span",{staticClass:"font-normal whitespace-no-wrap",domProps:{innerHTML:e._s(e.compData.status_at)}})])]):t("div",{staticClass:"flex flex-col md:px-4 md:border-l md:border-r"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.workflowState)}}),e._v(" "),t("span",{staticClass:"font-bold",domProps:{innerHTML:e._s(e.compWorkflowStateLabel)}})]),e._v(" "),t("div",{staticClass:"flex flex-col md:ml-4 col-span-2 md:col-span-1"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.invoiceGrossPrice)}}),e._v(" "),e.compIsCustomerAdmin?t("span",{staticClass:"font-bold md:text-right",domProps:{innerHTML:e._s(e.compNewDisplayInvoiceGrossPrice)}}):t("span",{staticClass:"font-bold md:text-right",domProps:{innerHTML:e._s(e.compDisplayInvoiceGrossPrice)}})])])]),e._v(" "),!e.compIsCustomerAdmin&&e.compData&&e.compData.need_release_level1_notes&&e.compData.need_release_level1_notes.length?t("div",{class:"approvalRefused"===e.compData.status?"bg-danger-lightest text-danger text-sm px-4 py-2 border-t font-bold":"bg-info-lightest text-info text-sm px-4 py-2 border-t font-bold"},["approvalRefused"===e.compData.status?[t("br-icon",{attrs:{icon:"exclamation-triangle"}}),e._v(" "),t("span",{staticClass:"ml-1",domProps:{innerHTML:e._s("Ablehnungsgrund:")}})]:[t("br-icon",{attrs:{icon:"info-circle"}}),e._v(" "),t("span",{staticClass:"ml-1",domProps:{innerHTML:e._s("Freigabe Information:")}}),e._v(" "),t("br")],e._v(" "),t("span",{domProps:{innerHTML:e._s(e.compData.need_release_level1_notes)}})],2):e._e(),e._v(" "),e.compIsCustomerAdmin&&e.compOrderActionReason&&e.compOrderActionReason.length?t("div",{staticClass:"bg-interface text-info text-sm px-4 py-2 border-t font-bold"},[t("br-icon",{attrs:{icon:"info-circle"}}),e._v(" "),t("span",{staticClass:"ml-1",domProps:{innerHTML:e._s(e.compLabels.orderActionReason)}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.compOrderActionReason)}}
1)],1):e._e(),e._v(" "),e.compReleaseAdmins&&"waitingForRelease"===e.compData.status?t("div",{staticClass:"bg-interface text-info text-sm px-4 py-2 border-t"},[t("br-icon",{attrs:{icon:"user-secret"}}),e._v(" "),e.compIsCustomerAdmin?t("span",{staticClass:"ml-1 font-bold",domProps:{innerHTML:e._s(e.compLabels.releaseBy)}}):t("span",{staticClass:"ml-1 font-bold"},[e._v("\n Freigabe möglich durch:\n ")]),e._v(" "),t("span",{staticClass:"font-normal"},[e._l(e.compReleaseAdminsPreview,(function(s,a){return[t("span",{key:"release-admin-preview-"+a},[a>0?t("span",[e._v(", ")]):e._e(),e._v(" "),t("span",{domProps:{innerHTML:e._s(s.label)}}),e._v(" "),s.email?t("span",[e._v("\n (\n "),t("a",{staticClass:"underline",attrs:{href:"mailto:"+s.email},domProps:{innerHTML:e._s(s.email)}}),e._v("\n )\n ")]):e._e()])]})),e._v(" "),e.compReleaseAdminsMoreCount>0?t("span",{staticClass:"ml-1 underline cursor-pointer",on:{click:e.toggleReleaseAdminsDetails}},[e._v("\n +"+e._s(e.compReleaseAdminsMoreCount)+" weitere\n ")]):e._e()],2),e._v(" "),e.showReleaseAdminsDetails&&e.compReleaseAdminsMoreCount>0?t("div",{staticClass:"ml-6 mt-1 font-normal"},e._l(e.compReleaseAdmins,(function(s,a){return t("div",{key:"release-admin-full-"+a},[t("span",{domProps:{innerHTML:e._s(s.label)}}),e._v(" "),s.email?t("span",[e._v("\n (\n "),t("a",{staticClass:"underline",attrs:{href:"mailto:"+s.email},domProps:{innerHTML:e._s(s.email)}}),e._v("\n )\n ")]):e._e()])})),0):e._e()],1):e.compReleaseAllAdmins?t("div",{staticClass:"bg-interface text-info text-sm px-4 py-2 border-t"},[t("br-icon",{attrs:{icon:"user-secret"}}),e._v(" "),e.compIsCustomerAdmin?t("span",{staticClass:"ml-1 font-bold",domProps:{innerHTML:e._s(e.compLabels.releaseBy)}}):t("span",{staticClass:"ml-1 font-bold"},[e._v("\n Freigabe möglich durch:\n ")]),e._v(" "),t("span",{staticClass:"font-normal"},[e._l(e.compReleaseAllAdminsPreview,(function(s,a){return[t("span",{key:"release-all-admin-preview-"+a},[a>0?t("span",[e._v(", ")]):e._e(),e._v(" "),t("span",{domProps:{innerHTML:e._s(s.label)}}),e._v(" "),s.email?t("span",[e._v("\n (\n "),t("a",{staticClass:"underline",attrs:{href:"mailto:"+s.email},domProps:{innerHTML:e._s(s.email)}}),e._v("\n )\n ")]):e._e()])]})),e._v(" "),e.compReleaseAllAdminsMoreCount>0?t("span",{staticClass:"ml-1 underline cursor-pointer",on:{click:e.toggleReleaseAdminsDetails}},[e._v("\n +"+e._s(e.compReleaseAllAdminsMoreCount)+" weitere\n ")]):e._e()],2),e._v(" "),e.showReleaseAdminsDetails&&e.compReleaseAllAdminsMoreCount>0?t("div",{staticClass:"ml-6 mt-1 font-normal"},e._l(e.compReleaseAllAdmins,(function(s,a){return t("div",{key:"release-all-admin-full-"+a},[t("span",{domProps:{innerHTML:e._s(s.label)}}),e._v(" "),s.email?t("span",[e._v("\n (\n "),t("a",{staticClass:"underline",attrs:{href:"mailto:"+s.email},domProps:{innerHTML:e._s(s.email)}}),e._v("\n )\n ")]):e._e()])})),0):e._e()],1):e._e(),e._v(" "),e.compIsCustomerAdmin&&e.compData.release_updates&&e.compData.release_updates.length?t("div",{staticClass:"border-t px-4 py-2 bg-interface text-info text-sm"},[t("div",{staticClass:"font-bold"},[e._v("Folgendes wurde geändert:")]),e._v(" "),t("div",{domProps:{innerHTML:e._s(e.compData.release_updates)}}),e._v(" "),t("div",{staticClass:"font-bold"},[e._v("Hinweis: Die Ãnderungen werden erst bei Freigabe der Bestellung übernommen!")])]):e._e(),e._v(" "),e.compIsCustomerAdmin?t("div",{class:e.header2Classes},[t("div",{staticClass:"flex flex-col mr-4"},[t("div",{class:e.labelClasses},[t("br-icon",{attrs:{icon:"user"}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.compLabels.userName)}})],1),e._v(" "),t("div",{staticClass:"font-bold"},[e.compOrderUserName&&e.compOrderUserName.length?t("span",{domProps:{innerHTML:e._s(e.compOrderUserName)}}):t("span",[e._v("-")])])]),e._v(" "),t("div",{staticClass:"flex flex-col mr-4"},[t("div",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.email)}}),e._v(" "),t("div",{staticClass:"font-bold"},[e.compOrderUserEmail&&e.compOrderUserEmail.length?t("a",{attrs:{href:"mailto:"+e.compOrderUserEmail}},[t("br-icon",{attrs:{icon:"envelope"}}),e._v(" "),t("span",{staticClass:"hover:text-interface-main-button underline",domProps:{innerHTML:e._s(e.compOrderUserEmail)}})],1):t("span",[e._v("-")])])]),e._v(" "),t("div",{staticClass:"flex flex-col mr-4"},[t("div",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.number)}}),e._v(" "),t("div",{staticClass:"font-bold"},[e.compOrderUserNumber&&e.compOrderUserNumber.length?t("span",{domProps:{innerHTML:e._s(e.compOrderUserNumber)}}):t("span",[e._v("-")])])]),e._v(" "),t("div",{staticClass:"flex flex-col mr-4"},[t("div",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.userFullName)}}),e._v(" "),t("div",{staticClass:"font-bold"},[e.compOrderPersonFullName&&e.compOrderPersonFullName.length?t("span",{domProps:{innerHTML:e._s(e.compOrderPersonFullName)}}
1):t("span",[e._v("-")])])])]):e._e(),e._v(" "),t("div",{class:e.header2Classes},[t("div",{class:e.compIsCustomerAdmin&&e.compMayAdminEditOrders&&e.compMayAdminReleaseOrders?"w-full flex flex-wrap justify-start border-b":"w-full flex flex-wrap justify-start"},[e.compIsCustomerAdmin&&e.compMayAdminEditOrders&&e.compMayAdminReleaseOrders&&"release"===e.orderType?t("div",{staticClass:"w-full md:w-1/2 lg:w-1/4 flex flex-col mr-4 mb-4 md:mb-0"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.comment)}}),e._v(" "),t("span",[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.compData.new_comment,expression:"compData.new_comment"}],staticClass:"w-full px-4 py-2 border rounded-lg focus:outline-none",staticStyle:{height:"100px","min-height":"100px"},attrs:{placeholder:"Kommentar zur Bestellung"},domProps:{value:e.compData.new_comment},on:{input:function(t){t.target.composing||e.$set(e.compData,"new_comment",t.target.value)}}})])]):e.compComment&&e.compComment.length?t("div",{staticClass:"w-full md:w-1/2 lg:w-1/4 flex flex-col mr-4 mb-4 md:mb-0"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.comment)}}),e._v(" "),t("span",{staticClass:"font-normal whitespace-pre-wrap break-words min-w-0"},[e.compComment&&e.compComment.length?t("span",{domProps:{innerHTML:e._s(e.compComment)}}):t("span",[e._v("-")])])]):e._e(),e._v(" "),e.compIsCustomerAdmin&&e.compMayAdminEditOrders&&e.compMayAdminReleaseOrders&&"release"===e.orderType?t("div",{staticClass:"w-full md:w-1/4 flex flex-col mr-4 mb-4 md:mb-0"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.customOrderNumber)}}),e._v(" "),t("span",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.compData.new_custom_order_number,expression:"compData.new_custom_order_number"}],staticClass:"w-full border rounded-lg px-2 py-1",attrs:{type:"text",placeholder:e.compLabels.customOrderNumber},domProps:{value:e.compData.new_custom_order_number},on:{input:function(t){t.target.composing||e.$set(e.compData,"new_custom_order_number",t.target.value)}}}),e._v(" "),e.compCustomOrderNumber&&e.compCustomOrderNumber.length?t("span",{staticClass:"font-normal",domProps:{innerHTML:e._s(e.compCustomOrderNumber)}}):e._e()])]):e.compCustomOrderNumber&&e.compCustomOrderNumber.length?t("div",{staticClass:"w-full md:w-1/4 flex flex-col mr-4 mb-4 md:mb-0"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.customOrderNumber)}}),e._v(" "),t("span",[e.compCustomOrderNumber&&e.compCustomOrderNumber.length?t("span",{staticClass:"font-normal",domProps:{innerHTML:e._s(e.compCustomOrderNumber)}}):t("span",[e._v("-")])])]):e._e(),e._v(" "),e.compOfferNumber&&e.compOfferNumber.length?t("div",{staticClass:"w-full md:w-1/4 flex flex-col mr-4 mb-4 md:mb-0"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.offerNumber)}}),e._v(" "),t("span",[e.compOfferNumber&&e.compOfferNumber.length?t("span",{staticClass:"font-normal",domProps:{innerHTML:e._s(e.compOfferNumber)}}):t("span",[e._v("-")])])]):e._e(),e._v(" "),e.compIsCustomerAdmin&&e.compMayAdminEditOrders&&e.compMayAdminReleaseOrders&&"release"===e.orderType?t("div",{staticClass:"w-1/4 flex flex-col mr-4"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.costCenter)}}),e._v(" "),t("span",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.compData.new_cost_center_slug,expression:"compData.new_cost_center_slug"}],staticClass:"w-full px-2 py-0 border rounded-lg focus:outline-none",attrs:{placeholder:"- ohne Kostenstelle -"},on:{change:[function(t){var s=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.compData,"new_cost_center_slug",t.target.multiple?s:s[0])},e.updatePositionCostCenters]}},[t("option",{domProps:{selected:!e.compData.new_cost_center_slug}},[e._v("- ohne Kostenstelle -")]),e._v(" "),e._l(e.compAllCostCenters,(function(s){return t("option",{domProps:{value:s.slug}},[e._v("\n "+e._s(s.display_name)+"\n ")])}))],2),e._v(" "),e.compCostCenterSlug&&e.compCostCenterSlug.length?t("span",{staticClass:"font-normal",domProps:{innerHTML:e._s(e.compCostCenterSlug)}}
1):e._e()])]):e.compCostCenterSlug&&e.compCostCenterSlug.length?t("div",{staticClass:"w-1/4 flex flex-col mr-4"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.costCenter)}}),e._v(" "),t("span",[e.compCostCenterSlug&&e.compCostCenterSlug.length?t("span",{staticClass:"font-normal",domProps:{innerHTML:e._s(e.compCostCenterSlug)}}):t("span",[e._v("-")])])]):e._e()]),e._v(" "),t("div",[t("div",{staticClass:"flex flex-wrap justify-start"},[e.compIsCustomerAdmin||e.compData.updated_by_admin||"approvalRefused"===e.compData.status?e._e():t("div",{staticClass:"flex flex-col mr-4"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.release)}}),e._v(" "),t("span",[!0===e.compNeedRelease?t("span",{staticClass:"font-normal br-main-button-link",domProps:{innerHTML:e._s(e.compLabels.required)}}):t("span",{staticClass:"font-normal",domProps:{innerHTML:e._s(e.compLabels.notRequired)}})])])])])]),e._v(" "),t("div",{class:e.addressClasses},[t("div",{staticClass:"w-full lg:w-1/2 flex flex-col md:flex-row md:flex-wrap md:justify-between md:gap-x-4"}
1,[t("div",{staticClass:"flex flex-col flex-1 min-w-0 w-full md:min-w-[180px] md:max-w-[calc(50%-0.5rem)] md:p-3 md:rounded md:bg-white/60"},[e.identicalAddresses?t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.billingAndShippingAddress)}}):t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.billingAddress)}}),e._v(" "),t("br-address-label",{attrs:{address:e.compBillingAddress,"allow-edit":!1,"allow-destroy":!1,"show-address-type":!1,salutations:e.compSalutations,titles:e.compTitles,countries:e.compCountries}})],1),e._v(" "),!e.identicalAddresses||e.compIsCustomerAdmin?t("div",{staticClass:"flex flex-col flex-1 min-w-0 w-full md:min-w-[180px] md:max-w-[calc(50%-0.5rem)] mt-3 md:mt-0 md:p-3 md:rounded md:bg-white/60 md:border-l md:border-grey"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.shippingAddress)}}),e._v(" "),e.compMayAdminEditAddresses&&e.compMayAdminEditOrders&&"release"===e.orderType&&"waitingForRelease"===e.compData.status?[t("div",{staticClass:"text-sm space-y-3"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.compEditableShippingAddress.name1,expression:"compEditableShippingAddress.name1"}],staticClass:"w-full border rounded-lg px-3 py-2 bg-white focus:outline-none focus:border-primary",attrs:{type:"text",placeholder:e.compLabels.shippingAddressFields&&e.compLabels.shippingAddressFields.name1?e.compLabels.shippingAddressFields.name1:"Firma 1"},domProps:{value:e.compEditableShippingAddress.name1},on:{input:function(t){t.target.composing||e.$set(e.compEditableShippingAddress,"name1",t.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.compEditableShippingAddress.name2,expression:"compEditableShippingAddress.name2"}],staticClass:"w-full border rounded-lg px-3 py-2 bg-white focus:outline-none focus:border-primary",attrs:{type:"text",placeholder:e.compLabels.shippingAddressFields&&e.compLabels.shippingAddressFields.name2?e.compLabels.shippingAddressFields.name2:"Firma 2"},domProps:{value:e.compEditableShippingAddress.name2},on:{input:function(t){t.target.composing||e.$set(e.compEditableShippingAddress,"name2",t.target.value)}}}),e._v(" "),t("div",{staticClass:"flex flex-col gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.compEditableShippingAddress.firstname,expression:"compEditableShippingAddress.firstname"}],staticClass:"flex-1 border rounded-lg px-3 py-2 bg-white focus:outline-none focus:border-primary",attrs:{type:"text",placeholder:e.compLabels.shippingAddressFields&&e.compLabels.shippingAddressFields.firstname?e.compLabels.shippingAddressFields.firstname:"Vorname"},domProps:{value:e.compEditableShippingAddress.firstname},on:{input:function(t){t.target.composing||e.$set(e.compEditableShippingAddress,"firstname",t.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.compEditableShippingAddress.lastname,expression:"compEditableShippingAddress.lastname"}],staticClass:"flex-1 border rounded-lg px-3 py-2 bg-white focus:outline-none focus:border-primary",attrs:{type:"text",placeholder:e.compLabels.shippingAddressFields&&e.compLabels.shippingAddressFields.lastname?e.compLabels.shippingAddressFields.lastname:"Nachname"},domProps:{value:e.compEditableShippingAddress.lastname},on:{input:function(t){t.target.composing||e.$set(e.compEditableShippingAddress,"lastname",t.target.value)}}})]),e._v(" "),t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.compEditableShippingAddress.streetname,expression:"compEditableShippingAddress.streetname"}],staticClass:"flex-1 border rounded-lg px-3 py-2 bg-white focus:outline-none focus:border-primary",attrs:{type:"text",placeholder:e.compLabels.shippingAddressFields&&e.compLabels.shippingAddressFields.streetname?e.compLabels.shippingAddressFields.streetname:"StraÃe"},domProps:{value:e.compEditableShippingAddress.streetname},on:{input:function(t){t.target.composing||e.$set(e.compEditableShippingAddress,"streetname",t.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.compEditableShippingAddress.buildingnumber,expression:"compEditableShippingAddress.buildingnumber"}],staticClass:"w-20 border rounded-lg px-3 py-2 bg-white focus:outline-none focus:border-primary",attrs:{type:"text",placeholder:e.compLabels.shippingAddressFields&&e.compLabels.shippingAddressFields.buildingnumber?e.compLabels.shippingAddressFields.buildingnumber:"Nr."},domProps:{value:e.compEditableShippingAddress.buildingnumber},on:{input:function(t){t.target.composing||e.$set(e.compEditableShippingAddress,"buildingnumber",t.target.value)}}})]),e._v(" "),t("div",{staticClass:"flex gap-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.compEditableShippingAddress.zip,expression:"compEditableShippingAddress.zip"}],staticClass:"w-24 border rounded-lg px-3 py-2 bg-white focus:outline-none focus:border-primary",attrs:{type:"text",placeholder:e.compLabels.shippingAddressFields&&e.compLabels.shippingAddressFields.zip?e.compLabels.shippingAddressFields.zip:"PLZ"},domProps:{value:e.compEditableShippingAddress.zip},on:{input:function(t){t.target.composing||e.$set(e.compEditableShippingAddress,"zip",t.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.compEditableShippingAddress.city,expression:"compEditableShippingAddress.city"}],staticClass:"flex-1 border rounded-lg px-3 py-2 bg-white focus:outline-none focus:border-primary",attrs:{type:"text",placeholder:e.compLabels.shippingAddressFields&&e.compLabels.shippingAddressFields.city?e.compLabels.shippingAddressFields.city:"Ort"},domProps:{value:e.compEditableShippingAddress.city},on:{input:function(t){t.target.composing||e.$set(e.compEditableShippingAddress,"city",t.target.value)}}})]),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.compEditableShippingAddress.country_code,expression:"compEditableShippingAddress.country_code"}],staticClass:"w-full border rounded-lg px-3 py-2 bg-white focus:outline-none focus:border-primary",on:{change:function(t){var s=Array.prototype.filter.call(t.target.options,
1(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.compEditableShippingAddress,"country_code",t.target.multiple?s:s[0])}}},[t("option",{attrs:{value:""}}),e._v(" "),e._l(e.compCountries,(function(s,a){return t("option",{key:a,domProps:{value:a}},[e._v("\n "+e._s(s)+"\n ")])}))],2)])]:t("br-address-label",{attrs:{address:e.compShippingAddress,"allow-edit":!1,"allow-destroy":!1,"show-address-type":!1,salutations:e.compSalutations,titles:e.compTitles,countries:e.compCountries}})],2):e._e()]),e._v(" "),e.compIsMigratedData?e._e():t("div",{staticClass:"flex flex-col items-start w-full mt-4 md:mt-0 lg:w-1/3"},[t("div",{staticClass:"flex flex-col"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.paymentMethod)}}),e._v(" "),e.compPaymentMethod&&e.compPaymentMethod.display_name&&e.compPaymentMethod.display_name.length?t("div",{staticClass:"font-bold",domProps:{innerHTML:e._s(e.compPaymentMethod.display_name)}}):e._e(),e._v(" "),e.compPaymentMethod&&e.compPaymentMethod.body&&e.compPaymentMethod.body.length?t("div",{domProps:{innerHTML:e._s(e.compPaymentMethod.body)}}):e._e(),e._v(" "),e.compPaymentMethod&&e.compPaymentMethod.status&&e.compPaymentMethod.status.length?t("div",{domProps:{innerHTML:e._s(e.compPaymentMethod.status)}}):e._e()]),e._v(" "),t("div",{staticClass:"flex flex-col mt-8"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.shippingMethod)}}),e._v(" "),e.compShippingMethod&&e.compShippingMethod.display_name&&e.compShippingMethod.display_name.length?t("div",{staticClass:"font-bold",domProps:{innerHTML:e._s(e.compShippingMethod.display_name)}}):e._e(),e._v(" "),e.compShippingMethod&&e.compShippingMethod.body&&e.compShippingMethod.body.length?t("div",{domProps:{innerHTML:e._s(e.compShippingMethod.body)}}):e._e()]),e._v(" "),t("div",{staticClass:"flex flex-col mt-8"},[t("span",{class:e.labelClasses,domProps:{innerHTML:e._s(e.compLabels.shippingGrossPrice)}}),e._v(" "),t("div",{staticClass:"font-bold",domProps:{innerHTML:e._s(e.compShippingGrossPrice)}})])])]),e._v(" "),e.showDetails?t("br-my-order-details",{staticClass:"bg-white",class:e.contentClasses,attrs:{data:e.data,labels:e.compLabels,"cost-centers":e.compAllCostCenters,"is-customer-admin":e.compIsCustomerAdmin,"may-admin-orders":e.mayAdminOrders,"may-admin-release-orders":e.mayAdminReleaseOrders,"may-admin-edit-orders":e.mayAdminEditOrders&&"release"===e.orderType,"may-admin-merge-orders":e.mayAdminMergeOrders}}):e._e(),e._v(" "),e.showTracking?t("div",{staticClass:"bg-white w-full p-2"},[t("div",{staticClass:"flex w-full bg-primary text-primary-inverse p-2",domProps:{innerHTML:e._s(e.compLabels.trackings.tracking_details)}}),e._v(" "),e._l(e.compData.trackings,(function(s){return t("div",{staticClass:"flex-row p-2 border-t border-primary"},[t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"flex w-1/2"},[t("span",{domProps:{innerHTML:e._s(e.compLabels.trackings.tracking_number)}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(s.tracking_number)}}),e._v(" "),s.tracking_history&&s.tracking_history.length?t("span",{staticClass:"pl-2"},[e.showTrackingHistory==s.tracking_number?t("button",{class:e.buttonClasses,on:{click:e.hideTrackingHistory}},[t("br-icon",{attrs:{icon:"history"}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.compLabels.trackings.hideHistory)}})],1):t("button",{class:e.buttonClasses,on:{click:function(t){return e.displayTrackingHistory(s.tracking_number)}}},[t("br-icon",{attrs:{icon:"history"}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.compLabels.trackings.showHistory)}})],1)]):e._e()]),e._v(" "),s.carrier&&s.carrier.tracking_url&&s.tracking_number?t("div",{staticClass:"flex justify-end w-1/2"},[t("a",{class:e.buttonClasses,attrs:{href:s.carrier.tracking_url+s.tracking_number,target:"_blank"}},[t("span",{domProps:{innerHTML:e._s(e.compLabels.trackings.more_info_at_carrier)}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(s.carrier.title)}}),e._v(" "),t("br-icon",{attrs:{icon:"external-link-alt"}})],1)]):e._e()]),e._v(" "),s.tracking_history&&e.showTrackingHistory==s.tracking_number?t("div",{staticClass:"flex-row flex-grow w-full text-sm bg-success-lightest p-2 mt-2"},e._l(s.tracking_history,(function(s){return t("div",{staticClass:"flex flex-row w-full"},[t("div",{staticClass:"flex flex-col w-1/4",domProps:{innerHTML:e._s(s.timestamp)}}),e._v(" "),t("div",{staticClass:"flex flex-col w-1/2",domProps:{innerHTML:e._s(s.description)}}),e._v(" "),t("div",{staticClass:"flex flex-col w-1/4",domProps:{innerHTML:e._s(s.location)}})])}
1)),0):e._e()])}))],2):e._e(),e._v(" "),e.showDenyApproval?t("br-modal",{attrs:{"on-close":e.closeDenyApproval}},[t("form",{on:{submit:e.onDenyApproval}},[t("div",{staticClass:"font-bold text-xl text-danger"},[t("br-icon",{attrs:{icon:"ban"}}),e._v(" "),t("span",[e._v("Freigabe ablehnen")])],1),e._v(" "),t("div",[t("p",[t("strong",[e._v('Sie haben die Möglichkeit die Freigabe dieser Bestellung abzulehnen. Diese wird dann nicht\n bearbeitet und\n intern als "abgelehnt" gekennzeichnet.')])]),e._v(" "),t("p",[e._v("Damit der entsprechende Benutzer den "),t("strong",[e._v("Grund für die Ablehnung")]),e._v(" kennt, haben Sie die\n Möglichkeit einen\n Ablehnungsgrund zu hinterlassen. Dieser wird den Besteller zur Information angezeigt.")])]),e._v(" "),t("div",[t("label",{staticClass:"font-bold"},[e._v("Ablehnungsgrund (Information für den Besteller):")]),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.compData.need_release_level1_notes,expression:"compData.need_release_level1_notes"}],staticClass:"br-field w-full",staticStyle:{height:"150px","min-height":"150px"},attrs:{required:!0},domProps:{value:e.compData.need_release_level1_notes},on:{input:function(t){t.target.composing||e.$set(e.compData,"need_release_level1_notes",t.target.value)}}})]),e._v(" "),t("div",{staticClass:"mt-8 w-full flex flex-wrap justify-between items-center"},[t("button",{class:e.buttonClasses,attrs:{type:"button"},on:{click:e.closeDenyApproval}},[t("br-icon",{attrs:{icon:"times"}}),e._v(" "),t("span",[e._v("Abbrechen")])],1),e._v(" "),t("button",{class:e.buttonDenyClasses,attrs:{type:"submit"}},[t("br-icon",{attrs:{icon:"ban"}}),e._v(" "),t("span",[e._v("Freigabe ablehnen")])],1)])])]):e._e(),e._v(" "),e.showReleaseNow?t("br-modal",{attrs:{"on-close":e.closeReleaseNow}},[t("form",{on:{submit:e.onReleaseNow}},[t("div",{staticClass:"font-bold text-xl text-success"},[t("br-icon",{attrs:{icon:"check-circle"}}),e._v(" "),t("span",[e._v("Freigabe erteilen")])],1),e._v(" "),t("div",[t("p",[t("strong",[e._v('Sie haben die Möglichkeit die Freigabe zu dieser Bestellung zu erteilen. Nach "Freigabe" wird die\n Bestellung von uns weiter bearbeitet.')])]),e._v(" "),e.compMayAdminEditOrders&&"release"===e.orderType?t("p",[t("strong",[e._v("Alle Ãnderungen die Sie dazu an der Bestellung vorgenommen haben\n werden dabei\n berücksichtigt.")])]):e._e(),e._v(" "),t("p",[e._v("Möchten Sie dem Besteller noch eine "),t("strong",[e._v("Information zur Freigabe")]),e._v(" hinterlassen, können Sie\n diese\n in das folgende Feld eingeben. Diese Information wird dem Besteller zur Information angezeigt.")])]),e._v(" "),this.compData.release_updates&&this.compData.release_updates.length&&""!==this.compData.release_updates?t("div",{staticClass:"mb-4 text-info"},[t("div",{staticClass:"font-bold"},[e._v("Folgende Ãnderungen wurden durchgeführt:")]),e._v(" "),t("div",{domProps:{innerHTML:e._s(this.compData.release_updates)}})]):e._e(),e._v(" "),t("div",[t("label",{staticClass:"font-bold"},[e._v("Information zur Freigabe für den Besteller:")]),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.compData.need_release_level1_notes,expression:"compData.need_release_level1_notes"}],staticClass:"br-field w-full",staticStyle:{height:"150px","min-height":"150px"},attrs:{required:!1},domProps:{value:e.compData.need_release_level1_notes},on:{input:function(t){t.target.composing||e.$set(e.compData,"need_release_level1_notes",t.target.value)}}})]),e._v(" "),t("div",{staticClass:"mt-8 w-full flex flex-wrap justify-between items-center"},[t("button",{class:e.buttonClasses,attrs:{type:"button"},on:{click:e.closeReleaseNow}},[t("br-icon",{attrs:{icon:"times"}}),e._v(" "),t("span",[e._v("Abbrechen")])],1),e._v(" "),t("button",{class:e.buttonSuccessClasses,attrs:{type:"submit"}},[t("br-icon",{attrs:{icon:"check-circle"}}),e._v(" "),t("span",[e._v("Freigabe erteilen")])],1)])])]):e._e()],1)}),[],!1,null,null,null).exports}}]);
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.