1(window.webpackJsonp=window.webpackJsonp||[]).push([[170],{1161:function(t,e,s){},1162:function(t,e,s){},1163:function(t,e,s){},1164:function(t,e,s){},1270:function(t,e,s){"use strict";var a={name:"InfoCircle",props:{ariaLabel:{type:String,default:""},size:{type:[String,Number],default:15},decorative:{type:Boolean,default:!1}},computed:{sizeStyle:function(){var t=parseFloat(this.size);return t&&15!==t?{width:t+"px",height:t+"px",fontSize:Math.round(.55*t)+"px"}:null}}},r=(s(1630),s(24)),o=Object(r.a)(a,(function(){var t=this;return(0,t._self._c)(t.decorative?"span":"button",{tag:"component",staticClass:"pb-info-circle",class:{"pb-info-circle--decorative":t.decorative},style:t.sizeStyle,attrs:{type:t.decorative?null:"button","aria-label":t.decorative?null:t.ariaLabel,"aria-hidden":t.decorative?"true":null},on:{click:function(e){return t.$emit("click",e)}}},[t._v("\n i\n")])}),[],!1,null,"58c09cf2",null);e.a=o.exports},1630:function(t,e,s){"use strict";s(1161)},1631:function(t,e,s){"use strict";s(1162)},1632:function(t,e,s){"use strict";s(1163)},1633:function(t,e,s){"use strict";s(1164)},1796:function(t,e,s){"use strict";s.r(e);var a,r=s(20),o=s.n(r),i=s(28),d=s.n(i),n=s(66),_=s.n(n),l=s(44),c=s(8),u=s(1270),p=s(148),v={name:"OrderSummary",props:{orderDetail:{type:Object,required:!0}},computed:{isFreeShipping:function(){return!parseFloat(this.orderDetail.total_shipping_raw)},paymentMethods:function(){return Array.isArray(this.orderDetail.payment_methods_used)?this.orderDetail.payment_methods_used:[]},refunded:function(){if(this.orderDetail.total_refunded_raw>0)return this.orderDetail.total_refunded;var t=(Array.isArray(this.orderDetail.detail)?this.orderDetail.detail:[]).reduce((function(t,e){return e.is_return||e.is_return_customer?t+(parseFloat(e.paid_real_raw)||0):t}),0);return t>0?t.toFixed(2).replace(".",","):null}}},m=(s(1631),s(24)),h=Object(m.a)(v,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"od-sum"},[e("div",{staticClass:"od-sum__row"},[e("span",[t._v(t._s(t.$t("orders.detailSubtotal")))]),t._v(" "),e("span",{staticClass:"od-sum__amount"},[t._v(t._s(t.orderDetail.total_products)+"â¬")])]),t._v(" "),t.orderDetail.total_discounts_raw>0?e("div",{staticClass:"od-sum__row od-sum__row--discount"},[e("span",[t._v(t._s(t.$t("orders.detailDiscounts")))]),t._v(" "),e("span",{staticClass:"od-sum__amount"},[t._v("-"+t._s(t.orderDetail.total_discounts)+"â¬")])]):t._e(),t._v(" "),e("div",{staticClass:"od-sum__row"},[e("span",[t._v(t._s(t.$t("orders.detailShipping")))]),t._v(" "),t.isFreeShipping?e("span",{staticClass:"od-sum__amount od-sum__free"},[t._v("\n "+t._s(t.$t("orders.detailShippingFree"))+"\n ")]):e("span",{staticClass:"od-sum__amount"},[t._v(t._s(t.orderDetail.total_shipping)+"â¬")])]),t._v(" "),e("div",{staticClass:"od-sum__row od-sum__row--total"},[e("span",[t._v(t._s(t.$t("orders.detailTotalVatIncl")))]),t._v(" "),e("span",{staticClass:"od-sum__amount"},[t._v(t._s(t.orderDetail.total_paid_real)+"â¬")])]),t._v(" "),t.refunded?e("div",{staticClass:"od-sum__row od-sum__row--refund"},[e("span",[t._v(t._s(t.$t("orders.detailRefunded")))]),t._v(" "),e("span",{staticClass:"od-sum__amount"},[t._v("-"+t._s(t.refunded)+"â¬")])]):t._e(),t._v(" "),t.paymentMethods.length?e("div",{staticClass:"od-sum__payments"},[e("p",{staticClass:"od-sum__payments-title"},[t._v("\n "+t._s(t.$t("orders.detailPaymentMethodsUsed"))+"\n ")]),t._v(" "),t._l(t.paymentMethods,(function(s,a){return e("div",{key:a,staticClass:"od-sum__row od-sum__row--muted"},[e("span",[t._v("\n "+t._s(t.$t("orders.detailPayedWith"))+" "+t._s(s.payment_method_lang)+"\n ")]),t._v(" "),e("span",{staticClass:"od-sum__amount"},[t._v(t._s(s.amount)+"â¬")])])})),t._v(" "),t.orderDetail.ecopoints_spent?e("div",{staticClass:"od-sum__row od-sum__row--muted"},[e("span",{staticClass:"od-sum__eco"},[e("b-icon",{staticClass:"resize",attrs:{icon:"ecopoints",size:"is-small"}}),t._v("\n "+t._s(t.$t("orders.detailPayedWith"))+" Eco | Points\n ")],1),t._v(" "),e("span",{staticClass:"od-sum__amount"},[t._v(t._s(t.orderDetail.ecopoints_spent))])]):t._e()],2):t._e()])}),[],!1,null,"607dc300",null).exports,f={name:"OrderAddress",props:{address:{type:Object,required:!0}}},b=(s(1632),Object(m.a)(f,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"od-address"},[e("p",[t._v(t._s(t.address.firstname)+" "+t._s(t.address.lastname))]),t._v(" "),t.address.address1?e("p",[t._v(t._s(t.address.address1))]):t._e(),t._v(" "),t.address.address2?e("p",[t._v(t._s(t.address.address2))]):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.address.postcode)+" "+t._s(t.address.city)),t.address.country_lang?[t._v(", "+t._s(t.address.country_lang))]:t._e()],2),t._v(" "),t.address.phone?e("p",[t._v(t._s(t.address.phone))]):t._e(),t._v(" "),t.address.phone_mobile?e("p",[t._v(t._s(t.address.phone_mobile))]):t._e()])}
1),[],!1,null,"1afb0a58",null).exports),D={name:"OrderDetail",components:{"menu-user-wallet":function(){return s.e(20).then(s.bind(null,1906))},"info-circle":u.a,"bottom-sheet":p.a,"order-summary":h,"order-address":b,ModalAutoReturn:function(){return s.e(362).then(s.bind(null,1972))},ModalOrderDetail:function(){return s.e(286).then(s.bind(null,1973))}},data:function(){return{orderDetail:null,productsDetail:[],orderHistory:[],unsubscribe:null,availableStates:["Published","Sold"],isLoading:!1,amount:0,showModalAutoReturn:!1,showAutoReturnButton:!1,hasLiquidatedAmount:!1,showPercentiTooltip:!1,summarySheetOpen:!1}},computed:{orderDate:function(){return this.formatDate(this.orderDetail&&this.orderDetail.date_order)},trackingSteps:function(){var t=this,e=Array.isArray(this.orderHistory)?this.orderHistory:[],s={requested:this.$t("orders.detailFollowRequested"),managed:this.$t("orders.detailFollowManaged")};return e.reduce((function(e,a){if(!a)return e;var r="return"===a.phase,o=r&&s[a.step]||a.order_state_lang;return o?(e.push({label:o,date:t.formatShortDate(a.date_add),isReturnPhase:r,showInfo:r&&"managed"===a.step}),e):e}),[])},hasDifferentInvoiceAddress:function(){var t=this.orderDetail&&this.orderDetail.addresses;return!(!t||!t.address_invoice)&&t.address_invoice.id_address!==t.address_delivery.id_address}},methods:{productImage:function(t){var e=t.images;return e&&"object"===(void 0===e?"undefined":_()(e))?e.subcategoria||e.medium:e},productLink:function(t){return this.availableStates.includes(t.status)?this.$t("productDetailPath")+t.link_rewrite+"-"+t.id_product:null},discountPercent:function(t){var e=parseFloat(t.reduced_price_raw),s=parseFloat(t.discount_raw);return!e||!s||s<=0?null:Math.round(s/e*100)},formatDate:function(t){var e=this.toDayjs(t);return e?e.format("D")+" "+this.shortMonth(e)+" "+e.format("YYYY"):""},formatShortDate:function(t){var e=this.toDayjs(t);return e?e.format("D")+" "+this.shortMonth(e):""},toDayjs:function(t){var e=t&&t.date?t.date:t;return e?Object(l.a)(String(e).replace(/\s/,"T")).locale(this.$i18n.locale):null},shortMonth:function(t){return t.format("MMM").replace(".","")},returnOrder:(a=d()(o.a.mark((function t(){var e;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.isLoading=!0,t.next=4,this.$store.dispatch(c.h,{id_order:this.orderDetail.id_order});case 4:(e=t.sent)&&e.amount&&(this.amount=e.amount,this.showModalAutoReturn=!0,this.hasLiquidatedAmount=e.hasLiquidatedAmount),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.error(t.t0);case 11:return t.prev=11,this.isLoading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,this,[[0,8,11,14]])}
1))),function(){return a.apply(this,arguments)})},beforeMount:function(){var t=this;this.unsubscribe=this.$store.subscribe((function(e,s){if("ORDER_LOADED"===e.type)t.orderDetail=e.payload,t.productsDetail=t.orderDetail.detail,t.orderHistory=t.orderDetail.history,t.showAutoReturnButton=t.orderDetail.showAutoReturnButton})),this.$store.dispatch(c.J,{idOrder:this.$route.query.id_order})},beforeDestroy:function(){this.unsubscribe()}},y=D,C=(s(1633),Object(m.a)(y,(function(){var t=this,e=t._self._c;return e("div",[e("menu-user-wallet",{attrs:{selectedKey:"myOrders"}}),t._v(" "),t.orderDetail?e("div",{staticClass:"percentil-container order-detail pb-has-text-primary-black-3"},[e("p",{staticClass:"goBack pb-has-text-primary-black-3"},[e("router-link",{staticClass:"pb-has-text-primary-black-3",attrs:{to:t.$t("orders.goBackLink")}},[t._v("\n < "+t._s(t.$t("orders.goBackText"))+"\n ")])],1),t._v(" "),e("header",{staticClass:"od-head"},[e("h1",{staticClass:"is-h1 od-head__title pb-has-text-primary-black-3"},[t._v("\n "+t._s(t.$t("orders.orderNumber"))+" "+t._s(t.orderDetail.id_order)+"\n ")]),t._v(" "),t.orderDate?e("span",{staticClass:"od-head__meta is-hidden-touch"},[t._v(t._s(t.orderDate))]):t._e(),t._v(" "),t.orderDetail.payment_method_lang?e("span",{staticClass:"od-head__meta is-hidden-touch"},[t._v(t._s(t.orderDetail.payment_method_lang))]):t._e()]),t._v(" "),e("div",{staticClass:"od-chips is-hidden-touch"},[t.orderDetail.order_state_lang?e("span",{staticClass:"od-chip od-chip--state"},[t._v("\n "+t._s(t.orderDetail.order_state_lang)+"\n ")]):t._e(),t._v(" "),t.orderDetail.ecopoints_earned?e("span",{staticClass:"od-chip od-chip--eco"},[e("b-icon",{staticClass:"resize",attrs:{icon:"ecopoints",size:"is-small"}}),t._v("\n "+t._s(t.$t("orders.obtainedEcoPoints"))+"\n "+t._s(t.orderDetail.ecopoints_earned)+"\n ")],1):t._e()]),t._v(" "),e("div",{staticClass:"od-grid"},[e("div",{staticClass:"od-col"},[e("section",{staticClass:"od-card od-facts is-hidden-desktop"},[t.orderDate?e("div",{staticClass:"od-row"},[e("span",{staticClass:"od-row__label"},[t._v(t._s(t.$t("orders.detailDateLabel")))]),t._v(" "),e("span",[t._v(t._s(t.orderDate))])]):t._e(),t._v(" "),t.orderDetail.payment_method_lang?e("div",{staticClass:"od-row"},[e("span",{staticClass:"od-row__label"},[t._v(t._s(t.$t("orders.detailPaymentLabel")))]),t._v(" "),e("span",[t._v(t._s(t.orderDetail.payment_method_lang))])]):t._e(),t._v(" "),t.orderDetail.order_state_lang?e("div",{staticClass:"od-row"},[e("span",{staticClass:"od-row__label"},[t._v(t._s(t.$t("orders.detailStatusLabel")))]),t._v(" "),e("span",{staticClass:"od-chip od-chip--state"},[t._v(t._s(t.orderDetail.order_state_lang))])]):t._e(),t._v(" "),t.orderDetail.ecopoints_earned?e("p",{staticClass:"od-facts__eco"},[e("b-icon",{staticClass:"resize",attrs:{icon:"ecopoints",size:"is-small"}}),t._v("\n "+t._s(t.$t("orders.obtainedEcoPoints"))+"\n "+t._s(t.orderDetail.ecopoints_earned)+"\n ")],1):t._e()]),t._v(" "),e("section",{staticClass:"od-card"},[e("h2",{staticClass:"od-card__title"},[t._v(t._s(t.$t("orders.detailItems")))]),t._v(" "),e("ul",{staticClass:"od-items"},t._l(t.productsDetail,(function(s,a){return e("li",{key:a,staticClass:"od-item"},[e(t.productLink(s)?"a":"span",{tag:"component",staticClass:"od-item__thumb",attrs:{href:t.productLink(s)}},[e("img",{attrs:{decoding:"async",loading:"lazy",src:t.productImage(s),alt:s.name}})]),t._v(" "),e("div",{staticClass:"od-item__info"},[e("p",{staticClass:"od-item__name"},[t._v(t._s(s.name))]),t._v(" "),e("span",{staticClass:"od-item__rule",attrs:{"aria-hidden":"true"}}),t._v(" "),e("p",{staticClass:"od-item__ref"},[t._v("\n "+t._s(t.$t("orders.returnOrder.step_one.refLabel"))+"\n "+t._s(s.reference)+"\n ")]),t._v(" "),s.is_return||s.is_return_customer?e("span",{staticClass:"od-item__returned"},[t._v(t._s(t.$t("orders.returnText")))]):t._e()]),t._v(" "),e("div",{staticClass:"od-item__prices"},[s.is_discounted?e("p",{staticClass:"od-item__was"},[t._v("\n "+t._s(s.reduced_price)+"â¬\n ")]):t._e(),t._v(" "),t.discountPercent(s)?e("p",{staticClass:"od-item__off"},[t._v("\n -"+t._s(t.discountPercent(s))+"%\n ")]):t._e(),t._v(" "),e("p",{staticClass:"od-item__now",class:{"od-item__now--discounted":s.is_discounted}},[t._v("\n "+t._s(s.paid_real)+"â¬\n ")])])],1)})),0)]),t._v(" "),e("section",{staticClass:"od-card is-hidden-touch"},[e("h2",{staticClass:"od-card__title"},[t._v(t._s(t.$t("orders.detailSummary")))]),t._v(" "),e("order-summary",{attrs:{orderDetail
1:t.orderDetail}})],1),t._v(" "),t.showAutoReturnButton?e("div",{staticClass:"od-autoreturn"},[e("b-button",{staticClass:"pb-button-primary-black-3 is-block mx-auto",on:{click:function(e){return t.returnOrder()}}},[t._v("\n "+t._s(t.$t("orders.autoReturnOrder"))+"\n ")])],1):t._e()]),t._v(" "),e("div",{staticClass:"od-col"},[t.trackingSteps.length?e("section",{staticClass:"od-card"},[e("h2",{staticClass:"od-card__title"},[t._v(t._s(t.$t("orders.detailTracking")))]),t._v(" "),e("ol",{staticClass:"od-track"},t._l(t.trackingSteps,(function(s,a){return e("li",{key:a,staticClass:"od-track__step",class:{"od-track__step--return":s.isReturnPhase}},[e("span",{staticClass:"od-track__dot",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"od-track__label"},[t._v("\n "+t._s(s.label)+"\n "),s.showInfo?e("info-circle",{attrs:{"aria-label":t.$t("orders.detailFollowManaged")},on:{click:function(e){t.showPercentiTooltip=!0}}}):t._e()],1),t._v(" "),e("span",{staticClass:"od-track__date"},[t._v(t._s(s.date))])])})),0)]):t._e(),t._v(" "),e("section",{staticClass:"od-card"},[e("h2",{staticClass:"od-card__title"},[t._v(t._s(t.$t("orders.detailDelivery")))]),t._v(" "),t.orderDetail.delivery_method_lang?e("div",{staticClass:"od-row"},[e("span",{staticClass:"od-row__label"},[t._v(t._s(t.$t("orders.detailModeLabel")))]),t._v(" "),e("span",[t._v(t._s(t.orderDetail.delivery_method_lang))])]):t._e(),t._v(" "),t.orderDetail.addresses?e("order-address",{class:{"od-address--separated":t.orderDetail.delivery_method_lang},attrs:{address:t.orderDetail.addresses.address_delivery}}):t._e()],1),t._v(" "),t.hasDifferentInvoiceAddress?e("section",{staticClass:"od-card"},[e("h2",{staticClass:"od-card__title"},[t._v("\n "+t._s(t.$t("orders.detailInvoiceAddress"))+"\n ")]),t._v(" "),e("order-address",{attrs:{address:t.orderDetail.addresses.address_invoice}})],1):t._e()])]),t._v(" "),e("button",{staticClass:"od-summary-link is-hidden-desktop",attrs:{type:"button"},on:{click:function(e){t.summarySheetOpen=!0}}},[t._v("\n "+t._s(t.$t("orders.detailViewSummary"))+"\n ")])]):t._e(),t._v(" "),e("b-loading",{attrs:{"is-full-page":""},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}}),t._v(" "),e("bottom-sheet",{attrs:{"panel-class":"pb-has-background-papel","aria-label":t.$t("orders.detailSummary")},model:{value:t.summarySheetOpen,callback:function(e){t.summarySheetOpen=e},expression:"summarySheetOpen"}},[e("p",{staticClass:"od-sheet__title"},[t._v(t._s(t.$t("orders.detailSummary")))]),t._v(" "),t.orderDetail?e("order-summary",{attrs:{orderDetail:t.orderDetail}}
1):t._e()],1),t._v(" "),t.showModalAutoReturn?e("ModalAutoReturn",{attrs:{amount:t.amount,hasLiquidatedAmount:t.hasLiquidatedAmount},on:{modalAutoReturn:function(e){t.showAutoReturnButton=!1}}}):t._e(),t._v(" "),t.showPercentiTooltip?e("ModalOrderDetail",{on:{modalOrderDetail:function(e){t.showPercentiTooltip=!1}}}):t._e()],1)}),[],!1,null,"60930e05",null));e.default=C.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.