UNPKG

vue-commercetools

Version:

Collection of filters and utilities for the fast development of ecommerce sites with Commercetools and Vue.js

1 lines 17.5 kB
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("vue-commercetools",[],n):"object"==typeof exports?exports["vue-commercetools"]=n():t["vue-commercetools"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=38)}([function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(42),o=e(14);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(4),o=e(13);t.exports=e(5)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(11),o=e(30),i=e(20),u=Object.defineProperty;n.f=e(5)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){t.exports=!e(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(17)("wks"),o=e(10),i=e(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n){var e=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=e)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(28),o=e(18);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){var r=e(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(17)("keys"),o=e(10);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(0),o=e(7),i=e(47),u=e(3),f=function(t,n,e){var c,s,a,l=t&f.F,p=t&f.G,y=t&f.S,v=t&f.P,d=t&f.B,h=t&f.W,b=p?o:o[n]||(o[n]={}),m=b.prototype,x=p?r:y?r[n]:(r[n]||{}).prototype;p&&(e=n);for(c in e)(s=!l&&x&&void 0!==x[c])&&c in b||(a=s?x[c]:e[c],b[c]=p&&"function"!=typeof x[c]?e[c]:d&&s?i(a,r):h&&x[c]==a?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(a):v&&"function"==typeof a?i(Function.call,a):a,v&&((b.virtual||(b.virtual={}))[c]=a,t&f.R&&m&&!m[c]&&u(m,c,a)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n,e){var r=e(12);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=!0},function(t,n){t.exports={}},function(t,n,e){var r=e(4).f,o=e(1),i=e(6)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){n.f=e(6)},function(t,n,e){var r=e(0),o=e(7),i=e(21),u=e(24),f=e(4).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||f(n,t,{value:u.f(t)})}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(14);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(1),o=e(2),i=e(43)(!1),u=e(16)("IE_PROTO");t.exports=function(t,n){var e,f=o(t),c=0,s=[];for(e in f)e!=u&&r(f,e)&&s.push(e);for(;n.length>c;)r(f,e=n[c++])&&(~i(s,e)||s.push(e));return s}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){t.exports=!e(5)&&!e(8)(function(){return 7!=Object.defineProperty(e(31)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(12),o=e(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(51),i=r(o),u=e(63),f=r(u),c="function"==typeof f.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof f.default&&t.constructor===f.default&&t!==f.default.prototype?"symbol":typeof t};n.default="function"==typeof f.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof f.default&&t.constructor===f.default&&t!==f.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,n,e){"use strict";var r=e(21),o=e(19),i=e(34),u=e(3),f=e(1),c=e(22),s=e(55),a=e(23),l=e(58),p=e(6)("iterator"),y=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,e,d,h,b,m){s(e,n,d);var x,g,S,O=function(t){if(!y&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},w=n+" Iterator",_="values"==h,j=!1,P=t.prototype,M=P[p]||P["@@iterator"]||h&&P[h],E=M||O(h),L=h?_?O("entries"):E:void 0,T="Array"==n?P.entries||M:M;if(T&&(S=l(T.call(new t)))!==Object.prototype&&S.next&&(a(S,w,!0),r||f(S,p)||u(S,p,v)),_&&M&&"values"!==M.name&&(j=!0,E=function(){return M.call(this)}),r&&!m||!y&&!j&&P[p]||u(P,p,E),c[n]=E,c[w]=v,h)if(x={values:_?E:O("values"),keys:b?E:O("keys"),entries:L},m)for(g in x)g in P||i(P,g,x[g]);else o(o.P+o.F*(y||j),n,x);return x}},function(t,n,e){t.exports=e(3)},function(t,n,e){var r=e(11),o=e(56),i=e(18),u=e(16)("IE_PROTO"),f=function(){},c=function(){var t,n=e(31)("iframe"),r=i.length;for(n.style.display="none",e(57).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(f.prototype=r(t),e=new f,f.prototype=null,e[u]=t):e=c(),void 0===n?e:o(e,n)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(28),o=e(18).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(39),o=e.n(r),i=e(49),u={install:function(t){o()(i).forEach(function(n){t.filter(n)?console.warn("[filter duplication]: A filter named "+n+" has already been installed."):t.filter(n,i[n])})}};n.default=u,"undefined"!=typeof window&&window.Vue&&window.Vue.use(u)},function(t,n,e){t.exports={default:e(40),__esModule:!0}},function(t,n,e){e(41),t.exports=e(7).Object.keys},function(t,n,e){var r=e(27),o=e(9);e(46)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(29);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(2),o=e(44),i=e(45);t.exports=function(t){return function(n,e,u){var f,c=r(n),s=o(c.length),a=i(u,s);if(t&&e!=e){for(;s>a;)if((f=c[a++])!=f)return!0}else for(;s>a;a++)if((t||a in c)&&c[a]===e)return t||a||0;return!t&&-1}}},function(t,n,e){var r=e(15),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(15),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(19),o=e(7),i=e(8);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(48);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(50);e.d(n,"price",function(){return r.a});var o=e(75);e.d(n,"label",function(){return o.a})},function(t,n,e){"use strict";function r(t){if("object"!==(void 0===t?"undefined":i()(t)));else{if("object"===i()(t.value)&&"number"==typeof t.value.centAmount)return t.value;if("number"==typeof t.centAmount)return t}}var o=e(32),i=e.n(o),u=e(74),f=e.n(u);n.a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"prefix",e=r(t);if("object"===(void 0===e?"undefined":i()(e))){var o=e.centAmount/100,u=f.a[e.currencyCode];return"prefix"===n?""+u+o:""+o+u}return t}},function(t,n,e){t.exports={default:e(52),__esModule:!0}},function(t,n,e){e(53),e(59),t.exports=e(24).f("iterator")},function(t,n,e){"use strict";var r=e(54)(!0);e(33)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(15),o=e(14);t.exports=function(t){return function(n,e){var i,u,f=String(o(n)),c=r(e),s=f.length;return c<0||c>=s?t?"":void 0:(i=f.charCodeAt(c),i<55296||i>56319||c+1===s||(u=f.charCodeAt(c+1))<56320||u>57343?t?f.charAt(c):i:t?f.slice(c,c+2):u-56320+(i-55296<<10)+65536)}}},function(t,n,e){"use strict";var r=e(35),o=e(13),i=e(23),u={};e(3)(u,e(6)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(4),o=e(11),i=e(9);t.exports=e(5)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),f=u.length,c=0;f>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(0).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(1),o=e(27),i=e(16)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){e(60);for(var r=e(0),o=e(3),i=e(22),u=e(6)("toStringTag"),f="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<f.length;c++){var s=f[c],a=r[s],l=a&&a.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,n,e){"use strict";var r=e(61),o=e(62),i=e(22),u=e(2);t.exports=e(33)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){t.exports={default:e(64),__esModule:!0}},function(t,n,e){e(65),e(71),e(72),e(73),t.exports=e(7).Symbol},function(t,n,e){"use strict";var r=e(0),o=e(1),i=e(5),u=e(19),f=e(34),c=e(66).KEY,s=e(8),a=e(17),l=e(23),p=e(10),y=e(6),v=e(24),d=e(25),h=e(67),b=e(68),m=e(11),x=e(2),g=e(20),S=e(13),O=e(35),w=e(69),_=e(70),j=e(4),P=e(9),M=_.f,E=j.f,L=w.f,T=r.Symbol,A=r.JSON,N=A&&A.stringify,R=y("_hidden"),k=y("toPrimitive"),C={}.propertyIsEnumerable,F=a("symbol-registry"),G=a("symbols"),I=a("op-symbols"),D=Object.prototype,K="function"==typeof T,V=r.QObject,H=!V||!V.prototype||!V.prototype.findChild,W=i&&s(function(){return 7!=O(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=M(D,n);r&&delete D[n],E(t,n,e),r&&t!==D&&E(D,n,r)}:E,B=function(t){var n=G[t]=O(T.prototype);return n._k=t,n},Y=K&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},U=function(t,n,e){return t===D&&U(I,n,e),m(t),n=g(n,!0),m(e),o(G,n)?(e.enumerable?(o(t,R)&&t[R][n]&&(t[R][n]=!1),e=O(e,{enumerable:S(0,!1)})):(o(t,R)||E(t,R,S(1,{})),t[R][n]=!0),W(t,n,e)):E(t,n,e)},J=function(t,n){m(t);for(var e,r=h(n=x(n)),o=0,i=r.length;i>o;)U(t,e=r[o++],n[e]);return t},z=function(t,n){return void 0===n?O(t):J(O(t),n)},Q=function(t){var n=C.call(this,t=g(t,!0));return!(this===D&&o(G,t)&&!o(I,t))&&(!(n||!o(this,t)||!o(G,t)||o(this,R)&&this[R][t])||n)},Z=function(t,n){if(t=x(t),n=g(n,!0),t!==D||!o(G,n)||o(I,n)){var e=M(t,n);return!e||!o(G,n)||o(t,R)&&t[R][n]||(e.enumerable=!0),e}},q=function(t){for(var n,e=L(x(t)),r=[],i=0;e.length>i;)o(G,n=e[i++])||n==R||n==c||r.push(n);return r},$=function(t){for(var n,e=t===D,r=L(e?I:x(t)),i=[],u=0;r.length>u;)!o(G,n=r[u++])||e&&!o(D,n)||i.push(G[n]);return i};K||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===D&&n.call(I,e),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),W(this,t,S(1,e))};return i&&H&&W(D,t,{configurable:!0,set:n}),B(t)},f(T.prototype,"toString",function(){return this._k}),_.f=Z,j.f=U,e(37).f=w.f=q,e(26).f=Q,e(36).f=$,i&&!e(21)&&f(D,"propertyIsEnumerable",Q,!0),v.f=function(t){return B(y(t))}),u(u.G+u.W+u.F*!K,{Symbol:T});for(var X="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;X.length>tt;)y(X[tt++]);for(var nt=P(y.store),et=0;nt.length>et;)d(nt[et++]);u(u.S+u.F*!K,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=T(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var n in F)if(F[n]===t)return n},useSetter:function(){H=!0},useSimple:function(){H=!1}}),u(u.S+u.F*!K,"Object",{create:z,defineProperty:U,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:q,getOwnPropertySymbols:$}),A&&u(u.S+u.F*(!K||s(function(){var t=T();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Y(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return n=r[1],"function"==typeof n&&(e=n),!e&&b(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!Y(n))return n}),r[1]=n,N.apply(A,r)}}}),T.prototype[k]||e(3)(T.prototype,k,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(10)("meta"),o=e(12),i=e(1),u=e(4).f,f=0,c=Object.isExtensible||function(){return!0},s=!e(8)(function(){return c(Object.preventExtensions({}))}),a=function(t){u(t,r,{value:{i:"O"+ ++f,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";a(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;a(t)}return t[r].w},y=function(t){return s&&v.NEED&&c(t)&&!i(t,r)&&a(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:y}},function(t,n,e){var r=e(9),o=e(36),i=e(26);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,f=e(t),c=i.f,s=0;f.length>s;)c.call(t,u=f[s++])&&n.push(u);return n}},function(t,n,e){var r=e(29);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(2),o=e(37).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?f(t):o(r(t))}},function(t,n,e){var r=e(26),o=e(13),i=e(2),u=e(20),f=e(1),c=e(30),s=Object.getOwnPropertyDescriptor;n.f=e(5)?s:function(t,n){if(t=i(t),n=u(n,!0),c)try{return s(t,n)}catch(t){}if(f(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n){},function(t,n,e){e(25)("asyncIterator")},function(t,n,e){e(25)("observable")},function(t,n,e){"use strict";t.exports={AFN:"؋",AMD:"֏",ANG:"ƒ",AWG:"ƒ",AZN:"₼",BDT:"৳",BTC:"Ƀ",CNY:"¥",CRC:"₡",EUR:"€",FKP:"£",GBP:"£",GHS:"₵",GIP:"£",ILS:"₪",INR:"₹",IRR:"﷼",JPY:"¥",KHR:"៛",KPW:"₩",KRW:"₩",KZT:"₸",LAK:"₭",LKR:"₨",MNT:"₮",MTL:"₤",MUR:"₨",NGN:"₦",NPR:"₨",OMR:"﷼",PHP:"₱",PKR:"₨",PYG:"₲",QAR:"﷼",RUB:"₽",SAR:"﷼",SCR:"₨",SDG:"£",SHP:"£",SVC:"₡",SYP:"£",THB:"฿",UAH:"₴",USD:"$",VND:"₫",YER:"﷼"}},function(t,n,e){"use strict";var r=e(32),o=e.n(r);n.a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return"object"===(void 0===t?"undefined":o()(t))&&"string"==typeof t[n]?t[n]:t}}])});