UNPKG

@ecomplus/storefront-app

Version:

Vue.js ecommerce app with cart, checkout and account pages

4 lines 70.2 kB
(this["webpackJsonp_storefront_app"]=this["webpackJsonp_storefront_app"]||[]).push([["app-confirmation"],{"04ba":function(t,e,r){"use strict";r("5026")},2392:function(t,e,r){var i=r("3c10");e=i(!1),e.push([t.i,".shipping-line>strong{display:inline-block;min-width:120px}.shipping-line>span{display:inline-block}.shipping-line>small{display:block;display:-webkit-box;line-height:var(--line-height-sm);-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--text-muted)}.active .shipping-line>small{color:inherit}",""]),t.exports=e},2498:function(t,e,r){"use strict";r("33fd")},"273f":function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"prices",class:{"prices--literal":t.isLiteral,"prices--big":t.isBig}},[t.comparePrice?r("span",{staticClass:"prices__compare"},[t.isLiteral?[r("small",[t._v(" "+t._s(t.i19from)+" ")]),r("s",[t._v(t._s(t.formatMoney(t.comparePrice)))]),r("small",[t._v(" "+t._s(t.i19to)+" ")])]:r("s",[t._v(t._s(t.formatMoney(t.comparePrice)))])],2):t._e(),r("strong",{staticClass:"prices__value"},[t.hasVariedPrices?r("small",[t._v(" "+t._s(t.i19asOf)+" ")]):t._e(),t._v(" "+t._s(t.formatMoney(t.price))+" ")]),r("transition-group",{attrs:{"enter-active-class":"animated slideInDown"}},[t.earnPointsFactor>0&&!(t.pointsMinPrice>t.price)?r("div",{key:"points",staticClass:"prices__points"},[r("i",{staticClass:"i-check-circle"}),t._v(" "+t._s(t.i19youEarn)+" "),r("span",[t._v(" +"+t._s((t.earnPointsFactor*t.price).toFixed(1))+" ")]),r("em",[t._v(t._s(t.pointsProgramName))])]):t._e(),t.installmentsNumber>1&&t.installmentValue?r("div",{key:"installments",staticClass:"prices__installments"},[t.isLiteral?r("small",[t._v(" "+t._s(t.i19upTo)+" ")]):t._e(),t._v(" "+t._s(t.installmentsNumber)+"x "),t.isLiteral?r("small",[t._v(" "+t._s(t.i19of)+" ")]):t._e(),r("span",[t._v(" "+t._s(t.formatMoney(t.installmentValue))+" ")]),!t.monthlyInterest&&t.isLiteral?r("small",[t._v(" "+t._s(t.i19interestFree)+" ")]):t._e()]):t._e(),"number"===typeof t.priceWithDiscount&&t.priceWithDiscount<t.price?r("div",{key:"discount",staticClass:"prices__discount"},["string"===typeof t.discountLabel&&t.discountLabel?[r("span",[t._v(" "+t._s(t.formatMoney(t.priceWithDiscount))+" ")]),r("small",{staticClass:"prices__discount-label"},[t._v(" "+t._s(t.discountLabel)+" ")])]:[r("small",[t._v(" "+t._s(t.i19asOf)+" ")]),r("span",[t._v(" "+t._s(t.formatMoney(t.priceWithDiscount))+" ")])]],2):t._e()])],1)},n=[],s=r("6d50"),a=r("736b"),o=r("066e"),c=r("04f2"),l=r("f1d7"),u=r("fde6");const d=(t,e)=>{const{type:r,value:i}=e;let n;if(i)return n="percentage"===r?t*(100-i)/100:t-i,n>0?n:0};var p={name:"APrices",props:{product:{type:Object,required:!0},isLiteral:Boolean,isBig:Boolean,isAmountTotal:Boolean,installmentsOption:Object,discountOption:Object,discountText:{type:[String,Boolean],default:""},canShowPriceOptions:{type:Boolean,default:!0}},data(){return{installmentsNumber:0,monthlyInterest:0,discount:{type:null,value:0},extraDiscount:{type:null,value:0,min_amount:0},discountLabel:this.discountText,pointsProgramName:null,pointsMinPrice:0,earnPointsFactor:0}},computed:{i19asOf:()=>Object(a["a"])(s["q"]),i19from:()=>Object(a["a"])(s["xb"]),i19interestFree:()=>Object(a["a"])(s["Jb"]),i19of:()=>Object(a["a"])(s["nc"]),i19to:()=>Object(a["a"])(s["td"]),i19upTo:()=>Object(a["a"])(s["Ed"]),i19youEarn:()=>Object(a["a"])(s["Ld"]),price(){const t=Object(o["a"])(this.product);return this.extraDiscount.value&&(!this.extraDiscount.min_amount||t>this.extraDiscount.min_amount)?d(t,this.extraDiscount):t},comparePrice(){return Object(c["a"])(this.product)?this.product.base_price:this.extraDiscount.value?Object(o["a"])(this.product):void 0},hasVariedPrices(){const{variations:t}=this.product;if(t){const e=Object(o["a"])(this.product);for(let r=0;r<t.length;r++){const i=Object(o["a"])({...this.product,...t[r]});if(i>e)return!0}}return!1},priceWithDiscount(){return this.canShowPriceOptions&&d(this.price,this.discount)},installmentValue(){if(this.canShowPriceOptions&&this.installmentsNumber>=2){if(this.monthlyInterest){const t=this.monthlyInterest/100;return this.price*t/(1-Math.pow(1+t,-this.installmentsNumber))}return this.price/this.installmentsNumber}return 0}},methods:{formatMoney:l["a"],updateInstallments(t){if(t){this.monthlyInterest=t.monthly_interest;const e=t.min_installment||5,r=parseInt(this.price/e,10);this.installmentsNumber=Math.min(r,t.max_number)}},updateDiscount(t){!t||t.min_amount&&!(t.min_amount<=this.price)||this.isAmountTotal&&"total"!==t.apply_at||(this.discount=t,!this.discountText&&!1!==this.discountText&&t.label&&(this.discountLabel="via "+t.label))}},watch:{price:{handler(t){this.$emit("fix-price",t)},immediate:!0}},created(){this.canShowPriceOptions&&(this.discountOption?this.updateDiscount(this.discountOption):Object(u["a"])("apply_discount").then(t=>{t.available_extra_discount&&(this.extraDiscount=t.available_extra_discount)}),this.installmentsOption?this.updateInstallments(this.installmentsOption):Object(u["a"])("list_payments").then(t=>{this.updateInstallments(t.installments_option),this.updateDiscount(t.discount_option);const e=t.loyalty_points_programs;this.isLiteral&&e&&this.$nextTick(()=>{for(const t in e){const r=e[t];if(r&&r.earn_percentage>0){this.pointsMinPrice=r.min_subtotal_to_earn,this.pointsProgramName=r.name,this.earnPointsFactor=r.earn_percentage/100;break}}})}))}},_=p,f=(r("7e95"),r("2be6")),h=Object(f["a"])(_,i,n,!1,null,null,null);e["a"]=h.exports},"2a6c":function(t,e,r){(function(t,r){var i=200,n="__lodash_hash_undefined__",s=800,a=16,o=9007199254740991,c="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",p="[object Date]",_="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",b="[object Number]",g="[object Null]",v="[object Object]",y="[object Proxy]",O="[object RegExp]",j="[object Set]",w="[object String]",k="[object Undefined]",C="[object WeakMap]",A="[object ArrayBuffer]",x="[object DataView]",S="[object Float32Array]",P="[object Float64Array]",I="[object Int8Array]",z="[object Int16Array]",$="[object Int32Array]",M="[object Uint8Array]",T="[object Uint8ClampedArray]",D="[object Uint16Array]",L="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,N=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,U={};U[S]=U[P]=U[I]=U[z]=U[$]=U[M]=U[T]=U[D]=U[L]=!0,U[c]=U[l]=U[A]=U[d]=U[x]=U[p]=U[_]=U[f]=U[m]=U[b]=U[v]=U[O]=U[j]=U[w]=U[C]=!1;var q="object"==typeof t&&t&&t.Object===Object&&t,B="object"==typeof self&&self&&self.Object===Object&&self,R=q||B||Function("return this")(),W=e&&!e.nodeType&&e,H=W&&"object"==typeof r&&r&&!r.nodeType&&r,V=H&&H.exports===W,G=V&&q.process,J=function(){try{var t=H&&H.require&&H.require("util").types;return t||G&&G.binding&&G.binding("util")}catch(e){}}(),K=J&&J.isTypedArray;function Y(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Q(t,e){var r=-1,i=Array(t);while(++r<t)i[r]=e(r);return i}function X(t){return function(e){return t(e)}}function Z(t,e){return null==t?void 0:t[e]}function tt(t,e){return function(r){return t(e(r))}}var et=Array.prototype,rt=Function.prototype,it=Object.prototype,nt=R["__core-js_shared__"],st=rt.toString,at=it.hasOwnProperty,ot=function(){var t=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ct=it.toString,lt=st.call(Object),ut=RegExp("^"+st.call(at).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=V?R.Buffer:void 0,pt=R.Symbol,_t=R.Uint8Array,ft=dt?dt.allocUnsafe:void 0,ht=tt(Object.getPrototypeOf,Object),mt=Object.create,bt=it.propertyIsEnumerable,gt=et.splice,vt=pt?pt.toStringTag:void 0,yt=function(){try{var t=ye(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Ot=dt?dt.isBuffer:void 0,jt=Math.max,wt=Date.now,kt=ye(R,"Map"),Ct=ye(Object,"create"),At=function(){function t(){}return function(e){if(!Re(e))return{};if(mt)return mt(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function xt(t){var e=-1,r=null==t?0:t.length;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}function St(){this.__data__=Ct?Ct(null):{},this.size=0}function Pt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function It(t){var e=this.__data__;if(Ct){var r=e[t];return r===n?void 0:r}return at.call(e,t)?e[t]:void 0}function zt(t){var e=this.__data__;return Ct?void 0!==e[t]:at.call(e,t)}function $t(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ct&&void 0===e?n:e,this}function Mt(t){var e=-1,r=null==t?0:t.length;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}function Tt(){this.__data__=[],this.size=0}function Dt(t){var e=this.__data__,r=te(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():gt.call(e,r,1),--this.size,!0}function Lt(t){var e=this.__data__,r=te(e,t);return r<0?void 0:e[r][1]}function Ft(t){return te(this.__data__,t)>-1}function Nt(t,e){var r=this.__data__,i=te(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}function Et(t){var e=-1,r=null==t?0:t.length;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}function Ut(){this.size=0,this.__data__={hash:new xt,map:new(kt||Mt),string:new xt}}function qt(t){var e=ve(this,t)["delete"](t);return this.size-=e?1:0,e}function Bt(t){return ve(this,t).get(t)}function Rt(t){return ve(this,t).has(t)}function Wt(t,e){var r=ve(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}function Ht(t){var e=this.__data__=new Mt(t);this.size=e.size}function Vt(){this.__data__=new Mt,this.size=0}function Gt(t){var e=this.__data__,r=e["delete"](t);return this.size=e.size,r}function Jt(t){return this.__data__.get(t)}function Kt(t){return this.__data__.has(t)}function Yt(t,e){var r=this.__data__;if(r instanceof Mt){var n=r.__data__;if(!kt||n.length<i-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Et(n)}return r.set(t,e),this.size=r.size,this}function Qt(t,e){var r=Fe(t),i=!r&&Le(t),n=!r&&!i&&Ue(t),s=!r&&!i&&!n&&Ve(t),a=r||i||n||s,o=a?Q(t.length,String):[],c=o.length;for(var l in t)!e&&!at.call(t,l)||a&&("length"==l||n&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||we(l,c))||o.push(l);return o}function Xt(t,e,r){(void 0!==r&&!De(t[e],r)||void 0===r&&!(e in t))&&ee(t,e,r)}function Zt(t,e,r){var i=t[e];at.call(t,e)&&De(i,r)&&(void 0!==r||e in t)||ee(t,e,r)}function te(t,e){var r=t.length;while(r--)if(De(t[r][0],e))return r;return-1}function ee(t,e,r){"__proto__"==e&&yt?yt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}xt.prototype.clear=St,xt.prototype["delete"]=Pt,xt.prototype.get=It,xt.prototype.has=zt,xt.prototype.set=$t,Mt.prototype.clear=Tt,Mt.prototype["delete"]=Dt,Mt.prototype.get=Lt,Mt.prototype.has=Ft,Mt.prototype.set=Nt,Et.prototype.clear=Ut,Et.prototype["delete"]=qt,Et.prototype.get=Bt,Et.prototype.has=Rt,Et.prototype.set=Wt,Ht.prototype.clear=Vt,Ht.prototype["delete"]=Gt,Ht.prototype.get=Jt,Ht.prototype.has=Kt,Ht.prototype.set=Yt;var re=ge();function ie(t){return null==t?void 0===t?k:g:vt&&vt in Object(t)?Oe(t):Pe(t)}function ne(t){return We(t)&&ie(t)==c}function se(t){if(!Re(t)||Ae(t))return!1;var e=qe(t)?ut:N;return e.test(Te(t))}function ae(t){return We(t)&&Be(t.length)&&!!U[ie(t)]}function oe(t){if(!Re(t))return Se(t);var e=xe(t),r=[];for(var i in t)("constructor"!=i||!e&&at.call(t,i))&&r.push(i);return r}function ce(t,e,r,i,n){t!==e&&re(e,(function(s,a){if(n||(n=new Ht),Re(s))le(t,e,a,r,ce,i,n);else{var o=i?i(ze(t,a),s,a+"",t,e,n):void 0;void 0===o&&(o=s),Xt(t,a,o)}}),Je)}function le(t,e,r,i,n,s,a){var o=ze(t,r),c=ze(e,r),l=a.get(c);if(l)Xt(t,r,l);else{var u=s?s(o,c,r+"",t,e,a):void 0,d=void 0===u;if(d){var p=Fe(c),_=!p&&Ue(c),f=!p&&!_&&Ve(c);u=c,p||_||f?Fe(o)?u=o:Ee(o)?u=he(o):_?(d=!1,u=pe(c,!0)):f?(d=!1,u=fe(c,!0)):u=[]:He(c)||Le(c)?(u=o,Le(o)?u=Ge(o):Re(o)&&!qe(o)||(u=je(c))):d=!1}d&&(a.set(c,u),n(u,c,i,s,a),a["delete"](c)),Xt(t,r,u)}}function ue(t,e){return $e(Ie(t,e,Qe),t+"")}var de=yt?function(t,e){return yt(t,"toString",{configurable:!0,enumerable:!1,value:Ye(e),writable:!0})}:Qe;function pe(t,e){if(e)return t.slice();var r=t.length,i=ft?ft(r):new t.constructor(r);return t.copy(i),i}function _e(t){var e=new t.constructor(t.byteLength);return new _t(e).set(new _t(t)),e}function fe(t,e){var r=e?_e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function he(t,e){var r=-1,i=t.length;e||(e=Array(i));while(++r<i)e[r]=t[r];return e}function me(t,e,r,i){var n=!r;r||(r={});var s=-1,a=e.length;while(++s<a){var o=e[s],c=i?i(r[o],t[o],o,r,t):void 0;void 0===c&&(c=t[o]),n?ee(r,o,c):Zt(r,o,c)}return r}function be(t){return ue((function(e,r){var i=-1,n=r.length,s=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;s=t.length>3&&"function"==typeof s?(n--,s):void 0,a&&ke(r[0],r[1],a)&&(s=n<3?void 0:s,n=1),e=Object(e);while(++i<n){var o=r[i];o&&t(e,o,i,s)}return e}))}function ge(t){return function(e,r,i){var n=-1,s=Object(e),a=i(e),o=a.length;while(o--){var c=a[t?o:++n];if(!1===r(s[c],c,s))break}return e}}function ve(t,e){var r=t.__data__;return Ce(e)?r["string"==typeof e?"string":"hash"]:r.map}function ye(t,e){var r=Z(t,e);return se(r)?r:void 0}function Oe(t){var e=at.call(t,vt),r=t[vt];try{t[vt]=void 0;var i=!0}catch(s){}var n=ct.call(t);return i&&(e?t[vt]=r:delete t[vt]),n}function je(t){return"function"!=typeof t.constructor||xe(t)?{}:At(ht(t))}function we(t,e){var r=typeof t;return e=null==e?o:e,!!e&&("number"==r||"symbol"!=r&&E.test(t))&&t>-1&&t%1==0&&t<e}function ke(t,e,r){if(!Re(r))return!1;var i=typeof e;return!!("number"==i?Ne(r)&&we(e,r.length):"string"==i&&e in r)&&De(r[e],t)}function Ce(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Ae(t){return!!ot&&ot in t}function xe(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||it;return t===r}function Se(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}function Pe(t){return ct.call(t)}function Ie(t,e,r){return e=jt(void 0===e?t.length-1:e,0),function(){var i=arguments,n=-1,s=jt(i.length-e,0),a=Array(s);while(++n<s)a[n]=i[e+n];n=-1;var o=Array(e+1);while(++n<e)o[n]=i[n];return o[e]=r(a),Y(t,this,o)}}function ze(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var $e=Me(de);function Me(t){var e=0,r=0;return function(){var i=wt(),n=a-(i-r);if(r=i,n>0){if(++e>=s)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Te(t){if(null!=t){try{return st.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function De(t,e){return t===e||t!==t&&e!==e}var Le=ne(function(){return arguments}())?ne:function(t){return We(t)&&at.call(t,"callee")&&!bt.call(t,"callee")},Fe=Array.isArray;function Ne(t){return null!=t&&Be(t.length)&&!qe(t)}function Ee(t){return We(t)&&Ne(t)}var Ue=Ot||Xe;function qe(t){if(!Re(t))return!1;var e=ie(t);return e==f||e==h||e==u||e==y}function Be(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Re(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function We(t){return null!=t&&"object"==typeof t}function He(t){if(!We(t)||ie(t)!=v)return!1;var e=ht(t);if(null===e)return!0;var r=at.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&st.call(r)==lt}var Ve=K?X(K):ae;function Ge(t){return me(t,Je(t))}function Je(t){return Ne(t)?Qt(t,!0):oe(t)}var Ke=be((function(t,e,r){ce(t,e,r)}));function Ye(t){return function(){return t}}function Qe(t){return t}function Xe(){return!1}r.exports=Ke}).call(this,r("7d15"),r("6984")(t))},"2e36":function(t,e,r){"use strict";r("aa31")},3171:function(t,e,r){"use strict";r.r(e);var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"confirmation"}},[r("ec-order-info",{attrs:{order:t.order,isNew:!0},on:{"update:order":function(e){t.order=e}}})],1)},n=[],s=r("9ce4"),a=r("4fac"),o=r("498e"),c=r("e0f7"),l=r("e2a0"),u={name:"confirmation",components:{EcOrderInfo:l["a"]},data(){return{canUpsertCart:!0}},computed:{...Object(s["c"])(["orders","customer"]),orderId(){return this.$route.params.id},order:{get(){return this.orders.find(({_id:t})=>t===this.orderId)||{_id:this.orderId}},set(t){if(t&&t._id===this.orderId){const e=this.orders.concat(),r=e.find(({_id:e})=>e===t._id);r?Object.assign(r,t):e.push(t),this.setOrders(e),this.$route.params.json||this.$router.push({params:{json:encodeURIComponent(JSON.stringify(t))}})}}}},methods:{...Object(s["d"])(["addOrder","setOrders","resetCart"]),...Object(s["b"])(["saveCustomer"]),handleUpsertCart(){if(this.canUpsertCart){this.canUpsertCart=!1;const{status:t}=this.order;t&&"cancelled"!==t&&(a["a"].data.completed=!0,this.orderId&&(a["a"].data.orders||(a["a"].data.orders=[]),a["a"].data.orders.push(this.orderId)),Object(c["c"])().then(this.resetCart))}}},created(){const{customer:t}=this;o["a"].checkAuthorization()||t.main_email&&t.doc_number&&o["a"].fetchLogin(t.main_email,t.doc_number).then(()=>{this.saveCustomer({ecomPassport:o["a"]}),this.handleUpsertCart()})},mounted(){o["a"].checkAuthorization()&&this.handleUpsertCart()}},d=u,p=r("2be6"),_=Object(p["a"])(d,i,n,!1,null,null,null);e["default"]=_.exports},"33fd":function(t,e,r){var i=r("373f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("0ed3").default;n("467d49f4",i,!0,{sourceMap:!1,shadowMode:!1})},"373f":function(t,e,r){var i=r("3c10");e=i(!1),e.push([t.i,".order-info__number{color:var(--secondary);margin-top:var(--spacer-2);font-weight:var(--font-light)}.order-info__number span{font-weight:var(--font-bold)}.order-info__number small{color:var(--gray);font-size:var(--font-size-sm);display:block}.order-info__timeline{list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;padding:0;margin:var(--spacer-4) 0;font-size:var(--font-size-sm)}@media(min-width:768px){.order-info__timeline{display:block}}.order-info__timeline-status{padding:var(--spacer-2);margin-right:var(--spacer-1);min-width:165px;border-width:0;border-bottom-width:5px;border-style:solid;border-color:var(--border-color)}@media(min-width:768px){.order-info__timeline-status{padding-left:var(--spacer-3);margin-right:0;margin-bottom:var(--spacer-1);min-width:0;border-bottom-width:0;border-left-width:5px}}.order-info__timeline-status--pending,.order-info__timeline-status--under_analysis{border-color:var(--warning)}.order-info__timeline-status--shipped{border-color:var(--info)}.order-info__timeline-status--in_dispute,.order-info__timeline-status--unauthorized,.order-info__timeline-status--voided{border-color:var(--danger)}.order-info__timeline-status--delivered,.order-info__timeline-status--paid{border-color:var(--success)}.order-info__timeline-date{font-size:85%;color:var(--text-muted)}.order-info__details:not(:first-child){margin-top:var(--spacer-4)}.order-info__payment,.order-info__shipping-address,.order-info__shipping-freight{margin-bottom:var(--spacer-3)}.order-info__financial-status,.order-info__fulfillment-status{font-weight:var(--font-bold);color:var(--info)}.order-info__financial-status--pending{color:var(--warning)}.order-info__financial-status--under_analysis{color:var(--info)}.order-info__financial-status--in_dispute,.order-info__financial-status--unauthorized,.order-info__financial-status--voided{color:var(--danger)}.order-info__financial-status--paid,.order-info__fulfillment-status--delivered,.order-info__new{color:var(--success)}.order-info__new{text-align:center;font-size:var(--font-size-lg);margin-bottom:var(--spacer-5)}.order-info__orders-link{margin-left:auto;margin-top:var(--spacer-4)}.order-info__summary{background:var(--light);margin-bottom:var(--spacer-3)}.order-info__buy-again{display:block;margin-left:auto;margin-right:auto;margin-top:var(--spacer-3)}.order-info__toggle,.order-info__unsubscribe{display:block;margin-left:auto;margin-top:var(--spacer-5)}.order-info__cancelled{color:var(--danger)}.order-info__valid-thru{width:100%;max-width:310px;display:flex;background-color:var(--danger);padding:var(--spacer-2);color:var(--danger-yiq);border-radius:var(--border-radius);line-height:1.2}",""]),t.exports=e},"3a0b":function(t,e,r){(function(t,r){var i=200,n="__lodash_hash_undefined__",s=9007199254740991,a="[object Arguments]",o="[object Array]",c="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",p="[object GeneratorFunction]",_="[object Map]",f="[object Number]",h="[object Object]",m="[object Promise]",b="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",O="[object WeakMap]",j="[object ArrayBuffer]",w="[object DataView]",k="[object Float32Array]",C="[object Float64Array]",A="[object Int8Array]",x="[object Int16Array]",S="[object Int32Array]",P="[object Uint8Array]",I="[object Uint8ClampedArray]",z="[object Uint16Array]",$="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,T=/\w*$/,D=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,F={};F[a]=F[o]=F[j]=F[w]=F[c]=F[l]=F[k]=F[C]=F[A]=F[x]=F[S]=F[_]=F[f]=F[h]=F[b]=F[g]=F[v]=F[y]=F[P]=F[I]=F[z]=F[$]=!0,F[u]=F[d]=F[O]=!1;var N="object"==typeof t&&t&&t.Object===Object&&t,E="object"==typeof self&&self&&self.Object===Object&&self,U=N||E||Function("return this")(),q=e&&!e.nodeType&&e,B=q&&"object"==typeof r&&r&&!r.nodeType&&r,R=B&&B.exports===q;function W(t,e){return t.set(e[0],e[1]),t}function H(t,e){return t.add(e),t}function V(t,e){var r=-1,i=t?t.length:0;while(++r<i)if(!1===e(t[r],r,t))break;return t}function G(t,e){var r=-1,i=e.length,n=t.length;while(++r<i)t[n+r]=e[r];return t}function J(t,e,r,i){var n=-1,s=t?t.length:0;i&&s&&(r=t[++n]);while(++n<s)r=e(r,t[n],n,t);return r}function K(t,e){var r=-1,i=Array(t);while(++r<t)i[r]=e(r);return i}function Y(t,e){return null==t?void 0:t[e]}function Q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}function X(t){var e=-1,r=Array(t.size);return t.forEach((function(t,i){r[++e]=[i,t]})),r}function Z(t,e){return function(r){return t(e(r))}}function tt(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var et=Array.prototype,rt=Function.prototype,it=Object.prototype,nt=U["__core-js_shared__"],st=function(){var t=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),at=rt.toString,ot=it.hasOwnProperty,ct=it.toString,lt=RegExp("^"+at.call(ot).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=R?U.Buffer:void 0,dt=U.Symbol,pt=U.Uint8Array,_t=Z(Object.getPrototypeOf,Object),ft=Object.create,ht=it.propertyIsEnumerable,mt=et.splice,bt=Object.getOwnPropertySymbols,gt=ut?ut.isBuffer:void 0,vt=Z(Object.keys,Object),yt=Ae(U,"DataView"),Ot=Ae(U,"Map"),jt=Ae(U,"Promise"),wt=Ae(U,"Set"),kt=Ae(U,"WeakMap"),Ct=Ae(Object,"create"),At=Le(yt),xt=Le(Ot),St=Le(jt),Pt=Le(wt),It=Le(kt),zt=dt?dt.prototype:void 0,$t=zt?zt.valueOf:void 0;function Mt(t){var e=-1,r=t?t.length:0;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}function Tt(){this.__data__=Ct?Ct(null):{}}function Dt(t){return this.has(t)&&delete this.__data__[t]}function Lt(t){var e=this.__data__;if(Ct){var r=e[t];return r===n?void 0:r}return ot.call(e,t)?e[t]:void 0}function Ft(t){var e=this.__data__;return Ct?void 0!==e[t]:ot.call(e,t)}function Nt(t,e){var r=this.__data__;return r[t]=Ct&&void 0===e?n:e,this}function Et(t){var e=-1,r=t?t.length:0;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}function Ut(){this.__data__=[]}function qt(t){var e=this.__data__,r=se(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():mt.call(e,r,1),!0}function Bt(t){var e=this.__data__,r=se(e,t);return r<0?void 0:e[r][1]}function Rt(t){return se(this.__data__,t)>-1}function Wt(t,e){var r=this.__data__,i=se(r,t);return i<0?r.push([t,e]):r[i][1]=e,this}function Ht(t){var e=-1,r=t?t.length:0;this.clear();while(++e<r){var i=t[e];this.set(i[0],i[1])}}function Vt(){this.__data__={hash:new Mt,map:new(Ot||Et),string:new Mt}}function Gt(t){return Ce(this,t)["delete"](t)}function Jt(t){return Ce(this,t).get(t)}function Kt(t){return Ce(this,t).has(t)}function Yt(t,e){return Ce(this,t).set(t,e),this}function Qt(t){this.__data__=new Et(t)}function Xt(){this.__data__=new Et}function Zt(t){return this.__data__["delete"](t)}function te(t){return this.__data__.get(t)}function ee(t){return this.__data__.has(t)}function re(t,e){var r=this.__data__;if(r instanceof Et){var n=r.__data__;if(!Ot||n.length<i-1)return n.push([t,e]),this;r=this.__data__=new Ht(n)}return r.set(t,e),this}function ie(t,e){var r=Ue(t)||Ee(t)?K(t.length,String):[],i=r.length,n=!!i;for(var s in t)!e&&!ot.call(t,s)||n&&("length"==s||$e(s,i))||r.push(s);return r}function ne(t,e,r){var i=t[e];ot.call(t,e)&&Ne(i,r)&&(void 0!==r||e in t)||(t[e]=r)}function se(t,e){var r=t.length;while(r--)if(Ne(t[r][0],e))return r;return-1}function ae(t,e){return t&&je(e,Je(e),t)}function oe(t,e,r,i,n,s,o){var c;if(i&&(c=s?i(t,n,s,o):i(t)),void 0!==c)return c;if(!Ve(t))return t;var l=Ue(t);if(l){if(c=Pe(t),!e)return Oe(t,c)}else{var u=Se(t),_=u==d||u==p;if(Re(t))return _e(t,e);if(u==h||u==a||_&&!s){if(Q(t))return s?t:{};if(c=Ie(_?{}:t),!e)return we(t,ae(c,t))}else{if(!F[u])return s?t:{};c=ze(t,u,oe,e)}}o||(o=new Qt);var f=o.get(t);if(f)return f;if(o.set(t,c),!l)var m=r?ke(t):Je(t);return V(m||t,(function(n,s){m&&(s=n,n=t[s]),ne(c,s,oe(n,e,r,i,s,t,o))})),c}function ce(t){return Ve(t)?ft(t):{}}function le(t,e,r){var i=e(t);return Ue(t)?i:G(i,r(t))}function ue(t){return ct.call(t)}function de(t){if(!Ve(t)||Te(t))return!1;var e=We(t)||Q(t)?lt:D;return e.test(Le(t))}function pe(t){if(!De(t))return vt(t);var e=[];for(var r in Object(t))ot.call(t,r)&&"constructor"!=r&&e.push(r);return e}function _e(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function fe(t){var e=new t.constructor(t.byteLength);return new pt(e).set(new pt(t)),e}function he(t,e){var r=e?fe(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function me(t,e,r){var i=e?r(X(t),!0):X(t);return J(i,W,new t.constructor)}function be(t){var e=new t.constructor(t.source,T.exec(t));return e.lastIndex=t.lastIndex,e}function ge(t,e,r){var i=e?r(tt(t),!0):tt(t);return J(i,H,new t.constructor)}function ve(t){return $t?Object($t.call(t)):{}}function ye(t,e){var r=e?fe(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Oe(t,e){var r=-1,i=t.length;e||(e=Array(i));while(++r<i)e[r]=t[r];return e}function je(t,e,r,i){r||(r={});var n=-1,s=e.length;while(++n<s){var a=e[n],o=i?i(r[a],t[a],a,r,t):void 0;ne(r,a,void 0===o?t[a]:o)}return r}function we(t,e){return je(t,xe(t),e)}function ke(t){return le(t,Je,xe)}function Ce(t,e){var r=t.__data__;return Me(e)?r["string"==typeof e?"string":"hash"]:r.map}function Ae(t,e){var r=Y(t,e);return de(r)?r:void 0}Mt.prototype.clear=Tt,Mt.prototype["delete"]=Dt,Mt.prototype.get=Lt,Mt.prototype.has=Ft,Mt.prototype.set=Nt,Et.prototype.clear=Ut,Et.prototype["delete"]=qt,Et.prototype.get=Bt,Et.prototype.has=Rt,Et.prototype.set=Wt,Ht.prototype.clear=Vt,Ht.prototype["delete"]=Gt,Ht.prototype.get=Jt,Ht.prototype.has=Kt,Ht.prototype.set=Yt,Qt.prototype.clear=Xt,Qt.prototype["delete"]=Zt,Qt.prototype.get=te,Qt.prototype.has=ee,Qt.prototype.set=re;var xe=bt?Z(bt,Object):Ke,Se=ue;function Pe(t){var e=t.length,r=t.constructor(e);return e&&"string"==typeof t[0]&&ot.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Ie(t){return"function"!=typeof t.constructor||De(t)?{}:ce(_t(t))}function ze(t,e,r,i){var n=t.constructor;switch(e){case j:return fe(t);case c:case l:return new n(+t);case w:return he(t,i);case k:case C:case A:case x:case S:case P:case I:case z:case $:return ye(t,i);case _:return me(t,i,r);case f:case v:return new n(t);case b:return be(t);case g:return ge(t,i,r);case y:return ve(t)}}function $e(t,e){return e=null==e?s:e,!!e&&("number"==typeof t||L.test(t))&&t>-1&&t%1==0&&t<e}function Me(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Te(t){return!!st&&st in t}function De(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||it;return t===r}function Le(t){if(null!=t){try{return at.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Fe(t){return oe(t,!0,!0)}function Ne(t,e){return t===e||t!==t&&e!==e}function Ee(t){return Be(t)&&ot.call(t,"callee")&&(!ht.call(t,"callee")||ct.call(t)==a)}(yt&&Se(new yt(new ArrayBuffer(1)))!=w||Ot&&Se(new Ot)!=_||jt&&Se(jt.resolve())!=m||wt&&Se(new wt)!=g||kt&&Se(new kt)!=O)&&(Se=function(t){var e=ct.call(t),r=e==h?t.constructor:void 0,i=r?Le(r):void 0;if(i)switch(i){case At:return w;case xt:return _;case St:return m;case Pt:return g;case It:return O}return e});var Ue=Array.isArray;function qe(t){return null!=t&&He(t.length)&&!We(t)}function Be(t){return Ge(t)&&qe(t)}var Re=gt||Ye;function We(t){var e=Ve(t)?ct.call(t):"";return e==d||e==p}function He(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function Ve(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ge(t){return!!t&&"object"==typeof t}function Je(t){return qe(t)?ie(t):pe(t)}function Ke(){return[]}function Ye(){return!1}r.exports=Fe}).call(this,r("7d15"),r("6984")(t))},"3c96":function(t,e,r){"use strict";r("3e34")},"3e34":function(t,e,r){var i=r("4203");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("0ed3").default;n("41989cc6",i,!0,{sourceMap:!1,shadowMode:!1})},4203:function(t,e,r){var i=r("3c10");e=i(!1),e.push([t.i,".summary__item{display:flex;align-items:flex-start;overflow-x:hidden;margin-bottom:.5rem}.summary__item a{color:inherit}.summary__item picture{flex:0 0 70px;width:70px;height:auto;margin-right:.5rem}.summary__item picture img{border-radius:var(--border-radius)}.summary__item small{line-height:1.3;display:inline-block}.summary__amount{margin:1rem 0 1.5rem;padding:.75rem 0;border-top:1px dotted var(--gray)}.summary__amount:last-child{margin-bottom:0;padding-bottom:0}.summary__amount__row{display:flex;justify-content:space-between;align-items:center;margin-top:.25rem}.summary__amount__row>span{font-weight:300}.summary__amount__row>span small{display:block;line-height:1.15;color:var(--gray)}.summary__amount__row--total{margin-top:.5rem;font-size:1.25rem}.summary__amount__row--total>div{font-weight:700}.summary__amount__row--total strong{color:var(--secondary)}.summary .prices{text-align:right}",""]),t.exports=e},4724:function(t,e,r){var i=r("617e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("0ed3").default;n("616bd18e",i,!0,{sourceMap:!1,shadowMode:!1})},5026:function(t,e,r){var i=r("d173");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("0ed3").default;n("3dea8d83",i,!0,{sourceMap:!1,shadowMode:!1})},"617e":function(t,e,r){var i=r("3c10");e=i(!1),e.push([t.i,".prices{line-height:var(--line-height-sm)}.prices small:not(.prices__discount-label){text-transform:lowercase}.prices:not(.prices--big){font-size:var(--font-size-sm)}.prices:not(.prices--big) .prices__installments{font-weight:var(--font-light)}.prices__value{display:block;font-size:var(--font-size-lg)}.prices__value small{font-size:var(--font-size-sm)}.prices--big{font-size:var(--font-size)}.prices--big .prices__value{font-size:var(--h1);margin-bottom:var(--spacer-1)}.prices--literal .prices__discount span,.prices--literal .prices__installments span{font-weight:var(--font-bold)}.prices--literal small{font-size:100%}.prices__points{margin-bottom:var(--spacer-2);color:var(--secondary)}.prices:not(.prices--literal) .prices__compare{color:var(--gray)}",""]),t.exports=e},6984:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"7e95":function(t,e,r){"use strict";r("4724")},8225:function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("article",{staticClass:"summary"},[r("h5",{staticClass:"summary__title"},[t._v(" "+t._s(t.i19summary)+" ")]),t._t("list",(function(){return[t.items?r("div",{staticClass:"summary__list"},t._l(t.items,(function(e){return e.quantity>0?r("div",{key:e._id,staticClass:"summary__item"},[t.getImg(e)?r("a-picture",{attrs:{src:t.getImg(e).url,alt:t.getImg(e).alt||e.name}}):t._e(),r("div",[r("span",{staticClass:"badge badge-secondary"},[t._v(" "+t._s(e.quantity)+" ")]),Array.isArray(e.flags)&&e.flags.includes("freebie")?[r("s",[t._v(t._s(t.formatMoney(t.getPrice(e))))]),r("small",{staticClass:"text-muted"},[r("i",{staticClass:"i-gift ml-2 mr-1"}),t._v(" "+t._s(t.i19freebie)+" ")])]:[t._v(" "+t._s(t.formatMoney(t.getPrice(e)))+" ")],r("br"),e.slug?r("a-link",{attrs:{href:"/"+e.slug,target:"_blank"}},[r("small",[t._v(t._s(t.getName(e)))])]):r("small",[t._v(" "+t._s(t.getName(e))+" ")]),r("item-customizations",{attrs:{item:e}})],2)],1):t._e()})),0):t._e()]})),t._t("more-offers"),t._t("amount",(function(){return[r("div",{staticClass:"summary__amount"},[r("div",{staticClass:"summary__amount__row",attrs:{"data-subtotal":t.amount.subtotal.toFixed(2)}},[r("span",[t._v(t._s(t.i19subtotal))]),r("div",[t._v(t._s(t.formatMoney(t.amount.subtotal)))])]),r("div",{staticClass:"summary__amount__row",attrs:{"data-freight":t.amount.freight.toFixed(2)}},[r("span",[t._v(" "+t._s(t.i19freight)+" "),t.shippingAddress?r("small",[t._v(" "+t._s(t.shippingAddress.street)+" "),t.shippingAddress.number?[t._v(" "+t._s(t.shippingAddress.number)+" ")]:t._e(),t._v(" "+t._s(t.shippingAddress.city)+" "+t._s(t.shippingAddress.province_code)+" ")],2):t._e()]),r("div",[t._v(t._s(t.formatMoney(t.amount.freight)))])]),t.amount.discount?r("div",{staticClass:"summary__amount__row",attrs:{"data-discount":t.amount.discount.toFixed(2)}},[r("span",[t._v(t._s(t.i19discount))]),r("div",[t._v(t._s(t.formatMoney(t.amount.discount)))])]):t._e(),t.amount.balance?r("div",{staticClass:"summary__amount__row",attrs:{"data-balance":t.amount.balance.toFixed(2)}},[r("span",[t._v(t._s(t.i19balanceOrPoints))]),r("div",[t._v(t._s(t.formatMoney(t.amount.balance)))])]):t._e(),t.paidInAdvance>0?r("div",{staticClass:"summary__amount__row"},[r("span",[t._v(t._s(t.i19total))]),r("div",[t._v(t._s(t.formatMoney(t.amount.total)))])]):t._e(),t._t("amount-custom"),r("div",{staticClass:"summary__amount__row summary__amount__row--total",attrs:{"data-total":t.amountToPay.toFixed(2)}},[r("span",[t._v(t._s(t.paidInAdvance?t.i19toPay:t.i19total))]),r("a-prices",{attrs:{product:{price:t.amountToPay},"discount-option":{value:t.amount.discount},"is-literal":!0,"is-amount-total":!0,"can-show-price-options":t.canShowPriceOptions}})],1)],2)]})),t._t("default"),t._t("buyer",(function(){return[t.buyer?r("div",{staticClass:"summary__buyer"},[r("h5",[t._v(t._s(t.i19buyer))]),r("p",[t._v(" "+t._s(t.buyerName)+" "),r("br"),r("small",[t._v(t._s(t.i19docNumber)+":")]),r("span",[t._v(t._s(t.buyer.doc_number))]),r("br"),r("small",[t._v(t._s(t.i19contactPhone)+":")]),r("span",[t._v(t._s(t.buyerPhone))]),r("br"),r("small",[t._v(t._s(t.buyer.main_email))])]),r("button",{staticClass:"btn btn-sm btn-outline-secondary",attrs:{type:"button"},on:{click:function(e){return t.$emit("click:account")}}},[r("i",{staticClass:"i-pencil mr-1"}),t._v(" "+t._s(t.i19myAccount)+" ")])]):t._e()]}))],2)},n=[],s=r("6d50"),a=r("736b"),o=r("60e9"),c=r("07c1"),l=r("066e"),u=r("f1d7"),d=r("9047"),p=r("cd83"),_=r("f063"),f=r("273f"),h=r("fcf8"),m={name:"EcSummary",components:{ALink:p["a"],APicture:_["a"],APrices:f["a"],ItemCustomizations:h["a"]},props:{amount:{type:Object,required:!0},items:Array,buyer:Object,shippingAddress:Object,canShowPriceOptions:Boolean,paidInAdvance:{type:Number,default:0}},computed:{i19balanceOrPoints:()=>Object(a["a"])(s["t"]),i19buyer:()=>Object(a["a"])(s["B"]),i19contactPhone:()=>Object(a["a"])(s["S"]),i19discount:()=>Object(a["a"])(s["bb"]),i19docNumber:()=>Object(a["a"])(s["fb"]),i19freebie:()=>Object(a["a"])(s["vb"]),i19freight:()=>Object(a["a"])(s["wb"]),i19myAccount:()=>Object(a["a"])(s["ac"]),i19subtotal:()=>Object(a["a"])(s["qd"]),i19summary:()=>Object(a["a"])(s["rd"]),i19toPay:()=>Object(a["a"])(s["ud"]),i19total:()=>Object(a["a"])(s["vd"]),amountToPay(){return this.amount.total-this.paidInAdvance},buyerName(){if(!this.buyer||!this.buyer.name)return"";const{name:t}=this.buyer;return`${t.given_name} ${t.middle_name||""} ${t.family_name}`},buyerPhone(){const t=Object(o["a"])(this.buyer);return t&&/000\d{2}/.test(t)?t.replace("000","***"):t}},methods:{getName:c["a"],getPrice:l["a"],formatMoney:u["a"],getImg:t=>Object(d["a"])(t,null,"small")}},b=m,g=(r("3c96"),r("2be6")),v=Object(g["a"])(b,i,n,!1,null,null,null);e["a"]=v.exports},aa31:function(t,e,r){var i=r("2392");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("0ed3").default;n("7380f10e",i,!0,{sourceMap:!1,shadowMode:!1})},b465:function(t,e,r){"use strict"; /*! lozad.js - v1.16.0 - 2020-09-06 * https://github.com/ApoorvSaxena/lozad.js * Copyright (c) 2020 Apoorv Saxena; Licensed MIT */const i="undefined"!==typeof document&&document.documentMode,n={rootMargin:"0px",threshold:0,load(t){if("picture"===t.nodeName.toLowerCase()){let e=t.querySelector("img"),r=!1;null===e&&(e=document.createElement("img"),r=!0),i&&t.getAttribute("data-iesrc")&&(e.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(e.alt=t.getAttribute("data-alt")),r&&t.append(e)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){const e=t.children;let r;for(let t=0;t<=e.length-1;t++)r=e[t].getAttribute("data-src"),r&&(e[t].src=r);t.load()}t.getAttribute("data-poster")&&(t.poster=t.getAttribute("data-poster")),t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset"));let e=",";if(t.getAttribute("data-background-delimiter")&&(e=t.getAttribute("data-background-delimiter")),t.getAttribute("data-background-image"))t.style.backgroundImage=`url('${t.getAttribute("data-background-image").split(e).join("'),url('")}')`;else if(t.getAttribute("data-background-image-set")){const r=t.getAttribute("data-background-image-set").split(e);let i=r[0].substr(0,r[0].indexOf(" "))||r[0];i=-1===i.indexOf("url(")?`url(${i})`:i,1===r.length?t.style.backgroundImage=i:t.setAttribute("style",(t.getAttribute("style")||"")+`background-image: ${i}; background-image: -webkit-image-set(${r}); background-image: image-set(${r})`)}t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded(){}};function s(t){t.setAttribute("data-loaded",!0)}function a(t){t.getAttribute("data-placeholder-background")&&(t.style.background=t.getAttribute("data-placeholder-background"))}const o=t=>"true"===t.getAttribute("data-loaded"),c=(t,e)=>(r,i)=>{r.forEach(r=>{(r.intersectionRatio>0||r.isIntersecting)&&(i.unobserve(r.target),o(r.target)||(t(r.target),s(r.target),e(r.target)))})},l=(t,e=document)=>t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t);function u(t=".lozad",e={}){const{root:r,rootMargin:i,threshold:u,load:d,loaded:p}=Object.assign({},n,e);let _;"undefined"!==typeof window&&window.IntersectionObserver&&(_=new IntersectionObserver(c(d,p),{root:r,rootMargin:i,threshold:u}));const f=l(t,r);for(let n=0;n<f.length;n++)a(f[n]);return{observe(){const e=l(t,r);for(let t=0;t<e.length;t++)o(e[t])||(_?_.observe(e[t]):(d(e[t]),s(e[t]),p(e[t])))},triggerLoad(t){o(t)||(d(t),s(t),p(t))},observer:_}}e["a"]=u},cd83:function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(t.isRouter?"router-link":"a",{tag:"component",attrs:{href:t.isRouter?null:t.href,to:t.isRouter?t.to||t.href:null}},[t._t("default")],2)},n=[],s={name:"ALink",props:{href:String,to:[String,Object]},computed:{isRouter(){return!!this.$router&&(!this.href||Boolean(this.$router.options.routes.find(({path:t})=>t===this.href)))}}},a=s,o=r("2be6"),c=Object(o["a"])(a,i,n,!1,null,null,null);e["a"]=c.exports},d173:function(t,e,r){var i=r("3c10");e=i(!1),e.push([t.i,".picture{display:inline-block;width:100%;transition:opacity .2s;overflow:hidden}.picture:not(.loaded){background:linear-gradient(25deg,var(--light) 40%,var(--gray) 200%);opacity:.3;height:100%;min-height:50px;font-size:0}.picture img{width:auto;max-width:100%;height:auto;margin:0 auto}",""]),t.exports=e},e2a0:function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"order-info py-4"},[t.isNew?r("div",{staticClass:"order-info__new"},[t._v(" "+t._s(t.i19orderConfirmationMsg)+"! ")]):t._e(),r("transition-group",{attrs:{"enter-active-class":"animated fadeInDown slower"}},[t.isLoaded?r("div",{key:"loaded"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-5 col-lg-3"},[r("h2",{staticClass:"order-info__number"},[r("small",[t._v(t._s(t.i19orderNumber)+":")]),t._v(" #"),r("span",[t._v(t._s(t.localOrder.number))])]),r("transition",{attrs:{"enter-active-class":"animated fadeInDown","leave-active-class":"animated fadeOutUp fast"}},[t.isUpdating||"cancelled"!==t.status?t._e():r("p",{staticClass:"order-info__cancelled h3"},[t._v(" "+t._s(t.i19OrderStatus(t.status))+" "),r("transition",{attrs:{"enter-active-class":"animated fadeInDown"}},[t.canReopenOrder?r("button",{staticClass:"order-info__toggle btn",class:"cancelled"===t.status?"btn-success":"btn-secondary",on:{click:t.toggle}},[r("i",{staticClass:"i-check-circle mr-1"}),t._v(" "+t._s(t.i19reopenOrder)+" ")]):t._e()])],1)]),t.statusEntries.length?r("ul",{staticClass:"order-info__timeline"},t._l(t.statusEntries,(function(e,i){return r("li",{key:"status-"+i,staticClass:"order-info__timeline-status",class:"order-info__timeline-status--"+e.status},[e.date_time?r("div",{staticClass:"order-info__timeline-date"},[t._v(" "+t._s(t.formatDate(e.date_time))+" "+t._s(t.formatTime(e.date_time))+" ")]):t._e(),t._v(" "+t._s(t.i19FinancialStatus(e.status)||t.i19FulfillmentStatus(e.status))+" ")])})),0):t._e(),t.accountOrdersUrl?r("a",{staticClass:"order-info__orders-link d-none d-md-block btn btn-light",attrs:{href:t.accountOrdersUrl}},[r("i",{staticClass:"i-chevron-left mr-1"}),t._v(" "+t._s(t.i19myOrders)+" ")]):t._e()],1),r("div",{staticClass:"col-md-7 col-lg-9"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-6"},[r("article",[t.transaction.status&&"pending"===t.transaction.status.current?[t.transaction.banking_billet?r("div",{staticClass:"order-info__billet"},[r("p",{staticClass:"lead"},[t._v(" "+t._s(t.i19doPaymentMsg)+" ")]),t.transaction.banking_billet.code?[r("p",[t._v(" "+t._s(t.i19ticketCode)+": "),r("br"),r("samp",[t._v(t._s(t.transaction.banking_billet.code))])]),r("button",{staticClass:"btn btn-outline-primary mr-3",on:{click:function(){return t.toClipboard(t.transaction.banking_billet.code)}}},[r("i",{staticClass:"i-copy mr-1"}),t._v(" "+t._s(t.i19copyCode)+" ")])]:t._e(),t.transaction.banking_billet.link?r("a",{staticClass:"btn btn-primary",attrs:{target:"_blank",href:t.transaction.banking_billet.link}},[r("i",{staticClass:"i-print mr-1"}),t._v(" "+t._s(t.i19printBillet)+" ")]):t._e()],2):t.transaction.payment_link?r("div",{staticClass:"order-info__redirect"},[r("p",{staticClass:"lead"},[t._v(" "+t._s(t.i19doPaymentMsg)+" ")]),r("a",{staticClass:"btn btn-lg btn-success",attrs:{target:"_blank",href:t.transaction.payment_link}},[r("i",{staticClass:"i-arrow-right mr-1"}),t._v(" "+t._s(t.i19redirectToPayment)+" ")])]):t._e(),t.validThruRemainingTime?r("div",{staticClass:"order-info__valid-thru mb-3 mt-3"},[t._v(" "+t._s(t.i19expirationDate)+" "),r("div",{staticClass:"ml-3 mb-0"},[r("strong",[t._v(t._s(t.validThruRemainingTime))])])]):t._e()]:t._e(),r("div",{staticClass:"order-info__details"},[t._t("payment",(function(){return[r("div",{staticClass:"order-info__payment card"},[r("div",{staticClass:"card-header"},[r("span",{staticClass:"order-info__financial-status",class:"order-info__financial-status--"+t.financialStatus},[r("i",{staticClass:"i-money-check mr-1"}),t._v(" "+t._s(t.i19FinancialStatus(t.financialStatus))+" ")])]),t._l(t.localOrder.transactions,(function(e){return r("div",{key:"t-"+e._id,staticClass:"card-body"},[r("p",{staticClass:"order-info__payment-value"},[e.payment_method.name?[t._v(" "+t._s(e.payment_method.name)+": ")]:t.localOrder.payment_method_label?[t._v(" "+t._s(t.localOrder.payment_method_label)+": ")]:t._e(),e.installments&&e.installments.value?r("strong",[t._v(" "+t._s(e.installments.number)+"x "+t._s(t.i19of.toLowerCase())+" "+t._s(t.formatMoney(e.installments.value))+" ")]):r("strong",[t._v(" "+t._s(t.formatMoney(e.amount||t.localOrder.amount.total))+" ")]),t.hasManyTransactions&&e.status?[r("br"),r("span",{staticClass:"text-muted"},[t._v(" "+t._s(t.i19FinancialStatus(e.status.current))+" ")])]:t._e()],2),e.notes?r("p",{staticClass:"order-info__payment-notes alert alert-warning",attrs:{role:"alert"},domProps:{innerHTML:t._s(e.notes)}}):t._e(),e.credit_card?r("p",{staticClass:"order-info__credit-card"},[t._v(" "+t._s(e.credit_card.company)+" "),e.credit_card.last_digits?r("span",[e.credit_card.company?t._e():r("span",[t._v(" "+t._s(t.i19cardNumber)+" ")]),t._v(" **** "+t._s(e.credit_card.last_digits)+" ")]):t._e()]):t._e(),e.intermediator?[e.intermediator.transaction_code?r("div",{staticClass:"order-info__transaction-code"},[r("small",[t._v(t._s(t.i19transactionCode))]),r("br"),r("code",[t._v(t._s(e.intermediator.transaction_code))]),r("br"),r("button",{staticClass:"btn btn-sm btn-light",on:{click:function(){return t.toClipboard(e.intermediator.transaction_code)}}},[r("i",{staticClass:"i-copy mr-1"}),t._v(" "+t._s(t.i19copyCode)+" ")])]):t._e(),e.intermediator.transaction_reference?r("div",{staticClass:"order-info__transaction-reference"},[r("small",[t._v(t._s(t.i19referenceCode))]),r("br"),t._v(" "+t._s(e.intermediator.transaction_reference)+" ")]):t._e()]:t._e()],2)}))],2)]}),null,{order:t.localOrder,transaction:t.transaction,financialStatus:t.financialStatus}),t._t("shipping",(function(){return[r("div",{staticClass:"order-info__shipping"},[t._l(t.localOrder.shipping_lines,(function(e){return r("div",{key:"s-"+e._id,staticClass:"order-info__shipping-freight card"},[r("div",{staticClass:"card-header"},[t.fulfillmentStatus?r("span",{staticClass:"order-info__fulfillment-status",class:"order-info__fulfillment-status--"+t.fulfillmentStatus},[r("i",{staticClass:"i-truck mr-1"}),t._v(" "+t._s(t.i19FulfillmentStatus(t.fulfillmentStatus))+" ")]):[r("i",{staticClass:"i-truck mr-1"}),t._v(" "+t._s(t.i19freight)+" ")]],2),r("div",{staticClass:"card-body"},[e.app?r("span",[t._v(" "+t._s(e.app.label)+" ")]):t._e(),r("shipping-line",{attrs:{"shipping-line":e}}),e.tracking_codes?r("div",{staticClass:"order-info__shipping-tracking"},[r("hr"),r("div",{staticClass:"text-muted"},[t._v(" "+t._s(t.i19trackDelivery)+": ")]),t._l(e.tracking_codes,(function(e,i){return r("samp",{key:"track-"+i},[e.link?r("a",{attrs:{href:""+e.link,target:"_blank"}},[t._v(" "+t._s(e.code)+" ")]):r("span",[t._v(" "+t._s(e.code)+" ")])])}))],2):t._e(),r("div",{staticClass:"order-info__shipping-nfe",attrs:{if:"shippingLine.invoices"}},[r("hr"),t._l(e.invoices,(function(e,i){return e.link||e.access_key?r("samp",{key:"invoice-"+i},[r("a",{attrs:{href:""+(e.link||""+(t.invoiceBaseLink+e.access_key)),target:"_blank"}},[t._v(" "+t._s(t.i19invoice)+" ")])]):t._e()}))],2)],1)])})),t.canShowShippingAddress?r("div",{staticClass:"order-info__shipping-address card"},[r("div",{staticClass:"card-header"},[r("i",{staticClass:"i-map-marked mr-1"}),t._v(" "+t._s(t.i19shippingAddress)+" ")]),r("address",{staticClass:"card-body mb-0"},[t._v(" "+t._s(t.shippingAddress.street)+" "),t.shippingAddress.number?[t._v(" "+t._s(t.shippingAddress.number)+" ")]:t._e(),t.shippingAddress.complement?[t._v(" , "+t._s(t.shippingAddress.complement)+" ")]:t._e(),t.shippingAddress.near_to?[r("br"),t._v(t._s(t.shippingAddress.near_to)+" ")]:t._e(),r("br"),t._l(["borough","city","province_code"],(function(e,i){return t.shippingAddress[e]?r("span",{key:e},[t._v(" "+t._s(t.shippingAddress[e]+(2===i?".":","))+" ")]):t._e()})),r("br"),r("span",[t._v(" "+t._s(t.i19zipCode)+": "),r("samp",[t._v(t._s(t.shippingAddress.zip))])])],2)]):t._e()],2)]}),null,{order:t.localOrder,shippingAddress:t.shippingAddress,fulfillmentStatus:t.fulfillmentStatus}),t._t("notes",(function(){return[t.localOrder.notes?r("div",{staticClass:"order-info__notes card"},[r("div",{staticClass:"card-header"},[r("span",[t._v(" "+t._s(t.i19notes)+" ")])]),r("div",{staticClass:"card-body"},[r("span",[t._v(" "+t._s(t.localOrder.notes)+" ")])])]):t._e()]}),null,{order:t.localOrder})],2),t.isAuthenticated?t._e():r("p",{staticClass:"lead"},[t._v(" "+t._s(t.i19loginForOrderDetailsMsg)+" "),r("br"),r("a",{staticClass:"btn btn-primary mt-2",attrs:{href:t.accountOrdersUrl}},[r("i",{staticClass:"i-user mr-1"}),t._v(" "+t._s(t.i19login)+" ")])])],2)]),t.localOrder.amount?r("div",{staticClass:"col-lg-6 order-info__right"},[r("div",{staticClass:"order-info__summary card"},[r("div",{staticClass:"card-body"},[r("ec-summary",{attrs:{amount:t.localOrder.amount,items:t.localOrder.items,buyer:t.localOrder.buyer&&t.localOrder.buyer[0]||t.ecomPassport.getCustomer(),shippingAddress:t.shippingAddress},on:{"click:account":t.goToAccount}})],1)]),t.isSubscription&&"cancelled"!==t.status?t._t("unsubscribe",(function(){return[r("button",{staticClass:"order-info__unsubscribe btn btn-outline-danger",attrs:{type:"button"},on:{click:t.toggle}},[r("i",{staticClass:"i-exclamation-triangle mr-1"}),t._v(" "+t._s(t.i19unsubscribe)+" ")])]})):[t._t("buy",(function(){return[r("button",{staticClass:"order-info__buy-again btn",class:t.isNew?"btn-outline-secondary":"btn-primary",attrs:{type:"button"},on:{click:t.buyAgain