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,IACA,SAASkB,GACLA,EAAEC,iBACF7D,KAAKuC,eAAeC,IAAEoB,EAAEnB,eAC5B,EAAEhC,KAAKT,MAEf,EAEAuC,eAAgB,SAASuB,GACrB,IAAIC,EAAiBD,EAAQE,KAAK,uBAC9BC,EAAYH,EAAQE,KAAK,kBACzBE,EAAMJ,EAAQE,KAAK,gBACnBrC,EAAOa,IAAAA,MAAQ,CACXuB,eAAgBA,EAChBI,kBAAmBF,IAG3BzB,IAAAA,KAAO0B,EAAKvC,GAAMD,KAAK1B,KAAKoE,MAAM3D,KAAKT,MAC3C,EAEAoE,MAAO,SAAST,GACZJ,EAAYf,IAAE,oBACdxC,KAAK0D,aAAaC,IAClB9D,EAAAA,EAAAA,SAAM0D,EAAUc,IAAI,GAAI,CACpBC,MAAO,QACPC,MAAO,wBAEf,E,YC5CJC,EAAOC,QAAUC,M,YCAjBF,EAAOC,QAAUtE,E","sources":["webpack://front-end-build-system/./src/smartpak/modal.js","webpack://front-end-build-system/./src/views/blanketquiz/blanketquiz.js","webpack://front-end-build-system/./src/views/blanketquiz/index.js","webpack://front-end-build-system/./src/views/productclasspage/wishlist.js","webpack://front-end-build-system/external var \"jQuery\"","webpack://front-end-build-system/external var \"ko\""],"sourcesContent":["/* eslint-disable switch-colon-spacing */\r\n// Add modal HTML here\r\n\r\n/* prevents unit tests from blowing up */\r\nconst Dialog = window.ds && window.ds.Dialog ? window.ds.Dialog : class Noop{};\r\nclass Modal extends Dialog{\r\n constructor(content, opts){\r\n super(content, opts);\r\n }\r\n}\r\nexport default function modal(content, options) {\r\n return new Modal(content, options);\r\n}","import $ from 'jquery';\nimport ko from 'knockout';\nimport wishList from '../productclasspage/wishlist.js';\n\nfunction BlanketQuiz(obj) {\n this.questions = obj;\n this.currentQuestion = ko.observable(this.questions[0]);\n this.currentProducts = ko.observable();\n this.history = ko.observableArray();\n\n this.updateState = function (answer) {\n this.history.push(answer);\n return true;\n }.bind(this);\n\n this.updateStateFromHistory = function (answer) {\n var historyIndex;\n this.history().forEach(function (historyItem, index) {\n if (answer.response === historyItem.response) {\n historyIndex = index;\n }\n });\n this.history(this.history.slice(0, historyIndex + 1));\n return true;\n }.bind(this);\n\n this.addProductsToCurrentQuestion = function (question) {\n if (question.products) {\n var newProductIds = question.products.map(function (product) {\n return product - 10000;\n });\n smartPak.api.product.getProductClassDTOList(newProductIds).done(\n function (data) {\n if (data.length) {\n this.currentProducts(data);\n smartPak.recentlyViewedProducts.loadBvReviewStars('.quizReviewStars');\n }\n }.bind(this)\n );\n }\n }.bind(this);\n\n this.findCurrentQuestion = function (hash) {\n var question, questionMatch;\n if (hash === '') {\n question = this.questions[0];\n } else {\n questionMatch = this.questions.filter(function (question) {\n return question.name === hash;\n });\n question = questionMatch[0];\n }\n return question;\n }.bind(this);\n\n this.addToWishList = function (product, event) {\n wishList._addToWishList($(event.currentTarget));\n };\n\n $(window).on(\n 'popstate',\n function () {\n var question = this.findCurrentQuestion(window.location.hash.substr(1));\n this.currentProducts([]);\n this.currentQuestion(question);\n this.addProductsToCurrentQuestion(question);\n }.bind(this)\n );\n}\n\nexport default BlanketQuiz;\n","/* eslint-disable max-lines */\nimport BlanketQuiz from './blanketquiz.js';\n\nconst questionData = [\n {\n questionText:\n '
We\\'ll ask you up to 4 questions to find your perfect Turnout Blanket.
Let\\'s get started!

