/*! For license information please see nl-products-d1cdde131d409bedfd5e.js.LICENSE.txt */
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2983],{47029:(t,e,r)=>{r.d(e,{A:()=>l});var n=r(63696),o=r(85022),a=r(91155),i=r(30760),c=r(76388),u=r(46165);const l=function(){var t=(0,o.d4)((function(t){return(0,a.A)(t)})),e=(0,o.d4)((function(t){return t.settings.productsListFormat})),r=t?"#fff":"#000",l=t?"#666":"#aaa",s=(0,o.wA)(),f=function(t){s((0,i.A)({productsListFormat:t}))};return n.createElement("div",{className:"hidden-print",style:{float:"right"}},n.createElement(u.A,{size:28,onClick:function(){return f("thumbnails")},title:"Weergeven als pictogrammen",style:{cursor:"pointer",verticalAlign:"middle",color:"thumbnails"===e?r:l}}),n.createElement(c.A,{size:28,onClick:function(){return f("table")},title:"Weergeven als tabel",style:{cursor:"pointer",verticalAlign:"middle",color:"table"===e?r:l}}))}},17818:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(63696),o=r(62688),a=r.n(o),i=r(49348),c=function(t){var e=t.link,r=t.icon,o=t.text,a=t.isActive,c=t.onClick;return n.createElement(i.N_,{to:e||"#",className:"menuItem"+(a?" active":""),onClick:function(t){c&&(t.preventDefault(),t.stopPropagation(),c())}},r&&r({size:20,style:{verticalAlign:"middle"}}),n.createElement("span",null,o))};c.propTypes={link:a().string,icon:a().func,text:a().string.isRequired,isActive:a().bool,onClick:a().func};const u=c},9228:(t,e,r)=>{r.r(e),r.d(e,{default:()=>On});var n=r(63696),o=r(67435),a=r(85022),i=r(61449),c=r(62688),u=r.n(c),l=r(64940),s=r(12889);const f=function(t){switch(t){case"knittingCrochet":return"Brei-/haakgarens";case"crossStitch":return"Borduurgarens";case"latchHook":return"Knoopkussen garens (Latch hook)";case"diamondPainting":return"Diamond painting kleuren";case"fuseBeads":return"Strijkkralen kleuren";case"pixelhobby":return"Pixelhobby kleuren";default:return"Producten"+(t&&"all"!==t?" - "+(0,s.A)(t):"")}};var h=r(36322),p=r(34924),d=r(80513),y=r(17818),m=function(t){var e=t.activeSection;return n.createElement("div",null,n.createElement(y.A,{link:"/".concat("nl","/products/knitting-crochet"),icon:d.A,text:"Breien/Haken",isActive:"knittingCrochet"===e}),n.createElement(y.A,{link:"/".concat("nl","/products/cross-stitch"),icon:d.A,text:"Borduren",isActive:"crossStitch"===e}),n.createElement(y.A,{link:"/".concat("nl","/products/diamond-painting/").concat(p.Dq),icon:d.A,text:"Diamond painting",isActive:"diamondPainting"===e}),n.createElement(y.A,{link:"/".concat("nl","/products/latch-hook"),icon:d.A,text:"Knoopkussen",isActive:"latchHook"===e}),n.createElement(y.A,{link:"/".concat("nl","/products/fuse-beads"),icon:d.A,text:"Strijkkralen",isActive:"fuseBeads"===e}),n.createElement(y.A,{link:"/".concat("nl","/products/pixelhobby"),icon:d.A,text:"Pixelhobby",isActive:"pixelhobby"===e}),n.createElement(y.A,{link:"/".concat("nl","/products/brands"),icon:d.A,text:"Merken",isActive:"brands"===e}))};m.propTypes={activeSection:u().string.isRequired};const v=m;var g=r(53810),b=r(83072),E=function(t){var e=t.activeSection,r=(0,a.d4)((function(t){return(0,g.A)(t)}));return n.createElement("div",null,n.createElement("h4",null,"Producten"),n.createElement(b.A,{link:"/".concat("nl","/products/knitting-crochet"),text:"Breien/Haken",isActive:"knittingCrochet"===e}),n.createElement(b.A,{link:"/".concat("nl","/products/cross-stitch"),text:"Borduren",isActive:"crossStitch"===e}),n.createElement(b.A,{link:"/".concat("nl","/products/diamond-painting/").concat(p.Dq),text:"Diamond painting",isActive:"diamondPainting"===e}),n.createElement(b.A,{link:"/".concat("nl","/products/latch-hook"),text:"Knoopkussen",isActive:"latchHook"===e}),n.createElement(b.A,{link:"/".concat("nl","/products/fuse-beads"),text:"Strijkkralen",isActive:"fuseBeads"===e}),n.createElement(b.A,{link:"/".concat("nl","/products/pixelhobby"),text:"Pixelhobby",isActive:"pixelhobby"===e}),n.createElement(b.A,{link:"/".concat("nl","/products/brands"),text:"Merken",isActive:"brands"===e}),n.createElement("h4",null,"Mijn account"),!r&&n.createElement(b.A,{link:"/".concat("nl","/chart/create"),text:"Nieuwe chart maken"}),!r&&n.createElement(b.A,{link:"/".concat("nl","/login"),text:"Aanmelden / Inloggen"}),r&&n.createElement(b.A,{link:"/".concat("nl","/browse"),text:"Mijn charts"}),r&&n.createElement(b.A,{link:"/".concat("nl","/account/profile"),text:"Mijn profiel"}))};E.propTypes={activeSection:u().string.isRequired};const w=E;var x=function(t){var e=t.title,r=t.craftSluggified,o=t.activeSection,a=t.children,i=t.breadcrumbTitle1,c=t.breadcrumbLink1,u=(0,l.A)(r),s="/".concat("nl","/products")+(c&&r?"/"+r:""),p=f(u);return n.createElement(h.A,{title:e,sidebar:n.createElement(v,{activeSection:o}),navigation:n.createElement(w,{activeSection:o}),fullWidth:!0,breadcrumbTitle1:p,breadcrumbLink1:s,breadcrumbTitle2:i,breadcrumbLink2:c},a)};x.propTypes={title:u().string.isRequired,craftSluggified:u().string,activeSection:u().string.isRequired,children:u().node.isRequired,breadcrumbTitle1:u().string,breadcrumbLink1:u().string};const L=x;var k=r(49348);const S=function(){return n.createElement(n.Fragment,null,n.createElement("ul",{className:"list-unstyled"},n.createElement("li",null,n.createElement(d.A,{size:20,style:{verticalAlign:"middle"}}),n.createElement(k.N_,{to:"/".concat("nl","/products/knitting-crochet")},f("knittingCrochet"))),n.createElement("li",null,n.createElement(d.A,{size:20,style:{verticalAlign:"middle"}}),n.createElement(k.N_,{to:"/".concat("nl","/products/cross-stitch")},f("crossStitch"))),n.createElement("li",null,n.createElement(d.A,{size:20,style:{verticalAlign:"middle"}}),n.createElement(k.N_,{to:"/".concat("nl","/products/diamond-painting/").concat(p.Dq)},f("diamondPainting"))),n.createElement("li",null,n.createElement(d.A,{size:20,style:{verticalAlign:"middle"}}),n.createElement(k.N_,{to:"/".concat("nl","/products/latch-hook")},f("latchHook"))),n.createElement("li",null,n.createElement(d.A,{size:20,style:{verticalAlign:"middle"}}),n.createElement(k.N_,{to:"/".concat("nl","/products/fuse-beads")},f("fuseBeads"))),n.createElement("li",null,n.createElement(d.A,{size:20,style:{verticalAlign:"middle"}}),n.createElement(k.N_,{to:"/".concat("nl","/products/pixelhobby")},f("pixelhobby"))),n.createElement("li",null,n.createElement(d.A,{size:20,style:{verticalAlign:"middle"}}),n.createElement(k.N_,{to:"/".concat("nl","/products/brands")},"Merken"))),n.createElement("br",null))};var A=r(30750),j=r(45140);const O=function(){return n.createElement("p",null,n.createElement("br",null),n.createElement("span",null,"Pagina wordt geladen..."),n.createElement(j.A,{size:24}))};var _=r(7856),N=r(19337),P=r(17097),T=r(95808),I=r(24313);const C=function(t,e){return e&&"all"!==e?t.filter((function(t){return t.craft===e})):t.slice(0)};var F=r(17243);function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function q(){q=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==G(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(G(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function R(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z(Object(r),!0).forEach((function(e){D(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function D(t,e,r){return(e=function(t){var e=function(t){if("object"!=G(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==G(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function B(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}const U=function(){var t,e=(t=q().mark((function t(e,r){var n;return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=C(e,r),t.abrupt("return",(0,F.orderBy)(n.map((function(t){return R(R({},t),{},{titleSortable:(0,F.deburr)(t.title).toLowerCase()})})),"titleSortable"));case 2:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){B(a,n,o,i,c,"next",t)}function c(t){B(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(t,r){return e.apply(this,arguments)}}();function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function Y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function M(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(r),!0).forEach((function(e){H(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function H(t,e,r){return(e=function(t){var e=function(t){if("object"!=W(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==W(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var K=r(1561);function Q(t){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(t)}function Z(){Z=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Q(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Q(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function V(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}const $=function(){var t,e=(t=Z().mark((function t(e,r){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.length<3?[]:(0,K.A)(e,r,["title"],!0));case 1:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){V(a,n,o,i,c,"next",t)}function c(t){V(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(t,r){return e.apply(this,arguments)}}();var J=r(53525);const X=function(t,e){switch(t){case"favorites":return!0;case"all":return!1;default:return e}};var tt=r(59977),et=r(84501),rt=r(94249);const nt=rt.g9_;var ot=r(86628),at=function(t){var e=t.onClick;return n.createElement("p",{className:"alert alert-warning",onClick:e,style:{cursor:"pointer"}},"Niets gevonden...")};at.propTypes={onClick:u().func.isRequired};const it=at;var ct=r(72280);const ut=rt.OZE;var lt=r(8388);const st=function(t){var e=t.isFavorite,r=t.size,o=void 0===r?20:r,a=t.onClick,i=(0,n.useRef)(null),c=(0,n.useState)(0),u=c[0],l=c[1];u>=359&&(clearTimeout(i.current),l(0));var s=function(){l((function(t){return t+36})),i.current=setTimeout(s,50)},f=function(){a(),e||(i.current&&clearTimeout(i.current),l(0),s())};return n.createElement("span",{style:{display:"inline-block",width:o,height:o,textAlign:"center"}},e&&(0===u||u>=180)?n.createElement(ut,{size:o,onClick:f,style:{textAlign:"center",verticalAlign:"middle",cursor:"pointer",userSelect:"none",color:"#EA9999",transform:"rotate(".concat(u,"deg)")}}):n.createElement(lt.A,{size:o,onClick:f,style:{textAlign:"center",verticalAlign:"middle",cursor:"pointer",userSelect:"none",transform:"rotate(".concat(u,"deg)")}}))};var ft=function(t){var e=t.productCategoryId,r=(0,a.d4)((function(t){return(0,g.A)(t)})),i=(0,a.d4)((function(t){return-1!==t.products.favoriteCategoryIds.indexOf(e)})),c=(0,a.wA)(),u=(0,o.Zp)();return n.createElement(st,{size:20,isFavorite:i,onClick:function(){r?c((0,ct.A)(e,!i)):u("/".concat("nl","/login?redirectUrl=").concat(encodeURIComponent(document.location.pathname+document.location.search)))}})};ft.propTypes={productCategoryId:u().string.isRequired};const ht=ft;var pt=function(t){var e=t.productCategory,r="/".concat("nl","/products/").concat((0,N.A)(e.craft),"/").concat(e.categoryId);return n.createElement("tr",{key:e.categoryId},n.createElement("td",null,n.createElement(ht,{productCategoryId:e.categoryId})),n.createElement("td",null,n.createElement(k.N_,{to:r},e.title)),n.createElement("td",{style:{whiteSpace:"nowrap",textAlign:"right"}},n.createElement(k.N_,{to:r},e.productCountAvailable+" kleuren")))};pt.propTypes={productCategory:u().object.isRequired};const dt=pt;var yt=function(t){var e=t.productCategories;return n.createElement("table",{className:"table table-borderless table-condensed table-striped",style:{width:"auto",fontSize:16}},n.createElement("tbody",null,e.map((function(t){return n.createElement(dt,{key:t.categoryId,productCategory:t})}))))};yt.propTypes={productCategories:u().array.isRequired};const mt=yt,vt=function(){var t=(0,a.d4)((function(t){return(0,g.A)(t)})),e=(0,o.zy)(),r=e.pathname+e.search,i=(0,o.g)(),c=i.craft?i.craft:"other",u=t?"/".concat("nl","/products/").concat(c,"/request?redirectUrl=").concat(encodeURIComponent(r)):"/".concat("nl","/login?redirectUrl=").concat(encodeURIComponent(r));return n.createElement("p",{className:"hidden-print"},n.createElement("span",null,"Staat wat je zoekt niet in deze lijst? "),n.createElement(k.N_,{to:u,style:{textDecoration:"underline"}},"Let het ons weten"))};function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}function bt(){bt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==gt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(gt(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Et(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function wt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){Et(a,n,o,i,c,"next",t)}function c(t){Et(a,n,o,i,c,"throw",t)}i(void 0)}))}}function xt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Lt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var kt=function(t){var e=t.craft,r=t.type,i=t.extraContent,c=(0,o.zy)(),u=(0,P.A)(c.search),l=xt((0,n.useState)(u.q?u.q.trim():""),2),s=l[0],f=l[1],h=s.trim().toLowerCase(),p=h.length>=3,d=(0,a.d4)((function(t){return(0,T.A)(t)})),y=(0,a.d4)((function(t){return(0,I.A)(t)})),m=xt((0,n.useState)((function(){return C(d,e)})),2),v=m[0],g=m[1],b=xt((0,n.useState)((function(){return function(t,e){return e.length<3?[]:(0,J.A)(t,e,["title"],!0)}(v,h)})),2),E=b[0],w=b[1],x=xt((0,n.useState)((function(){return function(t,e){var r=C(t,e);return(0,F.orderBy)(r.map((function(t){return M(M({},t),{},{titleSortable:(0,F.deburr)(t.title).toLowerCase()})})),"titleSortable")}(y,e)})),2),L=x[0],k=x[1],S=xt((0,n.useState)((function(){return X(r,L.length>0)})),2),A=S[0],j=S[1],O=xt((0,et.A)(),2),_=O[0],G=O[1],q=(0,tt.A)(),z=(0,o.Zp)();(0,n.useEffect)((function(){if(!q){var t=s.trim(),e=document.location.pathname;""!==t&&(e+="?q="+encodeURIComponent(t)),z(e,{replace:!0})}}),[s]),(0,n.useEffect)((function(){q||!u.q&&s&&G()}),[u.q]);var R=function(){var t=wt(bt().mark((function t(){var n;return bt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U(y,e);case 2:n=t.sent,j(X(r,n.length>0));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();(0,n.useEffect)((function(){R()}),[c.pathname]),(0,n.useEffect)((function(){A&&0===L.length&&j(X(r,!1))}),[L]);var D=function(){var t=wt(bt().mark((function t(e){var r,n,o;return bt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!((r=e.trim().toLowerCase()).length<3)){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,$(v,r);case 5:if(0!==(n=t.sent).length){t.next=8;break}return t.abrupt("return");case 8:o=n[0],z("/".concat("nl","/products/").concat((0,N.A)(o.craft),"/").concat(o.categoryId));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();(0,n.useEffect)((function(){q||g(C(d,e))}),[d,e]);var B=function(){var t=wt(bt().mark((function t(){var e;return bt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$(v,p?h:"");case 2:e=t.sent,w(e);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();(0,n.useEffect)((function(){q||B()}),[v,e,h]);var W=function(){var t=wt(bt().mark((function t(){var r;return bt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U(y,e);case 2:r=t.sent,k(r);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();(0,n.useEffect)((function(){q||W()}),[y,e]);var Y=function(t,e,r,n,o){return o?r:n?e:t}(v,L,E,A,p),H=function(t,e,r){return e?"":t?r?"Mijn favorieten":"":"Alle producten"}(A,p,Y.length>0);return n.createElement(n.Fragment,null,n.createElement(ot.A,{searchQuery:s,onChange:f,onSubmit:D,resetSearchQuery:_,autoFocusOnKeyDown:!0,noAutoFocusWithOpenModal:!0,autoScrollToTop:!0}),n.createElement("br",null),!p&&i,H&&n.createElement("h4",{className:"headerDark"},H),p&&0===Y.length&&n.createElement(it,{onClick:G}),Y.length>0&&n.createElement(mt,{productCategories:Y}),(p||!A&&!p)&&n.createElement(vt,null),"auto"===r&&A&&!p&&n.createElement("button",{type:"button",className:"btn btn-default",onClick:function(){return j(!1)},style:{minWidth:200}},n.createElement(nt,{size:20,style:{float:"left",verticalAlign:"middle"}}),n.createElement("span",null,"Alles weergeven")))};kt.propTypes={craft:u().string,type:u().oneOf(["favorites","all","auto"]).isRequired,extraContent:u().node};const St=kt;var At=r(23063),jt=r(30673);const Ot=function(){return n.createElement("p",{className:"alert alert-info",style:{marginTop:20,padding:10}},n.createElement("span",null,"Deze pagina toont alleen voorgesneden knoopkussen garens."),n.createElement("br",null),n.createElement("span",null,"Het is ook mogelijk om zelf "),n.createElement(k.N_,{to:"/".concat("nl","/products/knitting-crochet")},"brei-/haakgaren"),n.createElement("span",null," te knippen."),n.createElement("br",null),n.createElement("a",{href:"https://www.google.com/search?q=how+to+cut+yarn+for+latch+hook",target:"_blank",rel:"nofollow noreferrer",onClick:function(t){(0,At.A)(t)}},"Lees hoe..."),n.createElement(jt.A,{size:20,style:{verticalAlign:"middle"}}))};var _t=function(t){var e=t.craft,r=t.type,o=t.extraContent,i=(0,a.d4)((function(t){return t.products.status.categoriesAvailable})),c=(0,a.d4)((function(t){return t.products.status.categoriesFailed})),u=(0,a.wA)(),l=function(){u((0,A.A)())};(0,n.useEffect)(l,[]);var s=f(e);return i||c?!i&&c?n.createElement(n.Fragment,null,n.createElement("h2",null,s),n.createElement(_.A,{onClick:l})):n.createElement(n.Fragment,null,n.createElement("h2",null,s),n.createElement(St,{craft:e,type:r,extraContent:o}),"latchHook"===e&&n.createElement(Ot,null)):n.createElement(n.Fragment,null,n.createElement("h2",null,s),n.createElement(O,null))};_t.propTypes={craft:u().string.isRequired,type:u().oneOf(["favorites","all","auto"]).isRequired,extraContent:u().node};const Nt=_t,Pt=function(){var t=(0,a.wA)();return(0,n.useEffect)((function(){t((0,i.A)())}),[]),n.createElement(L,{activeSection:"crafts",title:"Producten"},n.createElement(Nt,{craft:"all",type:"favorites",extraContent:n.createElement(S,null)}))};function Tt(t){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tt(t)}function It(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?It(Object(r),!0).forEach((function(e){Ft(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ft(t,e,r){return(e=function(t){var e=function(t){if("object"!=Tt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Tt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Gt=function(t,e,r){return(0,F.sortedUniqBy)((0,F.orderBy)(r.filter((function(t){return!!e[t]})).map((function(t){return e[t].brandId})).filter((function(e){return!!t[e]})).map((function(e){return t[e]})).map((function(t){return Ct(Ct({},t),{},{sortName:(0,F.deburr)(t.name).toLowerCase()})})),"sortName"),"sortName")};function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}function zt(){zt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==qt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(qt(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Rt(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}const Dt=function(){var t,e=(t=zt().mark((function t(e,r){var n;return zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Object.keys(e).map((function(t){return e[t]})),""!==r){t.next=3;break}return t.abrupt("return",n);case 3:return t.abrupt("return",(0,K.A)(n,r,["name"],!0));case 4:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){Rt(a,n,o,i,c,"next",t)}function c(t){Rt(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(t,r){return e.apply(this,arguments)}}();var Bt=function(t){var e=t.brand;return n.createElement("tr",null,n.createElement("td",null,n.createElement(d.A,{size:20,style:{verticalAlign:"middle"}}),n.createElement(k.N_,{to:"/".concat("nl","/products/brands/").concat(e.brandId)},e.name)),n.createElement("td",{style:{whiteSpace:"nowrap",textAlign:"right"}},n.createElement(k.N_,{to:"/".concat("nl","/products/brands/").concat(e.brandId)},e.categoryCountAvailable+" producten")))};Bt.propTypes={brand:u().object.isRequired};const Ut=Bt;var Wt=function(t){var e=t.brandsFavorite,r=t.brandsFiltered,o=t.resetSearchQuery;return 0===r.length?n.createElement(it,{onClick:o}):n.createElement("table",{className:"table table-borderless table-condensed table-striped",style:{width:"auto",fontSize:16}},n.createElement("tbody",null,e.length>0&&n.createElement(n.Fragment,null,n.createElement("tr",{style:{backgroundColor:"transparent"}},n.createElement("th",{colSpan:2},"Mijn favorieten")),e.map((function(t){return n.createElement(Ut,{key:t.brandId,brand:t})})),n.createElement("tr",{style:{backgroundColor:"transparent"}},n.createElement("th",{colSpan:2}," ")),n.createElement("tr",{style:{backgroundColor:"transparent"}},n.createElement("th",{colSpan:2},"Alle merken"))),r.map((function(t){return n.createElement(Ut,{key:t.brandId,brand:t})}))))};Wt.propTypes={brandsFavorite:u().array.isRequired,brandsFiltered:u().array.isRequired,resetSearchQuery:u().func.isRequired};const Yt=Wt;function Mt(t){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(t)}function Ht(){Ht=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Mt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Mt(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Kt(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Qt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){Kt(a,n,o,i,c,"next",t)}function c(t){Kt(a,n,o,i,c,"throw",t)}i(void 0)}))}}function Zt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Vt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const $t=function(){var t=(0,o.zy)(),e=(0,P.A)(t.search),r=Zt((0,n.useState)(e.q?e.q.trim():""),2),i=r[0],c=r[1],u=Zt((0,et.A)(),2),l=u[0],s=u[1],f=i.trim().toLowerCase(),h=(0,a.d4)((function(t){return t.products.brands})),p=(0,a.d4)((function(t){return t.products.categories})),d=(0,a.d4)((function(t){return t.products.favoriteCategoryIds})),y=Zt((0,n.useState)((function(){return t=h,e=f,r=Object.keys(t).map((function(e){return t[e]})),""===e?r:(0,J.A)(r,e,["name"],!0);var t,e,r})),2),m=y[0],v=y[1],g=Zt((0,n.useState)((function(){return Gt(h,p,d)})),2),b=g[0],E=g[1],w=(0,tt.A)(),x=(0,o.Zp)();(0,n.useEffect)((function(){if(!w){var t=i.trim(),e=document.location.pathname;""!==t&&(e+="?q="+encodeURIComponent(t)),x(e,{replace:!0})}}),[i]);var L=function(){var t=Qt(Ht().mark((function t(e){var r,n,o;return Ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==(r=e.trim().toLowerCase())){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,Dt(h,r);case 5:if(0!==(n=t.sent).length){t.next=8;break}return t.abrupt("return");case 8:o=n[0],x("/".concat("nl","/products/brands/").concat(o.brandId));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),k=function(){var t=Qt(Ht().mark((function t(){var e;return Ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Dt(h,f);case 2:e=t.sent,v(e);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,n.useEffect)((function(){w||k()}),[h,f]),(0,n.useEffect)((function(){w||E(Gt(h,p,d))}),[h,p,d]),n.createElement(n.Fragment,null,n.createElement("h2",null,"Merken"),n.createElement(ot.A,{searchQuery:i,onChange:c,onSubmit:L,resetSearchQuery:l,autoFocusOnKeyDown:!0,noAutoFocusWithOpenModal:!0,autoScrollToTop:!0}),n.createElement("br",null),n.createElement(Yt,{brandsFavorite:""===f?b:[],brandsFiltered:m,resetSearchQuery:s}),n.createElement(vt,null))};function Jt(t){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(t)}function Xt(){Xt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Jt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Jt(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function te(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}const ee=function(){var t=(0,a.d4)((function(t){return t.products.status.brandsAvailable})),e=(0,a.d4)((function(t){return t.products.status.brandsFailed})),r=(0,a.wA)(),o=function(){var t,e=(t=Xt().mark((function t(){return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r((0,i.A)());case 2:return t.next=4,r((0,A.A)());case 4:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){te(a,n,o,i,c,"next",t)}function c(t){te(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();return(0,n.useEffect)((function(){o()}),[]),n.createElement(L,{title:"Merken",activeSection:"brands",breadcrumbTitle1:"Merken",breadcrumbLink1:"/".concat("nl","/products/brands")},!t&&!e&&n.createElement(O,null),!t&&e&&n.createElement(_.A,{onClick:o}),t&&n.createElement($t,null))};var re=function(t){var e=t.brandId,r=function(t,e){return t.filter((function(t){return t.brandId===e}))}((0,a.d4)((function(t){return(0,T.A)(t)})),e);return 0===r.length?n.createElement("p",{style:{fontStyle:"italic"}},"Geen producten gevonden"):n.createElement("div",null,n.createElement("h4",{className:"headerDark"},"Producten"),n.createElement("table",{className:"table table-condensed table-striped",style:{width:"auto"}},n.createElement("tbody",null,r.map((function(t){var e="/".concat("nl","/products/").concat((0,N.A)(t.craft),"/").concat(t.categoryId);return n.createElement("tr",{key:t.categoryId},n.createElement("td",null,n.createElement(ht,{productCategoryId:t.categoryId})),n.createElement("td",null,n.createElement(k.N_,{to:e},t.title)),n.createElement("td",{style:{whiteSpace:"nowrap",textAlign:"right"}},n.createElement(k.N_,{to:e},t.productCountAvailable+" kleuren")))})))))};re.propTypes={brandId:u().string.isRequired};const ne=re,oe=function(t,e){if(t){var r="knittingCrochet"===t.craft?"":"/"+(0,N.A)(t.craft);return"/".concat("nl","/chart/create").concat(r,"?productCategory=").concat(t.categoryId)}return e?"/".concat("nl","/chart/create?brand=").concat(e.brandId):"/".concat("nl","/chart/create")};var ae=r(23964),ie=r(50375),ce=r(94513),ue=r(10506),le=function(t){var e=t.brand,r=(0,ae.A)(e.link),o=(0,ie.A)(e.link,{utm_source:"stitchfiddle",utm_medium:"website"});return n.createElement("ul",{className:"list-unstyled"},n.createElement("li",null,n.createElement(ce.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement(k.N_,{to:oe(null,e)},"Chart maken met [name]".replace("[name]",e.name))),r&&o&&n.createElement("li",null,n.createElement(jt.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement("a",{href:o,target:"_blank",onClick:function(t){(0,At.A)(t)}},r)),n.createElement("li",null,n.createElement(ue.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement(k.N_,{to:"/".concat("nl","/products/brands")},"Andere merken weergeven")))};le.propTypes={brand:u().object.isRequired};const se=le;var fe=function(t){var e=t.brand;return n.createElement(n.Fragment,null,n.createElement("h2",null,e.name),n.createElement("br",null),n.createElement(ne,{brandId:e.brandId}),n.createElement("br",null),n.createElement(se,{brand:e}),n.createElement("br",null),n.createElement(vt,null))};fe.propTypes={brand:u().object.isRequired};const he=fe,pe=function(){var t=(0,o.g)().brandId,e=(0,a.d4)((function(e){return e.products.brands[t]})),r=(0,a.d4)((function(t){return t.products.status.brandsFailed||t.products.status.categoriesFailed})),c=(0,a.d4)((function(t){return t.products.status.categoriesAvailable})),u=e&&c,l=(0,a.wA)(),s=function(){l((0,i.A)()),l((0,A.A)())};(0,n.useEffect)((function(){s()}),[]);var f=e?e.name:"Merken",h="/".concat("nl","/products/brands")+(e?"/"+e.brandId:"");return n.createElement(L,{activeSection:"brands",title:e?e.name:"Stitch Fiddle",breadcrumbTitle1:f,breadcrumbLink1:h},!u&&!r&&n.createElement(O,null),!u&&r&&n.createElement(_.A,{onClick:s}),u&&n.createElement(he,{brand:e}))},de=function(){var t=(0,o.g)().craft,e=(0,l.A)(t),r=f(e);return n.createElement(L,{title:r,activeSection:e,breadcrumbTitle1:r,breadcrumbLink1:"/".concat("nl","/products/").concat(t)},n.createElement(Nt,{type:"auto",craft:e}))};var ye=r(78212),me=r(19477),ve=r(62160),ge=r(89964),be=r(84055);function Ee(t){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ee(t)}function we(){we=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Ee(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ee(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function xe(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var Le=function(){var t,e=(t=we().mark((function t(e,r,n,o){var a;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.filter((function(t){return(!o||"yes"===t.available)&&(!n||t.solid)})),!n){t.next=5;break}return t.abrupt("return",(0,be.A)(a,n));case 5:return t.abrupt("return",(0,K.A)(a,r,["title"],!0,null,"productNumberInt"));case 6:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){xe(a,n,o,i,c,"next",t)}function c(t){xe(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(t,r,n,o){return e.apply(this,arguments)}}();const ke=Le;var Se=r(32200);var Ae=r(34720),je=r(10687),Oe=r(93348),_e=r(2687),Ne=r(47029),Pe=function(t){var e=t.craftSluggified,r=t.products;return n.createElement("ul",{className:"list-inline",style:{fontSize:14}},r.map((function(t){var r="/".concat("nl","/products/").concat(e,"/").concat(t.categoryId,"/product/").concat(t.productId);return n.createElement("li",{key:t.productId,title:t.title,style:{width:50,marginTop:5,marginBottom:5,textAlign:"center"}},n.createElement(k.N_,{to:r},n.createElement("div",{className:"printBgColor",style:{width:20,height:20,marginBottom:-4,border:"1px solid #ccc",margin:"0 auto",backgroundColor:t.color}})),n.createElement(k.N_,{to:r,style:{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},t.productNumber||t.description))})))};Pe.propTypes={craftSluggified:u().string.isRequired,products:u().array.isRequired};const Te=Pe;var Ie=function(t){var e=t.craftSluggified,r=t.products;return n.createElement("table",{className:"table table-borderless table-condensed table-striped",style:{width:"auto",fontSize:14}},n.createElement("tbody",null,r.map((function(t){var r="/".concat("nl","/products/").concat(e,"/").concat(t.categoryId,"/product/").concat(t.productId);return n.createElement("tr",{key:t.productId,title:t.title},n.createElement("td",null,n.createElement(k.N_,{to:r},n.createElement("div",{className:"printBgColor",style:{width:20,height:20,border:"1px solid #ccc",color:t.color,backgroundColor:t.color}}))),n.createElement("td",null,n.createElement(k.N_,{to:r},t.productNumber)),n.createElement("td",null,n.createElement(k.N_,{to:r},t.description)))}))))};Ie.propTypes={craftSluggified:u().string.isRequired,products:u().array.isRequired};const Ce=Ie;var Fe=function(t){var e=t.craftSluggified,r=t.products,o=(0,a.d4)((function(t){return t.settings.productsListFormat}));if(0===r.length)return null;switch(o){case"thumbnails":return n.createElement(Te,{craftSluggified:e,products:r});case"table":return n.createElement(Ce,{craftSluggified:e,products:r});default:return null}};Fe.propTypes={craftSluggified:u().string.isRequired,products:u().array.isRequired};const Ge=Fe;var qe=r(54316),ze=r(82898),Re=function(t){var e=t.productCategory,r=(0,a.d4)((function(t){return t.products.brands[e.brandId]}));return n.createElement("ul",{className:"list-unstyled hidden-print"},n.createElement("li",null,n.createElement(ce.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement(k.N_,{to:oe(e)},"Chart maken met [name]".replace("[name]",e.title))),n.createElement("li",null,n.createElement(qe.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement(k.N_,{to:"charts"},"Mijn charts met dit product")),n.createElement("li",null,n.createElement(ze.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement(k.N_,{to:"download"},"Download lijst")),r&&n.createElement("li",null,n.createElement(ue.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement(k.N_,{to:"/".concat("nl","/products/brands/").concat(r.brandId)},"Meer van [title]".replace("[title]",r.name))))};Re.propTypes={productCategory:u().object.isRequired};const De=Re;function Be(t){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Be(t)}function Ue(){Ue=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Be(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Be(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function We(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Ye(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){We(a,n,o,i,c,"next",t)}function c(t){We(a,n,o,i,c,"throw",t)}i(void 0)}))}}function Me(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return He(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?He(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var Ke=function(t){var e=t.craftSluggified,r=t.productCategory,a=t.products,i=(0,o.zy)(),c=(0,P.A)(i.search),u=(0,ge.A)(c.color)&&6===c.color.length?"#"+c.color:"",l=a.some((function(t){return"no"===t.available})),s=Me((0,n.useState)(c.q?c.q.trim():""),2),f=s[0],h=s[1],p=Me((0,et.A)(),2),d=p[0],y=p[1],m=Me((0,n.useState)(!!u),2),v=m[0],g=m[1],b=Me((0,n.useState)(u),2),E=b[0],w=b[1],x=Me((0,n.useState)(!1),2),L=x[0],k=x[1],S=f.trim().toLowerCase(),A=Me((0,n.useState)((function(){return function(t,e,r,n){var o=t.filter((function(t){return(!n||"yes"===t.available)&&(!r||t.solid)}));return r?(0,Se.A)(o,r):(0,J.A)(o,e,["title"],!0,null,"productNumberInt")}(a,S,E,L)})),2),j=A[0],O=A[1],_=(0,tt.A)(),N=(0,o.Zp)(),T=function(){g(!1),w("")};(0,n.useEffect)((function(){if(!_){var t=f.trim(),e=document.location.pathname;""!==t?e+="?q="+encodeURIComponent(t):""!==E&&(e+="?color="+encodeURIComponent(E.substring(1))),N(e,{replace:!0})}}),[f,E]),(0,n.useEffect)((function(){_||(!c.q&&f&&y(),!c.color&&v&&T())}),[c.q,c.color]);var I=function(){var t=Ye(Ue().mark((function t(n){var o,i;return Ue().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==(o=n.trim().toLowerCase())){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,ke(a,o,E,L);case 5:if(0!==(i=t.sent).length){t.next=8;break}return t.abrupt("return");case 8:N("/".concat("nl","/products/").concat(e,"/").concat(r.categoryId,"/product/").concat(i[0].productId));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),C=function(){""!==f&&y(),""!==E&&w(""),v&&g(!1),window.scrollTo(0,0)},F=function(){var t=Ye(Ue().mark((function t(){var e;return Ue().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ke(a,S,E,L);case 2:e=t.sent,O(e);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();(0,n.useEffect)((function(){_||F()}),[a,S,E,L]);var G=v||""!==S||""!==E;return n.createElement("div",null,n.createElement("div",{className:"hidden-print"},n.createElement(ot.A,{searchQuery:f,onChange:function(t){f!==t&&(E&&w(""),v&&g(!1),h(t))},onSubmit:I,onClick:T,resetSearchQuery:d,autoFocusOnKeyDown:!0,noAutoFocusWithOpenModal:!0,autoScrollToTop:!0}),l&&n.createElement("div",{onClick:function(){return k(!L)},style:{cursor:"pointer",userSelect:"none",marginTop:5}},L?n.createElement(je.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}):n.createElement(Oe.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement("span",null,"Niet beschikbaar weergeven")),!v&&n.createElement("button",{type:"button",className:"btn btn-default",onClick:function(){""!==f&&(h(""),y()),w(ve.z),g(!0)},style:{marginTop:10,minWidth:200}},n.createElement(Ae.A,{size:20,style:{float:"left",verticalAlign:"middle",marginRight:8}}),n.createElement("span",null,"Zoeken op kleur")),v&&n.createElement("div",{style:{marginTop:15}},n.createElement(_e.A,{color:E,onChange:w,shortDefaultColors:!0})),n.createElement("div",{className:"clearfix"},G&&n.createElement("button",{type:"button",className:"btn btn-default",onClick:C,style:{marginTop:15,marginBottom:10,minWidth:200}},n.createElement(nt,{size:20,style:{float:"left",verticalAlign:"middle",marginRight:8}}),n.createElement("span",null,"Alles weergeven")),n.createElement(Ne.A,null))),n.createElement(Ge,{craftSluggified:e,products:j}),j.length>1&&n.createElement("p",{style:{marginTop:-10,marginLeft:10}},j.length+" kleuren"),j.length>0&&n.createElement("p",{className:"alert alert-info hidden-print",style:{padding:10}},"De kleuren zijn een indicatie. Elke scherm geeft kleuren anders weer. Werkelijke kleuren kunnen er anders uitzien op een echt product."),0===j.length&&n.createElement("p",{className:"alert alert-warning",onClick:C,style:{cursor:"pointer"}},"Geen producten gevonden"),G&&n.createElement("button",{type:"button",className:"btn btn-default",onClick:C,style:{marginBottom:10,minWidth:200}},n.createElement(nt,{size:20,style:{float:"left",verticalAlign:"middle",marginRight:8}}),n.createElement("span",null,"Alles weergeven")),""===f&&n.createElement(De,{productCategory:r}))};Ke.propTypes={craftSluggified:u().string.isRequired,productCategory:u().object.isRequired,products:u().array.isRequired};const Qe=Ke;var Ze=r(32568),Ve=r(81887);const $e=function(){return n.createElement("p",{className:"hidden-print"},n.createElement(k.N_,{to:"..",className:"btn btn-default",style:{minWidth:200}},n.createElement(Ve.A,{size:20,style:{float:"left"}}),n.createElement("span",null,"Terug naar product")))},Je=function(){var t=(0,o.zy)();return n.createElement(n.Fragment,null,n.createElement("p",null,n.createElement("span",null,"Login om te zien welke charts dit product gebruiken."),n.createElement("br",null),n.createElement(k.N_,{to:"/".concat("nl","/login?redirectUrl=").concat(t.pathname),className:"btn btn-primary",style:{minWidth:200,marginTop:12}},n.createElement(Ze.A,{size:22,style:{float:"right"}}),n.createElement("span",null,"Doorgaan"))),n.createElement("br",null),n.createElement($e,null))};var Xe=r(51818),tr=r(97825);function er(t){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},er(t)}function rr(){rr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==er(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(er(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function nr(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function or(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var ar=function(t){var e,r,o=t.productCategoryId,i=(e=(0,n.useState)([]),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return or(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?or(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=i[0],u=i[1],l=(0,a.d4)((function(t){return t.charts.charts})),s=function(){var t,e=(t=rr().mark((function t(){var e;return rr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Xe.A)("products/charts?category="+o);case 2:e=t.sent,u(e.chartIds);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){nr(a,n,o,i,c,"next",t)}function c(t){nr(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();(0,n.useEffect)((function(){s()}),[]);var f=c.filter((function(t){return l[t]})).map((function(t){return l[t]}));return 0===f.length?n.createElement("div",null,n.createElement("p",null,"Geen charts gevonden..."),n.createElement($e,null)):n.createElement("div",null,n.createElement($e,null),n.createElement(tr.A,{charts:f}),n.createElement($e,null))};ar.propTypes={productCategoryId:u().string.isRequired};const ir=ar,cr=function(){return n.createElement("p",null,n.createElement("span",null,"Neem de Premium versie om te zien welke charts dit product gebruiken."),n.createElement("br",null),n.createElement(k.N_,{to:"/".concat("nl","/premium/order?s=58"),className:"btn btn-primary btn-lg",style:{minWidth:200,marginTop:12}},n.createElement(Ze.A,{size:22,style:{float:"right"}}),n.createElement("span",null,"Doorgaan")))};var ur=function(t){var e=t.productCategoryId,r=(0,a.d4)((function(t){return(0,g.A)(t)})),o=(0,a.d4)((function(t){return t.user.premium}));return n.createElement(n.Fragment,null,n.createElement("h4",null,"Mijn charts met dit product"),!r&&n.createElement(Je,null),r&&!o&&n.createElement(cr,null),r&&o&&n.createElement(ir,{productCategoryId:e}))};ur.propTypes={productCategoryId:u().string.isRequired};const lr=ur,sr=function(){return n.createElement("p",null,n.createElement("span",null,"Upgrade je account naar de Premium versie om dit bestand te downloaden."),n.createElement("br",null),n.createElement(k.N_,{to:"/".concat("nl","/premium/order?s=59"),className:"btn btn-primary btn-lg",style:{minWidth:200,marginTop:12}},n.createElement(Ze.A,{size:22,style:{float:"right"}}),n.createElement("span",null,"Doorgaan")))};function fr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var hr=function(t){var e,r,o=t.productCategory,i=(e=(0,n.useState)("xlsx"),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return fr(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fr(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=i[0],u=i[1],l=(0,a.d4)((function(t){return t.user.premium}));return n.createElement("form",null,n.createElement("div",{className:"row"},n.createElement("div",{className:"col-md-6"},n.createElement("div",{className:"form-group"},n.createElement("label",{htmlFor:"downloadProductCategoryFileType"},"Bestandsformaat:"),n.createElement("select",{id:"downloadProductCategoryFileType",className:"form-control",value:c,onChange:function(t){u(t.currentTarget.value)}},n.createElement("option",{value:"xlsx"},"xlsx"),n.createElement("option",{value:"csv"},"csv"))))),!l&&n.createElement(sr,null),l&&n.createElement("p",null,n.createElement("a",{href:"/".concat("nl","/products/download/category/").concat(o.categoryId,"/").concat(encodeURIComponent(o.title+" - Stitch Fiddle"),".").concat(c),className:"btn btn-primary btn-lg",style:{minWidth:200}},n.createElement(ze.A,{size:24,style:{float:"left",marginRight:10}}),n.createElement("span",null,"Download"))),n.createElement("br",null),n.createElement($e,null))};hr.propTypes={productCategory:u().object.isRequired};const pr=hr,dr=function(){var t=(0,o.zy)();return n.createElement(n.Fragment,null,n.createElement("p",null,n.createElement("span",null,"Login om dit bestand te downloaden."),n.createElement("br",null),n.createElement(k.N_,{to:"/".concat("nl","/login?redirectUrl=").concat(t.pathname),className:"btn btn-primary",style:{minWidth:200,marginTop:12}},n.createElement(Ze.A,{size:22,style:{float:"right"}}),n.createElement("span",null,"Doorgaan"))),n.createElement("br",null),n.createElement($e,null))},yr=function(){var t=(0,o.zy)();return n.createElement(n.Fragment,null,n.createElement("p",null,n.createElement("span",null,"Je account moet geactiveerd zijn om dit bestand te kunnen downloaden."),n.createElement("br",null),n.createElement(k.N_,{to:"/".concat("nl","/account/activation?redirectUrl=").concat(t.pathname),className:"btn btn-primary",style:{minWidth:200,marginTop:12}},n.createElement(Ze.A,{size:22,style:{float:"right"}}),n.createElement("span",null,"Doorgaan"))),n.createElement("br",null),n.createElement($e,null))};var mr=function(t){var e=t.productCategory,r=(0,a.d4)((function(t){return(0,g.A)(t)})),o=(0,a.d4)((function(t){return t.user.pending}));return n.createElement("div",null,n.createElement("h4",null,"Download lijst"),!r&&n.createElement(dr,null),r&&o&&n.createElement(yr,null),r&&!o&&n.createElement(pr,{productCategory:e}))};mr.propTypes={productCategory:u().object.isRequired};const vr=mr;var gr=function(t){var e=t.craftSluggified,r=t.productCategory,a=t.products;return n.createElement(n.Fragment,null,n.createElement("h2",null,n.createElement("span",{style:{marginRight:5}},r.title),n.createElement(ht,{productCategoryId:r.categoryId})),n.createElement(o.BV,null,n.createElement(o.qh,{path:"charts",element:n.createElement(lr,{productCategoryId:r.categoryId})}),n.createElement(o.qh,{path:"download",element:n.createElement(vr,{productCategory:r})}),n.createElement(o.qh,{path:"*",element:n.createElement(Qe,{productCategory:r,products:a,craftSluggified:e})})))};gr.propTypes={craftSluggified:u().string.isRequired,productCategory:u().object.isRequired,products:u().array.isRequired};const br=gr;function Er(t){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(t)}function wr(){wr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Er(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Er(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function xr(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}const Lr=function(){var t=(0,o.g)(),e=t.craft,r=(0,l.A)(e),c=t.categoryId,u=(0,a.d4)((function(t){return t.products.categories[c]})),s=(0,a.d4)((function(t){return(0,me.A)(t,c)})),f=(0,a.d4)((function(t){return t.products.status.categoriesFailed})),h=(0,a.d4)((function(t){return t.products.categories[c]&&t.products.categories[c].fetchFailed})),p=f||h,d=u&&s.length>0,y=(0,a.wA)(),m=function(){var t,e=(t=wr().mark((function t(){return wr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,y((0,A.A)());case 2:return t.next=4,y((0,ye.A)(c));case 4:return t.next=6,y((0,i.A)());case 6:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){xr(a,n,o,i,c,"next",t)}function c(t){xr(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();return(0,n.useEffect)((function(){m()}),[t.categoryId]),n.createElement(L,{title:u?u.title:"Stitch Fiddle",activeSection:r,craftSluggified:e,breadcrumbTitle1:u?u.title:"",breadcrumbLink1:u?"/".concat("nl","/products/").concat(e,"/").concat(u.categoryId):""},!d&&!p&&n.createElement(O,null),!d&&p&&n.createElement(_.A,{onClick:m}),d&&n.createElement(br,{craftSluggified:e,productCategory:u,products:s}))};var kr=r(50963),Sr=function(t){var e=t.product,r=(0,o.zy)(),a=(0,kr.A)(r.pathname),i=a.length>5,c=n.createElement("div",{style:{float:"left",border:"1px solid #ccc",width:25,height:25,marginTop:-2,marginRight:8,backgroundColor:e.color}});return n.createElement("h2",null,i?n.createElement(k.N_,{to:"/nl/"+a.slice(0,5).join("/")},c):c,n.createElement("span",null,e.title))};Sr.propTypes={product:u().object.isRequired};const Ar=Sr;var jr=r(29690);const Or=r(9304).xi;var _r=function(t){var e=t.craftSluggified,r=t.productCategory,o=t.product;return n.createElement("ul",{className:"list-unstyled"},r&&n.createElement("li",null,n.createElement(ce.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement(k.N_,{to:oe(r)},"Chart maken met [name]".replace("[name]",r.title))),n.createElement("li",null,n.createElement(qe.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement(k.N_,{to:"charts"},"Mijn charts met dit product")),r.hasSolids&&o.solid&&n.createElement("li",null,n.createElement(Or,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement(k.N_,{to:"substitutes"},"Vervangers / alternatieven")),n.createElement("li",null,n.createElement(ue.A,{size:20,style:{verticalAlign:"middle",marginRight:5}}),n.createElement(k.N_,{to:"/".concat("nl","/products/").concat(e,"/").concat(r.categoryId)},"Meer van [title]".replace("[title]",r.title))))};_r.propTypes={craftSluggified:u().string.isRequired,productCategory:u().object.isRequired,product:u().object.isRequired};const Nr=_r;var Pr=function(t){var e=t.craftSluggified,r=t.product,o=t.productCategory,i=(0,a.d4)((function(t){return t.products.brands[o.brandId]}));return n.createElement(n.Fragment,null,n.createElement("table",{className:"table table-condensed table-borderless",style:{width:"auto"}},n.createElement("tbody",null,i&&n.createElement("tr",null,n.createElement("th",{style:{whiteSpace:"nowrap"}},"Merk:"),n.createElement("td",null,n.createElement(k.N_,{to:"/".concat("nl","/products/brands/").concat(i.brandId)},i.name))),n.createElement("tr",null,n.createElement("th",{style:{whiteSpace:"nowrap"}},"Categorie:"),n.createElement("td",null,n.createElement(k.N_,{to:"/".concat("nl","/products/").concat(e,"/").concat(o.categoryId)},o.title))),r.productNumber&&n.createElement("tr",null,n.createElement("th",{style:{whiteSpace:"nowrap"}},"Product nummer:"),n.createElement("td",{style:{whiteSpace:"nowrap"}},r.productNumber)),r.description&&n.createElement("tr",null,n.createElement("th",{style:{whiteSpace:"nowrap"}},"Omschrijving:"),n.createElement("td",null,r.description)),n.createElement("tr",null,n.createElement("th",{style:{whiteSpace:"nowrap"}},"Kleur:"),n.createElement("td",{style:{whiteSpace:"nowrap"}},n.createElement("div",{style:{float:"left",border:"1px solid #ccc",marginRight:8,width:25,height:25,backgroundColor:r.color}}),n.createElement("span",null,r.color),!r.solid&&n.createElement(n.Fragment,null,n.createElement(jr.A,{size:20,style:{verticalAlign:"middle",marginLeft:10}}),n.createElement("i",null,"Bevat meerdere kleuren")))))),r.solid&&n.createElement("p",{className:"alert alert-info",style:{padding:10}},"De kleuren zijn een indicatie. Elke scherm geeft kleuren anders weer. Werkelijke kleuren kunnen er anders uitzien op een echt product."),n.createElement(Nr,{craftSluggified:e,productCategory:o,product:r}))};Pr.propTypes={craftSluggified:u().string.isRequired,product:u().object.isRequired,productCategory:u().object.isRequired};const Tr=Pr,Ir=function(){var t=(0,o.zy)();return n.createElement(n.Fragment,null,n.createElement("p",null,n.createElement("span",null,"Login om te zien welke charts dit product gebruiken."),n.createElement("br",null),n.createElement(k.N_,{to:"/".concat("nl","/login?redirectUrl=").concat(encodeURIComponent(t.pathname)),className:"btn btn-primary",style:{minWidth:200,marginTop:12}},n.createElement(Ze.A,{size:22,style:{float:"right"}}),n.createElement("span",null,"Doorgaan"))),n.createElement("br",null),n.createElement($e,null))};function Cr(t){return Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(t)}function Fr(){Fr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Cr(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Cr(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Gr(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function qr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var zr=function(t){var e,r,o=t.productId,i=(e=(0,n.useState)([]),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return qr(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qr(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=i[0],u=i[1],l=(0,a.d4)((function(t){return t.charts.charts})),s=function(){var t,e=(t=Fr().mark((function t(){var e;return Fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Xe.A)("products/charts?product="+o);case 2:e=t.sent,u(e.chartIds);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){Gr(a,n,o,i,c,"next",t)}function c(t){Gr(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();(0,n.useEffect)((function(){s()}),[]);var f=c.filter((function(t){return l[t]})).map((function(t){return l[t]}));return 0===f.length?n.createElement("div",null,n.createElement("p",null,"Geen charts gevonden..."),n.createElement($e,null)):n.createElement("div",null,n.createElement($e,null),n.createElement(tr.A,{charts:f}),n.createElement($e,null))};zr.propTypes={productId:u().string.isRequired};const Rr=zr,Dr=function(){return n.createElement("p",null,n.createElement("span",null,"Neem de Premium versie om te zien welke charts dit product gebruiken."),n.createElement("br",null),n.createElement(k.N_,{to:"/".concat("nl","/premium/order?s=58"),className:"btn btn-primary btn-lg",style:{minWidth:200,marginTop:12}},n.createElement(Ze.A,{size:22,style:{float:"right"}}),n.createElement("span",null,"Doorgaan")))};var Br=function(t){var e=t.productId,r=(0,a.d4)((function(t){return(0,g.A)(t)})),o=(0,a.d4)((function(t){return t.user.premium}));return n.createElement(n.Fragment,null,n.createElement("h4",null,"Mijn charts met dit product"),!r&&n.createElement(Ir,null),r&&!o&&n.createElement(Dr,null),r&&o&&n.createElement(Rr,{productId:e}))};Br.propTypes={productId:u().string.isRequired};const Ur=Br;function Wr(t){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(t)}function Yr(){Yr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Wr(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Wr(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Mr(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var Hr=function(){var t,e=(t=Yr().mark((function t(e,r){var n;return Yr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.filter((function(t){return t.solid&&"no"!==t.available&&t.productId!==r.productId})),t.abrupt("return",(0,be.A)(n,r.color));case 2:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){Mr(a,n,o,i,c,"next",t)}function c(t){Mr(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(t,r){return e.apply(this,arguments)}}();const Kr=Hr;var Qr=r(40288),Zr=r(88004),Vr=function(t){var e=t.craftSluggified,r=t.originalProduct,o=t.substituteProducts;return n.createElement("div",null,n.createElement("table",{className:"table table-borderless table-condensed table-striped",style:{width:"auto",fontSize:14}},n.createElement("tbody",null,o.map((function(t){var o="/".concat("nl","/products/").concat(e,"/").concat(t.categoryId,"/product/").concat(t.productId);return n.createElement("tr",{key:t.productId,title:t.title},n.createElement("td",{style:{whiteSpace:"nowrap"}},n.createElement(k.N_,{to:o},n.createElement("div",{style:{width:20,height:20,float:"left",border:"1px solid #ccc",backgroundColor:r.color}}),n.createElement(Zr.A,{size:20,style:{float:"left",color:"#777"}}),n.createElement("div",{style:{width:20,height:20,float:"left",border:"1px solid #ccc",backgroundColor:t.color}}))),n.createElement("td",null,n.createElement(k.N_,{to:o},t.productNumber)),n.createElement("td",null,n.createElement(k.N_,{to:o},t.description)))})))),n.createElement("p",{className:"alert alert-info hidden-print",style:{padding:10}},"De kleuren zijn een indicatie. Elke scherm geeft kleuren anders weer. Werkelijke kleuren kunnen er anders uitzien op een echt product."))};Vr.propTypes={craftSluggified:u().string.isRequired,originalProduct:u().object.isRequired,substituteProducts:u().array.isRequired};const $r=Vr;function Jr(t){return Jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(t)}function Xr(){Xr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Jr(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Jr(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function tn(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function en(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){tn(a,n,o,i,c,"next",t)}function c(t){tn(a,n,o,i,c,"throw",t)}i(void 0)}))}}function rn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return nn(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var on=function(t){var e=t.product,r=(0,o.g)(),i=rn((0,n.useState)(r.categoryIdSearch||e.categoryId),2),c=i[0],u=i[1],l=rn((0,n.useState)(!1),2),s=l[0],f=l[1],h=(0,a.d4)((function(t){return t.products.categories[c]})),p=(0,a.d4)((function(t){return(0,me.A)(t,c)})),d=(0,a.d4)((function(t){return t.products.status.categoriesFailed})),y=(0,a.d4)((function(t){return t.products.categories[c]&&t.products.categories[c].fetchFailed})),m=rn((0,n.useState)((function(){return function(t,e){var r=t.filter((function(t){return t.solid&&"no"!==t.available&&t.productId!==e.productId}));return(0,Se.A)(r,e.color)}(p,e)})),2),v=m[0],g=m[1],b=d||y,E=h&&p.length>0,w=(0,tt.A)(),x=(0,a.wA)(),L=function(){var t=en(Xr().mark((function t(){return Xr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,x((0,A.A)());case 2:return t.next=4,x((0,ye.A)(c));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();(0,n.useEffect)((function(){L()}),[c]);var S=(0,o.Zp)();(0,n.useEffect)((function(){if(!w){var t=document.location.pathname.split("/"),e=t.indexOf("substitutes");if(-1!==e){var r=t.slice(0,e+1).join("/")+"/"+c;document.location.pathname!==r&&S(r,{replace:!0})}}}),[c]);var j=function(){var t=en(Xr().mark((function t(){var r;return Xr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==p.length){t.next=2;break}return t.abrupt("return");case 2:return g([]),f(!0),t.next=6,Kr(p,e);case 6:r=t.sent,g(r),f(!1);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,n.useEffect)((function(){w||j()}),[p]),n.createElement("div",null,n.createElement("div",null,n.createElement("span",null,"Vervangers / alternatieven voor "),n.createElement(k.N_,{to:".."},e.title)),n.createElement("br",null),n.createElement("div",{className:"row",style:{marginBottom:15}},n.createElement("div",{className:"col-sm-6"},n.createElement(Qr.A,{craft:"all",productCategoryId:c,onChange:u,hideNoPreferenceOption:!0,mustHaveSolids:!0}))),(!E||s)&&n.createElement("div",{style:{marginBottom:45}},b?n.createElement(_.A,{onClick:L}):n.createElement(O,null)),E&&!s&&n.createElement("div",null,0===v.length?n.createElement("p",{className:"alert alert-warning",style:{marginBottom:45}},"Er zijn geen vervangende/alternative producten gevonden."):n.createElement($r,{craftSluggified:(0,N.A)(h.craft),originalProduct:e,substituteProducts:v})),n.createElement($e,null))};on.propTypes={product:u().object.isRequired};const an=on;var cn=function(t){var e=t.craftSluggified,r=t.productCategory,a=t.product;return n.createElement(n.Fragment,null,n.createElement(Ar,{product:a}),n.createElement("br",null),n.createElement(o.BV,null,n.createElement(o.qh,{path:"charts",element:n.createElement(Ur,{productId:a.productId})}),n.createElement(o.qh,{path:"substitutes/:categoryIdSearch",element:n.createElement(an,{product:a})}),n.createElement(o.qh,{path:"substitutes",element:n.createElement(an,{product:a})}),n.createElement(o.qh,{path:"*",element:n.createElement(Tr,{craftSluggified:e,product:a,productCategory:r})})))};cn.propTypes={craftSluggified:u().string.isRequired,productCategory:u().object.isRequired,product:u().object.isRequired};const un=cn;function ln(t){return ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(t)}function sn(){sn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==ln(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(ln(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function fn(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}const hn=function(){var t=(0,o.g)(),e=t.craft,r=(0,l.A)(e),c=t.categoryId,u=t.productId,s=(0,a.d4)((function(t){return t.products.products[u]})),f=(0,a.d4)((function(t){return t.products.categories[c]})),h=(0,a.d4)((function(t){return t.products.status.categoriesAvailable})),p=(0,a.d4)((function(t){return t.products.status.categoriesFailed})),d=(0,a.d4)((function(t){return t.products.categories[c]&&t.products.categories[c].fetchFailed})),y=h&&f&&f.productIds&&s,m=p||d,v=(0,a.wA)(),g=function(){var t,e=(t=sn().mark((function t(){return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v((0,A.A)());case 2:return t.next=4,v((0,ye.A)(c));case 4:return t.next=6,v((0,i.A)());case 6:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){fn(a,n,o,i,c,"next",t)}function c(t){fn(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();(0,n.useEffect)((function(){g()}),[]);var b=s?s.title:"Stitch Fiddle";return n.createElement(L,{title:b,activeSection:r,craftSluggified:e,breadcrumbTitle1:f?f.title:"",breadcrumbLink1:"/".concat("nl","/products/").concat(e,"/").concat(c)},!y&&!m&&n.createElement(O,null),!y&&m&&n.createElement(_.A,{onClick:g}),y&&n.createElement(un,{craftSluggified:e,productCategory:f,product:s}))};var pn=r(7728),dn=r(10867),yn=r(95045);var mn=r(1134),vn=function(t){var e=t.redirectUrl,r=e&&-1===e.indexOf("/products")?e:"/".concat("nl","/products");return n.createElement("section",null,n.createElement("p",null,"Bedankt! Je verzoek is verzonden."),n.createElement("br",null),n.createElement("p",null,n.createElement(k.N_,{className:"btn btn-lg btn-primary",to:r},n.createElement(Ze.A,{size:26,style:{float:"right"}}),n.createElement("span",null,"Terug"))))};vn.propTypes={redirectUrl:u().string.isRequired};const gn=vn;function bn(t){return bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(t)}function En(){En=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:A(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function v(){}function g(){}function b(){}var E={};l(E,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=b.prototype=v.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==bn(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(bn(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function wn(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function xn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ln(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ln(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ln(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var kn=function(t){var e=t.craft,r=t.pageTitle,a=(0,o.zy)(),i=(0,yn.A)(a,"/".concat("nl","/products")),c=xn((0,n.useState)(""),2),u=c[0],l=c[1],s=xn((0,n.useState)(""),2),f=s[0],h=s[1],p=xn((0,n.useState)(""),2),d=p[0],y=p[1],m=xn((0,n.useState)(""),2),v=m[0],g=m[1],b=xn((0,n.useState)(!1),2),E=b[0],w=b[1],x=xn((0,n.useState)(!1),2),L=x[0],S=x[1],A=xn((0,n.useState)(""),2),O=A[0],_=A[1],N=function(t){switch(t){case"knitting":case"crochet":case"latchHook":case"knittingCrochet":return"Wat is de naam van het garen?";case"crossStitch":return"Wat is de naam van het borduurgaren?";default:return"Wat is de naam van het product?"}}(e),P=function(t){var e=document.getElementById(t);e&&((0,pn.A)(e),e.focus())},T=function(){var t,n=(t=En().mark((function t(){var n,o,a;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!E){t.next=2;break}return t.abrupt("return");case 2:if(!(n=""===u.trim()?(P("requestFormBrandName"),"Wil je de merk naam invullen?"):""===f.trim()?(P("requestFormProductName"),"Wil je de product naam invullen?"):"")){t.next=6;break}return _(n),t.abrupt("return");case 6:return w(!0),S(!1),_(""),t.prev=9,o=r+": "+(0,dn.A)(u.trim()+" "+f.trim()),a="Wat is het merk?\n"+u.trim()+"\n\n"+N+"\n"+f.trim()+"\n\nWat is de website waar de kleuren te vinden zijn?\n"+d.trim()+"\n\nOpmerkingen:\n"+v.trim(),t.next=14,(0,Xe.A)("products/request",{headline:r+":",craft:e,subject:o,message:a,brandName:u,productName:f,website:d,comments:v});case 14:w(!1),S(!0),_(""),t.next=24;break;case 19:t.prev=19,t.t0=t.catch(9),w(!1),S(!1),_("Je bericht kon NIET worden verstuurd. Blijf je deze foutmelding krijgen? Je kunt ons ook bereiken via support@stitchfiddle.com.");case 24:case"end":return t.stop()}}),t,null,[[9,19]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){wn(a,n,o,i,c,"next",t)}function c(t){wn(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(){return n.apply(this,arguments)}}(),I=function(t,e){if(13===t.which)switch(e){case"brandName":P("requestFormProductName");break;case"productName":P("requestFormWebsite");break;case"website":P("requestFormComments");break;default:T()}};return L?n.createElement(gn,{redirectUrl:i}):n.createElement("section",{className:"form-horizontal"},n.createElement("p",null,n.createElement("span",null,"Staat wat je zoekt nog niet op Stitch Fiddle? Gebruik dit formulier om ons team te vragen het toe te voegen."),i&&n.createElement(k.N_,{to:i,className:"btn btn-default",style:{marginLeft:5}},"Annuleren")),n.createElement("br",null),n.createElement("label",{htmlFor:"requestFormBrandName"},"1. Wat is het merk?"),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-sm-12"},n.createElement("input",{id:"requestFormBrandName",type:"text",className:"form-control",maxLength:200,disabled:E,value:u,onChange:function(t){return l(t.currentTarget.value)},onKeyUp:function(t){return I(t,"brandName")}}))),n.createElement("label",{htmlFor:"requestFormProductName"},"2. "+N),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-sm-12"},n.createElement("input",{id:"requestFormProductName",type:"text",className:"form-control",maxLength:1e3,disabled:E,value:f,onChange:function(t){return h(t.currentTarget.value)},onKeyUp:function(t){return I(t,"productName")}}))),n.createElement("label",{htmlFor:"requestFormWebsite"},n.createElement("span",null,"3. Wat is de website waar de kleuren te vinden zijn?"),n.createElement("span",{style:{fontWeight:"normal"}}," (niet verplicht)")),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-sm-12"},n.createElement("input",{id:"requestFormWebsite",type:"text",className:"form-control",maxLength:200,disabled:E,value:d,onChange:function(t){return y(t.currentTarget.value)},onKeyUp:function(t){return I(t,"website")}}))),n.createElement("label",{htmlFor:"requestFormComments"},n.createElement("span",null,"4. Opmerkingen:"),n.createElement("span",{style:{fontWeight:"normal"}}," (niet verplicht)")),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"col-sm-12"},n.createElement("input",{id:"requestFormComments",type:"text",className:"form-control",maxLength:1e4,disabled:E,value:v,onChange:function(t){return g(t.currentTarget.value)},onKeyUp:function(t){return I(t,"comments")}}))),O?n.createElement("p",{className:"alert alert-danger"},O):n.createElement("br",null),n.createElement("button",{type:"button",className:"btn btn-primary",disabled:E,onClick:T,style:{minWidth:200}},!E&&n.createElement(mn.A,{size:20,style:{float:"left"}}),E?n.createElement("span",null,"Verwerking..."):n.createElement("span",null,"Versturen"),E&&n.createElement(j.A,{size:20})),n.createElement("br",null),n.createElement("br",null),n.createElement(k.N_,{to:i},"Annuleren"))};kn.propTypes={craft:u().string.isRequired,pageTitle:u().string.isRequired};const Sn=kn,An=function(){var t=(0,a.d4)((function(t){return(0,g.A)(t)})),e=(0,o.zy)(),r=(0,o.g)().craft,i=(0,l.A)(r),c=(0,o.Zp)();(0,n.useEffect)((function(){t||c("/".concat("nl","/login?redirectUrl=")+encodeURIComponent(e.pathname+e.search))}),[t]);var u=function(t){switch(t){case"knitting":case"crochet":case"latchHook":case"knittingCrochet":return"Garen toevoegen aan Stitch Fiddle";case"crossStitch":return"Borduurgaren toevoegen aan Stitch Fiddle";default:return"Product toevoegen aan Stitch Fiddle"}}(i);return n.createElement(L,{title:u,activeSection:i,breadcrumbTitle1:u,breadcrumbLink1:"/".concat("nl","/products/").concat(r,"/request")},n.createElement("h2",null,u),n.createElement("br",null),t&&n.createElement(Sn,{craft:i,pageTitle:u}),n.createElement("br",null))};var jn=r(19054);const On=function(){return n.createElement(o.BV,null,n.createElement(o.qh,{path:"/",element:n.createElement(Pt,null)}),n.createElement(o.qh,{path:"brands/",element:n.createElement(ee,null)}),n.createElement(o.qh,{path:"brands/:brandId",element:n.createElement(pe,null)}),n.createElement(o.qh,{path:":craft",element:n.createElement(de,null)}),n.createElement(o.qh,{path:":craft/request",element:n.createElement(An,null)}),n.createElement(o.qh,{path:":craft/:categoryId/product/:productId/*",element:n.createElement(hn,null)}),n.createElement(o.qh,{path:":craft/:categoryId/*",element:n.createElement(Lr,null)}),n.createElement(o.qh,{path:"*",element:n.createElement(jn.A,null)}))}},7856:(t,e,r)=>{r.d(e,{A:()=>l});var n=r(63696),o=r(62688),a=r.n(o),i=r(29690),c=r(48204),u=function(t){var e=t.onClick;return n.createElement(n.Fragment,null,n.createElement("br",null),n.createElement("p",{className:"alert alert-warning",onClick:e,style:{cursor:"pointer"}},n.createElement(i.A,{size:20,style:{verticalAlign:"middle"}}),n.createElement("span",null," Laden mislukt")),n.createElement("p",null,n.createElement("button",{type:"button",className:"btn btn-primary",onClick:e,style:{minWidth:200}},n.createElement(c.A,{size:20,style:{float:"left",verticalAlign:"middle"}}),n.createElement("span",null,"Opnieuw proberen"))))};u.propTypes={onClick:a().func.isRequired};const l=u},34924:(t,e,r)=>{r.d(e,{Dq:()=>n,HB:()=>a,vn:()=>o});var n="2ttd9ts-duio3s",o="2ttd9xp-c5dnre",a="2ttd9xt-jhg82w"},64940:(t,e,r)=>{r.d(e,{A:()=>n});const n=function(t){if("string"!=typeof t)return"";switch(t){case"knitting-crochet":return"knittingCrochet";case"crochet-c2c":case"crochet-corner2corner":case"crochet-corner2corner-graphgan":return"crochetC2c";case"cross-stitch":return"crossStitch";case"pixel-macrame":return"macramePixel";case"latch-hook":return"latchHook";case"diamond-painting":return"diamondPainting";case"fuse-beads":return"fuseBeads";default:return t}}},84055:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(32200);const o=function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return a=void 0,i=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,a=e.length;o<a;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}([t,e],r,!0),u=function(t,e,r){return void 0===r&&(r="color"),function(t,e){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}(this,(function(o){return[2,(0,n.A)(t,e,r)]}))},new((c=void 0)||(c=Promise))((function(t,e){function r(t){try{o(u.next(t))}catch(t){e(t)}}function n(t){try{o(u.throw(t))}catch(t){e(t)}}function o(e){var o;e.done?t(e.value):(o=e.value,o instanceof c?o:new c((function(t){t(o)}))).then(r,n)}o((u=u.apply(a,i||[])).next())}));var a,i,c,u}},32200:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(17243),o=r(92231),a=r(89964),i=function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};const c=function(t,e,r){if(void 0===r&&(r="color"),!(0,a.A)(e))return t;6===e.length&&(e="#"+e);var c=new o.A(e),u=t.map((function(t){return i(i({},t),{colorDistance:c.deltaE2000(new o.A(t[r]))})})).filter((function(t){return t.colorDistance<=30}));return(0,n.orderBy)(u,"colorDistance")}},32620:(t,e,r)=>{r.d(e,{A:()=>n});const n=function(t){return!(!t||"string"!=typeof t||0===t.length)&&"/"===t[0]&&-1===t.indexOf(":")}},10867:(t,e,r)=>{r.d(e,{A:()=>n});const n=function(t){return t.replace(/\s\s+/g," ").trim()}},95045:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(17097),o=r(32620);const a=function(t,e){var r=(0,n.A)(t.search);return r.redirectUrl&&(0,o.A)(r.redirectUrl)?r.redirectUrl:e}},23964:(t,e,r)=>{r.d(e,{A:()=>n});const n=function(t){if(!t)return"";var e=t.match(/^(?:https?:)?(?:\/\/)?([^\/\?]+)/i);return e&&e[1]||""}},61449:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(51818),o=r(20805);var a=r(16525);const i=function(){return function(t,e){return r=void 0,i=void 0,u=function(){var r,i;return function(t,e){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}(this,(function(c){switch(c.label){case 0:if(e().products.status.brandsAvailable)return[2,e().products.brands];t((0,a.A)({brandsFetching:!0,brandsFailed:!1})),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,(0,n.A)("products/brands")];case 2:return r=c.sent(),t((u=r.brands,{type:o.jHV,payload:{brands:u}})),t((0,a.A)({brandsAvailable:!0,brandsFetching:!1,brandsFailed:!1})),[2,e().products.brand];case 3:throw i=c.sent(),t((0,a.A)({brandsAvailable:!1,brandsFetching:!1,brandsFailed:!0})),i;case 4:return[2]}var u}))},new((c=void 0)||(c=Promise))((function(t,e){function n(t){try{a(u.next(t))}catch(t){e(t)}}function o(t){try{a(u.throw(t))}catch(t){e(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof c?r:new c((function(t){t(r)}))).then(n,o)}a((u=u.apply(r,i||[])).next())}));var r,i,c,u}}},72280:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(51818),o=r(53810),a=r(20805);const i=function(t,e){return function(r,i){if(t){var c=i();e&&-1!==c.products.favoriteCategoryIds.indexOf(t)||(e||-1!==c.products.favoriteCategoryIds.indexOf(t))&&(r(function(t,e){return{type:a.gXf,broadcast:!0,payload:{productCategoryId:t,isFavorite:e}}}(t,e)),(0,o.A)(c)&&(0,n.A)("products/favoritecategory/"+t+"/"+(e?"1":"0")))}}}},82898:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).S3Y},88004:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).a1M},48204:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).joZ},1134:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).KpL},68364:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).rl7},81887:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).E_E},76388:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).RCA},46165:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).SDY},8388:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).Uj3},29690:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).Wux},10506:(t,e,r)=>{r.d(e,{A:()=>n});const n=r(94249).lB9}}]);