mp-design-system 1.2.17 → 1.2.18

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-design-system",
3
- "version": "1.2.17",
3
+ "version": "1.2.18",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "npm-run-all --parallel bundle:*",
@@ -18,6 +18,7 @@
18
18
 
19
19
  &:before {
20
20
  content: '';
21
+ box-shadow: 1px 1px color('white');
21
22
  @include space('height', 'gutter');
22
23
  width: 100vw;
23
24
  background: color('white');
@@ -29,6 +30,7 @@
29
30
 
30
31
  &:after {
31
32
  content: '';
33
+ box-shadow: -1px 0 color('white');
32
34
  position: absolute;
33
35
  width: 0;
34
36
  height: 0;
@@ -58,11 +58,15 @@
58
58
  --error-state: #{color('red')};
59
59
  position: relative;
60
60
 
61
+ .c-input {
62
+ width: calc(100% - (27px + var(--space-xs)));
63
+ }
64
+
61
65
  &:after {
62
66
  content: '';
63
67
  position: absolute;
64
68
  top: 2.3em;
65
- left: 100%;
69
+ right: 0;
66
70
  @include margin-left('xs');
67
71
  @include padding('xs');
68
72
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" fill="%23CE0058"/><path stroke="%23fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16.666 7.333l-9.333 9.334M7.333 7.333l9.333 9.334"/></svg>') no-repeat center;
@@ -73,9 +73,11 @@ $grid-gutter-width: 36;
73
73
  }
74
74
 
75
75
  &--of-two-switch {
76
+ gap: var(--space-s);
77
+ justify-content: space-between;
78
+
76
79
  &>* {
77
- @include margin-bottom(0);
78
- gap: var(--space-s);
80
+ @include margin(0);
79
81
  }
80
82
 
81
83
  @media (min-width: 40em) {
@@ -1,2 +0,0 @@
1
- Vue.createApp({setup(){const{ref:e,computed:t}=Vue;let o={generic:{questionText:"Question",backText:"Back",nextText:"Next",restartText:"Restart",seeResultsText:"See results",viewText:"View",getAQuoteText:"Get a quote",requestADemoText:"Request a demo"},questionOne:{labelText:"Where will your Zetasizer be used?",options:[{optionText:"Academic Research"},{optionText:"Industrial Research"},{optionText:"Pharmaceutical Research"},{optionText:"Industrial QA/QC"},{optionText:"Pharmaceutical QA/QC"}]},questionTwo:{labelText:'If you are replacing or supplementing an existing system please choose the model from below or select "not applicable"',options:[{optionText:"Zetasizer Nano S90/ZS90"},{optionText:"Zetasizer Nano ZS/ZSE"},{optionText:"Zetasizer Nano ZSP"},{optionText:"Zetasizer uV"},{optionText:"Zetasizer Ultra"},{optionText:"Zetasizer Pro"},{optionText:"Other manufacturer's system"},{optionText:"Not applicable"}]},questionThree:{labelText:"What do you want the Zetasizer to tell you about your sample? (Select as many as applicable)",options:[{optionText:"Size"},{optionText:"Zeta potential"},{optionText:"Concentration"}]},questionFour:{labelText:"If you are using your existing system in a QA/QC department is it important that the new system provides consistency of results compared to a previously used system?",options:[{optionText:"Very important"},{optionText:"Somewhat important"},{optionText:"Not important"}]},questionFive:{labelText:"Which of the following best describes your sample material?",options:[{optionText:"Slurries/Dispersions >5% solids"},{optionText:"Emulsions/Lipid Suspension"},{optionText:"Natural Polymers/Proteins >10 mg/mL"},{optionText:"Proteins/Biomolecules <10 mg/mL"},{optionText:"Environmental Samples (Aqueous)"},{optionText:"Dilute nanoparticle/colloidal systems"}]},questionSix:{labelText:"What is the expected size range of your sample?",options:[{optionText:"<100 nm"},{optionText:"<500 nm"},{optionText:">500 nm"},{optionText:"Various/Unknown"}]},questionSeven:{labelText:"Are you likely to measure samples that fluoresce in red light?",options:[{optionText:"Yes"},{optionText:"No"}]},results:{headingText:"All done.",multipleResultsLedeText:"Based on the features and specifications you selected we would recommend these products.",singleResultLedeText:"Based on the features and specifications you selected we would recommend the"}};0==window.location.pathname.lastIndexOf("/de",0)||0==window.location.pathname.lastIndexOf("/es",0)||0==window.location.pathname.lastIndexOf("/fr",0)||0==window.location.pathname.lastIndexOf("/br",0)||0==window.location.pathname.lastIndexOf("/ru",0)||0==window.location.pathname.lastIndexOf("/kr",0)||0==window.location.pathname.lastIndexOf("/jp",0)||0==window.location.pathname.lastIndexOf("/tw",0)||window.location.hostname.indexOf("malvernpanalytical.com.cn");let n=e(1);const i={questionOne:{label:o.questionOne.labelText,options:[{label:o.questionOne.options[0].optionText,value:"Academic Research",id:"One"},{label:o.questionOne.options[1].optionText,value:"Industrial Research",id:"Two"},{label:o.questionOne.options[2].optionText,value:"Pharmaceutical Research",id:"Three"},{label:o.questionOne.options[3].optionText,value:"Industrial QA/QC",id:"Four"},{label:o.questionOne.options[4].optionText,value:"Pharmaceutical QA/QC",id:"Five"}]},questionTwo:{label:o.questionTwo.labelText,options:[{label:o.questionTwo.options[0].optionText,value:"Zetasizer Nano S90/ZS90",id:"One"},{label:o.questionTwo.options[1].optionText,value:"Zetasizer Nano ZS/ZSE",id:"Two"},{label:o.questionTwo.options[2].optionText,value:"Zetasizer Nano ZSP",id:"Three"},{label:o.questionTwo.options[3].optionText,value:"Zetasizer uV",id:"Four"},{label:o.questionTwo.options[4].optionText,value:"Zetasizer Ultra",id:"Five"},{label:o.questionTwo.options[5].optionText,value:"Zetasizer Pro",id:"Six"},{label:o.questionTwo.options[6].optionText,value:"Other manufacturer's system",id:"Seven"},{label:o.questionTwo.options[7].optionText,value:"Not applicable",id:"Eight"}]},questionThree:{label:o.questionThree.labelText,options:[{label:o.questionThree.options[0].optionText,value:"Size",id:"One"},{label:o.questionThree.options[1].optionText,value:"Zeta potential",id:"Two"},{label:o.questionThree.options[2].optionText,value:"Concentration",id:"Three"}]},questionFour:{label:o.questionFour.labelText,options:[{label:o.questionFour.options[0].optionText,value:"Very important",id:"One"},{label:o.questionFour.options[1].optionText,value:"Somewhat important",id:"Two"},{label:o.questionFour.options[2].optionText,value:"Not important",id:"Three"}]},questionFive:{label:o.questionFive.labelText,options:[{label:o.questionFive.options[0].optionText,value:"Slurries/Dispersions >5% solids",id:"One"},{label:o.questionFive.options[1].optionText,value:"Emulsions/Lipid Suspension",id:"Two"},{label:o.questionFive.options[2].optionText,value:"Natural Polymers/Proteins >10 mg/mL",id:"Three"},{label:o.questionFive.options[3].optionText,value:"Proteins/Biomolecules <10 mg/mL",id:"Four"},{label:o.questionFive.options[4].optionText,value:"Environmental Samples (Aqueous)",id:"Five"},{label:o.questionFive.options[5].optionText,value:"Dilute nanoparticle/colloidal systems",id:"Six"}]},questionSix:{label:o.questionSix.labelText,options:[{label:o.questionSix.options[0].optionText,value:"<100 nm",id:"One"},{label:o.questionSix.options[1].optionText,value:"<500 nm",id:"Two"},{label:o.questionSix.options[2].optionText,value:">500 nm",id:"Three"},{label:o.questionSix.options[3].optionText,value:"Various/Unknown",id:"Four"}]},questionSeven:{label:o.questionSeven.labelText,options:[{label:o.questionSeven.options[0].optionText,value:"Yes",id:"One"},{label:o.questionSeven.options[1].optionText,value:"No",id:"Two"}]}};let s={questionOne:"",questionTwo:"",questionThree:"",questionFour:"",questionFive:"",questionSix:"",questionSeven:""},l=(e([]),e([]));const a=e(!1),u=t((()=>window.location.hostname.toString())),r=t((()=>window.location.pathname.toString()));return{translations:o,activeStep:n,questions:i,answers:s,loading:a,results:l,checkQuestionOne:function(e,t){s.questionOne&&(console.log(e),console.log(t))},checkQuestionTwo:function(e,t){s.questionTwo},checkQuestionThree:function(e,t){s.questionThree},checkQuestionFour:function(e,t){s.questionFour},checkQuestionFive:function(e,t){s.questionFive},checkQuestionSix:function(e,t){s.questionSix},checkQuestionSeven:function(e,t){s.questionSeven},previousStep:function(){1==n.value||2==n.value||3==n.value?n.value--:4==n.value?n.value-=2:5==n.value&&n.value--},restart:function(e){dataLayer.push({event:"product_finder",action:"Restart",label:e}),_paq.push(["trackEvent","Product finder","Restart",e]),n.value=0,l.value=[],s.questionOne="",s.questionTwo="",s.questionThree="",s.questionFour="",s.questionFive=""},resultTracking:function(e){dataLayer.push({event:"product_finder",action:"Result",label:e}),_paq.push(["trackEvent","Product finder","Result",e])},hostname:u,pathname:r}},template:'\n <div class="u-wrap u-margin-top-s u-margin-bottom-xl">\n \x3c!-- Question 1 --\x3e\n <div class="u-bg-petrol-step-3 u-flex u-flex-column u-align-center u-pad-xl u-flow--l" v-if="activeStep == 1">\n <p class="c-h c-h--upper c-h--step--1 u-grey-step-1 u-uppercase">{{ translations.generic.questionText }} 1</p>\n <h2 class="c-h c-h--step-3 u-petrol">{{ questions.questionOne.label }}</h2>\n <fieldset id="questionOne" class="o-grid o-grid--of-four u-wrap--content">\n <div v-for="option in questions.questionOne.options" :key="option">\n <input type="radio" class="c-radio c-radio--box" name="questionOne" :id="\'questionOne_\' + option.id" :value="option.value" v-model="answers.questionOne" />\n <label :for="\'questionOne_\' + option.id" v-html="option.label"></label>\n </div>\n </fieldset>\n <button type="button" class="mp c-button" :class="loading ? \'c-button--red loading-indicator\' : \'\'" :disabled="loading == true" @@click="checkQuestionOne(questions.questionOne.label.toString(), answers.questionOne.toString())">{{ translations.generic.nextText }}</button>\n </div>\n \x3c!-- Question 2 --\x3e\n <div class="u-bg-petrol-step-3 u-flex u-flex-column u-align-center u-pad-xl u-flow--l" v-if="activeStep == 2">\n <a class="mp c-twi u-link c-twi--left" style="align-self: flex-start" @@click="previousStep()">\n <span>{{ translations.generic.backText }}</span>\n <svg role="img" aria-hidden="true" focusable="false" class="mp c-icon c-icon--arrow-right">\n <use xlink:href="/static/svg/sprite.svg#arrow-left"></use>\n </svg>\n </a>\n <p class="c-h c-h--upper c-h--step--1 u-grey-step-1 u-uppercase u-margin-top-0">{{ translations.generic.questionText }} 2</p>\n <h2 class="c-h c-h--step-3 u-petrol">{{ questions.questionTwo.label }}</h2>\n <fieldset id="questionTwo" class="o-grid o-grid--of-two u-wrap--content">\n <div v-for="option in questions.questionTwo.options" :key="option">\n <input type="radio" class="c-radio c-radio--box" name="questionTwo" :id="\'questionTwo_\' + option.id" :value="option.value" v-model="answers.questionTwo" />\n <label :for="\'questionTwo_\' + option.id" v-html="option.label"></label>\n </div>\n </fieldset>\n <button type="button" class="mp c-button" :class="loading ? \'c-button--red loading-indicator\' : \'\'" :disabled="loading == true" @@click="checkQuestionTwo(questions.questionTwo.label.toString(), answers.questionTwo.toString())">{{ translations.generic.nextText }}</button>\n </div>\n \x3c!-- Question 3 --\x3e\n <div class="u-bg-petrol-step-3 u-flex u-flex-column u-align-center u-pad-xl u-flow--l" v-if="activeStep == 3">\n <a class="mp c-twi u-link c-twi--left" style="align-self: flex-start" @@click="previousStep()">\n <span>{{ translations.generic.backText }}</span>\n <svg role="img" aria-hidden="true" focusable="false" class="mp c-icon c-icon--arrow-right">\n <use xlink:href="/static/svg/sprite.svg#arrow-left"></use>\n </svg>\n </a>\n <p class="c-h c-h--upper c-h--step--1 u-grey-step-1 u-uppercase u-margin-top-0">{{ translations.generic.questionText }} 3</p>\n <h2 class="c-h c-h--step-3 u-petrol">{{ questions.questionThree.label }}</h2>\n <fieldset id="questionThree" class="o-grid o-grid--of-four u-wrap--content">\n <div v-for="option in questions.questionThree.options" :key="option">\n <input type="radio" class="c-radio c-radio--box" name="questionThree" :id="\'questionThree_\' + option.id" :value="option.value" v-model="answers.questionThree" :disabled="!results.some(result => result.Measurements.map(measurement => measurement.toLowerCase()).includes(option.value.toLowerCase()))" />\n <label :for="\'questionThree_\' + option.id" v-html="option.label"></label>\n </div>\n </fieldset>\n <button type="button" class="mp c-button" :class="loading ? \'c-button--red loading-indicator\' : \'\'" :disabled="loading == true" @@click="checkQuestionThree(questions.questionThree.label.toString(), answers.questionThree.toString())">{{ translations.generic.nextText }}</button>\n </div>\n \x3c!-- Question 4 --\x3e\n <div class="u-bg-petrol-step-3 u-flex u-flex-column u-align-center u-pad-xl u-flow--l" v-if="activeStep == 4">\n <a class="mp c-twi u-link c-twi--left" style="align-self: flex-start" @@click="previousStep()">\n <span>{{ translations.generic.backText }}</span>\n <svg role="img" aria-hidden="true" focusable="false" class="mp c-icon c-icon--arrow-right">\n <use xlink:href="/static/svg/sprite.svg#arrow-left"></use>\n </svg>\n </a>\n <p class="c-h c-h--upper c-h--step--1 u-grey-step-1 u-uppercase u-margin-top-0">{{ translations.generic.questionText }} 4</p>\n <h2 class="c-h c-h--step-3 u-petrol">{{ questions.questionFour.label }}</h2>\n <fieldset id="questionFour" class="o-grid o-grid--of-three u-wrap--content">\n <div v-for="option in questions.questionFour.options" :key="option">\n <input type="radio" class="c-radio c-radio--box" name="questionFour" :id="\'questionFour_\' + option.id" :value="option.value" v-model="answers.questionFour" :disabled="!results.some(result => result.SizeRanges.map(sizeRange => sizeRange.toLowerCase()).includes(option.value.toLowerCase()))" />\n <label :for="\'questionFour_\' + option.id" v-html="option.label"></label>\n </div>\n </fieldset>\n <button type="button" class="mp c-button" :class="loading ? \'c-button--red loading-indicator\' : \'\'" :disabled="loading == true" @@click="checkQuestionFour(questions.questionFour.label.toString(), answers.questionFour.toString())">{{ translations.generic.nextText }}</button>\n </div>\n \x3c!-- Question 5 --\x3e\n <div class="u-bg-petrol-step-3 u-flex u-flex-column u-align-center u-pad-xl u-flow--l" v-if="activeStep == 5">\n <a class="mp c-twi u-link c-twi--left" style="align-self: flex-start" @@click="previousStep()">\n <span>{{ translations.generic.backText }}</span>\n <svg role="img" aria-hidden="true" focusable="false" class="mp c-icon c-icon--arrow-right">\n <use xlink:href="/static/svg/sprite.svg#arrow-left"></use>\n </svg>\n </a>\n <p class="c-h c-h--upper c-h--step--1 u-grey-step-1 u-uppercase u-margin-top-0">{{ translations.generic.questionText }} 5</p>\n <h2 class="c-h c-h--step-3 u-petrol">{{ questions.questionFive.label }}</h2>\n <fieldset id="questionFive" class="o-grid o-grid--of-three u-wrap--content">\n <div v-for="option in questions.questionFive.options" :key="option">\n <input type="radio" class="c-radio c-radio--box" name="questionFive" :id="\'questionFive_\' + option.id" :value="option.value" v-model="answers.questionFive" :disabled="!results.some(result => result.Environments.map(environment => environment.toLowerCase()).includes(option.value.toLowerCase()))" />\n <label :for="\'questionFive_\' + option.id" v-html="option.label"></label>\n </div>\n </fieldset>\n <button type="button" class="mp c-button" :class="loading ? \'c-button--red loading-indicator\' : \'\'" :disabled="loading == true" @@click="checkQuestionFive(questions.questionFive.label.toString(), answers.questionFive.toString())">{{ translations.generic.seeResultsText }}</button>\n </div>\n \x3c!-- Question 6 --\x3e\n\n \x3c!-- Question 7 --\x3e\n\n\n \x3c!-- Finish --\x3e\n \x3c!-- <div class="u-bg-petrol-step-3 o-grid o-grid--layout o-grid--6/5 o-grid--push u-pad-xl u-flow--m" v-if="activeStep == 6 && results.length >= 1">\n <div class="u-flex u-flex-column u-flow--l" :class="results.length == 1 ? \'u-justify-center\' : \'\'">\n <h2 class="c-h c-h--step-3 u-petrol">{{ translations.results.headingText }}</h2>\n <div class="mp o-prose u-flow--prose">\n <p v-if="results.length > 1">{{ translations.results.multipleResultsLedeText }}</p>\n <p v-else>{{ translations.results.singleResultLedeText }} <strong>{{ results[0].Title }}</strong>.</p>\n </div>\n <div class="u-flex">\n <a class="mp c-button" :href="results.length == 1 ? \'@WebRequestContext.Localization.Path/products/request-a-quote?product=\' + results[0].ProductId : \'@WebRequestContext.Localization.Path/products/request-a-quote\'">{{ translations.generic.getAQuoteText }}</a>\n </div>\n <div>\n <a class="mp c-twi u-link c-twi--left" @@click="restart(\'Results\')">\n <span>{{ translations.generic.restartText }}</span>\n <svg width="22" height="21" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 2V8H7" stroke="#006DAF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M3.51 12.9999C4.15839 14.8403 5.38734 16.4201 7.01166 17.5013C8.63598 18.5825 10.5677 19.1065 12.5157 18.9944C14.4637 18.8823 16.3226 18.1401 17.8121 16.8797C19.3017 15.6193 20.3413 13.9089 20.7742 12.0063C21.2072 10.1037 21.0101 8.11191 20.2126 6.33105C19.4152 4.55019 18.0605 3.07674 16.3528 2.13271C14.6451 1.18868 12.6769 0.825212 10.7447 1.09707C8.81245 1.36892 7.02091 2.26137 5.64 3.63995L1 7.99995" stroke="#006DAF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>\n </a>\n </div>\n </div>\n <div class="u-margin-top-0 u-flow--s">\n <article class="mp c-card c-card--layout-multi c-card--size-large c-card--bordered c-card--has-image" v-for="result in results" :key="result">\n <div class="c-card__wrapper">\n <figure class="c-card__image u-flex u-flex-column u-justify-center" v-if="result.Img">\n <img :src="result.Img + \'?width=475\'" style="mix-blend-mode: multiply;">\n </figure>\n <div class="c-card__primary">\n <header class="c-card__header u-flow--2xs">\n <h2 class="c-h c-card__title" v-if="result.Title">{{ result.Title }}</h2>\n <h3 class="c-h c-h--tagline" v-if="result.Strapline">{{ result.Strapline }}</h3>\n </header>\n <div class="c-card__content u-flow">\n <div class="mp o-prose u-flow--prose u-step--1">\n <p v-if="result.Description">{{ result.Description }}</p>\n </div>\n <div class="c-card__specs" v-if="result.Range">\n <dl>\n <dt>{{ result.Range }}</dt>\n <dd>Particle size range</dd>\n </dl>\n </div>\n </div>\n <footer class="c-card__footer u-flow--2xs">\n <a class="mp c-twi u-link c-twi--left">\n <span>{{ translations.generic.viewText }} {{ result.Title }}</span>\n <svg role="img" aria-hidden="true" focusable="false" class="mp c-icon c-icon--arrow-right">\n <use xlink:href="/static/svg/sprite.svg#arrow-right"></use>\n </svg>\n </a>\n </footer>\n </div>\n <a class="u-fill u-fill--link" :href="(hostname.includes(\'malvernpanalytical.com.cn\') ? \'/\' : \'/\' + pathname.split(\'/\')[1] + \'/\') + result.Url.split(\'/\').slice(2).join(\'/\')" @@click="resultTracking(result.Title.toString())">{{ result.Title }}</a>\n </div>\n </article>\n </div>\n </div> --\x3e\n </div>\n '}).mount("#product-finder");
2
- //# sourceMappingURL=product-finder.js.map
@@ -1 +0,0 @@
1
- {"mappings":"AAAsBA,IAAIC,UAAU,CAClCC,QACE,MAFJC,IAEYA,EAFZC,SAEiBA,GAAaJ,IAE1B,IAAIK,EAAe,CACjBC,QAAS,CACPC,aAAc,WACdC,SAAU,OACVC,SAAU,OAC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B,cAxVlB8B,iBA6VI,SAA0BR,EAAUC,GAC9BL,EAAQjB,aA9VlB8B,mBAmWI,SAA4BT,EAAUC,GAChCL,EAAQhB,eApWlB8B,aAyWI,WAC0B,GAApBnB,EAAWG,OAEgB,GAApBH,EAAWG,OAES,GAApBH,EAAWG,MAHpBH,EAAWG,QAKkB,GAApBH,EAAWG,MACpBH,EAAWG,OAAS,EACS,GAApBH,EAAWG,OACpBH,EAAWG,SAnXnBiB,QAuXI,SAAiBC,GACfC,UAAUC,KAAK,CACbC,MAAO,iBACPC,OAAQ,UACRvB,MAAOmB,IAETK,KAAKH,KAAK,CAAC,aAAc,iBAAkB,UAAWF,IACtDrB,EAAWG,MAAQ,EACnBb,EAAQa,MAAQ,GAChBE,EAAQzB,YAAc,GACtByB,EAAQrB,YAAc,GACtBqB,EAAQpB,cAAgB,GACxBoB,EAAQnB,aAAe,GACvBmB,EAAQlB,aAAe,IApY7BwC,eAuYI,SAAwBC,GACtBN,UAAUC,KAAK,CACbC,MAAO,iBACPC,OAAQ,SACRvB,MAAO0B,IAETF,KAAKH,KAAK,CAAC,aAAc,iBAAkB,SAAUK,KA7Y3D9B,SAoaMA,EApaNF,SAqaMA,IAGJiC,SAAU,smXAsJTC,MAAM","sources":["src/assets/js/product-finder.js"],"sourcesContent":["const ProductFinder = Vue.createApp({\r\n setup() {\r\n const { ref, computed } = Vue;\r\n\r\n let translations = {\r\n generic: {\r\n questionText: \"Question\",\r\n backText: \"Back\",\r\n nextText: \"Next\",\r\n restartText: \"Restart\",\r\n seeResultsText: \"See results\",\r\n viewText: \"View\",\r\n getAQuoteText: \"Get a quote\",\r\n requestADemoText: \"Request a demo\",\r\n },\r\n questionOne: {\r\n labelText: \"Where will your Zetasizer be used?\",\r\n options: [\r\n { optionText: \"Academic Research\" },\r\n { optionText: \"Industrial Research\" },\r\n { optionText: \"Pharmaceutical Research\" },\r\n { optionText: \"Industrial QA/QC\" },\r\n { optionText: \"Pharmaceutical QA/QC\" },\r\n ],\r\n },\r\n questionTwo: {\r\n labelText: \"If you are replacing or supplementing an existing system please choose the model from below or select \\\"not applicable\\\"\",\r\n options: [\r\n { optionText: \"Zetasizer Nano S90/ZS90\" },\r\n { optionText: \"Zetasizer Nano ZS/ZSE\" },\r\n { optionText: \"Zetasizer Nano ZSP\" },\r\n { optionText: \"Zetasizer uV\" },\r\n { optionText: \"Zetasizer Ultra\" },\r\n { optionText: \"Zetasizer Pro\" },\r\n { optionText: \"Other manufacturer's system\" },\r\n { optionText: \"Not applicable\" },\r\n ],\r\n },\r\n questionThree: {\r\n labelText: \"What do you want the Zetasizer to tell you about your sample? (Select as many as applicable)\",\r\n options: [\r\n { optionText: \"Size\" },\r\n { optionText: \"Zeta potential\" },\r\n { optionText: \"Concentration\" },\r\n ],\r\n },\r\n questionFour: {\r\n labelText: \"If you are using your existing system in a QA/QC department is it important that the new system provides consistency of results compared to a previously used system?\",\r\n options: [\r\n { optionText: \"Very important\" },\r\n { optionText: \"Somewhat important\" },\r\n { optionText: \"Not important\" },\r\n ],\r\n },\r\n questionFive: {\r\n labelText: \"Which of the following best describes your sample material?\",\r\n options: [\r\n { optionText: \"Slurries/Dispersions >5% solids\" },\r\n { optionText: \"Emulsions/Lipid Suspension\" },\r\n { optionText: \"Natural Polymers/Proteins >10 mg/mL\" },\r\n { optionText: \"Proteins/Biomolecules <10 mg/mL\" },\r\n { optionText: \"Environmental Samples (Aqueous)\" },\r\n { optionText: \"Dilute nanoparticle/colloidal systems\" },\r\n ],\r\n },\r\n questionSix: {\r\n labelText: \"What is the expected size range of your sample?\",\r\n options: [\r\n { optionText: \"<100 nm\" },\r\n { optionText: \"<500 nm\" },\r\n { optionText: \">500 nm\" },\r\n { optionText: \"Various/Unknown\" },\r\n ],\r\n },\r\n questionSeven: {\r\n labelText: \"Are you likely to measure samples that fluoresce in red light?\",\r\n options: [\r\n { optionText: \"Yes\" },\r\n { optionText: \"No\" },\r\n ],\r\n },\r\n results: {\r\n headingText: \"All done.\",\r\n multipleResultsLedeText:\r\n \"Based on the features and specifications you selected we would recommend these products.\",\r\n singleResultLedeText:\r\n \"Based on the features and specifications you selected we would recommend the\",\r\n },\r\n };\r\n if (window.location.pathname.lastIndexOf(\"/de\", 0) == 0) {\r\n // German translations\r\n } else if (window.location.pathname.lastIndexOf(\"/es\", 0) == 0) {\r\n // Spanish translations\r\n } else if (window.location.pathname.lastIndexOf(\"/fr\", 0) == 0) {\r\n // French translations\r\n } else if (window.location.pathname.lastIndexOf(\"/br\", 0) == 0) {\r\n // Portugese translations\r\n } else if (window.location.pathname.lastIndexOf(\"/ru\", 0) == 0) {\r\n // Russian translations\r\n } else if (window.location.pathname.lastIndexOf(\"/kr\", 0) == 0) {\r\n // Korean translations\r\n } else if (window.location.pathname.lastIndexOf(\"/jp\", 0) == 0) {\r\n // Japanese translations\r\n } else if (window.location.pathname.lastIndexOf(\"/tw\", 0) == 0) {\r\n // Taiwanese translations\r\n } else if (window.location.hostname.indexOf(\"malvernpanalytical.com.cn\") > 0) {\r\n // Chinese translations\r\n }\r\n\r\n let activeStep = ref(1);\r\n\r\n const questions = {\r\n questionOne: {\r\n label: translations.questionOne.labelText,\r\n options: [\r\n {\r\n label: translations.questionOne.options[0].optionText,\r\n value: \"Academic Research\",\r\n id: \"One\",\r\n },\r\n {\r\n label: translations.questionOne.options[1].optionText,\r\n value: \"Industrial Research\",\r\n id: \"Two\",\r\n },\r\n {\r\n label: translations.questionOne.options[2].optionText,\r\n value: \"Pharmaceutical Research\",\r\n id: \"Three\",\r\n },\r\n {\r\n label: translations.questionOne.options[3].optionText,\r\n value: \"Industrial QA/QC\",\r\n id: \"Four\",\r\n },\r\n {\r\n label: translations.questionOne.options[4].optionText,\r\n value: \"Pharmaceutical QA/QC\",\r\n id: \"Five\",\r\n },\r\n ],\r\n },\r\n questionTwo: {\r\n label: translations.questionTwo.labelText,\r\n options: [\r\n {\r\n label: translations.questionTwo.options[0].optionText,\r\n value: \"Zetasizer Nano S90/ZS90\",\r\n id: \"One\",\r\n },\r\n {\r\n label: translations.questionTwo.options[1].optionText,\r\n value: \"Zetasizer Nano ZS/ZSE\",\r\n id: \"Two\",\r\n },\r\n {\r\n label: translations.questionTwo.options[2].optionText,\r\n value: \"Zetasizer Nano ZSP\",\r\n id: \"Three\",\r\n },\r\n {\r\n label: translations.questionTwo.options[3].optionText,\r\n value: \"Zetasizer uV\",\r\n id: \"Four\",\r\n },\r\n {\r\n label: translations.questionTwo.options[4].optionText,\r\n value: \"Zetasizer Ultra\",\r\n id: \"Five\",\r\n },\r\n {\r\n label: translations.questionTwo.options[5].optionText,\r\n value: \"Zetasizer Pro\",\r\n id: \"Six\",\r\n },\r\n {\r\n label: translations.questionTwo.options[6].optionText,\r\n value: \"Other manufacturer's system\",\r\n id: \"Seven\",\r\n },\r\n {\r\n label: translations.questionTwo.options[7].optionText,\r\n value: \"Not applicable\",\r\n id: \"Eight\",\r\n },\r\n ],\r\n },\r\n questionThree: {\r\n label: translations.questionThree.labelText,\r\n options: [\r\n {\r\n label: translations.questionThree.options[0].optionText,\r\n value: \"Size\",\r\n id: \"One\",\r\n },\r\n {\r\n label: translations.questionThree.options[1].optionText,\r\n value: \"Zeta potential\",\r\n id: \"Two\",\r\n },\r\n {\r\n label: translations.questionThree.options[2].optionText,\r\n value: \"Concentration\",\r\n id: \"Three\",\r\n },\r\n ],\r\n },\r\n questionFour: {\r\n label: translations.questionFour.labelText,\r\n options: [\r\n {\r\n label: translations.questionFour.options[0].optionText,\r\n value: \"Very important\",\r\n id: \"One\",\r\n },\r\n {\r\n label: translations.questionFour.options[1].optionText,\r\n value: \"Somewhat important\",\r\n id: \"Two\",\r\n },\r\n {\r\n label: translations.questionFour.options[2].optionText,\r\n value: \"Not important\",\r\n id: \"Three\",\r\n },\r\n ],\r\n },\r\n questionFive: {\r\n label: translations.questionFive.labelText,\r\n options: [\r\n {\r\n label: translations.questionFive.options[0].optionText,\r\n value: \"Slurries/Dispersions >5% solids\",\r\n id: \"One\",\r\n },\r\n {\r\n label: translations.questionFive.options[1].optionText,\r\n value: \"Emulsions/Lipid Suspension\",\r\n id: \"Two\",\r\n },\r\n {\r\n label: translations.questionFive.options[2].optionText,\r\n value: \"Natural Polymers/Proteins >10 mg/mL\",\r\n id: \"Three\",\r\n },\r\n {\r\n label: translations.questionFive.options[3].optionText,\r\n value: \"Proteins/Biomolecules <10 mg/mL\",\r\n id: \"Four\",\r\n },\r\n {\r\n label: translations.questionFive.options[4].optionText,\r\n value: \"Environmental Samples (Aqueous)\",\r\n id: \"Five\",\r\n },\r\n {\r\n label: translations.questionFive.options[5].optionText,\r\n value: \"Dilute nanoparticle/colloidal systems\",\r\n id: \"Six\",\r\n },\r\n ],\r\n },\r\n questionSix: {\r\n label: translations.questionSix.labelText,\r\n options: [\r\n {\r\n label: translations.questionSix.options[0].optionText,\r\n value: \"<100 nm\",\r\n id: \"One\",\r\n },\r\n {\r\n label: translations.questionSix.options[1].optionText,\r\n value: \"<500 nm\",\r\n id: \"Two\",\r\n },\r\n {\r\n label: translations.questionSix.options[2].optionText,\r\n value: \">500 nm\",\r\n id: \"Three\",\r\n },\r\n {\r\n label: translations.questionSix.options[3].optionText,\r\n value: \"Various/Unknown\",\r\n id: \"Four\",\r\n },\r\n ],\r\n },\r\n questionSeven: {\r\n label: translations.questionSeven.labelText,\r\n options: [\r\n {\r\n label: translations.questionSeven.options[0].optionText,\r\n value: \"Yes\",\r\n id: \"One\",\r\n },\r\n {\r\n label: translations.questionSeven.options[1].optionText,\r\n value: \"No\",\r\n id: \"Two\",\r\n },\r\n ],\r\n },\r\n };\r\n\r\n let answers = {\r\n questionOne: \"\",\r\n questionTwo: \"\",\r\n questionThree: \"\",\r\n questionFour: \"\",\r\n questionFive: \"\",\r\n questionSix: \"\",\r\n questionSeven: \"\",\r\n };\r\n\r\n let products = ref([]);\r\n let results = ref([]);\r\n const loading = ref(false);\r\n\r\n function checkQuestionOne(question, answer) {\r\n if (answers.questionOne) {\r\n console.log(question);\r\n console.log(answer);\r\n }\r\n }\r\n\r\n function checkQuestionTwo(question, answer) {\r\n if (answers.questionTwo) {\r\n\r\n }\r\n }\r\n\r\n function checkQuestionThree(question, answer) {\r\n if (answers.questionThree) {\r\n\r\n }\r\n }\r\n\r\n function checkQuestionFour(question, answer) {\r\n if (answers.questionFour) {\r\n\r\n }\r\n }\r\n\r\n function checkQuestionFive(question, answer) {\r\n if (answers.questionFive) {\r\n\r\n }\r\n }\r\n\r\n function checkQuestionSix(question, answer) {\r\n if (answers.questionSix) {\r\n \r\n }\r\n }\r\n\r\n function checkQuestionSeven(question, answer) {\r\n if (answers.questionSeven) {\r\n \r\n }\r\n }\r\n\r\n function previousStep() {\r\n if (activeStep.value == 1) {\r\n activeStep.value--;\r\n } else if (activeStep.value == 2) {\r\n activeStep.value--;\r\n } else if (activeStep.value == 3) {\r\n activeStep.value--;\r\n } else if (activeStep.value == 4) {\r\n activeStep.value -= 2;\r\n } else if (activeStep.value == 5) {\r\n activeStep.value--;\r\n }\r\n }\r\n\r\n function restart(resultsView) {\r\n dataLayer.push({\r\n event: \"product_finder\",\r\n action: \"Restart\",\r\n label: resultsView,\r\n });\r\n _paq.push([\"trackEvent\", \"Product finder\", \"Restart\", resultsView]);\r\n activeStep.value = 0;\r\n results.value = [];\r\n answers.questionOne = \"\";\r\n answers.questionTwo = \"\";\r\n answers.questionThree = \"\";\r\n answers.questionFour = \"\";\r\n answers.questionFive = \"\";\r\n }\r\n\r\n function resultTracking(product) {\r\n dataLayer.push({\r\n event: \"product_finder\",\r\n action: \"Result\",\r\n label: product,\r\n });\r\n _paq.push([\"trackEvent\", \"Product finder\", \"Result\", product]);\r\n }\r\n\r\n const hostname = computed(() => window.location.hostname.toString());\r\n const pathname = computed(() => window.location.pathname.toString());\r\n\r\n return {\r\n translations,\r\n activeStep,\r\n questions,\r\n answers,\r\n loading,\r\n results,\r\n checkQuestionOne,\r\n checkQuestionTwo,\r\n checkQuestionThree,\r\n checkQuestionFour,\r\n checkQuestionFive,\r\n checkQuestionSix,\r\n checkQuestionSeven,\r\n previousStep,\r\n restart,\r\n resultTracking,\r\n hostname,\r\n pathname,\r\n };\r\n },\r\n template: `\r\n <div class=\"u-wrap u-margin-top-s u-margin-bottom-xl\">\r\n <!-- Question 1 -->\r\n <div class=\"u-bg-petrol-step-3 u-flex u-flex-column u-align-center u-pad-xl u-flow--l\" v-if=\"activeStep == 1\">\r\n <p class=\"c-h c-h--upper c-h--step--1 u-grey-step-1 u-uppercase\">{{ translations.generic.questionText }} 1</p>\r\n <h2 class=\"c-h c-h--step-3 u-petrol\">{{ questions.questionOne.label }}</h2>\r\n <fieldset id=\"questionOne\" class=\"o-grid o-grid--of-four u-wrap--content\">\r\n <div v-for=\"option in questions.questionOne.options\" :key=\"option\">\r\n <input type=\"radio\" class=\"c-radio c-radio--box\" name=\"questionOne\" :id=\"'questionOne_' + option.id\" :value=\"option.value\" v-model=\"answers.questionOne\" />\r\n <label :for=\"'questionOne_' + option.id\" v-html=\"option.label\"></label>\r\n </div>\r\n </fieldset>\r\n <button type=\"button\" class=\"mp c-button\" :class=\"loading ? 'c-button--red loading-indicator' : ''\" :disabled=\"loading == true\" @@click=\"checkQuestionOne(questions.questionOne.label.toString(), answers.questionOne.toString())\">{{ translations.generic.nextText }}</button>\r\n </div>\r\n <!-- Question 2 -->\r\n <div class=\"u-bg-petrol-step-3 u-flex u-flex-column u-align-center u-pad-xl u-flow--l\" v-if=\"activeStep == 2\">\r\n <a class=\"mp c-twi u-link c-twi--left\" style=\"align-self: flex-start\" @@click=\"previousStep()\">\r\n <span>{{ translations.generic.backText }}</span>\r\n <svg role=\"img\" aria-hidden=\"true\" focusable=\"false\" class=\"mp c-icon c-icon--arrow-right\">\r\n <use xlink:href=\"/static/svg/sprite.svg#arrow-left\"></use>\r\n </svg>\r\n </a>\r\n <p class=\"c-h c-h--upper c-h--step--1 u-grey-step-1 u-uppercase u-margin-top-0\">{{ translations.generic.questionText }} 2</p>\r\n <h2 class=\"c-h c-h--step-3 u-petrol\">{{ questions.questionTwo.label }}</h2>\r\n <fieldset id=\"questionTwo\" class=\"o-grid o-grid--of-two u-wrap--content\">\r\n <div v-for=\"option in questions.questionTwo.options\" :key=\"option\">\r\n <input type=\"radio\" class=\"c-radio c-radio--box\" name=\"questionTwo\" :id=\"'questionTwo_' + option.id\" :value=\"option.value\" v-model=\"answers.questionTwo\" />\r\n <label :for=\"'questionTwo_' + option.id\" v-html=\"option.label\"></label>\r\n </div>\r\n </fieldset>\r\n <button type=\"button\" class=\"mp c-button\" :class=\"loading ? 'c-button--red loading-indicator' : ''\" :disabled=\"loading == true\" @@click=\"checkQuestionTwo(questions.questionTwo.label.toString(), answers.questionTwo.toString())\">{{ translations.generic.nextText }}</button>\r\n </div>\r\n <!-- Question 3 -->\r\n <div class=\"u-bg-petrol-step-3 u-flex u-flex-column u-align-center u-pad-xl u-flow--l\" v-if=\"activeStep == 3\">\r\n <a class=\"mp c-twi u-link c-twi--left\" style=\"align-self: flex-start\" @@click=\"previousStep()\">\r\n <span>{{ translations.generic.backText }}</span>\r\n <svg role=\"img\" aria-hidden=\"true\" focusable=\"false\" class=\"mp c-icon c-icon--arrow-right\">\r\n <use xlink:href=\"/static/svg/sprite.svg#arrow-left\"></use>\r\n </svg>\r\n </a>\r\n <p class=\"c-h c-h--upper c-h--step--1 u-grey-step-1 u-uppercase u-margin-top-0\">{{ translations.generic.questionText }} 3</p>\r\n <h2 class=\"c-h c-h--step-3 u-petrol\">{{ questions.questionThree.label }}</h2>\r\n <fieldset id=\"questionThree\" class=\"o-grid o-grid--of-four u-wrap--content\">\r\n <div v-for=\"option in questions.questionThree.options\" :key=\"option\">\r\n <input type=\"radio\" class=\"c-radio c-radio--box\" name=\"questionThree\" :id=\"'questionThree_' + option.id\" :value=\"option.value\" v-model=\"answers.questionThree\" :disabled=\"!results.some(result => result.Measurements.map(measurement => measurement.toLowerCase()).includes(option.value.toLowerCase()))\" />\r\n <label :for=\"'questionThree_' + option.id\" v-html=\"option.label\"></label>\r\n </div>\r\n </fieldset>\r\n <button type=\"button\" class=\"mp c-button\" :class=\"loading ? 'c-button--red loading-indicator' : ''\" :disabled=\"loading == true\" @@click=\"checkQuestionThree(questions.questionThree.label.toString(), answers.questionThree.toString())\">{{ translations.generic.nextText }}</button>\r\n </div>\r\n <!-- Question 4 -->\r\n <div class=\"u-bg-petrol-step-3 u-flex u-flex-column u-align-center u-pad-xl u-flow--l\" v-if=\"activeStep == 4\">\r\n <a class=\"mp c-twi u-link c-twi--left\" style=\"align-self: flex-start\" @@click=\"previousStep()\">\r\n <span>{{ translations.generic.backText }}</span>\r\n <svg role=\"img\" aria-hidden=\"true\" focusable=\"false\" class=\"mp c-icon c-icon--arrow-right\">\r\n <use xlink:href=\"/static/svg/sprite.svg#arrow-left\"></use>\r\n </svg>\r\n </a>\r\n <p class=\"c-h c-h--upper c-h--step--1 u-grey-step-1 u-uppercase u-margin-top-0\">{{ translations.generic.questionText }} 4</p>\r\n <h2 class=\"c-h c-h--step-3 u-petrol\">{{ questions.questionFour.label }}</h2>\r\n <fieldset id=\"questionFour\" class=\"o-grid o-grid--of-three u-wrap--content\">\r\n <div v-for=\"option in questions.questionFour.options\" :key=\"option\">\r\n <input type=\"radio\" class=\"c-radio c-radio--box\" name=\"questionFour\" :id=\"'questionFour_' + option.id\" :value=\"option.value\" v-model=\"answers.questionFour\" :disabled=\"!results.some(result => result.SizeRanges.map(sizeRange => sizeRange.toLowerCase()).includes(option.value.toLowerCase()))\" />\r\n <label :for=\"'questionFour_' + option.id\" v-html=\"option.label\"></label>\r\n </div>\r\n </fieldset>\r\n <button type=\"button\" class=\"mp c-button\" :class=\"loading ? 'c-button--red loading-indicator' : ''\" :disabled=\"loading == true\" @@click=\"checkQuestionFour(questions.questionFour.label.toString(), answers.questionFour.toString())\">{{ translations.generic.nextText }}</button>\r\n </div>\r\n <!-- Question 5 -->\r\n <div class=\"u-bg-petrol-step-3 u-flex u-flex-column u-align-center u-pad-xl u-flow--l\" v-if=\"activeStep == 5\">\r\n <a class=\"mp c-twi u-link c-twi--left\" style=\"align-self: flex-start\" @@click=\"previousStep()\">\r\n <span>{{ translations.generic.backText }}</span>\r\n <svg role=\"img\" aria-hidden=\"true\" focusable=\"false\" class=\"mp c-icon c-icon--arrow-right\">\r\n <use xlink:href=\"/static/svg/sprite.svg#arrow-left\"></use>\r\n </svg>\r\n </a>\r\n <p class=\"c-h c-h--upper c-h--step--1 u-grey-step-1 u-uppercase u-margin-top-0\">{{ translations.generic.questionText }} 5</p>\r\n <h2 class=\"c-h c-h--step-3 u-petrol\">{{ questions.questionFive.label }}</h2>\r\n <fieldset id=\"questionFive\" class=\"o-grid o-grid--of-three u-wrap--content\">\r\n <div v-for=\"option in questions.questionFive.options\" :key=\"option\">\r\n <input type=\"radio\" class=\"c-radio c-radio--box\" name=\"questionFive\" :id=\"'questionFive_' + option.id\" :value=\"option.value\" v-model=\"answers.questionFive\" :disabled=\"!results.some(result => result.Environments.map(environment => environment.toLowerCase()).includes(option.value.toLowerCase()))\" />\r\n <label :for=\"'questionFive_' + option.id\" v-html=\"option.label\"></label>\r\n </div>\r\n </fieldset>\r\n <button type=\"button\" class=\"mp c-button\" :class=\"loading ? 'c-button--red loading-indicator' : ''\" :disabled=\"loading == true\" @@click=\"checkQuestionFive(questions.questionFive.label.toString(), answers.questionFive.toString())\">{{ translations.generic.seeResultsText }}</button>\r\n </div>\r\n <!-- Question 6 -->\r\n\r\n <!-- Question 7 -->\r\n\r\n\r\n <!-- Finish -->\r\n <!-- <div class=\"u-bg-petrol-step-3 o-grid o-grid--layout o-grid--6/5 o-grid--push u-pad-xl u-flow--m\" v-if=\"activeStep == 6 && results.length >= 1\">\r\n <div class=\"u-flex u-flex-column u-flow--l\" :class=\"results.length == 1 ? 'u-justify-center' : ''\">\r\n <h2 class=\"c-h c-h--step-3 u-petrol\">{{ translations.results.headingText }}</h2>\r\n <div class=\"mp o-prose u-flow--prose\">\r\n <p v-if=\"results.length > 1\">{{ translations.results.multipleResultsLedeText }}</p>\r\n <p v-else>{{ translations.results.singleResultLedeText }} <strong>{{ results[0].Title }}</strong>.</p>\r\n </div>\r\n <div class=\"u-flex\">\r\n <a class=\"mp c-button\" :href=\"results.length == 1 ? '@WebRequestContext.Localization.Path/products/request-a-quote?product=' + results[0].ProductId : '@WebRequestContext.Localization.Path/products/request-a-quote'\">{{ translations.generic.getAQuoteText }}</a>\r\n </div>\r\n <div>\r\n <a class=\"mp c-twi u-link c-twi--left\" @@click=\"restart('Results')\">\r\n <span>{{ translations.generic.restartText }}</span>\r\n <svg width=\"22\" height=\"21\" viewBox=\"0 0 22 21\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 2V8H7\" stroke=\"#006DAF\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n <path d=\"M3.51 12.9999C4.15839 14.8403 5.38734 16.4201 7.01166 17.5013C8.63598 18.5825 10.5677 19.1065 12.5157 18.9944C14.4637 18.8823 16.3226 18.1401 17.8121 16.8797C19.3017 15.6193 20.3413 13.9089 20.7742 12.0063C21.2072 10.1037 21.0101 8.11191 20.2126 6.33105C19.4152 4.55019 18.0605 3.07674 16.3528 2.13271C14.6451 1.18868 12.6769 0.825212 10.7447 1.09707C8.81245 1.36892 7.02091 2.26137 5.64 3.63995L1 7.99995\" stroke=\"#006DAF\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>\r\n </a>\r\n </div>\r\n </div>\r\n <div class=\"u-margin-top-0 u-flow--s\">\r\n <article class=\"mp c-card c-card--layout-multi c-card--size-large c-card--bordered c-card--has-image\" v-for=\"result in results\" :key=\"result\">\r\n <div class=\"c-card__wrapper\">\r\n <figure class=\"c-card__image u-flex u-flex-column u-justify-center\" v-if=\"result.Img\">\r\n <img :src=\"result.Img + '?width=475'\" style=\"mix-blend-mode: multiply;\">\r\n </figure>\r\n <div class=\"c-card__primary\">\r\n <header class=\"c-card__header u-flow--2xs\">\r\n <h2 class=\"c-h c-card__title\" v-if=\"result.Title\">{{ result.Title }}</h2>\r\n <h3 class=\"c-h c-h--tagline\" v-if=\"result.Strapline\">{{ result.Strapline }}</h3>\r\n </header>\r\n <div class=\"c-card__content u-flow\">\r\n <div class=\"mp o-prose u-flow--prose u-step--1\">\r\n <p v-if=\"result.Description\">{{ result.Description }}</p>\r\n </div>\r\n <div class=\"c-card__specs\" v-if=\"result.Range\">\r\n <dl>\r\n <dt>{{ result.Range }}</dt>\r\n <dd>Particle size range</dd>\r\n </dl>\r\n </div>\r\n </div>\r\n <footer class=\"c-card__footer u-flow--2xs\">\r\n <a class=\"mp c-twi u-link c-twi--left\">\r\n <span>{{ translations.generic.viewText }} {{ result.Title }}</span>\r\n <svg role=\"img\" aria-hidden=\"true\" focusable=\"false\" class=\"mp c-icon c-icon--arrow-right\">\r\n <use xlink:href=\"/static/svg/sprite.svg#arrow-right\"></use>\r\n </svg>\r\n </a>\r\n </footer>\r\n </div>\r\n <a class=\"u-fill u-fill--link\" :href=\"(hostname.includes('malvernpanalytical.com.cn') ? '/' : '/' + pathname.split('/')[1] + '/') + result.Url.split('/').slice(2).join('/')\" @@click=\"resultTracking(result.Title.toString())\">{{ result.Title }}</a>\r\n </div>\r\n </article>\r\n </div>\r\n </div> -->\r\n </div>\r\n `,\r\n}).mount(\"#product-finder\");\r\n"],"names":["Vue","createApp","setup","ref","computed","translations","generic","questionText","backText","nextText","restartText","seeResultsText","viewText","getAQuoteText","requestADemoText","questionOne","labelText","options","optionText","questionTwo","questionThree","questionFour","questionFive","questionSix","questionSeven","results","headingText","multipleResultsLedeText","singleResultLedeText","window","location","pathname","lastIndexOf","hostname","indexOf","activeStep","questions","label","value","id","answers","loading","toString","checkQuestionOne","question","answer","console","log","checkQuestionTwo","checkQuestionThree","checkQuestionFour","checkQuestionFive","checkQuestionSix","checkQuestionSeven","previousStep","restart","resultsView","dataLayer","push","event","action","_paq","resultTracking","product","template","mount"],"version":3,"file":"product-finder.js.map"}