How durable and tough does your turnout need to be?',\n name: 'Start',\n answers: [\n {\n response: \"My horse goes out alone and/or doesn't roughhouse much.\",\n link: 'Alone',\n image: ''\n },\n {\n response: 'My horse goes out with other horses and likes to play.',\n link: 'Playful',\n image: ''\n },\n {\n response: 'My horse is a certified blanket shredder!',\n link: 'Shredder',\n image: ''\n }\n ],\n products: false\n },\n {\n questionText: 'What body type does your horse have?',\n name: 'Alone',\n answers: [\n {\n response: 'Standard Body Type',\n link: 'Alone_Standard',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardBody.jpg'\n },\n {\n response: 'Quarter horse or stock horse body type',\n link: 'Alone_Quarter',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StockHorse.jpg'\n }\n ],\n products: false\n },\n {\n questionText: 'How warm of a turnout does your horse need?',\n name: 'Alone_Standard',\n answers: [\n {\n response: 'Sheet/Light (0g of fill)',\n link: 'Alone_Standard_Light',\n image: ''\n },\n {\n response: 'Medium (200-250g of fill)',\n link: 'Alone_Standard_Medium',\n image: ''\n },\n {\n response: 'Heavy (300g+ of fill)',\n link: 'Alone_Standard_Heavy',\n image: ''\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Alone_Standard_Light',\n answers: false,\n products: [23788]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Alone_Standard_Medium',\n answers: [\n {\n response: 'Standard neck',\n link: 'Alone_Standard_Medium_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'Attached neck rug',\n link: 'Alone_Standard_Medium_AttachedNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Alone_Standard_Medium_StandardNeck',\n answers: false,\n products: [17374]\n },\n {\n questionText: false,\n name: 'Alone_Standard_Medium_AttachedNeck',\n answers: false,\n products: [27121]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Alone_Standard_Heavy',\n answers: [\n {\n response: 'Standard neck',\n link: 'Alone_Standard_Heavy_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'Attached neck rug',\n link: 'Alone_Standard_Heavy_AttachedNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Alone_Standard_Heavy_StandardNeck',\n answers: false,\n products: [17374]\n },\n {\n questionText: false,\n name: 'Alone_Standard_Heavy_AttachedNeck',\n answers: false,\n products: [27121]\n },\n {\n questionText: 'How warm of a turnout does your horse need?',\n name: 'Alone_Quarter',\n answers: [\n {\n response: 'Sheet/Light (0g of fill)',\n link: 'Alone_Quarter_Light',\n image: ''\n },\n {\n response: 'Medium (200-250g of fill)',\n link: 'Alone_Quarter_Medium',\n image: ''\n },\n {\n response: 'Heavy (300g+ of fill)',\n link: 'Alone_Quarter_Heavy',\n image: ''\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Alone_Quarter_Light',\n answers: false,\n products: [23798]\n },\n {\n questionText: false,\n name: 'Alone_Quarter_Medium',\n answers: false,\n products: [21359]\n },\n {\n questionText: false,\n name: 'Alone_Quarter_Heavy',\n answers: false,\n products: [21359]\n },\n {\n questionText: 'What body type does your horse have?',\n name: 'Playful',\n answers: [\n {\n response: 'Standard Body Type',\n link: 'Playful_Standard',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardBody.jpg'\n },\n {\n response: 'Quarter horse or stock horse body type',\n link: 'Playful_Quarter',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StockHorse.jpg'\n }\n ],\n products: false\n },\n {\n questionText: 'How warm of a turnout does your horse need?',\n name: 'Playful_Standard',\n answers: [\n {\n response: 'Sheet/Light (0g of fill)',\n link: 'Playful_Standard_Light',\n image: ''\n },\n {\n response: 'Medium/Light (100g of fill)',\n link: 'Playful_Standard_MediumLight',\n image: ''\n },\n {\n response: 'Medium (200-250g of fill)',\n link: 'Playful_Standard_Medium',\n image: ''\n },\n {\n response: 'Heavy (300g+ of fill)',\n link: 'Playful_Standard_Heavy',\n image: ''\n }\n ],\n products: false\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Playful_Standard_Light',\n answers: [\n {\n response: 'Standard neck',\n link: 'Playful_Standard_Light_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'High neck',\n link: 'Playful_Standard_Light_HighNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_HighNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Playful_Standard_Light_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Playful_Standard_Light_StandardNeck',\n answers: false,\n products: [23403]\n },\n {\n questionText: false,\n name: 'Playful_Standard_Light_HighNeck',\n answers: false,\n products: [23404]\n },\n {\n questionText: false,\n name: 'Playful_Standard_Light_NeckRug',\n answers: false,\n products: [23403, 17512]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Playful_Standard_MediumLight',\n answers: [\n {\n response: 'Standard neck',\n link: 'Playful_Standard_MediumLight_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Playful_Standard_MediumLight_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Playful_Standard_MediumLight_StandardNeck',\n answers: false,\n products: [17376]\n },\n {\n questionText: false,\n name: 'Playful_Standard_MediumLight_NeckRug',\n answers: false,\n products: [17376, 17512]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Playful_Standard_Medium',\n answers: [\n {\n response: 'Standard neck',\n link: 'Playful_Standard_Medium_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'High neck',\n link: 'Playful_Standard_Medium_HighNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_HighNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Playful_Standard_Medium_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Playful_Standard_Medium_StandardNeck',\n answers: false,\n products: [17376]\n },\n {\n questionText: false,\n name: 'Playful_Standard_Medium_HighNeck',\n answers: false,\n products: [17378]\n },\n {\n questionText: false,\n name: 'Playful_Standard_Medium_NeckRug',\n answers: false,\n products: [17376, 17512]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Playful_Standard_Heavy',\n answers: [\n {\n response: 'Standard neck',\n link: 'Playful_Standard_Heavy_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'High neck',\n link: 'Playful_Standard_Heavy_HighNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_HighNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Playful_Standard_Heavy_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Playful_Standard_Heavy_StandardNeck',\n answers: false,\n products: [17376]\n },\n {\n questionText: false,\n name: 'Playful_Standard_Heavy_HighNeck',\n answers: false,\n products: [17378]\n },\n {\n questionText: false,\n name: 'Playful_Standard_Heavy_NeckRug',\n answers: false,\n products: [17376, 17512]\n },\n {\n questionText: 'How warm of a turnout does your horse need?',\n name: 'Playful_Quarter',\n answers: [\n {\n response: 'Sheet/Light (0g of fill)',\n link: 'Playful_Quarter_Light',\n image: ''\n },\n {\n response: 'Medium (200-250g of fill)',\n link: 'Playful_Quarter_Medium',\n image: ''\n },\n {\n response: 'Heavy (300g+ of fill)',\n link: 'Playful_Quarter_Heavy',\n image: ''\n }\n ],\n products: false\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Playful_Quarter_Light',\n answers: [\n {\n response: 'Standard neck',\n link: 'Playful_Quarter_Light_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Playful_Quarter_Light_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Playful_Quarter_Light_StandardNeck',\n answers: false,\n products: [23797]\n },\n {\n questionText: false,\n name: 'Playful_Quarter_Light_NeckRug',\n answers: false,\n products: [23797, 21362]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Playful_Quarter_Medium',\n answers: [\n {\n response: 'Standard neck',\n link: 'Playful_Quarter_Medium_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Playful_Quarter_Medium_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Playful_Quarter_Medium_StandardNeck',\n answers: false,\n products: [21356]\n },\n {\n questionText: false,\n name: 'Playful_Quarter_Medium_NeckRug',\n answers: false,\n products: [21356, 21362]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Playful_Quarter_Heavy',\n answers: [\n {\n response: 'Standard neck',\n link: 'Playful_Quarter_Heavy_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Playful_Quarter_Heavy_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Playful_Quarter_Heavy_StandardNeck',\n answers: false,\n products: [21356]\n },\n {\n questionText: false,\n name: 'Playful_Quarter_Heavy_NeckRug',\n answers: false,\n products: [21356, 21362]\n },\n {\n questionText: 'What body type does your horse have?',\n name: 'Shredder',\n answers: [\n {\n response: 'Standard Body Type',\n link: 'Shredder_Standard',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardBody.jpg'\n },\n {\n response: 'Quarter horse or stock horse body type',\n link: 'Shredder_Quarter',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StockHorse.jpg'\n }\n ],\n products: false\n },\n {\n questionText: 'How warm of a turnout does your horse need?',\n name: 'Shredder_Standard',\n answers: [\n {\n response: 'Sheet/Light (0g of fill)',\n link: 'Shredder_Standard_Light',\n image: ''\n },\n {\n response: 'Medium/Light (150g of fill)',\n link: 'Shredder_Standard_MediumLight',\n image: ''\n },\n {\n response: 'Medium (200-250g of fill)',\n link: 'Shredder_Standard_Medium',\n image: ''\n },\n {\n response: 'Heavy (300g+ of fill)',\n link: 'Shredder_Standard_Heavy',\n image: ''\n }\n ],\n products: false\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Shredder_Standard_Light',\n answers: [\n {\n response: 'Standard neck',\n link: 'Shredder_Standard_Light_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'High neck',\n link: 'Shredder_Standard_Light_HighNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_HighNeck.jpg'\n },\n {\n response: 'Attached neck rug',\n link: 'Shredder_Standard_Light_AttachedNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_AttachedNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Shredder_Standard_Light_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Light_StandardNeck',\n answers: false,\n products: [23405, 27112]\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Light_HighNeck',\n answers: false,\n products: [23407, 27113]\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Light_AttachedNeck',\n answers: false,\n products: [24912]\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Light_NeckRug',\n answers: false,\n products: [23405, 21211]\n },\n {\n questionText: false,\n name: 'Shredder_Standard_MediumLight',\n answers: false,\n products: [27115]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Shredder_Standard_Medium',\n answers: [\n {\n response: 'Standard neck',\n link: 'Shredder_Standard_Medium_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'High neck',\n link: 'Shredder_Standard_Medium_HighNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_HighNeck.jpg'\n },\n {\n response: 'Attached neck rug',\n link: 'Shredder_Standard_Medium_AttachedNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_AttachedNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Shredder_Standard_Medium_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Medium_StandardNeck',\n answers: false,\n products: [20621, 27114]\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Medium_HighNeck',\n answers: false,\n products: [22570, 27115]\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Medium_AttachedNeck',\n answers: false,\n products: [22569]\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Medium_NeckRug',\n answers: false,\n products: [20621, 21211]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Shredder_Standard_Heavy',\n answers: [\n {\n response: 'Standard neck',\n link: 'Shredder_Standard_Heavy_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'High neck',\n link: 'Shredder_Standard_Heavy_HighNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_HighNeck.jpg'\n },\n {\n response: 'Attached neck rug',\n link: 'Shredder_Standard_Heavy_AttachedNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_AttachedNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Shredder_Standard_Heavy_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Heavy_StandardNeck',\n answers: false,\n products: [20621, 27114]\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Heavy_HighNeck',\n answers: false,\n products: [22570]\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Heavy_AttachedNeck',\n answers: false,\n products: [22569]\n },\n {\n questionText: false,\n name: 'Shredder_Standard_Heavy_NeckRug',\n answers: false,\n products: [20621, 27114, 21211]\n },\n {\n questionText: 'How warm of a turnout does your horse need?',\n name: 'Shredder_Quarter',\n answers: [\n {\n response: 'Sheet/Light (0g of fill)',\n link: 'Shredder_Quarter_Light',\n image: ''\n },\n {\n response: 'Medium (200-250g of fill)',\n link: 'Shredder_Quarter_Medium',\n image: ''\n },\n {\n response: 'Heavy (300g+ of fill)',\n link: 'Shredder_Quarter_Heavy',\n image: ''\n }\n ],\n products: false\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Shredder_Quarter_Light',\n answers: [\n {\n response: 'Standard neck',\n link: 'Shredder_Quarter_Light_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'High neck',\n link: 'Shredder_Quarter_Light_HighNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_HighNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Shredder_Quarter_Light_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Shredder_Quarter_Light_StandardNeck',\n answers: false,\n products: [23408]\n },\n {\n questionText: false,\n name: 'Shredder_Quarter_Light_HighNeck',\n answers: false,\n products: [24821]\n },\n {\n questionText: false,\n name: 'Shredder_Quarter_Light_NeckRug',\n answers: false,\n products: [23408, 21893]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Shredder_Quarter_Medium',\n answers: [\n {\n response: 'Standard neck',\n link: 'Shredder_Quarter_Medium_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'High neck',\n link: 'Shredder_Quarter_Medium_HighNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_HighNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Shredder_Quarter_Medium_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Shredder_Quarter_Medium_StandardNeck',\n answers: false,\n products: [21871]\n },\n {\n questionText: false,\n name: 'Shredder_Quarter_Medium_HighNeck',\n answers: false,\n products: [24820]\n },\n {\n questionText: false,\n name: 'Shredder_Quarter_Medium_NeckRug',\n answers: false,\n products: [21871, 21893]\n },\n {\n questionText: 'Which style neck would work best?',\n name: 'Shredder_Quarter_Heavy',\n answers: [\n {\n response: 'Standard neck',\n link: 'Shredder_Quarter_Heavy_StandardNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_StandardNeck.jpg'\n },\n {\n response: 'High neck',\n link: 'Shredder_Quarter_Heavy_HighNeck',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_HighNeck.jpg'\n },\n {\n response: 'Neck rug available (separate purchase)',\n link: 'Shredder_Quarter_Heavy_NeckRug',\n image: '/images/BlanketQuiz/091918_PLTurnoutWizard_NeckRug.jpg'\n }\n ],\n products: false\n },\n {\n questionText: false,\n name: 'Shredder_Quarter_Heavy_StandardNeck',\n answers: false,\n products: [21871]\n },\n {\n questionText: false,\n name: 'Shredder_Quarter_Heavy_HighNeck',\n answers: false,\n products: [24820]\n },\n {\n questionText: false,\n name: 'Shredder_Quarter_Heavy_NeckRug',\n answers: false,\n products: [21871, 21893]\n }\n];\n\nwindow.addEventListener('DOMContentLoaded', function() {\n ko.applyBindings(new BlanketQuiz(questionData), document.getElementById('blanketQuiz'));\n});\n","import $ from 'jquery';\r\nimport modal from '../../smartpak/modal.js';\r\n\r\nlet $wishList;\r\n\r\nconst wishList = {\r\n init: function() {\r\n this._bindUIEvents();\r\n },\r\n\r\n _loadResults: function(html) {\r\n $wishList.html(html);\r\n },\r\n\r\n _bindUIEvents: function() {\r\n $('.wishlistLink').on(\r\n 'click',\r\n 'a',\r\n function(e) {\r\n e.preventDefault();\r\n this._addToWishList($(e.currentTarget));\r\n }.bind(this)\r\n );\r\n },\r\n\r\n _addToWishList: function(element) {\r\n var productclassId = element.attr('data-productclassid'),\r\n productid = element.attr('data-productid'),\r\n url = element.attr('data-posturl'),\r\n data = $.param({\r\n productclassId: productclassId,\r\n selectedProductId: productid\r\n });\r\n\r\n $.post(url, data).done(this._show.bind(this));\r\n },\r\n\r\n _show: function(html) {\r\n $wishList = $('#wishListContent');\r\n this._loadResults(html);\r\n modal($wishList.get(0), {\r\n width: '450px',\r\n title: 'Added to My Wishlist'\r\n });\r\n }\r\n};\r\n\r\nexport default wishList;\r\n","module.exports = jQuery;","module.exports = ko;"],"names":["Modal","_Dialog","content","opts","_classCallCheck","_callSuper","_inherits","_createClass","window","ds","Dialog","Noop","modal","options","obj","this","questions","currentQuestion","ko","currentProducts","history","updateState","answer","push","bind","updateStateFromHistory","historyIndex","forEach","historyItem","index","response","slice","addProductsToCurrentQuestion","question","products","newProductIds","map","product","smartPak","api","getProductClassDTOList","done","data","length","recentlyViewedProducts","loadBvReviewStars","findCurrentQuestion","hash","questionMatch","filter","name","addToWishList","event","wishList","_addToWishList","$","currentTarget","on","location","substr","questionData","questionText","answers","link","image","addEventListener","applyBindings","BlanketQuiz","document","getElementById","$wishList","init","_bindUIEvents","_loadResults","html","e","preventDefault","element","productclassId","attr","productid","url","selectedProductId","_show","get","width","title","module","exports","jQuery"],"sourceRoot":""}