diff --git a/_dev/front/js/components/Delete/Delete.vue b/_dev/front/js/components/Delete/Delete.vue
index 4efdd519..563ad3eb 100644
--- a/_dev/front/js/components/Delete/Delete.vue
+++ b/_dev/front/js/components/Delete/Delete.vue
@@ -42,6 +42,11 @@
required: true,
default: 'Delete',
},
+ titleList: {
+ type: String,
+ required: true,
+ default: 'Delete',
+ },
placeholder: {
type: String,
required: true,
@@ -57,16 +62,33 @@
required: true,
default: 'Delete',
},
+ deleteTextList: {
+ type: String,
+ required: true,
+ default: 'Delete',
+ },
},
data() {
return {
value: '',
isHidden: true,
listId: null,
+ listName: '',
productId: null,
productAttributeId: null,
};
},
+ computed: {
+ confirmMessage() {
+ return this.placeholder.replace('%nameofthewishlist%', this.listName);
+ },
+ modalTitle() {
+ return this.productId ? this.title : this.titleList;
+ },
+ modalDeleteText() {
+ return this.productId ? this.deleteText : this.deleteTextList;
+ },
+ },
methods: {
/**
* Toggle the modal
@@ -120,6 +142,7 @@
EventBus.$on('showDeleteWishlist', (event) => {
this.value = '';
this.listId = event.detail.listId;
+ this.listName = event.detail.listName;
this.productId = null;
this.productAttributeId = null;
diff --git a/_dev/front/js/components/Delete/index.js b/_dev/front/js/components/Delete/index.js
index e2f8b9ad..7adf4fab 100644
--- a/_dev/front/js/components/Delete/index.js
+++ b/_dev/front/js/components/Delete/index.js
@@ -32,6 +32,10 @@ const props = [
name: 'title',
type: String,
},
+ {
+ name: 'titleList',
+ type: String,
+ },
{
name: 'placeholder',
type: String,
@@ -44,6 +48,10 @@ const props = [
name: 'deleteText',
type: String,
},
+ {
+ name: 'deleteTextList',
+ type: String,
+ },
];
initApp(Delete, '.wishlist-delete', props);
diff --git a/_dev/front/js/components/Product/Product.vue b/_dev/front/js/components/Product/Product.vue
index f792705c..c60108a0 100644
--- a/_dev/front/js/components/Product/Product.vue
+++ b/_dev/front/js/components/Product/Product.vue
@@ -32,6 +32,15 @@
'wishlist-product-unavailable': !product.add_to_cart_url
}"
>
+
name = 'blockwishlist';
$this->tab = 'front_office_features';
- $this->version = '2.0.0';
+ $this->version = '2.0.1';
$this->author = 'PrestaShop';
$this->need_instance = 0;
@@ -151,7 +151,7 @@ public function hookActionFrontControllerSetMedia(array $params)
'modules/' . $this->name . '/public/wishlist.css',
[
'media' => 'all',
- 'priority' => 200,
+ 'priority' => 100,
]
);
@@ -159,7 +159,7 @@ public function hookActionFrontControllerSetMedia(array $params)
'blockwishlistController',
'modules/' . $this->name . '/public/product.bundle.js',
[
- 'priority' => 200,
+ 'priority' => 100,
]
);
}
diff --git a/config.xml b/config.xml
index 2226074f..078bae52 100644
--- a/config.xml
+++ b/config.xml
@@ -2,7 +2,7 @@
blockwishlist
-
+
diff --git a/controllers/front/action.php b/controllers/front/action.php
index 59ca11d4..383c0603 100644
--- a/controllers/front/action.php
+++ b/controllers/front/action.php
@@ -75,7 +75,7 @@ private function addProductToWishListAction($params)
return $this->ajaxRender(
json_encode([
'success' => false,
- 'message' => $this->trans('There was an error adding the product attributes', [], 'Modules.Blockwishlist.Shop'),
+ 'message' => $this->trans('There was an error while adding the product attributes', [], 'Modules.Blockwishlist.Shop'),
])
);
}
diff --git a/package-lock.json b/package-lock.json
index b972f4da..9be96dce 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3653,18 +3653,26 @@
"dev": true
},
"elliptic": {
- "version": "6.5.2",
- "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz",
- "integrity": "sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==",
+ "version": "6.5.4",
+ "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
+ "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",
"dev": true,
"requires": {
- "bn.js": "^4.4.0",
- "brorand": "^1.0.1",
+ "bn.js": "^4.11.9",
+ "brorand": "^1.1.0",
"hash.js": "^1.0.0",
- "hmac-drbg": "^1.0.0",
- "inherits": "^2.0.1",
- "minimalistic-assert": "^1.0.0",
- "minimalistic-crypto-utils": "^1.0.0"
+ "hmac-drbg": "^1.0.1",
+ "inherits": "^2.0.4",
+ "minimalistic-assert": "^1.0.1",
+ "minimalistic-crypto-utils": "^1.0.1"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==",
+ "dev": true
+ }
}
},
"emoji-regex": {
@@ -4879,12 +4887,6 @@
"dev": true,
"optional": true
},
- "ini": {
- "version": "1.3.5",
- "bundled": true,
- "dev": true,
- "optional": true
- },
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
@@ -5697,9 +5699,9 @@
}
},
"hosted-git-info": {
- "version": "2.8.8",
- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz",
- "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==",
+ "version": "2.8.9",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
+ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==",
"dev": true
},
"html-encoding-sniffer": {
@@ -5963,9 +5965,9 @@
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"ini": {
- "version": "1.3.5",
- "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
- "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
"dev": true
},
"inquirer": {
@@ -6978,9 +6980,9 @@
}
},
"lodash": {
- "version": "4.17.15",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
- "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
+ "version": "4.17.21",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
"dev": true
},
"lodash._reinterpolate": {
@@ -7723,16 +7725,6 @@
"requires": {
"is-number": "^7.0.0"
}
- },
- "yargs-parser": {
- "version": "13.1.2",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz",
- "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==",
- "dev": true,
- "requires": {
- "camelcase": "^5.0.0",
- "decamelize": "^1.2.0"
- }
}
}
},
@@ -9753,14 +9745,6 @@
"dev": true,
"requires": {
"lodash": "^4.17.19"
- },
- "dependencies": {
- "lodash": {
- "version": "4.17.19",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
- "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
- "dev": true
- }
}
},
"request-promise-native": {
@@ -10106,9 +10090,9 @@
}
},
"y18n": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz",
- "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=",
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz",
+ "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==",
"dev": true
},
"yargs": {
@@ -10133,12 +10117,13 @@
}
},
"yargs-parser": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz",
- "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=",
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.1.tgz",
+ "integrity": "sha512-wpav5XYiddjXxirPoCTUPbqM0PXvJ9hiBMvuJgInvo4/lAOTZzUprArw17q2O1P2+GHhbBr18/iQwjL5Z9BqfA==",
"dev": true,
"requires": {
- "camelcase": "^3.0.0"
+ "camelcase": "^3.0.0",
+ "object.assign": "^4.1.0"
}
}
}
@@ -10568,9 +10553,9 @@
}
},
"ssri": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz",
- "integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==",
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.2.tgz",
+ "integrity": "sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==",
"dev": true,
"requires": {
"figgy-pudding": "^3.5.1"
@@ -11117,9 +11102,9 @@
"dev": true
},
"ssri": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.0.tgz",
- "integrity": "sha512-aq/pz989nxVYwn16Tsbj1TqFpD5LLrQxHf5zaHuieFV+R0Bbr4y8qUsOA45hXT/N4/9UNXTarBjnjVmjSOVaAA==",
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
+ "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==",
"dev": true,
"requires": {
"minipass": "^3.1.1"
@@ -12579,9 +12564,9 @@
"dev": true
},
"y18n": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
- "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz",
+ "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==",
"dev": true
},
"yallist": {
@@ -12688,23 +12673,13 @@
"requires": {
"ansi-regex": "^4.1.0"
}
- },
- "yargs-parser": {
- "version": "13.1.2",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz",
- "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==",
- "dev": true,
- "requires": {
- "camelcase": "^5.0.0",
- "decamelize": "^1.2.0"
- }
}
}
},
"yargs-parser": {
- "version": "13.1.1",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz",
- "integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==",
+ "version": "13.1.2",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz",
+ "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==",
"dev": true,
"requires": {
"camelcase": "^5.0.0",
diff --git a/public/form.bundle.js b/public/form.bundle.js
index 4dc4f906..554ba982 100644
--- a/public/form.bundle.js
+++ b/public/form.bundle.js
@@ -1,4 +1,4 @@
-window.form=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=439)}({392:function(e,t,n){},397:function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,s,u;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=c(e))>0&&s.length>o&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function v(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(s=t[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var a=l.length,c=y(l,a);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return h(this,e,!0)},u.prototype.rawListeners=function(e){return h(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},u.prototype.listenerCount=d,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},439:function(e,t,n){n(440),e.exports=n(392)},440:function(e,t,n){"use strict";var r,o=n(441);new((r=o)&&r.__esModule?r:{default:r}).default},441:function(e,t,n){"use strict";n.r(t);var r=n(397);
+window.form=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=439)}({392:function(e,t,n){},397:function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,s,l;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=a(e))>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,console&&console.warn&&console.warn(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=h.bind(r);return o.listener=n,r.wrapFn=o,o}function v(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(s=t[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,a=g(u,c);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return v(this,e,!0)},l.prototype.rawListeners=function(e){return v(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},l.prototype.listenerCount=d,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},439:function(e,t,n){n(440),e.exports=n(392)},440:function(e,t,n){"use strict";var r,o=n(441);new((r=o)&&r.__esModule?r:{default:r}).default},441:function(e,t,n){"use strict";n.r(t);var r=n(397);
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
@@ -48,4 +48,4 @@ const o=new(n.n(r).a);
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
-const{$:i}=window;t.default=class{constructor(e){const t=e||{};this.localeItemSelector=t.localeItemSelector||".js-locale-item",this.localeButtonSelector=t.localeButtonSelector||".js-locale-btn",this.localeInputSelector=t.localeInputSelector||".js-locale-input",i("body").on("click",this.localeItemSelector,this.toggleLanguage.bind(this)),o.on("languageSelected",this.toggleInputs.bind(this))}toggleLanguage(e){const t=i(e.target),n=t.closest("form");o.emit("languageSelected",{selectedLocale:t.data("locale"),form:n})}toggleInputs(e){const{form:t}=e,{selectedLocale:n}=e,r=t.find(this.localeButtonSelector),o=r.data("change-language-url");r.text(n),t.find(this.localeInputSelector).addClass("d-none"),t.find(`${this.localeInputSelector}.js-locale-${n}`).removeClass("d-none"),o&&this.saveSelectedLanguage(o,n)}saveSelectedLanguage(e,t){i.post({url:e,data:{language_iso_code:t}})}}}});
\ No newline at end of file
+const{$:i}=window;t.default=class{constructor(e){const t=e||{};return this.localeItemSelector=t.localeItemSelector||".js-locale-item",this.localeButtonSelector=t.localeButtonSelector||".js-locale-btn",this.localeInputSelector=t.localeInputSelector||".js-locale-input",this.selectedLocale=i(this.localeItemSelector).data("locale"),i("body").on("click",this.localeItemSelector,this.toggleLanguage.bind(this)),o.on("languageSelected",this.toggleInputs.bind(this)),{localeItemSelector:this.localeItemSelector,localeButtonSelector:this.localeButtonSelector,localeInputSelector:this.localeInputSelector,refreshFormInputs:e=>{this.refreshInputs(e)},getSelectedLocale:()=>this.selectedLocale}}refreshInputs(e){this.selectedLocale&&o.emit("languageSelected",{selectedLocale:this.selectedLocale,form:e})}toggleLanguage(e){const t=i(e.target),n=t.closest("form");this.selectedLocale=t.data("locale"),this.refreshInputs(n)}toggleInputs(e){const{form:t}=e;this.selectedLocale=e.selectedLocale;const n=t.find(this.localeButtonSelector),r=n.data("change-language-url");n.text(this.selectedLocale),t.find(this.localeInputSelector).addClass("d-none"),t.find(`${this.localeInputSelector}.js-locale-${this.selectedLocale}`).removeClass("d-none"),r&&this.saveSelectedLanguage(r,this.selectedLocale)}saveSelectedLanguage(e,t){i.post({url:e,data:{language_iso_code:t}})}}}});
\ No newline at end of file
diff --git a/public/productslist.bundle.js b/public/productslist.bundle.js
index 6a7d8b9e..c9859884 100644
--- a/public/productslist.bundle.js
+++ b/public/productslist.bundle.js
@@ -72,7 +72,7 @@ var c=new a.InMemoryCache;t.default=new i.ApolloClient({link:new o.SchemaLink({s
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
-t.default="\n scalar JSON\n scalar JSONObject\n\n type List {\n id_wishlist: Int\n name: String\n listUrl: String\n shareUrl: String\n default: Int\n nbProducts: Int\n }\n\n type ShareUrl {\n url: String\n }\n\n type CreateResponse {\n datas: List\n success: Boolean!\n message: String!\n }\n\n type ProductListResponse {\n datas: JSONObject\n }\n\n type Response {\n success: Boolean!\n message: String!\n }\n\n type Query {\n products(listId: Int!, url: String!): ProductListResponse\n lists(url: String!): [List]\n }\n\n type Mutation {\n createList(name: String!, url: String!): CreateResponse\n shareList(listId: String!, userId: Int!): ShareUrl\n renameList(name: String!, url: String!, listId: Int!): Response\n addToList(listId: Int!, productId: Int!, quantity: Int!, productAttributeId: Int!, url: String!): Response\n removeFromList(listId: Int!, productId: Int!, productAttributeId: Int!, url: String!): Response\n deleteList(listId: Int!, url: String!): Response\n }\n"},function(e,t,n){e.exports={default:n(311),__esModule:!0}},function(e,t,n){n(312);var r=n(19).Object;e.exports=function(e,t){return r.defineProperties(e,t)}},function(e,t,n){var r=n(37);r(r.S+r.F*!n(36),"Object",{defineProperties:n(127)})},function(e,t,n){e.exports={default:n(314),__esModule:!0}},function(e,t,n){n(315),e.exports=n(19).Object.freeze},function(e,t,n){var r=n(31),i=n(316).onFreeze;n(317)("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(86)("meta"),i=n(31),o=n(51),a=n(50).f,u=0,s=Object.isExtensible||function(){return!0},c=!n(65)((function(){return s(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!s(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!s(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&s(e)&&!o(e,r)&&l(e),e}}},function(e,t,n){var r=n(37),i=n(19),o=n(65);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){"use strict";n.r(t),n.d(t,"HeuristicFragmentMatcher",(function(){return U})),n.d(t,"InMemoryCache",(function(){return ce})),n.d(t,"IntrospectionFragmentMatcher",(function(){return q})),n.d(t,"ObjectCache",(function(){return X})),n.d(t,"StoreReader",(function(){return J})),n.d(t,"StoreWriter",(function(){return ne})),n.d(t,"WriteError",(function(){return ee})),n.d(t,"assertIdValue",(function(){return H})),n.d(t,"defaultDataIdFromObject",(function(){return ae})),n.d(t,"defaultNormalizedCacheFactory",(function(){return Z})),n.d(t,"enhanceErrorWithDocument",(function(){return te}));var r=n(0),i=n(1);function o(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(e)}]}}function a(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return a(e[0]);var t=[];return Object.keys(e).forEach((function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:a(e[n])||void 0};t.push(r)})),{kind:"SelectionSet",selections:t}}var u,s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},c=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(i.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(i.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,i=e.data;if(void 0!==r){var u=null;try{u=this.read({rootId:r,optimistic:!1,query:s})}catch(e){}var c=u&&u.__typename||"__ClientData",l=Object.assign({__typename:c},i);this.writeFragment({id:r,fragment:(t=l,n=c,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(t)}]}),data:l})}else this.writeQuery({query:o(i),data:i})},e}();u||(u={});var l=n(29),f=null,p={},d=1,h=Array,v=h["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",d++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=f;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===p)break;return e!==f&&(f.slots[this.id]=t),!0}return f&&(f.slots[this.id]=p),!1},e.prototype.getValue=function(){if(this.hasValue())return f.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=f;f={parent:a,slots:o};try{return t.apply(r,n)}finally{f=a}},e.bind=function(e){var t=f;return function(){var n=f;try{return f=t,e.apply(this,arguments)}finally{f=n}}},e.noContext=function(e,t,n){if(!f)return e.apply(n,t);var r=f;try{return f=null,e.apply(n,t)}finally{f=r}},e}();try{Object.defineProperty(h,"@wry/context:Slot",{value:h["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();v.bind,v.noContext;function y(){}var m=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=y),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),g=new v,b=[],T=[];function _(e,t){if(!e)throw new Error(t||"assertion failure")}function O(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var E=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(_(!this.recomputing,"already recomputing"),function(e){var t=g.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),N(e)?j(t,e):k(t,e),t}(this)||!L(this))return N(this)?function(e){var t=D(e);g.withValue(e,w,[e]),function(e){if("function"==typeof e.subscribe)try{P(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,N(e))return;I(e)}(e);return t.forEach(L),O(e.value)}(this):O(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,S(this),P(this))},e.prototype.dispose=function(){var e=this;D(this).forEach(L),P(this),this.parents.forEach((function(t){t.setDirty(),A(t,e)}))},e.count=0,e}();function w(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function N(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function S(e){e.parents.forEach((function(t){return j(t,e)}))}function I(e){e.parents.forEach((function(t){return k(t,e)}))}function j(e,t){if(_(e.childValues.has(t)),_(N(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=T.pop()||new Set;e.dirtyChildren.add(t),S(e)}function k(e,t){_(e.childValues.has(t)),_(!N(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),x(e,t),N(e)||I(e)}function x(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(T.length<100&&T.push(n),e.dirtyChildren=null))}function L(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function D(e){var t=b;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(n,r){A(e,r),t.push(r)}))),_(null===e.dirtyChildren),t}function A(e,t){t.parents.delete(e),e.childValues.delete(t),x(e,t)}function P(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var R=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),$=Object.prototype.hasOwnProperty,B=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=Q((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){$.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){$.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function Y(e){return new B(e)}var J=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,o=void 0===r?new R(i.e):r,a=n.freezeResults,u=void 0!==a&&a,s=this.executeStoreQuery,c=this.executeSelectionSet,l=this.executeSubSelectedArray;this.freezeResults=u,this.executeStoreQuery=Q((function(e){return s.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof B)return o.lookup(r.store,t,a,JSON.stringify(i),n.id)}}),this.executeSelectionSet=Q((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof B)return o.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=Q((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof B)return o.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(r.a)(Object(r.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,o=e.previousResult,a=e.returnPartialData,u=void 0===a||a,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,f=e.fragmentMatcherFunction,p=e.config,d=Object(i.o)(n);r=Object(i.c)({},Object(i.h)(d),r);var h={store:t,dataIdFromObject:p&&p.dataIdFromObject,cacheRedirects:p&&p.cacheRedirects||{}},v=this.executeStoreQuery({query:n,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:h,variableValues:r,fragmentMatcher:f}),y=v.missing&&v.missing.length>0;return y&&!u&&v.missing.forEach((function(e){if(!e.tolerable)throw new V.a(8)})),o&&Object(l.a)(o,v.result)&&(v.result=o),{result:v.result,complete:!y}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher,u=void 0===a?W:a,s=Object(i.l)(t),c=Object(i.j)(t),l={query:t,fragmentMap:Object(i.g)(c),contextValue:r,variableValues:o,fragmentMatcher:u};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:n,execContext:l})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,o=e.rootValue,a=e.execContext,u=a.fragmentMap,s=a.contextValue,c=a.variableValues,l={result:null},f=[],p=s.store.get(o.id),d=p&&p.__typename||"ROOT_QUERY"===o.id&&"Query"||void 0;function h(e){var t;return e.missing&&(l.missing=l.missing||[],(t=l.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if(Object(i.F)(e,c))if(Object(i.t)(e)){var l=h(t.executeField(p,d,e,a));void 0!==l&&f.push(((n={})[Object(i.E)(e)]=l,n))}else{var v=void 0;if(Object(i.v)(e))v=e;else if(!(v=u[e.name.value]))throw new V.a(9);var y=v.typeCondition&&v.typeCondition.name.value,m=!y||a.fragmentMatcher(o,y,s);if(m){var g=t.executeSelectionSet({selectionSet:v.selectionSet,rootValue:o,execContext:a});"heuristic"===m&&g.missing&&(g=Object(r.a)(Object(r.a)({},g),{missing:g.missing.map((function(e){return Object(r.a)(Object(r.a)({},e),{tolerable:!0})}))})),f.push(h(g))}}})),l.result=Object(i.B)(f),this.freezeResults,l},e.prototype.executeField=function(e,t,n,r){var o=r.variableValues,a=r.contextValue,u=function(e,t,n,r,o,a){a.resultKey;var u=a.directives,s=n;(r||u)&&(s=Object(i.p)(s,r,u));var c=void 0;if(e&&void 0===(c=e[s])&&o.cacheRedirects&&"string"==typeof t){var l=o.cacheRedirects[t];if(l){var f=l[n];f&&(c=f(e,r,{getCacheKey:function(e){var t=o.dataIdFromObject(e);return t&&Object(i.H)({id:t,typename:e.__typename})}}))}}if(void 0===c)return{result:c,missing:[{object:e,fieldName:s,tolerable:!1}]};Object(i.w)(c)&&(c=c.json);return{result:c}}(e,t,n.name.value,Object(i.b)(n,o),a,{resultKey:Object(i.E)(n),directives:Object(i.i)(n,o)});return Array.isArray(u.result)?this.combineExecResults(u,this.executeSubSelectedArray({field:n,array:u.result,execContext:r})):n.selectionSet?null==u.result?u:this.combineExecResults(u,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:u.result,execContext:r})):(z(n,u.result),this.freezeResults,u)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var oe={fragmentMatcher:new U,dataIdFromObject:ae,addTypename:!0,resultCaching:!0,freezeResults:!1};function ae(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var ue=Object.prototype.hasOwnProperty,se=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return Object(r.c)(t,e),t.prototype.toObject=function(){return Object(r.a)(Object(r.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return ue.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(X),ce=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new R(i.e),n.silenceBroadcast=!1,n.config=Object(r.a)(Object(r.a)({},oe),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new B:new X,n.optimisticData=n.data,n.storeWriter=new ne,n.storeReader=new J({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var o=n,a=o.maybeBroadcastWatch;return n.maybeBroadcastWatch=Q((function(e){return a.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return o.data instanceof B?o.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return Object(r.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new V.a(1)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof se;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new se(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(i.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(c)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wishlist-toast",class:[{isActive:this.active},this.type]},[t("p",{staticClass:"wishlist-toast-text"},[this._v("\n "+this._s(this.text)+"\n ")])])},i=[];r._withStripped=!0},,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(333),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=c(n(87)),o=c(n(88)),a=c(n(389)),u=c(n(335)),s=c(n(66));function c(e){return e&&e.__esModule?e:{default:e}}t.default={name:"Delete",props:{deleteProductUrl:{type:String,required:!1,default:"#"},deleteListUrl:{type:String,required:!1,default:"#"},title:{type:String,required:!0,default:"Delete"},placeholder:{type:String,required:!0,default:"This action is irreversible"},cancelText:{type:String,required:!0,default:"Cancel"},deleteText:{type:String,required:!0,default:"Delete"}},data:function(){return{value:"",isHidden:!0,listId:null,productId:null,productAttributeId:null}},methods:{toggleModal:function(){this.isHidden=!this.isHidden},deleteWishlist:(r=(0,o.default)(i.default.mark((function e(){var t,n,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$apollo.mutate({mutation:this.productId?u.default:a.default,variables:{listId:this.listId,productId:parseInt(this.productId,10),productAttributeId:parseInt(this.productAttributeId,10),url:this.productId?this.deleteProductUrl:this.deleteListUrl}});case 2:t=e.sent,n=t.data,r=n.deleteList?n.deleteList:n.removeFromList,s.default.$emit("refetchList"),s.default.$emit("showToast",{detail:{type:r.success?"success":"error",message:r.message}}),this.toggleModal();case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},mounted:function(){var e=this;s.default.$on("showDeleteWishlist",(function(t){e.value="",e.listId=t.detail.listId,e.productId=null,e.productAttributeId=null,t.detail.productId&&(e.productId=t.detail.productId,e.productAttributeId=t.detail.productAttributeId),e.toggleModal()}))}}},function(e,t,n){var r=n(391);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("2b1b675f",r,!1,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,o(n(125)).default)(["\n mutation removeFromList($listId: Int!, $productId: Int!, $productAttributeId: Int!, $url: String!) {\n removeFromList(listId: $listId, productId: $productId, productAttributeId: $productAttributeId, url: $url) {\n success\n message\n }\n }\n"],["\n mutation removeFromList($listId: Int!, $productId: Int!, $productAttributeId: Int!, $url: String!) {\n removeFromList(listId: $listId, productId: $productId, productAttributeId: $productAttributeId, url: $url) {\n success\n message\n }\n }\n"]),i=o(n(39));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r)},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentLoader",(function(){return a})),n.d(t,"BulletListLoader",(function(){return u})),n.d(t,"CodeLoader",(function(){return s})),n.d(t,"FacebookLoader",(function(){return c})),n.d(t,"ListLoader",(function(){return l})),n.d(t,"InstagramLoader",(function(){return f}));var r=n(227),i=n.n(r),o=function(){return Math.random().toString(36).substring(2)},a={name:"ContentLoader",functional:!0,props:{width:{type:[Number,String],default:400},height:{type:[Number,String],default:130},speed:{type:Number,default:2},preserveAspectRatio:{type:String,default:"xMidYMid meet"},baseUrl:{type:String,default:""},primaryColor:{type:String,default:"#f9f9f9"},secondaryColor:{type:String,default:"#ecebeb"},primaryOpacity:{type:Number,default:1},secondaryOpacity:{type:Number,default:1},uniqueKey:{type:String},animate:{type:Boolean,default:!0}},render:function(e,t){var n=t.props,r=t.data,a=t.children,u=n.uniqueKey?n.uniqueKey+"-idClip":o(),s=n.uniqueKey?n.uniqueKey+"-idGradient":o();return e("svg",i()([r,{attrs:{viewBox:"0 0 "+n.width+" "+n.height,version:"1.1",preserveAspectRatio:n.preserveAspectRatio}}]),[e("rect",{style:{fill:"url("+n.baseUrl+"#"+s+")"},attrs:{"clip-path":"url("+n.baseUrl+"#"+u+")",x:"0",y:"0",width:n.width,height:n.height}}),e("defs",[e("clipPath",{attrs:{id:u}},[a||e("rect",{attrs:{x:"0",y:"0",rx:"5",ry:"5",width:n.width,height:n.height}})]),e("linearGradient",{attrs:{id:s}},[e("stop",{attrs:{offset:"0%","stop-color":n.primaryColor,"stop-opacity":n.primaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-2; 1",dur:n.speed+"s",repeatCount:"indefinite"}}):null]),e("stop",{attrs:{offset:"50%","stop-color":n.secondaryColor,"stop-opacity":n.secondaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-1.5; 1.5",dur:n.speed+"s",repeatCount:"indefinite"}}):null]),e("stop",{attrs:{offset:"100%","stop-color":n.primaryColor,"stop-opacity":n.primaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-1; 2",dur:n.speed+"s",repeatCount:"indefinite"}}):null])])])])}},u={name:"BulletListLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("circle",{attrs:{cx:"10",cy:"20",r:"8"}}),e("rect",{attrs:{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"50",r:"8"}}),e("rect",{attrs:{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"80",r:"8"}}),e("rect",{attrs:{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"110",r:"8"}}),e("rect",{attrs:{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}})])}},s={name:"CodeLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"70",height:"10"}}),e("rect",{attrs:{x:"80",y:"0",rx:"3",ry:"3",width:"100",height:"10"}}),e("rect",{attrs:{x:"190",y:"0",rx:"3",ry:"3",width:"10",height:"10"}}),e("rect",{attrs:{x:"15",y:"20",rx:"3",ry:"3",width:"130",height:"10"}}),e("rect",{attrs:{x:"155",y:"20",rx:"3",ry:"3",width:"130",height:"10"}}),e("rect",{attrs:{x:"15",y:"40",rx:"3",ry:"3",width:"90",height:"10"}}),e("rect",{attrs:{x:"115",y:"40",rx:"3",ry:"3",width:"60",height:"10"}}),e("rect",{attrs:{x:"185",y:"40",rx:"3",ry:"3",width:"60",height:"10"}}),e("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"3",width:"30",height:"10"}})])}},c={name:"FacebookLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"70",y:"15",rx:"4",ry:"4",width:"117",height:"6.4"}}),e("rect",{attrs:{x:"70",y:"35",rx:"3",ry:"3",width:"85",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"80",rx:"3",ry:"3",width:"350",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"100",rx:"3",ry:"3",width:"380",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"120",rx:"3",ry:"3",width:"201",height:"6.4"}}),e("circle",{attrs:{cx:"30",cy:"30",r:"30"}})])}},l={name:"ListLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}}),e("rect",{attrs:{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}}),e("rect",{attrs:{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}}),e("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}}),e("rect",{attrs:{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}}),e("rect",{attrs:{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}})])}},f={name:"InstagramLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,i()([n,{attrs:{height:480}}]),[e("circle",{attrs:{cx:"30",cy:"30",r:"30"}}),e("rect",{attrs:{x:"75",y:"13",rx:"4",ry:"4",width:"100",height:"13"}}),e("rect",{attrs:{x:"75",y:"37",rx:"4",ry:"4",width:"50",height:"8"}}),e("rect",{attrs:{x:"0",y:"70",rx:"5",ry:"5",width:"400",height:"400"}})])}}},,,,,,,,,function(e,t,n){"use strict";var r=o(n(113)),i=o(n(346));function o(e){return e&&e.__esModule?e:{default:e}}
+t.default="\n scalar JSON\n scalar JSONObject\n\n type List {\n id_wishlist: Int\n name: String\n listUrl: String\n shareUrl: String\n default: Int\n nbProducts: Int\n }\n\n type ShareUrl {\n url: String\n }\n\n type CreateResponse {\n datas: List\n success: Boolean!\n message: String!\n }\n\n type ProductListResponse {\n datas: JSONObject\n }\n\n type Response {\n success: Boolean!\n message: String!\n }\n\n type Query {\n products(listId: Int!, url: String!): ProductListResponse\n lists(url: String!): [List]\n }\n\n type Mutation {\n createList(name: String!, url: String!): CreateResponse\n shareList(listId: String!, userId: Int!): ShareUrl\n renameList(name: String!, url: String!, listId: Int!): Response\n addToList(listId: Int!, productId: Int!, quantity: Int!, productAttributeId: Int!, url: String!): Response\n removeFromList(listId: Int!, productId: Int!, productAttributeId: Int!, url: String!): Response\n deleteList(listId: Int!, url: String!): Response\n }\n"},function(e,t,n){e.exports={default:n(311),__esModule:!0}},function(e,t,n){n(312);var r=n(19).Object;e.exports=function(e,t){return r.defineProperties(e,t)}},function(e,t,n){var r=n(37);r(r.S+r.F*!n(36),"Object",{defineProperties:n(127)})},function(e,t,n){e.exports={default:n(314),__esModule:!0}},function(e,t,n){n(315),e.exports=n(19).Object.freeze},function(e,t,n){var r=n(31),i=n(316).onFreeze;n(317)("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(86)("meta"),i=n(31),o=n(51),a=n(50).f,u=0,s=Object.isExtensible||function(){return!0},c=!n(65)((function(){return s(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!s(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!s(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&s(e)&&!o(e,r)&&l(e),e}}},function(e,t,n){var r=n(37),i=n(19),o=n(65);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){"use strict";n.r(t),n.d(t,"HeuristicFragmentMatcher",(function(){return U})),n.d(t,"InMemoryCache",(function(){return ce})),n.d(t,"IntrospectionFragmentMatcher",(function(){return q})),n.d(t,"ObjectCache",(function(){return X})),n.d(t,"StoreReader",(function(){return J})),n.d(t,"StoreWriter",(function(){return ne})),n.d(t,"WriteError",(function(){return ee})),n.d(t,"assertIdValue",(function(){return H})),n.d(t,"defaultDataIdFromObject",(function(){return ae})),n.d(t,"defaultNormalizedCacheFactory",(function(){return Z})),n.d(t,"enhanceErrorWithDocument",(function(){return te}));var r=n(0),i=n(1);function o(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(e)}]}}function a(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return a(e[0]);var t=[];return Object.keys(e).forEach((function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:a(e[n])||void 0};t.push(r)})),{kind:"SelectionSet",selections:t}}var u,s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},c=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(i.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(i.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,i=e.data;if(void 0!==r){var u=null;try{u=this.read({rootId:r,optimistic:!1,query:s})}catch(e){}var c=u&&u.__typename||"__ClientData",l=Object.assign({__typename:c},i);this.writeFragment({id:r,fragment:(t=l,n=c,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(t)}]}),data:l})}else this.writeQuery({query:o(i),data:i})},e}();u||(u={});var l=n(29),f=null,p={},d=1,h=Array,v=h["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",d++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=f;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===p)break;return e!==f&&(f.slots[this.id]=t),!0}return f&&(f.slots[this.id]=p),!1},e.prototype.getValue=function(){if(this.hasValue())return f.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=f;f={parent:a,slots:o};try{return t.apply(r,n)}finally{f=a}},e.bind=function(e){var t=f;return function(){var n=f;try{return f=t,e.apply(this,arguments)}finally{f=n}}},e.noContext=function(e,t,n){if(!f)return e.apply(n,t);var r=f;try{return f=null,e.apply(n,t)}finally{f=r}},e}();try{Object.defineProperty(h,"@wry/context:Slot",{value:h["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();v.bind,v.noContext;function y(){}var m=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=y),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),g=new v,b=[],T=[];function _(e,t){if(!e)throw new Error(t||"assertion failure")}function O(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var E=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(_(!this.recomputing,"already recomputing"),function(e){var t=g.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),N(e)?j(t,e):k(t,e),t}(this)||!L(this))return N(this)?function(e){var t=D(e);g.withValue(e,w,[e]),function(e){if("function"==typeof e.subscribe)try{P(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,N(e))return;I(e)}(e);return t.forEach(L),O(e.value)}(this):O(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,S(this),P(this))},e.prototype.dispose=function(){var e=this;D(this).forEach(L),P(this),this.parents.forEach((function(t){t.setDirty(),A(t,e)}))},e.count=0,e}();function w(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function N(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function S(e){e.parents.forEach((function(t){return j(t,e)}))}function I(e){e.parents.forEach((function(t){return k(t,e)}))}function j(e,t){if(_(e.childValues.has(t)),_(N(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=T.pop()||new Set;e.dirtyChildren.add(t),S(e)}function k(e,t){_(e.childValues.has(t)),_(!N(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),x(e,t),N(e)||I(e)}function x(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(T.length<100&&T.push(n),e.dirtyChildren=null))}function L(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function D(e){var t=b;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(n,r){A(e,r),t.push(r)}))),_(null===e.dirtyChildren),t}function A(e,t){t.parents.delete(e),e.childValues.delete(t),x(e,t)}function P(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var R=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),$=Object.prototype.hasOwnProperty,B=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=Q((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){$.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){$.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function Y(e){return new B(e)}var J=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,o=void 0===r?new R(i.e):r,a=n.freezeResults,u=void 0!==a&&a,s=this.executeStoreQuery,c=this.executeSelectionSet,l=this.executeSubSelectedArray;this.freezeResults=u,this.executeStoreQuery=Q((function(e){return s.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof B)return o.lookup(r.store,t,a,JSON.stringify(i),n.id)}}),this.executeSelectionSet=Q((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof B)return o.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=Q((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof B)return o.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(r.a)(Object(r.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,o=e.previousResult,a=e.returnPartialData,u=void 0===a||a,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,f=e.fragmentMatcherFunction,p=e.config,d=Object(i.o)(n);r=Object(i.c)({},Object(i.h)(d),r);var h={store:t,dataIdFromObject:p&&p.dataIdFromObject,cacheRedirects:p&&p.cacheRedirects||{}},v=this.executeStoreQuery({query:n,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:h,variableValues:r,fragmentMatcher:f}),y=v.missing&&v.missing.length>0;return y&&!u&&v.missing.forEach((function(e){if(!e.tolerable)throw new V.a(8)})),o&&Object(l.a)(o,v.result)&&(v.result=o),{result:v.result,complete:!y}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher,u=void 0===a?W:a,s=Object(i.l)(t),c=Object(i.j)(t),l={query:t,fragmentMap:Object(i.g)(c),contextValue:r,variableValues:o,fragmentMatcher:u};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:n,execContext:l})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,o=e.rootValue,a=e.execContext,u=a.fragmentMap,s=a.contextValue,c=a.variableValues,l={result:null},f=[],p=s.store.get(o.id),d=p&&p.__typename||"ROOT_QUERY"===o.id&&"Query"||void 0;function h(e){var t;return e.missing&&(l.missing=l.missing||[],(t=l.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if(Object(i.F)(e,c))if(Object(i.t)(e)){var l=h(t.executeField(p,d,e,a));void 0!==l&&f.push(((n={})[Object(i.E)(e)]=l,n))}else{var v=void 0;if(Object(i.v)(e))v=e;else if(!(v=u[e.name.value]))throw new V.a(9);var y=v.typeCondition&&v.typeCondition.name.value,m=!y||a.fragmentMatcher(o,y,s);if(m){var g=t.executeSelectionSet({selectionSet:v.selectionSet,rootValue:o,execContext:a});"heuristic"===m&&g.missing&&(g=Object(r.a)(Object(r.a)({},g),{missing:g.missing.map((function(e){return Object(r.a)(Object(r.a)({},e),{tolerable:!0})}))})),f.push(h(g))}}})),l.result=Object(i.B)(f),this.freezeResults,l},e.prototype.executeField=function(e,t,n,r){var o=r.variableValues,a=r.contextValue,u=function(e,t,n,r,o,a){a.resultKey;var u=a.directives,s=n;(r||u)&&(s=Object(i.p)(s,r,u));var c=void 0;if(e&&void 0===(c=e[s])&&o.cacheRedirects&&"string"==typeof t){var l=o.cacheRedirects[t];if(l){var f=l[n];f&&(c=f(e,r,{getCacheKey:function(e){var t=o.dataIdFromObject(e);return t&&Object(i.H)({id:t,typename:e.__typename})}}))}}if(void 0===c)return{result:c,missing:[{object:e,fieldName:s,tolerable:!1}]};Object(i.w)(c)&&(c=c.json);return{result:c}}(e,t,n.name.value,Object(i.b)(n,o),a,{resultKey:Object(i.E)(n),directives:Object(i.i)(n,o)});return Array.isArray(u.result)?this.combineExecResults(u,this.executeSubSelectedArray({field:n,array:u.result,execContext:r})):n.selectionSet?null==u.result?u:this.combineExecResults(u,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:u.result,execContext:r})):(z(n,u.result),this.freezeResults,u)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var oe={fragmentMatcher:new U,dataIdFromObject:ae,addTypename:!0,resultCaching:!0,freezeResults:!1};function ae(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var ue=Object.prototype.hasOwnProperty,se=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return Object(r.c)(t,e),t.prototype.toObject=function(){return Object(r.a)(Object(r.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return ue.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(X),ce=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new R(i.e),n.silenceBroadcast=!1,n.config=Object(r.a)(Object(r.a)({},oe),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new B:new X,n.optimisticData=n.data,n.storeWriter=new ne,n.storeReader=new J({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var o=n,a=o.maybeBroadcastWatch;return n.maybeBroadcastWatch=Q((function(e){return a.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return o.data instanceof B?o.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return Object(r.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new V.a(1)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof se;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new se(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(i.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(c)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wishlist-toast",class:[{isActive:this.active},this.type]},[t("p",{staticClass:"wishlist-toast-text"},[this._v("\n "+this._s(this.text)+"\n ")])])},i=[];r._withStripped=!0},,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(333),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=c(n(87)),o=c(n(88)),a=c(n(389)),u=c(n(335)),s=c(n(66));function c(e){return e&&e.__esModule?e:{default:e}}t.default={name:"Delete",props:{deleteProductUrl:{type:String,required:!1,default:"#"},deleteListUrl:{type:String,required:!1,default:"#"},title:{type:String,required:!0,default:"Delete"},titleList:{type:String,required:!0,default:"Delete"},placeholder:{type:String,required:!0,default:"This action is irreversible"},cancelText:{type:String,required:!0,default:"Cancel"},deleteText:{type:String,required:!0,default:"Delete"},deleteTextList:{type:String,required:!0,default:"Delete"}},data:function(){return{value:"",isHidden:!0,listId:null,listName:"",productId:null,productAttributeId:null}},computed:{confirmMessage:function(){return this.placeholder.replace("%nameofthewishlist%",this.listName)},modalTitle:function(){return this.productId?this.title:this.titleList},modalDeleteText:function(){return this.productId?this.deleteText:this.deleteTextList}},methods:{toggleModal:function(){this.isHidden=!this.isHidden},deleteWishlist:(r=(0,o.default)(i.default.mark((function e(){var t,n,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$apollo.mutate({mutation:this.productId?u.default:a.default,variables:{listId:this.listId,productId:parseInt(this.productId,10),productAttributeId:parseInt(this.productAttributeId,10),url:this.productId?this.deleteProductUrl:this.deleteListUrl}});case 2:t=e.sent,n=t.data,r=n.deleteList?n.deleteList:n.removeFromList,s.default.$emit("refetchList"),s.default.$emit("showToast",{detail:{type:r.success?"success":"error",message:r.message}}),this.toggleModal();case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},mounted:function(){var e=this;s.default.$on("showDeleteWishlist",(function(t){e.value="",e.listId=t.detail.listId,e.listName=t.detail.listName,e.productId=null,e.productAttributeId=null,t.detail.productId&&(e.productId=t.detail.productId,e.productAttributeId=t.detail.productAttributeId),e.toggleModal()}))}}},function(e,t,n){var r=n(391);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("2b1b675f",r,!1,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,o(n(125)).default)(["\n mutation removeFromList($listId: Int!, $productId: Int!, $productAttributeId: Int!, $url: String!) {\n removeFromList(listId: $listId, productId: $productId, productAttributeId: $productAttributeId, url: $url) {\n success\n message\n }\n }\n"],["\n mutation removeFromList($listId: Int!, $productId: Int!, $productAttributeId: Int!, $url: String!) {\n removeFromList(listId: $listId, productId: $productId, productAttributeId: $productAttributeId, url: $url) {\n success\n message\n }\n }\n"]),i=o(n(39));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r)},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentLoader",(function(){return a})),n.d(t,"BulletListLoader",(function(){return u})),n.d(t,"CodeLoader",(function(){return s})),n.d(t,"FacebookLoader",(function(){return c})),n.d(t,"ListLoader",(function(){return l})),n.d(t,"InstagramLoader",(function(){return f}));var r=n(227),i=n.n(r),o=function(){return Math.random().toString(36).substring(2)},a={name:"ContentLoader",functional:!0,props:{width:{type:[Number,String],default:400},height:{type:[Number,String],default:130},speed:{type:Number,default:2},preserveAspectRatio:{type:String,default:"xMidYMid meet"},baseUrl:{type:String,default:""},primaryColor:{type:String,default:"#f9f9f9"},secondaryColor:{type:String,default:"#ecebeb"},primaryOpacity:{type:Number,default:1},secondaryOpacity:{type:Number,default:1},uniqueKey:{type:String},animate:{type:Boolean,default:!0}},render:function(e,t){var n=t.props,r=t.data,a=t.children,u=n.uniqueKey?n.uniqueKey+"-idClip":o(),s=n.uniqueKey?n.uniqueKey+"-idGradient":o();return e("svg",i()([r,{attrs:{viewBox:"0 0 "+n.width+" "+n.height,version:"1.1",preserveAspectRatio:n.preserveAspectRatio}}]),[e("rect",{style:{fill:"url("+n.baseUrl+"#"+s+")"},attrs:{"clip-path":"url("+n.baseUrl+"#"+u+")",x:"0",y:"0",width:n.width,height:n.height}}),e("defs",[e("clipPath",{attrs:{id:u}},[a||e("rect",{attrs:{x:"0",y:"0",rx:"5",ry:"5",width:n.width,height:n.height}})]),e("linearGradient",{attrs:{id:s}},[e("stop",{attrs:{offset:"0%","stop-color":n.primaryColor,"stop-opacity":n.primaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-2; 1",dur:n.speed+"s",repeatCount:"indefinite"}}):null]),e("stop",{attrs:{offset:"50%","stop-color":n.secondaryColor,"stop-opacity":n.secondaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-1.5; 1.5",dur:n.speed+"s",repeatCount:"indefinite"}}):null]),e("stop",{attrs:{offset:"100%","stop-color":n.primaryColor,"stop-opacity":n.primaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-1; 2",dur:n.speed+"s",repeatCount:"indefinite"}}):null])])])])}},u={name:"BulletListLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("circle",{attrs:{cx:"10",cy:"20",r:"8"}}),e("rect",{attrs:{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"50",r:"8"}}),e("rect",{attrs:{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"80",r:"8"}}),e("rect",{attrs:{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"110",r:"8"}}),e("rect",{attrs:{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}})])}},s={name:"CodeLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"70",height:"10"}}),e("rect",{attrs:{x:"80",y:"0",rx:"3",ry:"3",width:"100",height:"10"}}),e("rect",{attrs:{x:"190",y:"0",rx:"3",ry:"3",width:"10",height:"10"}}),e("rect",{attrs:{x:"15",y:"20",rx:"3",ry:"3",width:"130",height:"10"}}),e("rect",{attrs:{x:"155",y:"20",rx:"3",ry:"3",width:"130",height:"10"}}),e("rect",{attrs:{x:"15",y:"40",rx:"3",ry:"3",width:"90",height:"10"}}),e("rect",{attrs:{x:"115",y:"40",rx:"3",ry:"3",width:"60",height:"10"}}),e("rect",{attrs:{x:"185",y:"40",rx:"3",ry:"3",width:"60",height:"10"}}),e("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"3",width:"30",height:"10"}})])}},c={name:"FacebookLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"70",y:"15",rx:"4",ry:"4",width:"117",height:"6.4"}}),e("rect",{attrs:{x:"70",y:"35",rx:"3",ry:"3",width:"85",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"80",rx:"3",ry:"3",width:"350",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"100",rx:"3",ry:"3",width:"380",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"120",rx:"3",ry:"3",width:"201",height:"6.4"}}),e("circle",{attrs:{cx:"30",cy:"30",r:"30"}})])}},l={name:"ListLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}}),e("rect",{attrs:{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}}),e("rect",{attrs:{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}}),e("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}}),e("rect",{attrs:{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}}),e("rect",{attrs:{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}})])}},f={name:"InstagramLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,i()([n,{attrs:{height:480}}]),[e("circle",{attrs:{cx:"30",cy:"30",r:"30"}}),e("rect",{attrs:{x:"75",y:"13",rx:"4",ry:"4",width:"100",height:"13"}}),e("rect",{attrs:{x:"75",y:"37",rx:"4",ry:"4",width:"50",height:"8"}}),e("rect",{attrs:{x:"0",y:"70",rx:"5",ry:"5",width:"400",height:"400"}})])}}},,,,,,,,,function(e,t,n){"use strict";var r=o(n(113)),i=o(n(346));function o(e){return e&&e.__esModule?e:{default:e}}
/**
* 2007-2020 PrestaShop and Contributors
*
@@ -90,7 +90,7 @@ t.default="\n scalar JSON\n scalar JSONObject\n\n type List {\n id_wishlis
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
- */var a=[{name:"renameWishlistText",type:String},{name:"createWishlistText",type:String},{name:"addedWishlistText",type:String},{name:"shareText",type:String},{name:"deleteWishlistText",type:String},{name:"deleteProductText",type:String},{name:"copyText",type:String}];(0,r.default)(i.default,".wishlist-toast",a)},function(e,t,n){"use strict";n.r(t);var r=n(319),i=n(232);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n(347);var a=n(38),u=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);u.options.__file="_dev/front/js/components/Toast/Toast.vue",t.default=u.exports},function(e,t,n){"use strict";var r=n(234);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-toast{padding:14px 20px;box-sizing:border-box;border:1px solid #e5e5e5;border-radius:4px;background-color:#ffffff;box-shadow:2px 2px 10px 0 rgba(0,0,0,0.2);position:fixed;right:20px;z-index:9999;top:70px;transition:0.2s ease-out;transform:translateY(-10px);pointer-events:none;opacity:0}.wishlist-toast.success{background-color:#69b92d;border-color:#69b92d}.wishlist-toast.success .wishlist-toast-text{color:white}.wishlist-toast.error{background-color:#b9312d;border-color:#b9312d}.wishlist-toast.error .wishlist-toast-text{color:white}.wishlist-toast.isActive{transform:translateY(0);pointer-events:all;opacity:1}.wishlist-toast-text{color:#232323;font-size:14px;letter-spacing:0;line-height:19px;margin-bottom:0}\n",""]),e.exports=t},,function(e,t,n){"use strict";n.r(t);var r=n(351),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=l(n(87)),o=l(n(88)),a=l(n(402)),u=l(n(406)),s=n(336),c=l(n(66));function l(e){return e&&e.__esModule?e:{default:e}}t.default={name:"ProductsListContainer",components:{Product:a.default,ContentLoader:s.ContentLoader},apollo:{products:{query:u.default,variables:function(){return{listId:this.listId,url:this.apiUrl}},skip:function(){return!0},fetchPolicy:"network-only"}},props:{url:{type:String,required:!1,default:"#"},title:{type:String,required:!0},noProductsMessage:{type:String,required:!0},listId:{type:Number,required:!1,default:0},addToCart:{type:String,required:!0},share:{type:Boolean,required:!0},customizeText:{type:String,required:!0},quantityText:{type:String,required:!0}},data:function(){return{products:[],currentWishlist:{},apiUrl:window.location.href,selectedSort:""}},methods:{changeSelectedSort:(r=(0,o.default)(i.default.mark((function e(t){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.selectedSort=t.label,this.apiUrl=t.url;case 2:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},computed:{productList:function(){var e=this,t=this.products.datas.sort_orders.filter((function(t){return t.label!==e.products.datas.sort_selected}));return t},currentSort:function(){return""!==this.selectedSort?this.selectedSort:this.products.datas.sort_selected}},mounted:function(){var e=this;this.listId&&(this.$apollo.queries.products.skip=!1),c.default.$on("refetchList",(function(){e.$apollo.queries.products.refetch()})),c.default.$on("updatePagination",(function(t){e.products=!1,e.apiUrl=t.page.url}))}}},function(e,t,n){"use strict";n.r(t);var r=n(353),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=f(n(87)),a=f(n(88)),u=f(n(66)),s=f(n(228)),c=f(n(192)),l=f(n(403));function f(e){return e&&e.__esModule?e:{default:e}}t.default={name:"Product",props:{product:{type:Object,required:!0,default:null},listId:{type:Number,required:!0,default:null},isShare:{type:Boolean,required:!1,default:!1},customizeText:{type:String,required:!0,default:"Customize"},quantityText:{type:String,required:!0,default:"Quantity"},addToCart:{type:String,required:!0},status:{type:Number,required:!1,default:0},hasControls:{type:Boolean,required:!1,default:!0}},data:function(){return{prestashop:c.default}},computed:{isDisabled:function(){return"1"!==this.product.customizable&&!this.product.add_to_cart_url}},methods:{removeFromWishlist:(i=(0,a.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.default.$emit("showDeleteWishlist",{detail:{listId:this.listId,productId:this.product.id,productAttributeId:this.product.id_product_attribute}});case 1:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)}),addToCartAction:(r=(0,a.default)(o.default.mark((function e(){var t,n,r,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.product.add_to_cart_url||"1"===this.product.customizable){e.next=25;break}return e.prev=1,(t=new FormData).append("qty",this.product.wishlist_quantity),t.append("id_product",this.product.id_product),t.append("id_customization",this.product.id_customization),e.next=8,fetch(this.product.add_to_cart_url+"&action=update",{method:"POST",headers:s.default.addToCart,body:t});case 8:return n=e.sent,e.next=11,n.json();case 11:return r=e.sent,c.default.emit("updateCart",{reason:{idProduct:this.product.id_product,idProductAttribute:this.product.id_product_attribute,idCustomization:this.product.id_customization,linkAction:"add-to-cart"},resp:r}),e.next=15,fetch(l.default+"¶ms[idWishlist]="+this.listId+"¶ms[id_product]="+this.product.id_product+"¶ms[id_product_attribute]="+this.product.id_product_attribute+"¶ms[quantity]="+this.product.wishlist_quantity,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Accept:"application/json, text/javascript, */*; q=0.01"}});case 15:return i=e.sent,e.next=18,i.json();case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(1),c.default.emit("handleError",{eventType:"addProductToCart",resp:e.t0});case 23:e.next=26;break;case 25:window.location.href=this.product.canonical_url;case 26:case"end":return e.stop()}}),e,this,[[1,20]])}))),function(){return r.apply(this,arguments)})}}},function(e,t,n){var r=n(405);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("77a5c1ab",r,!1,{})},function(e,t,n){var r=n(408);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("c65755a8",r,!1,{})},function(e,t,n){"use strict";n.r(t);var r=n(357),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(66),o=(r=i)&&r.__esModule?r:{default:r};t.default={name:"Pagination",data:function(){return{total:null,minShown:null,maxShown:null,pageNumber:0,pages:[],currentPage:null,display:!1}},methods:{paginate:function(e){o.default.$emit("updatePagination",{page:e}),this.currentPage=e}},mounted:function(){var e=this;o.default.$on("paginate",(function(t){e.total=t.detail.total,e.minShown=t.detail.minShown,e.maxShown=t.detail.maxShown,e.pageNumber=t.detail.pageNumber,e.currentPage=t.detail.currentPage,e.pages=t.detail.pages,e.display=t.detail.display}))}}},function(e,t,n){var r=n(412);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("476c4e08",r,!1,{})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=o(n(113)),i=o(n(388));function o(e){return e&&e.__esModule?e:{default:e}}
+ */var a=[{name:"renameWishlistText",type:String},{name:"createWishlistText",type:String},{name:"addedWishlistText",type:String},{name:"shareText",type:String},{name:"deleteWishlistText",type:String},{name:"deleteProductText",type:String},{name:"copyText",type:String}];(0,r.default)(i.default,".wishlist-toast",a)},function(e,t,n){"use strict";n.r(t);var r=n(319),i=n(232);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n(347);var a=n(38),u=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);u.options.__file="_dev/front/js/components/Toast/Toast.vue",t.default=u.exports},function(e,t,n){"use strict";var r=n(234);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-toast{padding:14px 20px;box-sizing:border-box;border:1px solid #e5e5e5;border-radius:4px;background-color:#ffffff;box-shadow:2px 2px 10px 0 rgba(0,0,0,0.2);position:fixed;right:20px;z-index:9999;top:70px;transition:0.2s ease-out;transform:translateY(-10px);pointer-events:none;opacity:0}.wishlist-toast.success{background-color:#69b92d;border-color:#69b92d}.wishlist-toast.success .wishlist-toast-text{color:white}.wishlist-toast.error{background-color:#b9312d;border-color:#b9312d}.wishlist-toast.error .wishlist-toast-text{color:white}.wishlist-toast.isActive{transform:translateY(0);pointer-events:all;opacity:1}.wishlist-toast-text{color:#232323;font-size:14px;letter-spacing:0;line-height:19px;margin-bottom:0}\n",""]),e.exports=t},,function(e,t,n){"use strict";n.r(t);var r=n(351),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=l(n(87)),o=l(n(88)),a=l(n(402)),u=l(n(406)),s=n(336),c=l(n(66));function l(e){return e&&e.__esModule?e:{default:e}}t.default={name:"ProductsListContainer",components:{Product:a.default,ContentLoader:s.ContentLoader},apollo:{products:{query:u.default,variables:function(){return{listId:this.listId,url:this.apiUrl}},skip:function(){return!0},fetchPolicy:"network-only"}},props:{url:{type:String,required:!1,default:"#"},title:{type:String,required:!0},noProductsMessage:{type:String,required:!0},listId:{type:Number,required:!1,default:0},addToCart:{type:String,required:!0},share:{type:Boolean,required:!0},customizeText:{type:String,required:!0},quantityText:{type:String,required:!0}},data:function(){return{products:[],currentWishlist:{},apiUrl:window.location.href,selectedSort:""}},methods:{changeSelectedSort:(r=(0,o.default)(i.default.mark((function e(t){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.selectedSort=t.label,this.apiUrl=t.url;case 2:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},computed:{productList:function(){var e=this,t=this.products.datas.sort_orders.filter((function(t){return t.label!==e.products.datas.sort_selected}));return t},currentSort:function(){return""!==this.selectedSort?this.selectedSort:this.products.datas.sort_selected}},mounted:function(){var e=this;this.listId&&(this.$apollo.queries.products.skip=!1),c.default.$on("refetchList",(function(){e.$apollo.queries.products.refetch()})),c.default.$on("updatePagination",(function(t){e.products=!1,e.apiUrl=t.page.url}))}}},function(e,t,n){"use strict";n.r(t);var r=n(353),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=f(n(87)),a=f(n(88)),u=f(n(66)),s=f(n(228)),c=f(n(192)),l=f(n(403));function f(e){return e&&e.__esModule?e:{default:e}}t.default={name:"Product",props:{product:{type:Object,required:!0,default:null},listId:{type:Number,required:!0,default:null},listName:{type:String,required:!0,default:""},isShare:{type:Boolean,required:!1,default:!1},customizeText:{type:String,required:!0,default:"Customize"},quantityText:{type:String,required:!0,default:"Quantity"},addToCart:{type:String,required:!0},status:{type:Number,required:!1,default:0},hasControls:{type:Boolean,required:!1,default:!0}},data:function(){return{prestashop:c.default}},computed:{isDisabled:function(){return"1"!==this.product.customizable&&!this.product.add_to_cart_url}},methods:{removeFromWishlist:(i=(0,a.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.default.$emit("showDeleteWishlist",{detail:{listId:this.listId,listName:this.listName,productId:this.product.id,productAttributeId:this.product.id_product_attribute}});case 1:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)}),addToCartAction:(r=(0,a.default)(o.default.mark((function e(){var t,n,r,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.product.add_to_cart_url||"1"===this.product.customizable){e.next=25;break}return e.prev=1,(t=new FormData).append("qty",this.product.wishlist_quantity),t.append("id_product",this.product.id_product),t.append("id_customization",this.product.id_customization),e.next=8,fetch(this.product.add_to_cart_url+"&action=update",{method:"POST",headers:s.default.addToCart,body:t});case 8:return n=e.sent,e.next=11,n.json();case 11:return r=e.sent,c.default.emit("updateCart",{reason:{idProduct:this.product.id_product,idProductAttribute:this.product.id_product_attribute,idCustomization:this.product.id_customization,linkAction:"add-to-cart"},resp:r}),e.next=15,fetch(l.default+"¶ms[idWishlist]="+this.listId+"¶ms[id_product]="+this.product.id_product+"¶ms[id_product_attribute]="+this.product.id_product_attribute+"¶ms[quantity]="+this.product.wishlist_quantity,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Accept:"application/json, text/javascript, */*; q=0.01"}});case 15:return i=e.sent,e.next=18,i.json();case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(1),c.default.emit("handleError",{eventType:"addProductToCart",resp:e.t0});case 23:e.next=26;break;case 25:window.location.href=this.product.canonical_url;case 26:case"end":return e.stop()}}),e,this,[[1,20]])}))),function(){return r.apply(this,arguments)})}}},function(e,t,n){var r=n(405);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("77a5c1ab",r,!1,{})},function(e,t,n){var r=n(408);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("c65755a8",r,!1,{})},function(e,t,n){"use strict";n.r(t);var r=n(357),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(66),o=(r=i)&&r.__esModule?r:{default:r};t.default={name:"Pagination",data:function(){return{total:null,minShown:null,maxShown:null,pageNumber:0,pages:[],currentPage:null,display:!1}},methods:{paginate:function(e){o.default.$emit("updatePagination",{page:e}),this.currentPage=e}},mounted:function(){var e=this;o.default.$on("paginate",(function(t){e.total=t.detail.total,e.minShown=t.detail.minShown,e.maxShown=t.detail.maxShown,e.pageNumber=t.detail.pageNumber,e.currentPage=t.detail.currentPage,e.pages=t.detail.pages,e.display=t.detail.display}))}}},function(e,t,n){var r=n(412);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("476c4e08",r,!1,{})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=o(n(113)),i=o(n(388));function o(e){return e&&e.__esModule?e:{default:e}}
/**
* 2007-2020 PrestaShop and Contributors
*
@@ -108,7 +108,7 @@ t.default="\n scalar JSON\n scalar JSONObject\n\n type List {\n id_wishlis
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
- */var a=[{name:"deleteProductUrl",type:String},{name:"deleteListUrl",type:String},{name:"title",type:String},{name:"placeholder",type:String},{name:"cancelText",type:String},{name:"deleteText",type:String}];(0,r.default)(i.default,".wishlist-delete",a)},function(e,t,n){"use strict";n.r(t);var r=n(332);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n(390);var o=n(38),a=Object(o.a)(r.default,void 0,void 0,!1,null,"b30802ea",null);a.options.__file="_dev/front/js/components/Delete/Delete.vue",t.default=a.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,o(n(125)).default)(["\n mutation deleteList($listId: Int!, $url: String!) {\n deleteList(listId: $listId, url: $url) {\n success\n message\n }\n }\n"],["\n mutation deleteList($listId: Int!, $url: String!) {\n deleteList(listId: $listId, url: $url) {\n success\n message\n }\n }\n"]),i=o(n(39));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r)},function(e,t,n){"use strict";var r=n(334);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-delete .wishlist-modal[data-v-b30802ea]{display:block;opacity:0;pointer-events:none;z-index:0}.wishlist-delete .wishlist-modal.show[data-v-b30802ea]{opacity:1;pointer-events:all;z-index:1053}\n",""]),e.exports=t},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wishlist-products-container"},[n("div",{staticClass:"wishlist-products-container-header"},[n("h1",[e._v("\n "+e._s(e.title)+"\n\n "),e.products.datas&&e.products.datas.products?n("span",{staticClass:"wishlist-products-count"},[e._v("\n ("+e._s(e.products.datas.pagination.total_items)+")\n ")]):e._e()]),e._v(" "),e.products.datas?n("div",{staticClass:"sort-by-row"},[n("span",{staticClass:"col-sm-3 col-md-3 hidden-sm-down sort-by"},[e._v("Sort by:")]),e._v(" "),n("div",{staticClass:"col-sm-9 col-xs-8 col-md-9 products-sort-order dropdown"},[n("button",{staticClass:"btn-unstyle select-title",attrs:{rel:"nofollow","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e._v("\n "+e._s(e.currentSort)+"\n "),n("i",{staticClass:"material-icons float-xs-right"},[e._v("arrow_drop_down")])]),e._v(" "),n("div",{staticClass:"dropdown-menu"},e._l(e.productList,(function(t,r){return n("a",{key:r,staticClass:"select-list js-search-link",attrs:{rel:"nofollow"},on:{click:function(n){return e.changeSelectedSort(t)}}},[e._v("\n "+e._s(t.label)+"\n ")])})),0)])]):e._e()]),e._v(" "),n("section",{staticClass:"page-content card card-block",attrs:{id:"content"}},[e.products.datas&&e.products.datas.products.length>0?n("ul",{staticClass:"wishlist-products-list"},e._l(e.products.datas.products,(function(t,r){return n("li",{key:r,staticClass:"wishlist-products-item"},[n("Product",{attrs:{product:t,"add-to-cart":e.addToCart,"customize-text":e.customizeText,"quantity-text":e.quantityText,"list-id":e.listId?e.listId:parseInt(e.currentWishlist.id_wishlist,10),"is-share":e.share}})],1)})),0):e._e(),e._v(" "),e.products.datas?e._e():n("ContentLoader",{staticClass:"wishlist-list-loader",attrs:{height:"105"}},[n("rect",{attrs:{x:"0",y:"12",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"36",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"84",rx:"3",ry:"0",width:"100%",height:"11"}})]),e._v(" "),e.products.datas&&e.products.datas.products.length<=0?n("p",{staticClass:"wishlist-list-empty"},[e._v("\n "+e._s(e.noProductsMessage)+"\n ")]):e._e()],1)])},i=[];r._withStripped=!0},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wishlist-product"},[n("a",{staticClass:"wishlist-product-link",attrs:{href:e.product.canonical_url}},[n("div",{staticClass:"wishlist-product-image"},[e.product.default_image?n("img",{class:{"wishlist-product-unavailable":!e.product.add_to_cart_url},attrs:{src:e.product.default_image.large.url,alt:e.product.default_image.legend,title:e.product.default_image.legend}}):n("img",{attrs:{src:e.prestashop.urls.no_picture_image.bySize.home_default.url}}),e._v(" "),e.product.show_availability?n("p",{staticClass:"wishlist-product-availability"},["unavailable"===e.product.availability?n("i",{staticClass:"material-icons"},[e._v("\n block\n ")]):e._e(),e._v(" "),"last_remaining_items"===e.product.availability?n("i",{staticClass:"material-icons"},[e._v("\n warning\n ")]):e._e(),e._v("\n "+e._s(e.product.availability_message)+"\n ")]):e._e()]),e._v(" "),n("div",{staticClass:"wishlist-product-right"},[n("p",{staticClass:"wishlist-product-title"},[e._v(e._s(e.product.name))]),e._v(" "),n("p",{staticClass:"wishlist-product-price"},[e.product.has_discount?n("span",{staticClass:"wishlist-product-price-promo"},[e._v("\n "+e._s(e.product.regular_price)+"\n ")]):e._e(),e._v("\n "+e._s(e.product.price)+"\n ")]),e._v(" "),n("div",{staticClass:"wishlist-product-combinations"},[n("p",{staticClass:"wishlist-product-combinations-text"},[e._l(e.product.attributes,(function(t,r,i){return[e._v("\n "+e._s(t.group)+" : "+e._s(t.name)+"\n "),i<=Object.keys(e.product.attributes).length-1?n("span",{key:r},[e._v("\n -\n ")]):e._e(),e._v(" "),i==Object.keys(e.product.attributes).length-1?n("span",{key:r+"end"},[e._v("\n "+e._s(e.quantityText)+" : "+e._s(e.product.wishlist_quantity)+"\n ")]):e._e()]})),e._v(" "),0===Object.keys(e.product.attributes).length?n("span",[e._v("\n "+e._s(e.quantityText)+" : "+e._s(e.product.wishlist_quantity)+"\n ")]):e._e()],2),e._v(" "),e.isShare?e._e():n("a",{attrs:{href:e.product.canonical_url}},[n("i",{staticClass:"material-icons"},[e._v("create")])])])])]),e._v(" "),n("div",{staticClass:"wishlist-product-bottom"},[n("button",{staticClass:"btn wishlist-product-addtocart",class:{"btn-secondary":"1"===e.product.customizable,"btn-primary":"0"===e.product.customizable},attrs:{disabled:e.isDisabled},on:{click:function(t){(e.product.add_to_cart_url||"1"===e.product.customizable)&&e.addToCartAction()}}},["0"===e.product.customizable?n("i",{staticClass:"material-icons shopping-cart"},[e._v("\n shopping_cart\n ")]):e._e(),e._v("\n "+e._s("1"===e.product.customizable?e.customizeText:e.addToCart)+"\n ")]),e._v(" "),e.isShare?e._e():n("button",{staticClass:"wishlist-button-add",on:{click:e.removeFromWishlist}},[n("i",{staticClass:"material-icons"},[e._v("delete")])])]),e._v(" "),e.product.show_availability?n("p",{staticClass:"wishlist-product-availability wishlist-product-availability-responsive"},["unavailable"===e.product.availability?n("i",{staticClass:"material-icons"},[e._v("\n block\n ")]):e._e(),e._v(" "),"last_remaining_items"===e.product.availability?n("i",{staticClass:"material-icons"},[e._v("\n warning\n ")]):e._e(),e._v("\n "+e._s(e.product.availability_message)+"\n ")]):e._e()])},i=[];r._withStripped=!0},,,,function(e,t,n){n(400),n(409),n(345),e.exports=n(387)},function(e,t,n){"use strict";var r=o(n(113)),i=o(n(401));function o(e){return e&&e.__esModule?e:{default:e}}
+ */var a=[{name:"deleteProductUrl",type:String},{name:"deleteListUrl",type:String},{name:"title",type:String},{name:"titleList",type:String},{name:"placeholder",type:String},{name:"cancelText",type:String},{name:"deleteText",type:String},{name:"deleteTextList",type:String}];(0,r.default)(i.default,".wishlist-delete",a)},function(e,t,n){"use strict";n.r(t);var r=n(332);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n(390);var o=n(38),a=Object(o.a)(r.default,void 0,void 0,!1,null,"b30802ea",null);a.options.__file="_dev/front/js/components/Delete/Delete.vue",t.default=a.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,o(n(125)).default)(["\n mutation deleteList($listId: Int!, $url: String!) {\n deleteList(listId: $listId, url: $url) {\n success\n message\n }\n }\n"],["\n mutation deleteList($listId: Int!, $url: String!) {\n deleteList(listId: $listId, url: $url) {\n success\n message\n }\n }\n"]),i=o(n(39));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r)},function(e,t,n){"use strict";var r=n(334);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-delete .wishlist-modal[data-v-b30802ea]{display:block;opacity:0;pointer-events:none;z-index:0}.wishlist-delete .wishlist-modal.show[data-v-b30802ea]{opacity:1;pointer-events:all;z-index:1053}\n",""]),e.exports=t},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wishlist-products-container"},[n("div",{staticClass:"wishlist-products-container-header"},[n("h1",[e._v("\n "+e._s(e.title)+"\n\n "),e.products.datas&&e.products.datas.products?n("span",{staticClass:"wishlist-products-count"},[e._v("\n ("+e._s(e.products.datas.pagination.total_items)+")\n ")]):e._e()]),e._v(" "),e.products.datas?n("div",{staticClass:"sort-by-row"},[n("span",{staticClass:"col-sm-3 col-md-3 hidden-sm-down sort-by"},[e._v("Sort by:")]),e._v(" "),n("div",{staticClass:"col-sm-9 col-xs-8 col-md-9 products-sort-order dropdown"},[n("button",{staticClass:"btn-unstyle select-title",attrs:{rel:"nofollow","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e._v("\n "+e._s(e.currentSort)+"\n "),n("i",{staticClass:"material-icons float-xs-right"},[e._v("arrow_drop_down")])]),e._v(" "),n("div",{staticClass:"dropdown-menu"},e._l(e.productList,(function(t,r){return n("a",{key:r,staticClass:"select-list js-search-link",attrs:{rel:"nofollow"},on:{click:function(n){return e.changeSelectedSort(t)}}},[e._v("\n "+e._s(t.label)+"\n ")])})),0)])]):e._e()]),e._v(" "),n("section",{staticClass:"page-content card card-block",attrs:{id:"content"}},[e.products.datas&&e.products.datas.products.length>0?n("ul",{staticClass:"wishlist-products-list"},e._l(e.products.datas.products,(function(t,r){return n("li",{key:r,staticClass:"wishlist-products-item"},[n("Product",{attrs:{product:t,"add-to-cart":e.addToCart,"customize-text":e.customizeText,"quantity-text":e.quantityText,"list-name":e.title,"list-id":e.listId?e.listId:parseInt(e.currentWishlist.id_wishlist,10),"is-share":e.share}})],1)})),0):e._e(),e._v(" "),e.products.datas?e._e():n("ContentLoader",{staticClass:"wishlist-list-loader",attrs:{height:"105"}},[n("rect",{attrs:{x:"0",y:"12",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"36",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"84",rx:"3",ry:"0",width:"100%",height:"11"}})]),e._v(" "),e.products.datas&&e.products.datas.products.length<=0?n("p",{staticClass:"wishlist-list-empty"},[e._v("\n "+e._s(e.noProductsMessage)+"\n ")]):e._e()],1)])},i=[];r._withStripped=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wishlist-product"},[n("a",{staticClass:"wishlist-product-link",attrs:{href:e.product.canonical_url}},[n("div",{staticClass:"wishlist-product-image"},[e.product.default_image?n("img",{class:{"wishlist-product-unavailable":!e.product.add_to_cart_url},attrs:{src:e.product.default_image.large.url,alt:e.product.default_image.legend,title:e.product.default_image.legend}}):e.product.cover?n("img",{class:{"wishlist-product-unavailable":!e.product.add_to_cart_url},attrs:{src:e.product.cover.large.url,alt:e.product.cover.legend,title:e.product.cover.legend}}):n("img",{attrs:{src:e.prestashop.urls.no_picture_image.bySize.home_default.url}}),e._v(" "),e.product.show_availability?n("p",{staticClass:"wishlist-product-availability"},["unavailable"===e.product.availability?n("i",{staticClass:"material-icons"},[e._v("\n block\n ")]):e._e(),e._v(" "),"last_remaining_items"===e.product.availability?n("i",{staticClass:"material-icons"},[e._v("\n warning\n ")]):e._e(),e._v("\n "+e._s(e.product.availability_message)+"\n ")]):e._e()]),e._v(" "),n("div",{staticClass:"wishlist-product-right"},[n("p",{staticClass:"wishlist-product-title"},[e._v(e._s(e.product.name))]),e._v(" "),n("p",{staticClass:"wishlist-product-price"},[e.product.has_discount?n("span",{staticClass:"wishlist-product-price-promo"},[e._v("\n "+e._s(e.product.regular_price)+"\n ")]):e._e(),e._v("\n "+e._s(e.product.price)+"\n ")]),e._v(" "),n("div",{staticClass:"wishlist-product-combinations"},[n("p",{staticClass:"wishlist-product-combinations-text"},[e._l(e.product.attributes,(function(t,r,i){return[e._v("\n "+e._s(t.group)+" : "+e._s(t.name)+"\n "),i<=Object.keys(e.product.attributes).length-1?n("span",{key:r},[e._v("\n -\n ")]):e._e(),e._v(" "),i==Object.keys(e.product.attributes).length-1?n("span",{key:r+"end"},[e._v("\n "+e._s(e.quantityText)+" : "+e._s(e.product.wishlist_quantity)+"\n ")]):e._e()]})),e._v(" "),0===Object.keys(e.product.attributes).length?n("span",[e._v("\n "+e._s(e.quantityText)+" : "+e._s(e.product.wishlist_quantity)+"\n ")]):e._e()],2),e._v(" "),e.isShare?e._e():n("a",{attrs:{href:e.product.canonical_url}},[n("i",{staticClass:"material-icons"},[e._v("create")])])])])]),e._v(" "),n("div",{staticClass:"wishlist-product-bottom"},[n("button",{staticClass:"btn wishlist-product-addtocart",class:{"btn-secondary":"1"===e.product.customizable,"btn-primary":"0"===e.product.customizable},attrs:{disabled:e.isDisabled},on:{click:function(t){(e.product.add_to_cart_url||"1"===e.product.customizable)&&e.addToCartAction()}}},["0"===e.product.customizable?n("i",{staticClass:"material-icons shopping-cart"},[e._v("\n shopping_cart\n ")]):e._e(),e._v("\n "+e._s("1"===e.product.customizable?e.customizeText:e.addToCart)+"\n ")]),e._v(" "),e.isShare?e._e():n("button",{staticClass:"wishlist-button-add",on:{click:e.removeFromWishlist}},[n("i",{staticClass:"material-icons"},[e._v("delete")])])]),e._v(" "),e.product.show_availability?n("p",{staticClass:"wishlist-product-availability wishlist-product-availability-responsive"},["unavailable"===e.product.availability?n("i",{staticClass:"material-icons"},[e._v("\n block\n ")]):e._e(),e._v(" "),"last_remaining_items"===e.product.availability?n("i",{staticClass:"material-icons"},[e._v("\n warning\n ")]):e._e(),e._v("\n "+e._s(e.product.availability_message)+"\n ")]):e._e()])},i=[];r._withStripped=!0},,,,function(e,t,n){n(400),n(409),n(345),e.exports=n(387)},function(e,t,n){"use strict";var r=o(n(113)),i=o(n(401));function o(e){return e&&e.__esModule?e:{default:e}}
/**
* 2007-2020 PrestaShop and Contributors
*
@@ -126,7 +126,7 @@ t.default="\n scalar JSON\n scalar JSONObject\n\n type List {\n id_wishlis
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
- */var a=[{name:"url",type:String},{name:"title",type:String},{name:"noProductsMessage",type:String},{name:"addToCart",type:String},{name:"customizeText",type:String},{name:"wishlistProducts",type:String},{name:"wishlist",type:String},{name:"share",type:Boolean},{name:"quantityText",type:String},{name:"filter",type:String},{name:"listId",type:Number}];(0,r.default)(i.default,".wishlist-products-container",a)},function(e,t,n){"use strict";n.r(t);var r=n(393),i=n(350);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n(407);var a=n(38),u=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);u.options.__file="_dev/front/js/container/ProductsListContainer/ProductsListContainer.vue",t.default=u.exports},function(e,t,n){"use strict";n.r(t);var r=n(395),i=n(352);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n(404);var a=n(38),u=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);u.options.__file="_dev/front/js/components/Product/Product.vue",t.default=u.exports},function(e,t){e.exports=window.wishlistAddProductToCartUrl},function(e,t,n){"use strict";var r=n(354);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-products-item{margin:25px}.wishlist-product{max-width:250px;width:100%;position:relative;height:100%;display:flex;flex-direction:column;justify-content:space-between}.wishlist-product-unavailable{opacity:0.5}.wishlist-product-availability{display:flex;align-items:flex-start;margin-bottom:0;color:#232323;font-size:12px;font-weight:bold;letter-spacing:0;line-height:17px;position:absolute;left:50%;transform:translateX(-50%);bottom:17px;z-index:5;min-width:80%;justify-content:center}.wishlist-product-availability i{color:#ff4c4c;margin-right:5px;font-size:18px}.wishlist-product-availability-responsive{display:none;position:inherit;transform:inherit;bottom:inherit;margin-top:10px;left:inherit}.wishlist-product-link:focus{text-decoration:none}.wishlist-product-link:hover img{transform:translate(-50%, -50%) scale(1.1)}.wishlist-product-title{margin-top:10px;margin-bottom:5px;color:#737373;font-size:14px;letter-spacing:0;line-height:19px}.wishlist-product-image{width:250px;height:250px;position:relative;overflow:hidden}.wishlist-product-image img{position:absolute;max-width:100%;max-height:100%;top:50%;left:50%;transform:translate(-50%, -50%);transition:0.25s ease-out}.wishlist-product-price{color:#232323;font-size:16px;font-weight:bold;letter-spacing:0;line-height:22px}.wishlist-product-price-promo{text-decoration:line-through;color:#737373;font-size:14px;font-weight:bold;letter-spacing:0;line-height:19px;margin-right:5px;vertical-align:middle;display:inline-block;margin-top:-3px}.wishlist-product-combinations{display:flex;align-items:flex-start;justify-content:space-between}.wishlist-product-combinations a{display:block;color:#7a7a7a}.wishlist-product-combinations a:hover{color:#2fb5d2}.wishlist-product-combinations-text{color:#7a7a7a;font-size:13px;letter-spacing:0;line-height:20px;min-height:50px;margin:0}.wishlist-product-addtocart{width:100%;text-transform:inherit;padding-left:10px}.wishlist-product-addtocart.btn-secondary{background-color:#dddddd}.wishlist-product-addtocart.btn-secondary:hover{background-color:#dddddd;opacity:0.7}.wishlist-product-addtocart i{margin-top:-3px}.wishlist-button-add{position:absolute;top:10px;right:10px;display:flex;align-items:center;justify-content:center;height:40px;width:40px;min-width:40px;padding-top:3px;background-color:#ffffff;box-shadow:2px 2px 4px 0 rgba(0,0,0,0.2);border-radius:50%;cursor:pointer;transition:0.2s ease-out;border:none}.wishlist-button-add:hover{opacity:0.7}.wishlist-button-add:focus{outline:0}.wishlist-button-add:active{transform:scale(1.2)}.wishlist-button-add i{color:#7a7a7a;margin-top:-2px}@media screen and (max-width: 768px){.wishlist-button-add{position:inherit;margin-left:10px}.wishlist-products-item{width:100%;margin:0;margin-bottom:30px}.wishlist-products-item:not(:last-child){margin-bottom:30px}.wishlist-product{margin:0;width:100%;max-width:100%}.wishlist-product-link:hover img{transform:inherit}.wishlist-product-bottom{display:flex;align-items:center;justify-content:space-between}.wishlist-product-right{flex:1}.wishlist-product-availability{display:none}.wishlist-product-availability-responsive{display:block;min-width:100%;justify-content:flex-start}.wishlist-product-image{width:100px;height:100px;margin-right:20px;position:inherit}.wishlist-product-image img{position:inherit;left:inherit;top:inherit;transform:inherit}.wishlist-product-link{display:flex;align-items:flex-start}.wishlist-product-title{margin-top:0}}\n",""]),e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,o(n(125)).default)(["\n query getProducts($listId: Int!, $url: String!) {\n products(listId: $listId, url: $url) {\n datas\n }\n }\n"],["\n query getProducts($listId: Int!, $url: String!) {\n products(listId: $listId, url: $url) {\n datas\n }\n }\n"]),i=o(n(39));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r)},function(e,t,n){"use strict";var r=n(355);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-list-loader{padding:0 20px;width:100%}.wishlist-list-empty{font-size:30;text-align:center;padding:30px;padding-bottom:20px;font-weight:bold;color:#000}.wishlist-products-container .sort-by-row{min-width:315px;display:flex;align-items:center}.wishlist-products-container .sort-by-row a{cursor:pointer}.wishlist-products-container .sort-by-row .sort-by{padding:0}.wishlist-products-container .sort-by-row .products-sort-order{padding:0}.wishlist-products-container-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}#main .wishlist-products-container .card.page-content{padding:0;margin-bottom:12px}.wishlist-products-list{display:flex;flex-wrap:wrap;margin:-25px;padding:20px 45px;margin-top:0}.wishlist-products-count{color:#7a7a7a;font-size:22px;font-weight:normal;line-height:30px}#view #wrapper .container{width:975px}@media screen and (max-width: 768px){.wishlist-products-container-header{flex-wrap:wrap}.wishlist-products-container-header .products-sort-order{flex:1}.wishlist-products-container-header .filter-button{width:auto;padding-right:0}.wishlist-products-container-header .sort-by-row{width:100%}.wishlist-products-container .page-content.card{box-shadow:2px 2px 8px 0 rgba(0,0,0,0.2);background-color:#fff;margin-top:20px}.wishlist-products-container .wishlist-products-list{justify-content:center;margin:0;padding:15px}}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=o(n(113)),i=o(n(410));function o(e){return e&&e.__esModule?e:{default:e}}
+ */var a=[{name:"url",type:String},{name:"title",type:String},{name:"noProductsMessage",type:String},{name:"addToCart",type:String},{name:"customizeText",type:String},{name:"wishlistProducts",type:String},{name:"wishlist",type:String},{name:"share",type:Boolean},{name:"quantityText",type:String},{name:"filter",type:String},{name:"listId",type:Number}];(0,r.default)(i.default,".wishlist-products-container",a)},function(e,t,n){"use strict";n.r(t);var r=n(394),i=n(350);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n(407);var a=n(38),u=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);u.options.__file="_dev/front/js/container/ProductsListContainer/ProductsListContainer.vue",t.default=u.exports},function(e,t,n){"use strict";n.r(t);var r=n(395),i=n(352);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n(404);var a=n(38),u=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);u.options.__file="_dev/front/js/components/Product/Product.vue",t.default=u.exports},function(e,t){e.exports=window.wishlistAddProductToCartUrl},function(e,t,n){"use strict";var r=n(354);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-products-item{margin:25px}.wishlist-product{max-width:250px;width:100%;position:relative;height:100%;display:flex;flex-direction:column;justify-content:space-between}.wishlist-product-unavailable{opacity:0.5}.wishlist-product-availability{display:flex;align-items:flex-start;margin-bottom:0;color:#232323;font-size:12px;font-weight:bold;letter-spacing:0;line-height:17px;position:absolute;left:50%;transform:translateX(-50%);bottom:17px;z-index:5;min-width:80%;justify-content:center}.wishlist-product-availability i{color:#ff4c4c;margin-right:5px;font-size:18px}.wishlist-product-availability-responsive{display:none;position:inherit;transform:inherit;bottom:inherit;margin-top:10px;left:inherit}.wishlist-product-link:focus{text-decoration:none}.wishlist-product-link:hover img{transform:translate(-50%, -50%) scale(1.1)}.wishlist-product-title{margin-top:10px;margin-bottom:5px;color:#737373;font-size:14px;letter-spacing:0;line-height:19px}.wishlist-product-image{width:250px;height:250px;position:relative;overflow:hidden}.wishlist-product-image img{position:absolute;max-width:100%;max-height:100%;top:50%;left:50%;transform:translate(-50%, -50%);transition:0.25s ease-out}.wishlist-product-price{color:#232323;font-size:16px;font-weight:bold;letter-spacing:0;line-height:22px}.wishlist-product-price-promo{text-decoration:line-through;color:#737373;font-size:14px;font-weight:bold;letter-spacing:0;line-height:19px;margin-right:5px;vertical-align:middle;display:inline-block;margin-top:-3px}.wishlist-product-combinations{display:flex;align-items:flex-start;justify-content:space-between}.wishlist-product-combinations a{display:block;color:#7a7a7a}.wishlist-product-combinations a:hover{color:#2fb5d2}.wishlist-product-combinations-text{color:#7a7a7a;font-size:13px;letter-spacing:0;line-height:20px;min-height:50px;margin:0}.wishlist-product-addtocart{width:100%;text-transform:inherit;padding-left:10px}.wishlist-product-addtocart.btn-secondary{background-color:#dddddd}.wishlist-product-addtocart.btn-secondary:hover{background-color:#dddddd;opacity:0.7}.wishlist-product-addtocart i{margin-top:-3px}.wishlist-button-add{position:absolute;top:10px;right:10px;display:flex;align-items:center;justify-content:center;height:40px;width:40px;min-width:40px;padding-top:3px;background-color:#ffffff;box-shadow:2px 2px 4px 0 rgba(0,0,0,0.2);border-radius:50%;cursor:pointer;transition:0.2s ease-out;border:none}.wishlist-button-add:hover{opacity:0.7}.wishlist-button-add:focus{outline:0}.wishlist-button-add:active{transform:scale(1.2)}.wishlist-button-add i{color:#7a7a7a;margin-top:-2px}@media screen and (max-width: 768px){.wishlist-button-add{position:inherit;margin-left:10px}.wishlist-products-item{width:100%;margin:0;margin-bottom:30px}.wishlist-products-item:not(:last-child){margin-bottom:30px}.wishlist-product{margin:0;width:100%;max-width:100%}.wishlist-product-link:hover img{transform:inherit}.wishlist-product-bottom{display:flex;align-items:center;justify-content:space-between}.wishlist-product-right{flex:1}.wishlist-product-availability{display:none}.wishlist-product-availability-responsive{display:block;min-width:100%;justify-content:flex-start}.wishlist-product-image{width:100px;height:100px;margin-right:20px;position:inherit}.wishlist-product-image img{position:inherit;left:inherit;top:inherit;transform:inherit}.wishlist-product-link{display:flex;align-items:flex-start}.wishlist-product-title{margin-top:0}}\n",""]),e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,o(n(125)).default)(["\n query getProducts($listId: Int!, $url: String!) {\n products(listId: $listId, url: $url) {\n datas\n }\n }\n"],["\n query getProducts($listId: Int!, $url: String!) {\n products(listId: $listId, url: $url) {\n datas\n }\n }\n"]),i=o(n(39));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r)},function(e,t,n){"use strict";var r=n(355);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-list-loader{padding:0 20px;width:100%}.wishlist-list-empty{font-size:30;text-align:center;padding:30px;padding-bottom:20px;font-weight:bold;color:#000}.wishlist-products-container .sort-by-row{min-width:315px;display:flex;align-items:center}.wishlist-products-container .sort-by-row a{cursor:pointer}.wishlist-products-container .sort-by-row .sort-by{padding:0}.wishlist-products-container .sort-by-row .products-sort-order{padding:0}.wishlist-products-container-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}#main .wishlist-products-container .card.page-content{padding:0;margin-bottom:12px}.wishlist-products-list{display:flex;flex-wrap:wrap;margin:-25px;padding:20px 45px;margin-top:0}.wishlist-products-count{color:#7a7a7a;font-size:22px;font-weight:normal;line-height:30px}#view #wrapper .container{width:975px}@media screen and (max-width: 768px){.wishlist-products-container-header{flex-wrap:wrap}.wishlist-products-container-header .products-sort-order{flex:1}.wishlist-products-container-header .filter-button{width:auto;padding-right:0}.wishlist-products-container-header .sort-by-row{width:100%}.wishlist-products-container .page-content.card{box-shadow:2px 2px 8px 0 rgba(0,0,0,0.2);background-color:#fff;margin-top:20px}.wishlist-products-container .wishlist-products-list{justify-content:center;margin:0;padding:15px}}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=o(n(113)),i=o(n(410));function o(e){return e&&e.__esModule?e:{default:e}}
/**
* 2007-2020 PrestaShop and Contributors
*
diff --git a/public/wishlistcontainer.bundle.js b/public/wishlistcontainer.bundle.js
index e4e76c10..b8e87dfa 100644
--- a/public/wishlistcontainer.bundle.js
+++ b/public/wishlistcontainer.bundle.js
@@ -72,7 +72,7 @@ var c=new a.InMemoryCache;t.default=new i.ApolloClient({link:new o.SchemaLink({s
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
-t.default="\n scalar JSON\n scalar JSONObject\n\n type List {\n id_wishlist: Int\n name: String\n listUrl: String\n shareUrl: String\n default: Int\n nbProducts: Int\n }\n\n type ShareUrl {\n url: String\n }\n\n type CreateResponse {\n datas: List\n success: Boolean!\n message: String!\n }\n\n type ProductListResponse {\n datas: JSONObject\n }\n\n type Response {\n success: Boolean!\n message: String!\n }\n\n type Query {\n products(listId: Int!, url: String!): ProductListResponse\n lists(url: String!): [List]\n }\n\n type Mutation {\n createList(name: String!, url: String!): CreateResponse\n shareList(listId: String!, userId: Int!): ShareUrl\n renameList(name: String!, url: String!, listId: Int!): Response\n addToList(listId: Int!, productId: Int!, quantity: Int!, productAttributeId: Int!, url: String!): Response\n removeFromList(listId: Int!, productId: Int!, productAttributeId: Int!, url: String!): Response\n deleteList(listId: Int!, url: String!): Response\n }\n"},function(e,t,n){e.exports={default:n(311),__esModule:!0}},function(e,t,n){n(312);var r=n(19).Object;e.exports=function(e,t){return r.defineProperties(e,t)}},function(e,t,n){var r=n(37);r(r.S+r.F*!n(36),"Object",{defineProperties:n(127)})},function(e,t,n){e.exports={default:n(314),__esModule:!0}},function(e,t,n){n(315),e.exports=n(19).Object.freeze},function(e,t,n){var r=n(31),i=n(316).onFreeze;n(317)("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(86)("meta"),i=n(31),o=n(51),a=n(50).f,u=0,s=Object.isExtensible||function(){return!0},c=!n(65)((function(){return s(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!s(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!s(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&s(e)&&!o(e,r)&&l(e),e}}},function(e,t,n){var r=n(37),i=n(19),o=n(65);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){"use strict";n.r(t),n.d(t,"HeuristicFragmentMatcher",(function(){return U})),n.d(t,"InMemoryCache",(function(){return ce})),n.d(t,"IntrospectionFragmentMatcher",(function(){return $})),n.d(t,"ObjectCache",(function(){return X})),n.d(t,"StoreReader",(function(){return J})),n.d(t,"StoreWriter",(function(){return ne})),n.d(t,"WriteError",(function(){return ee})),n.d(t,"assertIdValue",(function(){return H})),n.d(t,"defaultDataIdFromObject",(function(){return ae})),n.d(t,"defaultNormalizedCacheFactory",(function(){return Z})),n.d(t,"enhanceErrorWithDocument",(function(){return te}));var r=n(0),i=n(1);function o(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(e)}]}}function a(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return a(e[0]);var t=[];return Object.keys(e).forEach((function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:a(e[n])||void 0};t.push(r)})),{kind:"SelectionSet",selections:t}}var u,s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},c=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(i.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(i.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,i=e.data;if(void 0!==r){var u=null;try{u=this.read({rootId:r,optimistic:!1,query:s})}catch(e){}var c=u&&u.__typename||"__ClientData",l=Object.assign({__typename:c},i);this.writeFragment({id:r,fragment:(t=l,n=c,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(t)}]}),data:l})}else this.writeQuery({query:o(i),data:i})},e}();u||(u={});var l=n(29),f=null,p={},d=1,h=Array,v=h["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",d++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=f;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===p)break;return e!==f&&(f.slots[this.id]=t),!0}return f&&(f.slots[this.id]=p),!1},e.prototype.getValue=function(){if(this.hasValue())return f.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=f;f={parent:a,slots:o};try{return t.apply(r,n)}finally{f=a}},e.bind=function(e){var t=f;return function(){var n=f;try{return f=t,e.apply(this,arguments)}finally{f=n}}},e.noContext=function(e,t,n){if(!f)return e.apply(n,t);var r=f;try{return f=null,e.apply(n,t)}finally{f=r}},e}();try{Object.defineProperty(h,"@wry/context:Slot",{value:h["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();v.bind,v.noContext;function y(){}var m=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=y),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),g=new v,b=[],T=[];function _(e,t){if(!e)throw new Error(t||"assertion failure")}function O(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var E=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(_(!this.recomputing,"already recomputing"),function(e){var t=g.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),S(e)?j(t,e):k(t,e),t}(this)||!L(this))return S(this)?function(e){var t=D(e);g.withValue(e,w,[e]),function(e){if("function"==typeof e.subscribe)try{P(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,S(e))return;I(e)}(e);return t.forEach(L),O(e.value)}(this):O(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,N(this),P(this))},e.prototype.dispose=function(){var e=this;D(this).forEach(L),P(this),this.parents.forEach((function(t){t.setDirty(),A(t,e)}))},e.count=0,e}();function w(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function S(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function N(e){e.parents.forEach((function(t){return j(t,e)}))}function I(e){e.parents.forEach((function(t){return k(t,e)}))}function j(e,t){if(_(e.childValues.has(t)),_(S(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=T.pop()||new Set;e.dirtyChildren.add(t),N(e)}function k(e,t){_(e.childValues.has(t)),_(!S(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),x(e,t),S(e)||I(e)}function x(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(T.length<100&&T.push(n),e.dirtyChildren=null))}function L(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function D(e){var t=b;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(n,r){A(e,r),t.push(r)}))),_(null===e.dirtyChildren),t}function A(e,t){t.parents.delete(e),e.childValues.delete(t),x(e,t)}function P(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var R=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),q=Object.prototype.hasOwnProperty,B=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=Q((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){q.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){q.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function Y(e){return new B(e)}var J=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,o=void 0===r?new R(i.e):r,a=n.freezeResults,u=void 0!==a&&a,s=this.executeStoreQuery,c=this.executeSelectionSet,l=this.executeSubSelectedArray;this.freezeResults=u,this.executeStoreQuery=Q((function(e){return s.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof B)return o.lookup(r.store,t,a,JSON.stringify(i),n.id)}}),this.executeSelectionSet=Q((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof B)return o.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=Q((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof B)return o.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(r.a)(Object(r.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,o=e.previousResult,a=e.returnPartialData,u=void 0===a||a,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,f=e.fragmentMatcherFunction,p=e.config,d=Object(i.o)(n);r=Object(i.c)({},Object(i.h)(d),r);var h={store:t,dataIdFromObject:p&&p.dataIdFromObject,cacheRedirects:p&&p.cacheRedirects||{}},v=this.executeStoreQuery({query:n,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:h,variableValues:r,fragmentMatcher:f}),y=v.missing&&v.missing.length>0;return y&&!u&&v.missing.forEach((function(e){if(!e.tolerable)throw new V.a(8)})),o&&Object(l.a)(o,v.result)&&(v.result=o),{result:v.result,complete:!y}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher,u=void 0===a?z:a,s=Object(i.l)(t),c=Object(i.j)(t),l={query:t,fragmentMap:Object(i.g)(c),contextValue:r,variableValues:o,fragmentMatcher:u};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:n,execContext:l})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,o=e.rootValue,a=e.execContext,u=a.fragmentMap,s=a.contextValue,c=a.variableValues,l={result:null},f=[],p=s.store.get(o.id),d=p&&p.__typename||"ROOT_QUERY"===o.id&&"Query"||void 0;function h(e){var t;return e.missing&&(l.missing=l.missing||[],(t=l.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if(Object(i.F)(e,c))if(Object(i.t)(e)){var l=h(t.executeField(p,d,e,a));void 0!==l&&f.push(((n={})[Object(i.E)(e)]=l,n))}else{var v=void 0;if(Object(i.v)(e))v=e;else if(!(v=u[e.name.value]))throw new V.a(9);var y=v.typeCondition&&v.typeCondition.name.value,m=!y||a.fragmentMatcher(o,y,s);if(m){var g=t.executeSelectionSet({selectionSet:v.selectionSet,rootValue:o,execContext:a});"heuristic"===m&&g.missing&&(g=Object(r.a)(Object(r.a)({},g),{missing:g.missing.map((function(e){return Object(r.a)(Object(r.a)({},e),{tolerable:!0})}))})),f.push(h(g))}}})),l.result=Object(i.B)(f),this.freezeResults,l},e.prototype.executeField=function(e,t,n,r){var o=r.variableValues,a=r.contextValue,u=function(e,t,n,r,o,a){a.resultKey;var u=a.directives,s=n;(r||u)&&(s=Object(i.p)(s,r,u));var c=void 0;if(e&&void 0===(c=e[s])&&o.cacheRedirects&&"string"==typeof t){var l=o.cacheRedirects[t];if(l){var f=l[n];f&&(c=f(e,r,{getCacheKey:function(e){var t=o.dataIdFromObject(e);return t&&Object(i.H)({id:t,typename:e.__typename})}}))}}if(void 0===c)return{result:c,missing:[{object:e,fieldName:s,tolerable:!1}]};Object(i.w)(c)&&(c=c.json);return{result:c}}(e,t,n.name.value,Object(i.b)(n,o),a,{resultKey:Object(i.E)(n),directives:Object(i.i)(n,o)});return Array.isArray(u.result)?this.combineExecResults(u,this.executeSubSelectedArray({field:n,array:u.result,execContext:r})):n.selectionSet?null==u.result?u:this.combineExecResults(u,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:u.result,execContext:r})):(W(n,u.result),this.freezeResults,u)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var oe={fragmentMatcher:new U,dataIdFromObject:ae,addTypename:!0,resultCaching:!0,freezeResults:!1};function ae(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var ue=Object.prototype.hasOwnProperty,se=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return Object(r.c)(t,e),t.prototype.toObject=function(){return Object(r.a)(Object(r.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return ue.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(X),ce=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new R(i.e),n.silenceBroadcast=!1,n.config=Object(r.a)(Object(r.a)({},oe),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new B:new X,n.optimisticData=n.data,n.storeWriter=new ne,n.storeReader=new J({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var o=n,a=o.maybeBroadcastWatch;return n.maybeBroadcastWatch=Q((function(e){return a.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return o.data instanceof B?o.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return Object(r.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new V.a(1)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof se;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new se(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(i.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(c)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wishlist-toast",class:[{isActive:this.active},this.type]},[t("p",{staticClass:"wishlist-toast-text"},[this._v("\n "+this._s(this.text)+"\n ")])])},i=[];r._withStripped=!0},,,,function(e,t,n){"use strict";n.r(t);var r=n(324),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=s(n(87)),o=s(n(88)),a=s(n(376)),u=s(n(66));function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"Rename",props:{url:{type:String,required:!0,default:"#"},title:{type:String,required:!0,default:"Rename wishlist"},label:{type:String,required:!0,default:"Wishlist name"},placeholder:{type:String,required:!0,default:"Rename text"},cancelText:{type:String,required:!0,default:"Cancel"},renameText:{type:String,required:!0,default:"Rename"}},data:function(){return{value:"",isHidden:!0,listId:0}},methods:{toggleModal:function(){this.isHidden=!this.isHidden},renameWishlist:(r=(0,o.default)(i.default.mark((function e(){var t,n,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$apollo.mutate({mutation:a.default,variables:{name:this.value,url:this.url,listId:this.listId}});case 2:t=e.sent,n=t.data,r=n.renameList,u.default.$emit("refetchList"),u.default.$emit("showToast",{detail:{type:r.success?"success":"error",message:r.message}}),this.toggleModal();case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},mounted:function(){var e=this;u.default.$on("showRenameWishlist",(function(t){e.value=t.detail.title,e.listId=t.detail.listId,e.toggleModal()}))}}},function(e,t,n){var r=n(378);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("3e7f3e72",r,!1,{})},,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(333),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=c(n(87)),o=c(n(88)),a=c(n(389)),u=c(n(335)),s=c(n(66));function c(e){return e&&e.__esModule?e:{default:e}}t.default={name:"Delete",props:{deleteProductUrl:{type:String,required:!1,default:"#"},deleteListUrl:{type:String,required:!1,default:"#"},title:{type:String,required:!0,default:"Delete"},placeholder:{type:String,required:!0,default:"This action is irreversible"},cancelText:{type:String,required:!0,default:"Cancel"},deleteText:{type:String,required:!0,default:"Delete"}},data:function(){return{value:"",isHidden:!0,listId:null,productId:null,productAttributeId:null}},methods:{toggleModal:function(){this.isHidden=!this.isHidden},deleteWishlist:(r=(0,o.default)(i.default.mark((function e(){var t,n,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$apollo.mutate({mutation:this.productId?u.default:a.default,variables:{listId:this.listId,productId:parseInt(this.productId,10),productAttributeId:parseInt(this.productAttributeId,10),url:this.productId?this.deleteProductUrl:this.deleteListUrl}});case 2:t=e.sent,n=t.data,r=n.deleteList?n.deleteList:n.removeFromList,s.default.$emit("refetchList"),s.default.$emit("showToast",{detail:{type:r.success?"success":"error",message:r.message}}),this.toggleModal();case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},mounted:function(){var e=this;s.default.$on("showDeleteWishlist",(function(t){e.value="",e.listId=t.detail.listId,e.productId=null,e.productAttributeId=null,t.detail.productId&&(e.productId=t.detail.productId,e.productAttributeId=t.detail.productAttributeId),e.toggleModal()}))}}},function(e,t,n){var r=n(391);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("2b1b675f",r,!1,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,o(n(125)).default)(["\n mutation removeFromList($listId: Int!, $productId: Int!, $productAttributeId: Int!, $url: String!) {\n removeFromList(listId: $listId, productId: $productId, productAttributeId: $productAttributeId, url: $url) {\n success\n message\n }\n }\n"],["\n mutation removeFromList($listId: Int!, $productId: Int!, $productAttributeId: Int!, $url: String!) {\n removeFromList(listId: $listId, productId: $productId, productAttributeId: $productAttributeId, url: $url) {\n success\n message\n }\n }\n"]),i=o(n(39));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r)},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentLoader",(function(){return a})),n.d(t,"BulletListLoader",(function(){return u})),n.d(t,"CodeLoader",(function(){return s})),n.d(t,"FacebookLoader",(function(){return c})),n.d(t,"ListLoader",(function(){return l})),n.d(t,"InstagramLoader",(function(){return f}));var r=n(227),i=n.n(r),o=function(){return Math.random().toString(36).substring(2)},a={name:"ContentLoader",functional:!0,props:{width:{type:[Number,String],default:400},height:{type:[Number,String],default:130},speed:{type:Number,default:2},preserveAspectRatio:{type:String,default:"xMidYMid meet"},baseUrl:{type:String,default:""},primaryColor:{type:String,default:"#f9f9f9"},secondaryColor:{type:String,default:"#ecebeb"},primaryOpacity:{type:Number,default:1},secondaryOpacity:{type:Number,default:1},uniqueKey:{type:String},animate:{type:Boolean,default:!0}},render:function(e,t){var n=t.props,r=t.data,a=t.children,u=n.uniqueKey?n.uniqueKey+"-idClip":o(),s=n.uniqueKey?n.uniqueKey+"-idGradient":o();return e("svg",i()([r,{attrs:{viewBox:"0 0 "+n.width+" "+n.height,version:"1.1",preserveAspectRatio:n.preserveAspectRatio}}]),[e("rect",{style:{fill:"url("+n.baseUrl+"#"+s+")"},attrs:{"clip-path":"url("+n.baseUrl+"#"+u+")",x:"0",y:"0",width:n.width,height:n.height}}),e("defs",[e("clipPath",{attrs:{id:u}},[a||e("rect",{attrs:{x:"0",y:"0",rx:"5",ry:"5",width:n.width,height:n.height}})]),e("linearGradient",{attrs:{id:s}},[e("stop",{attrs:{offset:"0%","stop-color":n.primaryColor,"stop-opacity":n.primaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-2; 1",dur:n.speed+"s",repeatCount:"indefinite"}}):null]),e("stop",{attrs:{offset:"50%","stop-color":n.secondaryColor,"stop-opacity":n.secondaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-1.5; 1.5",dur:n.speed+"s",repeatCount:"indefinite"}}):null]),e("stop",{attrs:{offset:"100%","stop-color":n.primaryColor,"stop-opacity":n.primaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-1; 2",dur:n.speed+"s",repeatCount:"indefinite"}}):null])])])])}},u={name:"BulletListLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("circle",{attrs:{cx:"10",cy:"20",r:"8"}}),e("rect",{attrs:{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"50",r:"8"}}),e("rect",{attrs:{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"80",r:"8"}}),e("rect",{attrs:{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"110",r:"8"}}),e("rect",{attrs:{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}})])}},s={name:"CodeLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"70",height:"10"}}),e("rect",{attrs:{x:"80",y:"0",rx:"3",ry:"3",width:"100",height:"10"}}),e("rect",{attrs:{x:"190",y:"0",rx:"3",ry:"3",width:"10",height:"10"}}),e("rect",{attrs:{x:"15",y:"20",rx:"3",ry:"3",width:"130",height:"10"}}),e("rect",{attrs:{x:"155",y:"20",rx:"3",ry:"3",width:"130",height:"10"}}),e("rect",{attrs:{x:"15",y:"40",rx:"3",ry:"3",width:"90",height:"10"}}),e("rect",{attrs:{x:"115",y:"40",rx:"3",ry:"3",width:"60",height:"10"}}),e("rect",{attrs:{x:"185",y:"40",rx:"3",ry:"3",width:"60",height:"10"}}),e("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"3",width:"30",height:"10"}})])}},c={name:"FacebookLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"70",y:"15",rx:"4",ry:"4",width:"117",height:"6.4"}}),e("rect",{attrs:{x:"70",y:"35",rx:"3",ry:"3",width:"85",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"80",rx:"3",ry:"3",width:"350",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"100",rx:"3",ry:"3",width:"380",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"120",rx:"3",ry:"3",width:"201",height:"6.4"}}),e("circle",{attrs:{cx:"30",cy:"30",r:"30"}})])}},l={name:"ListLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}}),e("rect",{attrs:{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}}),e("rect",{attrs:{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}}),e("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}}),e("rect",{attrs:{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}}),e("rect",{attrs:{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}})])}},f={name:"InstagramLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,i()([n,{attrs:{height:480}}]),[e("circle",{attrs:{cx:"30",cy:"30",r:"30"}}),e("rect",{attrs:{x:"75",y:"13",rx:"4",ry:"4",width:"100",height:"13"}}),e("rect",{attrs:{x:"75",y:"37",rx:"4",ry:"4",width:"50",height:"8"}}),e("rect",{attrs:{x:"0",y:"70",rx:"5",ry:"5",width:"400",height:"400"}})])}}},,,function(e,t,n){"use strict";var r=o(n(113)),i=o(n(340));function o(e){return e&&e.__esModule?e:{default:e}}
+t.default="\n scalar JSON\n scalar JSONObject\n\n type List {\n id_wishlist: Int\n name: String\n listUrl: String\n shareUrl: String\n default: Int\n nbProducts: Int\n }\n\n type ShareUrl {\n url: String\n }\n\n type CreateResponse {\n datas: List\n success: Boolean!\n message: String!\n }\n\n type ProductListResponse {\n datas: JSONObject\n }\n\n type Response {\n success: Boolean!\n message: String!\n }\n\n type Query {\n products(listId: Int!, url: String!): ProductListResponse\n lists(url: String!): [List]\n }\n\n type Mutation {\n createList(name: String!, url: String!): CreateResponse\n shareList(listId: String!, userId: Int!): ShareUrl\n renameList(name: String!, url: String!, listId: Int!): Response\n addToList(listId: Int!, productId: Int!, quantity: Int!, productAttributeId: Int!, url: String!): Response\n removeFromList(listId: Int!, productId: Int!, productAttributeId: Int!, url: String!): Response\n deleteList(listId: Int!, url: String!): Response\n }\n"},function(e,t,n){e.exports={default:n(311),__esModule:!0}},function(e,t,n){n(312);var r=n(19).Object;e.exports=function(e,t){return r.defineProperties(e,t)}},function(e,t,n){var r=n(37);r(r.S+r.F*!n(36),"Object",{defineProperties:n(127)})},function(e,t,n){e.exports={default:n(314),__esModule:!0}},function(e,t,n){n(315),e.exports=n(19).Object.freeze},function(e,t,n){var r=n(31),i=n(316).onFreeze;n(317)("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(86)("meta"),i=n(31),o=n(51),a=n(50).f,u=0,s=Object.isExtensible||function(){return!0},c=!n(65)((function(){return s(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!s(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!s(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&s(e)&&!o(e,r)&&l(e),e}}},function(e,t,n){var r=n(37),i=n(19),o=n(65);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){"use strict";n.r(t),n.d(t,"HeuristicFragmentMatcher",(function(){return U})),n.d(t,"InMemoryCache",(function(){return ce})),n.d(t,"IntrospectionFragmentMatcher",(function(){return $})),n.d(t,"ObjectCache",(function(){return X})),n.d(t,"StoreReader",(function(){return J})),n.d(t,"StoreWriter",(function(){return ne})),n.d(t,"WriteError",(function(){return ee})),n.d(t,"assertIdValue",(function(){return H})),n.d(t,"defaultDataIdFromObject",(function(){return ae})),n.d(t,"defaultNormalizedCacheFactory",(function(){return Z})),n.d(t,"enhanceErrorWithDocument",(function(){return te}));var r=n(0),i=n(1);function o(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(e)}]}}function a(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return a(e[0]);var t=[];return Object.keys(e).forEach((function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:a(e[n])||void 0};t.push(r)})),{kind:"SelectionSet",selections:t}}var u,s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},c=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(i.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(i.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,i=e.data;if(void 0!==r){var u=null;try{u=this.read({rootId:r,optimistic:!1,query:s})}catch(e){}var c=u&&u.__typename||"__ClientData",l=Object.assign({__typename:c},i);this.writeFragment({id:r,fragment:(t=l,n=c,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(t)}]}),data:l})}else this.writeQuery({query:o(i),data:i})},e}();u||(u={});var l=n(29),f=null,p={},d=1,h=Array,v=h["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",d++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=f;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===p)break;return e!==f&&(f.slots[this.id]=t),!0}return f&&(f.slots[this.id]=p),!1},e.prototype.getValue=function(){if(this.hasValue())return f.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=f;f={parent:a,slots:o};try{return t.apply(r,n)}finally{f=a}},e.bind=function(e){var t=f;return function(){var n=f;try{return f=t,e.apply(this,arguments)}finally{f=n}}},e.noContext=function(e,t,n){if(!f)return e.apply(n,t);var r=f;try{return f=null,e.apply(n,t)}finally{f=r}},e}();try{Object.defineProperty(h,"@wry/context:Slot",{value:h["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();v.bind,v.noContext;function y(){}var m=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=y),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),g=new v,b=[],T=[];function _(e,t){if(!e)throw new Error(t||"assertion failure")}function O(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var E=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(_(!this.recomputing,"already recomputing"),function(e){var t=g.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),S(e)?j(t,e):k(t,e),t}(this)||!L(this))return S(this)?function(e){var t=D(e);g.withValue(e,w,[e]),function(e){if("function"==typeof e.subscribe)try{P(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,S(e))return;I(e)}(e);return t.forEach(L),O(e.value)}(this):O(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,N(this),P(this))},e.prototype.dispose=function(){var e=this;D(this).forEach(L),P(this),this.parents.forEach((function(t){t.setDirty(),A(t,e)}))},e.count=0,e}();function w(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function S(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function N(e){e.parents.forEach((function(t){return j(t,e)}))}function I(e){e.parents.forEach((function(t){return k(t,e)}))}function j(e,t){if(_(e.childValues.has(t)),_(S(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=T.pop()||new Set;e.dirtyChildren.add(t),N(e)}function k(e,t){_(e.childValues.has(t)),_(!S(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),x(e,t),S(e)||I(e)}function x(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(T.length<100&&T.push(n),e.dirtyChildren=null))}function L(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function D(e){var t=b;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(n,r){A(e,r),t.push(r)}))),_(null===e.dirtyChildren),t}function A(e,t){t.parents.delete(e),e.childValues.delete(t),x(e,t)}function P(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var R=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),q=Object.prototype.hasOwnProperty,B=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=Q((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){q.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){q.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function Y(e){return new B(e)}var J=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,o=void 0===r?new R(i.e):r,a=n.freezeResults,u=void 0!==a&&a,s=this.executeStoreQuery,c=this.executeSelectionSet,l=this.executeSubSelectedArray;this.freezeResults=u,this.executeStoreQuery=Q((function(e){return s.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof B)return o.lookup(r.store,t,a,JSON.stringify(i),n.id)}}),this.executeSelectionSet=Q((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof B)return o.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=Q((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof B)return o.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(r.a)(Object(r.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,o=e.previousResult,a=e.returnPartialData,u=void 0===a||a,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,f=e.fragmentMatcherFunction,p=e.config,d=Object(i.o)(n);r=Object(i.c)({},Object(i.h)(d),r);var h={store:t,dataIdFromObject:p&&p.dataIdFromObject,cacheRedirects:p&&p.cacheRedirects||{}},v=this.executeStoreQuery({query:n,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:h,variableValues:r,fragmentMatcher:f}),y=v.missing&&v.missing.length>0;return y&&!u&&v.missing.forEach((function(e){if(!e.tolerable)throw new V.a(8)})),o&&Object(l.a)(o,v.result)&&(v.result=o),{result:v.result,complete:!y}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher,u=void 0===a?z:a,s=Object(i.l)(t),c=Object(i.j)(t),l={query:t,fragmentMap:Object(i.g)(c),contextValue:r,variableValues:o,fragmentMatcher:u};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:n,execContext:l})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,o=e.rootValue,a=e.execContext,u=a.fragmentMap,s=a.contextValue,c=a.variableValues,l={result:null},f=[],p=s.store.get(o.id),d=p&&p.__typename||"ROOT_QUERY"===o.id&&"Query"||void 0;function h(e){var t;return e.missing&&(l.missing=l.missing||[],(t=l.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if(Object(i.F)(e,c))if(Object(i.t)(e)){var l=h(t.executeField(p,d,e,a));void 0!==l&&f.push(((n={})[Object(i.E)(e)]=l,n))}else{var v=void 0;if(Object(i.v)(e))v=e;else if(!(v=u[e.name.value]))throw new V.a(9);var y=v.typeCondition&&v.typeCondition.name.value,m=!y||a.fragmentMatcher(o,y,s);if(m){var g=t.executeSelectionSet({selectionSet:v.selectionSet,rootValue:o,execContext:a});"heuristic"===m&&g.missing&&(g=Object(r.a)(Object(r.a)({},g),{missing:g.missing.map((function(e){return Object(r.a)(Object(r.a)({},e),{tolerable:!0})}))})),f.push(h(g))}}})),l.result=Object(i.B)(f),this.freezeResults,l},e.prototype.executeField=function(e,t,n,r){var o=r.variableValues,a=r.contextValue,u=function(e,t,n,r,o,a){a.resultKey;var u=a.directives,s=n;(r||u)&&(s=Object(i.p)(s,r,u));var c=void 0;if(e&&void 0===(c=e[s])&&o.cacheRedirects&&"string"==typeof t){var l=o.cacheRedirects[t];if(l){var f=l[n];f&&(c=f(e,r,{getCacheKey:function(e){var t=o.dataIdFromObject(e);return t&&Object(i.H)({id:t,typename:e.__typename})}}))}}if(void 0===c)return{result:c,missing:[{object:e,fieldName:s,tolerable:!1}]};Object(i.w)(c)&&(c=c.json);return{result:c}}(e,t,n.name.value,Object(i.b)(n,o),a,{resultKey:Object(i.E)(n),directives:Object(i.i)(n,o)});return Array.isArray(u.result)?this.combineExecResults(u,this.executeSubSelectedArray({field:n,array:u.result,execContext:r})):n.selectionSet?null==u.result?u:this.combineExecResults(u,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:u.result,execContext:r})):(W(n,u.result),this.freezeResults,u)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var oe={fragmentMatcher:new U,dataIdFromObject:ae,addTypename:!0,resultCaching:!0,freezeResults:!1};function ae(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var ue=Object.prototype.hasOwnProperty,se=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return Object(r.c)(t,e),t.prototype.toObject=function(){return Object(r.a)(Object(r.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return ue.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(X),ce=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new R(i.e),n.silenceBroadcast=!1,n.config=Object(r.a)(Object(r.a)({},oe),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new B:new X,n.optimisticData=n.data,n.storeWriter=new ne,n.storeReader=new J({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var o=n,a=o.maybeBroadcastWatch;return n.maybeBroadcastWatch=Q((function(e){return a.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return o.data instanceof B?o.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return Object(r.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new V.a(1)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof se;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new se(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(i.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(c)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wishlist-toast",class:[{isActive:this.active},this.type]},[t("p",{staticClass:"wishlist-toast-text"},[this._v("\n "+this._s(this.text)+"\n ")])])},i=[];r._withStripped=!0},,,,function(e,t,n){"use strict";n.r(t);var r=n(324),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=s(n(87)),o=s(n(88)),a=s(n(376)),u=s(n(66));function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"Rename",props:{url:{type:String,required:!0,default:"#"},title:{type:String,required:!0,default:"Rename wishlist"},label:{type:String,required:!0,default:"Wishlist name"},placeholder:{type:String,required:!0,default:"Rename text"},cancelText:{type:String,required:!0,default:"Cancel"},renameText:{type:String,required:!0,default:"Rename"}},data:function(){return{value:"",isHidden:!0,listId:0}},methods:{toggleModal:function(){this.isHidden=!this.isHidden},renameWishlist:(r=(0,o.default)(i.default.mark((function e(){var t,n,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$apollo.mutate({mutation:a.default,variables:{name:this.value,url:this.url,listId:this.listId}});case 2:t=e.sent,n=t.data,r=n.renameList,u.default.$emit("refetchList"),u.default.$emit("showToast",{detail:{type:r.success?"success":"error",message:r.message}}),this.toggleModal();case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},mounted:function(){var e=this;u.default.$on("showRenameWishlist",(function(t){e.value=t.detail.title,e.listId=t.detail.listId,e.toggleModal()}))}}},function(e,t,n){var r=n(378);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("3e7f3e72",r,!1,{})},,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(333),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=c(n(87)),o=c(n(88)),a=c(n(389)),u=c(n(335)),s=c(n(66));function c(e){return e&&e.__esModule?e:{default:e}}t.default={name:"Delete",props:{deleteProductUrl:{type:String,required:!1,default:"#"},deleteListUrl:{type:String,required:!1,default:"#"},title:{type:String,required:!0,default:"Delete"},titleList:{type:String,required:!0,default:"Delete"},placeholder:{type:String,required:!0,default:"This action is irreversible"},cancelText:{type:String,required:!0,default:"Cancel"},deleteText:{type:String,required:!0,default:"Delete"},deleteTextList:{type:String,required:!0,default:"Delete"}},data:function(){return{value:"",isHidden:!0,listId:null,listName:"",productId:null,productAttributeId:null}},computed:{confirmMessage:function(){return this.placeholder.replace("%nameofthewishlist%",this.listName)},modalTitle:function(){return this.productId?this.title:this.titleList},modalDeleteText:function(){return this.productId?this.deleteText:this.deleteTextList}},methods:{toggleModal:function(){this.isHidden=!this.isHidden},deleteWishlist:(r=(0,o.default)(i.default.mark((function e(){var t,n,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$apollo.mutate({mutation:this.productId?u.default:a.default,variables:{listId:this.listId,productId:parseInt(this.productId,10),productAttributeId:parseInt(this.productAttributeId,10),url:this.productId?this.deleteProductUrl:this.deleteListUrl}});case 2:t=e.sent,n=t.data,r=n.deleteList?n.deleteList:n.removeFromList,s.default.$emit("refetchList"),s.default.$emit("showToast",{detail:{type:r.success?"success":"error",message:r.message}}),this.toggleModal();case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},mounted:function(){var e=this;s.default.$on("showDeleteWishlist",(function(t){e.value="",e.listId=t.detail.listId,e.listName=t.detail.listName,e.productId=null,e.productAttributeId=null,t.detail.productId&&(e.productId=t.detail.productId,e.productAttributeId=t.detail.productAttributeId),e.toggleModal()}))}}},function(e,t,n){var r=n(391);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(90).default)("2b1b675f",r,!1,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,o(n(125)).default)(["\n mutation removeFromList($listId: Int!, $productId: Int!, $productAttributeId: Int!, $url: String!) {\n removeFromList(listId: $listId, productId: $productId, productAttributeId: $productAttributeId, url: $url) {\n success\n message\n }\n }\n"],["\n mutation removeFromList($listId: Int!, $productId: Int!, $productAttributeId: Int!, $url: String!) {\n removeFromList(listId: $listId, productId: $productId, productAttributeId: $productAttributeId, url: $url) {\n success\n message\n }\n }\n"]),i=o(n(39));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r)},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentLoader",(function(){return a})),n.d(t,"BulletListLoader",(function(){return u})),n.d(t,"CodeLoader",(function(){return s})),n.d(t,"FacebookLoader",(function(){return c})),n.d(t,"ListLoader",(function(){return l})),n.d(t,"InstagramLoader",(function(){return f}));var r=n(227),i=n.n(r),o=function(){return Math.random().toString(36).substring(2)},a={name:"ContentLoader",functional:!0,props:{width:{type:[Number,String],default:400},height:{type:[Number,String],default:130},speed:{type:Number,default:2},preserveAspectRatio:{type:String,default:"xMidYMid meet"},baseUrl:{type:String,default:""},primaryColor:{type:String,default:"#f9f9f9"},secondaryColor:{type:String,default:"#ecebeb"},primaryOpacity:{type:Number,default:1},secondaryOpacity:{type:Number,default:1},uniqueKey:{type:String},animate:{type:Boolean,default:!0}},render:function(e,t){var n=t.props,r=t.data,a=t.children,u=n.uniqueKey?n.uniqueKey+"-idClip":o(),s=n.uniqueKey?n.uniqueKey+"-idGradient":o();return e("svg",i()([r,{attrs:{viewBox:"0 0 "+n.width+" "+n.height,version:"1.1",preserveAspectRatio:n.preserveAspectRatio}}]),[e("rect",{style:{fill:"url("+n.baseUrl+"#"+s+")"},attrs:{"clip-path":"url("+n.baseUrl+"#"+u+")",x:"0",y:"0",width:n.width,height:n.height}}),e("defs",[e("clipPath",{attrs:{id:u}},[a||e("rect",{attrs:{x:"0",y:"0",rx:"5",ry:"5",width:n.width,height:n.height}})]),e("linearGradient",{attrs:{id:s}},[e("stop",{attrs:{offset:"0%","stop-color":n.primaryColor,"stop-opacity":n.primaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-2; 1",dur:n.speed+"s",repeatCount:"indefinite"}}):null]),e("stop",{attrs:{offset:"50%","stop-color":n.secondaryColor,"stop-opacity":n.secondaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-1.5; 1.5",dur:n.speed+"s",repeatCount:"indefinite"}}):null]),e("stop",{attrs:{offset:"100%","stop-color":n.primaryColor,"stop-opacity":n.primaryOpacity}},[n.animate?e("animate",{attrs:{attributeName:"offset",values:"-1; 2",dur:n.speed+"s",repeatCount:"indefinite"}}):null])])])])}},u={name:"BulletListLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("circle",{attrs:{cx:"10",cy:"20",r:"8"}}),e("rect",{attrs:{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"50",r:"8"}}),e("rect",{attrs:{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"80",r:"8"}}),e("rect",{attrs:{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}}),e("circle",{attrs:{cx:"10",cy:"110",r:"8"}}),e("rect",{attrs:{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}})])}},s={name:"CodeLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"70",height:"10"}}),e("rect",{attrs:{x:"80",y:"0",rx:"3",ry:"3",width:"100",height:"10"}}),e("rect",{attrs:{x:"190",y:"0",rx:"3",ry:"3",width:"10",height:"10"}}),e("rect",{attrs:{x:"15",y:"20",rx:"3",ry:"3",width:"130",height:"10"}}),e("rect",{attrs:{x:"155",y:"20",rx:"3",ry:"3",width:"130",height:"10"}}),e("rect",{attrs:{x:"15",y:"40",rx:"3",ry:"3",width:"90",height:"10"}}),e("rect",{attrs:{x:"115",y:"40",rx:"3",ry:"3",width:"60",height:"10"}}),e("rect",{attrs:{x:"185",y:"40",rx:"3",ry:"3",width:"60",height:"10"}}),e("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"3",width:"30",height:"10"}})])}},c={name:"FacebookLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"70",y:"15",rx:"4",ry:"4",width:"117",height:"6.4"}}),e("rect",{attrs:{x:"70",y:"35",rx:"3",ry:"3",width:"85",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"80",rx:"3",ry:"3",width:"350",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"100",rx:"3",ry:"3",width:"380",height:"6.4"}}),e("rect",{attrs:{x:"0",y:"120",rx:"3",ry:"3",width:"201",height:"6.4"}}),e("circle",{attrs:{cx:"30",cy:"30",r:"30"}})])}},l={name:"ListLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,n,[e("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}}),e("rect",{attrs:{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}}),e("rect",{attrs:{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}}),e("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}}),e("rect",{attrs:{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}}),e("rect",{attrs:{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}})])}},f={name:"InstagramLoader",functional:!0,render:function(e,t){var n=t.data;return e(a,i()([n,{attrs:{height:480}}]),[e("circle",{attrs:{cx:"30",cy:"30",r:"30"}}),e("rect",{attrs:{x:"75",y:"13",rx:"4",ry:"4",width:"100",height:"13"}}),e("rect",{attrs:{x:"75",y:"37",rx:"4",ry:"4",width:"50",height:"8"}}),e("rect",{attrs:{x:"0",y:"70",rx:"5",ry:"5",width:"400",height:"400"}})])}}},,,function(e,t,n){"use strict";var r=o(n(113)),i=o(n(340));function o(e){return e&&e.__esModule?e:{default:e}}
/**
* 2007-2020 PrestaShop and Contributors
*
@@ -144,7 +144,7 @@ t.default="\n scalar JSON\n scalar JSONObject\n\n type List {\n id_wishlis
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
- */var a=[{name:"deleteProductUrl",type:String},{name:"deleteListUrl",type:String},{name:"title",type:String},{name:"placeholder",type:String},{name:"cancelText",type:String},{name:"deleteText",type:String}];(0,r.default)(i.default,".wishlist-delete",a)},function(e,t,n){"use strict";n.r(t);var r=n(332);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n(390);var o=n(38),a=Object(o.a)(r.default,void 0,void 0,!1,null,"b30802ea",null);a.options.__file="_dev/front/js/components/Delete/Delete.vue",t.default=a.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,o(n(125)).default)(["\n mutation deleteList($listId: Int!, $url: String!) {\n deleteList(listId: $listId, url: $url) {\n success\n message\n }\n }\n"],["\n mutation deleteList($listId: Int!, $url: String!) {\n deleteList(listId: $listId, url: $url) {\n success\n message\n }\n }\n"]),i=o(n(39));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r)},function(e,t,n){"use strict";var r=n(334);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-delete .wishlist-modal[data-v-b30802ea]{display:block;opacity:0;pointer-events:none;z-index:0}.wishlist-delete .wishlist-modal.show[data-v-b30802ea]{opacity:1;pointer-events:all;z-index:1053}\n",""]),e.exports=t},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wishlist-container"},[n("div",{staticClass:"wishlist-container-header"},[n("h1",[e._v(e._s(e.title))]),e._v(" "),n("a",{staticClass:"wishlist-add-to-new",on:{click:e.openNewWishlistModal}},[n("i",{staticClass:"material-icons"},[e._v("add_circle_outline")]),e._v("\n "+e._s(e.addText)+"\n ")])]),e._v(" "),n("section",{staticClass:"page-content card card-block",attrs:{id:"content"}},[n("list",{attrs:{items:e.lists,"rename-text":e.renameText,"share-text":e.shareText,"empty-text":e.emptyText,loading:e.$apollo.queries.lists.loading}})],1)])},i=[];r._withStripped=!0},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wishlist-list-container"},[e.items.length>0&&e.items?n("ul",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.emptyPopups,expression:"emptyPopups"}],staticClass:"wishlist-list"},e._l(e.items,(function(t){return n("li",{key:t.id_wishlist,staticClass:"wishlist-list-item",class:{"wishlist-list-item-default":t.default}},[n("a",{staticClass:"wishlist-list-item-link",on:{click:function(n){return e.redirectToList(t.listUrl)}}},[n("p",{staticClass:"wishlist-list-item-title"},[e._v("\n "+e._s(t.name)+"\n "),t.nbProducts?n("span",[e._v("("+e._s(t.nbProducts)+")")]):n("span",[e._v("(0)")])]),e._v(" "),n("div",{staticClass:"wishlist-list-item-right"},[t.default?e._e():n("button",{staticClass:"wishlist-list-item-actions",on:{click:function(n){return n.stopPropagation(),e.togglePopup(t.id_wishlist)}}},[n("i",{staticClass:"material-icons"},[e._v("more_vert")])]),e._v(" "),t.default?n("button",{on:{click:function(n){return n.stopPropagation(),e.toggleShare(t.id_wishlist,t.shareUrl)}}},[n("i",{staticClass:"material-icons"},[e._v("share")])]):e._e(),e._v(" "),e.activeDropdowns.includes(t.id_wishlist)?n("div",{staticClass:"dropdown-menu show"},[n("button",{on:{click:function(n){return n.stopPropagation(),e.toggleRename(t.id_wishlist,t.name)}}},[e._v("\n "+e._s(e.renameText)+"\n ")]),e._v(" "),n("button",{on:{click:function(n){return n.stopPropagation(),e.toggleShare(t.id_wishlist,t.shareUrl)}}},[e._v("\n "+e._s(e.shareText)+"\n ")])]):e._e(),e._v(" "),t.default?e._e():n("button",{on:{click:function(n){return n.stopPropagation(),e.toggleDelete(t.id_wishlist,t.name)}}},[n("i",{staticClass:"material-icons"},[e._v("delete")])])])])])})),0):e._e(),e._v(" "),e.loading?n("ContentLoader",{staticClass:"wishlist-list-loader",attrs:{height:"105"}},[n("rect",{attrs:{x:"0",y:"12",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"36",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"84",rx:"3",ry:"0",width:"100%",height:"11"}})]):e._e(),e._v(" "),e.items.length<=0&&!e.loading?n("p",{staticClass:"wishlist-list-empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")]):e._e()],1)},i=[];r._withStripped=!0},,,,,,,,,,,,,,,,,function(e,t,n){n(414),n(339),n(387),n(345),n(423),e.exports=n(374)},function(e,t,n){"use strict";var r=o(n(113)),i=o(n(415));function o(e){return e&&e.__esModule?e:{default:e}}
+ */var a=[{name:"deleteProductUrl",type:String},{name:"deleteListUrl",type:String},{name:"title",type:String},{name:"titleList",type:String},{name:"placeholder",type:String},{name:"cancelText",type:String},{name:"deleteText",type:String},{name:"deleteTextList",type:String}];(0,r.default)(i.default,".wishlist-delete",a)},function(e,t,n){"use strict";n.r(t);var r=n(332);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n(390);var o=n(38),a=Object(o.a)(r.default,void 0,void 0,!1,null,"b30802ea",null);a.options.__file="_dev/front/js/components/Delete/Delete.vue",t.default=a.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,o(n(125)).default)(["\n mutation deleteList($listId: Int!, $url: String!) {\n deleteList(listId: $listId, url: $url) {\n success\n message\n }\n }\n"],["\n mutation deleteList($listId: Int!, $url: String!) {\n deleteList(listId: $listId, url: $url) {\n success\n message\n }\n }\n"]),i=o(n(39));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r)},function(e,t,n){"use strict";var r=n(334);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-delete .wishlist-modal[data-v-b30802ea]{display:block;opacity:0;pointer-events:none;z-index:0}.wishlist-delete .wishlist-modal.show[data-v-b30802ea]{opacity:1;pointer-events:all;z-index:1053}\n",""]),e.exports=t},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wishlist-container"},[n("div",{staticClass:"wishlist-container-header"},[n("h1",[e._v(e._s(e.title))]),e._v(" "),n("a",{staticClass:"wishlist-add-to-new",on:{click:e.openNewWishlistModal}},[n("i",{staticClass:"material-icons"},[e._v("add_circle_outline")]),e._v("\n "+e._s(e.addText)+"\n ")])]),e._v(" "),n("section",{staticClass:"page-content card card-block",attrs:{id:"content"}},[n("list",{attrs:{items:e.lists,"rename-text":e.renameText,"share-text":e.shareText,"empty-text":e.emptyText,loading:e.$apollo.queries.lists.loading}})],1)])},i=[];r._withStripped=!0},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wishlist-list-container"},[e.items.length>0&&e.items?n("ul",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.emptyPopups,expression:"emptyPopups"}],staticClass:"wishlist-list"},e._l(e.items,(function(t){return n("li",{key:t.id_wishlist,staticClass:"wishlist-list-item",class:{"wishlist-list-item-default":t.default}},[n("a",{staticClass:"wishlist-list-item-link",on:{click:function(n){return e.redirectToList(t.listUrl)}}},[n("p",{staticClass:"wishlist-list-item-title"},[e._v("\n "+e._s(t.name)+"\n "),t.nbProducts?n("span",[e._v("("+e._s(t.nbProducts)+")")]):n("span",[e._v("(0)")])]),e._v(" "),n("div",{staticClass:"wishlist-list-item-right"},[t.default?e._e():n("button",{staticClass:"wishlist-list-item-actions",on:{click:function(n){return n.stopPropagation(),e.togglePopup(t.id_wishlist)}}},[n("i",{staticClass:"material-icons"},[e._v("more_vert")])]),e._v(" "),t.default?n("button",{on:{click:function(n){return n.stopPropagation(),e.toggleShare(t.id_wishlist,t.shareUrl)}}},[n("i",{staticClass:"material-icons"},[e._v("share")])]):e._e(),e._v(" "),e.activeDropdowns.includes(t.id_wishlist)?n("div",{staticClass:"dropdown-menu show"},[n("button",{on:{click:function(n){return n.stopPropagation(),e.toggleRename(t.id_wishlist,t.name)}}},[e._v("\n "+e._s(e.renameText)+"\n ")]),e._v(" "),n("button",{on:{click:function(n){return n.stopPropagation(),e.toggleShare(t.id_wishlist,t.shareUrl)}}},[e._v("\n "+e._s(e.shareText)+"\n ")])]):e._e(),e._v(" "),t.default?e._e():n("button",{on:{click:function(n){return n.stopPropagation(),e.toggleDelete(t.id_wishlist,t.name)}}},[n("i",{staticClass:"material-icons"},[e._v("delete")])])])])])})),0):e._e(),e._v(" "),e.loading?n("ContentLoader",{staticClass:"wishlist-list-loader",attrs:{height:"105"}},[n("rect",{attrs:{x:"0",y:"12",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"36",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"0",width:"100%",height:"11"}}),e._v(" "),n("rect",{attrs:{x:"0",y:"84",rx:"3",ry:"0",width:"100%",height:"11"}})]):e._e(),e._v(" "),e.items.length<=0&&!e.loading?n("p",{staticClass:"wishlist-list-empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")]):e._e()],1)},i=[];r._withStripped=!0},,,,,,,,,,,,,,,,,function(e,t,n){n(414),n(339),n(387),n(345),n(423),e.exports=n(374)},function(e,t,n){"use strict";var r=o(n(113)),i=o(n(415));function o(e){return e&&e.__esModule?e:{default:e}}
/**
* 2007-2020 PrestaShop and Contributors
*
@@ -162,7 +162,7 @@ t.default="\n scalar JSON\n scalar JSONObject\n\n type List {\n id_wishlis
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
- */var a=[{name:"url",type:String},{name:"title",type:String},{name:"addText",type:String},{name:"renameText",type:String},{name:"emptyText",type:String},{name:"homeLink",type:String},{name:"shareText",type:String}];(0,r.default)(i.default,".wishlist-container",a)},function(e,t,n){"use strict";n.r(t);var r=n(394),i=n(359);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n(421);var a=n(38),u=Object(a.a)(i.default,r.a,r.b,!1,null,"4f116ff6",null);u.options.__file="_dev/front/js/container/WishlistContainer/WishlistContainer.vue",t.default=u.exports},function(e,t,n){"use strict";n.r(t);var r=n(396),i=n(361);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n(419);var a=n(38),u=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);u.options.__file="_dev/front/js/components/List/List.vue",t.default=u.exports},function(e,t){e.exports=window.wishlistUrl},function(e,t,n){e.exports=function(){var e="__v-click-outside",t="undefined"!=typeof window,n="undefined"!=typeof navigator,r=t&&("ontouchstart"in window||n&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"];function i(t,n){var i=function(e){var t="function"==typeof e;if(!t&&"object"!=typeof e)throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:t?e:e.handler,middleware:e.middleware||function(e){return e},events:e.events||r,isActive:!(!1===e.isActive)}}(n.value),o=i.handler,a=i.middleware;i.isActive&&(t[e]=i.events.map((function(e){return{event:e,handler:function(e){return function(e){var t=e.el,n=e.event,r=e.handler,i=e.middleware,o=n.path||n.composedPath&&n.composedPath(),a=o?o.indexOf(t)<0:!t.contains(n.target);n.target!==t&&a&&i(n)&&r(n)}({event:e,el:t,handler:o,middleware:a})}}})),t[e].forEach((function(n){var r=n.event,i=n.handler;return setTimeout((function(){t[e]&&document.documentElement.addEventListener(r,i,!1)}),0)})))}function o(t){(t[e]||[]).forEach((function(e){return document.documentElement.removeEventListener(e.event,e.handler,!1)})),delete t[e]}var a=t?{bind:i,update:function(e,t){var n=t.value,r=t.oldValue;JSON.stringify(n)!==JSON.stringify(r)&&(o(e),i(e,{value:n}))},unbind:o}:{};return{install:function(e){e.directive("click-outside",a)},directive:a}}()},function(e,t,n){"use strict";var r=n(363);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-list{margin-bottom:0}.wishlist-list-empty{font-size:30;text-align:center;padding:30px;padding-bottom:20px;font-weight:bold;color:#000}.wishlist-list-loader{padding:0 20px;width:100%}.wishlist-list-item-default{border-bottom:1px solid #0000002e}.wishlist-list-item:hover{cursor:pointer}.wishlist-list-item:hover .wishlist-list-item-title{color:#2fb5d2}.wishlist-list-item-link{display:flex;justify-content:space-between;align-items:center;padding:24px 20px}.wishlist-list-item .dropdown-menu{right:20px;left:inherit;display:flex;flex-direction:column}.wishlist-list-item-right{position:relative}.wishlist-list-item-right>button{transition:0.25s ease-out}.wishlist-list-item-right>button:hover{opacity:0.6}.wishlist-list-item-right>button i{color:#7a7a7a}.wishlist-list-item-right .dropdown-menu{box-sizing:border-box;border:1px solid #e5e5e5;border-radius:4px;background-color:#ffffff;box-shadow:2px 2px 10px 0 rgba(0,0,0,0.2);padding:0;overflow:hidden}.wishlist-list-item-right .dropdown-menu>button{padding:10px 20px;transition:0.2s ease-out;text-align:left}.wishlist-list-item-right .dropdown-menu>button:hover{background-color:#f1f1f1}.wishlist-list-item-title{color:#232323;font-size:16px;font-weight:bold;letter-spacing:0;line-height:22px;margin-bottom:0}.wishlist-list-item-title span{color:#7a7a7a;font-size:16px;letter-spacing:0;line-height:22px;font-weight:normal;margin-left:5px}.wishlist-list-item button{cursor:pointer;border:none;background:none}.wishlist-list-item button:focus{outline:0}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=n(364);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-container-header[data-v-4f116ff6]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}#main .wishlist-container .card.page-content[data-v-4f116ff6]{padding:0;margin-bottom:12px}.wishlist-add-to-new[data-v-4f116ff6]{cursor:pointer;transition:0.2s ease-out;font-size:14px;letter-spacing:0;line-height:16px}.wishlist-add-to-new[data-v-4f116ff6]:not([href]):not([tabindex]){color:#2fb5d2}.wishlist-add-to-new[data-v-4f116ff6]:hover{opacity:0.7}.wishlist-add-to-new i[data-v-4f116ff6]{margin-right:5px;vertical-align:middle;color:#2fb5d2;margin-top:-2px;font-size:20px}@media screen and (max-width: 768px){.wishlist-container .page-content.card[data-v-4f116ff6]{box-shadow:2px 2px 8px 0 rgba(0,0,0,0.2);background-color:#fff;margin-top:20px}}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=o(n(113)),i=o(n(424));function o(e){return e&&e.__esModule?e:{default:e}}
+ */var a=[{name:"url",type:String},{name:"title",type:String},{name:"addText",type:String},{name:"renameText",type:String},{name:"emptyText",type:String},{name:"homeLink",type:String},{name:"shareText",type:String}];(0,r.default)(i.default,".wishlist-container",a)},function(e,t,n){"use strict";n.r(t);var r=n(393),i=n(359);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n(421);var a=n(38),u=Object(a.a)(i.default,r.a,r.b,!1,null,"4f116ff6",null);u.options.__file="_dev/front/js/container/WishlistContainer/WishlistContainer.vue",t.default=u.exports},function(e,t,n){"use strict";n.r(t);var r=n(396),i=n(361);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n(419);var a=n(38),u=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);u.options.__file="_dev/front/js/components/List/List.vue",t.default=u.exports},function(e,t){e.exports=window.wishlistUrl},function(e,t,n){e.exports=function(){var e="__v-click-outside",t="undefined"!=typeof window,n="undefined"!=typeof navigator,r=t&&("ontouchstart"in window||n&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"];function i(t,n){var i=function(e){var t="function"==typeof e;if(!t&&"object"!=typeof e)throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:t?e:e.handler,middleware:e.middleware||function(e){return e},events:e.events||r,isActive:!(!1===e.isActive)}}(n.value),o=i.handler,a=i.middleware;i.isActive&&(t[e]=i.events.map((function(e){return{event:e,handler:function(e){return function(e){var t=e.el,n=e.event,r=e.handler,i=e.middleware,o=n.path||n.composedPath&&n.composedPath(),a=o?o.indexOf(t)<0:!t.contains(n.target);n.target!==t&&a&&i(n)&&r(n)}({event:e,el:t,handler:o,middleware:a})}}})),t[e].forEach((function(n){var r=n.event,i=n.handler;return setTimeout((function(){t[e]&&document.documentElement.addEventListener(r,i,!1)}),0)})))}function o(t){(t[e]||[]).forEach((function(e){return document.documentElement.removeEventListener(e.event,e.handler,!1)})),delete t[e]}var a=t?{bind:i,update:function(e,t){var n=t.value,r=t.oldValue;JSON.stringify(n)!==JSON.stringify(r)&&(o(e),i(e,{value:n}))},unbind:o}:{};return{install:function(e){e.directive("click-outside",a)},directive:a}}()},function(e,t,n){"use strict";var r=n(363);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-list{margin-bottom:0}.wishlist-list-empty{font-size:30;text-align:center;padding:30px;padding-bottom:20px;font-weight:bold;color:#000}.wishlist-list-loader{padding:0 20px;width:100%}.wishlist-list-item-default{border-bottom:1px solid #0000002e}.wishlist-list-item:hover{cursor:pointer}.wishlist-list-item:hover .wishlist-list-item-title{color:#2fb5d2}.wishlist-list-item-link{display:flex;justify-content:space-between;align-items:center;padding:24px 20px}.wishlist-list-item .dropdown-menu{right:20px;left:inherit;display:flex;flex-direction:column}.wishlist-list-item-right{position:relative}.wishlist-list-item-right>button{transition:0.25s ease-out}.wishlist-list-item-right>button:hover{opacity:0.6}.wishlist-list-item-right>button i{color:#7a7a7a}.wishlist-list-item-right .dropdown-menu{box-sizing:border-box;border:1px solid #e5e5e5;border-radius:4px;background-color:#ffffff;box-shadow:2px 2px 10px 0 rgba(0,0,0,0.2);padding:0;overflow:hidden}.wishlist-list-item-right .dropdown-menu>button{padding:10px 20px;transition:0.2s ease-out;text-align:left}.wishlist-list-item-right .dropdown-menu>button:hover{background-color:#f1f1f1}.wishlist-list-item-title{color:#232323;font-size:16px;font-weight:bold;letter-spacing:0;line-height:22px;margin-bottom:0}.wishlist-list-item-title span{color:#7a7a7a;font-size:16px;letter-spacing:0;line-height:22px;font-weight:normal;margin-left:5px}.wishlist-list-item button{cursor:pointer;border:none;background:none}.wishlist-list-item button:focus{outline:0}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=n(364);n.n(r).a},function(e,t,n){(t=n(89)(!1)).push([e.i,".wishlist-container-header[data-v-4f116ff6]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}#main .wishlist-container .card.page-content[data-v-4f116ff6]{padding:0;margin-bottom:12px}.wishlist-add-to-new[data-v-4f116ff6]{cursor:pointer;transition:0.2s ease-out;font-size:14px;letter-spacing:0;line-height:16px}.wishlist-add-to-new[data-v-4f116ff6]:not([href]):not([tabindex]){color:#2fb5d2}.wishlist-add-to-new[data-v-4f116ff6]:hover{opacity:0.7}.wishlist-add-to-new i[data-v-4f116ff6]{margin-right:5px;vertical-align:middle;color:#2fb5d2;margin-top:-2px;font-size:20px}@media screen and (max-width: 768px){.wishlist-container .page-content.card[data-v-4f116ff6]{box-shadow:2px 2px 8px 0 rgba(0,0,0,0.2);background-color:#fff;margin-top:20px}}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=o(n(113)),i=o(n(424));function o(e){return e&&e.__esModule?e:{default:e}}
/**
* 2007-2020 PrestaShop and Contributors
*
diff --git a/views/templates/components/modals/delete.tpl b/views/templates/components/modals/delete.tpl
index 704a01ea..1010190e 100644
--- a/views/templates/components/modals/delete.tpl
+++ b/views/templates/components/modals/delete.tpl
@@ -25,10 +25,12 @@
{if isset($deleteProductUrl)}
data-delete-product-url="{$deleteProductUrl}"
{/if}
- data-title="{l s='Delete' d='Modules.Blockwishlist.Shop'}"
- data-placeholder="{l s='This action is irreversible' d='Modules.Blockwishlist.Shop'}"
+ data-title="{l s='Remove product from wishlist' d='Modules.Blockwishlist.Shop'}"
+ data-title-list="{l s='Delete wishlist' d='Modules.Blockwishlist.Shop'}"
+ data-placeholder='{l s='The product will be removed from "%nameofthewishlist%".' d='Modules.Blockwishlist.Shop'}'
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
- data-delete-text="{l s='Delete' d='Modules.Blockwishlist.Shop'}"
+ data-delete-text="{l s='Remove' d='Modules.Blockwishlist.Shop'}"
+ data-delete-text-list="{l s='Delete' d='Modules.Blockwishlist.Shop'}"
>