(this["webpackJsonpknix-sizefinder-shopify"]=this["webpackJsonpknix-sizefinder-shopify"]||[]).push([[0],Array(18).concat([function(e,t,o){},,,function(e,t,o){e.exports=o.p+"static/media/back.6ee16067.svg"},function(e,t,o){e.exports=o.p+"static/media/close.26159890.svg"},function(e,t,o){e.exports=o.p+"static/media/caret-left.c1aed67e.svg"},function(e,t,o){e.exports=o.p+"static/media/caret-right.8b3ffe4b.svg"},function(e,t,o){e.exports=o.p+"static/media/try-kt.15cb8053.jpg"},function(e,t,o){e.exports=o.p+"static/media/extender.87ead014.jpg"},function(e,t,o){e.exports=o.p+"static/media/tight.222c3fda.svg"},function(e,t,o){e.exports=o.p+"static/media/comfortable.cd7f446a.svg"},function(e,t,o){e.exports=o.p+"static/media/loose.6a7fb807.svg"},function(e,t,o){e.exports=o.p+"static/media/gapping.be311ab9.svg"},function(e,t,o){e.exports=o.p+"static/media/spilling.9903343c.svg"},function(e,t,o){e.exports=o.p+"static/media/comfortable2.c934cbf2.svg"},,,function(e,t,o){e.exports=o(54)},,,,,function(e,t,o){},function(e,t,o){e.exports=o.p+"static/media/padded-v-neck.ddada797.jpg"},function(e,t,o){e.exports=o.p+"static/media/evolution-bra.8b6f6c22.jpg"},function(e,t,o){e.exports=o.p+"static/media/wingwoman.2f0b7574.jpg"},function(e,t,o){e.exports=o.p+"static/media/luxelift.f01c4248.jpg"},function(e,t,o){e.exports=o.p+"static/media/catalyst.c504d6e8.jpg"},function(e,t,o){e.exports=o.p+"static/media/longevity.d359137f.jpg"},function(e,t,o){e.exports=o.p+"static/media/leakproofnursing.251f074f.jpg"},function(e,t,o){e.exports=o.p+"static/media/other.ce1a5b8a.jpg"},,,,,,function(e,t,o){"use strict";o.r(t);var a=o(0),n=o.n(a),l=o(20),i=o.n(l),r=(o(40),o(18),o(33)),s=o(1),c=o(12),m=o(7),u=o(8),f=o(10),h=o(9),g=function(e){Object(f.a)(o,e);var t=Object(h.a)(o);function o(){return Object(m.a)(this,o),t.apply(this,arguments)}return Object(u.a)(o,[{key:"render",value:function(){return n.a.createElement("button",{onClick:this.props.onClick,"data-flavor":this.props.flavor,className:"cButton ".concat(this.props.className)},this.props.children)}}]),o}(n.a.Component),C=o(21),b=o.n(C),L=o(22),d=o.n(L),p=function(e){var t=e.onNext,o=e.onPrev,a=e.requireSelection,l=void 0!==a&&a,i=e.selection,r=e.type,s=void 0===r?"default":r,c=e.children,m=e.index,u=void 0===m?null:m,f=e.total,h=void 0===f?null:f;return n.a.createElement("div",{className:"cPanel","data-type":s},n.a.createElement("div",{className:"cPanel-close"},n.a.createElement("a",{href:"/pages/returns-and-exchanges","aria-label":"Close",className:"cPanel-closeBtn"},n.a.createElement("img",{src:d.a,alt:""}))),u>0&&u<7&&n.a.createElement("div",{className:"cPanel-progress",style:{opacity:null!==u&&null!==h?"1":"0"}},n.a.createElement("span",{style:{width:null!==u&&null!==h?"".concat(u/h*100,"%"):"0"}})),n.a.createElement("div",{className:"cPanel-inner"},c),o&&t&&n.a.createElement("div",{className:"cPanel-actions"},o&&n.a.createElement(g,{className:"cButton--back",flavor:"link",onClick:o||function(){}},n.a.createElement("img",{alt:"",src:b.a}),n.a.createElement("span",null,"Back")),t&&n.a.createElement(g,{onClick:function(){!i&&l||t&&t(i)},flavor:"dark"},"Next")))},S=function(e){var t=e.config,o=e.onAction;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"cPanel-image",style:{backgroundImage:"url(".concat(t.image,")")}}),n.a.createElement("div",{className:"cPanel-content"},n.a.createElement("h1",{className:"cPanel-title"},t.title),n.a.createElement("div",{className:"cPanel-text"},t.text),n.a.createElement(g,{flavor:"dark",onClick:function(){return o&&o("forward")}},t.cta),n.a.createElement("a",{href:t.cta2_link,rel:"noopener noreferer"},n.a.createElement(g,{flavor:"dark"},t.cta2)),n.a.createElement("div",{className:"cPanel-text-disclaimer"},t.text2,n.a.createElement("span",{onClick:function(){return o&&o("forward")}},"Click Here"))))},T=o(23),X=o.n(T),E=o(24),y=o.n(E),v=function(e){var t=e.config,o=e.onSelection,l=e.selection,i=Object(a.useState)({selection:l,index:0,selectedIndex:null}),r=Object(c.a)(i,2),s=r[0],m=r[1];return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"cPanel-title"},t.title),n.a.createElement("div",{className:"cPanel-carousel cCarousel"},n.a.createElement("button",{onClick:function(){m(Object.assign({},s,{index:s.index-1}))},type:"button",className:"cCarousel-nav cCarousel-nav--prev ".concat(0===s.index?"disabled":""),"aria-label":"Previous"},n.a.createElement("img",{src:X.a,alt:""})),n.a.createElement("button",{onClick:function(){m(Object.assign({},s,{index:s.index+1}))},type:"button",className:"cCarousel-nav cCarousel-nav--next ".concat(s.index>=t.products.length-4?"disabled":""),"aria-label":"Previous"},n.a.createElement("img",{src:y.a,alt:""})),t.products.map((function(e,t){return n.a.createElement("button",{type:"button",key:"btn-".concat(t),onClick:function(){m(Object.assign({},s,{selection:e})),o&&o(e,t)},className:"cCarousel-item ".concat(s.selection&&s.selection.title===e.title&&"selected"),style:{marginLeft:"".concat(0===t?-25*s.index:0,"%")}},n.a.createElement("div",{className:"cCarousel-itemInner"},n.a.createElement("div",{className:"cCarousel-itemImage",style:{backgroundImage:"url(".concat(e.image,")")}}),n.a.createElement("div",{className:"cCarousel-itemTitle"},n.a.createElement("span",null,e.title))))}))))},x=function(e){var t=e.config,o=e.selection,a=e.onSelection;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"cPanel-title"},t.title),n.a.createElement("div",{className:"cPanel-choices"},t.options.map((function(e,t){return n.a.createElement("button",{onClick:function(){return a(e)},type:"button",key:"choice-".concat(t),className:"cPanel-choice ".concat(o===e&&"selected")},n.a.createElement("span",null,e))}))))},k=function(e){var t=e.config,o=e.onSelection,l=e.selection,i=Object(a.useState)({selection:l,index:0}),r=Object(c.a)(i,2),s=r[0],m=r[1];return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"cPanel-title"},t.title),n.a.createElement("div",{className:"cPanel-carousel cCarousel cCarousel--centered"},t.options.map((function(e,t){return n.a.createElement("button",{type:"button",key:"btn-".concat(t),onClick:function(){m(Object.assign({},s,{selection:e&&e.title?e.title:e})),o&&(console.log(e&&e.title?e.title:e),o(e&&e.title?e.title:e,t))},className:"cCarousel-item ".concat((l===e||e&&e.title&&l===e.title)&&"selected")},n.a.createElement("div",{className:"cCarousel-itemInner"},n.a.createElement("div",{className:"cCarousel-itemTitle"},e&&e.image&&n.a.createElement("img",{src:e.image,alt:e&&e.title}),n.a.createElement("span",null,e&&e.title?e.title:e))))}))))},N={"1-8":[["1","Tight","Tight","2"],["1","Loose","Tight","KT"],["1","Comfortable","Tight","4"],["1","Tight","Loose","KT"],["1","Loose","Loose","KT"],["1","Comfortable","Loose","KT"],["1","Tight","Comfortable","2"],["1","Loose","Comfortable","KT"],["1","Comfortable","Comfortable","Stay"],["2","Tight","Tight","3"],["2","Loose","Tight","4"],["2","Comfortable","Tight","4"],["2","Tight","Loose","Stay"],["2","Loose","Loose","1"],["2","Comfortable","Loose","1"],["2","Tight","Comfortable","3"],["2","Loose","Comfortable","1"],["2","Comfortable","Comfortable","Stay"],["3","Tight","Tight","5"],["3","Loose","Tight","6"],["3","Comfortable","Tight","Stay"],["3","Tight","Loose","Band Extender"],["3","Loose","Loose","2"],["3","Comfortable","Loose","2"],["3","Tight","Comfortable","Band Extender"],["3","Loose","Comfortable","4"],["3","Comfortable","Comfortable","Stay"],["4","Tight","Tight","5"],["4","Loose","Tight","6"],["4","Comfortable","Tight","6"],["4","Tight","Loose","2"],["4","Loose","Loose","2"],["4","Comfortable","Loose","1"],["4","Tight","Comfortable","3"],["4","Loose","Comfortable","Stay"],["4","Comfortable","Comfortable","Stay"],["5","Tight","Tight","8"],["5","Loose","Tight","7"],["5","Comfortable","Tight","8"],["5","Tight","Loose","Stay"],["5","Loose","Loose","3"],["5","Comfortable","Loose","3"],["5","Tight","Comfortable","Band Extender"],["5","Loose","Comfortable","3"],["5","Comfortable","Comfortable","Stay"],["6","Tight","Tight","7"],["6","Loose","Tight","Stay"],["6","Comfortable","Tight","Stay"],["6","Tight","Loose","3"],["6","Loose","Loose","4"],["6","Comfortable","Loose","4"],["6","Tight","Comfortable","7"],["6","Loose","Comfortable","Stay"],["6","Comfortable","Comfortable","Stay"],["7","Tight","Tight","8"],["7","Loose","Tight","Stay"],["7","Comfortable","Tight","Stay"],["7","Tight","Loose","5"],["7","Loose","Loose","6"],["7","Comfortable","Loose","3"],["7","Tight","Comfortable","Band Extender"],["7","Loose","Comfortable","Stay"],["7","Comfortable","Comfortable","Stay"],["8","Tight","Tight","Stay"],["8","Loose","Tight","Stay"],["8","Comfortable","Tight","Stay"],["8","Tight","Loose","5"],["8","Loose","Loose","5"],["8","Comfortable","Loose","5"],["8","Tight","Comfortable","Stay"],["8","Loose","Comfortable","Stay"],["8","Comfortable","Comfortable","Stay"]],"1-8+":[["1","Tight","Tight","2"],["1","Loose","Tight","KT"],["1","Comfortable","Tight","4"],["1","Tight","Loose","KT"],["1","Loose","Loose","KT"],["1","Comfortable","Loose","KT"],["1","Tight","Comfortable","2"],["1","Loose","Comfortable","KT"],["1","Comfortable","Comfortable","Stay"],["2","Tight","Tight","3"],["2","Loose","Tight","4"],["2","Comfortable","Tight","4"],["2","Tight","Loose","Stay"],["2","Loose","Loose","1"],["2","Comfortable","Loose","1"],["2","Tight","Comfortable","3"],["2","Loose","Comfortable","1"],["2","Comfortable","Comfortable","Stay"],["3","Tight","Tight","5"],["3","Loose","Tight","6"],["3","Comfortable","Tight","Stay"],["3","Tight","Loose","Band Extender"],["3","Loose","Loose","2"],["3","Comfortable","Loose","2"],["3","Tight","Comfortable","Band Extender"],["3","Loose","Comfortable","4"],["3","Comfortable","Comfortable","Stay"],["4","Tight","Tight","5"],["4","Loose","Tight","6"],["4","Comfortable","Tight","6"],["4","Tight","Loose","2"],["4","Loose","Loose","2"],["4","Comfortable","Loose","1"],["4","Tight","Comfortable","3"],["4","Loose","Comfortable","Stay"],["4","Comfortable","Comfortable","Stay"],["5","Tight","Tight","8"],["5","Loose","Tight","7"],["5","Comfortable","Tight","8"],["5","Tight","Loose","Stay"],["5","Loose","Loose","3"],["5","Comfortable","Loose","3"],["5","Tight","Comfortable","Band Extender"],["5","Loose","Comfortable","3"],["5","Comfortable","Comfortable","Stay"],["6","Tight","Tight","7"],["6","Loose","Tight","6+"],["6","Comfortable","Tight","6+"],["6","Tight","Loose","3"],["6","Loose","Loose","4"],["6","Comfortable","Loose","4"],["6","Tight","Comfortable","7"],["6","Loose","Comfortable","Stay"],["6","Comfortable","Comfortable","Stay"],["7","Tight","Tight","8"],["7","Loose","Tight","7+"],["7","Comfortable","Tight","7+"],["7","Tight","Loose","5"],["7","Loose","Loose","6"],["7","Comfortable","Loose","3"],["7","Tight","Comfortable","Band Extender"],["7","Loose","Comfortable","6+"],["7","Comfortable","Comfortable","Stay"],["8","Tight","Tight","8+"],["8","Loose","Tight","7+"],["8","Comfortable","Tight","8+"],["8","Tight","Loose","5"],["8","Loose","Loose","5"],["8","Comfortable","Loose","5"],["8","Tight","Comfortable","Stay"],["8","Loose","Comfortable","7+"],["8","Comfortable","Comfortable","Stay"],["6+","Tight","Tight","7+"],["6+","Loose","Tight","Stay"],["6+","Comfortable","Tight","7+"],["6+","Tight","Loose","5"],["6+","Loose","Loose","4"],["6+","Comfortable","Loose","6"],["6+","Tight","Comfortable","7"],["6+","Loose","Comfortable","Stay"],["6+","Comfortable","Comfortable","Stay"],["7+","Tight","Tight","8+"],["7+","Loose","Tight","6+"],["7+","Comfortable","Tight","Band Extender"],["7+","Tight","Loose","8"],["7+","Loose","Loose","6+"],["7+","Comfortable","Loose","7"],["7+","Tight","Comfortable","8+"],["7+","Loose","Comfortable","6+"],["7+","Comfortable","Comfortable","Stay"],["8+","Tight","Tight","N/A"],["8+","Loose","Tight","8"],["8+","Comfortable","Tight","Stay"],["8+","Tight","Loose","8"],["8+","Loose","Loose","7"],["8+","Comfortable","Loose","8"],["8+","Tight","Comfortable","Stay"],["8+","Loose","Comfortable","Stay"],["8+","Comfortable","Comfortable","Stay"]],"S-XXL":[["S","Tight","Tight","M"],["S","Loose","Tight","Stay"],["S","Comfortable","Tight","M"],["S","Tight","Loose","Stay"],["S","Loose","Loose","KT"],["S","Comfortable","Loose","Stay"],["S","Tight","Comfortable","M"],["S","Loose","Comfortable","Stay"],["S","Comfortable","Comfortable","Stay"],["M","Tight","Tight","L"],["M","Loose","Tight","Stay"],["M","Comfortable","Tight","L"],["M","Tight","Loose","Stay"],["M","Loose","Loose","S"],["M","Comfortable","Loose","Stay"],["M","Tight","Comfortable","L"],["M","Loose","Comfortable","S"],["M","Comfortable","Comfortable","Stay"],["L","Tight","Tight","XL"],["L","Loose","Tight","Stay"],["L","Comfortable","Tight","Stay"],["L","Tight","Loose","Stay"],["L","Loose","Loose","M"],["L","Comfortable","Loose","Stay"],["L","Tight","Comfortable","Stay"],["L","Loose","Comfortable","M"],["L","Comfortable","Comfortable","Stay"],["XL","Tight","Tight","XXL"],["XL","Loose","Tight","L"],["XL","Comfortable","Tight","Stay"],["XL","Tight","Loose","XXL"],["XL","Loose","Loose","L"],["XL","Comfortable","Loose","L"],["XL","Tight","Comfortable","XXL"],["XL","Loose","Comfortable","Stay"],["XL","Comfortable","Comfortable","Stay"],["XXL","Tight","Tight","Stay"],["XXL","Loose","Tight","Stay"],["XXL","Comfortable","Tight","Stay"],["XXL","Tight","Loose","Stay"],["XXL","Loose","Loose","XL"],["XXL","Comfortable","Loose","XL"],["XXL","Tight","Comfortable","Stay"],["XXL","Loose","Comfortable","XL"],["XXL","Comfortable","Comfortable","Stay"]],"XS-XXXL+":[["XS","Tight","Tight","S+"],["XS","Loose","Tight","Stay"],["XS","Comfortable","Tight","XS+"],["XS","Tight","Loose","Stay"],["XS","Loose","Loose","Stay"],["XS","Comfortable","Loose","Stay"],["XS","Tight","Comfortable","S"],["XS","Loose","Comfortable","Stay"],["XS","Comfortable","Comfortable","Stay"],["XS+","Tight","Tight","S+"],["XS+","Loose","Tight","Stay"],["XS+","Comfortable","Tight","Stay"],["XS+","Tight","Loose","S"],["XS+","Loose","Loose","XS"],["XS+","Comfortable","Loose","XS"],["XS+","Tight","Comfortable","S+"],["XS+","Loose","Comfortable","Stay"],["XS+","Comfortable","Comfortable","Stay"],["S","Tight","Tight","M+"],["S","Loose","Tight","XS+"],["S","Comfortable","Tight","S+"],["S","Tight","Loose","M"],["S","Loose","Loose","XS"],["S","Comfortable","Loose","Stay"],["S","Tight","Comfortable","M"],["S","Loose","Comfortable","XS"],["S","Comfortable","Comfortable","Stay"],["S+","Tight","Tight","M+"],["S+","Loose","Tight","XS+"],["S+","Comfortable","Tight","Stay"],["S+","Tight","Loose","M"],["S+","Loose","Loose","XS"],["S+","Comfortable","Loose","S"],["S+","Tight","Comfortable","M+"],["S+","Loose","Comfortable","XS+"],["S+","Comfortable","Comfortable","Stay"],["M","Tight","Tight","L+"],["M","Loose","Tight","S+"],["M","Comfortable","Tight","M+"],["M","Tight","Loose","L"],["M","Loose","Loose","S"],["M","Comfortable","Loose","Stay"],["M","Tight","Comfortable","L"],["M","Loose","Comfortable","S"],["M","Comfortable","Comfortable","Stay"],["M+","Tight","Tight","L+"],["M+","Loose","Tight","S+"],["M+","Comfortable","Tight","Stay"],["M+","Tight","Loose","L"],["M+","Loose","Loose","S"],["M+","Comfortable","Loose","M"],["M+","Tight","Comfortable","L+"],["M+","Loose","Comfortable","S+"],["M+","Comfortable","Comfortable","Stay"],["L","Tight","Tight","XL+"],["L","Loose","Tight","M+"],["L","Comfortable","Tight","L+"],["L","Tight","Loose","XL"],["L","Loose","Loose","M"],["L","Comfortable","Loose","Stay"],["L","Tight","Comfortable","XL"],["L","Loose","Comfortable","M"],["L","Comfortable","Comfortable","Stay"],["L+","Tight","Tight","XL+"],["L+","Loose","Tight","M+"],["L+","Comfortable","Tight","Stay"],["L+","Tight","Loose","XL"],["L+","Loose","Loose","M"],["L+","Comfortable","Loose","L"],["L+","Tight","Comfortable","XL+"],["L+","Loose","Comfortable","M+"],["L+","Comfortable","Comfortable","Stay"],["XL","Tight","Tight","XXL+"],["XL","Loose","Tight","L+"],["XL","Comfortable","Tight","XL+"],["XL","Tight","Loose","XXL"],["XL","Loose","Loose","L"],["XL","Comfortable","Loose","XL"],["XL","Tight","Comfortable","XXL"],["XL","Loose","Comfortable","L"],["XL","Comfortable","Comfortable","Stay"],["XL+","Tight","Tight","XXL+"],["XL+","Loose","Tight","L+"],["XL+","Comfortable","Tight","Stay"],["XL+","Tight","Loose","XXL"],["XL+","Loose","Loose","L"],["XL+","Comfortable","Loose","XL"],["XL+","Tight","Comfortable","XXL+"],["XL+","Loose","Comfortable","L+"],["XL+","Comfortable","Comfortable","Stay"],["XXL","Tight","Tight","XXXL+"],["XXL","Loose","Tight","XL+"],["XXL","Comfortable","Tight","XXL+"],["XXL","Tight","Loose","XXXL"],["XXL","Loose","Loose","XL"],["XXL","Comfortable","Loose","Stay"],["XXL","Tight","Comfortable","XXXL"],["XXL","Loose","Comfortable","XL"],["XXL","Comfortable","Comfortable","Stay"],["XXL+","Tight","Tight","XXXL+"],["XXL+","Loose","Tight","XL+"],["XXL+","Comfortable","Tight","Stay"],["XXL+","Tight","Loose","XXXL"],["XXL+","Loose","Loose","XL"],["XXL+","Comfortable","Loose","XXL"],["XXL+","Tight","Comfortable","XXXL+"],["XXL+","Loose","Comfortable","XL+"],["XXL+","Comfortable","Comfortable","Stay"],["XXXL","Tight","Tight","XXXL+"],["XXXL","Loose","Tight","XXL+"],["XXXL","Comfortable","Tight","XXXL+"],["XXXL","Tight","Loose","Stay"],["XXXL","Loose","Loose","XXL"],["XXXL","Comfortable","Loose","Stay"],["XXXL","Tight","Comfortable","Stay"],["XXXL","Loose","Comfortable","XXL"],["XXXL","Comfortable","Comfortable","Stay"],["XXXL+","Tight","Tight","Stay"],["XXXL+","Loose","Tight","Stay"],["XXXL+","Comfortable","Tight","Stay"],["XXXL+","Tight","Loose","XXXL"],["XXXL+","Loose","Loose","XXL"],["XXXL+","Comfortable","Loose","XXXL"],["XXXL+","Tight","Comfortable","Stay"],["XXXL+","Loose","Comfortable","XXL+"],["XXXL+","Comfortable","Comfortable","Stay"]]};Object.keys(N).forEach((function(e){N[e]=N[e].map((function(e){var t=[].concat(e);return t[2]="Tight"===t[2]?"Spilling":"Loose"===t[2]?"Gapping":t[2],t}))}));var w=function(e,t){return(N&&N[e]||[]).filter((function(e){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]})).map((function(e){return e[e.length-1]})).find((function(e){return!0}))},D=o(25),z=o.n(D),P=o(26),F=o.n(P),M=-1!=="".concat(window.location).indexOf("knix.ca"),j=function(e){var t=e.config,o=(e.onSelection,e.selection,w(t.type,t.selection)),a={value:n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"cPanel-title"},t.texts.value.title),n.a.createElement("div",{className:"cPanel-result"},n.a.createElement("span",null,o)),n.a.createElement("div",{className:"cPanel-buttons"},n.a.createElement("a",{href:"https://returns.knix".concat(M?".ca":".com","/#/"),rel:"noopener noreferer",className:"cButton","data-flavor":"dark"},"Begin Exchange")),n.a.createElement("div",{className:"cPanel-smallText"},n.a.createElement("p",null,"This number not looking right? Check out our ",n.a.createElement("a",{href:"/pages/size",rel:"noopener noreferer"},"size chart")," for reference."),n.a.createElement("p",null,n.a.createElement("button",{className:"link",onClick:t.reset},"Start Quiz Over")),n.a.createElement("p",null,n.a.createElement("button",{className:"link",onClick:function(){document.querySelector(".kustomer-app-icon").click()}},"Chat Live with a Fit Expert")))),KT:n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"cPanel-title"},t.texts.kt.title),n.a.createElement("img",{className:"cPanel-resultImage",src:z.a,alt:"Try Knixteen"}),t.texts.kt.text.split("\n\n").map((function(e,t){return n.a.createElement("p",{key:t},e.split("\n").map((function(e,t){return n.a.createElement(n.a.Fragment,{key:t},t>0&&n.a.createElement("br",null),e)})))})),n.a.createElement("div",{className:"cPanel-buttons"},n.a.createElement("a",{href:"https://knixteen.".concat(M?"ca":"com","/"),rel:"noopener noreferer",className:"cButton","data-flavor":"dark"},"Visit Knixteen"),n.a.createElement("a",{href:"https://returns.knix".concat(M?".ca":".com","/#/"),rel:"noopener noreferer",className:"cButton","data-flavor":"dark"},"Begin Exchange")),n.a.createElement("div",{className:"cPanel-smallText"},n.a.createElement("p",null,"This number not looking right? Check out our ",n.a.createElement("a",{href:"/pages/size",rel:"noopener noreferer"},"size chart")," for reference."),n.a.createElement("p",null,n.a.createElement("button",{className:"link",onClick:t.reset},"Start Quiz Over")),n.a.createElement("p",null,n.a.createElement("button",{className:"link",onClick:function(){document.querySelector(".kustomer-app-icon").click()}},"Chat Live with a Fit Expert")))),"N/A":n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"cPanel-title"},"Sorry, we don't have a better size for you."),n.a.createElement("div",{className:"cPanel-smallText"},n.a.createElement("p",null,"This number not looking right? Check out our ",n.a.createElement("a",{href:"/pages/size",rel:"noopener noreferer"},"size chart")," for reference."),n.a.createElement("p",null,n.a.createElement("button",{className:"link",onClick:t.reset},"Start Quiz Over")),n.a.createElement("p",null,n.a.createElement("button",{className:"link",onClick:function(){document.querySelector(".kustomer-app-icon").click()}},"Chat Live with a Fit Expert"))),n.a.createElement("div",{className:"cPanel-blogPost"},n.a.createElement("a",{href:t.blogPost.url,className:"cBlogPost"},n.a.createElement("strong",null,t.blogPost.title),n.a.createElement("img",{alt:t.blogPost.title,src:t.blogPost.image})))),"Band Extender":n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"cPanel-title cPanel-title--extender"},t.texts["Band Extender"].title),n.a.createElement("img",{className:"cPanel-resultImage cPanel-resultImage--extender",src:F.a,alt:"Try a Band Extender"}),t.texts["Band Extender"].text.split("\n\n").map((function(e,t){return n.a.createElement("p",{key:t},e.split("\n").map((function(e,t){return n.a.createElement(n.a.Fragment,{key:t},t>0&&n.a.createElement("br",null),e)})))})),n.a.createElement("div",{className:"cPanel-buttons"},n.a.createElement("a",{href:"mailto:info@knix.com?subject=Band%20Extender%20Request",rel:"noopener noreferer",className:"cButton","data-flavor":"dark"},"Request Extender"),n.a.createElement("a",{href:"https://returns.knix".concat(M?".ca":".com","/#/"),rel:"noopener noreferer",className:"cButton","data-flavor":"dark"},"Begin Exchange")),n.a.createElement("div",{className:"cPanel-smallText"},n.a.createElement("p",null,"This number not looking right? Check out our ",n.a.createElement("a",{href:"/pages/size",rel:"noopener noreferer"},"size chart")," for reference."),n.a.createElement("p",null,n.a.createElement("button",{className:"link",onClick:t.reset},"Start Quiz Over")),n.a.createElement("p",null,n.a.createElement("button",{className:"link",onClick:function(){document.querySelector(".kustomer-app-icon").click()}},"Chat Live with a Fit Expert")))),Stay:n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"cPanel-title"},t.texts.Stay.title),t.texts.Stay.text.split("\n\n").map((function(e,t){return n.a.createElement("p",{key:t},e.split("\n").map((function(e,t){return n.a.createElement(n.a.Fragment,{key:t},t>0&&n.a.createElement("br",null),e)})))})),n.a.createElement("div",{className:"cPanel-smallText"},n.a.createElement("p",null,"Please contact our ",n.a.createElement("a",{href:"/pages/contact"},"Customer Empowerment")," team if you have any questions."),n.a.createElement("p",{className:"has-multiple-buttons"},n.a.createElement("button",{className:"link",onClick:t.reset},"Start Quiz Over")," ",n.a.createElement("button",{className:"link",onClick:function(){window.open("https://knixvirtualfittings.as.me/schedule.php","_blank")}},"Try a Virtual Fit Session"))),n.a.createElement("div",{className:"cPanel-blogPost"},n.a.createElement("a",{href:t.blogPost.url,className:"cBlogPost"},n.a.createElement("strong",null,t.blogPost.title),n.a.createElement("img",{alt:t.blogPost.title,src:t.blogPost.image}))))};return n.a.createElement(n.a.Fragment,null,o&&a[o]||o&&a.value||a.Stay)},O=function(e){var t=e.config;e.onSelection,e.selection;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"cPanel-title"},n.a.createElement("img",{src:t.image,alt:""}),t.title),n.a.createElement("div",{className:"cPanel-text"},t.text))},A=o(27),B=o.n(A),q=o(28),K=o.n(q),I=o(29),Q=o.n(I),G=o(30),_=o.n(G),W=o(31),$=o.n(W),H=o(32),V=o.n(H),J=(o(41),o(42),o(43),o(44),o(45),o(46),o(47),o(48),function(e){var t=e.config,o=window.sizefinderConfig||{},l=Object.assign({},o,t),i=function(){var e=Object.assign({},u,{currentSlide:Math.min(u.currentSlide+1,h.length-1)});2===u.currentSlide&&"Style"===u.exchangeType||1===u.currentSlide&&u.product&&"N/A"===u.product.sizeType?window.location="".concat(window.location).indexOf("knix.ca")>=0?"https://returns.knix.ca/#/":"https://returns.knix.com/#/":f(e)},r=function(){f(Object.assign({},u,{currentSlide:Math.max(u.currentSlide-1,0)}))},s=Object(a.useState)({currentSlide:0,product:null,exchangeType:null,purchasedSize:null,bandFit:null,cupFit:null,recommendation:null}),m=Object(c.a)(s,2),u=m[0],f=m[1],h=[{component:S,props:{type:"welcome",onAction:function(){f(Object.assign({},u,{currentSlide:u.currentSlide+1}))},config:{title:l.welcome.title,text:l.welcome.text&&n.a.createElement(n.a.Fragment,null,l.welcome.text.split("\n").map((function(e,t){return n.a.createElement("div",{key:t},e)}))),text2:"Have multiple items including a bra? ",cta:"Bras",cta2:"Everything Else",cta2_link:"".concat(window.location).indexOf("knix.ca")>=0?"https://returns.knix.ca/#/":"https://returns.knix.com/#/",image:l.welcome.image}}},{component:v,props:{onNext:i,onPrev:r,requireSelection:!0,onSelection:function(e){f(Object.assign({},u,{product:e}))},selection:u.product,config:l.productSelection}},{component:k,props:{selection:u.exchangeType,requireSelection:!0,onNext:i,onPrev:r,onSelection:function(e){f(Object.assign({},u,{exchangeType:e}))},config:{options:["Style","Size","Style & Size"],title:l.type.title||""}}},{component:x,props:{selection:u.purchasedSize,requireSelection:!0,onNext:i,onPrev:r,onSelection:function(e){f(Object.assign({},u,{purchasedSize:e}))},config:{options:u.product&&u.product.sizeType&&{"1-8":["1","2","3","4","5","6","7","8"],"1-8+":["1","2","3","4","5","6","6+","7","7+","8","8+"],"S-XXL":["S","M","L","XL","XXL"],"XS-XXXL+":["XS","XS+","S","S+","M","M+","L","L+","XL","XL+","XXL","XXL+","XXXL","XXXL+"]}[u.product.sizeType]||[],title:l.size.title||""}}},{component:O,props:{type:"video",requireSelection:!1,onNext:i,onPrev:r,config:{title:l.video.title||"",image:"data:image/svg+xml;charset=utf-8,%3C%21--%20Generator%3A%20Adobe%20Illustrator%2024.0.1%2C%20SVG%20Export%20Plug-In%20%20--%3E%0D%0A%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%22100px%22%0D%0A%09%20height%3D%22100px%22%20viewBox%3D%220%200%20100%20100%22%20style%3D%22enable-background%3Anew%200%200%20100%20100%3B%22%20xml%3Aspace%3D%22preserve%22%3E%0D%0A%3Cstyle%20type%3D%22text%2Fcss%22%3E%0D%0A%09.st0%7Bfill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3B%7D%0D%0A%3C%2Fstyle%3E%0D%0A%3Cdefs%3E%0D%0A%3C%2Fdefs%3E%0D%0A%3Cg%3E%0D%0A%09%3Cg%3E%0D%0A%09%09%3Cpath%20d%3D%22M50%2C3.55c25.61%2C0%2C46.45%2C20.84%2C46.45%2C46.45S75.61%2C96.45%2C50%2C96.45S3.55%2C75.61%2C3.55%2C50S24.39%2C3.55%2C50%2C3.55%20M50%2C0%0D%0A%09%09%09C22.39%2C0%2C0%2C22.39%2C0%2C50s22.39%2C50%2C50%2C50c27.61%2C0%2C50-22.39%2C50-50S77.61%2C0%2C50%2C0L50%2C0z%22%2F%3E%0D%0A%09%09%3Cpolygon%20class%3D%22st0%22%20points%3D%2250%2C13.4%2051.81%2C17.06%2055.85%2C17.65%2052.92%2C20.5%2053.61%2C24.52%2050%2C22.62%2046.39%2C24.52%2047.08%2C20.5%20%0D%0A%09%09%0944.15%2C17.65%2048.19%2C17.06%20%09%09%22%2F%3E%0D%0A%09%09%3Cpolygon%20class%3D%22st0%22%20points%3D%2250%2C75.48%2051.81%2C79.14%2055.85%2C79.73%2052.92%2C82.58%2053.61%2C86.6%2050%2C84.7%2046.39%2C86.6%2047.08%2C82.58%20%0D%0A%09%09%0944.15%2C79.73%2048.19%2C79.14%20%09%09%22%2F%3E%0D%0A%09%09%3Cg%3E%0D%0A%09%09%09%3Cpath%20d%3D%22M26.48%2C56.35l3.06-0.34c0.17%2C4.21%2C2.93%2C6.75%2C7.26%2C6.75c4.38%2C0%2C6.67-2.17%2C6.67-6.2c0-3.7-2.42-5.86-6.92-5.86h-1.87v-2.59%0D%0A%09%09%09%09h1.62c4.08%2C0%2C6.16-2.08%2C6.16-5.44c0-3.4-2.21-5.44-6.03-5.44c-4.12%2C0-6.5%2C2.51-6.5%2C7.05l-2.97-0.59c0-5.65%2C3.65-9.09%2C9.65-9.09%0D%0A%09%09%09%09c5.69%2C0%2C9.01%2C2.93%2C9.01%2C7.78c0%2C3.44-2.13%2C6.08-5.52%2C6.8c4.12%2C0.6%2C6.54%2C3.1%2C6.54%2C7.31c0%2C5.65-3.78%2C8.92-9.9%2C8.92%0D%0A%09%09%09%09C30.65%2C65.4%2C26.65%2C61.88%2C26.48%2C56.35z%22%2F%3E%0D%0A%09%09%09%3Cpath%20d%3D%22M51.13%2C49.98c0-9.43%2C3.91-15.38%2C11.22-15.38s11.18%2C5.95%2C11.18%2C15.43c0%2C9.43-3.87%2C15.38-11.18%2C15.38%0D%0A%09%09%09%09C54.99%2C65.4%2C51.13%2C59.45%2C51.13%2C49.98z%20M70.41%2C50.02c0-7.86-2.72-12.79-8.07-12.79s-8.07%2C4.88-8.07%2C12.75%0D%0A%09%09%09%09c0%2C7.9%2C2.72%2C12.79%2C8.07%2C12.79S70.41%2C57.88%2C70.41%2C50.02z%22%2F%3E%0D%0A%09%09%3C%2Fg%3E%0D%0A%09%3C%2Fg%3E%0D%0A%3C%2Fg%3E%0D%0A%3C%2Fsvg%3E",text:l.video.text||"",videoTitle:l.type.videoTitle||"",video:l.type.video||""}}},{component:k,props:{selection:u.bandFit,requireSelection:!0,onNext:i,onPrev:r,onSelection:function(e){f(Object.assign({},u,{bandFit:e}))},config:{options:[{image:B.a,title:"Tight"},{image:Q.a,title:"Loose"},{image:K.a,title:"Comfortable"}],title:l.band.title||""}}},{component:k,props:{selection:u.cupFit,requireSelection:!0,onNext:i,onPrev:r,onSelection:function(e){f(Object.assign({},u,{cupFit:e}))},config:{options:[{image:_.a,title:"Gapping"},{image:$.a,title:"Spilling"},{image:V.a,title:"Comfortable"}],title:l.cup.title||""}}},{component:j,props:{type:"result",config:{type:u.product&&u.product.sizeType,selection:[u.purchasedSize,u.bandFit,u.cupFit],reset:function(){f(Object.assign({},u,{currentSlide:0}))},texts:l.result,blogPost:l.blogPost||{title:"Learn More About How Our Bras Fit",image:"https://cdn.shopify.com/s/files/1/0660/0355/articles/perfitfit_2048x2048.png?v=1565215401",url:"https://knix.com/blogs/knix-blog/the-perfect-bra-fit"}}}}],g=h[u.currentSlide],C=g.props;return n.a.createElement("div",{className:"cQuiz","data-index":"".concat(u.currentSlide)},n.a.createElement("div",{className:"cQuiz-progress"},n.a.createElement("div",{className:"cQuiz-progressInner",style:{width:"".concat(u.currentSlide/h.length*100,"%")}})),n.a.createElement(p,Object.assign({index:u.currentSlide<7&&u.currentSlide>0&&u.currentSlide||null,total:7},C),n.a.createElement(g.component,C)))}),R=o(6),Y=function(){},U=function(e){Object(f.a)(o,e);var t=Object(h.a)(o);function o(e){var a;return Object(m.a)(this,o),(a=t.call(this,e)).state={loaded:!1},a}return Object(u.a)(o,[{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){e.setState({loaded:!0})}),100)}},{key:"render",value:function(){var e={cancellable:!0,cancelText:"Cancel",nextable:!0,nextText:"Next",onSubmit:Y,onCancel:Y,active:!0},t=Object.assign({},e,this.props);return n.a.createElement("div",{className:"cSlide ".concat(this.state.loaded?"loaded":""," ").concat(t.className||"")},n.a.createElement("div",{className:"cSlide-content"},t.title?n.a.createElement("div",{className:"cSlide-title"},t.title):null,t.subtitle?n.a.createElement("div",{className:"cSlide-subtitle"},t.subtitle):null,t.text?n.a.createElement("div",{className:"cSlide-text"},t.text):null,this.props.children?n.a.createElement("div",{className:"cSlide-children"},this.props.children):null,t.cancellable||t.nextable||t.sizeNotAvailable?n.a.createElement("div",{className:"cSlide-buttons"},t.nextable?n.a.createElement(g,{flavor:"primary",onClick:t.onSubmit,className:t.active?"":"disabled"},t.nextText):null,t.cancellable?n.a.createElement(g,{flavor:"link",onClick:t.onCancel},t.cancelText):null,t.sizeNotAvailable?n.a.createElement(g,{onClick:t.onClick,className:"cSlide-info"},this.props.sizeNotAvailable):null):null))}}]),o}(n.a.Component),Z=function(e){Object(f.a)(o,e);var t=Object(h.a)(o);function o(e){var a;return Object(m.a)(this,o),(a=t.call(this,e)).state={active:!a.props.questions||!a.props.questions.length,answers:Array(a.props.questions.length).fill(null)},a.handleSubmit=a.handleSubmit.bind(Object(R.a)(a)),a}return Object(u.a)(o,[{key:"answerQuestion",value:function(e,t){var o=this.state.answers;o[e]=t;var a=!0;o.forEach((function(e){a=a&&e})),this.setState({answers:o,active:a})}},{key:"handleSubmit",value:function(e){var t=this;this.props.onSubmit&&(e.data=e.data?e.data:{},e.data.values=this.props.questions.map((function(e,o){return{key:e&&e.key?e.key:e.title,value:t.state.answers[o]}})),this.props.onSubmit(e))}},{key:"render",value:function(){var e=this;return n.a.createElement(U,Object.assign({active:this.state.active,className:"cSlide--multiple-choices ".concat(this.props.className||"")},this.props,{onSubmit:function(t){return e.handleSubmit(t)}}),this.props.questions.map((function(t,o){return n.a.createElement("div",{className:"cSlideQuestion",key:o},n.a.createElement("div",{className:"cSlideQuestion-title"},t.title),n.a.createElement("div",{className:"cSlideQuestion-answers"},t.values.map((function(t,a){return n.a.createElement("button",{className:"cSlideQuestion-answer ".concat(e.state.answers[o]===t?"active":""),key:a,onClick:function(){e.answerQuestion(o,t)}},n.a.createElement("span",null,t))}))))})))}}]),o}(n.a.Component),ee={"32A":"1","32B":"1","32C":"2","32D":"4","32DD":"6","32E":"6","32F":"6+","32G":"6+","34A":"1","34B":"2","34C":"4","34D":"4","34DD":"6","34E":"6","34F":"6+","34G":"6+","36A":"2","36B":"3","36C":"3","36D":"5","36DD":"7","36E":"7","36F":"7+","36G":"7+","38B":"3","38C":"5","38D":"5","38DD":"7","38E":"7","38F":"7+","38G":"7+","40C":"5","40D":"8","40DD":"8","40E":"8","40F":"8+","40G":"8+","42D":"8","42DD":"8","42E":"8","42F":"8+","42G":"8+"},te={getSize:function(e,t){var o="".concat(e).concat(t);return ee&&ee[o]?ee[o]:null}},oe=function(e){Object(f.a)(o,e);var t=Object(h.a)(o);function o(e){var a;return Object(m.a)(this,o),(a=t.call(this,e)).setupSlides(),a.state={subscribed:!1,selectedSizes:{cup:null,band:null},currentSlide:0},a.handleCancel=a.handleCancel.bind(Object(R.a)(a)),a.handleSubmit=a.handleSubmit.bind(Object(R.a)(a)),a.handleNextSlide=a.handleNextSlide.bind(Object(R.a)(a)),a.handleEmailSubmit=a.handleEmailSubmit.bind(Object(R.a)(a)),a}return Object(u.a)(o,[{key:"handleSubmit",value:function(e){var t=e&&e.data&&e.data.values?e.data.values:[],o={},a=this.state.currentSlide>=this.slides.length-1?this.slides.length-1:this.state.currentSlide+1;t.forEach((function(e){o[e.key]=e.value})),this.setState({selectedSizes:o,currentSlide:a})}},{key:"handleNextSlide",value:function(){var e=this.state.currentSlide>=this.slides.length-1?this.slides.length-1:this.state.currentSlide+1;this.setState({currentSlide:e,selectedSizes:{cup:null,band:null}})}},{key:"handleCancel",value:function(){var e=this.state.currentSlide<=0?0:this.state.currentSlide-1;this.setState({currentSlide:e})}},{key:"reset",value:function(){this.setState({email:"",currentSlide:0,subscribed:!1}),this.resetTimer&&clearTimeout(this.resetTimer)}},{key:"setupSlides",value:function(){var e=this;this.slides=[],this.slides.push(n.a.createElement(U,{title:"Let's find your Knix bra size",text:"New to Knix? Our bra sizing works a little differently",className:"cSlide--intro",cancellable:!1,nextText:"Start",onSubmit:function(){e.setState({currentSlide:e.state.currentSlide+1})}})),this.slides.push(n.a.createElement(Z,{subtitle:"What size is your best-fitting bra?",cancellable:!1,sizeNotAvailable:["If you don't see your band and/or cup size here, we are working on a size for you. ",n.a.createElement("span",null,"Click here")," to sign up for our emails to stay up to date!"],questions:[{title:"Band",key:"band",values:[32,34,36,38,40,42]},{title:"Cup Size",key:"cup",values:["A","B","C","D","DD","DDD/E","F","G"]}],onSubmit:function(t){return e.handleSubmit(t)},onCancel:function(){return e.handleCancel()},onClick:function(){return e.handleNextSlide()}})),this.slides.push(n.a.createElement(U,null))}},{key:"handleEmailSubmit",value:function(){var e=this,t=te.getSize(this.state.selectedSizes.band,this.state.selectedSizes.cup);this.setState({subscribed:!0}),this.resetTimer=setTimeout((function(){e.reset()}),15e3),window&&window._learnq&&(window._learnq.push(["identify",{$email:this.state.email,isFromNordstromIpad:!0,cupSize:this.state.selectedSizes.cup||"??",bandSize:this.state.selectedSizes.band||"??",ipadDeterminedSize:t,$source:"Partnership",$campaign:"Nordstrom",$medium:"iPad App"}]),window._learnq.push(["track","Completed iPad Fit Quiz",{answers:this.state.selectedSizes,result:t}]))}},{key:"render",value:function(){var e=this,t=te.getSize(this.state.selectedSizes.band,this.state.selectedSizes.cup),o=n.a.createElement(U,{active:!!this.state.email&&this.state.email.indexOf("@")>0,className:"cSlide--result",title:t?"You're a size ".concat(t,"!"):"We don't yet have a Knix size for you",text:t?"Sign up for our email to be the first to find out about new colours, launches and products!":"Sign up for our email to be the first to find out when new products and sizes launch.",cancelText:"Back",nextText:"Subscribe",onSubmit:function(){return e.handleEmailSubmit()},onCancel:function(){e.reset()}},n.a.createElement("input",{type:"email",placeholder:"jane.doe.smith@gmail.com",autoComplete:"off",className:"cSlide-email",onKeyUp:function(t){return 13===t.keyCode&&e.handleEmailSubmit()}||!0,onChange:function(t){e.setState({email:t.currentTarget.value})}})),a=n.a.createElement(U,{title:"You're subscribed!",text:"We'll notify you when we have some new and exciting stuff launching!",cancelText:"Back to the quiz",cancellable:!0,nextable:!1,onCancel:function(){e.reset()}});return n.a.createElement("div",{className:"App"},this.state.currentSlide===this.slides.length-1?this.state.subscribed?a:o:this.slides[this.state.currentSlide])}}]),o}(n.a.Component);function ae(){return n.a.createElement(r.a,null,n.a.createElement(s.c,null,n.a.createElement(s.a,{path:"/:shopifyPrefix/:shopifyPath/app/quiz"},n.a.createElement(J,null)),n.a.createElement(s.a,{path:"/quiz"},n.a.createElement(J,{config:window&&window.sizefinderConfig||{}})),n.a.createElement(s.a,{path:"/"},n.a.createElement(oe,null))))}Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));i.a.render(n.a.createElement(ae,null),document.getElementById("sizefinder-root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))}]),[[35,1,2]]]); //# sourceMappingURL=main.b6e2f994.chunk.js.map