diff --git a/index.html b/index.html index df99d10..eea3080 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -reproschema-ui
\ No newline at end of file +reproschema-ui
\ No newline at end of file diff --git a/js/app.07abbee2.js b/js/app.07abbee2.js new file mode 100644 index 0000000..e20689f --- /dev/null +++ b/js/app.07abbee2.js @@ -0,0 +1,2 @@ +(function(){var t={737:function(t){t.exports={githubSrc:"https://raw.githubusercontent.com/ReproNim/demo-protocol/master/DemoProtocol/DemoProtocol_schema",startButton:{en:"Join",es:"Participar"},assetsPublicPath:"/reproschema-ui/",backendServer:null,consent:!0,showHelp:!0,contact:"voice_survey@mit.edu",emailSubject:"Help with Covid19 study"}},8271:function(t,e,s){"use strict";var i=s(5471),a=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"app"}},[t.bannerMessage||t.showTimer?e("nav",{staticClass:"navbar sticky-top navbar-custom"},[t.bannerMessage?e("b-navbar-nav",{staticClass:"navbar-brand"},[e("b-nav-text",[t._v(t._s(t.$t("banner-message")))])],1):t._e(),t.showTimer?e("div",{staticClass:"timer",attrs:{id:"timer"}},[e("Timer",{attrs:{starttime:"Dec 23, 2020 02:37:25",endtime:t.expiryTime,trans:'{\n "day":"Day",\n "hours":"Hours",\n "minutes":"Minutes",\n "seconds":"Seconds",\n "expired":"Please contact the researchers for a new submission link.",\n "running":"Remaining...",\n "upcoming":"Till start of study."\n }'}})],1):t._e()],1):t._e(),e("div",{staticClass:"wrapper"},[e("nav",{ref:"sidebar",attrs:{id:"sidebar"}},[e("div",{staticClass:"sidebar-header"},[e("h4",[t._v(t._s(t.sidebarHeader))])]),e("div",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.selected_language,expression:"selected_language"}],on:{change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selected_language=e.target.multiple?s:s[0]},function(e){return t.setLang(e)}]}},[e("option",{attrs:{disabled:"",value:""}},[t._v("Select Language")]),t._l(t.languageOptions,(function(s){return e("option",{key:s.text,domProps:{value:s.value}},[t._v(" "+t._s(s.text)+" ")])}))],2)]),e("ul",{staticClass:"list-unstyled components"},t._l(t.schemaOrder,(function(s,i){return e("li",{key:i,class:{current:i===parseInt(t.activityIndex)}},[t.visibility[i]?e("a",{class:{current:i===parseInt(t.activityIndex)},on:{click:function(e){return t.setActivity(i)}}},[t.isProtocolUrl?e("circleProgress",{attrs:{radius:20,progress:t.progress[i],stroke:4,strokeColor:"#007bff"}}):t._e(),e("span",{staticClass:"align-middle activityItem"},[t._v(" "+t._s(t.getDisplayName(s))+" ")])],1):t._e()])})),0),e("div",[t.allowExport?e("b-button",{staticClass:"align-middle",attrs:{disabled:!t.isAnswered},on:{click:t.downloadZipData}},[t._v(t._s(t.$t("export-button")))]):t._e()],1)]),e("div",{attrs:{id:"content"}},[e("nav",{staticClass:"navbar navbar-expand-lg navbar-light bg-light"},[e("div",{staticClass:"container-fluid"},[e("b-navbar-nav",[e("button",{staticClass:"btn",attrs:{type:"button",id:"sidebarCollapse"},on:{click:t.toggleSidebar}},[e("span",{staticClass:"navbar-toggler-icon"})])]),e("b-navbar-nav",{staticClass:"float-right"},[t.showHelp?e("a",{staticClass:"nav-link",attrs:{href:"#","data-email":t.getEmailData}},[t._v(t._s(t.$t("help-button")))]):t._e(),e("b-nav-item",{attrs:{to:{name:"Landing",query:t.$route.query},exact:""}},[t._v(t._s(t.$t("home-button")))])],1)],1)]),e("b-container",[e("b-modal",{ref:"invalid-token-modal",attrs:{"ok-only":"",title:"Access denied!","no-close-on-esc":"","no-close-on-backdrop":"","hide-header-close":"","hide-footer":"","header-class":"justify-content-center"},model:{value:t.invalidToken,callback:function(e){t.invalidToken=e},expression:"invalidToken"}},[e("img",{attrs:{src:t.accessDeniedPath,alt:"HTTP 403 Forbidden",width:"100%"}}),e("br"),e("br"),e("p",{staticClass:"contact"},[t._v("Please contact us at "),e("a",{attrs:{href:t.contact,target:"_blank"}},[t._v(t._s(t.contact))])])]),e("router-view",{attrs:{reprotermsUrl:t.reprotermsUrl,srcUrl:t.srcUrl,responses:t.responses[t.activityIndex],selected_language:t.selected_language,ipAddress:t.clientIp,participantID:t.getPId,progress:t.progress[t.activityIndex],autoAdvance:t.checkAdvance,actVisibility:Object.values(t.visibility),nextActivity:t.nextActivity},on:{updateProgress:t.updateProgress,saveResponse:t.saveResponse,saveScores:t.saveScores,clearResponses:t.clearResponses}})],1)],1),e("b-modal",{ref:"my-modal",attrs:{size:"lg","hide-footer":"",title:"Uh-oh! Voice input needs fixing."},model:{value:t.hasError,callback:function(e){t.hasError=e},expression:"hasError"}},[t.notIOS?e("div",[e("p",[t._v(t._s(t.$t("permission-change-notification")))]),e("br"),e("img",{attrs:{src:t.permissionDemoPath,alt:"allow media permission",width:"100%"}}),e("br"),e("p",[t._v(t._s(t.$t("permission-refresh")))])]):e("div",[e("p",[t._v(t._s(t.$t("safari-notification")))])])])],1)])},r=[],n=(s(4114),s(4979),s(8292)),o=s(1250),l=s(6880),c=s.n(l),h=s(5093),u=s.n(h),p=s(2543),d=s.n(p),m=s(1710),g=s.n(m),v=s(4526),b=s(2438),y=s.n(b),f=s(4213),w=(s(9313),function(){var t=this,e=t._self._c;return e("svg",{attrs:{height:2*t.radius,width:2*t.radius}},[e("circle",{attrs:{stroke:"lightgray","stroke-width":t.stroke,fill:"transparent",r:t.normalizedRadius,cx:t.radius,cy:t.radius}}),e("circle",{style:{strokeDashoffset:t.strokeDashoffset},attrs:{stroke:t.strokeColor,"stroke-dasharray":t.circumference+" "+t.circumference,"stroke-width":t.stroke,fill:"transparent",r:t.normalizedRadius,cx:t.radius,cy:t.radius}})])}),_=[],x={props:{radius:Number,progress:Number,stroke:Number,strokeColor:String},data(){const t=this.radius-2*this.stroke,e=2*t*Math.PI;return{normalizedRadius:t,circumference:e}},computed:{strokeDashoffset(){return this.circumference-this.progress/100*this.circumference}}},k=x,$=s(1656),S=(0,$.A)(k,w,_,!1,null,null,null),C=S.exports,A=function(){var t=this,e=t._self._c;return e("div",["expired"!==t.statusType?e("div",[e("div",{staticClass:"day"},[e("span",{staticClass:"number"},[t._v(t._s(t.days))]),e("div",{staticClass:"format"},[t._v(t._s(t.wordString.day))])]),e("div",{staticClass:"hour"},[e("span",{staticClass:"number"},[t._v(t._s(t.hours))]),e("div",{staticClass:"format"},[t._v(t._s(t.wordString.hours))])]),e("div",{staticClass:"min"},[e("span",{staticClass:"number"},[t._v(t._s(t.minutes))]),e("div",{staticClass:"format"},[t._v(t._s(t.wordString.minutes))])]),e("div",{staticClass:"sec"},[e("span",{staticClass:"number"},[t._v(t._s(t.seconds))]),e("div",{staticClass:"format"},[t._v(t._s(t.wordString.seconds))])])]):t._e(),e("div",{staticClass:"message",class:t.statusType},[t._v(t._s(t.message))])])},I=[],P=s(737),j=s.n(P),D={name:"Timer",props:["starttime","endtime","trans"],data(){return{timer:"",wordString:{},start:"",end:"",interval:"",days:"",minutes:"",hours:"",seconds:"",message:"",statusType:""}},created:function(){this.wordString=JSON.parse(this.trans)},mounted(){this.start=new Date(this.starttime).getTime(),this.end=new Date(this.endtime).getTime(),this.timerCount(this.start,this.end),this.interval=setInterval((()=>{this.timerCount(this.start,this.end)}),1e3)},computed:{timeoutMessage(){return this.$t("timeout-message")}},methods:{timerCount(t,e){var s=(new Date).getTime(),i=t-s,a=e-s;if(i<0&&a<0)return this.message=`${this.timeoutMessage} ${j().contact}`,this.statusType="expired",void clearInterval(this.interval);i<0&&a>0?(this.calcTime(a),this.message=this.wordString.running,this.statusType="running"):i>0&&a>0&&(console.log(84),this.calcTime(i),this.message=this.wordString.upcoming,this.statusType="upcoming")},calcTime:function(t){this.days=Math.floor(t/864e5),this.hours=Math.floor(t%864e5/36e5),this.minutes=Math.floor(t%36e5/6e4),this.seconds=Math.floor(t%6e4/1e3)}}},O=D,R=(0,$.A)(O,A,I,!1,null,"e52dacec",null),T=R.exports,U=s(4765);function M(){const t=s(5432),e={};return t.keys().forEach((s=>{const i=s.match(/([A-Za-z0-9-_]+)\./i);if(i&&i.length>1){const a=i[1];j().startButton instanceof Object?t(s)["join-button"]=j().startButton[a]:t(s)["join-button"]=j().startButton,j().banner instanceof Object?t(s)["banner-message"]=j().banner[a]:t(s)["banner-message"]=j().banner,e[a]=t(s)}})),e}i["default"].use(U.A);var L=new U.A({locale:"en",fallbackLocale:"en",messages:M()});i["default"].use(n.Ay$),i["default"].filter("reverse",(t=>t.slice().reverse()));const N=s(8651);function E(t){const e=t.split("/"),s=e.length,i=e[s-1].split(".")[0];return i}class q{constructor(t="[data-email]"){this.selector=t,this.initialize()}mailto(t){window.location.href=`mailto:${atob(t)}`}bindEvents(){document.querySelectorAll(this.selector).forEach((t=>{t.addEventListener("click",(()=>{this.mailto(t.getAttribute("data-email"))}))}))}initialize(){this.bindEvents()}}var V={name:"App",components:{circleProgress:C,Timer:T},data(){return{sidebarActive:!0,selected_language:"",sidebarHeader:"",visibility:{},displayNames:{},labelMap:{},langMap:{},cache:{},isAnswered:!1,clientIp:"",reproterms2:"",protocolUrl:j().githubSrc,content:{},startButton:j().startButton,showHelp:j().showHelp,bannerMessage:j().banner,contact:j().contact,audioConstraints:{audio:!0,video:!1},hasError:!1,browserType:"",clientSpecs:{},invalidToken:!1}},methods:{initialize(t){this.mediaRecorder=new N(t)},error(){this.hasError=!0,this.supported=!1},checkPermission(){void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=t=>{const e=navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return e?new Promise(((s,i)=>{e.call(navigator,t,s,i)})):(this.supported=!1,Promise.reject(new Error("getUserMedia is not implemented in this browser")))}),navigator.mediaDevices.getUserMedia?(this.supported=!0,navigator.mediaDevices.getUserMedia(this.audioConstraints).then(this.initialize,this.error)):this.supported=!1},setLang(t){L.locale=t.target.value},toggleSidebar(){this.$refs.sidebar.className.indexOf("active")<0?this.$refs.sidebar.className="active":this.$refs.sidebar.className=""},getVariableName(t,e){const s=e,i={};return d().map(s,(t=>{const e=t["http://schema.repronim.org/isAbout"][0]["@id"],s=t["http://schema.repronim.org/variableName"][0]["@value"];i[e]=s})),i[t]},setActivity(t){!this.checkDisableBack&&this.isProtocolUrl&&(this.$route.query.url?this.$router.push(`/activities/${t}?url=${this.$route.query.url}`):this.$router.push(`/activities/${t}`))},updateProgress(t){this.checkProgressDiff(this.progress[this.activityIndex],t),this.$store.dispatch("updateProgress",t),this.$forceUpdate()},checkProgressDiff(t,e){t!==e&&100===e&&this.setVisbility()},saveResponse(t,e){let s=!1;this.currentResponse[t]!==e[0]&&100===this.progress[this.activityIndex]&&(s=!0),e[1].hasOwnProperty("used")&&e[1].used.push(this.protocolUrl),this.$store.dispatch("saveResponse",{key:t,value:e}),s&&this.setVisbility(),this.isAnswered=!0},saveScores(t,e){this.$store.dispatch("saveScores",{key:t,scoreObj:e})},clearResponses(){this.$store.dispatch("clearResponses",this.activityIndex),this.$forceUpdate()},getDisplayName(t){if(!d().isEmpty(this.$store.state.schema)){let e=this.labelMap[t];if(this.$store.state.schema["http://schema.repronim.org/addProperties"][0]["http://www.w3.org/2004/02/skos/core#prefLabel"]){const s=this.$store.state.schema["http://schema.repronim.org/addProperties"],i=d().filter(s,(e=>e["http://schema.repronim.org/isAbout"][0]["@id"]===t));e=i[0]["http://www.w3.org/2004/02/skos/core#prefLabel"];const a=d().filter(e,(t=>t["@language"]===this.selected_language));return Array.isArray(a)&&a.length?a[0]["@value"]:e[0]["@value"]}const s=d().filter(e,(t=>t["@language"]===this.selected_language));return Array.isArray(s)&&s.length?s[0]["@value"]:e}return""},evaluateString(t,e){const s=Object.keys(e);let i=t,a=!1;return d().map(s,(t=>{let s=e[t].val;if(void 0!==s)if("skipped"!==s&&"dontknow"!==s){d().isString(s)&&(s=`'${s}'`),d().isArray(s)&&(s=`[${s}]`);let e=i;i=i.replaceAll(new RegExp(`\\b${t}\\b`||`\\b${t}\\.`,"g"),s),e!==i&&(a=!0)}else{let e=i;i=i.replaceAll(new RegExp(`\\b${t}\\b`,"g"),0),e!==i&&(a=!0)}})),!!a&&Function("return "+i)()},responseMapper(t,e,s){let i=[];if(this.schema["http://schema.repronim.org/addProperties"]){const t=this.schema["http://schema.repronim.org/addProperties"];if(Object.entries(t).forEach((([t,a])=>{const r=a["http://schema.repronim.org/isAbout"][0]["@id"],n=a["http://schema.repronim.org/variableName"][0]["@value"];r in s&&Object.entries(s[r]).forEach((([t,e])=>{const s="".concat(n,".",t);i.push({qId:s,val:e["val"],key:e["ref"]})}));const o=d().filter(e,(t=>r in t));let l=o[0];o[0]&&(l=o[0][r]),i.push({key:r,val:l,qId:n})})),this.$store.getters.getQueryParameters){const t=this.$store.getters.getQueryParameters;Object.entries(t).forEach((([t,e])=>{const s=t;"week"===t&&(e=parseInt(e));const a=e;i.push({key:t,val:a,qId:s})}))}const a={};return d().map(i,(t=>{a[t.qId]={val:t.val,ref:t.key}})),a}return{}},getPrefLabel(){const t=this.$store.state.schema;let e=d().filter(t["http://www.w3.org/2004/02/skos/core#prefLabel"],(t=>t["@language"]===this.selected_language));e.length||(e=t["http://www.w3.org/2004/02/skos/core#prefLabel"]),this.sidebarHeader=e[0]["@value"],this.schemaOrder&&d().map(this.schemaOrder,(t=>{y().expand(t).then((e=>{this.labelMap[t]=e[0]["http://www.w3.org/2004/02/skos/core#prefLabel"]}))}))},async computeVisibilityCondition(t,e){if(d().isObject(t)){const s={method:t.method,url:t.url,data:t.payload,headers:{"content-type":"application/json"}},i=JSON.stringify(s);if(Object.keys(this.cache).indexOf(i)>-1)return this.cache[i];null!=this.visibility[e]&&void 0!==this.visibility[e]||(this.visibility[e]=!1),console.log("making request",s,"cache",this.cache);const a=await(0,o.A)(s);return this.cache[i]=a.data.qualified,a.data.qualified}if(d().isString(t)){const s=this.responseMapper(e,this.$store.state.responses,this.$store.state.responseMap),i=this.evaluateString(t,s);return i}return t},visibilityChain(t){return t[0]?this.computeVisibilityCondition(t[0].condition,t[0].index).then((e=>{this.visibility[t[0].index]=e,this.$forceUpdate();const s=[...t];s.shift(),this.visibilityChain(s)})):0},setVisbility(){const t=d().map(this.visibilityConditions,((t,e)=>({condition:t,index:e})));this.visibilityChain(t)},downloadZipData(){const t=this.$store.state.exportResponses,e=this.$store.state.scores,s=this.$store.state.participantId,i={response:t,scores:e,participantId:s};this.formatData(i)},formatData(t){const e=new(g());let s=0;const i=`${(0,v.A)()}-${this.participantId}`;d().map(t.response,(t=>{const a=[];d().map(t,(t=>{const s={...t};if("reproschema:Response"===t["@type"]&&t.value instanceof Blob){const a=t.isAbout.split("/"),r=t["@id"].split("uuid:")[1];e.folder(i).file(`${a[a.length-1]}-${r}.wav`,t.value),s.value=`${a[a.length-1]}-${r}.wav`}a.push(s)})),a.length&&(e.folder(i).file(`activity_${s}.jsonld`,JSON.stringify(a,null,4)),s+=1)})),e.generateAsync({type:"blob"}).then((t=>{(0,f.saveAs)(t,`${i}.zip`)}))}},watch:{$route(){void 0!==this.$route.params.id&&this.$store.dispatch("setActivityIndex",this.$route.params.id)},visibilityConditions:{handler(t){d().isEmpty(t)||this.setVisbility()},deep:!0}},created(){const t=this.$route.query.url;t&&(this.protocolUrl=t),this.$store.dispatch("getBaseSchema",t).then((()=>this.getPrefLabel()))},mounted(){new q("[data-email]"),this.clientSpecs=JSON.stringify(c().parse(window.navigator.userAgent)),this.browserType=c().parse(window.navigator.userAgent).browser.name,j().checkMediaPermission&&this.checkPermission(),this.$route.query.lang?(this.selected_language=this.$route.query.lang,L.locale=this.selected_language):this.selected_language="en",this.$route.query.uid?this.$store.dispatch("saveParticipantId",this.$route.query.uid):j().generateRandomUid&&this.$store.dispatch("saveParticipantId",(0,v.A)()),this.$route.params.id&&this.$store.dispatch("setActivityIndex",this.$route.params.id),o.A.get("https://raw.githubusercontent.com/ReproNim/reproschema-library/master/resources/languages.json").then((t=>{this.langMap=t.data})),this.$store.dispatch("setParticipantUUID",(0,v.A)()),this.$route.query.expiry_time&&this.$store.dispatch("setExpiryMinutes",this.$route.query.expiry_time),this.$route.query.auth_token&&this.$store.dispatch("setAuthToken",this.$route.query.auth_token),d().isEmpty(this.$route.query)||this.$store.dispatch("setQueryParameters",this.$route.query)},computed:{accessDeniedPath(){let t=s(400);return t},notIOS(){return"iOS"!==c().parse(window.navigator.userAgent).os.name},permissionDemoPath(){let t=s(6425);return"Firefox"===this.browserType?t=s(2370):"Safari"===this.browserType&&(t=s(1823)),t},expiryTime(){let t=u()(this.$store.getters.getExpiryTime)["_i"];return t=t.replace(" ","+"),new Date(t).getTime()},showTimer(){return!!this.$store.getters.getExpiryTime},getEmailData(){const t=`${j().contact}?subject=${j().emailSubject}&body=[ Describe the issue in detail. You can copy and paste text, screen capture and/or describe the expected vs. actual result.] Browser properties: ${this.clientSpecs}]`;return window.btoa(t)},getschemaType(){return this.$store.getters.getschemaType},isProtocolUrl(){return"Activity"!==this.getschemaType},srcUrl(){return this.$store.getters.srcUrl},reprotermsUrl(){return this.$store.getters.getTermsUrl},schema(){return this.$store.state.schema},responses(){return this.$store.state.responses},scores(){return this.$store.state.scores},activityIndex(){return this.$store.state.activityIndex},progress(){return this.$store.state.progress},currentActivityProgress(){return this.progress[this.activityIndex]},currentResponse(){return this.responses[this.activityIndex]},schemaOrder(){if(!d().isEmpty(this.$store.state.schema)){const t=d().map(this.$store.state.schema["http://schema.repronim.org/order"][0]["@list"],(t=>t["@id"]));return t}return[]},languageOptions(){if(!d().isEmpty(this.$store.state.schema)){const t=d().map(this.$store.state.schema["http://www.w3.org/2004/02/skos/core#prefLabel"],(t=>t["@language"])),e=d().map(t,(t=>({value:t,text:this.langMap[t]})));return e}return[]},shouldUpload(){return!(!j().backendServer||!this.$store.getters.getAuthToken)},allowExport(){if(!d().isEmpty(this.$store.state.schema)&&this.$store.state.schema["http://schema.repronim.org/allow"]){const t=d().map(this.$store.state.schema["http://schema.repronim.org/allow"],(t=>t["@id"]));return this.$store.dispatch("setExport",t.includes("http://schema.repronim.org/AllowExport")),t.includes("http://schema.repronim.org/AllowExport")||!this.shouldUpload}return this.$store.dispatch("setExport",!1),!1},schemaNameMapper(){const t={};return this.schemaOrder&&d().map(this.schemaOrder,(e=>{let s="";s=this.schema["http://schema.repronim.org/variableMap"]?this.getVariableName(e,this.schema["http://schema.repronim.org/variableMap"]):E(e),t[s]=e})),t},visibilityConditions(){return this.schema["http://schema.repronim.org/addProperties"]?d().map(this.schemaOrder,(t=>{const e=this.schema["http://schema.repronim.org/addProperties"],s=d().filter(e,(e=>e["http://schema.repronim.org/isAbout"][0]["@id"]===t));let i=d().filter(s[0]["http://schema.repronim.org/variableName"],(t=>t["@language"]===this.selected_language));if(i.length||(i=s[0]["http://schema.repronim.org/variableName"]),s[0]["http://schema.repronim.org/isVis"]){const t=s[0]["http://schema.repronim.org/isVis"][0];if("@value"in t)return t["@value"];if("http://schema.org/httpMethod"in t&&"http://schema.org/url"in t&&"http://schema.repronim.org/payload"in t){const e={},s=t["http://schema.repronim.org/payload"];return d().map(s,(t=>{const s=t["@value"],i=this.schemaOrder.indexOf(this.schemaNameMapper[s]);e[this.schemaNameMapper[s]]=this.scores[i]})),{url:t["http://schema.org/url"][0]["@value"],method:t["http://schema.org/httpMethod"][0]["@value"],payload:e}}}return!0})):d().mapValues(this.schemaOrder,(()=>!0))},checkDisableBack(){if(!d().isEmpty(this.$store.state.schema)&&this.$store.state.schema["http://schema.repronim.org/allow"]){const t=d().map(this.$store.state.schema["http://schema.repronim.org/allow"],(t=>t["@id"]));return t.includes("http://schema.repronim.org/DisableBack")}return!1},getPId(){return this.$store.getters.getParticipantId},checkAdvance(){if(!d().isEmpty(this.$store.state.schema)&&this.$store.state.schema["http://schema.repronim.org/allow"]){const t=d().map(this.$store.state.schema["http://schema.repronim.org/allow"],(t=>t["@id"]));return t.includes("http://schema.repronim.org/AutoAdvance")}return!1},nextActivity(){const t={};for(let e=0;e[]},selectedImages:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},useLabel:{type:Boolean,default:!1},rootClass:{type:String,default:"vue-select-image"},activeClass:{type:String,default:"--selected"},h:{type:String,default:"auto"},w:{type:String,default:"auto"}},data(){return{singleSelected:{id:""},multipleSelected:[]}},watch:{},computed:{dataImagesLocal:function(){return this.dataImages||[]},classThumbnail(){return d().map(this.dataImagesLocal,(t=>{const e=`${this.rootClass}__thumbnail`;return this.singleSelected.id===t.id?`${e} ${e}${this.activeClass}`:`${e}`}))}},mounted(){this.setInitialSelection()},methods:{classThumbnailMultiple(t){const e=`${this.rootClass}__thumbnail`,s=`${e} is--multiple`;return this.isExistInArray(t)?`${s} ${e}${this.activeClass}`:`${s}`},onSelectImage(t){this.singleSelected=Object.assign({},this.singleSelected,t),this.$emit("onselectimage",t)},isExistInArray(t){return this.multipleSelected.find((e=>t===e.id))},removeFromSingleSelected(){this.singleSelected={},this.$emit("onselectimage",{})},removeFromMultipleSelected(t,e){this.multipleSelected=this.multipleSelected.filter((e=>t!==e.id)),e||this.$emit("onselectmultipleimage",this.multipleSelected)},resetMultipleSelection(){this.multipleSelected=[]},onSelectMultipleImage(t){this.isExistInArray(t.id)?this.removeFromMultipleSelected(t.id,!0):this.multipleSelected.push(t),this.$emit("onselectmultipleimage",this.multipleSelected)},setInitialSelection(){this.selectedImages&&(this.isMultiple||1!==this.selectedImages.length?this.multipleSelected=[].concat(this.selectedImages):(this.singleSelected=Object.assign({},this.selectedImages[0]),this.$forceUpdate()))}}},it=st,at=(0,$.A)(it,tt,et,!1,null,null,null),rt=at.exports,nt={name:"radioInput",props:["constraints","init","selected_language","reprotermsUrl"],data(){return{selected:null,checkboxSelected:[],answerLanguage:this.selected_language}},components:{VueSelectImage:rt},computed:{options(){let t="";return d().map(this.constraints["http://schema.repronim.org/choices"],(e=>{const s=d().filter(e["http://schema.org/name"],(t=>t["@language"]===this.selected_language));return t=Array.isArray(s)&&s.length?s[0]["@value"]:e["http://schema.org/name"][0]["@value"],{text:t,value:e["http://schema.repronim.org/value"][0]["@value"],image:e["http://schema.org/image"]?e["http://schema.org/image"][0]["@value"]:null}}))},isMultipleChoice(){return!!this.constraints["http://schema.repronim.org/multipleChoice"]&&this.constraints["http://schema.repronim.org/multipleChoice"][0]["@value"]},isImageSelect(){return d().filter(this.options,(t=>t.image)).length===this.options.length},dataImages(){return d().map(this.options,(t=>({src:t.image,id:t.value,alt:t.text})))},selectedImages(){return[this.dataImages[this.selected]]}},watch:{},mounted(){void 0!==this.init&&(this.init instanceof Array?this.checkboxSelected=this.init:this.selected=this.init,this.$refs.imageSelect&&this.$nextTick((()=>{this.selectedImages[0]&&this.$set(this.$refs.imageSelect,"singleSelected",this.selectedImages[0])})))},methods:{onSubmit(t){t.preventDefault(),this.$emit("valueChanged",this.checkboxSelected)},sendData(t){this.$emit("valueChanged",t)},onSelectImage(t){this.selected=t.id,this.sendData(t.id)}}},ot=nt,lt=(0,$.A)(ot,W,X,!1,null,null,null),ct=lt.exports,ht=function(){var t=this,e=t._self._c;return e("div",[e("b-alert",{attrs:{show:!t.supported}},[t._v(t._s(t.$t("audio-support-msg")))]),t.supported?e("div",["audioImageRecord"===t.mode?e("div",{staticClass:"mb-3"},[e("img",{staticClass:"img-fluid",attrs:{src:t.fieldData["http://schema.org/image"][0]["@id"]}})]):t._e(),"audioRecordNumberTask"===t.mode?e("div",{staticClass:"mb-3"},[e("strong",{staticStyle:{"font-size":"30px"}},[t._v(t._s(t.generateNumber))])]):t._e(),"audioRecordAudioTask"===t.mode?e("div",{staticClass:"mb-3"},[e("audio",{attrs:{controls:""}},[e("source",{attrs:{src:t.getAudioSource,type:"audio/mpeg"}}),t._v(" Your browser does not support the audio element. ")])]):t._e(),t.isRecording||t.hasRecording?t._e():e("b-button",{attrs:{variant:"danger"},on:{click:t.record}},[t._v(" "+t._s(t.$t("record-button"))+" ")]),"audioRecordNoStop"!=t.mode?e("div",{staticClass:"mb-3"},[t.isRecording?e("b-button",{on:{click:t.finish}},[t._v(t._s(t.$t("stop-button")))]):t._e()],1):t._e(),t.isRecording?e("div",[e("small",[t._v(t._s(t.timeRemaining)+" "+t._s(t.$t("x-seconds-left")))])]):t._e(),t.hasRecording&&!t.isPlaying?e("b-button",{ref:"play",attrs:{variant:"success"},on:{click:t.play}},[e("span",[t._v(" "+t._s(t.$t("play-button"))+" ")])]):t._e(),t.hasRecording&&t.isPlaying?e("b-button",{ref:"play",attrs:{variant:"secondary"},on:{click:t.pause}},[e("span",[t._v(" "+t._s(t.$t("pause-button"))+" ")])]):t._e(),t.hasRecording?e("div",{staticClass:"mt-2"},[e("a",{attrs:{href:""},on:{click:t.reset}},[t._v(t._s(t.$t("redo-recording")))])]):t._e()],1):t._e()],1)},ut=[];s(4603),s(7566),s(8721);const pt=s(8651);var dt={name:"audioRecord",props:{init:{type:[String,Blob,Array]},mode:{type:String,default:"audioRecord"},constraints:{type:Object},fieldData:{type:Object}},data(){return{recording:{},isRecording:!1,hasRecording:!1,audioCtx:{},audioConstraints:{audio:!0,video:!1},mediaRecorder:{},supported:null,interval:{},timeRemaining:null,isPlaying:!1}},computed:{recordingTime(){return this.constraints["http://schema.org/maxValue"][0]["@value"]},generateNumber(){return 1e5+Math.floor(9e5*Math.random())},getAudioSource(){return this.fieldData["http://schema.org/audio"]?this.fieldData["http://schema.org/audio"][0]["http://schema.org/contentUrl"][0]["@id"]:""}},methods:{record(){this.isRecording=!0,this.mediaRecorder.start(this.recordingTime),this.interval=setInterval(this.countdown,1e3)},countdown(){this.timeRemaining<=0?clearInterval(this.interval):this.timeRemaining-=1},play(){this.recording.play(),this.isPlaying=!0},pause(){this.recording.pause(),this.endPlay()},endPlay(){this.isPlaying=!1},finish(){this.mediaRecorder.stop(),this.hasRecording=!0,this.isRecording=!1,clearInterval(this.interval)},reset(t){t.preventDefault(),this.hasRecording=!1,this.isRecording=!1,navigator.mediaDevices.getUserMedia(this.audioConstraints).then(this.initialize,this.error)},initialize(t){this.mediaRecorder=new pt(t),this.mediaRecorder.mimeType="audio/wav",this.timeRemaining=this.recordingTime/1e3,window.mediaRecorder=this.mediaRecorder;const e=this;this.mediaRecorder.ondataavailable=t=>{const s=URL.createObjectURL(t);e.recording.src=s,e.recording.blob=t,this.$emit("valueChanged",this.recording.blob),e.finish()}},error(){}},watch:{init(){"skip"!==this.init&&"dontKnow"!==this.init||(this.hasRecording=!1)}},mounted(){this.recording=new Audio,this.recording.onended=this.endPlay;const t=window.AudioContext||window.webkitAudioContext;if(this.audioCtx=new t,navigator.mediaDevices.getUserMedia){if(this.supported=!0,navigator.mediaDevices.getUserMedia(this.audioConstraints).then(this.initialize,this.error),this.init)if(d().isString(this.init))this.init.startsWith("blob")?(this.recording.src=this.init,this.hasRecording=!0):this.hasRecording=!1;else if(this.init instanceof Blob){const t=URL.createObjectURL(this.init);this.recording.src=t,this.recording.blob=this.init,this.hasRecording=!0}else this.hasRecording=!1}else this.supported=!1}},mt=dt,gt=(0,$.A)(mt,ht,ut,!1,null,null,null),vt=gt.exports,bt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"textInput"},[e("b-form",{ref:"form",on:{submit:t.onSubmit}},[e("b-row",[e("b-col",{staticClass:"col-4 col-md-4",attrs:{lg:"4"}},[e("b-form-group",[e("b-form-input",{attrs:{type:"text"},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}})],1)],1),t.hasUnit&&Array.isArray(t.options)?e("b-col",{attrs:{lg:"4"}},[e("multiselect",{attrs:{options:this.options,searchable:!1,"show-labels":!1,allowEmpty:!1,placeholder:"unit"},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}})],1):t.hasUnit&&!Array.isArray(t.options)?e("div",[e("p",{staticClass:"singleUnit"},[t._v(" "+t._s(t.options))])]):t._e()],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},yt=[],ft=s(5262),wt=s.n(ft),_t={name:"TextInput",props:["constraints","init","inputType","selected_language"],components:{Multiselect:wt()},data(){return{input1:"",input2:""}},methods:{onSubmit(t){if(t.preventDefault(),this.$refs.form.className="was-validated",this.hasUnit){const t={value:this.input1,unitCode:this.input2};this.$emit("valueChanged",t)}this.$emit("valueChanged",this.input1)}},computed:{hasUnit(){return!!this.constraints["http://schema.org/unitCode"]},options(){return this.constraints["http://schema.org/unitCode"].length>1?d().map(this.constraints["http://schema.org/unitCode"],(t=>t["@value"])):1===this.constraints["http://schema.org/unitCode"].length?this.constraints["http://schema.org/unitCode"][0]["@value"]:""}},mounted(){this.init&&(this.hasUnit?(this.input1=this.init.value,this.input2=this.init.unitCode):this.input1=this.init)}},xt=_t,kt=(0,$.A)(xt,bt,yt,!1,null,null,null),$t=kt.exports,St=function(){var t=this,e=t._self._c;return e("div",{staticClass:"textArea"},[e("b-form",{ref:"form",on:{submit:t.onSubmit}},[e("b-row",{staticClass:"mt-2"},[e("b-col",[e("b-form-textarea",{attrs:{id:"textarea-default",rows:"10"},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}})],1)],1),e("br"),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},Ct=[],At={name:"TextArea",props:["constraints","init","inputType","selected_language"],components:{},data(){return{input1:""}},methods:{onSubmit(t){t.preventDefault(),this.$refs.form.className="was-validated",this.$emit("valueChanged",this.input1)}},computed:{},mounted(){this.init&&(this.input1=this.init)}},It=At,Pt=(0,$.A)(It,St,Ct,!1,null,null,null),jt=Pt.exports,Dt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"IntegerInput"},[e("b-form",{ref:"form",attrs:{novalidate:!0},on:{submit:t.onSubmit}},[e("b-row",[e("b-col",{staticClass:"col-4 col-md-4",attrs:{lg:"4"}},[e("b-form-group",[e("b-form-input",{ref:"integerInput",class:{"is-invalid":!t.isValidInt,"is-valid":t.isValidInt},attrs:{placeholder:"value"},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}}),e("div",{staticClass:"invalid-feedback"},[t._v(" "+t._s(t.$t("invalid-feedback-number"))+" ")])],1)],1),t.hasUnit&&Array.isArray(t.options)?e("b-col",{attrs:{lg:"4"}},[e("multiselect",{attrs:{options:this.options,searchable:!1,"show-labels":!1,allowEmpty:!1,placeholder:"unit"},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}})],1):t.hasUnit&&!Array.isArray(t.options)?e("div",[e("p",{staticClass:"singleUnit"},[t._v(" "+t._s(t.options))])]):t._e()],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},Ot=[],Rt={name:"IntegerInput",props:["constraints","init"],components:{Multiselect:wt()},data(){return{input1:"",input2:""}},methods:{onSubmit(t){if(t.preventDefault(),this.$refs.form.className="was-validated",this.isValidInt){if(this.hasUnit){const t={value:this.input1,unitCode:this.input2};this.$emit("valueChanged",t)}this.$emit("valueChanged",this.input1)}},isValid(){const t=parseFloat(this.input1);return!isNaN(t)&&Number.isInteger(t)}},computed:{isValidInt(){return this.isValid(this.input1)},hasUnit(){return!!this.constraints["http://schema.org/unitCode"]},options(){return this.constraints["http://schema.org/unitCode"].length>1?d().map(this.constraints["http://schema.org/unitCode"],(t=>t["@value"])):1===this.constraints["http://schema.org/unitCode"].length?this.constraints["http://schema.org/unitCode"][0]["@value"]:""}},mounted(){this.init&&(this.hasUnit?(this.input1=this.init.value,this.input2=this.init.unitCode):this.input1=this.init)}},Tt=Rt,Ut=(0,$.A)(Tt,Dt,Ot,!1,null,null,null),Mt=Ut.exports,Lt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"FloatInput"},[e("b-form",{ref:"form",attrs:{novalidate:!0},on:{submit:t.onSubmit}},[e("b-row",[e("b-col",{staticClass:"col-4 col-md-4",attrs:{lg:"4"}},[e("b-form-group",[e("b-form-input",{ref:"floatInput",class:{"is-valid":t.isValidFloat},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}})],1)],1),t.hasUnit&&Array.isArray(t.options)?e("b-col",{attrs:{lg:"4"}},[e("multiselect",{attrs:{options:this.options,searchable:!1,"show-labels":!1,allowEmpty:!1,placeholder:"unit"},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}})],1):t.hasUnit&&!Array.isArray(t.options)?e("div",[e("p",{staticClass:"singleUnit"},[t._v(" "+t._s(t.options))])]):t._e()],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},Nt=[],Et={name:"FloatInput",props:["constraints","init"],components:{Multiselect:wt()},data(){return{input1:"",input2:""}},methods:{onSubmit(t){if(t.preventDefault(),this.$refs.form.className="was-validated",this.isValidFloat)if(this.hasUnit){const t={value:this.input1,unitCode:this.input2};this.$emit("valueChanged",t)}else this.$emit("valueChanged",this.input1)},isValid(){const t=parseFloat(this.input1);return!isNaN(t)&&Number.isFinite(t)},selectedLanguageLabel(t){const e=d().filter(t["http://www.w3.org/2004/02/skos/core#prefLabel"],(t=>t["@language"]===this.selected_language));return Array.isArray(e)&&e.length?e[0]["@value"]:t["http://www.w3.org/2004/02/skos/core#prefLabel"][0]["@value"]}},computed:{isValidFloat(){return this.isValid(this.input1)},hasUnit(){return!(!this.constraints["http://schema.org/unitCode"]&&!this.constraints["http://schema.repronim.org/unitOptions"])},options(){if(this.constraints["http://schema.org/unitCode"]){if(this.constraints["http://schema.org/unitCode"].length>1)return d().map(this.constraints["http://schema.org/unitCode"],(t=>t["@value"]));if(1===this.constraints["http://schema.org/unitCode"].length)return this.constraints["http://schema.org/unitCode"][0]["@value"]}else if(this.constraints["http://schema.repronim.org/unitOptions"]){if(this.constraints["http://schema.repronim.org/unitOptions"].length>1)return d().map(this.constraints["http://schema.repronim.org/unitOptions"],(t=>this.selectedLanguageLabel(t)));if(1===this.constraints["http://schema.repronim.org/unitOptions"].length)return this.selectedLanguageLabel(this.constraints["http://schema.repronim.org/unitOptions"][0])}return""}},mounted(){this.init&&(this.hasUnit?(this.input1=this.init.value,this.input2=this.init.unitCode):this.input1=this.init)}},qt=Et,Vt=(0,$.A)(qt,Lt,Nt,!1,null,null,null),Ft=Vt.exports,zt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"RangeInput"},[e("b-form",{ref:"form",attrs:{novalidate:!0},on:{submit:t.onSubmit}},[e("b-row",[e("b-col",{staticClass:"col-4 col-md-4",attrs:{lg:"4"}},[e("b-form-group",[e("b-form-input",{ref:"rangeInput",class:{"is-valid":t.isValidFloat},attrs:{placeholder:"start"},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}})],1)],1),e("b-col",{staticClass:"col-4 col-md-4",attrs:{lg:"4"}},[e("b-form-group",[e("b-form-input",{ref:"rangeInput",class:{"is-valid":t.isValidFloat},attrs:{placeholder:"end"},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}})],1)],1),t.hasUnit&&Array.isArray(t.options)?e("b-col",{attrs:{lg:"4"}},[e("multiselect",{attrs:{options:this.options,searchable:!1,"show-labels":!1,allowEmpty:!1,placeholder:"unit"},model:{value:t.input3,callback:function(e){t.input3=e},expression:"input3"}})],1):t.hasUnit&&!Array.isArray(t.options)?e("div",[e("p",{staticClass:"singleUnit"},[t._v(" "+t._s(t.options))])]):t._e()],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},Kt=[],Bt={name:"RangeInput",props:["constraints","init"],components:{Multiselect:wt()},data(){return{input1:"",input2:"",input3:""}},methods:{onSubmit(t){if(t.preventDefault(),this.$refs.form.className="was-validated",this.areValidFloats&&this.isValidRange)if(this.hasUnit){const t={value1:this.input1,value2:this.input2,unitCode:this.input3};this.$emit("valueChanged",t)}else{const t={value1:this.input1,value2:this.input2};this.$emit("valueChanged",t)}},isValid(){const t=parseFloat(this.input);return!isNaN(t)&&Number.isFinite(t)},isValidRange(){const t=parseFloat(this.input1),e=parseFloat(this.input2);return e>t},selectedLanguageLabel(t){const e=d().filter(t["http://www.w3.org/2004/02/skos/core#prefLabel"],(t=>t["@language"]===this.selected_language));return Array.isArray(e)&&e.length?e[0]["@value"]:t["http://www.w3.org/2004/02/skos/core#prefLabel"][0]["@value"]}},computed:{areValidFloats(){return!(!this.isValid(this.input1)||!this.isValid(this.input2))},hasUnit(){return!(!this.constraints["http://schema.org/unitCode"]&&!this.constraints["http://schema.repronim.org/unitOptions"])},options(){if(this.constraints["http://schema.org/unitCode"]){if(this.constraints["http://schema.org/unitCode"].length>1)return d().map(this.constraints["http://schema.org/unitCode"],(t=>t["@value"]));if(1===this.constraints["http://schema.org/unitCode"].length)return this.constraints["http://schema.org/unitCode"][0]["@value"]}else if(this.constraints["http://schema.repronim.org/unitOptions"]){if(this.constraints["http://schema.repronim.org/unitOptions"].length>1)return d().map(this.constraints["http://schema.repronim.org/unitOptions"],(t=>this.selectedLanguageLabel(t)));if(1===this.constraints["http://schema.repronim.org/unitOptions"].length)return this.selectedLanguageLabel(this.constraints["http://schema.repronim.org/unitOptions"][0])}return""}},mounted(){this.init&&(this.hasUnit?(this.input1=this.init.value1,this.input2=this.init.value2,this.input3=this.init.unitCode):(this.input1=this.init.value1,this.input2=this.init.value2))}},Ht=Bt,Qt=(0,$.A)(Ht,zt,Kt,!1,null,null,null),Yt=Qt.exports,Jt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"DateInput"},[e("datepicker",{attrs:{placeholder:"Select Date",lang:"selected_language",disabledDates:t.dateParam.disabledDates,format:t.customFormatter,minimumView:t.inputType,maximumView:"year",initialView:t.inputType},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}})],1)},Zt=[],Gt=s(6045),Wt={name:"DateInput",props:["constraints","init","inputType","selected_language"],components:{Datepicker:Gt.A},watch:{input(){this.$emit("valueChanged",this.input)}},methods:{sendData(t){this.$emit("valueChanged",t.getFullYear())},customFormatter(t){return"year"===this.inputType?u()(t).format("YYYY"):"date"===this.inputType?u()(t).format("MMM DD YYYY"):t}},data(){return{input:null,dateParam:{disabledDates:{from:new Date}}}},mounted(){this.init&&("year"===this.inputType?this.input=new Date(this.init,0,365):this.input=this.init)}},Xt=Wt,te=(0,$.A)(Xt,Jt,Zt,!1,null,null,null),ee=te.exports,se=function(){var t=this,e=t._self._c;return e("div",{staticClass:"DocumentUpload"},[e("input",{attrs:{type:"file"},on:{change:t.onFileSelected}}),e("button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("upload-button")))])])},ie=[],ae={name:"DocumentUpload",props:["constraints","init"],watch:{input(){this.$emit("valueChanged",this.input)}},methods:{onFileSelected(t){this.selectedFile=t.target.files[0]},onSubmit(t){t.preventDefault(),this.$emit("valueChanged",this.selectedFile)}},computed:{c(){return this.a+this.b}},data(){return{selectedFile:null}},mounted(){this.init&&(this.selectedFile=this.init)}},re=ae,ne=(0,$.A)(re,se,ie,!1,null,null,null),oe=ne.exports,le=function(){var t=this,e=t._self._c;return e("div",{staticClass:"textInput"},[e("b-form",{on:{submit:t.onSubmit}},[e("b-row",[e("b-col",{attrs:{lg:"4"}},[e("b-input-group",[e("b-form-input",{attrs:{placeholder:"first name",required:""},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}})],1)],1),e("b-col",{attrs:{lg:"4"}},[e("b-input-group",[e("b-form-input",{attrs:{placeholder:"middle name"},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}})],1)],1),e("b-col",{attrs:{lg:"4"}},[e("b-input-group",[e("b-form-input",{attrs:{placeholder:"family name",required:""},model:{value:t.input3,callback:function(e){t.input3=e},expression:"input3"}})],1)],1)],1),e("br"),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},ce=[],he={name:"TextInput",props:["constraints","init"],methods:{onSubmit(t){t.preventDefault();const e={first_name:this.input1,middle_name:this.input2,last_name:this.input3};this.$emit("valueChanged",e)}},data(){return{input1:"",input2:"",input3:""}},mounted(){this.init&&(this.input1=this.init.first_name,this.input2=this.init.middle_name,this.input3=this.init.last_name)}},ue=he,pe=(0,$.A)(ue,le,ce,!1,null,null,null),de=pe.exports,me=function(){var t=this,e=t._self._c;return e("div",{staticClass:"SliderInput ml-3 mr-3 pl-3 pr-3"},[e("vue-slider",{attrs:{lazy:!0,data:t.interval,marks:!0,process:!1},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}}),e("b-row",{staticClass:"mt-3 pt-3 pl-0 pr-0"},[e("div",{staticClass:"col text-left pr-0 pl-0"},[t.getMinImageLabel?e("span",[e("img",{staticClass:"imgLabel",attrs:{src:t.getMinImageLabel}})]):t._e(),e("p",[t._v(t._s(t.getMinLabel))])]),e("div",{staticClass:"col text-right pr-0 pl-0"},[t.getMaxImageLabel?e("span",[e("img",{staticClass:"imgLabel",attrs:{src:t.getMaxImageLabel}})]):t._e(),e("p",[t._v(t._s(t.getMaxLabel))])])]),e("b-form",{on:{submit:t.sendData}},[e("b-button",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},ge=[],ve=s(378),be=s.n(ve),ye={name:"SliderInput",props:["constraints","init","selected_language"],components:{VueSlider:be()},methods:{sendData(t){t.preventDefault(),this.$emit("valueChanged",this.input)}},computed:{interval(){return d().map(this.constraints["http://schema.repronim.org/choices"],(t=>t["http://schema.repronim.org/value"][0]["@value"]))},getMinLabel(){if(this.constraints["http://schema.repronim.org/choices"]){const t=d().filter(this.constraints["http://schema.repronim.org/choices"][0]["http://schema.org/name"],(t=>t["@language"]===this.selected_language));return t[0]["@value"]}return"no min label"},getMaxLabel(){if(this.constraints["http://schema.repronim.org/choices"]){const t=this.constraints["http://schema.repronim.org/choices"].length,e=d().filter(this.constraints["http://schema.repronim.org/choices"][t-1]["http://schema.org/name"],(t=>t["@language"]===this.selected_language));return e[0]["@value"]}return"no max label"},getMinImageLabel(){const t=this.constraints["http://schema.repronim.org/choices"];return!!t[0]["http://schema.org/image"]&&t[0]["http://schema.org/image"][0]["@value"]},getMaxImageLabel(){const t=this.constraints["http://schema.repronim.org/choices"],e=t.length;return!!t[e-1]["http://schema.org/image"]&&t[e-1]["http://schema.org/image"][0]["@value"]}},data(){return{input:null}},mounted(){this.init?this.input=this.init:this.input=Math.round(this.interval[this.interval.length-1]/2)}},fe=ye,we=(0,$.A)(fe,me,ge,!1,null,null,null),_e=we.exports,xe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"TimeRangeInput container ml-3 pl-3"},[e("b-row",{staticClass:"mt-2 mb-2"},[e("b-col",{staticClass:"mt-2 mb-2"},[t._v(" went to bed: "+t._s(t.yesterday)+" "),e("vue-timepicker",{attrs:{format:"hh:mm A"},model:{value:t.slept,callback:function(e){t.slept=e},expression:"slept"}})],1),e("b-col",{staticClass:"mt-2 mb-2"},[t._v(" woke up: "+t._s(t.today)+" "),e("vue-timepicker",{attrs:{format:"hh:mm A"},model:{value:t.woke,callback:function(e){t.woke=e},expression:"woke"}})],1)],1),null!=t.timeSlept?e("div",{staticClass:"mt-2 mb-2"},[t.timeSlept<0?e("div",{staticClass:"mt-2 mb-2"},[e("b-alert",{attrs:{show:"",variant:"danger"}},[t._v("You can't sleep negative hours!")])],1):e("b-button",{on:{click:t.sendData}},[t._v("Submit "+t._s(t.timeSlept)+" hours")])],1):t._e()],1)},ke=[],$e=s(286),Se=s.n($e);window.moment=u();var Ce={name:"timeRangeInput",props:["constraints","init","selected_language","id"],data(){return{slept:{hh:"08",mm:"00",A:"PM"},woke:{A:"AM",hh:"06",mm:"00"},today:null,yesterday:null}},components:{VueTimepicker:Se()},computed:{timeSlept(){const t=this.sleptAt,e=this.wokeAt,s=e.diff(t,"hours");return isNaN(s)?null:parseInt(s,0)},sleptAt(){const t=u()(`${this.slept.hh}:${this.slept.mm} ${this.slept.A}`,"hh:mm A"),e=u()(new Date),s=u()(new Date).add(-1,"days");return"AM"===this.slept.A?(t.set("date",e.get("date")),t.set("month",e.get("month")),t.set("year",e.get("year"))):(t.set("date",s.get("date")),t.set("month",s.get("month")),t.set("year",s.get("year"))),t},wokeAt(){const t=u()(new Date),e=u()(`${this.woke.hh}:${this.woke.mm} ${this.woke.A}`,"hh:mm A");return e.set("date",t.get("date")),e.set("month",t.get("month")),e.set("year",t.get("year")),e}},methods:{sendData(){this.$emit("valueChanged",{startTime:this.sleptAt.toISOString(),endTime:this.wokeAt.toISOString(),difference:this.timeSlept})}},watch:{init:{handler(){this.init},deep:!0}},mounted(){if(void 0!==this.init||null!=this.init){const t=u()(this.init.startTime).format("hh:mm A"),e=u()(this.init.endTime).format("hh:mm A");this.slept.A=t.split(" ")[1],this.slept.hh=t.split(":")[0],this.slept.mm=t.split(":")[1].split(" ")[0],this.woke.A=e.split(" ")[1],this.woke.hh=e.split(":")[0],this.woke.mm=e.split(":")[1].split(" ")[0]}}},Ae=Ce,Ie=(0,$.A)(Ae,xe,ke,!1,null,null,null),Pe=Ie.exports,je=function(){var t=this,e=t._self._c;return e("div",{staticClass:"SelectInput"},["select"===t.inputType&&this.constraints["http://schema.org/itemListElement"]?e("multiselect",{attrs:{options:this.options,searchable:!1,"show-labels":!1,placeholder:"Pick a value"},on:{input:t.checkNotOtherAndSendData},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}}):e("multiselect",{attrs:{id:"ajax",placeholder:"Type to search",options:this.options,multiple:t.multipleAllowed,searchable:!0,"internal-search":!0,"clear-on-select":!1,"close-on-select":!0,"options-limit":300,limit:5,"limit-text":t.limitText,"max-height":600,"show-no-results":!1,"hide-selected":!0},on:{input:t.checkNotOtherAndSendData},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[e("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.$t("select-invalid-query")))])]),t.checkOther?e("div",{staticStyle:{display:"block"},attrs:{id:"ifOther"}},[e("br"),e("b-form-input",{attrs:{placeholder:"Please describe"},on:{change:t.sendData},model:{value:t.otherInput,callback:function(e){t.otherInput=e},expression:"otherInput"}})],1):t._e()],1)},De=[],Oe={name:"SelectInput",props:["reprotermsUrl","constraints","init","selected_language","inputType"],components:{Multiselect:wt()},data(){return{selected:null,otherInput:"",options:[],selectedCountries:[],isLoading:!1}},watch:{input(){this.$emit("valueChanged",this.selected)}},methods:{checkNotOtherAndSendData(t){"Other"!==t&&this.$emit("valueChanged",t)},sendData(t){this.$emit("valueChanged",[this.selected,t])},limitText(t){return`and ${t} other countries`}},mounted(){this.init&&(Array.isArray(this.init)?(this.selected=this.init[0],this.otherInput=this.init[1]):this.selected=this.init),this.constraints["http://schema.repronim.org/choices"].length>1?this.options=d().map(this.constraints["http://schema.repronim.org/choices"],(t=>{const e=d().filter(t["http://schema.org/name"],(t=>t["@language"]===this.selected_language));return e[0]["@value"]})):1===this.constraints["http://schema.repronim.org/choices"].length&&o.A.get(this.constraints["http://schema.repronim.org/choices"][0]["@value"]).then((t=>{"selectCountry"===this.inputType?this.options=d().map(t.data,(t=>t.country)):"selectState"===this.inputType||"selectLanguage"===this.inputType?this.options=Object.values(t.data):this.options=t.data}))},computed:{multipleAllowed(){return!!this.constraints["http://schema.repronim.org/multipleChoice"]},checkOther(){return"Other"===this.selected}}},Re=Oe,Te=(0,$.A)(Re,je,De,!1,null,null,null),Ue=Te.exports,Me=function(){var t=this,e=t._self._c;return e("div",{staticClass:"staticReadOnly"},[e("div",[e("b-btn",{on:{click:t.onSubmit}},[t._v(" Done reading ")])],1)])},Le=[],Ne={name:"StaticReadOnly",props:["constraints","init","result","selected_language"],methods:{onSubmit(t){t.preventDefault(),this.$emit("valueChanged",this.input)}},data(){return{contact:j().contact,input:""}},computed:{getPId(){return this.$store.getters.getParticipantId}},mounted(){this.getPId&&(this.input=this.getPId),this.init&&(this.input=this.init)}},Ee=Ne,qe=(0,$.A)(Ee,Me,Le,!1,null,null,null),Ve=qe.exports,Fe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"SaveData ml-3 mr-3 pl-3 pr-3"},[t.isUploading||t.hasData||t.hasTimedOut?t._e():e("div",[t.shouldUpload?e("div",[e("p",[t._v(t._s(t.$t("save-data")))]),t.downloadAndSubmit?e("b-button",{ref:"upload",attrs:{variant:"danger"},on:{click:t.upload}},[t._v(" "+t._s(t.$t("download-and-submit-button"))+" ")]):e("b-button",{ref:"upload",attrs:{variant:"danger"},on:{click:t.upload}},[t._v(" "+t._s(t.$t("upload-button"))+" ")])],1):e("div",[t.exportOption?e("p",[t._v(t._s(t.$t("export-and-finish")))]):e("p",[t._v(t._s(t.$t("finish")))]),e("b-button",{attrs:{variant:"danger"},on:{click:t.finish}},[t._v(" "+t._s(t.$t("finish-button"))+" ")])],1)]),t.isUploading&&t.percentCompleted>0&&t.showProgressBar?e("div",{staticClass:"loader"},[e("p",[t._v(t._s(t.$t("upload-message")))]),e("b-progress",{attrs:{max:100,striped:t.hasStripe}},[e("b-progress-bar",{attrs:{value:100*t.percentCompleted,label:100*t.percentCompleted+"%",animated:""}})],1)],1):t.isUploading&&0===t.percentCompleted?e("div",[e("p",[t._v(t._s(t.$t("prepare-upload")))]),e("Loader")],1):t._e(),e("b-modal",{ref:"timeout-modal",attrs:{"ok-title":"Done","ok-only":"",title:"Uh-oh! Upload unsuccessful!","no-close-on-esc":"","no-close-on-backdrop":"","hide-header-close":""},on:{ok:t.timeoutOK},model:{value:t.timeout,callback:function(e){t.timeout=e},expression:"timeout"}},[t.dataUploadPath?e("p",[t._v("Please submit your locally exported zip file "),e("a",{attrs:{href:t.dataUploadPath,target:"_blank"}},[t._v("here")])]):e("p",[t._v("Let researchers know with the "),e("b",[t._v("Help")]),t._v(" button or by email to "+t._s(t.contact))])]),e("div",{class:{done:t.hasData},staticStyle:{width:"800px",margin:"0 auto"}})],1)},ze=[],Ke=function(){var t=this;t._self._c;return t._m(0)},Be=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"layer-preloader"},[e("div",{staticClass:"loading"},[e("div",{staticClass:"loader firstColor"},[e("div",{staticClass:"loader secondColor"},[e("div",{staticClass:"loader thirdColor"})])])])])}],He={},Qe=He,Ye=(0,$.A)(Qe,Ke,Be,!1,null,null,null),Je=Ye.exports;let Ze,Ge=[],We=0;var Xe={name:"SaveData",props:["constraints","init","selected_language","ipAddress"],components:{Loader:Je},data(){return{recording:{},isUploading:!1,hasData:!1,percentCompleted:0,timeout:!1,uploadFailed:!1,showProgressBar:!0,invalidToken:!1,downloadAndSubmit:j().downloadAndSubmit,dataUploadPath:j().dataUploadPath,contact:j().contact}},computed:{shouldUpload(){return!(!j().backendServer||!this.$store.getters.getAuthToken)},participantId(){return this.$store.getters.getParticipantId},exportOption(){return this.$store.getters.getHasExport},hasStripe(){return!(100===this.percentCompleted)},hasTimedOut(){return this.timeout}},methods:{finish(){this.hasData=!0,this.$emit("valueChanged","completed")},timeoutOK(){this.$emit("valueChanged","timeout")},upload(){this.isUploading=!0,this.uploadZipData()},uploadZipData(){const t=this.$store.state.exportResponses,e=this.$store.state.scores,s=this.$store.state.participantId,i={response:t,scores:e,participantId:s};this.formatData(i)},formatData(t){const e=this.$store.getters.getAuthToken,s=this.$store.state.expiryMinutes,i=new(g());let a=0;const r=`${(0,v.A)()}-${this.participantId}`;d().map(t.response,(t=>{const e=[];d().map(t,(t=>{const s={...t};if("reproschema:Response"===t["@type"]&&t.value instanceof Blob){const e=t.isAbout.split("/"),a=t["@id"].split("uuid:")[1];i.folder(r).file(`${e[e.length-1]}-${a}.wav`,t.value),s.value=`${e[e.length-1]}-${a}.wav`}e.push(s)})),e.length&&(i.folder(r).file(`activity_${a}.jsonld`,JSON.stringify(e,null,4)),a+=1)})),i.generateAsync({type:"blob"}).then((t=>{this.downloadAndSubmit&&(0,f.saveAs)(t,`${r}.zip`);const i=1e7,a=t.size;let n,o=0,l=o+i,c=1;while(oa?t.slice(o,a+1,"Blob"):t.slice(o,l,"Blob"),Ge.push(n),c+=1,o=l,l=o+i;Ze=Ge.length;let h=[];for(let u=0;u{this.isUploading=!1,this.hasData=!0,this.$emit("valueChanged",{status:t})}))}))},sendRetry(t,e,s,i=3,a=1e4){const r={"Content-Type":"multipart/form-data"};return o.A.post(`${j().backendServer}/submit`,e,r).then((t=>{Ge.splice(s,1),We++;const e=We/Ze;return this.percentCompleted=e.toFixed(2),t.status})).catch((r=>{if(!(i>0))return this.timeout=!0,this.showProgressBar=!1,r.response.status;setTimeout((()=>this.sendRetry(t,e,s,i-1,2*a)),a)}))}}},ts=Xe,es=(0,$.A)(ts,Fe,ze,!1,null,null,null),ss=es.exports,is=function(){var t=this,e=t._self._c;return e("div",{staticClass:"docked-layout"},[e("section",[e("div",{ref:"consentDoc",staticClass:"consent-doc"},[t._m(0),e("section"),t._v(" "),t._m(1),t._m(2),t._m(3),e("section",[e("div",{staticClass:"research container"},[e("object",{attrs:{data:"/static/images/Step3.svg",type:"image/svg+xml"}}),e("div",[t._v("My data will be used for research as described in the study information ("),e("router-link",{attrs:{to:"/study/consent-review"}},[t._v("https://"),e("wbr"),t._v("parkinsonmpower."),e("wbr"),t._v("org/"),e("wbr"),t._v("consent")]),t._v(").")],1)])]),t._m(4),t._m(5),t._m(6),t._m(7),t._m(8),t._m(9)]),e("footer",[e("form",{staticClass:"slider",attrs:{onsubmit:"return false"}},[e("div",{staticClass:"slider-element animated",class:{slideOutLeft:t.showSharing}},[e("div",{staticClass:"inner"},[e("h1",[t._v("Please review and sign below if you want to join.")]),e("p",[t._v("I have read and understand the above information. All of my questions have been answered. I freely and willingly choose to take part in the mPower Progression Study. By signing this consent I have not given up any of my legal rights.")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],attrs:{placeholder:"Please type your full name here"},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}}),e("div",{staticClass:"buttons"},[e("b-button",{attrs:{variant:"primary"},on:{click:t.reject}},[t._v(" Disagree ")]),e("b-button",{attrs:{variant:"success",disabled:t.canSubmit},on:{click:t.accept}},[t._v(" Accept ")])],1)])])])])])])},as=[function(){var t=this,e=t._self._c;return e("section",{staticClass:"preamble-section"},[e("div",{staticClass:"preamble container"},[e("div",[e("h2",[t._v("mPower Progression Study")]),e("h3",[t._v("Consent and Authorization Contents")])])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"assertion container"},[e("div",[t._v("I understand:")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"will-use container"},[e("object",{attrs:{data:"/static/images/Step1.svg",type:"image/svg+xml"}}),e("div",[t._v("I will use the mPower app to answer questions and do short physical and cognitive activities. The app will help me track my symptoms, triggers, and medications.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"privacy container"},[e("object",{attrs:{data:"/static/images/Step2.svg",type:"image/svg+xml"}}),e("div",[t._v("My study data will be encrypted and transferred from my phone. It will be stored on Sage Bionetworks’ secure cloud-based database.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"sharing-scope container"},[e("object",{attrs:{data:"/static/images/Step4.svg",type:"image/svg+xml"}}),e("div",[t._v("I have the option to share my coded study data for future research. It is up to me. I can say yes or no.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"risks-benefits container"},[e("object",{attrs:{data:"/static/images/Step5.svg",type:"image/svg+xml"}}),e("div",[t._v("The main risk of participating in the mPower Progression Study is to my privacy and confidentiality. This risk is low but not zero. The main benefit is seeing the trends in my data over time.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"unpaid container"},[e("object",{attrs:{data:"/static/images/Step6.svg",type:"image/svg+xml"}}),e("div",[t._v("mPower Progression Study is a research study. The mPower app shouldn’t be used for diagnosis or treatment decision.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"not-medical container"},[e("object",{attrs:{data:"/static/images/Step7.svg",type:"image/svg+xml"}}),e("div",[t._v("I will not get paid for participating in this study. I will not receive any profit from the use of my data in this or future research.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"voluntary container"},[e("object",{attrs:{data:"/static/images/Step8.svg",type:"image/svg+xml"}}),e("div",[t._v("I can withdraw (quit) at any time for any reason. There is no penalty if I withdraw .")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"contact container"},[e("object",{attrs:{data:"/static/images/Step9.svg",type:"image/svg+xml"}}),e("div",[t._v("My contact information may be used to tell me about other studies.")])])])}],rs={name:"StudySign",data(){return{name:"",showSharing:!1,scope:""}},mounted(){this.init&&(this.name=this.init)},computed:{canSubmit(){return this.showSharing?""===this.scope:0===this.name.length}},methods:{reject(){this.$emit("valueChanged","disagree")},accept(){console.log(140,this.name),this.$emit("valueChanged",this.name)}}},ns=rs,os=(0,$.A)(ns,is,as,!1,null,"7a01fc37",null),ls=os.exports,cs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"IntegerInput"},[e("b-form",{ref:"form",attrs:{novalidate:!0},on:{submit:t.onSubmit}},[e("b-form-group",[e("b-form-input",{ref:"integerInput",class:{"is-invalid":!t.isValidEmail,"is-valid":t.isValidEmail},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}}),e("div",{staticClass:"invalid-feedback"},[t._v(" "+t._s(t.$t("invalid-email"))+" ")])],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},hs=[],us={name:"EmailInput",props:["constraints","init"],methods:{onSubmit(t){t.preventDefault(),this.$refs.form.className="was-validated",this.isValidEmail&&this.$emit("valueChanged",this.input)},isValid(t){return!!/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(t)}},computed:{isValidEmail(){return this.isValid(this.input)}},data(){return{input:null}},mounted(){this.init&&(this.input=this.init)}},ps=us,ds=(0,$.A)(ps,cs,hs,!1,null,null,null),ms=ds.exports,gs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"participantId"},[e("b-form",{on:{submit:t.onSubmit}},[e("b-form-group",[e("b-form-input",{model:{value:t.input,callback:function(e){t.input=e},expression:"input"}})],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},vs=[],bs={name:"ParticipantId",props:["constraints","init"],methods:{onSubmit(t){t.preventDefault(),this.$emit("valueChanged",this.input)}},data(){return{input:"",p_uuid:""}},computed:{getPId(){return this.$store.getters.getParticipantId}},mounted(){this.getPId?this.input=this.getPId:(this.p_uuid=(0,v.A)(),this.input=this.p_uuid),this.init&&(this.input=this.init)}},ys=bs,fs=(0,$.A)(ys,gs,vs,!1,null,null,null),ws=fs.exports,_s={name:"InputSelector",props:{reprotermsUrl:{type:String},inputType:{type:String},readOnly:{type:Boolean},title:{type:String},valueConstraints:{type:Object},fieldData:{type:Object},init:{},selected_language:{type:String},showPassOptions:{type:Object},showItemPassOptions:{type:Object},preamble:{type:String},ipAddress:{type:String}},components:{ParticipantId:ws,StudySign:ls,SaveData:ss,Radio:ct,AudioRecord:vt,TextInput:$t,TextArea:jt,EmailInput:ms,IntegerInput:Mt,FloatInput:Ft,RangeInput:Yt,DateInput:ee,DocumentUpload:oe,MultiTextInput:de,SliderInput:_e,TimeRange:Pe,SelectInput:Ue,StaticReadOnly:Ve},data(){return{}},methods:{skip(){this.$emit("skip")},dontKnow(){this.$emit("dontKnow")},sendData(t){t instanceof Date?this.$emit("valueChanged",t.getFullYear()):this.$emit("valueChanged",t),this.$emit("next")}}},xs=_s,ks=(0,$.A)(xs,Z,G,!1,null,null,null),$s=ks.exports,Ss=function(){var t=this,e=t._self._c;return e("div",[t.listShow.length?e("div",[t.preambleText?e("div",{staticClass:"preamble-text mb-2"},[e("strong",[t._v(" "+t._s(t.preambleText)+" ("+t._s(t.currentIndex+1)+" / "+t._s(t.context.length)+")")])]):t._e()]):e("div",[e("h1",[t._v(t._s(t.$t("loader"))+"...")])]),e("survey-item",{key:t.currentItem["@id"],attrs:{item:t.currentItem,index:t.currentIndex,init:t.responses[t.currentItem["@id"]],responses:t.responses,selected_language:t.selected_language,reprotermsUrl:t.reprotermsUrl,score:t.score,showPassOptions:t.showPassOptions},on:{skip:function(e){return t.nextQuestion(t.currentIndex,1,0)},dontKnow:function(e){return t.nextQuestion(t.currentIndex,0,1)},next:function(e){return t.nextQuestion(t.currentIndex,0)},setData:t.setResponse}}),null!==t.showPassOptions?e("div",{staticClass:"text-right mt-3"},[e("b-button",{attrs:{variant:"default"},on:{click:t.restart}},[t._v(t._s(t.$t("restart-button")))]),t.showPassOptions["dontKnow"]?e("b-button",{attrs:{variant:"default"},on:{click:t.dontKnow}},[t._v(t._s(t.$t("dont-know")))]):t._e(),t.showPassOptions["skip"]?e("b-button",{attrs:{variant:"default"},on:{click:t.skip}},[t._v(t._s(t.$t("skip")))]):t._e()],1):t._e()],1)},Cs=[],As={name:"MultiPart",props:{reprotermsUrl:{type:String},srcUrl:{type:String},progress:{type:Number},responses:{type:Object},selected_language:{type:String,default:"en"},showPassOptions:{type:Object}},data(){return{activity:{},listShow:[],parsedJSONLD:{},visibility:{},score:0,currentIndex:0}},components:{Loader:Je},mounted(){this.srcUrl&&this.getData()},methods:{getData(){y().expand(this.srcUrl).then((t=>{this.activity=t[0],this.listShow=[0],this.$nextTick((()=>{const t=d().filter(this.context,(t=>Object.keys(this.responses).indexOf(t["@id"])>-1));t.length?this.listShow=d().map(new Array(t.length+1),((t,e)=>e)):this.listShow=[0],this.visibility=this.getVisibility(this.responses)}))})).catch((t=>{}))},getVisibility(t){const e=this.responseMapper(t);if(!d().isEmpty(this.activity[`${this.reprotermsUrl}visibility`])){const t={};return d().map(this.activity[`${this.reprotermsUrl}visibility`],(s=>{let i=s["@value"];d().isString(s["@value"])&&(i=this.evaluateString(s["@value"],e)),e[s["@index"]]&&(t[e[s["@index"]].ref]=i)})),t}return{}},responseMapper(t){const e=d().map(this.order,(t=>t["@id"]));if(this.activity[`${this.reprotermsUrl}variableMap`]){const e=this.activity[`${this.reprotermsUrl}variableMap`][0]["@list"],s=d().map(e,(e=>{const s=e[`${this.reprotermsUrl}isAbout`][0]["@id"],i=e[`${this.reprotermsUrl}variableName`][0]["@value"],a=t[s];return{key:s,val:a,qId:i}})),i={};return d().map(s,(t=>{i[t.qId]={val:t.val,ref:t.key}})),i}const s=d().map(e,(e=>{const s=t[e],i=e.split("/"),a=i[i.length-1],r=a.split(".jsonld")[0];return{key:e,val:s,qId:r}})),i={};return d().map(s,(t=>{i[t.qId]={val:t.val,ref:t.key}})),i},evaluateString(t,e){const s=Object.keys(e);let i=t;return d().map(s,(t=>{let s=e[t].val;"skipped"!==s&&"dontknow"!==s?(d().isString(s)&&(s=`'${s}'`),i=i.replace(t,s)):i=i.replace(t,0)})),Function("return "+i)()},restart(){this.currentIndex=0,this.listShow=[0],this.$emit("clearResponses")},skip(t){this.$emit("skip",t)},dontKnow(){this.$emit("dontKnow")},updateProgress(){const t=this.context.length,e=Object.keys(this.responses).length/t*100;this.$emit("updateProgress",e),100===e&&this.$emit("valueChanged",this.responses)},setResponse(t,e){this.$emit("saveResponse",this.context[e]["@id"],t);const s={...this.responses};s[this.context[e]["@id"]]=t,this.updateProgress(),this.$forceUpdate()},nextQuestion(t,e,s){document.body.scrollTop=0,document.documentElement.scrollTop=0,e&&this.setResponse("skipped",t),s&&this.setResponse("dontKnow",t),this.currentIndext["@language"]===this.selected_language));return t[0]["@value"]}return""}}},Is=As,Ps=(0,$.A)(Is,Ss,Cs,!1,null,null,null),js=Ps.exports,Ds=function(){var t=this,e=t._self._c;return e("div",[t.listShow.length?e("div",[t.preambleText?e("div",{staticClass:"preamble-text mb-2"},[e("strong",[t._v(" "+t._s(t.preambleText)+" ")])]):t._e()]):e("div",[e("h1",[t._v(t._s(t.$t("loader"))+"...")]),e("Loader")],1),e("transition-group",{attrs:{name:"list",tag:"div",mode:"in-out"}},t._l(t.contextReverse,(function(s,i){return e("div",{key:s["@id"]+i,staticClass:"mt-3 mb-3"},[e("transition",{key:"t"+s["@id"],attrs:{name:"list"}},[t.shouldShow[i]?e("survey-item",{key:"c"+s["@id"],attrs:{item:s,index:t.contextReverse.length-i-1,init:t.responses[s["@id"]],responses:t.responses,selected_language:t.selected_language,showPassOptions:t.showPassOptions,reprotermsUrl:t.reprotermsUrl},on:{skip:function(e){return t.nextQuestion(t.contextReverse.length-i-1,1,0)},dontKnow:function(e){return t.nextQuestion(t.contextReverse.length-i-1,0,1)},next:function(e){return t.nextQuestion(t.contextReverse.length-i-1,0)},setData:t.setResponse}}):t._e()],1),e("b-modal",{ref:"invalid-token-modal",refInFor:!0,attrs:{"ok-only":"",title:"Helpline!","hide-footer":"","header-class":"justify-content-center"},model:{value:t.showModal,callback:function(e){t.showModal=e},expression:"showModal"}},[e("p",{staticClass:"contact"},[t._v("If you're thinking about suicide, are worried about a friend or loved one, or would like emotional support, there are resources available 24/7. Your call or text is confidential and free.")]),e("p",[t._v("Call the Suicide Prevention Lifeline in the United States:")]),e("p",[t._v("English: 1-800-273-8255")]),e("p",[t._v("Español: 1-888-628-9454")]),e("br"),e("p",[t._v("Text the Crisis TextLine through SMS:")]),e("p",[t._v("US or Canada: 741741")]),e("p",{staticClass:"contact"},[e("a",{attrs:{href:"https://www.messenger.com/login.php?next=https%3A%2F%2Fwww.messenger.com%2Ft%2F204427966369963%2F%3Fmessaging_source%3Dsource%253Apages%253Amessage_shortlink",target:"_blank"}},[t._v("Facebook Messenger")])]),e("p",[t._v("For other countries:")]),e("p",{staticClass:"contact"},[e("a",{attrs:{href:"https://www.befrienders.org",target:"_blank"}},[t._v("www.befrienders.org")])])])],1)})),0),null!==t.showPassOptions?e("div",{staticClass:"text-right mt-3"},[e("b-button",{attrs:{variant:"default"},on:{click:t.restart}},[t._v("Restart")]),t.showPassOptions["dontKnow"]?e("b-button",{attrs:{variant:"default"},on:{click:t.dontKnow}},[t._v("Don't Know")]):t._e(),t.showPassOptions["skip"]?e("b-button",{attrs:{variant:"default"},on:{click:t.skip}},[t._v("Skip")]):t._e()],1):t._e()],1)},Os=[],Rs=s(4038),Ts=s.n(Rs);i["default"].use(Ts());var Us={name:"Section",props:{reprotermsUrl:{type:String},srcUrl:{type:String},progress:{type:Number},responses:{type:Object},selected_language:{type:String,default:"en"},showPassOptions:{type:Object}},data(){return{activity:{},listShow:[],parsedJSONLD:{},visibility:{},scores:{},currentIndex:0,showModal:!1}},components:{Loader:Je},mounted(){this.srcUrl&&(this.getData(),this.t0=performance.now())},methods:{getData(){y().expand(this.srcUrl).then((t=>{this.activity=t[0],this.listShow=[0],this.$nextTick((()=>{const t=d().filter(this.context,(t=>Object.keys(this.responses).indexOf(t["@id"])>-1));t.length?this.listShow=d().map(new Array(t.length+1),((t,e)=>e)):this.listShow=[0],this.visibility=this.getVisibility(this.responses)}))}))},getVisibility(t){const e=this.responseMapper(t);if(!d().isEmpty(this.activity["http://schema.repronim.org/addProperties"])){const t={};return d().map(this.activity["http://schema.repronim.org/addProperties"],(s=>{let i=!0;s[`${this.reprotermsUrl}isVis`]&&(i=s[`${this.reprotermsUrl}isVis`][0]["@value"]),d().isString(i)&&(i=this.evaluateString(i,e)),e[s[`${this.reprotermsUrl}variableName`][0]["@value"]]&&(t[e[s[`${this.reprotermsUrl}variableName`][0]["@value"]].ref]=i)})),t}return{}},responseMapper(t){let e;if(this.activity["http://schema.repronim.org/addProperties"]){const s=this.activity["http://schema.repronim.org/addProperties"];e=d().map(s,(e=>{const s=e["http://schema.repronim.org/isAbout"][0]["@id"],i=e["http://schema.repronim.org/variableName"][0]["@value"],a=t[s];return{key:s,val:a,qId:i}}))}if(this.$store.getters.getQueryParameters){const t=this.$store.getters.getQueryParameters;Object.entries(t).forEach((([t,s])=>{const i=t;"week"===t&&(s=parseInt(s));const a=s;e.push({key:t,val:a,qId:i})}))}const s={};return d().map(e,(t=>{s[t.qId]={val:t.val,ref:t.key}})),s},evaluateString(t,e){const s=Object.keys(e);let i=t;return d().map(s,(t=>{let s=e[t].val;Array.isArray(e[t].val)&&(s=e[t].val[0]),"http://schema.repronim.org/Skipped"!==s&&"http://schema.repronim.org/DontKnow"!==s?(d().isString(s)&&(s=`'${s}'`),i=i.replace(new RegExp(`\\b${t}\\b`),s)):i=i.replace(new RegExp(`\\b${t}\\b`),0)})),Function("return "+i)()},restart(){this.currentIndex=0,this.listShow=[0],this.$emit("clearResponses")},skip(t){this.$emit("skip",t)},dontKnow(){this.$emit("dontKnow")},updateProgress(){let t=this.context.length;d().isEmpty(this.visibility)||(t=d().filter(this.visibility).length);const e=Object.keys(this.responses).length/t*100;this.$emit("updateProgress",e),100===e&&this.$emit("next")},setResponse(t,e){const s=this.context[e]["@id"],i=new Date,a=i.toISOString();let r=`${window.location.origin}`;window.location.pathname&&(r=`${r}${window.location.pathname}`);const n=(0,v.A)(),o=(0,v.A)(),l=(this.srcUrl,this.getAnsweredLanguage,this.t0,{"@context":"https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic","@type":"reproschema:Response","@id":`uuid:${o}`,wasAttributedTo:{"@id":this.$store.state.participantUuid},isAbout:s,value:t});this.participantId&&(l.wasAttributedTo.subject_id=this.participantId),this.$emit("saveResponse",this.context[e]["@id"],t);let c={};c[this.context[e]["@id"]]=t,this.$emit("valueChanged",c),this.t0=a;const h={...this.responses};h[this.context[e]["@id"]]=t instanceof Object?l.value:t,this.visibility=this.getVisibility(h),d().isEmpty(this.activity["http://schema.repronim.org/compute"])||(d().map(this.getScoring(this.responses),((t,e)=>{d().isNaN(t)||(this.scores[e]=t)})),d().isEmpty(this.scores)||this.$emit("saveScores",this.srcUrl,this.scores)),this.updateProgress(),this.$forceUpdate()},getScoring(t){const e=this.responseMapper(t);if(!d().isEmpty(this.activity["http://schema.repronim.org/compute"])){const t={};return d().map(this.activity["http://schema.repronim.org/compute"],(s=>{let i=s[`${this.reprotermsUrl}jsExpression`][0]["@value"];const a=s[`${this.reprotermsUrl}variableName`][0]["@value"];d().isString(i)&&(i=this.evaluateString(i,e)),e[a]&&(t[e[a].ref]=i)})),t}return{}},checkAlertMessage(t){const e=this.$store.getters.getProtocolSchema;let s=0;if(!s&&e["http://schema.repronim.org/overrideProperties"]);else if(!s&&e["http://schema.repronim.org/addProperties"]){let i=d().filter(e["http://schema.repronim.org/addProperties"],(e=>{e["http://schema.repronim.org/isAbout"][0]["@id"],this.context[t]["@id"]}));s=i.length?1:0}if(!s&&this.activity["http://schema.repronim.org/overrideProperties"]);else{d().filter(this.activity["http://schema.repronim.org/addProperties"],(e=>e["http://schema.repronim.org/isAbout"][0]["@id"]===this.context[t]["@id"]&&e["http://schema.repronim.org/message"]))}const i=this.context[t]["@id"].split("/");8===t&&"phq9_9"===i[i.length-1]&&this.responses[this.context[t]["@id"]]>0&&(this.showModal=!0)},nextQuestion(t,e,s){if(document.body.scrollTop=0,document.documentElement.scrollTop=0,this.checkAlertMessage(t),e&&this.setResponse("http://schema.repronim.org/Skipped",t),s&&this.setResponse("http://schema.repronim.org/DontKnow",t),this.$forceUpdate(),t>=this.listShow.length-1){const t=d().max(this.listShow)+1;this.listShow.push(t);for(let e=t;e{const s=this.listShow.indexOf(this.contextReverse.length-e-1)>=0;let i=!0;return d().isEmpty(this.visibility)||(i=this.visibility[t["@id"]]),s&&i}))},context(){if(this.activity["http://schema.repronim.org/order"]){const t=this.order();return t}return[{}]},contextReverse(){return this.context.length>0?this.context.slice().reverse():{}},preambleText(){if(this.activity[`${this.reprotermsUrl}preamble`]){const t=d().filter(this.activity[`${this.reprotermsUrl}preamble`],(t=>t["@language"]===this.selected_language));return t[0]["@value"]}return""},findPassOptions(){if(this.activity[this.reprotermsUrl+"allow"]){let t=!1,e=!1;return d().map(this.activity[`${this.reprotermsUrl}allow`][0]["@list"],(s=>{s["@id"]===`${this.reprotermsUrl}refused_to_answer`?t=!0:s["@id"]===`${this.reprotermsUrl}dont_know_answer`&&(e=!0)})),{skip:t,dontKnow:e}}return null}}},Ms=Us,Ls=(0,$.A)(Ms,Ds,Os,!1,null,null,null),Ns=Ls.exports,Es={name:"SurveyItem",props:{reprotermsUrl:{type:String},item:{type:Object},index:{type:Number},init:{},responses:{type:Object},selected_language:{type:String},clientIp:{type:String},showPassOptions:{type:Object},surveyStart:{type:Number},individualPassList:{type:Array}},components:{InputSelector:$s,multipart:js,subactivity:Ns,Loader:Je},data(){return{data:[],valueC:{},status:"loading",mp_responses:{},mp_progress:0,variant:null,requireVal:!1,itemAllow:{}}},computed:{style(){return"section"===this.ui||"multipart"===this.ui?{"border-color":"white","-webkit-box-flex":1,flex:"1 1 auto"}:{width:"100%"}},bodyStyle(){return"section"===this.ui||"multipart"===this.ui?{padding:0}:{}},ui(){return this.data["@type"]&&"http://schema.repronim.org/Activity"===this.data["@type"][0]?"section":this.data["http://schema.repronim.org/inputType"]?this.data["http://schema.repronim.org/inputType"][0]["@value"]:"N/A"},widgetType(){return!!this.data["http://schema.org/readonlyValue"]&&this.data["http://schema.org/readonlyValue"][0]["@value"]},title(){if(this.data["http://schema.org/question"]){const t=d().filter(this.data["http://schema.org/question"],(t=>t["@language"]===this.selected_language));if(!Array.isArray(t)||!t.length){const t=this.data["http://schema.org/question"][0]["@language"];return this.$store.dispatch("setAnsweredLanguage",t),this.data["http://schema.org/question"][0]["@value"]}return this.$store.dispatch("setAnsweredLanguage",t[0]["@language"]),t[0]["@value"]}return null},itemPreamble(){if(this.data["http://schema.repronim.org/preamble"]){const t=d().filter(this.data["http://schema.repronim.org/preamble"],(t=>t["@language"]===this.selected_language));return t[0]["@value"]}return null},valueConstraints(){return this.data["http://schema.repronim.org/responseOptions"]?this.valueC:{requiredValue:!1}},fieldData(){return this.data},findPassOptions(){if(this.data["http://schema.repronim.org/responseOptions"]){if(Object.keys(this.data["http://schema.repronim.org/responseOptions"][0]).indexOf("@id")>-1)return this.getRequiredVal(),this.requireVal;if(this.data["http://schema.repronim.org/responseOptions"][0]&&this.data["http://schema.repronim.org/responseOptions"][0]["http://schema.org/valueRequired"])return this.data["http://schema.repronim.org/responseOptions"][0]["http://schema.org/valueRequired"][0]["@value"]}return!1}},methods:{getRequiredVal(){y().expand(this.data["http://schema.repronim.org/responseOptions"][0]["@id"]).then((t=>{this.requireVal=t[0]["http://schema.org/valueRequired"][0]["@value"]})).catch((t=>{y().expand(`${this.data["http://schema.repronim.org/responseOptions"][0]["@id"]}.jsonld`).then((t=>{this.requireVal=t[0]["http://schema.org/valueRequired"][0]["@value"]})).catch((t=>{}))}))},getValueConstraintsData(t){y().expand(t).then((t=>{this.valueC=t[0]})).catch((e=>{y().expand(`${t}.jsonld`).then((t=>{this.valueC=t[0]})).catch((t=>{}))}))},processActivityData(t){t.length&&(this.data=t[0],this.data["http://schema.repronim.org/responseOptions"]?Object.keys(this.data["http://schema.repronim.org/responseOptions"][0]).indexOf("@id")>-1?this.getValueConstraintsData(this.data["http://schema.repronim.org/responseOptions"][0]["@id"]):this.valueC=this.data["http://schema.repronim.org/responseOptions"][0]:this.valueC={"@value":null},this.status="ready")},getData(){d().filter(this.individualPassList,(t=>{if(t["http://schema.repronim.org/isAbout"][0]["@id"]===this.item["@id"]){let e={};const s=d().filter(t["http://schema.repronim.org/allow"],(t=>"http://schema.repronim.org/Skipped"===t["@id"]));s.length?e["skip"]=!0:e["skip"]=!1;const i=d().filter(t["http://schema.repronim.org/allow"],(t=>"http://schema.repronim.org/DontKnow"===t["@id"]));i.length?e["dontKnow"]=!0:e["dontKnow"]=!1,this.itemAllow=e}})),y().expand(this.item["@id"],{onDownloadProgress(){}}).then((t=>{this.processActivityData(t)})).catch((t=>{y().expand(`${this.item["@id"]}.jsonld`).then((t=>{this.processActivityData(t)})).catch((t=>{}))}))},sendSkip(t){t&&(this.variant="warning"),this.$emit("skip")},sendDontKnow(){this.variant="info",this.$emit("dontKnow")},sendNext(){this.$emit("next")},sendData(t){this.variant=null,this.$emit("setData",t,this.index,this.mp_progress)},sendDataAndGoNext(t){this.variant=null,this.$emit("setData",t,this.index),this.sendNext()},setScore(t,e){this.$emit("setScores",e,this.index)},setMPResponse(t,e){this.mp_responses[t]=e},clearMPResponses(){this.mp_responses={},this.mp_progress=0,this.$emit("setData",{},this.index)},setMPProgress(t){this.mp_progress=t}},mounted(){this.getData(),this.init&&("skipped"===this.init?this.variant="warning":"dontKnow"===this.init&&(this.variant="info"))},watch:{item:{handler(){this.getData()},deep:!0}}},qs=Es,Vs=(0,$.A)(qs,Y,J,!1,null,"75865be5",null),Fs=Vs.exports;i["default"].component("survey-item",Fs);var zs={name:"Survey",props:["reprotermsUrl","srcUrl","responses","selected_language","progress","autoAdvance","actVisibility","nextActivity","ipAddress","participantID"],data(){return{activity:{},listShow:[],parsedJSONLD:{},visibility:{},scores:{},isSkip:!1,isDontKnow:!1,isVis:!1,individualPassList:[],downloadAndSubmit:j().downloadAndSubmit}},components:{Loader:Je},methods:{getData(){y().expand(this.srcUrl).then((t=>{this.activity=t[0],this.findIndividualPassOptions(),this.$nextTick((()=>{const t=d().filter(this.context,(t=>Object.keys(this.responses).indexOf(t["@id"])>-1));t.length?this.listShow=d().map(new Array(t.length+1),((t,e)=>e)):this.listShow=[this.initializeListShow()],this.visibility=this.getVisibility(this.responses)}))}))},findIndividualPassOptions(){this.activity["http://schema.repronim.org/addProperties"]&&(this.individualPassList=d().filter(this.activity["http://schema.repronim.org/addProperties"],(t=>{if(t.hasOwnProperty("http://schema.repronim.org/allow"))return t})))},initializeListShow(){const t=this.responseMapper(this.responses);let e=0;for(e=0;et["http://schema.repronim.org/isAbout"][0]["@id"]===s["@id"]));let a=!0;if(i[0]["http://schema.repronim.org/isVis"]&&(a=i[0]["http://schema.repronim.org/isVis"][0]["@value"]),d().isString(a)&&(a=this.evaluateString(a,t)),!0===a)break}return e},getScoring(t){const e=this.responseMapper(t);if(!d().isEmpty(this.activity["http://schema.repronim.org/compute"])){const t={};return d().map(this.activity["http://schema.repronim.org/compute"],(s=>{let i=s["http://schema.repronim.org/jsExpression"][0]["@value"];const a=s["http://schema.repronim.org/variableName"][0]["@value"];d().isString(i)&&(i=this.evaluateString(i,e)),e[a]&&(t[e[a].ref]=i)})),t}return{}},nextQuestion(t,e,s){if(document.body.scrollTop=0,document.documentElement.scrollTop=0,e&&(this.$emit("saveResponse",this.context[t]["@id"],"http://schema.repronim.org/Skipped"),this.setResponse("http://schema.repronim.org/Skipped",t)),s&&(this.$emit("saveResponse",this.context[t]["@id"],"http://schema.repronim.org/DontKnow"),this.setResponse("http://schema.repronim.org/DontKnow",t)),this.$forceUpdate(),t>=this.listShow.length-1){const t=d().max(this.listShow)+1;this.listShow.push(t);for(let e=t;e{const i=t.indexOf(this.contextReverse.length-s-1)>=0;let a=!0;return d().isEmpty(this.visibility)||(a=this.visibility[e["@id"]]),i&&a}))},setResponse(t,e,s=100){const i=this.context[e]["@id"];let a=t,r=[],n=i;if(d().isObject(t)&&!t.hasOwnProperty("unitCode")){const e=Object.keys(t)[0],s=Object.values(t)[0];a=s,r.push(e),n=e}r.push(`${i}`,`${this.srcUrl}`);const o=new Date,l=o.toISOString();let c=`${window.location.origin}`;window.location.pathname&&(c=`${c}${window.location.pathname}`);const h=(0,v.A)(),u=(0,v.A)(),p={"@context":"https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic","@type":"reproschema:ResponseActivity","@id":`uuid:${h}`,used:r,inLanguage:this.getAnsweredLanguage,startedAtTime:this.t0,endedAtTime:l,wasAssociatedWith:{version:"0.0.1",url:c,"@id":"https://github.com/ReproNim/reproschema-ui"},generated:`uuid:${u}`},m={"@context":"https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic","@type":"reproschema:Response","@id":`uuid:${u}`,wasAttributedTo:{"@id":this.$store.state.participantUuid},isAbout:n,value:a};this.participantId&&(m.wasAttributedTo.subject_id=this.participantId);const g=[t,p,m];this.$emit("saveResponse",this.context[e]["@id"],g),this.t0=l;const b={...this.responses};b[this.context[e]["@id"]]=t instanceof Object?m.value:t,this.visibility=this.getVisibility(b),d().isEmpty(this.activity["http://schema.repronim.org/compute"])||(d().map(this.getScoring(this.responses),((t,e)=>{d().isNaN(t)||(this.scores[e]=t)})),d().isEmpty(this.scores)||this.$emit("saveScores",this.srcUrl,this.scores)),this.updateProgress(s)},setScore(t,e){this.$emit("saveScores",this.context[e]["@id"],t)},restart(){this.$emit("clearResponses"),this.listShow=[this.initializeListShow()]},evaluateString(t,e){const s=Object.keys(e);let i=t;return d().map(s,(s=>{let a=e[s].val;"http://schema.repronim.org/Skipped"!==a&&"http://schema.repronim.org/DontKnow"!==a?(d().isString(a)?a=`'${a}'`:d().isArray(a)?a=`[${a}]`:!a&&t.includes("includes")&&(a="[]"),i=i.replace(new RegExp(`\\b${s}\\b`),a)):i=i.replace(new RegExp(`\\b${s}\\b`),0)})),Function("return "+i)()},responseMapper(t){let e;if(this.activity["http://schema.repronim.org/addProperties"]){const s=this.activity["http://schema.repronim.org/addProperties"];e=d().map(s,(e=>{const s=e["http://schema.repronim.org/isAbout"][0]["@id"],i=e["http://schema.repronim.org/variableName"][0]["@value"],a=t[s];return{key:s,val:a,qId:i}}))}const s={};if(d().map(e,(t=>{s[t.qId]={val:t.val,ref:t.key}})),this.$store.state.responseMap[this.activity["@id"]]=s,this.$store.getters.getQueryParameters){const t=this.$store.getters.getQueryParameters;Object.entries(t).forEach((([t,s])=>{const i=t;"week"===t&&(s=parseInt(s));const a=s;e.push({key:t,val:a,qId:i})}))}const i={};return d().map(e,(t=>{i[t.qId]={val:t.val,ref:t.key}})),i},getVisibility(t){const e=this.responseMapper(t);if(!d().isEmpty(this.activity["http://schema.repronim.org/addProperties"])){const t={};return d().map(this.activity["http://schema.repronim.org/addProperties"],(s=>{let i=!0;s["http://schema.repronim.org/isVis"]&&(i=s["http://schema.repronim.org/isVis"][0]["@value"]),d().isString(i)&&(i=this.evaluateString(i,e)),e[s["http://schema.repronim.org/variableName"][0]["@value"]]&&(t[e[s["http://schema.repronim.org/variableName"][0]["@value"]].ref]=i)})),t}return{}},updateProgress(t=100){let e=this.context.length;d().isEmpty(this.visibility)||(e=0,d().map(this.context,(t=>{t["@id"]in this.visibility&&this.visibility[t["@id"]]&&(e+=1)})));const s=(Object.keys(this.responses).length-1+t/100)/e*100;this.$emit("updateProgress",s)},order(){if(this.activity["http://schema.repronim.org/shuffle"]&&this.activity["http://schema.repronim.org/shuffle"][0]["@value"]){const t=this.activity["http://schema.repronim.org/order"][0]["@list"],e=d().shuffle(t);return e}return this.activity["http://schema.repronim.org/order"][0]["@list"]},nextActivity1(){this.uploadZipData();const t=parseInt(this.$store.state.activityIndex),e=d().map(this.actVisibility,((t,e)=>!0===t?e:"")).filter(String),s=e[e.indexOf(t)+1];this.$route.query.url?this.$router.push(`/activities/${s}?url=${this.$route.query.url}`):this.$router.push(`/activities/${s}`)},uploadZipData(){const t=this.$store.state.exportResponses,e=this.$store.state.scores,s=this.$store.state.participantId,i={response:t,scores:e,participantId:s};this.formatData(i)},formatData(t){const e=parseInt(this.$store.state.activityIndex);console.log(464,"data response: ",t.response[e]);const s=this.$store.getters.getAuthToken,i=this.$store.state.expiryMinutes,a=new(g()),r=`${(0,v.A)()}-${this.participantId}-activity${e}`;d().map(t.response[e],(t=>{const e={...t};if("reproschema:Response"===t["@type"]&&t.value instanceof Blob){const s=t.isAbout.split("/"),i=t["@id"].split("uuid:")[1];a.folder(r).file(`${s[s.length-1]}-${i}.wav`,t.value),e.value=`${s[s.length-1]}-${i}.wav`}})),a.folder(r).file(`activity_${e}.jsonld`,JSON.stringify(t.response[e],null,4)),a.generateAsync({type:"blob"}).then((t=>{const e=new FormData;e.append("file",t,`${r}.zip`),e.append("auth_token",`${s}`),e.append("expires",`${i}`),this.sendRetry(`${j().backendServer}/submit`,e)}))},async sendRetry(t,e,s=3,i=1e4){const a={"Content-Type":"multipart/form-data"};try{await o.A.post(`${j().backendServer}/submit`,e,a)}catch(r){s>0?setTimeout((()=>this.sendRetry(t,e,s-1,2*i)),i):console.log(r.response.status)}}},watch:{$route(){this.getData(),this.readyForActivity&&this.$store&&this.$store.dispatch("getActivityData")},actVisibility:{deep:!0,handler(t){this.isVis=d().some(t)}},listContentRev(){this.$forceUpdate()},listShow(){this.updateProgress()},srcUrl(){this.srcUrl&&this.getData()},readyForActivity(){this.readyForActivity&&this.$store&&this.$store.dispatch("getActivityData")},storeContext(){this.$store&&this.$store.dispatch("setActivityList",this.storeContext)}},computed:{complete(){return this.progress>=100},getAnsweredLanguage(){return this.$store.getters.getAnsweredLanguage},storeContext(){if(this.$store){const t=this.$store.state;if(t.activities.length&&null!=t.activityIndex&&t.activities[t.activityIndex].activity){const e=t.activities[t.activityIndex].activity,s=e["http://schema.repronim.org/order"][0]["@list"];return s}}return[{}]},shouldShow(){return d().map(this.contextReverse,((t,e)=>{const s=this.listShow.indexOf(this.contextReverse.length-e-1)>=0;let i=!0;return d().isEmpty(this.visibility)||(i=this.visibility[t["@id"]]),s&&i}))},context(){if(this.activity["http://schema.repronim.org/order"]){const t=this.order();return t}return[{}]},contextReverse(){return this.context.length>0?this.context.slice().reverse():{}},preambleText(){if(this.activity["http://schema.repronim.org/preamble"]){const t=d().filter(this.activity["http://schema.repronim.org/preamble"],(t=>t["@language"]===this.selected_language));return Array.isArray(t)&&t.length?t[0]["@value"]:this.activity["http://schema.repronim.org/preamble"][0]["@value"]}return""},readyForActivity(){if(this.$store)return this.$store.getters.readyForActivity},findOverallPassOptions(){if(this.activity["http://schema.repronim.org/allow"]){let t=!1,e=!1;return d().map(this.activity["http://schema.repronim.org/allow"][0]["@list"],(s=>{"http://schema.repronim.org/Skipped"===s["@id"]?t=!0:"http://schema.repronim.org/DontKnow"===s["@id"]&&(e=!0)})),{skip:t,dontKnow:e}}return null},activityUrl(){return this.srcUrl},currentActivityIndex(){return parseInt(this.$store.state.activityIndex)},participantId(){return this.$store.state.participantId},getparticipantUUID(){return this.$store.getters.getparticipantUUID}},mounted(){this.srcUrl&&this.getData();const t=new Date;this.t0=t.toISOString()}},Ks=zs,Bs=(0,$.A)(Ks,H,Q,!1,null,"6efaf872",null),Hs=Bs.exports,Qs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"docked-layout"},[t.selectedContent?e("section",{staticClass:"smooth-scroller",staticStyle:{"padding-top":"0"},attrs:{id:"smooth-scroller"}},[e("vue-markdown",{attrs:{source:t.selectedContent.content}})],1):e("Loader"),e("p",{staticClass:"button-para"},[e("button",{staticClass:"join-button",on:{click:t.doNext}},[t._v(t._s(t.$t("join-button")))])])],1)},Ys=[],Js=s(9806),Zs=s.n(Js),Gs={name:"Landing",props:{selected_language:{type:String},nextActivity:{type:Object},actVisibility:{type:Array}},components:{VueMarkdown:Zs(),Loader:Je},data(){return{content:{},consent:j().consent}},computed:{reprotermsUrl(){return this.$store.getters.getTermsUrl},selectedContent(){const t=d().filter(this.$store.state.landing,(t=>t["@language"]===this.selected_language));return d().isEmpty(t)?this.$store.state.landing[0]:t[0]},activityUrl(){return this.srcUrl}},methods:{doBack(){this.step>1&&(this.step-=1)},doNext(){const t=parseInt(this.$store.state.activityIndex),e=d().map(this.actVisibility,((t,e)=>!0===t?e:"")).filter(String),s=e[e.indexOf(t)+1];this.$route.query.url?this.$router.push(`/activities/${s}?url=${this.$route.query.url}`):this.$router.push(`/activities/${s}`)}}},Ws=Gs,Xs=(0,$.A)(Ws,Qs,Ys,!1,null,"7ef4112c",null),ti=Xs.exports,ei=function(){var t=this,e=t._self._c;return e("div",{staticClass:"docked-layout"},[e("section",[e("div",{staticClass:"container"},[e("div",{directives:[{name:"show",rawName:"v-show",value:1===t.step,expression:"step === 1"}],staticClass:"screen"},[e("div",{staticClass:"panel"},[e("BridgeImage",{attrs:{src:"static/images/about%20the%20study.svg"}}),e("h3",[t._v("About the study")]),e("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eu sagittis leo, sit amet consectetur mi. Donec volutpat rutrum massa et luctus. Fusce ac dui quam. Nam a nibh porttitor, tincidunt libero id, condimentum velit. Praesent ultricies consectetur nulla vel pharetra. ")])],1)]),e("div",{directives:[{name:"show",rawName:"v-show",value:2===t.step,expression:"step === 2"}],staticClass:"screen"},[e("div",{staticClass:"panel"},[e("BridgeImage",{attrs:{src:"static/images/procedures%20activities.svg"}}),e("h3",[t._v("How does the study work?")]),t._m(0)],1)]),e("div",{directives:[{name:"show",rawName:"v-show",value:3===t.step,expression:"step === 3"}],staticClass:"screen"},[e("div",{staticClass:"panel"},[e("BridgeImage",{attrs:{src:"static/images/how%20long%20does%20it%20last.svg"}}),e("h3",[t._v("How long does it last?")]),e("p",[t._v("We will ask you to participate for 2 weeks every three months. We would like you to participate for 2 years, but you can participate as long as you like.")])],1)]),e("div",{directives:[{name:"show",rawName:"v-show",value:4===t.step,expression:"step === 4"}],staticClass:"screen"},[e("div",{staticClass:"panel"},[e("BridgeImage",{attrs:{src:"static/images/benefits%20and%20risks.svg"}}),e("h3",[t._v("What are the benefits and risks?")]),e("p",[t._v("You may not directly benefit from taking part but seeing trends in your data may be interesting to you. You may help researchers better understand PD.")]),e("p",[t._v("The main risk is to your privacy by an accidental release of your data. You may find some of the activities tiring and seeing your data may be stressful.")])],1)])])]),e("div",{staticClass:"buttons"},[e("button",{attrs:{disabled:1===this.step},on:{click:t.doBack}},[t._v("Back")]),e("button",{on:{click:t.doNext}},[t._v(t._s(t.nextName))])])])},si=[function(){var t=this,e=t._self._c;return e("p",[t._v(" 1. Answer questions to determine if you are eligible for this study "),e("br"),t._v(" 2. Complete the informed consent process & download the app"),e("br"),t._v(" 3. Complete a one-time health survey"),e("br"),t._v(" 4. Complete short physical and cognitive activities "),e("br"),t._v(" 5. Track your symptoms, triggers, and medications ")])}],ii={name:"StudyIntroduction",data(){return{step:1,totalSteps:4}},computed:{nextName(){return this.step===this.totalSteps?"Start":"Next"},appletURL(){return"https://raw.githubusercontent.com/ReproNim/reproschema/master/activity-sets/VoicePilot/VoicePilot_schema"},redirect(){return{name:"Applet",params:{appletId:this.appletURL},query:{...this.query,consent:!0}}}},methods:{doBack(){this.step>1&&(this.step-=1)},doNext(){this.step{e.query.auth_token&&!t.query.auth_token||e.query.uid&&!t.query.uid?e.path===t.path?s(!1):s({path:t.path,query:e.query}):s()}));var li=oi,ci=s(5353);window.jsonld=y(),i["default"].use(ci.Ay);const hi={schema:{},progress:[],responses:[],responseMap:{},exportResponses:[],scores:{},participantId:"",activities:[],activityIndex:null,storeReady:!1,activityReady:!1,termUrl:"http://schema.repronim.org/",schemaType:"",answeredLanguage:"",participantUuid:"",expiryMinutes:null,queryParams:{},token:null,landing:[],hasExport:!1},ui={getParticipantId(t){return t.participantId},getschemaType(t){return t.schemaType},getTermsUrl(t){return t.termUrl},getLand(t){return t.landing},srcUrl(t){return!d().isEmpty(t.schema)&&t.activityIndex?(t.schemaType=t.schema["@type"][0].split("/").slice(-1)[0],"Activity"===t.schemaType?t.schema["@id"]:t.schema[`${t.termUrl}order`][0]["@list"][t.activityIndex]["@id"]):null},readyForActivity(t){return t.storeReady&&t.activityReady},getAnsweredLanguage(t){return t.answeredLanguage},getProtocolSchema(t){return t.schema},getQueryParameters(t){return t.queryParams},getAuthToken(t){return t.token},getHasExport(t){return t.hasExport},getExpiryTime(t){return t.expiryMinutes}},pi={async setReprotermUrl(t,e){o.A.get(e).then((e=>{const s=e.data["@context"];o.A.get(s).then((e=>{t.termUrl="http://schema.repronim.org/"}))}))},async setBaseSchema(t,e){if(t.schema=e[0],t.progress=d().map(e[0][`${t.termUrl}order`][0]["@list"],(()=>0)),t.responses=d().map(e[0][`${t.termUrl}order`][0]["@list"],(()=>({}))),t.exportResponses=d().map(e[0][`${t.termUrl}order`][0]["@list"],(()=>[])),t.scores=d().map(e[0][`${t.termUrl}order`][0]["@list"],(()=>({}))),t.activities=d().map(e[0][`${t.termUrl}order`][0]["@list"],(()=>({}))),t.storeReady=!0,t.schema["http://schema.repronim.org/landingPage"]){const e=t.schema["http://schema.repronim.org/landingPage"],s=e.map((async t=>{const e={},s=await o.A.get(t["@id"]);return e["@language"]=t["http://schema.org/inLanguage"][0]["@value"],e.content=s.data,e}));t.landing=await Promise.all(s)}},setActivityIndex(t,e){t.activityIndex=e,t.activityReady=!0},setAuthToken(t,e){t.token=e},setParticipantUUID(t,e){t.participantUuid=e},setExpiryMinutes(t,e){t.expiryMinutes=e},setQueryParameters(t,e){t.queryParams=e},saveResponse(t,{key:e,value:s}){const i=s[0],a=s[1],r=s[2];t.responses[t.activityIndex][e]=i,t.exportResponses[t.activityIndex].push(a,r)},saveScores(t,{key:e,scoreObj:s}){t.scores[t.activityIndex][e]=s},saveParticipantId(t,e){t.participantId=e},updateProgress(t,e){t.progress[t.activityIndex]=e},setActivityData(t,e){t.activities[t.activityIndex].activity=e[0],t.activities[t.activityIndex].listShow=[0]},setListShow(t,e){t.activities[t.activityIndex].listShow=e},setAnsweredLanguage(t,e){t.answeredLanguage=e},setActivityList(t,e){t.activities[t.activityIndex]&&(t.activities[t.activityIndex].activityList=e)},clearResponses(t,e){t.responses[e]={},t.progress[e]=0},setExport(t,e){t.hasExport=e}},di={async getReproTerm({commit:t},e){t("setReprotermUrl",e)},async getBaseSchema({commit:t},e){t("setBaseSchema",await y().expand(e||j().githubSrc))},async setActivityIndex({commit:t},e){t("setActivityIndex",e)},saveParticipantId({commit:t},e){t("saveParticipantId",e)},saveResponse({commit:t},{key:e,value:s}){t("saveResponse",{key:e,value:s})},saveScores({commit:t},{key:e,scoreObj:s}){t("saveScores",{key:e,scoreObj:s})},updateProgress({commit:t},e){t("updateProgress",e)},async getActivityData({commit:t,getters:e}){return t("setActivityData",await y().expand(e.srcUrl))},updateListShow({commit:t},e){t("setListShow",e)},setAnsweredLanguage({commit:t},e){t("setAnsweredLanguage",e)},setActivityList({commit:t},e){t("setActivityList",e)},clearResponses({commit:t},e){t("clearResponses",e)},setParticipantUUID({commit:t},e){t("setParticipantUUID",e)},setAuthToken({commit:t},e){t("setAuthToken",e)},setExpiryMinutes({commit:t},e){t("setExpiryMinutes",e)},setQueryParameters({commit:t},e){t("setQueryParameters",e)},setExport({commit:t},e){t("setExport",e)}};var mi=new ci.Ay.Store({state:hi,getters:ui,mutations:pi,actions:di});i["default"].config.productionTip=!1,new i["default"]({el:"#app",store:mi,router:li,components:{App:K},i18n:L,render:t=>t(K)})},5358:function(t,e,s){var i={"./af":5177,"./af.js":5177,"./ar":1509,"./ar-dz":1488,"./ar-dz.js":1488,"./ar-kw":8676,"./ar-kw.js":8676,"./ar-ly":2353,"./ar-ly.js":2353,"./ar-ma":4496,"./ar-ma.js":4496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":2682,"./ar-sa.js":2682,"./ar-tn":9756,"./ar-tn.js":9756,"./ar.js":1509,"./az":5533,"./az.js":5533,"./be":8959,"./be.js":8959,"./bg":7777,"./bg.js":7777,"./bm":4903,"./bm.js":4903,"./bn":1290,"./bn-bd":7357,"./bn-bd.js":7357,"./bn.js":1290,"./bo":1545,"./bo.js":1545,"./br":1470,"./br.js":1470,"./bs":4429,"./bs.js":4429,"./ca":7306,"./ca.js":7306,"./cs":6464,"./cs.js":6464,"./cv":3635,"./cv.js":3635,"./cy":4226,"./cy.js":4226,"./da":3601,"./da.js":3601,"./de":7853,"./de-at":6111,"./de-at.js":6111,"./de-ch":4697,"./de-ch.js":4697,"./de.js":7853,"./dv":708,"./dv.js":708,"./el":4691,"./el.js":4691,"./en-au":3872,"./en-au.js":3872,"./en-ca":8298,"./en-ca.js":8298,"./en-gb":6195,"./en-gb.js":6195,"./en-ie":6584,"./en-ie.js":6584,"./en-il":5543,"./en-il.js":5543,"./en-in":9033,"./en-in.js":9033,"./en-nz":9402,"./en-nz.js":9402,"./en-sg":3004,"./en-sg.js":3004,"./eo":2934,"./eo.js":2934,"./es":7650,"./es-do":838,"./es-do.js":838,"./es-mx":7730,"./es-mx.js":7730,"./es-us":6575,"./es-us.js":6575,"./es.js":7650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":527,"./fi.js":527,"./fil":5995,"./fil.js":5995,"./fo":2477,"./fo.js":2477,"./fr":5498,"./fr-ca":6435,"./fr-ca.js":6435,"./fr-ch":7892,"./fr-ch.js":7892,"./fr.js":5498,"./fy":7071,"./fy.js":7071,"./ga":1734,"./ga.js":1734,"./gd":217,"./gd.js":217,"./gl":7329,"./gl.js":7329,"./gom-deva":2124,"./gom-deva.js":2124,"./gom-latn":3383,"./gom-latn.js":3383,"./gu":5050,"./gu.js":5050,"./he":1713,"./he.js":1713,"./hi":3861,"./hi.js":3861,"./hr":6308,"./hr.js":6308,"./hu":609,"./hu.js":609,"./hy-am":7160,"./hy-am.js":7160,"./id":4063,"./id.js":4063,"./is":9374,"./is.js":9374,"./it":8383,"./it-ch":1827,"./it-ch.js":1827,"./it.js":8383,"./ja":3827,"./ja.js":3827,"./jv":9722,"./jv.js":9722,"./ka":1794,"./ka.js":1794,"./kk":7088,"./kk.js":7088,"./km":6870,"./km.js":6870,"./kn":4451,"./kn.js":4451,"./ko":3164,"./ko.js":3164,"./ku":8174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":8174,"./ky":8474,"./ky.js":8474,"./lb":9680,"./lb.js":9680,"./lo":5867,"./lo.js":5867,"./lt":5766,"./lt.js":5766,"./lv":9532,"./lv.js":9532,"./me":8076,"./me.js":8076,"./mi":1848,"./mi.js":1848,"./mk":306,"./mk.js":306,"./ml":3739,"./ml.js":3739,"./mn":9053,"./mn.js":9053,"./mr":6169,"./mr.js":6169,"./ms":3386,"./ms-my":2297,"./ms-my.js":2297,"./ms.js":3386,"./mt":7075,"./mt.js":7075,"./my":2264,"./my.js":2264,"./nb":2274,"./nb.js":2274,"./ne":8235,"./ne.js":8235,"./nl":2572,"./nl-be":3784,"./nl-be.js":3784,"./nl.js":2572,"./nn":4566,"./nn.js":4566,"./oc-lnc":9330,"./oc-lnc.js":9330,"./pa-in":9849,"./pa-in.js":9849,"./pl":4418,"./pl.js":4418,"./pt":9834,"./pt-br":8303,"./pt-br.js":8303,"./pt.js":9834,"./ro":4457,"./ro.js":4457,"./ru":2271,"./ru.js":2271,"./sd":1221,"./sd.js":1221,"./se":3478,"./se.js":3478,"./si":7538,"./si.js":7538,"./sk":5784,"./sk.js":5784,"./sl":6637,"./sl.js":6637,"./sq":6794,"./sq.js":6794,"./sr":5719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":5719,"./ss":6e3,"./ss.js":6e3,"./sv":1011,"./sv.js":1011,"./sw":748,"./sw.js":748,"./ta":1025,"./ta.js":1025,"./te":1885,"./te.js":1885,"./tet":8861,"./tet.js":8861,"./tg":6571,"./tg.js":6571,"./th":5802,"./th.js":5802,"./tk":9527,"./tk.js":9527,"./tl-ph":9231,"./tl-ph.js":9231,"./tlh":1052,"./tlh.js":1052,"./tr":5096,"./tr.js":5096,"./tzl":9846,"./tzl.js":9846,"./tzm":1765,"./tzm-latn":7711,"./tzm-latn.js":7711,"./tzm.js":1765,"./ug-cn":8414,"./ug-cn.js":8414,"./uk":6618,"./uk.js":6618,"./ur":158,"./ur.js":158,"./uz":7609,"./uz-latn":2475,"./uz-latn.js":2475,"./uz.js":7609,"./vi":1135,"./vi.js":1135,"./x-pseudo":4051,"./x-pseudo.js":4051,"./yo":2218,"./yo.js":2218,"./zh-cn":2648,"./zh-cn.js":2648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":1541,"./zh-mo.js":1541,"./zh-tw":304,"./zh-tw.js":304};function a(t){var e=r(t);return s(e)}function r(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id=5358},5432:function(t,e,s){var i={"./en.json":4174,"./es.json":6725};function a(t){var e=r(t);return s(e)}function r(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id=5432},400:function(t,e,s){"use strict";t.exports=s.p+"img/403-Access-Forbidden-HTML-Template.e2da77e6.gif"},6425:function(t,e,s){"use strict";t.exports=s.p+"img/audio-permission-setting-chrome.c361007d.gif"},2370:function(t,e,s){"use strict";t.exports=s.p+"img/audio-permission-setting-firefox.e079f901.gif"},1823:function(t,e,s){"use strict";t.exports=s.p+"img/audio-permission-setting-safari.c982a870.gif"},4174:function(t){"use strict";t.exports=JSON.parse('{"join-button":"Join","start-button":"Start","stop-button":"Stop","pause-button":"Pause","play-button":"Play","finish-button":"Finish","redo-recording":"Redo Recording","continue":"Continue","record-button":"Record","x-seconds-left":"seconds left","next-button":"Next","upload-button":"Upload","download-and-submit-button":"Download & Submit","export-button":"Download","submit-button":"Submit","restart-button":"Restart","dont-know":"Don\'t know","skip":"Skip","unit":"unit","audio-support-msg":"Oh no, your browser doesn\'t support audio!","invalid-email":"Invalid Email Address","select-invalid-query":"Oops! No elements found. Consider changing the search query.","invalid-feedback-number":"Please enter a number","timeout-message":"Please contact the researchers for a new submission link with an email to","input-selector-alert":"This item does not have a title defined","loader":"Loading","review-and-next":"Click \\"Next\\" below:","save-data":"Please save your data now.","export-and-finish":"Please click \\"Finish\\" below to submit your responses. You can additionally click the \\"Download\\" button on sidebar if you wish to download a personal copy of your data.","finish":"Click below to finish.","home-button":"Home","help-button":"Help","select-year":"Select year","prepare-upload":"Preparing for upload.. ","upload-message":"Uploading... This generally takes a few seconds for fast connections or longer depending on your connection speed","safari-notification":"Your microphone does not work with Chrome. Please copy the link from the email and paste it into a Safari browser.","permission-refresh":"If you already changed permissions you need to refresh the page.","permission-change-notification":"Please change your browser\'s microphone permissions in order to answer these questions."}')},6725:function(t){"use strict";t.exports=JSON.parse('{"join-button":"Participar","start-button":"Comenzar","stop-button":"Parar","pause-button":"Pausar","play-button":"Reproducir","finish-button":"Terminar","redo-recording":"Rehacer grabación","continue":"Continuar","record-button":"Grabar","x-seconds-left":"segundos restantes","next-button":"Siguiente","upload-button":"Enviar","download-and-submit-button":"Descargar & Enviar","export-button":"Descargar","submit-button":"Enviar","restart-button":"Reiniciar","dont-know":"No sé","skip":"Saltear","unit":"unit_es","audio-support-msg":"Uy! Su navegador no puede grabar audio!","invalid-email":"Email incorrecto","select-invalid-query":"Uy! Ningún elemento se encontró. Considere cambiar la búsqueda.","invalid-feedback-number":"Por favor ingrese un número","timeout-message":"Por favor contacte a los investigadores para un nuevo enlace escribiendo un email a","input-selector-alert":"Este ítem no tiene título","loader":"Cargando","review-and-next":"Haga click en Siguiente para continuar:","save-data":"Por favor guarde sus respuestas ahora.","export-and-finish":"Puede hacer click en el botón Descargar en el menú si desea guardar sus respuestas. Para terminar, haga click en Enviar.","finish":"Para terminar, haga click en Enviar.","home-button":"Inicio","help-button":"Ayuda","select-year":"Seleccione el año","upload-message":"Enviando... Esto generalmente demora un par de segundos para conexiones veloces o más dependiendo de su velocidad de conexión","safari-notification":"Micrófono no funciona con Chrome. Por favor copie el enlace del mail y péguelo en Safari","permission-refresh":"If you already changed permissions you need to refresh the page.","permission-change-notification":"Please change your browser\'s microphone permissions in order to answer these questions."}')}},e={};function s(i){var a=e[i];if(void 0!==a)return a.exports;var r=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=t,function(){var t=[];s.O=function(e,i,a,r){if(!i){var n=1/0;for(h=0;h=r)&&Object.keys(s.O).every((function(t){return s.O[t](i[l])}))?i.splice(l--,1):(o=!1,r0&&t[h-1][2]>r;h--)t[h]=t[h-1];t[h]=[i,a,r]}}(),function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){s.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){s.p="/reproschema-ui/"}(),function(){var t={524:0};s.O.j=function(e){return 0===t[e]};var e=function(e,i){var a,r,n=i[0],o=i[1],l=i[2],c=0;if(n.some((function(e){return 0!==t[e]}))){for(a in o)s.o(o,a)&&(s.m[a]=o[a]);if(l)var h=l(s)}for(e&&e(i);c\n \n \n \n \n\n \n\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Circle.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Circle.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Circle.vue?vue&type=template&id=2ea6bd53\"\nimport script from \"./Circle.vue?vue&type=script&lang=js\"\nexport * from \"./Circle.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.statusType !== 'expired')?_c('div',[_c('div',{staticClass:\"day\"},[_c('span',{staticClass:\"number\"},[_vm._v(_vm._s(_vm.days))]),_c('div',{staticClass:\"format\"},[_vm._v(_vm._s(_vm.wordString.day))])]),_c('div',{staticClass:\"hour\"},[_c('span',{staticClass:\"number\"},[_vm._v(_vm._s(_vm.hours))]),_c('div',{staticClass:\"format\"},[_vm._v(_vm._s(_vm.wordString.hours))])]),_c('div',{staticClass:\"min\"},[_c('span',{staticClass:\"number\"},[_vm._v(_vm._s(_vm.minutes))]),_c('div',{staticClass:\"format\"},[_vm._v(_vm._s(_vm.wordString.minutes))])]),_c('div',{staticClass:\"sec\"},[_c('span',{staticClass:\"number\"},[_vm._v(_vm._s(_vm.seconds))]),_c('div',{staticClass:\"format\"},[_vm._v(_vm._s(_vm.wordString.seconds))])])]):_vm._e(),_c('div',{staticClass:\"message\",class:_vm.statusType},[_vm._v(_vm._s(_vm.message))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Timer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Timer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Timer.vue?vue&type=template&id=e52dacec&scoped=true\"\nimport script from \"./Timer.vue?vue&type=script&lang=js\"\nexport * from \"./Timer.vue?vue&type=script&lang=js\"\nimport style0 from \"./Timer.vue?vue&type=style&index=0&id=e52dacec&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e52dacec\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue';\nimport VueI18n from 'vue-i18n';\nimport config from './config';\n\nVue.use(VueI18n);\n\nfunction loadLocaleMessages () {\n const locales = require.context('./locales', true, /[A-Za-z0-9-_,\\s]+\\.json$/i);\n const messages = {};\n locales.keys().forEach(key => {\n const matched = key.match(/([A-Za-z0-9-_]+)\\./i);\n if (matched && matched.length > 1) {\n const locale = matched[1];\n if (config.startButton instanceof Object) {\n locales(key)['join-button'] = config.startButton[locale];\n } else {\n locales(key)['join-button'] = config.startButton;\n }\n if (config.banner instanceof Object) {\n locales(key)['banner-message'] = config.banner[locale];\n } else {\n locales(key)['banner-message'] = config.banner;\n }\n\n messages[locale] = locales(key)\n }\n });\n return messages\n}\n\nexport default new VueI18n({\n locale: process.env.VUE_APP_I18N_LOCALE || 'en',\n fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',\n messages: loadLocaleMessages()\n})\n","\n\n\n\n\n\n\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=7f5df97a\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=7f5df97a&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"hello\"},[(!_vm.listShow.length)?_c('div',[_c('h1',[_vm._v(_vm._s(_vm.$t('loader'))+\"...\")]),_c('Loader')],1):_c('div',[(_vm.complete && _vm.autoAdvance)?_c('div',{staticClass:\"text-center\"},[(_vm.isVis)?_c('div',[(_vm.complete && _vm.currentActivityIndex < _vm.listShow.length)?_c('p',[_vm._v(\" \"+_vm._s(_vm.$t('review-and-next')))]):_vm._e(),(_vm.nextActivity[_vm.activityUrl])?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.nextActivity1}},[_vm._v(_vm._s(_vm.$t('next-button')))]):_vm._e()],1):_c('div',[_c('p',[_vm._v(\"Thank you for participating. Not eligible at this time!\")])])]):_vm._e(),_c('br'),_c('b-progress',{staticClass:\"mb-3\",attrs:{\"value\":_vm.progress,\"max\":100}}),(_vm.preambleText)?_c('div',{staticClass:\"preamble-text\"},[_c('strong',{domProps:{\"innerHTML\":_vm._s(_vm.preambleText)}},[_vm._v(_vm._s(_vm.preambleText))])]):_vm._e()],1),_c('transition-group',{attrs:{\"name\":\"list\",\"tag\":\"div\",\"mode\":\"in-out\"}},_vm._l((_vm.contextReverse),function(content,index){return _c('div',{key:content['@id']+'f'+ index,staticClass:\"mt-3 mb-3\"},[_c('transition',{key:'t'+content['@id'],attrs:{\"name\":\"list\"}},[(_vm.shouldShow[index])?_c('survey-item',{key:'c' + content['@id'],attrs:{\"item\":content,\"index\":_vm.contextReverse.length - index - 1,\"init\":_vm.responses[content['@id']],\"responses\":_vm.responses,\"selected_language\":_vm.selected_language,\"clientIp\":_vm.ipAddress,\"showPassOptions\":_vm.findOverallPassOptions,\"individualPassList\":_vm.individualPassList,\"reprotermsUrl\":_vm.reprotermsUrl},on:{\"skip\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 1, 0)},\"dontKnow\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 0, 1)},\"next\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 0)},\"setData\":_vm.setResponse,\"setScores\":_vm.setScore}}):_vm._e()],1)],1)}),0)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('b-card',{staticClass:\"text-center question mx-auto w-100\",style:(_vm.style),attrs:{\"border-variant\":_vm.variant,\"no-body\":_vm.ui === 'multipart' || _vm.ui === 'section'}},[_c('div',{staticClass:\"contextItem align-self-center center w-100\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[(_vm.status === 'ready' && _vm.ui !== 'multipart' && _vm.ui !== 'section')?_c('InputSelector',{attrs:{\"inputType\":_vm.ui,\"readOnly\":_vm.widgetType,\"title\":_vm.title,\"preamble\":_vm.itemPreamble,\"valueConstraints\":_vm.valueConstraints,\"fieldData\":_vm.fieldData,\"init\":_vm.init,\"responses\":_vm.responses,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"ipAddress\":_vm.clientIp,\"showPassOptions\":_vm.showPassOptions,\"showItemPassOptions\":_vm.itemAllow},on:{\"skip\":_vm.sendSkip,\"dontKnow\":_vm.sendDontKnow,\"next\":_vm.sendNext,\"valueChanged\":_vm.sendData}}):(_vm.status !== 'ready')?_c('div',{staticClass:\"loader\"},[_c('Loader')],1):(_vm.ui === 'multipart')?_c('multipart',{attrs:{\"progress\":_vm.mp_progress,\"responses\":_vm.mp_responses,\"srcUrl\":_vm.item['@id'],\"showPassOptions\":_vm.showPassOptions,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"ipAddress\":_vm.clientIp},on:{\"skip\":_vm.sendSkip,\"dontKnow\":_vm.sendDontKnow,\"next\":_vm.sendNext,\"valueChanged\":_vm.sendDataAndGoNext,\"saveResponse\":_vm.setMPResponse,\"saveScores\":_vm.setScore,\"updateProgress\":_vm.setMPProgress,\"clearResponses\":_vm.clearMPResponses}}):(_vm.ui === 'section')?_c('subactivity',{attrs:{\"progress\":_vm.mp_progress,\"responses\":_vm.mp_responses,\"srcUrl\":_vm.item['@id'],\"showPassOptions\":_vm.showPassOptions,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"ipAddress\":_vm.clientIp},on:{\"skip\":_vm.sendSkip,\"dontKnow\":_vm.sendDontKnow,\"next\":_vm.sendNext,\"valueChanged\":_vm.sendData,\"saveResponse\":_vm.setMPResponse,\"saveScores\":_vm.setScore,\"updateProgress\":_vm.setMPProgress,\"clearResponses\":_vm.clearMPResponses}}):_vm._e()],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"inputContent\"},[(_vm.preamble)?_c('div',{staticClass:\"lead scroll mb-3 pr-3 pl-3\"},[_c('p',{class:{'text-justify': _vm.inputType==='audioPassageRecord'},domProps:{\"innerHTML\":_vm._s(_vm.preamble)}},[_vm._v(_vm._s(_vm.preamble))])]):_vm._e(),(_vm.title)?_c('div',{staticClass:\"lead scroll mb-3 pr-3 pl-3\"},[_c('p',{class:{'text-justify': _vm.inputType==='audioPassageRecord'},domProps:{\"innerHTML\":_vm._s(_vm.title)}},[_vm._v(_vm._s(_vm.title))]),(_vm.valueConstraints.requiredValue)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"*\")]):_vm._e()]):_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('input-selector-alert'))+\" \")]),(_vm.inputType === 'radio')?_c('div',[_c('Radio',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioCheck')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioRecord')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioPassageRecord')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioImageRecord')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"fieldData\":_vm.fieldData,\"selected_language\":_vm.selected_language,\"init\":_vm.init,\"mode\":\"audioImageRecord\"},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioRecordNumberTask')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init,\"mode\":\"audioRecordNumberTask\"},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioRecordAudioTask')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init,\"fieldData\":_vm.fieldData,\"mode\":\"audioRecordAudioTask\"},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioRecordNoStop')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init,\"mode\":\"audioRecordNoStop\"},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'text')?_c('div',[_c('TextInput',{attrs:{\"constraints\":_vm.valueConstraints,\"inputType\":_vm.inputType,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'textarea')?_c('div',[_c('TextArea',{attrs:{\"constraints\":_vm.valueConstraints,\"inputType\":_vm.inputType,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'pid')?_c('div',[_c('ParticipantId',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'email')?_c('div',[_c('EmailInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'timeRange')?_c('div',[_c('TimeRange',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"id\":'timeRange' + Math.floor(Math.random()*1000),\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'multitext')?_c('div',[_c('MultiTextInput',{attrs:{\"constraints\":_vm.valueConstraints,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'number')?_c('div',[_c('IntegerInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'float')?_c('div',[_c('FloatInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'range')?_c('div',[_c('RangeInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'date' || _vm.inputType === 'year')?_c('div',[_c('DateInput',{attrs:{\"constraints\":_vm.valueConstraints,\"inputType\":_vm.inputType,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'documentUpload')?_c('div',[_c('DocumentUpload',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'slider')?_c('div',[_c('SliderInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'selectCountry' || _vm.inputType === 'selectState'\n || _vm.inputType === 'selectLanguage' || _vm.inputType === 'select')?_c('div',[_c('SelectInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"inputType\":_vm.inputType,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'static' && _vm.readOnly)?_c('div',[_c('StaticReadOnly',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"result\":true,\"input\":_vm.title,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'save')?_c('div',[_c('SaveData',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"ipAddress\":_vm.ipAddress,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'sign')?_c('div',[_c('StudySign',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"result\":true,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):_c('div',[_c('b-alert',{attrs:{\"show\":\"\"}},[_vm._v(\" no input type UI built for \\\"\"+_vm._s(_vm.inputType)+\"\\\" yet! \")])],1),(_vm.showPassOptions !== null || _vm.showItemPassOptions !== null)?_c('div',[((_vm.showItemPassOptions && _vm.showItemPassOptions['dontKnow']) || (_vm.showPassOptions && _vm.showPassOptions['dontKnow']))?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.dontKnow}},[_vm._v(\" \"+_vm._s(_vm.$t('dont-know'))+\" \")]):_vm._e(),((_vm.showItemPassOptions && _vm.showItemPassOptions['skip']) || (_vm.showPassOptions && _vm.showPassOptions['skip']))?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.skip}},[_vm._v(\" \"+_vm._s(_vm.$t('skip'))+\" \")]):_vm._e()],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"radioInput container ml-3 pl-3\"},[(_vm.isMultipleChoice)?_c('div',[_c('b-form',{on:{\"submit\":_vm.onSubmit}},[_c('b-form-group',{attrs:{\"label\":\"\"}},[_c('b-form-checkbox-group',{ref:\"checkboxbutton\",staticClass:\"text-left\",attrs:{\"stacked\":\"\",\"plain\":\"\"},model:{value:(_vm.checkboxSelected),callback:function ($$v) {_vm.checkboxSelected=$$v},expression:\"checkboxSelected\"}},_vm._l((_vm.options),function(opt){return _c('b-form-checkbox',{key:opt.value,staticClass:\"mb-3\",attrs:{\"value\":opt.value}},[_vm._v(\" \"+_vm._s(opt.text)+\" \")])}),1)],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1):_c('div',[(!_vm.isImageSelect)?_c('b-form-group',{attrs:{\"label\":\"\"}},[_c('b-form-radio-group',{ref:\"radiobutton\",staticClass:\"text-left\",attrs:{\"stacked\":\"\"},on:{\"change\":_vm.sendData},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}},_vm._l((_vm.options),function(opt){return _c('b-form-radio',{key:opt.value,staticClass:\"mb-3\",attrs:{\"value\":opt.value}},[_vm._v(\" \"+_vm._s(opt.text)+\" \")])}),1)],1):_c('div',{staticClass:\"text-center\"},[_c('vue-select-image',{ref:\"imageSelect\",attrs:{\"dataImages\":_vm.dataImages,\"selectedImages\":_vm.selectedImages,\"useLabel\":\"\"},on:{\"onselectimage\":_vm.onSelectImage}})],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{class:_vm.rootClass},[_c('ul',{class:_vm.rootClass + '__wrapper'},_vm._l((_vm.dataImagesLocal),function(dataImage,index){return _c('li',{key:index,class:_vm.rootClass + '__item'},[(!_vm.isMultiple)?_c('div',{class:_vm.classThumbnail[index],on:{\"click\":function($event){return _vm.onSelectImage(dataImage)}}},[_c('img',{class:_vm.rootClass + '__img',attrs:{\"src\":dataImage.src,\"alt\":dataImage.alt,\"height\":_vm.h,\"width\":_vm.w}}),(_vm.useLabel)?_c('label',{class:_vm.rootClass + '__lbl'},[_vm._v(\" \"+_vm._s(dataImage.alt)+\" \")]):_vm._e()]):_vm._e(),(_vm.isMultiple)?_c('div',{class:_vm.classThumbnailMultiple(dataImage.id),on:{\"click\":function($event){return _vm.onSelectMultipleImage(dataImage)}}},[_c('img',{class:_vm.rootClass + '__img',attrs:{\"src\":dataImage.src,\"alt\":dataImage.alt,\"height\":_vm.h,\"width\":_vm.w}}),(_vm.useLabel)?_c('label',{class:_vm.rootClass + '__lbl'},[_vm._v(\" \"+_vm._s(dataImage.alt)+\" \")]):_vm._e()]):_vm._e()])}),0)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SelectImage.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SelectImage.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SelectImage.vue?vue&type=template&id=5c20d894\"\nimport script from \"./SelectImage.vue?vue&type=script&lang=js\"\nexport * from \"./SelectImage.vue?vue&type=script&lang=js\"\nimport style0 from \"./SelectImage.vue?vue&type=style&index=0&id=5c20d894&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Radio.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Radio.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Radio.vue?vue&type=template&id=0fa1057c\"\nimport script from \"./Radio.vue?vue&type=script&lang=js\"\nexport * from \"./Radio.vue?vue&type=script&lang=js\"\nimport style0 from \"./Radio.vue?vue&type=style&index=0&id=0fa1057c&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('b-alert',{attrs:{\"show\":!_vm.supported}},[_vm._v(_vm._s(_vm.$t('audio-support-msg')))]),(_vm.supported)?_c('div',[(_vm.mode==='audioImageRecord')?_c('div',{staticClass:\"mb-3\"},[_c('img',{staticClass:\"img-fluid\",attrs:{\"src\":_vm.fieldData['http://schema.org/image'][0]['@id']}})]):_vm._e(),(_vm.mode==='audioRecordNumberTask')?_c('div',{staticClass:\"mb-3\"},[_c('strong',{staticStyle:{\"font-size\":\"30px\"}},[_vm._v(_vm._s(_vm.generateNumber))])]):_vm._e(),(_vm.mode==='audioRecordAudioTask')?_c('div',{staticClass:\"mb-3\"},[_c('audio',{attrs:{\"controls\":\"\"}},[_c('source',{attrs:{\"src\":_vm.getAudioSource,\"type\":\"audio/mpeg\"}}),_vm._v(\" Your browser does not support the audio element. \")])]):_vm._e(),(!_vm.isRecording && !_vm.hasRecording)?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.record}},[_vm._v(\" \"+_vm._s(_vm.$t('record-button'))+\" \")]):_vm._e(),(_vm.mode!='audioRecordNoStop')?_c('div',{staticClass:\"mb-3\"},[(_vm.isRecording)?_c('b-button',{on:{\"click\":_vm.finish}},[_vm._v(_vm._s(_vm.$t('stop-button')))]):_vm._e()],1):_vm._e(),(_vm.isRecording)?_c('div',[_c('small',[_vm._v(_vm._s(_vm.timeRemaining)+\" \"+_vm._s(_vm.$t('x-seconds-left')))])]):_vm._e(),(_vm.hasRecording && !_vm.isPlaying)?_c('b-button',{ref:\"play\",attrs:{\"variant\":\"success\"},on:{\"click\":_vm.play}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.$t('play-button'))+\" \")])]):_vm._e(),(_vm.hasRecording && _vm.isPlaying)?_c('b-button',{ref:\"play\",attrs:{\"variant\":\"secondary\"},on:{\"click\":_vm.pause}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.$t('pause-button'))+\" \")])]):_vm._e(),(_vm.hasRecording)?_c('div',{staticClass:\"mt-2\"},[_c('a',{attrs:{\"href\":\"\"},on:{\"click\":_vm.reset}},[_vm._v(_vm._s(_vm.$t('redo-recording')))])]):_vm._e()],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Audio.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Audio.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Audio.vue?vue&type=template&id=202c741d\"\nimport script from \"./Audio.vue?vue&type=script&lang=js\"\nexport * from \"./Audio.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"textInput\"},[_c('b-form',{ref:\"form\",on:{\"submit\":_vm.onSubmit}},[_c('b-row',[_c('b-col',{staticClass:\"col-4 col-md-4\",attrs:{\"lg\":\"4\"}},[_c('b-form-group',[_c('b-form-input',{attrs:{\"type\":\"text\"},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}})],1)],1),(_vm.hasUnit && Array.isArray(_vm.options))?_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('multiselect',{attrs:{\"options\":this.options,\"searchable\":false,\"show-labels\":false,\"allowEmpty\":false,\"placeholder\":\"unit\"},model:{value:(_vm.input2),callback:function ($$v) {_vm.input2=$$v},expression:\"input2\"}})],1):(_vm.hasUnit && !Array.isArray(_vm.options))?_c('div',[_c('p',{staticClass:\"singleUnit\"},[_vm._v(\" \"+_vm._s(_vm.options))])]):_vm._e()],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TextInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TextInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TextInput.vue?vue&type=template&id=b965e69c\"\nimport script from \"./TextInput.vue?vue&type=script&lang=js\"\nexport * from \"./TextInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./TextInput.vue?vue&type=style&index=0&id=b965e69c&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"textArea\"},[_c('b-form',{ref:\"form\",on:{\"submit\":_vm.onSubmit}},[_c('b-row',{staticClass:\"mt-2\"},[_c('b-col',[_c('b-form-textarea',{attrs:{\"id\":\"textarea-default\",\"rows\":\"10\"},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}})],1)],1),_c('br'),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TextArea.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TextArea.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TextArea.vue?vue&type=template&id=9ec21c34\"\nimport script from \"./TextArea.vue?vue&type=script&lang=js\"\nexport * from \"./TextArea.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"IntegerInput\"},[_c('b-form',{ref:\"form\",attrs:{\"novalidate\":true},on:{\"submit\":_vm.onSubmit}},[_c('b-row',[_c('b-col',{staticClass:\"col-4 col-md-4\",attrs:{\"lg\":\"4\"}},[_c('b-form-group',[_c('b-form-input',{ref:\"integerInput\",class:{'is-invalid': !_vm.isValidInt, 'is-valid': _vm.isValidInt},attrs:{\"placeholder\":\"value\"},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}}),_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(\" \"+_vm._s(_vm.$t('invalid-feedback-number'))+\" \")])],1)],1),(_vm.hasUnit && Array.isArray(_vm.options))?_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('multiselect',{attrs:{\"options\":this.options,\"searchable\":false,\"show-labels\":false,\"allowEmpty\":false,\"placeholder\":\"unit\"},model:{value:(_vm.input2),callback:function ($$v) {_vm.input2=$$v},expression:\"input2\"}})],1):(_vm.hasUnit && !Array.isArray(_vm.options))?_c('div',[_c('p',{staticClass:\"singleUnit\"},[_vm._v(\" \"+_vm._s(_vm.options))])]):_vm._e()],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./IntegerInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./IntegerInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./IntegerInput.vue?vue&type=template&id=07ce4cac\"\nimport script from \"./IntegerInput.vue?vue&type=script&lang=js\"\nexport * from \"./IntegerInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./IntegerInput.vue?vue&type=style&index=0&id=07ce4cac&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"FloatInput\"},[_c('b-form',{ref:\"form\",attrs:{\"novalidate\":true},on:{\"submit\":_vm.onSubmit}},[_c('b-row',[_c('b-col',{staticClass:\"col-4 col-md-4\",attrs:{\"lg\":\"4\"}},[_c('b-form-group',[_c('b-form-input',{ref:\"floatInput\",class:{'is-valid': _vm.isValidFloat},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}})],1)],1),(_vm.hasUnit && Array.isArray(_vm.options))?_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('multiselect',{attrs:{\"options\":this.options,\"searchable\":false,\"show-labels\":false,\"allowEmpty\":false,\"placeholder\":\"unit\"},model:{value:(_vm.input2),callback:function ($$v) {_vm.input2=$$v},expression:\"input2\"}})],1):(_vm.hasUnit && !Array.isArray(_vm.options))?_c('div',[_c('p',{staticClass:\"singleUnit\"},[_vm._v(\" \"+_vm._s(_vm.options))])]):_vm._e()],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FloatInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FloatInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./FloatInput.vue?vue&type=template&id=7fd2cef2\"\nimport script from \"./FloatInput.vue?vue&type=script&lang=js\"\nexport * from \"./FloatInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./FloatInput.vue?vue&type=style&index=0&id=7fd2cef2&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"RangeInput\"},[_c('b-form',{ref:\"form\",attrs:{\"novalidate\":true},on:{\"submit\":_vm.onSubmit}},[_c('b-row',[_c('b-col',{staticClass:\"col-4 col-md-4\",attrs:{\"lg\":\"4\"}},[_c('b-form-group',[_c('b-form-input',{ref:\"rangeInput\",class:{'is-valid': _vm.isValidFloat},attrs:{\"placeholder\":\"start\"},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}})],1)],1),_c('b-col',{staticClass:\"col-4 col-md-4\",attrs:{\"lg\":\"4\"}},[_c('b-form-group',[_c('b-form-input',{ref:\"rangeInput\",class:{'is-valid': _vm.isValidFloat},attrs:{\"placeholder\":\"end\"},model:{value:(_vm.input2),callback:function ($$v) {_vm.input2=$$v},expression:\"input2\"}})],1)],1),(_vm.hasUnit && Array.isArray(_vm.options))?_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('multiselect',{attrs:{\"options\":this.options,\"searchable\":false,\"show-labels\":false,\"allowEmpty\":false,\"placeholder\":\"unit\"},model:{value:(_vm.input3),callback:function ($$v) {_vm.input3=$$v},expression:\"input3\"}})],1):(_vm.hasUnit && !Array.isArray(_vm.options))?_c('div',[_c('p',{staticClass:\"singleUnit\"},[_vm._v(\" \"+_vm._s(_vm.options))])]):_vm._e()],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./RangeInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./RangeInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./RangeInput.vue?vue&type=template&id=5fe3f98e\"\nimport script from \"./RangeInput.vue?vue&type=script&lang=js\"\nexport * from \"./RangeInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./RangeInput.vue?vue&type=style&index=0&id=5fe3f98e&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"DateInput\"},[_c('datepicker',{attrs:{\"placeholder\":\"Select Date\",\"lang\":\"selected_language\",\"disabledDates\":_vm.dateParam.disabledDates,\"format\":_vm.customFormatter,\"minimumView\":_vm.inputType,\"maximumView\":'year',\"initialView\":_vm.inputType},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:\"input\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./YearInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./YearInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./YearInput.vue?vue&type=template&id=255640ea\"\nimport script from \"./YearInput.vue?vue&type=script&lang=js\"\nexport * from \"./YearInput.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"DocumentUpload\"},[_c('input',{attrs:{\"type\":\"file\"},on:{\"change\":_vm.onFileSelected}}),_c('button',{on:{\"click\":_vm.onSubmit}},[_vm._v(_vm._s(_vm.$t('upload-button')))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./DocumentUpload.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./DocumentUpload.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DocumentUpload.vue?vue&type=template&id=2d55df58\"\nimport script from \"./DocumentUpload.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentUpload.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"textInput\"},[_c('b-form',{on:{\"submit\":_vm.onSubmit}},[_c('b-row',[_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('b-input-group',[_c('b-form-input',{attrs:{\"placeholder\":\"first name\",\"required\":\"\"},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}})],1)],1),_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('b-input-group',[_c('b-form-input',{attrs:{\"placeholder\":\"middle name\"},model:{value:(_vm.input2),callback:function ($$v) {_vm.input2=$$v},expression:\"input2\"}})],1)],1),_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('b-input-group',[_c('b-form-input',{attrs:{\"placeholder\":\"family name\",\"required\":\"\"},model:{value:(_vm.input3),callback:function ($$v) {_vm.input3=$$v},expression:\"input3\"}})],1)],1)],1),_c('br'),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./MultiTextInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./MultiTextInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./MultiTextInput.vue?vue&type=template&id=70b680c2\"\nimport script from \"./MultiTextInput.vue?vue&type=script&lang=js\"\nexport * from \"./MultiTextInput.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"SliderInput ml-3 mr-3 pl-3 pr-3\"},[_c('vue-slider',{attrs:{\"lazy\":true,\"data\":_vm.interval,\"marks\":true,\"process\":false},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:\"input\"}}),_c('b-row',{staticClass:\"mt-3 pt-3 pl-0 pr-0\"},[_c('div',{staticClass:\"col text-left pr-0 pl-0\"},[(_vm.getMinImageLabel)?_c('span',[_c('img',{staticClass:\"imgLabel\",attrs:{\"src\":_vm.getMinImageLabel}})]):_vm._e(),_c('p',[_vm._v(_vm._s(_vm.getMinLabel))])]),_c('div',{staticClass:\"col text-right pr-0 pl-0\"},[(_vm.getMaxImageLabel)?_c('span',[_c('img',{staticClass:\"imgLabel\",attrs:{\"src\":_vm.getMaxImageLabel}})]):_vm._e(),_c('p',[_vm._v(_vm._s(_vm.getMaxLabel))])])]),_c('b-form',{on:{\"submit\":_vm.sendData}},[_c('b-button',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SliderInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SliderInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SliderInput.vue?vue&type=template&id=503ba848\"\nimport script from \"./SliderInput.vue?vue&type=script&lang=js\"\nexport * from \"./SliderInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./SliderInput.vue?vue&type=style&index=0&id=503ba848&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"TimeRangeInput container ml-3 pl-3\"},[_c('b-row',{staticClass:\"mt-2 mb-2\"},[_c('b-col',{staticClass:\"mt-2 mb-2\"},[_vm._v(\" went to bed: \"+_vm._s(_vm.yesterday)+\" \"),_c('vue-timepicker',{attrs:{\"format\":\"hh:mm A\"},model:{value:(_vm.slept),callback:function ($$v) {_vm.slept=$$v},expression:\"slept\"}})],1),_c('b-col',{staticClass:\"mt-2 mb-2\"},[_vm._v(\" woke up: \"+_vm._s(_vm.today)+\" \"),_c('vue-timepicker',{attrs:{\"format\":\"hh:mm A\"},model:{value:(_vm.woke),callback:function ($$v) {_vm.woke=$$v},expression:\"woke\"}})],1)],1),(_vm.timeSlept != null)?_c('div',{staticClass:\"mt-2 mb-2\"},[(_vm.timeSlept < 0)?_c('div',{staticClass:\"mt-2 mb-2\"},[_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"danger\"}},[_vm._v(\"You can't sleep negative hours!\")])],1):_c('b-button',{on:{\"click\":_vm.sendData}},[_vm._v(\"Submit \"+_vm._s(_vm.timeSlept)+\" hours\")])],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TimeRange.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TimeRange.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TimeRange.vue?vue&type=template&id=54540c54\"\nimport script from \"./TimeRange.vue?vue&type=script&lang=js\"\nexport * from \"./TimeRange.vue?vue&type=script&lang=js\"\nimport style0 from \"./TimeRange.vue?vue&type=style&index=0&id=54540c54&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"SelectInput\"},[( _vm.inputType=== 'select' && this.constraints['http://schema.org/itemListElement'])?_c('multiselect',{attrs:{\"options\":this.options,\"searchable\":false,\"show-labels\":false,\"placeholder\":\"Pick a value\"},on:{\"input\":_vm.checkNotOtherAndSendData},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}}):_c('multiselect',{attrs:{\"id\":\"ajax\",\"placeholder\":\"Type to search\",\"options\":this.options,\"multiple\":_vm.multipleAllowed,\"searchable\":true,\"internal-search\":true,\"clear-on-select\":false,\"close-on-select\":true,\"options-limit\":300,\"limit\":5,\"limit-text\":_vm.limitText,\"max-height\":600,\"show-no-results\":false,\"hide-selected\":true},on:{\"input\":_vm.checkNotOtherAndSendData},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}},[_c('span',{attrs:{\"slot\":\"noResult\"},slot:\"noResult\"},[_vm._v(_vm._s(_vm.$t('select-invalid-query')))])]),(_vm.checkOther)?_c('div',{staticStyle:{\"display\":\"block\"},attrs:{\"id\":\"ifOther\"}},[_c('br'),_c('b-form-input',{attrs:{\"placeholder\":\"Please describe\"},on:{\"change\":_vm.sendData},model:{value:(_vm.otherInput),callback:function ($$v) {_vm.otherInput=$$v},expression:\"otherInput\"}})],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SelectInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SelectInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SelectInput.vue?vue&type=template&id=0d9d3932\"\nimport script from \"./SelectInput.vue?vue&type=script&lang=js\"\nexport * from \"./SelectInput.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"staticReadOnly\"},[(true)?_c('div',[_c('b-btn',{on:{\"click\":_vm.onSubmit}},[_vm._v(\" Done reading \")])],1):_c('div',[_c('b-alert',{attrs:{\"show\":\"\"}},[_vm._v(\" Parameter could not be retrieved at this time. Please contact \\\"\"+_vm._s(_vm.contact)+\"\\\" for further assistance. \")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StaticReadOnly.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StaticReadOnly.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./StaticReadOnly.vue?vue&type=template&id=fdf103e6\"\nimport script from \"./StaticReadOnly.vue?vue&type=script&lang=js\"\nexport * from \"./StaticReadOnly.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"SaveData ml-3 mr-3 pl-3 pr-3\"},[(!_vm.isUploading && !_vm.hasData && !_vm.hasTimedOut)?_c('div',[(_vm.shouldUpload)?_c('div',[_c('p',[_vm._v(_vm._s(_vm.$t('save-data')))]),(_vm.downloadAndSubmit)?_c('b-button',{ref:\"upload\",attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.upload}},[_vm._v(\" \"+_vm._s(_vm.$t('download-and-submit-button'))+\" \")]):_c('b-button',{ref:\"upload\",attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.upload}},[_vm._v(\" \"+_vm._s(_vm.$t('upload-button'))+\" \")])],1):_c('div',[(_vm.exportOption)?_c('p',[_vm._v(_vm._s(_vm.$t('export-and-finish')))]):_c('p',[_vm._v(_vm._s(_vm.$t('finish')))]),_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.finish}},[_vm._v(\" \"+_vm._s(_vm.$t('finish-button'))+\" \")])],1)]):_vm._e(),(_vm.isUploading && _vm.percentCompleted >0 && _vm.showProgressBar)?_c('div',{staticClass:\"loader\"},[_c('p',[_vm._v(_vm._s(_vm.$t('upload-message')))]),_c('b-progress',{attrs:{\"max\":100,\"striped\":_vm.hasStripe}},[_c('b-progress-bar',{attrs:{\"value\":_vm.percentCompleted*100,\"label\":`${(_vm.percentCompleted * 100)}%`,\"animated\":\"\"}})],1)],1):(_vm.isUploading && _vm.percentCompleted === 0)?_c('div',[_c('p',[_vm._v(_vm._s(_vm.$t('prepare-upload')))]),_c('Loader')],1):_vm._e(),_c('b-modal',{ref:\"timeout-modal\",attrs:{\"ok-title\":\"Done\",\"ok-only\":\"\",\"title\":\"Uh-oh! Upload unsuccessful!\",\"no-close-on-esc\":\"\",\"no-close-on-backdrop\":\"\",\"hide-header-close\":\"\"},on:{\"ok\":_vm.timeoutOK},model:{value:(_vm.timeout),callback:function ($$v) {_vm.timeout=$$v},expression:\"timeout\"}},[(_vm.dataUploadPath)?_c('p',[_vm._v(\"Please submit your locally exported zip file \"),_c('a',{attrs:{\"href\":_vm.dataUploadPath,\"target\":\"_blank\"}},[_vm._v(\"here\")])]):_c('p',[_vm._v(\"Let researchers know with the \"),_c('b',[_vm._v(\"Help\")]),_vm._v(\" button or by email to \"+_vm._s(_vm.contact))])]),_c('div',{class:{ done: _vm.hasData},staticStyle:{\"width\":\"800px\",\"margin\":\"0 auto\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _vm._m(0)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"layer-preloader\"},[_c('div',{staticClass:\"loading\"},[_c('div',{staticClass:\"loader firstColor\"},[_c('div',{staticClass:\"loader secondColor\"},[_c('div',{staticClass:\"loader thirdColor\"})])])])])\n}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Loader.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Loader.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Loader.vue?vue&type=template&id=03dc3226\"\nimport script from \"./Loader.vue?vue&type=script&lang=js\"\nexport * from \"./Loader.vue?vue&type=script&lang=js\"\nimport style0 from \"./Loader.vue?vue&type=style&index=0&id=03dc3226&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SaveData.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SaveData.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SaveData.vue?vue&type=template&id=5c8fef01\"\nimport script from \"./SaveData.vue?vue&type=script&lang=js\"\nexport * from \"./SaveData.vue?vue&type=script&lang=js\"\nimport style0 from \"./SaveData.vue?vue&type=style&index=0&id=5c8fef01&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"docked-layout\"},[_c('section',[_c('div',{ref:\"consentDoc\",staticClass:\"consent-doc\"},[_vm._m(0),_c('section'),_vm._v(\" \"),_vm._m(1),_vm._m(2),_vm._m(3),_c('section',[_c('div',{staticClass:\"research container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step3.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"My data will be used for research as described in the study information (\"),_c('router-link',{attrs:{\"to\":\"/study/consent-review\"}},[_vm._v(\"https://\"),_c('wbr'),_vm._v(\"parkinsonmpower.\"),_c('wbr'),_vm._v(\"org/\"),_c('wbr'),_vm._v(\"consent\")]),_vm._v(\").\")],1)])]),_vm._m(4),_vm._m(5),_vm._m(6),_vm._m(7),_vm._m(8),_vm._m(9)]),_c('footer',[_c('form',{staticClass:\"slider\",attrs:{\"onsubmit\":\"return false\"}},[_c('div',{staticClass:\"slider-element animated\",class:{'slideOutLeft': _vm.showSharing}},[_c('div',{staticClass:\"inner\"},[_c('h1',[_vm._v(\"Please review and sign below if you want to join.\")]),_c('p',[_vm._v(\"I have read and understand the above information. All of my questions have been answered. I freely and willingly choose to take part in the mPower Progression Study. By signing this consent I have not given up any of my legal rights.\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.name),expression:\"name\"}],attrs:{\"placeholder\":\"Please type your full name here\"},domProps:{\"value\":(_vm.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.name=$event.target.value}}}),_c('div',{staticClass:\"buttons\"},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.reject}},[_vm._v(\" Disagree \")]),_c('b-button',{attrs:{\"variant\":\"success\",\"disabled\":_vm.canSubmit},on:{\"click\":_vm.accept}},[_vm._v(\" Accept \")])],1)])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('section',{staticClass:\"preamble-section\"},[_c('div',{staticClass:\"preamble container\"},[_c('div',[_c('h2',[_vm._v(\"mPower Progression Study\")]),_c('h3',[_vm._v(\"Consent and Authorization Contents\")])])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"assertion container\"},[_c('div',[_vm._v(\"I understand:\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"will-use container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step1.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"I will use the mPower app to answer questions and do short physical and cognitive activities. The app will help me track my symptoms, triggers, and medications.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"privacy container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step2.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"My study data will be encrypted and transferred from my phone. It will be stored on Sage Bionetworks’ secure cloud-based database.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"sharing-scope container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step4.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"I have the option to share my coded study data for future research. It is up to me. I can say yes or no.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"risks-benefits container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step5.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"The main risk of participating in the mPower Progression Study is to my privacy and confidentiality. This risk is low but not zero. The main benefit is seeing the trends in my data over time.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"unpaid container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step6.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"mPower Progression Study is a research study. The mPower app shouldn’t be used for diagnosis or treatment decision.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"not-medical container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step7.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"I will not get paid for participating in this study. I will not receive any profit from the use of my data in this or future research.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"voluntary container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step8.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"I can withdraw (quit) at any time for any reason. There is no penalty if I withdraw .\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"contact container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step9.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"My contact information may be used to tell me about other studies.\")])])])\n}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StudySign.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StudySign.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./StudySign.vue?vue&type=template&id=7a01fc37&scoped=true\"\nimport script from \"./StudySign.vue?vue&type=script&lang=js\"\nexport * from \"./StudySign.vue?vue&type=script&lang=js\"\nimport style0 from \"./StudySign.vue?vue&type=style&index=0&id=7a01fc37&prod&lang=css\"\nimport style1 from \"./StudySign.vue?vue&type=style&index=1&id=7a01fc37&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7a01fc37\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"IntegerInput\"},[_c('b-form',{ref:\"form\",attrs:{\"novalidate\":true},on:{\"submit\":_vm.onSubmit}},[_c('b-form-group',[_c('b-form-input',{ref:\"integerInput\",class:{'is-invalid': !_vm.isValidEmail, 'is-valid': _vm.isValidEmail},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:\"input\"}}),_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(\" \"+_vm._s(_vm.$t('invalid-email'))+\" \")])],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./EmailInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./EmailInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./EmailInput.vue?vue&type=template&id=7f14d4a5\"\nimport script from \"./EmailInput.vue?vue&type=script&lang=js\"\nexport * from \"./EmailInput.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"participantId\"},[_c('b-form',{on:{\"submit\":_vm.onSubmit}},[_c('b-form-group',[_c('b-form-input',{model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:\"input\"}})],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ParticipantId.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ParticipantId.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ParticipantId.vue?vue&type=template&id=51933f6e\"\nimport script from \"./ParticipantId.vue?vue&type=script&lang=js\"\nexport * from \"./ParticipantId.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./InputSelector.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./InputSelector.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./InputSelector.vue?vue&type=template&id=69b2be3c\"\nimport script from \"./InputSelector.vue?vue&type=script&lang=js\"\nexport * from \"./InputSelector.vue?vue&type=script&lang=js\"\nimport style0 from \"./InputSelector.vue?vue&type=style&index=0&id=69b2be3c&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(!_vm.listShow.length)?_c('div',[_c('h1',[_vm._v(_vm._s(_vm.$t('loader'))+\"...\")])]):_c('div',[(_vm.preambleText)?_c('div',{staticClass:\"preamble-text mb-2\"},[_c('strong',[_vm._v(\" \"+_vm._s(_vm.preambleText)+\" (\"+_vm._s(_vm.currentIndex + 1)+\" / \"+_vm._s(_vm.context.length)+\")\")])]):_vm._e()]),_c('survey-item',{key:_vm.currentItem['@id'],attrs:{\"item\":_vm.currentItem,\"index\":_vm.currentIndex,\"init\":_vm.responses[_vm.currentItem['@id']],\"responses\":_vm.responses,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"score\":_vm.score,\"showPassOptions\":_vm.showPassOptions},on:{\"skip\":function($event){return _vm.nextQuestion(_vm.currentIndex, 1, 0)},\"dontKnow\":function($event){return _vm.nextQuestion(_vm.currentIndex, 0, 1)},\"next\":function($event){return _vm.nextQuestion(_vm.currentIndex, 0)},\"setData\":_vm.setResponse}}),(_vm.showPassOptions !== null )?_c('div',{staticClass:\"text-right mt-3\"},[_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.restart}},[_vm._v(_vm._s(_vm.$t('restart-button')))]),(_vm.showPassOptions['dontKnow'])?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.dontKnow}},[_vm._v(_vm._s(_vm.$t('dont-know')))]):_vm._e(),(_vm.showPassOptions['skip'])?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.skip}},[_vm._v(_vm._s(_vm.$t('skip')))]):_vm._e()],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./MultiPart.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./MultiPart.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./MultiPart.vue?vue&type=template&id=249d485d\"\nimport script from \"./MultiPart.vue?vue&type=script&lang=js\"\nexport * from \"./MultiPart.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(!_vm.listShow.length)?_c('div',[_c('h1',[_vm._v(_vm._s(_vm.$t('loader'))+\"...\")]),_c('Loader')],1):_c('div',[(_vm.preambleText)?_c('div',{staticClass:\"preamble-text mb-2\"},[_c('strong',[_vm._v(\" \"+_vm._s(_vm.preambleText)+\" \")])]):_vm._e()]),_c('transition-group',{attrs:{\"name\":\"list\",\"tag\":\"div\",\"mode\":\"in-out\"}},_vm._l((_vm.contextReverse),function(content,index){return _c('div',{key:content['@id']+index,staticClass:\"mt-3 mb-3\"},[_c('transition',{key:'t'+content['@id'],attrs:{\"name\":\"list\"}},[(_vm.shouldShow[index])?_c('survey-item',{key:'c' + content['@id'],attrs:{\"item\":content,\"index\":_vm.contextReverse.length - index - 1,\"init\":_vm.responses[content['@id']],\"responses\":_vm.responses,\"selected_language\":_vm.selected_language,\"showPassOptions\":_vm.showPassOptions,\"reprotermsUrl\":_vm.reprotermsUrl},on:{\"skip\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 1, 0)},\"dontKnow\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 0, 1)},\"next\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 0)},\"setData\":_vm.setResponse}}):_vm._e()],1),_c('b-modal',{ref:\"invalid-token-modal\",refInFor:true,attrs:{\"ok-only\":\"\",\"title\":\"Helpline!\",\"hide-footer\":\"\",\"header-class\":\"justify-content-center\"},model:{value:(_vm.showModal),callback:function ($$v) {_vm.showModal=$$v},expression:\"showModal\"}},[_c('p',{staticClass:\"contact\"},[_vm._v(\"If you're thinking about suicide, are worried about a friend or loved one, or would like emotional support, there are resources available 24/7. Your call or text is confidential and free.\")]),_c('p',[_vm._v(\"Call the Suicide Prevention Lifeline in the United States:\")]),_c('p',[_vm._v(\"English: 1-800-273-8255\")]),_c('p',[_vm._v(\"Español: 1-888-628-9454\")]),_c('br'),_c('p',[_vm._v(\"Text the Crisis TextLine through SMS:\")]),_c('p',[_vm._v(\"US or Canada: 741741\")]),_c('p',{staticClass:\"contact\"},[_c('a',{attrs:{\"href\":\"https://www.messenger.com/login.php?next=https%3A%2F%2Fwww.messenger.com%2Ft%2F204427966369963%2F%3Fmessaging_source%3Dsource%253Apages%253Amessage_shortlink\",\"target\":\"_blank\"}},[_vm._v(\"Facebook Messenger\")])]),_c('p',[_vm._v(\"For other countries:\")]),_c('p',{staticClass:\"contact\"},[_c('a',{attrs:{\"href\":\"https://www.befrienders.org\",\"target\":\"_blank\"}},[_vm._v(\"www.befrienders.org\")])])])],1)}),0),(_vm.showPassOptions !== null )?_c('div',{staticClass:\"text-right mt-3\"},[_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.restart}},[_vm._v(\"Restart\")]),(_vm.showPassOptions['dontKnow'])?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.dontKnow}},[_vm._v(\"Don't Know\")]):_vm._e(),(_vm.showPassOptions['skip'])?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.skip}},[_vm._v(\"Skip\")]):_vm._e()],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Section.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Section.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Section.vue?vue&type=template&id=34033bb9\"\nimport script from \"./Section.vue?vue&type=script&lang=js\"\nexport * from \"./Section.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SurveyItem.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SurveyItem.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SurveyItem.vue?vue&type=template&id=75865be5&scoped=true\"\nimport script from \"./SurveyItem.vue?vue&type=script&lang=js\"\nexport * from \"./SurveyItem.vue?vue&type=script&lang=js\"\nimport style0 from \"./SurveyItem.vue?vue&type=style&index=0&id=75865be5&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"75865be5\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Survey.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Survey.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Survey.vue?vue&type=template&id=6efaf872&scoped=true\"\nimport script from \"./Survey.vue?vue&type=script&lang=js\"\nexport * from \"./Survey.vue?vue&type=script&lang=js\"\nimport style0 from \"./Survey.vue?vue&type=style&index=0&id=6efaf872&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6efaf872\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"docked-layout\"},[(_vm.selectedContent)?_c('section',{staticClass:\"smooth-scroller\",staticStyle:{\"padding-top\":\"0\"},attrs:{\"id\":\"smooth-scroller\"}},[_c('vue-markdown',{attrs:{\"source\":_vm.selectedContent.content}})],1):_c('Loader'),_c('p',{staticClass:\"button-para\"},[_c('button',{staticClass:\"join-button\",on:{\"click\":_vm.doNext}},[_vm._v(_vm._s(_vm.$t('join-button')))])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Landing.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Landing.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Landing.vue?vue&type=template&id=7ef4112c&scoped=true\"\nimport script from \"./Landing.vue?vue&type=script&lang=js\"\nexport * from \"./Landing.vue?vue&type=script&lang=js\"\nimport style0 from \"./Landing.vue?vue&type=style&index=0&id=7ef4112c&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7ef4112c\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"docked-layout\"},[_c('section',[_c('div',{staticClass:\"container\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.step === 1),expression:\"step === 1\"}],staticClass:\"screen\"},[_c('div',{staticClass:\"panel\"},[_c('BridgeImage',{attrs:{\"src\":\"static/images/about%20the%20study.svg\"}}),_c('h3',[_vm._v(\"About the study\")]),_c('p',[_vm._v(\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eu sagittis leo, sit amet consectetur mi. Donec volutpat rutrum massa et luctus. Fusce ac dui quam. Nam a nibh porttitor, tincidunt libero id, condimentum velit. Praesent ultricies consectetur nulla vel pharetra. \")])],1)]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.step === 2),expression:\"step === 2\"}],staticClass:\"screen\"},[_c('div',{staticClass:\"panel\"},[_c('BridgeImage',{attrs:{\"src\":\"static/images/procedures%20activities.svg\"}}),_c('h3',[_vm._v(\"How does the study work?\")]),_vm._m(0)],1)]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.step === 3),expression:\"step === 3\"}],staticClass:\"screen\"},[_c('div',{staticClass:\"panel\"},[_c('BridgeImage',{attrs:{\"src\":\"static/images/how%20long%20does%20it%20last.svg\"}}),_c('h3',[_vm._v(\"How long does it last?\")]),_c('p',[_vm._v(\"We will ask you to participate for 2 weeks every three months. We would like you to participate for 2 years, but you can participate as long as you like.\")])],1)]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.step === 4),expression:\"step === 4\"}],staticClass:\"screen\"},[_c('div',{staticClass:\"panel\"},[_c('BridgeImage',{attrs:{\"src\":\"static/images/benefits%20and%20risks.svg\"}}),_c('h3',[_vm._v(\"What are the benefits and risks?\")]),_c('p',[_vm._v(\"You may not directly benefit from taking part but seeing trends in your data may be interesting to you. You may help researchers better understand PD.\")]),_c('p',[_vm._v(\"The main risk is to your privacy by an accidental release of your data. You may find some of the activities tiring and seeing your data may be stressful.\")])],1)])])]),_c('div',{staticClass:\"buttons\"},[_c('button',{attrs:{\"disabled\":this.step === 1},on:{\"click\":_vm.doBack}},[_vm._v(\"Back\")]),_c('button',{on:{\"click\":_vm.doNext}},[_vm._v(_vm._s(_vm.nextName))])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_vm._v(\" 1. Answer questions to determine if you are eligible for this study \"),_c('br'),_vm._v(\" 2. Complete the informed consent process & download the app\"),_c('br'),_vm._v(\" 3. Complete a one-time health survey\"),_c('br'),_vm._v(\" 4. Complete short physical and cognitive activities \"),_c('br'),_vm._v(\" 5. Track your symptoms, triggers, and medications \")])\n}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StudyIntroduction.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StudyIntroduction.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./StudyIntroduction.vue?vue&type=template&id=dd30dc8c&scoped=true\"\nimport script from \"./StudyIntroduction.vue?vue&type=script&lang=js\"\nexport * from \"./StudyIntroduction.vue?vue&type=script&lang=js\"\nimport style0 from \"./StudyIntroduction.vue?vue&type=style&index=0&id=dd30dc8c&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dd30dc8c\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue';\nimport Router from 'vue-router';\nimport Home from '@/components/Survey/';\nimport Landing from '@/components/Landing/';\nimport StudyIntroduction from '@/components/StudyIntroduction/';\nimport config from '../config';\n\nVue.use(Router);\n\nconst router = new Router({\n routes: [\n {\n path: '/',\n name: 'Landing',\n component: Landing,\n props: {\n startButton: config.startButton,\n },\n },\n {\n path: '/study/intro',\n name: StudyIntroduction,\n component: StudyIntroduction,\n },\n {\n path: '/activities/:id',\n name: 'Home',\n component: Home,\n },\n ],\n});\n\nrouter.beforeEach((to, from, next) => {\n \n if ((from.query.auth_token && !to.query.auth_token) \n || (from.query.uid && !to.query.uid)){\n if (from.path === to.path) {\n next(false);\n } else {\n next({\n path: to.path,\n query: from.query,\n });\n }\n } else {\n next();\n }\n\n})\n\nexport default router\n","import Vue from 'vue';\nimport Vuex from 'vuex';\nimport _ from 'lodash';\nimport jsonld from 'jsonld/dist/jsonld.min';\nimport config from '../config';\nimport axios from 'axios';\n\nwindow.jsonld = jsonld;\n\nVue.use(Vuex);\nconst state = {\n schema: {},\n progress: [],\n responses: [],\n responseMap: {}, // Stores the responses indexed by variable name\n exportResponses: [],\n scores: {},\n participantId: '',\n activities: [],\n activityIndex: null,\n storeReady: false,\n activityReady: false,\n termUrl: 'http://schema.repronim.org/',\n schemaType: '',\n answeredLanguage: '',\n participantUuid: '',\n expiryMinutes: null,\n queryParams: {},\n token: null,\n landing: [],\n hasExport: false\n};\n\nconst getters = {\n // eslint-disable-next-line\n getParticipantId(state) {\n return state.participantId;\n },\n // eslint-disable-next-line\n getschemaType(state) {\n return state.schemaType;\n },\n // eslint-disable-next-line\n getTermsUrl(state) {\n return state.termUrl;\n },\n // eslint-disable-next-line\n getLand(state) {\n return state.landing;\n },\n // eslint-disable-next-line\n srcUrl(state) {\n if (!_.isEmpty(state.schema) && state.activityIndex) {\n state.schemaType = (state.schema['@type'][0]).split('/').slice(-1)[0];\n if (state.schemaType === 'Activity') {\n return state.schema['@id']; // for rendering parameterized activities\n } return state.schema[`${state.termUrl}order`][0]['@list'][state.activityIndex]['@id'];\n }\n return null;\n },\n // eslint-disable-next-line\n readyForActivity(state) {\n return state.storeReady && state.activityReady;\n },\n // eslint-disable-next-line\n getAnsweredLanguage(state) {\n return state.answeredLanguage;\n },\n // eslint-disable-next-line\n getProtocolSchema(state) {\n return state.schema;\n },\n // eslint-disable-next-line\n getQueryParameters(state) {\n return state.queryParams;\n },\n // eslint-disable-next-line\n getAuthToken(state) {\n return state.token;\n },\n // eslint-disable-next-line\n getHasExport(state) {\n return state.hasExport;\n },\n // eslint-disable-next-line\n getExpiryTime(state) {\n return state.expiryMinutes;\n }\n};\n\nconst mutations = {\n // eslint-disable-next-line\n async setReprotermUrl(state, url) {\n axios.get(url).then((response) => {\n // console.log(67, response.data);\n const ctx = response.data['@context'];\n // const ctx = _.filter(response.data['@context'], c => c.includes('contexts/generic'));\n // eslint-disable-next-line no-unused-vars\n axios.get(ctx).then((resp) => {\n // console.log(68, resp.data);\n // state.termUrl = resp.data['@context'].reproterms;\n state.termUrl = 'http://schema.repronim.org/'; // change this\n });\n });\n },\n // eslint-disable-next-line\n async setBaseSchema(state, data) {\n state.schema = data[0];\n state.progress = _.map(data[0][`${state.termUrl}order`][0]['@list'], () => 0);\n state.responses = _.map(data[0][`${state.termUrl}order`][0]['@list'], () => ({}));\n state.exportResponses = _.map(data[0][`${state.termUrl}order`][0]['@list'], () => ([]));\n state.scores = _.map(data[0][`${state.termUrl}order`][0]['@list'], () => ({}));\n state.activities = _.map(data[0][`${state.termUrl}order`][0]['@list'], () => ({}));\n state.storeReady = true;\n if (state.schema['http://schema.repronim.org/landingPage']) {\n // console.log(82, 'store setbase', state.schema['http://schema.repronim.org/landingPage']);\n const landingPage = state.schema['http://schema.repronim.org/landingPage'];\n const landingContents = landingPage.map(async (lc) => {\n const landContent = {};\n const resp = await axios.get(lc['@id']);\n landContent['@language'] = lc[\"http://schema.org/inLanguage\"][0]['@value'];\n landContent.content = resp.data;\n return landContent;\n });\n state.landing = await Promise.all(landingContents);\n }\n },\n // eslint-disable-next-line\n setActivityIndex(state, idx) {\n state.activityIndex = idx;\n state.activityReady = true;\n },\n // eslint-disable-next-line\n setAuthToken(state, authToken) {\n state.token = authToken;\n },\n // eslint-disable-next-line\n setParticipantUUID(state, uid) {\n state.participantUuid = uid;\n },\n // eslint-disable-next-line\n setExpiryMinutes(state, minutes) {\n state.expiryMinutes = minutes;\n },\n // eslint-disable-next-line\n setQueryParameters(state, qp) {\n state.queryParams = qp;\n },\n // eslint-disable-next-line\n saveResponse(state, { key, value }) {\n // console.log(50, state.activityIndex, key, value);\n const val = value[0]; // response value\n const exportResponseActivity = value[1]; // response activity object for exporting data\n const exportResponse = value[2]; // response object for export data\n state.responses[state.activityIndex][key] = val;\n state.exportResponses[state.activityIndex].push(exportResponseActivity, exportResponse);\n // console.log(87, state.exportResponses);\n },\n // eslint-disable-next-line\n saveScores(state, { key, scoreObj }) {\n state.scores[state.activityIndex][key] = scoreObj;\n // _.map(scoreObj, (val, scoreKey) => {\n // console.log(58, val, scoreKey, state.scores);\n // state.scores[key][scoreKey] = val;\n // });\n },\n // eslint-disable-next-line\n saveParticipantId(state, uid) {\n state.participantId = uid;\n },\n // eslint-disable-next-line\n updateProgress(state, progress) {\n state.progress[state.activityIndex] = progress;\n },\n // eslint-disable-next-line\n setActivityData(state, resp) {\n state.activities[state.activityIndex].activity = resp[0];\n state.activities[state.activityIndex].listShow = [0];\n },\n // eslint-disable-next-line\n setListShow(state, arr) {\n state.activities[state.activityIndex].listShow = arr;\n },\n // eslint-disable-next-line\n // setLanguage(state, lang) {\n // state.selected_language = lang;\n // },\n // eslint-disable-next-line\n setAnsweredLanguage(state, lang) {\n state.answeredLanguage = lang;\n },\n // eslint-disable-next-line\n setActivityList(state, actList) {\n if (state.activities[state.activityIndex]) {\n state.activities[state.activityIndex].activityList = actList;\n }\n },\n // eslint-disable-next-line\n clearResponses(state, actIndex) {\n state.responses[actIndex] = {};\n state.progress[actIndex] = 0;\n },\n // eslint-disable-next-line\n setExport(state, value) {\n state.hasExport = value;\n },\n};\n\nconst actions = {\n async getReproTerm({ commit }, url) {\n commit('setReprotermUrl', url);\n },\n async getBaseSchema({ commit }, url) {\n commit('setBaseSchema', await (jsonld.expand(url || config.githubSrc)));\n },\n async setActivityIndex({ commit }, idx) {\n commit('setActivityIndex', idx);\n },\n saveParticipantId({ commit }, val) {\n commit('saveParticipantId', val);\n },\n saveResponse({ commit }, { key, value }) {\n commit('saveResponse', { key, value });\n },\n saveScores({ commit }, { key, scoreObj }) {\n commit('saveScores', { key, scoreObj });\n },\n updateProgress({ commit }, progress) {\n commit('updateProgress', progress);\n },\n // eslint-disable-next-line\n async getActivityData({ commit, getters }) {\n return commit('setActivityData', await jsonld.expand(getters.srcUrl));\n },\n updateListShow({ commit }, arr) {\n commit('setListShow', arr);\n },\n setAnsweredLanguage({ commit }, lang) {\n commit('setAnsweredLanguage', lang);\n },\n setActivityList({ commit }, actList) {\n commit('setActivityList', actList);\n },\n clearResponses({ commit }, actIndex) {\n commit('clearResponses', actIndex);\n },\n setParticipantUUID({ commit }, puid) {\n commit('setParticipantUUID', puid);\n },\n setAuthToken({ commit }, tok) {\n commit('setAuthToken', tok);\n },\n setExpiryMinutes({ commit }, mins) {\n commit('setExpiryMinutes', mins);\n },\n setQueryParameters({ commit }, queryParams) {\n commit('setQueryParameters', queryParams);\n },\n setExport({ commit }, value) {\n commit('setExport', value);\n }\n};\n\nexport default new Vuex.Store({\n state,\n getters,\n mutations,\n actions,\n});\n","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport Vue from 'vue';\nimport App from './App';\nimport router from './router';\nimport store from './store/store';\nimport i18n from './i18n';\n\nVue.config.productionTip = false;\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n store,\n router,\n components: { App },\n i18n,\n render: h => h(App)\n});\n","var map = {\n\t\"./af\": 5177,\n\t\"./af.js\": 5177,\n\t\"./ar\": 1509,\n\t\"./ar-dz\": 1488,\n\t\"./ar-dz.js\": 1488,\n\t\"./ar-kw\": 8676,\n\t\"./ar-kw.js\": 8676,\n\t\"./ar-ly\": 2353,\n\t\"./ar-ly.js\": 2353,\n\t\"./ar-ma\": 4496,\n\t\"./ar-ma.js\": 4496,\n\t\"./ar-ps\": 6947,\n\t\"./ar-ps.js\": 6947,\n\t\"./ar-sa\": 2682,\n\t\"./ar-sa.js\": 2682,\n\t\"./ar-tn\": 9756,\n\t\"./ar-tn.js\": 9756,\n\t\"./ar.js\": 1509,\n\t\"./az\": 5533,\n\t\"./az.js\": 5533,\n\t\"./be\": 8959,\n\t\"./be.js\": 8959,\n\t\"./bg\": 7777,\n\t\"./bg.js\": 7777,\n\t\"./bm\": 4903,\n\t\"./bm.js\": 4903,\n\t\"./bn\": 1290,\n\t\"./bn-bd\": 7357,\n\t\"./bn-bd.js\": 7357,\n\t\"./bn.js\": 1290,\n\t\"./bo\": 1545,\n\t\"./bo.js\": 1545,\n\t\"./br\": 1470,\n\t\"./br.js\": 1470,\n\t\"./bs\": 4429,\n\t\"./bs.js\": 4429,\n\t\"./ca\": 7306,\n\t\"./ca.js\": 7306,\n\t\"./cs\": 6464,\n\t\"./cs.js\": 6464,\n\t\"./cv\": 3635,\n\t\"./cv.js\": 3635,\n\t\"./cy\": 4226,\n\t\"./cy.js\": 4226,\n\t\"./da\": 3601,\n\t\"./da.js\": 3601,\n\t\"./de\": 7853,\n\t\"./de-at\": 6111,\n\t\"./de-at.js\": 6111,\n\t\"./de-ch\": 4697,\n\t\"./de-ch.js\": 4697,\n\t\"./de.js\": 7853,\n\t\"./dv\": 708,\n\t\"./dv.js\": 708,\n\t\"./el\": 4691,\n\t\"./el.js\": 4691,\n\t\"./en-au\": 3872,\n\t\"./en-au.js\": 3872,\n\t\"./en-ca\": 8298,\n\t\"./en-ca.js\": 8298,\n\t\"./en-gb\": 6195,\n\t\"./en-gb.js\": 6195,\n\t\"./en-ie\": 6584,\n\t\"./en-ie.js\": 6584,\n\t\"./en-il\": 5543,\n\t\"./en-il.js\": 5543,\n\t\"./en-in\": 9033,\n\t\"./en-in.js\": 9033,\n\t\"./en-nz\": 9402,\n\t\"./en-nz.js\": 9402,\n\t\"./en-sg\": 3004,\n\t\"./en-sg.js\": 3004,\n\t\"./eo\": 2934,\n\t\"./eo.js\": 2934,\n\t\"./es\": 7650,\n\t\"./es-do\": 838,\n\t\"./es-do.js\": 838,\n\t\"./es-mx\": 7730,\n\t\"./es-mx.js\": 7730,\n\t\"./es-us\": 6575,\n\t\"./es-us.js\": 6575,\n\t\"./es.js\": 7650,\n\t\"./et\": 3035,\n\t\"./et.js\": 3035,\n\t\"./eu\": 3508,\n\t\"./eu.js\": 3508,\n\t\"./fa\": 119,\n\t\"./fa.js\": 119,\n\t\"./fi\": 527,\n\t\"./fi.js\": 527,\n\t\"./fil\": 5995,\n\t\"./fil.js\": 5995,\n\t\"./fo\": 2477,\n\t\"./fo.js\": 2477,\n\t\"./fr\": 5498,\n\t\"./fr-ca\": 6435,\n\t\"./fr-ca.js\": 6435,\n\t\"./fr-ch\": 7892,\n\t\"./fr-ch.js\": 7892,\n\t\"./fr.js\": 5498,\n\t\"./fy\": 7071,\n\t\"./fy.js\": 7071,\n\t\"./ga\": 1734,\n\t\"./ga.js\": 1734,\n\t\"./gd\": 217,\n\t\"./gd.js\": 217,\n\t\"./gl\": 7329,\n\t\"./gl.js\": 7329,\n\t\"./gom-deva\": 2124,\n\t\"./gom-deva.js\": 2124,\n\t\"./gom-latn\": 3383,\n\t\"./gom-latn.js\": 3383,\n\t\"./gu\": 5050,\n\t\"./gu.js\": 5050,\n\t\"./he\": 1713,\n\t\"./he.js\": 1713,\n\t\"./hi\": 3861,\n\t\"./hi.js\": 3861,\n\t\"./hr\": 6308,\n\t\"./hr.js\": 6308,\n\t\"./hu\": 609,\n\t\"./hu.js\": 609,\n\t\"./hy-am\": 7160,\n\t\"./hy-am.js\": 7160,\n\t\"./id\": 4063,\n\t\"./id.js\": 4063,\n\t\"./is\": 9374,\n\t\"./is.js\": 9374,\n\t\"./it\": 8383,\n\t\"./it-ch\": 1827,\n\t\"./it-ch.js\": 1827,\n\t\"./it.js\": 8383,\n\t\"./ja\": 3827,\n\t\"./ja.js\": 3827,\n\t\"./jv\": 9722,\n\t\"./jv.js\": 9722,\n\t\"./ka\": 1794,\n\t\"./ka.js\": 1794,\n\t\"./kk\": 7088,\n\t\"./kk.js\": 7088,\n\t\"./km\": 6870,\n\t\"./km.js\": 6870,\n\t\"./kn\": 4451,\n\t\"./kn.js\": 4451,\n\t\"./ko\": 3164,\n\t\"./ko.js\": 3164,\n\t\"./ku\": 8174,\n\t\"./ku-kmr\": 6181,\n\t\"./ku-kmr.js\": 6181,\n\t\"./ku.js\": 8174,\n\t\"./ky\": 8474,\n\t\"./ky.js\": 8474,\n\t\"./lb\": 9680,\n\t\"./lb.js\": 9680,\n\t\"./lo\": 5867,\n\t\"./lo.js\": 5867,\n\t\"./lt\": 5766,\n\t\"./lt.js\": 5766,\n\t\"./lv\": 9532,\n\t\"./lv.js\": 9532,\n\t\"./me\": 8076,\n\t\"./me.js\": 8076,\n\t\"./mi\": 1848,\n\t\"./mi.js\": 1848,\n\t\"./mk\": 306,\n\t\"./mk.js\": 306,\n\t\"./ml\": 3739,\n\t\"./ml.js\": 3739,\n\t\"./mn\": 9053,\n\t\"./mn.js\": 9053,\n\t\"./mr\": 6169,\n\t\"./mr.js\": 6169,\n\t\"./ms\": 3386,\n\t\"./ms-my\": 2297,\n\t\"./ms-my.js\": 2297,\n\t\"./ms.js\": 3386,\n\t\"./mt\": 7075,\n\t\"./mt.js\": 7075,\n\t\"./my\": 2264,\n\t\"./my.js\": 2264,\n\t\"./nb\": 2274,\n\t\"./nb.js\": 2274,\n\t\"./ne\": 8235,\n\t\"./ne.js\": 8235,\n\t\"./nl\": 2572,\n\t\"./nl-be\": 3784,\n\t\"./nl-be.js\": 3784,\n\t\"./nl.js\": 2572,\n\t\"./nn\": 4566,\n\t\"./nn.js\": 4566,\n\t\"./oc-lnc\": 9330,\n\t\"./oc-lnc.js\": 9330,\n\t\"./pa-in\": 9849,\n\t\"./pa-in.js\": 9849,\n\t\"./pl\": 4418,\n\t\"./pl.js\": 4418,\n\t\"./pt\": 9834,\n\t\"./pt-br\": 8303,\n\t\"./pt-br.js\": 8303,\n\t\"./pt.js\": 9834,\n\t\"./ro\": 4457,\n\t\"./ro.js\": 4457,\n\t\"./ru\": 2271,\n\t\"./ru.js\": 2271,\n\t\"./sd\": 1221,\n\t\"./sd.js\": 1221,\n\t\"./se\": 3478,\n\t\"./se.js\": 3478,\n\t\"./si\": 7538,\n\t\"./si.js\": 7538,\n\t\"./sk\": 5784,\n\t\"./sk.js\": 5784,\n\t\"./sl\": 6637,\n\t\"./sl.js\": 6637,\n\t\"./sq\": 6794,\n\t\"./sq.js\": 6794,\n\t\"./sr\": 5719,\n\t\"./sr-cyrl\": 3322,\n\t\"./sr-cyrl.js\": 3322,\n\t\"./sr.js\": 5719,\n\t\"./ss\": 6000,\n\t\"./ss.js\": 6000,\n\t\"./sv\": 1011,\n\t\"./sv.js\": 1011,\n\t\"./sw\": 748,\n\t\"./sw.js\": 748,\n\t\"./ta\": 1025,\n\t\"./ta.js\": 1025,\n\t\"./te\": 1885,\n\t\"./te.js\": 1885,\n\t\"./tet\": 8861,\n\t\"./tet.js\": 8861,\n\t\"./tg\": 6571,\n\t\"./tg.js\": 6571,\n\t\"./th\": 5802,\n\t\"./th.js\": 5802,\n\t\"./tk\": 9527,\n\t\"./tk.js\": 9527,\n\t\"./tl-ph\": 9231,\n\t\"./tl-ph.js\": 9231,\n\t\"./tlh\": 1052,\n\t\"./tlh.js\": 1052,\n\t\"./tr\": 5096,\n\t\"./tr.js\": 5096,\n\t\"./tzl\": 9846,\n\t\"./tzl.js\": 9846,\n\t\"./tzm\": 1765,\n\t\"./tzm-latn\": 7711,\n\t\"./tzm-latn.js\": 7711,\n\t\"./tzm.js\": 1765,\n\t\"./ug-cn\": 8414,\n\t\"./ug-cn.js\": 8414,\n\t\"./uk\": 6618,\n\t\"./uk.js\": 6618,\n\t\"./ur\": 158,\n\t\"./ur.js\": 158,\n\t\"./uz\": 7609,\n\t\"./uz-latn\": 2475,\n\t\"./uz-latn.js\": 2475,\n\t\"./uz.js\": 7609,\n\t\"./vi\": 1135,\n\t\"./vi.js\": 1135,\n\t\"./x-pseudo\": 4051,\n\t\"./x-pseudo.js\": 4051,\n\t\"./yo\": 2218,\n\t\"./yo.js\": 2218,\n\t\"./zh-cn\": 2648,\n\t\"./zh-cn.js\": 2648,\n\t\"./zh-hk\": 1632,\n\t\"./zh-hk.js\": 1632,\n\t\"./zh-mo\": 1541,\n\t\"./zh-mo.js\": 1541,\n\t\"./zh-tw\": 304,\n\t\"./zh-tw.js\": 304\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 5358;","var map = {\n\t\"./en.json\": 4174,\n\t\"./es.json\": 6725\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 5432;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/reproschema-ui/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkschema_ui\"] = self[\"webpackChunkschema_ui\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(8271); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["module","exports","githubSrc","startButton","assetsPublicPath","backendServer","consent","showHelp","contact","emailSubject","render","_vm","this","_c","_self","attrs","bannerMessage","showTimer","staticClass","_v","_s","$t","_e","expiryTime","ref","sidebarHeader","directives","name","rawName","value","selected_language","expression","on","$event","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","multiple","setLang","_l","languageOptions","option","key","text","domProps","schemaOrder","ui","index","class","parseInt","activityIndex","visibility","setActivity","isProtocolUrl","progress","getDisplayName","allowExport","isAnswered","downloadZipData","toggleSidebar","getEmailData","query","$route","model","invalidToken","callback","$$v","accessDeniedPath","reprotermsUrl","srcUrl","responses","clientIp","getPId","checkAdvance","Object","values","nextActivity","updateProgress","saveResponse","saveScores","clearResponses","hasError","notIOS","permissionDemoPath","staticRenderFns","radius","stroke","normalizedRadius","style","strokeDashoffset","strokeColor","circumference","props","Number","String","data","Math","PI","computed","component","statusType","days","wordString","day","hours","minutes","seconds","message","timer","start","end","interval","created","JSON","parse","trans","mounted","Date","starttime","getTime","endtime","timerCount","setInterval","timeoutMessage","methods","now","distance","passTime","config","clearInterval","calcTime","running","console","log","upcoming","dist","floor","loadLocaleMessages","locales","require","messages","keys","forEach","matched","match","length","locale","Vue","use","VueI18n","process","fallbackLocale","BootstrapVue","slice","reverse","MediaStreamRecorder","getFilename","s","folders","split","N","filename","EmailDecoder","constructor","selector","initialize","mailto","hash","window","location","href","atob","bindEvents","document","querySelectorAll","email","addEventListener","getAttribute","components","circleProgress","Timer","sidebarActive","displayNames","labelMap","langMap","cache","reproterms2","protocolUrl","content","audioConstraints","audio","video","browserType","clientSpecs","audioStream","mediaRecorder","error","supported","checkPermission","undefined","navigator","mediaDevices","getUserMedia","constraints","webkitGetUserMedia","mozGetUserMedia","msGetUserMedia","Promise","resolve","reject","Error","then","event","i18n","$refs","sidebar","className","indexOf","getVariableName","variableMap","vmap","mapper","_","v","uri","variable","checkDisableBack","url","$router","push","checkProgressDiff","$store","dispatch","$forceUpdate","oldP","newP","setVisbility","needsVizUpdate","currentResponse","hasOwnProperty","used","scoreObj","activityUrl","state","schema","labelList","addProperties","v1","dName","d","isArray","evaluateString","string","responseMapper","output","output_modified","k","output_old","replaceAll","RegExp","Function","responseMap","keyArr","entries","unused","qId","key1","value1","joined_key","concat","rp","r","getters","getQueryParameters","q","outMapper","a","getPrefLabel","baseSchema","n","jsonld","resp","computeVisibilityCondition","cond","request","method","payload","headers","cacheKey","stringify","axios","qualified","visibilityChain","conditionList","condition","newConditionList","shift","visibilityConditions","Response","exportResponses","totalScores","scores","uId","participantId","totalResponse","response","formatData","jszip","JSZip","fileName","uuidv4","eachActivityList","activityData","itemObj","newObj","Blob","keyStrings","isAbout","rId","folder","file","generateAsync","type","myzipfile","saveAs","watch","params","id","handler","newC","deep","Bowser","userAgent","browser","lang","uid","get","expiry_time","auth_token","path","os","endDate","moment","getExpiryTime","replace","emailData","btoa","getschemaType","getTermsUrl","currentActivityProgress","order","u","langCodeList","l","langList","c","shouldUpload","getAuthToken","allowList","includes","schemaNameMapper","fname","currentActivityObj","varName","condition1","payloadList","p","item","getParticipantId","nextObj","i","listShow","complete","autoAdvance","isVis","currentActivityIndex","nextActivity1","preambleText","contextReverse","shouldShow","ipAddress","findOverallPassOptions","individualPassList","nextQuestion","setResponse","setScore","variant","status","widgetType","title","itemPreamble","valueConstraints","fieldData","init","showPassOptions","itemAllow","sendSkip","sendDontKnow","sendNext","sendData","mp_progress","mp_responses","sendDataAndGoNext","setMPResponse","setMPProgress","clearMPResponses","preamble","inputType","requiredValue","random","readOnly","showItemPassOptions","dontKnow","skip","isMultipleChoice","onSubmit","checkboxSelected","opt","isImageSelect","dataImages","selectedImages","onSelectImage","rootClass","dataImagesLocal","dataImage","isMultiple","classThumbnail","src","alt","h","w","useLabel","classThumbnailMultiple","onSelectMultipleImage","default","Boolean","activeClass","singleSelected","multipleSelected","imageId","baseClass","setInitialSelection","baseMultipleClass","isExistInArray","objectImage","assign","$emit","find","removeFromSingleSelected","removeFromMultipleSelected","dontFireEmit","resetMultipleSelection","answerLanguage","VueSelectImage","activeValueChoices","ac","image","imageSelect","$nextTick","$set","e","preventDefault","mode","staticStyle","generateNumber","getAudioSource","isRecording","hasRecording","record","finish","timeRemaining","isPlaying","play","pause","reset","recording","audioCtx","recordingTime","countdown","endPlay","stop","mimeType","self","ondataavailable","blobURL","URL","createObjectURL","blob","Audio","onended","AudioContext","webkitAudioContext","startsWith","input1","hasUnit","input2","Multiselect","form","unitCode","unit","isValidInt","isValid","num","parseFloat","isNaN","isInteger","isValidFloat","isFinite","selectedLanguageLabel","activeUnitOption","input3","areValidFloats","isValidRange","value2","input","num1","num2","dateParam","disabledDates","customFormatter","Datepicker","getFullYear","date","format","from","onFileSelected","selectedFile","files","b","first_name","middle_name","last_name","getMinImageLabel","getMinLabel","getMaxImageLabel","getMaxLabel","VueSlider","activeMinLabel","labels","choicesLength","activeMaxLabel","vcList","round","yesterday","slept","today","woke","timeSlept","hh","mm","A","VueTimepicker","startTime","sleptAt","endTime","wokeAt","res","diff","add","set","toISOString","difference","checkNotOtherAndSendData","multipleAllowed","limitText","slot","checkOther","otherInput","selectedCountries","isLoading","count","country","isUploading","hasData","hasTimedOut","downloadAndSubmit","upload","exportOption","percentCompleted","showProgressBar","hasStripe","timeoutOK","timeout","dataUploadPath","done","_m","zippedDataSize","slicedArray","sentPartCount","Loader","uploadFailed","getHasExport","uploadZipData","TOKEN","expiryMinutes","chunk_size","file_size","size","each_slice","next_slice","allRequests","formData","FormData","append","sendRetry","all","retries","backoff","config1","post","splice","completedPercent","toFixed","catch","setTimeout","showSharing","composing","canSubmit","accept","scope","isValidEmail","test","p_uuid","ParticipantId","StudySign","SaveData","Radio","AudioRecord","TextInput","TextArea","EmailInput","IntegerInput","FloatInput","RangeInput","DateInput","DocumentUpload","MultiTextInput","SliderInput","TimeRange","SelectInput","StaticReadOnly","currentIndex","context","currentItem","score","restart","activity","parsedJSONLD","getData","answered","getVisibility","visibilityMapper","filenameParts","totalQ","currResponses","idx","body","scrollTop","documentElement","activePreamble","refInFor","showModal","VuejsDialog","t0","performance","itemUrl","d2","t1","uiUrl","origin","pathname","respActivityUuid","responseUuid","respData","getAnsweredLanguage","wasAttributedTo","participantUuid","subject_id","answeredObj","getScoring","scoreMapper","scoreFormula","scoreVariableName","checkAlertMessage","protocolSchema","getProtocolSchema","flag","addP","key_name","nextQuestionIdx","nextItem","isVisible","orderList","newList","criteria1","criteria2","findPassOptions","isSkip","isDontKnow","surveyStart","InputSelector","multipart","MultiPart","subactivity","Section","valueC","requireVal","flex","width","bodyStyle","padding","activeQuestion","answeredLanguage","getRequiredVal","rsp","e1","getValueConstraintsData","e2","processActivityData","pass","allow","sk","al","dk","onDownloadProgress","doSkip","SurveyItem","findIndividualPassOptions","initializeListShow","ap","eachItem","matchedObject","computeNewShow","exportVal","usedList","isAboutUrl","sectionItemKey","sectionItemValue","responseActivity","inLanguage","startedAtTime","endedAtTime","wasAssociatedWith","version","generated","valueAndDataExport","respMapper","mp_pr","visibleAct","actVisibility","nextIndex","readyForActivity","newVal","listContentRev","storeContext","activities","currentActivity","actList","getparticipantUUID","selectedContent","doNext","VueMarkdown","landingC","landing","doBack","step","nextName","totalSteps","appletURL","redirect","appletId","learnMore","consentViewer","toggleMax","Router","router","routes","Landing","StudyIntroduction","Home","beforeEach","to","next","Vuex","storeReady","activityReady","termUrl","schemaType","queryParams","token","hasExport","getLand","mutations","setReprotermUrl","ctx","setBaseSchema","landingPage","landingContents","async","landContent","lc","setActivityIndex","setAuthToken","authToken","setParticipantUUID","setExpiryMinutes","setQueryParameters","qp","exportResponseActivity","exportResponse","saveParticipantId","setActivityData","setListShow","arr","setAnsweredLanguage","setActivityList","activityList","actIndex","setExport","actions","getReproTerm","commit","getBaseSchema","getActivityData","updateListShow","puid","tok","mins","productionTip","el","store","App","webpackContext","req","webpackContextResolve","__webpack_require__","code","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","getter","__esModule","definition","defineProperty","enumerable","g","globalThis","obj","prop","Symbol","toStringTag","nmd","paths","children","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","bind","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/app.154ba041.js b/js/app.154ba041.js deleted file mode 100644 index 09c33b3..0000000 --- a/js/app.154ba041.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){var t={737:function(t){t.exports={githubSrc:"https://raw.githubusercontent.com/ReproNim/demo-protocol/master/DemoProtocol/DemoProtocol_schema",startButton:{en:"Join",es:"Participar"},assetsPublicPath:"/reproschema-ui/",backendServer:null,consent:!0,showHelp:!0,contact:"voice_survey@mit.edu",emailSubject:"Help with Covid19 study"}},2451:function(t,e,s){"use strict";var i=s(5471),a=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"app"}},[t.bannerMessage||t.showTimer?e("nav",{staticClass:"navbar sticky-top navbar-custom"},[t.bannerMessage?e("b-navbar-nav",{staticClass:"navbar-brand"},[e("b-nav-text",[t._v(t._s(t.$t("banner-message")))])],1):t._e(),t.showTimer?e("div",{staticClass:"timer",attrs:{id:"timer"}},[e("Timer",{attrs:{starttime:"Dec 23, 2020 02:37:25",endtime:t.expiryTime,trans:'{\n "day":"Day",\n "hours":"Hours",\n "minutes":"Minutes",\n "seconds":"Seconds",\n "expired":"Please contact the researchers for a new submission link.",\n "running":"Remaining...",\n "upcoming":"Till start of study."\n }'}})],1):t._e()],1):t._e(),e("div",{staticClass:"wrapper"},[e("nav",{ref:"sidebar",attrs:{id:"sidebar"}},[e("div",{staticClass:"sidebar-header"},[e("h4",[t._v(t._s(t.sidebarHeader))])]),e("div",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.selected_language,expression:"selected_language"}],on:{change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selected_language=e.target.multiple?s:s[0]},function(e){return t.setLang(e)}]}},[e("option",{attrs:{disabled:"",value:""}},[t._v("Select Language")]),t._l(t.languageOptions,(function(s){return e("option",{key:s.text,domProps:{value:s.value}},[t._v(" "+t._s(s.text)+" ")])}))],2)]),e("ul",{staticClass:"list-unstyled components"},t._l(t.schemaOrder,(function(s,i){return e("li",{key:i,class:{current:i===parseInt(t.activityIndex)}},[t.visibility[i]?e("a",{class:{current:i===parseInt(t.activityIndex)},on:{click:function(e){return t.setActivity(i)}}},[t.isProtocolUrl?e("circleProgress",{attrs:{radius:20,progress:t.progress[i],stroke:4,strokeColor:"#007bff"}}):t._e(),e("span",{staticClass:"align-middle activityItem"},[t._v(" "+t._s(t.getDisplayName(s))+" ")])],1):t._e()])})),0),e("div",[t.allowExport?e("b-button",{staticClass:"align-middle",attrs:{disabled:!t.isAnswered},on:{click:t.downloadZipData}},[t._v(t._s(t.$t("export-button")))]):t._e()],1)]),e("div",{attrs:{id:"content"}},[e("nav",{staticClass:"navbar navbar-expand-lg navbar-light bg-light"},[e("div",{staticClass:"container-fluid"},[e("b-navbar-nav",[e("button",{staticClass:"btn",attrs:{type:"button",id:"sidebarCollapse"},on:{click:t.toggleSidebar}},[e("span",{staticClass:"navbar-toggler-icon"})])]),e("b-navbar-nav",{staticClass:"float-right"},[t.showHelp?e("a",{staticClass:"nav-link",attrs:{href:"#","data-email":t.getEmailData}},[t._v(t._s(t.$t("help-button")))]):t._e(),e("b-nav-item",{attrs:{to:{name:"Landing",query:t.$route.query},exact:""}},[t._v(t._s(t.$t("home-button")))])],1)],1)]),e("b-container",[e("b-modal",{ref:"invalid-token-modal",attrs:{"ok-only":"",title:"Access denied!","no-close-on-esc":"","no-close-on-backdrop":"","hide-header-close":"","hide-footer":"","header-class":"justify-content-center"},model:{value:t.invalidToken,callback:function(e){t.invalidToken=e},expression:"invalidToken"}},[e("img",{attrs:{src:t.accessDeniedPath,alt:"HTTP 403 Forbidden",width:"100%"}}),e("br"),e("br"),e("p",{staticClass:"contact"},[t._v("Please contact us at "),e("a",{attrs:{href:t.contact,target:"_blank"}},[t._v(t._s(t.contact))])])]),e("router-view",{attrs:{reprotermsUrl:t.reprotermsUrl,srcUrl:t.srcUrl,responses:t.responses[t.activityIndex],selected_language:t.selected_language,ipAddress:t.clientIp,participantID:t.getPId,progress:t.progress[t.activityIndex],autoAdvance:t.checkAdvance,actVisibility:Object.values(t.visibility),nextActivity:t.nextActivity},on:{updateProgress:t.updateProgress,saveResponse:t.saveResponse,saveScores:t.saveScores,clearResponses:t.clearResponses}})],1)],1),e("b-modal",{ref:"my-modal",attrs:{size:"lg","hide-footer":"",title:"Uh-oh! Voice input needs fixing."},model:{value:t.hasError,callback:function(e){t.hasError=e},expression:"hasError"}},[t.notIOS?e("div",[e("p",[t._v(t._s(t.$t("permission-change-notification")))]),e("br"),e("img",{attrs:{src:t.permissionDemoPath,alt:"allow media permission",width:"100%"}}),e("br"),e("p",[t._v(t._s(t.$t("permission-refresh")))])]):e("div",[e("p",[t._v(t._s(t.$t("safari-notification")))])])])],1)])},r=[],n=(s(4114),s(4979),s(8292)),o=s(1250),l=s(6880),c=s.n(l),u=s(5093),h=s.n(u),p=s(2543),d=s.n(p),m=s(1710),g=s.n(m),v=s(4526),b=s(2438),y=s.n(b),f=s(4213),_=(s(9313),function(){var t=this,e=t._self._c;return e("svg",{attrs:{height:2*t.radius,width:2*t.radius}},[e("circle",{attrs:{stroke:"lightgray","stroke-width":t.stroke,fill:"transparent",r:t.normalizedRadius,cx:t.radius,cy:t.radius}}),e("circle",{style:{strokeDashoffset:t.strokeDashoffset},attrs:{stroke:t.strokeColor,"stroke-dasharray":t.circumference+" "+t.circumference,"stroke-width":t.stroke,fill:"transparent",r:t.normalizedRadius,cx:t.radius,cy:t.radius}})])}),w=[],x={props:{radius:Number,progress:Number,stroke:Number,strokeColor:String},data(){const t=this.radius-2*this.stroke,e=2*t*Math.PI;return{normalizedRadius:t,circumference:e}},computed:{strokeDashoffset(){return this.circumference-this.progress/100*this.circumference}}},k=x,$=s(1656),S=(0,$.A)(k,_,w,!1,null,null,null),C=S.exports,A=function(){var t=this,e=t._self._c;return e("div",["expired"!==t.statusType?e("div",[e("div",{staticClass:"day"},[e("span",{staticClass:"number"},[t._v(t._s(t.days))]),e("div",{staticClass:"format"},[t._v(t._s(t.wordString.day))])]),e("div",{staticClass:"hour"},[e("span",{staticClass:"number"},[t._v(t._s(t.hours))]),e("div",{staticClass:"format"},[t._v(t._s(t.wordString.hours))])]),e("div",{staticClass:"min"},[e("span",{staticClass:"number"},[t._v(t._s(t.minutes))]),e("div",{staticClass:"format"},[t._v(t._s(t.wordString.minutes))])]),e("div",{staticClass:"sec"},[e("span",{staticClass:"number"},[t._v(t._s(t.seconds))]),e("div",{staticClass:"format"},[t._v(t._s(t.wordString.seconds))])])]):t._e(),e("div",{staticClass:"message",class:t.statusType},[t._v(t._s(t.message))])])},I=[],P=s(737),j=s.n(P),D={name:"Timer",props:["starttime","endtime","trans"],data(){return{timer:"",wordString:{},start:"",end:"",interval:"",days:"",minutes:"",hours:"",seconds:"",message:"",statusType:""}},created:function(){this.wordString=JSON.parse(this.trans)},mounted(){this.start=new Date(this.starttime).getTime(),this.end=new Date(this.endtime).getTime(),this.timerCount(this.start,this.end),this.interval=setInterval((()=>{this.timerCount(this.start,this.end)}),1e3)},computed:{timeoutMessage(){return this.$t("timeout-message")}},methods:{timerCount(t,e){var s=(new Date).getTime(),i=t-s,a=e-s;if(i<0&&a<0)return this.message=`${this.timeoutMessage} ${j().contact}`,this.statusType="expired",void clearInterval(this.interval);i<0&&a>0?(this.calcTime(a),this.message=this.wordString.running,this.statusType="running"):i>0&&a>0&&(console.log(84),this.calcTime(i),this.message=this.wordString.upcoming,this.statusType="upcoming")},calcTime:function(t){this.days=Math.floor(t/864e5),this.hours=Math.floor(t%864e5/36e5),this.minutes=Math.floor(t%36e5/6e4),this.seconds=Math.floor(t%6e4/1e3)}}},O=D,T=(0,$.A)(O,A,I,!1,null,"e52dacec",null),R=T.exports,U=s(4765);function M(){const t=s(5432),e={};return t.keys().forEach((s=>{const i=s.match(/([A-Za-z0-9-_]+)\./i);if(i&&i.length>1){const a=i[1];j().startButton instanceof Object?t(s)["join-button"]=j().startButton[a]:t(s)["join-button"]=j().startButton,j().banner instanceof Object?t(s)["banner-message"]=j().banner[a]:t(s)["banner-message"]=j().banner,e[a]=t(s)}})),e}i["default"].use(U.A);var L=new U.A({locale:"en",fallbackLocale:"en",messages:M()});i["default"].use(n.Ay$),i["default"].filter("reverse",(t=>t.slice().reverse()));const N=s(8651);function E(t){const e=t.split("/"),s=e.length,i=e[s-1].split(".")[0];return i}class V{constructor(t="[data-email]"){this.selector=t,this.initialize()}mailto(t){window.location.href=`mailto:${atob(t)}`}bindEvents(){document.querySelectorAll(this.selector).forEach((t=>{t.addEventListener("click",(()=>{this.mailto(t.getAttribute("data-email"))}))}))}initialize(){this.bindEvents()}}var q={name:"App",components:{circleProgress:C,Timer:R},data(){return{sidebarActive:!0,selected_language:"",sidebarHeader:"",visibility:{},displayNames:{},labelMap:{},langMap:{},cache:{},isAnswered:!1,clientIp:"",reproterms2:"",protocolUrl:j().githubSrc,content:{},startButton:j().startButton,showHelp:j().showHelp,bannerMessage:j().banner,contact:j().contact,audioConstraints:{audio:!0,video:!1},hasError:!1,browserType:"",clientSpecs:{},invalidToken:!1}},methods:{initialize(t){this.mediaRecorder=new N(t)},error(){this.hasError=!0,this.supported=!1},checkPermission(){void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=t=>{const e=navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return e?new Promise(((s,i)=>{e.call(navigator,t,s,i)})):(this.supported=!1,Promise.reject(new Error("getUserMedia is not implemented in this browser")))}),navigator.mediaDevices.getUserMedia?(this.supported=!0,navigator.mediaDevices.getUserMedia(this.audioConstraints).then(this.initialize,this.error)):this.supported=!1},setLang(t){L.locale=t.target.value},toggleSidebar(){this.$refs.sidebar.className.indexOf("active")<0?this.$refs.sidebar.className="active":this.$refs.sidebar.className=""},getVariableName(t,e){const s=e,i={};return d().map(s,(t=>{const e=t["http://schema.repronim.org/isAbout"][0]["@id"],s=t["http://schema.repronim.org/variableName"][0]["@value"];i[e]=s})),i[t]},setActivity(t){!this.checkDisableBack&&this.isProtocolUrl&&(this.$route.query.url?this.$router.push(`/activities/${t}?url=${this.$route.query.url}`):this.$router.push(`/activities/${t}`))},updateProgress(t){this.checkProgressDiff(this.progress[this.activityIndex],t),this.$store.dispatch("updateProgress",t),this.$forceUpdate()},checkProgressDiff(t,e){t!==e&&100===e&&this.setVisbility()},saveResponse(t,e){let s=!1;this.currentResponse[t]!==e[0]&&100===this.progress[this.activityIndex]&&(s=!0),e[1].hasOwnProperty("used")&&e[1].used.push(this.protocolUrl),this.$store.dispatch("saveResponse",{key:t,value:e}),s&&this.setVisbility(),this.isAnswered=!0},saveScores(t,e){this.$store.dispatch("saveScores",{key:t,scoreObj:e})},clearResponses(){this.$store.dispatch("clearResponses",this.activityIndex),this.$forceUpdate()},getDisplayName(t){if(!d().isEmpty(this.$store.state.schema)){let e=this.labelMap[t];if(this.$store.state.schema["http://schema.repronim.org/addProperties"][0]["http://www.w3.org/2004/02/skos/core#prefLabel"]){const s=this.$store.state.schema["http://schema.repronim.org/addProperties"],i=d().filter(s,(e=>e["http://schema.repronim.org/isAbout"][0]["@id"]===t));e=i[0]["http://www.w3.org/2004/02/skos/core#prefLabel"];const a=d().filter(e,(t=>t["@language"]===this.selected_language));return Array.isArray(a)&&a.length?a[0]["@value"]:e[0]["@value"]}const s=d().filter(e,(t=>t["@language"]===this.selected_language));return Array.isArray(s)&&s.length?s[0]["@value"]:e}return""},evaluateString(t,e){const s=Object.keys(e);let i=t,a=!1;return d().map(s,(t=>{let s=e[t].val;if(void 0!==s)if("skipped"!==s&&"dontknow"!==s){d().isString(s)&&(s=`'${s}'`),d().isArray(s)&&(s=`[${s}]`);let e=i;i=i.replaceAll(new RegExp(`\\b${t}\\b`||`\\b${t}\\.`,"g"),s),e!==i&&(a=!0)}else{let e=i;i=i.replaceAll(new RegExp(`\\b${t}\\b`,"g"),0),e!==i&&(a=!0)}})),!!a&&Function("return "+i)()},responseMapper(t,e,s){let i=[];if(this.schema["http://schema.repronim.org/addProperties"]){const t=this.schema["http://schema.repronim.org/addProperties"];if(Object.entries(t).forEach((([t,a])=>{const r=a["http://schema.repronim.org/isAbout"][0]["@id"],n=a["http://schema.repronim.org/variableName"][0]["@value"];r in s&&Object.entries(s[r]).forEach((([t,e])=>{const s="".concat(n,".",t);i.push({qId:s,val:e["val"],key:e["ref"]})}));const o=d().filter(e,(t=>r in t));let l=o[0];o[0]&&(l=o[0][r]),i.push({key:r,val:l,qId:n})})),this.$store.getters.getQueryParameters){const t=this.$store.getters.getQueryParameters;Object.entries(t).forEach((([t,e])=>{const s=t;"week"===t&&(e=parseInt(e));const a=e;i.push({key:t,val:a,qId:s})}))}const a={};return d().map(i,(t=>{a[t.qId]={val:t.val,ref:t.key}})),a}return{}},getPrefLabel(){const t=this.$store.state.schema;let e=d().filter(t["http://www.w3.org/2004/02/skos/core#prefLabel"],(t=>t["@language"]===this.selected_language));e.length||(e=t["http://www.w3.org/2004/02/skos/core#prefLabel"]),this.sidebarHeader=e[0]["@value"],this.schemaOrder&&d().map(this.schemaOrder,(t=>{y().expand(t).then((e=>{this.labelMap[t]=e[0]["http://www.w3.org/2004/02/skos/core#prefLabel"]}))}))},async computeVisibilityCondition(t,e){if(console.log("computeVisibilityCondition",t,e),d().isObject(t)){const s={method:t.method,url:t.url,data:t.payload,headers:{"content-type":"application/json"}},i=JSON.stringify(s);if(Object.keys(this.cache).indexOf(i)>-1)return this.cache[i];null!=this.visibility[e]&&void 0!==this.visibility[e]||(this.visibility[e]=!1),console.log("making request",s,"cache",this.cache);const a=await(0,o.A)(s);return this.cache[i]=a.data.qualified,a.data.qualified}if(d().isString(t)){const s=this.responseMapper(e,this.$store.state.responses,this.$store.state.responseMap),i=this.evaluateString(t,s);return i}return t},visibilityChain(t){return t[0]?this.computeVisibilityCondition(t[0].condition,t[0].index).then((e=>{this.visibility[t[0].index]=e,this.$forceUpdate();const s=[...t];s.shift(),this.visibilityChain(s)})):0},setVisbility(){const t=d().map(this.visibilityConditions,((t,e)=>({condition:t,index:e})));this.visibilityChain(t)},downloadZipData(){const t=this.$store.state.exportResponses,e=this.$store.state.scores,s=this.$store.state.participantId,i={response:t,scores:e,participantId:s};this.formatData(i)},formatData(t){const e=new(g());let s=0;const i=`${(0,v.A)()}-${this.participantId}`;d().map(t.response,(t=>{const a=[];d().map(t,(t=>{const s={...t};if("reproschema:Response"===t["@type"]&&t.value instanceof Blob){const a=t.isAbout.split("/"),r=t["@id"].split("uuid:")[1];e.folder(i).file(`${a[a.length-1]}-${r}.wav`,t.value),s.value=`${a[a.length-1]}-${r}.wav`}a.push(s)})),a.length&&(e.folder(i).file(`activity_${s}.jsonld`,JSON.stringify(a,null,4)),s+=1)})),e.generateAsync({type:"blob"}).then((t=>{(0,f.saveAs)(t,`${i}.zip`)}))}},watch:{$route(){void 0!==this.$route.params.id&&this.$store.dispatch("setActivityIndex",this.$route.params.id)},visibilityConditions:{handler(t){d().isEmpty(t)||this.setVisbility()},deep:!0}},created(){const t=this.$route.query.url;t&&(this.protocolUrl=t),this.$store.dispatch("getBaseSchema",t).then((()=>this.getPrefLabel()))},mounted(){new V("[data-email]"),this.clientSpecs=JSON.stringify(c().parse(window.navigator.userAgent)),this.browserType=c().parse(window.navigator.userAgent).browser.name,j().checkMediaPermission&&this.checkPermission(),this.$route.query.lang?(this.selected_language=this.$route.query.lang,L.locale=this.selected_language):this.selected_language="en",this.$route.query.uid?this.$store.dispatch("saveParticipantId",this.$route.query.uid):j().generateRandomUid&&this.$store.dispatch("saveParticipantId",(0,v.A)()),this.$route.params.id&&this.$store.dispatch("setActivityIndex",this.$route.params.id),o.A.get("https://raw.githubusercontent.com/ReproNim/reproschema-library/master/resources/languages.json").then((t=>{this.langMap=t.data})),this.$store.dispatch("setParticipantUUID",(0,v.A)()),this.$route.query.expiry_time&&this.$store.dispatch("setExpiryMinutes",this.$route.query.expiry_time),this.$route.query.auth_token&&this.$store.dispatch("setAuthToken",this.$route.query.auth_token),d().isEmpty(this.$route.query)||this.$store.dispatch("setQueryParameters",this.$route.query)},computed:{accessDeniedPath(){let t=s(400);return t},notIOS(){return"iOS"!==c().parse(window.navigator.userAgent).os.name},permissionDemoPath(){let t=s(6425);return"Firefox"===this.browserType?t=s(2370):"Safari"===this.browserType&&(t=s(1823)),t},expiryTime(){let t=h()(this.$store.getters.getExpiryTime)["_i"];return t=t.replace(" ","+"),new Date(t).getTime()},showTimer(){return!!this.$store.getters.getExpiryTime},getEmailData(){const t=`${j().contact}?subject=${j().emailSubject}&body=[ Describe the issue in detail. You can copy and paste text, screen capture and/or describe the expected vs. actual result.] Browser properties: ${this.clientSpecs}]`;return window.btoa(t)},getschemaType(){return this.$store.getters.getschemaType},isProtocolUrl(){return"Activity"!==this.getschemaType},srcUrl(){return this.$store.getters.srcUrl},reprotermsUrl(){return this.$store.getters.getTermsUrl},schema(){return this.$store.state.schema},responses(){return this.$store.state.responses},scores(){return this.$store.state.scores},activityIndex(){return this.$store.state.activityIndex},progress(){return this.$store.state.progress},currentActivityProgress(){return this.progress[this.activityIndex]},currentResponse(){return this.responses[this.activityIndex]},schemaOrder(){if(!d().isEmpty(this.$store.state.schema)){const t=d().map(this.$store.state.schema["http://schema.repronim.org/order"][0]["@list"],(t=>t["@id"]));return t}return[]},languageOptions(){if(!d().isEmpty(this.$store.state.schema)){const t=d().map(this.$store.state.schema["http://www.w3.org/2004/02/skos/core#prefLabel"],(t=>t["@language"])),e=d().map(t,(t=>({value:t,text:this.langMap[t]})));return e}return[]},shouldUpload(){return!(!j().backendServer||!this.$store.getters.getAuthToken)},allowExport(){if(!d().isEmpty(this.$store.state.schema)&&this.$store.state.schema["http://schema.repronim.org/allow"]){const t=d().map(this.$store.state.schema["http://schema.repronim.org/allow"],(t=>t["@id"]));return this.$store.dispatch("setExport",t.includes("http://schema.repronim.org/AllowExport")),t.includes("http://schema.repronim.org/AllowExport")||!this.shouldUpload}return this.$store.dispatch("setExport",!1),!1},schemaNameMapper(){const t={};return this.schemaOrder&&d().map(this.schemaOrder,(e=>{let s="";s=this.schema["http://schema.repronim.org/variableMap"]?this.getVariableName(e,this.schema["http://schema.repronim.org/variableMap"]):E(e),t[s]=e})),t},visibilityConditions(){return this.schema["http://schema.repronim.org/addProperties"]?d().map(this.schemaOrder,(t=>{const e=this.schema["http://schema.repronim.org/addProperties"],s=d().filter(e,(e=>e["http://schema.repronim.org/isAbout"][0]["@id"]===t));let i=d().filter(s[0]["http://schema.repronim.org/variableName"],(t=>t["@language"]===this.selected_language));if(i.length||(i=s[0]["http://schema.repronim.org/variableName"]),s[0]["http://schema.repronim.org/isVis"]){const t=s[0]["http://schema.repronim.org/isVis"][0];if("@value"in t)return t["@value"];if("http://schema.org/httpMethod"in t&&"http://schema.org/url"in t&&"http://schema.repronim.org/payload"in t){const e={},s=t["http://schema.repronim.org/payload"];return d().map(s,(t=>{const s=t["@value"],i=this.schemaOrder.indexOf(this.schemaNameMapper[s]);e[this.schemaNameMapper[s]]=this.scores[i]})),{url:t["http://schema.org/url"][0]["@value"],method:t["http://schema.org/httpMethod"][0]["@value"],payload:e}}}return!0})):d().mapValues(this.schemaOrder,(()=>!0))},checkDisableBack(){if(!d().isEmpty(this.$store.state.schema)&&this.$store.state.schema["http://schema.repronim.org/allow"]){const t=d().map(this.$store.state.schema["http://schema.repronim.org/allow"],(t=>t["@id"]));return t.includes("http://schema.repronim.org/DisableBack")}return!1},getPId(){return this.$store.getters.getParticipantId},checkAdvance(){if(!d().isEmpty(this.$store.state.schema)&&this.$store.state.schema["http://schema.repronim.org/allow"]){const t=d().map(this.$store.state.schema["http://schema.repronim.org/allow"],(t=>t["@id"]));return t.includes("http://schema.repronim.org/AutoAdvance")}return!1},nextActivity(){const t={};for(let e=0;e[]},selectedImages:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},useLabel:{type:Boolean,default:!1},rootClass:{type:String,default:"vue-select-image"},activeClass:{type:String,default:"--selected"},h:{type:String,default:"auto"},w:{type:String,default:"auto"}},data(){return{singleSelected:{id:""},multipleSelected:[]}},watch:{},computed:{dataImagesLocal:function(){return this.dataImages||[]},classThumbnail(){return d().map(this.dataImagesLocal,(t=>{const e=`${this.rootClass}__thumbnail`;return this.singleSelected.id===t.id?`${e} ${e}${this.activeClass}`:`${e}`}))}},mounted(){this.setInitialSelection()},methods:{classThumbnailMultiple(t){const e=`${this.rootClass}__thumbnail`,s=`${e} is--multiple`;return this.isExistInArray(t)?`${s} ${e}${this.activeClass}`:`${s}`},onSelectImage(t){this.singleSelected=Object.assign({},this.singleSelected,t),this.$emit("onselectimage",t)},isExistInArray(t){return this.multipleSelected.find((e=>t===e.id))},removeFromSingleSelected(){this.singleSelected={},this.$emit("onselectimage",{})},removeFromMultipleSelected(t,e){this.multipleSelected=this.multipleSelected.filter((e=>t!==e.id)),e||this.$emit("onselectmultipleimage",this.multipleSelected)},resetMultipleSelection(){this.multipleSelected=[]},onSelectMultipleImage(t){this.isExistInArray(t.id)?this.removeFromMultipleSelected(t.id,!0):this.multipleSelected.push(t),this.$emit("onselectmultipleimage",this.multipleSelected)},setInitialSelection(){this.selectedImages&&(this.isMultiple||1!==this.selectedImages.length?this.multipleSelected=[].concat(this.selectedImages):(this.singleSelected=Object.assign({},this.selectedImages[0]),this.$forceUpdate()))}}},it=st,at=(0,$.A)(it,tt,et,!1,null,null,null),rt=at.exports,nt={name:"radioInput",props:["constraints","init","selected_language","reprotermsUrl"],data(){return{selected:null,checkboxSelected:[],answerLanguage:this.selected_language}},components:{VueSelectImage:rt},computed:{options(){let t="";return d().map(this.constraints["http://schema.repronim.org/choices"],(e=>{const s=d().filter(e["http://schema.org/name"],(t=>t["@language"]===this.selected_language));return t=Array.isArray(s)&&s.length?s[0]["@value"]:e["http://schema.org/name"][0]["@value"],{text:t,value:e["http://schema.repronim.org/value"][0]["@value"],image:e["http://schema.org/image"]?e["http://schema.org/image"][0]["@value"]:null}}))},isMultipleChoice(){return!!this.constraints["http://schema.repronim.org/multipleChoice"]&&this.constraints["http://schema.repronim.org/multipleChoice"][0]["@value"]},isImageSelect(){return d().filter(this.options,(t=>t.image)).length===this.options.length},dataImages(){return d().map(this.options,(t=>({src:t.image,id:t.value,alt:t.text})))},selectedImages(){return[this.dataImages[this.selected]]}},watch:{},mounted(){void 0!==this.init&&(this.init instanceof Array?this.checkboxSelected=this.init:this.selected=this.init,this.$refs.imageSelect&&this.$nextTick((()=>{this.selectedImages[0]&&this.$set(this.$refs.imageSelect,"singleSelected",this.selectedImages[0])})))},methods:{onSubmit(t){t.preventDefault(),this.$emit("valueChanged",this.checkboxSelected)},sendData(t){this.$emit("valueChanged",t)},onSelectImage(t){this.selected=t.id,this.sendData(t.id)}}},ot=nt,lt=(0,$.A)(ot,W,X,!1,null,null,null),ct=lt.exports,ut=function(){var t=this,e=t._self._c;return e("div",[e("b-alert",{attrs:{show:!t.supported}},[t._v(t._s(t.$t("audio-support-msg")))]),t.supported?e("div",["audioImageRecord"===t.mode?e("div",{staticClass:"mb-3"},[e("img",{staticClass:"img-fluid",attrs:{src:t.fieldData["http://schema.org/image"][0]["@id"]}})]):t._e(),"audioRecordNumberTask"===t.mode?e("div",{staticClass:"mb-3"},[e("strong",{staticStyle:{"font-size":"30px"}},[t._v(t._s(t.generateNumber))])]):t._e(),"audioRecordAudioTask"===t.mode?e("div",{staticClass:"mb-3"},[e("audio",{attrs:{controls:""}},[e("source",{attrs:{src:t.getAudioSource,type:"audio/mpeg"}}),t._v(" Your browser does not support the audio element. ")])]):t._e(),t.isRecording||t.hasRecording?t._e():e("b-button",{attrs:{variant:"danger"},on:{click:t.record}},[t._v(" "+t._s(t.$t("record-button"))+" ")]),"audioRecordNoStop"!=t.mode?e("div",{staticClass:"mb-3"},[t.isRecording?e("b-button",{on:{click:t.finish}},[t._v(t._s(t.$t("stop-button")))]):t._e()],1):t._e(),t.isRecording?e("div",[e("small",[t._v(t._s(t.timeRemaining)+" "+t._s(t.$t("x-seconds-left")))])]):t._e(),t.hasRecording&&!t.isPlaying?e("b-button",{ref:"play",attrs:{variant:"success"},on:{click:t.play}},[e("span",[t._v(" "+t._s(t.$t("play-button"))+" ")])]):t._e(),t.hasRecording&&t.isPlaying?e("b-button",{ref:"play",attrs:{variant:"secondary"},on:{click:t.pause}},[e("span",[t._v(" "+t._s(t.$t("pause-button"))+" ")])]):t._e(),t.hasRecording?e("div",{staticClass:"mt-2"},[e("a",{attrs:{href:""},on:{click:t.reset}},[t._v(t._s(t.$t("redo-recording")))])]):t._e()],1):t._e()],1)},ht=[];s(4603),s(7566),s(8721);const pt=s(8651);var dt={name:"audioRecord",props:{init:{type:[String,Blob,Array]},mode:{type:String,default:"audioRecord"},constraints:{type:Object},fieldData:{type:Object}},data(){return{recording:{},isRecording:!1,hasRecording:!1,audioCtx:{},audioConstraints:{audio:!0,video:!1},mediaRecorder:{},supported:null,interval:{},timeRemaining:null,isPlaying:!1}},computed:{recordingTime(){return this.constraints["http://schema.org/maxValue"][0]["@value"]},generateNumber(){return 1e5+Math.floor(9e5*Math.random())},getAudioSource(){return this.fieldData["http://schema.org/audio"]?this.fieldData["http://schema.org/audio"][0]["http://schema.org/contentUrl"][0]["@id"]:""}},methods:{record(){this.isRecording=!0,this.mediaRecorder.start(this.recordingTime),this.interval=setInterval(this.countdown,1e3)},countdown(){this.timeRemaining<=0?clearInterval(this.interval):this.timeRemaining-=1},play(){this.recording.play(),this.isPlaying=!0},pause(){this.recording.pause(),this.endPlay()},endPlay(){this.isPlaying=!1},finish(){this.mediaRecorder.stop(),this.hasRecording=!0,this.isRecording=!1,clearInterval(this.interval)},reset(t){t.preventDefault(),this.hasRecording=!1,this.isRecording=!1,navigator.mediaDevices.getUserMedia(this.audioConstraints).then(this.initialize,this.error)},initialize(t){this.mediaRecorder=new pt(t),this.mediaRecorder.mimeType="audio/wav",this.timeRemaining=this.recordingTime/1e3,window.mediaRecorder=this.mediaRecorder;const e=this;this.mediaRecorder.ondataavailable=t=>{const s=URL.createObjectURL(t);e.recording.src=s,e.recording.blob=t,this.$emit("valueChanged",this.recording.blob),e.finish()}},error(){}},watch:{init(){"skip"!==this.init&&"dontKnow"!==this.init||(this.hasRecording=!1)}},mounted(){this.recording=new Audio,this.recording.onended=this.endPlay;const t=window.AudioContext||window.webkitAudioContext;if(this.audioCtx=new t,navigator.mediaDevices.getUserMedia){if(this.supported=!0,navigator.mediaDevices.getUserMedia(this.audioConstraints).then(this.initialize,this.error),this.init)if(d().isString(this.init))this.init.startsWith("blob")?(this.recording.src=this.init,this.hasRecording=!0):this.hasRecording=!1;else if(this.init instanceof Blob){const t=URL.createObjectURL(this.init);this.recording.src=t,this.recording.blob=this.init,this.hasRecording=!0}else this.hasRecording=!1}else this.supported=!1}},mt=dt,gt=(0,$.A)(mt,ut,ht,!1,null,null,null),vt=gt.exports,bt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"textInput"},[e("b-form",{ref:"form",on:{submit:t.onSubmit}},[e("b-row",[e("b-col",{staticClass:"col-4 col-md-4",attrs:{lg:"4"}},[e("b-form-group",[e("b-form-input",{attrs:{type:"text"},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}})],1)],1),t.hasUnit&&Array.isArray(t.options)?e("b-col",{attrs:{lg:"4"}},[e("multiselect",{attrs:{options:this.options,searchable:!1,"show-labels":!1,allowEmpty:!1,placeholder:"unit"},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}})],1):t.hasUnit&&!Array.isArray(t.options)?e("div",[e("p",{staticClass:"singleUnit"},[t._v(" "+t._s(t.options))])]):t._e()],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},yt=[],ft=s(5262),_t=s.n(ft),wt={name:"TextInput",props:["constraints","init","inputType","selected_language"],components:{Multiselect:_t()},data(){return{input1:"",input2:""}},methods:{onSubmit(t){if(t.preventDefault(),this.$refs.form.className="was-validated",this.hasUnit){const t={value:this.input1,unitCode:this.input2};this.$emit("valueChanged",t)}this.$emit("valueChanged",this.input1)}},computed:{hasUnit(){return!!this.constraints["http://schema.org/unitCode"]},options(){return this.constraints["http://schema.org/unitCode"].length>1?d().map(this.constraints["http://schema.org/unitCode"],(t=>t["@value"])):1===this.constraints["http://schema.org/unitCode"].length?this.constraints["http://schema.org/unitCode"][0]["@value"]:""}},mounted(){this.init&&(this.hasUnit?(this.input1=this.init.value,this.input2=this.init.unitCode):this.input1=this.init)}},xt=wt,kt=(0,$.A)(xt,bt,yt,!1,null,null,null),$t=kt.exports,St=function(){var t=this,e=t._self._c;return e("div",{staticClass:"textArea"},[e("b-form",{ref:"form",on:{submit:t.onSubmit}},[e("b-row",{staticClass:"mt-2"},[e("b-col",[e("b-form-textarea",{attrs:{id:"textarea-default",rows:"10"},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}})],1)],1),e("br"),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},Ct=[],At={name:"TextArea",props:["constraints","init","inputType","selected_language"],components:{},data(){return{input1:""}},methods:{onSubmit(t){t.preventDefault(),this.$refs.form.className="was-validated",this.$emit("valueChanged",this.input1)}},computed:{},mounted(){this.init&&(this.input1=this.init)}},It=At,Pt=(0,$.A)(It,St,Ct,!1,null,null,null),jt=Pt.exports,Dt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"IntegerInput"},[e("b-form",{ref:"form",attrs:{novalidate:!0},on:{submit:t.onSubmit}},[e("b-row",[e("b-col",{staticClass:"col-4 col-md-4",attrs:{lg:"4"}},[e("b-form-group",[e("b-form-input",{ref:"integerInput",class:{"is-invalid":!t.isValidInt,"is-valid":t.isValidInt},attrs:{placeholder:"value"},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}}),e("div",{staticClass:"invalid-feedback"},[t._v(" "+t._s(t.$t("invalid-feedback-number"))+" ")])],1)],1),t.hasUnit&&Array.isArray(t.options)?e("b-col",{attrs:{lg:"4"}},[e("multiselect",{attrs:{options:this.options,searchable:!1,"show-labels":!1,allowEmpty:!1,placeholder:"unit"},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}})],1):t.hasUnit&&!Array.isArray(t.options)?e("div",[e("p",{staticClass:"singleUnit"},[t._v(" "+t._s(t.options))])]):t._e()],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},Ot=[],Tt={name:"IntegerInput",props:["constraints","init"],components:{Multiselect:_t()},data(){return{input1:"",input2:""}},methods:{onSubmit(t){if(t.preventDefault(),this.$refs.form.className="was-validated",this.isValidInt){if(this.hasUnit){const t={value:this.input1,unitCode:this.input2};this.$emit("valueChanged",t)}this.$emit("valueChanged",this.input1)}},isValid(){const t=parseFloat(this.input1);return!isNaN(t)&&Number.isInteger(t)}},computed:{isValidInt(){return this.isValid(this.input1)},hasUnit(){return!!this.constraints["http://schema.org/unitCode"]},options(){return this.constraints["http://schema.org/unitCode"].length>1?d().map(this.constraints["http://schema.org/unitCode"],(t=>t["@value"])):1===this.constraints["http://schema.org/unitCode"].length?this.constraints["http://schema.org/unitCode"][0]["@value"]:""}},mounted(){this.init&&(this.hasUnit?(this.input1=this.init.value,this.input2=this.init.unitCode):this.input1=this.init)}},Rt=Tt,Ut=(0,$.A)(Rt,Dt,Ot,!1,null,null,null),Mt=Ut.exports,Lt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"FloatInput"},[e("b-form",{ref:"form",attrs:{novalidate:!0},on:{submit:t.onSubmit}},[e("b-row",[e("b-col",{staticClass:"col-4 col-md-4",attrs:{lg:"4"}},[e("b-form-group",[e("b-form-input",{ref:"floatInput",class:{"is-valid":t.isValidFloat},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}})],1)],1),t.hasUnit&&Array.isArray(t.options)?e("b-col",{attrs:{lg:"4"}},[e("multiselect",{attrs:{options:this.options,searchable:!1,"show-labels":!1,allowEmpty:!1,placeholder:"unit"},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}})],1):t.hasUnit&&!Array.isArray(t.options)?e("div",[e("p",{staticClass:"singleUnit"},[t._v(" "+t._s(t.options))])]):t._e()],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},Nt=[],Et={name:"FloatInput",props:["constraints","init"],components:{Multiselect:_t()},data(){return{input1:"",input2:""}},methods:{onSubmit(t){if(t.preventDefault(),this.$refs.form.className="was-validated",this.isValidFloat)if(this.hasUnit){const t={value:this.input1,unitCode:this.input2};this.$emit("valueChanged",t)}else this.$emit("valueChanged",this.input1)},isValid(){const t=parseFloat(this.input1);return!isNaN(t)&&Number.isFinite(t)},selectedLanguageLabel(t){const e=d().filter(t["http://www.w3.org/2004/02/skos/core#prefLabel"],(t=>t["@language"]===this.selected_language));return Array.isArray(e)&&e.length?e[0]["@value"]:t["http://www.w3.org/2004/02/skos/core#prefLabel"][0]["@value"]}},computed:{isValidFloat(){return this.isValid(this.input1)},hasUnit(){return!(!this.constraints["http://schema.org/unitCode"]&&!this.constraints["http://schema.repronim.org/unitOptions"])},options(){if(this.constraints["http://schema.org/unitCode"]){if(this.constraints["http://schema.org/unitCode"].length>1)return d().map(this.constraints["http://schema.org/unitCode"],(t=>t["@value"]));if(1===this.constraints["http://schema.org/unitCode"].length)return this.constraints["http://schema.org/unitCode"][0]["@value"]}else if(this.constraints["http://schema.repronim.org/unitOptions"]){if(this.constraints["http://schema.repronim.org/unitOptions"].length>1)return d().map(this.constraints["http://schema.repronim.org/unitOptions"],(t=>this.selectedLanguageLabel(t)));if(1===this.constraints["http://schema.repronim.org/unitOptions"].length)return this.selectedLanguageLabel(this.constraints["http://schema.repronim.org/unitOptions"][0])}return""}},mounted(){this.init&&(this.hasUnit?(this.input1=this.init.value,this.input2=this.init.unitCode):this.input1=this.init)}},Vt=Et,qt=(0,$.A)(Vt,Lt,Nt,!1,null,null,null),Ft=qt.exports,zt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"RangeInput"},[e("b-form",{ref:"form",attrs:{novalidate:!0},on:{submit:t.onSubmit}},[e("b-row",[e("b-col",{staticClass:"col-4 col-md-4",attrs:{lg:"4"}},[e("b-form-group",[e("b-form-input",{ref:"rangeInput",class:{"is-valid":t.isValidFloat},attrs:{placeholder:"start"},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}})],1)],1),e("b-col",{staticClass:"col-4 col-md-4",attrs:{lg:"4"}},[e("b-form-group",[e("b-form-input",{ref:"rangeInput",class:{"is-valid":t.isValidFloat},attrs:{placeholder:"end"},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}})],1)],1),t.hasUnit&&Array.isArray(t.options)?e("b-col",{attrs:{lg:"4"}},[e("multiselect",{attrs:{options:this.options,searchable:!1,"show-labels":!1,allowEmpty:!1,placeholder:"unit"},model:{value:t.input3,callback:function(e){t.input3=e},expression:"input3"}})],1):t.hasUnit&&!Array.isArray(t.options)?e("div",[e("p",{staticClass:"singleUnit"},[t._v(" "+t._s(t.options))])]):t._e()],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},Kt=[],Bt={name:"RangeInput",props:["constraints","init"],components:{Multiselect:_t()},data(){return{input1:"",input2:"",input3:""}},methods:{onSubmit(t){if(t.preventDefault(),this.$refs.form.className="was-validated",this.areValidFloats&&this.isValidRange)if(this.hasUnit){const t={value1:this.input1,value2:this.input2,unitCode:this.input3};this.$emit("valueChanged",t)}else{const t={value1:this.input1,value2:this.input2};this.$emit("valueChanged",t)}},isValid(){const t=parseFloat(this.input);return!isNaN(t)&&Number.isFinite(t)},isValidRange(){const t=parseFloat(this.input1),e=parseFloat(this.input2);return e>t},selectedLanguageLabel(t){const e=d().filter(t["http://www.w3.org/2004/02/skos/core#prefLabel"],(t=>t["@language"]===this.selected_language));return Array.isArray(e)&&e.length?e[0]["@value"]:t["http://www.w3.org/2004/02/skos/core#prefLabel"][0]["@value"]}},computed:{areValidFloats(){return!(!this.isValid(this.input1)||!this.isValid(this.input2))},hasUnit(){return!(!this.constraints["http://schema.org/unitCode"]&&!this.constraints["http://schema.repronim.org/unitOptions"])},options(){if(this.constraints["http://schema.org/unitCode"]){if(this.constraints["http://schema.org/unitCode"].length>1)return d().map(this.constraints["http://schema.org/unitCode"],(t=>t["@value"]));if(1===this.constraints["http://schema.org/unitCode"].length)return this.constraints["http://schema.org/unitCode"][0]["@value"]}else if(this.constraints["http://schema.repronim.org/unitOptions"]){if(this.constraints["http://schema.repronim.org/unitOptions"].length>1)return d().map(this.constraints["http://schema.repronim.org/unitOptions"],(t=>this.selectedLanguageLabel(t)));if(1===this.constraints["http://schema.repronim.org/unitOptions"].length)return this.selectedLanguageLabel(this.constraints["http://schema.repronim.org/unitOptions"][0])}return""}},mounted(){this.init&&(this.hasUnit?(this.input1=this.init.value1,this.input2=this.init.value2,this.input3=this.init.unitCode):(this.input1=this.init.value1,this.input2=this.init.value2))}},Ht=Bt,Qt=(0,$.A)(Ht,zt,Kt,!1,null,null,null),Yt=Qt.exports,Jt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"DateInput"},[e("datepicker",{attrs:{placeholder:"Select Date",lang:"selected_language",disabledDates:t.dateParam.disabledDates,format:t.customFormatter,minimumView:t.inputType,maximumView:"year",initialView:t.inputType},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}})],1)},Zt=[],Gt=s(6045),Wt={name:"DateInput",props:["constraints","init","inputType","selected_language"],components:{Datepicker:Gt.A},watch:{input(){this.$emit("valueChanged",this.input)}},methods:{sendData(t){this.$emit("valueChanged",t.getFullYear())},customFormatter(t){return"year"===this.inputType?h()(t).format("YYYY"):"date"===this.inputType?h()(t).format("MMM DD YYYY"):t}},data(){return{input:null,dateParam:{disabledDates:{from:new Date}}}},mounted(){this.init&&("year"===this.inputType?this.input=new Date(this.init,0,365):this.input=this.init)}},Xt=Wt,te=(0,$.A)(Xt,Jt,Zt,!1,null,null,null),ee=te.exports,se=function(){var t=this,e=t._self._c;return e("div",{staticClass:"DocumentUpload"},[e("input",{attrs:{type:"file"},on:{change:t.onFileSelected}}),e("button",{on:{click:t.onSubmit}},[t._v(t._s(t.$t("upload-button")))])])},ie=[],ae={name:"DocumentUpload",props:["constraints","init"],watch:{input(){this.$emit("valueChanged",this.input)}},methods:{onFileSelected(t){this.selectedFile=t.target.files[0]},onSubmit(t){t.preventDefault(),this.$emit("valueChanged",this.selectedFile)}},computed:{c(){return this.a+this.b}},data(){return{selectedFile:null}},mounted(){this.init&&(this.selectedFile=this.init)}},re=ae,ne=(0,$.A)(re,se,ie,!1,null,null,null),oe=ne.exports,le=function(){var t=this,e=t._self._c;return e("div",{staticClass:"textInput"},[e("b-form",{on:{submit:t.onSubmit}},[e("b-row",[e("b-col",{attrs:{lg:"4"}},[e("b-input-group",[e("b-form-input",{attrs:{placeholder:"first name",required:""},model:{value:t.input1,callback:function(e){t.input1=e},expression:"input1"}})],1)],1),e("b-col",{attrs:{lg:"4"}},[e("b-input-group",[e("b-form-input",{attrs:{placeholder:"middle name"},model:{value:t.input2,callback:function(e){t.input2=e},expression:"input2"}})],1)],1),e("b-col",{attrs:{lg:"4"}},[e("b-input-group",[e("b-form-input",{attrs:{placeholder:"family name",required:""},model:{value:t.input3,callback:function(e){t.input3=e},expression:"input3"}})],1)],1)],1),e("br"),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},ce=[],ue={name:"TextInput",props:["constraints","init"],methods:{onSubmit(t){t.preventDefault();const e={first_name:this.input1,middle_name:this.input2,last_name:this.input3};this.$emit("valueChanged",e)}},data(){return{input1:"",input2:"",input3:""}},mounted(){this.init&&(this.input1=this.init.first_name,this.input2=this.init.middle_name,this.input3=this.init.last_name)}},he=ue,pe=(0,$.A)(he,le,ce,!1,null,null,null),de=pe.exports,me=function(){var t=this,e=t._self._c;return e("div",{staticClass:"SliderInput ml-3 mr-3 pl-3 pr-3"},[e("vue-slider",{attrs:{lazy:!0,data:t.interval,marks:!0,process:!1},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}}),e("b-row",{staticClass:"mt-3 pt-3 pl-0 pr-0"},[e("div",{staticClass:"col text-left pr-0 pl-0"},[t.getMinImageLabel?e("span",[e("img",{staticClass:"imgLabel",attrs:{src:t.getMinImageLabel}})]):t._e(),e("p",[t._v(t._s(t.getMinLabel))])]),e("div",{staticClass:"col text-right pr-0 pl-0"},[t.getMaxImageLabel?e("span",[e("img",{staticClass:"imgLabel",attrs:{src:t.getMaxImageLabel}})]):t._e(),e("p",[t._v(t._s(t.getMaxLabel))])])]),e("b-form",{on:{submit:t.sendData}},[e("b-button",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},ge=[],ve=s(378),be=s.n(ve),ye={name:"SliderInput",props:["constraints","init","selected_language"],components:{VueSlider:be()},methods:{sendData(t){t.preventDefault(),this.$emit("valueChanged",this.input)}},computed:{interval(){return d().map(this.constraints["http://schema.repronim.org/choices"],(t=>t["http://schema.repronim.org/value"][0]["@value"]))},getMinLabel(){if(this.constraints["http://schema.repronim.org/choices"]){const t=d().filter(this.constraints["http://schema.repronim.org/choices"][0]["http://schema.org/name"],(t=>t["@language"]===this.selected_language));return t[0]["@value"]}return"no min label"},getMaxLabel(){if(this.constraints["http://schema.repronim.org/choices"]){const t=this.constraints["http://schema.repronim.org/choices"].length,e=d().filter(this.constraints["http://schema.repronim.org/choices"][t-1]["http://schema.org/name"],(t=>t["@language"]===this.selected_language));return e[0]["@value"]}return"no max label"},getMinImageLabel(){const t=this.constraints["http://schema.repronim.org/choices"];return!!t[0]["http://schema.org/image"]&&t[0]["http://schema.org/image"][0]["@value"]},getMaxImageLabel(){const t=this.constraints["http://schema.repronim.org/choices"],e=t.length;return!!t[e-1]["http://schema.org/image"]&&t[e-1]["http://schema.org/image"][0]["@value"]}},data(){return{input:null}},mounted(){this.init?this.input=this.init:this.input=Math.round(this.interval[this.interval.length-1]/2)}},fe=ye,_e=(0,$.A)(fe,me,ge,!1,null,null,null),we=_e.exports,xe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"TimeRangeInput container ml-3 pl-3"},[e("b-row",{staticClass:"mt-2 mb-2"},[e("b-col",{staticClass:"mt-2 mb-2"},[t._v(" went to bed: "+t._s(t.yesterday)+" "),e("vue-timepicker",{attrs:{format:"hh:mm A"},model:{value:t.slept,callback:function(e){t.slept=e},expression:"slept"}})],1),e("b-col",{staticClass:"mt-2 mb-2"},[t._v(" woke up: "+t._s(t.today)+" "),e("vue-timepicker",{attrs:{format:"hh:mm A"},model:{value:t.woke,callback:function(e){t.woke=e},expression:"woke"}})],1)],1),null!=t.timeSlept?e("div",{staticClass:"mt-2 mb-2"},[t.timeSlept<0?e("div",{staticClass:"mt-2 mb-2"},[e("b-alert",{attrs:{show:"",variant:"danger"}},[t._v("You can't sleep negative hours!")])],1):e("b-button",{on:{click:t.sendData}},[t._v("Submit "+t._s(t.timeSlept)+" hours")])],1):t._e()],1)},ke=[],$e=s(286),Se=s.n($e);window.moment=h();var Ce={name:"timeRangeInput",props:["constraints","init","selected_language","id"],data(){return{slept:{hh:"08",mm:"00",A:"PM"},woke:{A:"AM",hh:"06",mm:"00"},today:null,yesterday:null}},components:{VueTimepicker:Se()},computed:{timeSlept(){const t=this.sleptAt,e=this.wokeAt,s=e.diff(t,"hours");return isNaN(s)?null:parseInt(s,0)},sleptAt(){const t=h()(`${this.slept.hh}:${this.slept.mm} ${this.slept.A}`,"hh:mm A"),e=h()(new Date),s=h()(new Date).add(-1,"days");return"AM"===this.slept.A?(t.set("date",e.get("date")),t.set("month",e.get("month")),t.set("year",e.get("year"))):(t.set("date",s.get("date")),t.set("month",s.get("month")),t.set("year",s.get("year"))),t},wokeAt(){const t=h()(new Date),e=h()(`${this.woke.hh}:${this.woke.mm} ${this.woke.A}`,"hh:mm A");return e.set("date",t.get("date")),e.set("month",t.get("month")),e.set("year",t.get("year")),e}},methods:{sendData(){this.$emit("valueChanged",{startTime:this.sleptAt.toISOString(),endTime:this.wokeAt.toISOString(),difference:this.timeSlept})}},watch:{init:{handler(){this.init},deep:!0}},mounted(){if(void 0!==this.init||null!=this.init){const t=h()(this.init.startTime).format("hh:mm A"),e=h()(this.init.endTime).format("hh:mm A");this.slept.A=t.split(" ")[1],this.slept.hh=t.split(":")[0],this.slept.mm=t.split(":")[1].split(" ")[0],this.woke.A=e.split(" ")[1],this.woke.hh=e.split(":")[0],this.woke.mm=e.split(":")[1].split(" ")[0]}}},Ae=Ce,Ie=(0,$.A)(Ae,xe,ke,!1,null,null,null),Pe=Ie.exports,je=function(){var t=this,e=t._self._c;return e("div",{staticClass:"SelectInput"},["select"===t.inputType&&this.constraints["http://schema.org/itemListElement"]?e("multiselect",{attrs:{options:this.options,searchable:!1,"show-labels":!1,placeholder:"Pick a value"},on:{input:t.checkNotOtherAndSendData},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}}):e("multiselect",{attrs:{id:"ajax",placeholder:"Type to search",options:this.options,multiple:t.multipleAllowed,searchable:!0,"internal-search":!0,"clear-on-select":!1,"close-on-select":!0,"options-limit":300,limit:5,"limit-text":t.limitText,"max-height":600,"show-no-results":!1,"hide-selected":!0},on:{input:t.checkNotOtherAndSendData},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[e("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.$t("select-invalid-query")))])]),t.checkOther?e("div",{staticStyle:{display:"block"},attrs:{id:"ifOther"}},[e("br"),e("b-form-input",{attrs:{placeholder:"Please describe"},on:{change:t.sendData},model:{value:t.otherInput,callback:function(e){t.otherInput=e},expression:"otherInput"}})],1):t._e()],1)},De=[],Oe={name:"SelectInput",props:["reprotermsUrl","constraints","init","selected_language","inputType"],components:{Multiselect:_t()},data(){return{selected:null,otherInput:"",options:[],selectedCountries:[],isLoading:!1}},watch:{input(){this.$emit("valueChanged",this.selected)}},methods:{checkNotOtherAndSendData(t){"Other"!==t&&this.$emit("valueChanged",t)},sendData(t){this.$emit("valueChanged",[this.selected,t])},limitText(t){return`and ${t} other countries`}},mounted(){this.init&&(Array.isArray(this.init)?(this.selected=this.init[0],this.otherInput=this.init[1]):this.selected=this.init),this.constraints["http://schema.repronim.org/choices"].length>1?this.options=d().map(this.constraints["http://schema.repronim.org/choices"],(t=>{const e=d().filter(t["http://schema.org/name"],(t=>t["@language"]===this.selected_language));return e[0]["@value"]})):1===this.constraints["http://schema.repronim.org/choices"].length&&o.A.get(this.constraints["http://schema.repronim.org/choices"][0]["@value"]).then((t=>{"selectCountry"===this.inputType?this.options=d().map(t.data,(t=>t.country)):"selectState"===this.inputType||"selectLanguage"===this.inputType?this.options=Object.values(t.data):this.options=t.data}))},computed:{multipleAllowed(){return!!this.constraints["http://schema.repronim.org/multipleChoice"]},checkOther(){return"Other"===this.selected}}},Te=Oe,Re=(0,$.A)(Te,je,De,!1,null,null,null),Ue=Re.exports,Me=function(){var t=this,e=t._self._c;return e("div",{staticClass:"staticReadOnly"},[t.input?e("div",[e("h4",[t._v(" "+t._s(t.input))]),e("br"),e("b-btn",{on:{click:t.onSubmit}},[t._v(" Done ")])],1):e("div",[e("b-alert",{attrs:{show:""}},[t._v(' Parameter could not be retrieved at this time. Please contact "'+t._s(t.contact)+'" for further assistance. ')])],1)])},Le=[],Ne={name:"StaticReadOnly",props:["constraints","init","result","selected_language"],methods:{onSubmit(t){t.preventDefault(),this.input&&this.$emit("valueChanged",this.input)}},data(){return{contact:j().contact,input:""}},computed:{getPId(){return this.$store.getters.getParticipantId}},mounted(){this.getPId&&(this.input=this.getPId),this.init&&(this.input=this.init)}},Ee=Ne,Ve=(0,$.A)(Ee,Me,Le,!1,null,null,null),qe=Ve.exports,Fe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"SaveData ml-3 mr-3 pl-3 pr-3"},[t.isUploading||t.hasData||t.hasTimedOut?t._e():e("div",[t.shouldUpload?e("div",[e("p",[t._v(t._s(t.$t("save-data")))]),t.downloadAndSubmit?e("b-button",{ref:"upload",attrs:{variant:"danger"},on:{click:t.upload}},[t._v(" "+t._s(t.$t("download-and-submit-button"))+" ")]):e("b-button",{ref:"upload",attrs:{variant:"danger"},on:{click:t.upload}},[t._v(" "+t._s(t.$t("upload-button"))+" ")])],1):e("div",[t.exportOption?e("p",[t._v(t._s(t.$t("export-and-finish")))]):e("p",[t._v(t._s(t.$t("finish")))]),e("b-button",{attrs:{variant:"danger"},on:{click:t.finish}},[t._v(" "+t._s(t.$t("finish-button"))+" ")])],1)]),t.isUploading&&t.percentCompleted>0&&t.showProgressBar?e("div",{staticClass:"loader"},[e("p",[t._v(t._s(t.$t("upload-message")))]),e("b-progress",{attrs:{max:100,striped:t.hasStripe}},[e("b-progress-bar",{attrs:{value:100*t.percentCompleted,label:100*t.percentCompleted+"%",animated:""}})],1)],1):t.isUploading&&0===t.percentCompleted?e("div",[e("p",[t._v(t._s(t.$t("prepare-upload")))]),e("Loader")],1):t._e(),e("b-modal",{ref:"timeout-modal",attrs:{"ok-title":"Done","ok-only":"",title:"Uh-oh! Upload unsuccessful!","no-close-on-esc":"","no-close-on-backdrop":"","hide-header-close":""},on:{ok:t.timeoutOK},model:{value:t.timeout,callback:function(e){t.timeout=e},expression:"timeout"}},[t.dataUploadPath?e("p",[t._v("Please submit your locally exported zip file "),e("a",{attrs:{href:t.dataUploadPath,target:"_blank"}},[t._v("here")])]):e("p",[t._v("Let researchers know with the "),e("b",[t._v("Help")]),t._v(" button or by email to "+t._s(t.contact))])]),e("div",{class:{done:t.hasData},staticStyle:{width:"800px",margin:"0 auto"}})],1)},ze=[],Ke=function(){var t=this;t._self._c;return t._m(0)},Be=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"layer-preloader"},[e("div",{staticClass:"loading"},[e("div",{staticClass:"loader firstColor"},[e("div",{staticClass:"loader secondColor"},[e("div",{staticClass:"loader thirdColor"})])])])])}],He={},Qe=He,Ye=(0,$.A)(Qe,Ke,Be,!1,null,null,null),Je=Ye.exports;let Ze,Ge=[],We=0;var Xe={name:"SaveData",props:["constraints","init","selected_language","ipAddress"],components:{Loader:Je},data(){return{recording:{},isUploading:!1,hasData:!1,percentCompleted:0,timeout:!1,uploadFailed:!1,showProgressBar:!0,invalidToken:!1,downloadAndSubmit:j().downloadAndSubmit,dataUploadPath:j().dataUploadPath,contact:j().contact}},computed:{shouldUpload(){return!(!j().backendServer||!this.$store.getters.getAuthToken)},participantId(){return this.$store.getters.getParticipantId},exportOption(){return this.$store.getters.getHasExport},hasStripe(){return!(100===this.percentCompleted)},hasTimedOut(){return this.timeout}},methods:{finish(){this.hasData=!0,this.$emit("valueChanged","completed")},timeoutOK(){this.$emit("valueChanged","timeout")},upload(){this.isUploading=!0,this.uploadZipData()},uploadZipData(){const t=this.$store.state.exportResponses,e=this.$store.state.scores,s=this.$store.state.participantId,i={response:t,scores:e,participantId:s};this.formatData(i)},formatData(t){const e=this.$store.getters.getAuthToken,s=this.$store.state.expiryMinutes,i=new(g());let a=0;const r=`${(0,v.A)()}-${this.participantId}`;d().map(t.response,(t=>{const e=[];d().map(t,(t=>{const s={...t};if("reproschema:Response"===t["@type"]&&t.value instanceof Blob){const e=t.isAbout.split("/"),a=t["@id"].split("uuid:")[1];i.folder(r).file(`${e[e.length-1]}-${a}.wav`,t.value),s.value=`${e[e.length-1]}-${a}.wav`}e.push(s)})),e.length&&(i.folder(r).file(`activity_${a}.jsonld`,JSON.stringify(e,null,4)),a+=1)})),i.generateAsync({type:"blob"}).then((t=>{this.downloadAndSubmit&&(0,f.saveAs)(t,`${r}.zip`);const i=1e7,a=t.size;let n,o=0,l=o+i,c=1;while(oa?t.slice(o,a+1,"Blob"):t.slice(o,l,"Blob"),Ge.push(n),c+=1,o=l,l=o+i;Ze=Ge.length;let u=[];for(let h=0;h{this.isUploading=!1,this.hasData=!0,this.$emit("valueChanged",{status:t})}))}))},sendRetry(t,e,s,i=3,a=1e4){const r={"Content-Type":"multipart/form-data"};return o.A.post(`${j().backendServer}/submit`,e,r).then((t=>{Ge.splice(s,1),We++;const e=We/Ze;return this.percentCompleted=e.toFixed(2),t.status})).catch((r=>{if(!(i>0))return this.timeout=!0,this.showProgressBar=!1,r.response.status;setTimeout((()=>this.sendRetry(t,e,s,i-1,2*a)),a)}))}}},ts=Xe,es=(0,$.A)(ts,Fe,ze,!1,null,null,null),ss=es.exports,is=function(){var t=this,e=t._self._c;return e("div",{staticClass:"docked-layout"},[e("section",[e("div",{ref:"consentDoc",staticClass:"consent-doc"},[t._m(0),e("section"),t._v(" "),t._m(1),t._m(2),t._m(3),e("section",[e("div",{staticClass:"research container"},[e("object",{attrs:{data:"/static/images/Step3.svg",type:"image/svg+xml"}}),e("div",[t._v("My data will be used for research as described in the study information ("),e("router-link",{attrs:{to:"/study/consent-review"}},[t._v("https://"),e("wbr"),t._v("parkinsonmpower."),e("wbr"),t._v("org/"),e("wbr"),t._v("consent")]),t._v(").")],1)])]),t._m(4),t._m(5),t._m(6),t._m(7),t._m(8),t._m(9)]),e("footer",[e("form",{staticClass:"slider",attrs:{onsubmit:"return false"}},[e("div",{staticClass:"slider-element animated",class:{slideOutLeft:t.showSharing}},[e("div",{staticClass:"inner"},[e("h1",[t._v("Please review and sign below if you want to join.")]),e("p",[t._v("I have read and understand the above information. All of my questions have been answered. I freely and willingly choose to take part in the mPower Progression Study. By signing this consent I have not given up any of my legal rights.")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],attrs:{placeholder:"Please type your full name here"},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}}),e("div",{staticClass:"buttons"},[e("b-button",{attrs:{variant:"primary"},on:{click:t.reject}},[t._v(" Disagree ")]),e("b-button",{attrs:{variant:"success",disabled:t.canSubmit},on:{click:t.accept}},[t._v(" Accept ")])],1)])])])])])])},as=[function(){var t=this,e=t._self._c;return e("section",{staticClass:"preamble-section"},[e("div",{staticClass:"preamble container"},[e("div",[e("h2",[t._v("mPower Progression Study")]),e("h3",[t._v("Consent and Authorization Contents")])])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"assertion container"},[e("div",[t._v("I understand:")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"will-use container"},[e("object",{attrs:{data:"/static/images/Step1.svg",type:"image/svg+xml"}}),e("div",[t._v("I will use the mPower app to answer questions and do short physical and cognitive activities. The app will help me track my symptoms, triggers, and medications.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"privacy container"},[e("object",{attrs:{data:"/static/images/Step2.svg",type:"image/svg+xml"}}),e("div",[t._v("My study data will be encrypted and transferred from my phone. It will be stored on Sage Bionetworks’ secure cloud-based database.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"sharing-scope container"},[e("object",{attrs:{data:"/static/images/Step4.svg",type:"image/svg+xml"}}),e("div",[t._v("I have the option to share my coded study data for future research. It is up to me. I can say yes or no.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"risks-benefits container"},[e("object",{attrs:{data:"/static/images/Step5.svg",type:"image/svg+xml"}}),e("div",[t._v("The main risk of participating in the mPower Progression Study is to my privacy and confidentiality. This risk is low but not zero. The main benefit is seeing the trends in my data over time.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"unpaid container"},[e("object",{attrs:{data:"/static/images/Step6.svg",type:"image/svg+xml"}}),e("div",[t._v("mPower Progression Study is a research study. The mPower app shouldn’t be used for diagnosis or treatment decision.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"not-medical container"},[e("object",{attrs:{data:"/static/images/Step7.svg",type:"image/svg+xml"}}),e("div",[t._v("I will not get paid for participating in this study. I will not receive any profit from the use of my data in this or future research.")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"voluntary container"},[e("object",{attrs:{data:"/static/images/Step8.svg",type:"image/svg+xml"}}),e("div",[t._v("I can withdraw (quit) at any time for any reason. There is no penalty if I withdraw .")])])])},function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"contact container"},[e("object",{attrs:{data:"/static/images/Step9.svg",type:"image/svg+xml"}}),e("div",[t._v("My contact information may be used to tell me about other studies.")])])])}],rs={name:"StudySign",data(){return{name:"",showSharing:!1,scope:""}},mounted(){this.init&&(this.name=this.init)},computed:{canSubmit(){return this.showSharing?""===this.scope:0===this.name.length}},methods:{reject(){this.$emit("valueChanged","disagree")},accept(){console.log(140,this.name),this.$emit("valueChanged",this.name)}}},ns=rs,os=(0,$.A)(ns,is,as,!1,null,"7a01fc37",null),ls=os.exports,cs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"static"})},us=[],hs={name:"Static",props:["constraints","init","result","selected_language"],methods:{onSubmit(t){t.preventDefault(),this.result?(this.$emit("valueChanged",this.result),this.input="Success"):this.input="Fail"}},data(){return{input:"show result"}},mounted(){this.init&&(this.input=this.init)}},ps=hs,ds=(0,$.A)(ps,cs,us,!1,null,null,null),ms=ds.exports,gs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"IntegerInput"},[e("b-form",{ref:"form",attrs:{novalidate:!0},on:{submit:t.onSubmit}},[e("b-form-group",[e("b-form-input",{ref:"integerInput",class:{"is-invalid":!t.isValidEmail,"is-valid":t.isValidEmail},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}}),e("div",{staticClass:"invalid-feedback"},[t._v(" "+t._s(t.$t("invalid-email"))+" ")])],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},vs=[],bs={name:"EmailInput",props:["constraints","init"],methods:{onSubmit(t){t.preventDefault(),this.$refs.form.className="was-validated",this.isValidEmail&&this.$emit("valueChanged",this.input)},isValid(t){return!!/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(t)}},computed:{isValidEmail(){return this.isValid(this.input)}},data(){return{input:null}},mounted(){this.init&&(this.input=this.init)}},ys=bs,fs=(0,$.A)(ys,gs,vs,!1,null,null,null),_s=fs.exports,ws=function(){var t=this,e=t._self._c;return e("div",{staticClass:"participantId"},[e("b-form",{on:{submit:t.onSubmit}},[e("b-form-group",[e("b-form-input",{model:{value:t.input,callback:function(e){t.input=e},expression:"input"}})],1),e("b-btn",{attrs:{type:"submit"}},[t._v(t._s(t.$t("submit-button")))])],1)],1)},xs=[],ks={name:"ParticipantId",props:["constraints","init"],methods:{onSubmit(t){t.preventDefault(),this.$emit("valueChanged",this.input)}},data(){return{input:"",p_uuid:""}},computed:{getPId(){return this.$store.getters.getParticipantId}},mounted(){this.getPId?this.input=this.getPId:(this.p_uuid=(0,v.A)(),this.input=this.p_uuid),this.init&&(this.input=this.init)}},$s=ks,Ss=(0,$.A)($s,ws,xs,!1,null,null,null),Cs=Ss.exports,As={name:"InputSelector",props:{reprotermsUrl:{type:String},inputType:{type:String},readOnly:{type:Boolean},title:{type:String},valueConstraints:{type:Object},fieldData:{type:Object},init:{},selected_language:{type:String},showPassOptions:{type:Object},showItemPassOptions:{type:Object},preamble:{type:String},ipAddress:{type:String}},components:{ParticipantId:Cs,StudySign:ls,SaveData:ss,Radio:ct,AudioRecord:vt,TextInput:$t,TextArea:jt,EmailInput:_s,IntegerInput:Mt,FloatInput:Ft,RangeInput:Yt,DateInput:ee,DocumentUpload:oe,MultiTextInput:de,SliderInput:we,TimeRange:Pe,SelectInput:Ue,StaticReadOnly:qe,Static:ms},data(){return{}},methods:{skip(){this.$emit("skip")},dontKnow(){this.$emit("dontKnow")},sendData(t){t instanceof Date?this.$emit("valueChanged",t.getFullYear()):this.$emit("valueChanged",t),this.$emit("next")}}},Is=As,Ps=(0,$.A)(Is,Z,G,!1,null,null,null),js=Ps.exports,Ds=function(){var t=this,e=t._self._c;return e("div",[t.listShow.length?e("div",[t.preambleText?e("div",{staticClass:"preamble-text mb-2"},[e("strong",[t._v(" "+t._s(t.preambleText)+" ("+t._s(t.currentIndex+1)+" / "+t._s(t.context.length)+")")])]):t._e()]):e("div",[e("h1",[t._v(t._s(t.$t("loader"))+"...")])]),e("survey-item",{key:t.currentItem["@id"],attrs:{item:t.currentItem,index:t.currentIndex,init:t.responses[t.currentItem["@id"]],responses:t.responses,selected_language:t.selected_language,reprotermsUrl:t.reprotermsUrl,score:t.score,showPassOptions:t.showPassOptions},on:{skip:function(e){return t.nextQuestion(t.currentIndex,1,0)},dontKnow:function(e){return t.nextQuestion(t.currentIndex,0,1)},next:function(e){return t.nextQuestion(t.currentIndex,0)},setData:t.setResponse}}),null!==t.showPassOptions?e("div",{staticClass:"text-right mt-3"},[e("b-button",{attrs:{variant:"default"},on:{click:t.restart}},[t._v(t._s(t.$t("restart-button")))]),t.showPassOptions["dontKnow"]?e("b-button",{attrs:{variant:"default"},on:{click:t.dontKnow}},[t._v(t._s(t.$t("dont-know")))]):t._e(),t.showPassOptions["skip"]?e("b-button",{attrs:{variant:"default"},on:{click:t.skip}},[t._v(t._s(t.$t("skip")))]):t._e()],1):t._e()],1)},Os=[],Ts={name:"MultiPart",props:{reprotermsUrl:{type:String},srcUrl:{type:String},progress:{type:Number},responses:{type:Object},selected_language:{type:String,default:"en"},showPassOptions:{type:Object}},data(){return{activity:{},listShow:[],parsedJSONLD:{},visibility:{},score:0,currentIndex:0}},components:{Loader:Je},mounted(){this.srcUrl&&this.getData()},methods:{getData(){y().expand(this.srcUrl).then((t=>{this.activity=t[0],this.listShow=[0],this.$nextTick((()=>{const t=d().filter(this.context,(t=>Object.keys(this.responses).indexOf(t["@id"])>-1));t.length?this.listShow=d().map(new Array(t.length+1),((t,e)=>e)):this.listShow=[0],this.visibility=this.getVisibility(this.responses)}))})).catch((t=>{}))},getVisibility(t){const e=this.responseMapper(t);if(!d().isEmpty(this.activity[`${this.reprotermsUrl}visibility`])){const t={};return d().map(this.activity[`${this.reprotermsUrl}visibility`],(s=>{let i=s["@value"];d().isString(s["@value"])&&(i=this.evaluateString(s["@value"],e)),e[s["@index"]]&&(t[e[s["@index"]].ref]=i)})),t}return{}},responseMapper(t){const e=d().map(this.order,(t=>t["@id"]));if(this.activity[`${this.reprotermsUrl}variableMap`]){const e=this.activity[`${this.reprotermsUrl}variableMap`][0]["@list"],s=d().map(e,(e=>{const s=e[`${this.reprotermsUrl}isAbout`][0]["@id"],i=e[`${this.reprotermsUrl}variableName`][0]["@value"],a=t[s];return{key:s,val:a,qId:i}})),i={};return d().map(s,(t=>{i[t.qId]={val:t.val,ref:t.key}})),i}const s=d().map(e,(e=>{const s=t[e],i=e.split("/"),a=i[i.length-1],r=a.split(".jsonld")[0];return{key:e,val:s,qId:r}})),i={};return d().map(s,(t=>{i[t.qId]={val:t.val,ref:t.key}})),i},evaluateString(t,e){const s=Object.keys(e);let i=t;return d().map(s,(t=>{let s=e[t].val;"skipped"!==s&&"dontknow"!==s?(d().isString(s)&&(s=`'${s}'`),i=i.replace(t,s)):i=i.replace(t,0)})),Function("return "+i)()},restart(){this.currentIndex=0,this.listShow=[0],this.$emit("clearResponses")},skip(t){this.$emit("skip",t)},dontKnow(){this.$emit("dontKnow")},updateProgress(){const t=this.context.length,e=Object.keys(this.responses).length/t*100;this.$emit("updateProgress",e),100===e&&this.$emit("valueChanged",this.responses)},setResponse(t,e){this.$emit("saveResponse",this.context[e]["@id"],t);const s={...this.responses};s[this.context[e]["@id"]]=t,this.updateProgress(),this.$forceUpdate()},nextQuestion(t,e,s){document.body.scrollTop=0,document.documentElement.scrollTop=0,e&&this.setResponse("skipped",t),s&&this.setResponse("dontKnow",t),this.currentIndext["@language"]===this.selected_language));return t[0]["@value"]}return""}}},Rs=Ts,Us=(0,$.A)(Rs,Ds,Os,!1,null,null,null),Ms=Us.exports,Ls=function(){var t=this,e=t._self._c;return e("div",[t.listShow.length?e("div",[t.preambleText?e("div",{staticClass:"preamble-text mb-2"},[e("strong",[t._v(" "+t._s(t.preambleText)+" ")])]):t._e()]):e("div",[e("h1",[t._v(t._s(t.$t("loader"))+"...")]),e("Loader")],1),e("transition-group",{attrs:{name:"list",tag:"div",mode:"in-out"}},t._l(t.contextReverse,(function(s,i){return e("div",{key:s["@id"]+i,staticClass:"mt-3 mb-3"},[e("transition",{key:"t"+s["@id"],attrs:{name:"list"}},[t.shouldShow[i]?e("survey-item",{key:"c"+s["@id"],attrs:{item:s,index:t.contextReverse.length-i-1,init:t.responses[s["@id"]],responses:t.responses,selected_language:t.selected_language,showPassOptions:t.showPassOptions,reprotermsUrl:t.reprotermsUrl},on:{skip:function(e){return t.nextQuestion(t.contextReverse.length-i-1,1,0)},dontKnow:function(e){return t.nextQuestion(t.contextReverse.length-i-1,0,1)},next:function(e){return t.nextQuestion(t.contextReverse.length-i-1,0)},setData:t.setResponse}}):t._e()],1),e("b-modal",{ref:"invalid-token-modal",refInFor:!0,attrs:{"ok-only":"",title:"Helpline!","hide-footer":"","header-class":"justify-content-center"},model:{value:t.showModal,callback:function(e){t.showModal=e},expression:"showModal"}},[e("p",{staticClass:"contact"},[t._v("If you're thinking about suicide, are worried about a friend or loved one, or would like emotional support, there are resources available 24/7. Your call or text is confidential and free.")]),e("p",[t._v("Call the Suicide Prevention Lifeline in the United States:")]),e("p",[t._v("English: 1-800-273-8255")]),e("p",[t._v("Español: 1-888-628-9454")]),e("br"),e("p",[t._v("Text the Crisis TextLine through SMS:")]),e("p",[t._v("US or Canada: 741741")]),e("p",{staticClass:"contact"},[e("a",{attrs:{href:"https://www.messenger.com/login.php?next=https%3A%2F%2Fwww.messenger.com%2Ft%2F204427966369963%2F%3Fmessaging_source%3Dsource%253Apages%253Amessage_shortlink",target:"_blank"}},[t._v("Facebook Messenger")])]),e("p",[t._v("For other countries:")]),e("p",{staticClass:"contact"},[e("a",{attrs:{href:"https://www.befrienders.org",target:"_blank"}},[t._v("www.befrienders.org")])])])],1)})),0),null!==t.showPassOptions?e("div",{staticClass:"text-right mt-3"},[e("b-button",{attrs:{variant:"default"},on:{click:t.restart}},[t._v("Restart")]),t.showPassOptions["dontKnow"]?e("b-button",{attrs:{variant:"default"},on:{click:t.dontKnow}},[t._v("Don't Know")]):t._e(),t.showPassOptions["skip"]?e("b-button",{attrs:{variant:"default"},on:{click:t.skip}},[t._v("Skip")]):t._e()],1):t._e()],1)},Ns=[],Es=s(4038),Vs=s.n(Es);i["default"].use(Vs());var qs={name:"Section",props:{reprotermsUrl:{type:String},srcUrl:{type:String},progress:{type:Number},responses:{type:Object},selected_language:{type:String,default:"en"},showPassOptions:{type:Object}},data(){return{activity:{},listShow:[],parsedJSONLD:{},visibility:{},scores:{},currentIndex:0,showModal:!1}},components:{Loader:Je},mounted(){this.srcUrl&&(this.getData(),this.t0=performance.now())},methods:{getData(){y().expand(this.srcUrl).then((t=>{this.activity=t[0],this.listShow=[0],this.$nextTick((()=>{const t=d().filter(this.context,(t=>Object.keys(this.responses).indexOf(t["@id"])>-1));t.length?this.listShow=d().map(new Array(t.length+1),((t,e)=>e)):this.listShow=[0],this.visibility=this.getVisibility(this.responses)}))}))},getVisibility(t){const e=this.responseMapper(t);if(!d().isEmpty(this.activity["http://schema.repronim.org/addProperties"])){const t={};return d().map(this.activity["http://schema.repronim.org/addProperties"],(s=>{let i=!0;s[`${this.reprotermsUrl}isVis`]&&(i=s[`${this.reprotermsUrl}isVis`][0]["@value"]),d().isString(i)&&(i=this.evaluateString(i,e)),e[s[`${this.reprotermsUrl}variableName`][0]["@value"]]&&(t[e[s[`${this.reprotermsUrl}variableName`][0]["@value"]].ref]=i)})),t}return{}},responseMapper(t){let e;if(this.activity["http://schema.repronim.org/addProperties"]){const s=this.activity["http://schema.repronim.org/addProperties"];e=d().map(s,(e=>{const s=e["http://schema.repronim.org/isAbout"][0]["@id"],i=e["http://schema.repronim.org/variableName"][0]["@value"],a=t[s];return{key:s,val:a,qId:i}}))}if(this.$store.getters.getQueryParameters){const t=this.$store.getters.getQueryParameters;Object.entries(t).forEach((([t,s])=>{const i=t;"week"===t&&(s=parseInt(s));const a=s;e.push({key:t,val:a,qId:i})}))}const s={};return d().map(e,(t=>{s[t.qId]={val:t.val,ref:t.key}})),s},evaluateString(t,e){const s=Object.keys(e);let i=t;return d().map(s,(t=>{let s=e[t].val;Array.isArray(e[t].val)&&(s=e[t].val[0]),"http://schema.repronim.org/Skipped"!==s&&"http://schema.repronim.org/DontKnow"!==s?(d().isString(s)&&(s=`'${s}'`),i=i.replace(new RegExp(`\\b${t}\\b`),s)):i=i.replace(new RegExp(`\\b${t}\\b`),0)})),Function("return "+i)()},restart(){this.currentIndex=0,this.listShow=[0],this.$emit("clearResponses")},skip(t){this.$emit("skip",t)},dontKnow(){this.$emit("dontKnow")},updateProgress(){let t=this.context.length;d().isEmpty(this.visibility)||(t=d().filter(this.visibility).length);const e=Object.keys(this.responses).length/t*100;this.$emit("updateProgress",e),100===e&&this.$emit("next")},setResponse(t,e){const s=this.context[e]["@id"],i=new Date,a=i.toISOString();let r=`${window.location.origin}`;window.location.pathname&&(r=`${r}${window.location.pathname}`);const n=(0,v.A)(),o=(0,v.A)(),l=(this.srcUrl,this.getAnsweredLanguage,this.t0,{"@context":"https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic","@type":"reproschema:Response","@id":`uuid:${o}`,wasAttributedTo:{"@id":this.$store.state.participantUuid},isAbout:s,value:t});this.participantId&&(l.wasAttributedTo.subject_id=this.participantId),this.$emit("saveResponse",this.context[e]["@id"],t);let c={};c[this.context[e]["@id"]]=t,this.$emit("valueChanged",c),this.t0=a;const u={...this.responses};u[this.context[e]["@id"]]=t instanceof Object?l.value:t,this.visibility=this.getVisibility(u),d().isEmpty(this.activity["http://schema.repronim.org/compute"])||(d().map(this.getScoring(this.responses),((t,e)=>{d().isNaN(t)||(this.scores[e]=t)})),d().isEmpty(this.scores)||this.$emit("saveScores",this.srcUrl,this.scores)),this.updateProgress(),this.$forceUpdate()},getScoring(t){const e=this.responseMapper(t);if(!d().isEmpty(this.activity["http://schema.repronim.org/compute"])){const t={};return d().map(this.activity["http://schema.repronim.org/compute"],(s=>{let i=s[`${this.reprotermsUrl}jsExpression`][0]["@value"];const a=s[`${this.reprotermsUrl}variableName`][0]["@value"];d().isString(i)&&(i=this.evaluateString(i,e)),e[a]&&(t[e[a].ref]=i)})),t}return{}},checkAlertMessage(t){const e=this.$store.getters.getProtocolSchema;let s=0;if(!s&&e["http://schema.repronim.org/overrideProperties"]);else if(!s&&e["http://schema.repronim.org/addProperties"]){let i=d().filter(e["http://schema.repronim.org/addProperties"],(e=>{e["http://schema.repronim.org/isAbout"][0]["@id"],this.context[t]["@id"]}));s=i.length?1:0}if(!s&&this.activity["http://schema.repronim.org/overrideProperties"]);else{d().filter(this.activity["http://schema.repronim.org/addProperties"],(e=>e["http://schema.repronim.org/isAbout"][0]["@id"]===this.context[t]["@id"]&&e["http://schema.repronim.org/message"]))}const i=this.context[t]["@id"].split("/");8===t&&"phq9_9"===i[i.length-1]&&this.responses[this.context[t]["@id"]]>0&&(this.showModal=!0)},nextQuestion(t,e,s){if(document.body.scrollTop=0,document.documentElement.scrollTop=0,this.checkAlertMessage(t),e&&this.setResponse("http://schema.repronim.org/Skipped",t),s&&this.setResponse("http://schema.repronim.org/DontKnow",t),this.$forceUpdate(),t>=this.listShow.length-1){const t=d().max(this.listShow)+1;this.listShow.push(t);for(let e=t;e{const s=this.listShow.indexOf(this.contextReverse.length-e-1)>=0;let i=!0;return d().isEmpty(this.visibility)||(i=this.visibility[t["@id"]]),s&&i}))},context(){if(this.activity["http://schema.repronim.org/order"]){const t=this.order();return t}return[{}]},contextReverse(){return this.context.length>0?this.context.slice().reverse():{}},preambleText(){if(this.activity[`${this.reprotermsUrl}preamble`]){const t=d().filter(this.activity[`${this.reprotermsUrl}preamble`],(t=>t["@language"]===this.selected_language));return t[0]["@value"]}return""},findPassOptions(){if(this.activity[this.reprotermsUrl+"allow"]){let t=!1,e=!1;return d().map(this.activity[`${this.reprotermsUrl}allow`][0]["@list"],(s=>{s["@id"]===`${this.reprotermsUrl}refused_to_answer`?t=!0:s["@id"]===`${this.reprotermsUrl}dont_know_answer`&&(e=!0)})),{skip:t,dontKnow:e}}return null}}},Fs=qs,zs=(0,$.A)(Fs,Ls,Ns,!1,null,null,null),Ks=zs.exports,Bs={name:"SurveyItem",props:{reprotermsUrl:{type:String},item:{type:Object},index:{type:Number},init:{},responses:{type:Object},selected_language:{type:String},clientIp:{type:String},showPassOptions:{type:Object},surveyStart:{type:Number},individualPassList:{type:Array}},components:{InputSelector:js,multipart:Ms,subactivity:Ks,Loader:Je},data(){return{data:[],valueC:{},status:"loading",mp_responses:{},mp_progress:0,variant:null,requireVal:!1,itemAllow:{}}},computed:{style(){return"section"===this.ui||"multipart"===this.ui?{"border-color":"white","-webkit-box-flex":1,flex:"1 1 auto"}:{width:"100%"}},bodyStyle(){return"section"===this.ui||"multipart"===this.ui?{padding:0}:{}},ui(){return this.data["@type"]&&"http://schema.repronim.org/Activity"===this.data["@type"][0]?"section":this.data["http://schema.repronim.org/inputType"]?this.data["http://schema.repronim.org/inputType"][0]["@value"]:"N/A"},widgetType(){return!!this.data["http://schema.org/readonlyValue"]&&this.data["http://schema.org/readonlyValue"][0]["@value"]},title(){if(this.data["http://schema.org/question"]){const t=d().filter(this.data["http://schema.org/question"],(t=>t["@language"]===this.selected_language));if(!Array.isArray(t)||!t.length){const t=this.data["http://schema.org/question"][0]["@language"];return this.$store.dispatch("setAnsweredLanguage",t),this.data["http://schema.org/question"][0]["@value"]}return this.$store.dispatch("setAnsweredLanguage",t[0]["@language"]),t[0]["@value"]}return null},itemPreamble(){if(this.data["http://schema.repronim.org/preamble"]){const t=d().filter(this.data["http://schema.repronim.org/preamble"],(t=>t["@language"]===this.selected_language));return t[0]["@value"]}return null},valueConstraints(){return this.data["http://schema.repronim.org/responseOptions"]?this.valueC:{requiredValue:!1}},fieldData(){return this.data},findPassOptions(){if(this.data["http://schema.repronim.org/responseOptions"]){if(Object.keys(this.data["http://schema.repronim.org/responseOptions"][0]).indexOf("@id")>-1)return this.getRequiredVal(),this.requireVal;if(this.data["http://schema.repronim.org/responseOptions"][0]&&this.data["http://schema.repronim.org/responseOptions"][0]["http://schema.org/valueRequired"])return this.data["http://schema.repronim.org/responseOptions"][0]["http://schema.org/valueRequired"][0]["@value"]}return!1}},methods:{getRequiredVal(){y().expand(this.data["http://schema.repronim.org/responseOptions"][0]["@id"]).then((t=>{this.requireVal=t[0]["http://schema.org/valueRequired"][0]["@value"]})).catch((t=>{y().expand(`${this.data["http://schema.repronim.org/responseOptions"][0]["@id"]}.jsonld`).then((t=>{this.requireVal=t[0]["http://schema.org/valueRequired"][0]["@value"]})).catch((t=>{}))}))},getValueConstraintsData(t){y().expand(t).then((t=>{this.valueC=t[0]})).catch((e=>{y().expand(`${t}.jsonld`).then((t=>{this.valueC=t[0]})).catch((t=>{}))}))},processActivityData(t){t.length&&(this.data=t[0],this.data["http://schema.repronim.org/responseOptions"]?Object.keys(this.data["http://schema.repronim.org/responseOptions"][0]).indexOf("@id")>-1?this.getValueConstraintsData(this.data["http://schema.repronim.org/responseOptions"][0]["@id"]):this.valueC=this.data["http://schema.repronim.org/responseOptions"][0]:this.valueC={"@value":null},this.status="ready")},getData(){d().filter(this.individualPassList,(t=>{if(t["http://schema.repronim.org/isAbout"][0]["@id"]===this.item["@id"]){let e={};const s=d().filter(t["http://schema.repronim.org/allow"],(t=>"http://schema.repronim.org/Skipped"===t["@id"]));s.length?e["skip"]=!0:e["skip"]=!1;const i=d().filter(t["http://schema.repronim.org/allow"],(t=>"http://schema.repronim.org/DontKnow"===t["@id"]));i.length?e["dontKnow"]=!0:e["dontKnow"]=!1,this.itemAllow=e}})),y().expand(this.item["@id"],{onDownloadProgress(){}}).then((t=>{this.processActivityData(t)})).catch((t=>{y().expand(`${this.item["@id"]}.jsonld`).then((t=>{this.processActivityData(t)})).catch((t=>{}))}))},sendSkip(t){t&&(this.variant="warning"),this.$emit("skip")},sendDontKnow(){this.variant="info",this.$emit("dontKnow")},sendNext(){this.$emit("next")},sendData(t){this.variant=null,this.$emit("setData",t,this.index,this.mp_progress)},sendDataAndGoNext(t){this.variant=null,this.$emit("setData",t,this.index),this.sendNext()},setScore(t,e){this.$emit("setScores",e,this.index)},setMPResponse(t,e){this.mp_responses[t]=e},clearMPResponses(){this.mp_responses={},this.mp_progress=0,this.$emit("setData",{},this.index)},setMPProgress(t){this.mp_progress=t}},mounted(){this.getData(),this.init&&("skipped"===this.init?this.variant="warning":"dontKnow"===this.init&&(this.variant="info"))},watch:{item:{handler(){this.getData()},deep:!0}}},Hs=Bs,Qs=(0,$.A)(Hs,Y,J,!1,null,"75865be5",null),Ys=Qs.exports;i["default"].component("survey-item",Ys);var Js={name:"Survey",props:["reprotermsUrl","srcUrl","responses","selected_language","progress","autoAdvance","actVisibility","nextActivity","ipAddress","participantID"],data(){return{activity:{},listShow:[],parsedJSONLD:{},visibility:{},scores:{},isSkip:!1,isDontKnow:!1,isVis:!1,individualPassList:[],downloadAndSubmit:j().downloadAndSubmit}},components:{Loader:Je},methods:{getData(){y().expand(this.srcUrl).then((t=>{this.activity=t[0],this.findIndividualPassOptions(),this.$nextTick((()=>{const t=d().filter(this.context,(t=>Object.keys(this.responses).indexOf(t["@id"])>-1));t.length?this.listShow=d().map(new Array(t.length+1),((t,e)=>e)):this.listShow=[this.initializeListShow()],this.visibility=this.getVisibility(this.responses)}))}))},findIndividualPassOptions(){this.activity["http://schema.repronim.org/addProperties"]&&(this.individualPassList=d().filter(this.activity["http://schema.repronim.org/addProperties"],(t=>{if(t.hasOwnProperty("http://schema.repronim.org/allow"))return t})))},initializeListShow(){const t=this.responseMapper(this.responses);let e=0;for(e=0;et["http://schema.repronim.org/isAbout"][0]["@id"]===s["@id"]));let a=!0;if(i[0]["http://schema.repronim.org/isVis"]&&(a=i[0]["http://schema.repronim.org/isVis"][0]["@value"]),d().isString(a)&&(a=this.evaluateString(a,t)),!0===a)break}return e},getScoring(t){const e=this.responseMapper(t);if(!d().isEmpty(this.activity["http://schema.repronim.org/compute"])){const t={};return d().map(this.activity["http://schema.repronim.org/compute"],(s=>{let i=s["http://schema.repronim.org/jsExpression"][0]["@value"];const a=s["http://schema.repronim.org/variableName"][0]["@value"];d().isString(i)&&(i=this.evaluateString(i,e)),e[a]&&(t[e[a].ref]=i)})),t}return{}},nextQuestion(t,e,s){if(document.body.scrollTop=0,document.documentElement.scrollTop=0,e&&(this.$emit("saveResponse",this.context[t]["@id"],"http://schema.repronim.org/Skipped"),this.setResponse("http://schema.repronim.org/Skipped",t)),s&&(this.$emit("saveResponse",this.context[t]["@id"],"http://schema.repronim.org/DontKnow"),this.setResponse("http://schema.repronim.org/DontKnow",t)),this.$forceUpdate(),t>=this.listShow.length-1){const t=d().max(this.listShow)+1;this.listShow.push(t);for(let e=t;e{const i=t.indexOf(this.contextReverse.length-s-1)>=0;let a=!0;return d().isEmpty(this.visibility)||(a=this.visibility[e["@id"]]),i&&a}))},setResponse(t,e,s=100){const i=this.context[e]["@id"];let a=t,r=[],n=i;if(d().isObject(t)&&!t.hasOwnProperty("unitCode")){const e=Object.keys(t)[0],s=Object.values(t)[0];a=s,r.push(e),n=e}r.push(`${i}`,`${this.srcUrl}`);const o=new Date,l=o.toISOString();let c=`${window.location.origin}`;window.location.pathname&&(c=`${c}${window.location.pathname}`);const u=(0,v.A)(),h=(0,v.A)(),p={"@context":"https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic","@type":"reproschema:ResponseActivity","@id":`uuid:${u}`,used:r,inLanguage:this.getAnsweredLanguage,startedAtTime:this.t0,endedAtTime:l,wasAssociatedWith:{version:"0.0.1",url:c,"@id":"https://github.com/ReproNim/reproschema-ui"},generated:`uuid:${h}`},m={"@context":"https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic","@type":"reproschema:Response","@id":`uuid:${h}`,wasAttributedTo:{"@id":this.$store.state.participantUuid},isAbout:n,value:a};this.participantId&&(m.wasAttributedTo.subject_id=this.participantId);const g=[t,p,m];this.$emit("saveResponse",this.context[e]["@id"],g),this.t0=l;const b={...this.responses};b[this.context[e]["@id"]]=t instanceof Object?m.value:t,this.visibility=this.getVisibility(b),d().isEmpty(this.activity["http://schema.repronim.org/compute"])||(d().map(this.getScoring(this.responses),((t,e)=>{d().isNaN(t)||(this.scores[e]=t)})),d().isEmpty(this.scores)||this.$emit("saveScores",this.srcUrl,this.scores)),this.updateProgress(s)},setScore(t,e){this.$emit("saveScores",this.context[e]["@id"],t)},restart(){this.$emit("clearResponses"),this.listShow=[this.initializeListShow()]},evaluateString(t,e){const s=Object.keys(e);let i=t;return d().map(s,(s=>{let a=e[s].val;"http://schema.repronim.org/Skipped"!==a&&"http://schema.repronim.org/DontKnow"!==a?(d().isString(a)?a=`'${a}'`:d().isArray(a)?a=`[${a}]`:!a&&t.includes("includes")&&(a="[]"),i=i.replace(new RegExp(`\\b${s}\\b`),a)):i=i.replace(new RegExp(`\\b${s}\\b`),0)})),Function("return "+i)()},responseMapper(t){let e;if(this.activity["http://schema.repronim.org/addProperties"]){const s=this.activity["http://schema.repronim.org/addProperties"];e=d().map(s,(e=>{const s=e["http://schema.repronim.org/isAbout"][0]["@id"],i=e["http://schema.repronim.org/variableName"][0]["@value"],a=t[s];return{key:s,val:a,qId:i}}))}const s={};if(d().map(e,(t=>{s[t.qId]={val:t.val,ref:t.key}})),this.$store.state.responseMap[this.activity["@id"]]=s,this.$store.getters.getQueryParameters){const t=this.$store.getters.getQueryParameters;Object.entries(t).forEach((([t,s])=>{const i=t;"week"===t&&(s=parseInt(s));const a=s;e.push({key:t,val:a,qId:i})}))}const i={};return d().map(e,(t=>{i[t.qId]={val:t.val,ref:t.key}})),i},getVisibility(t){const e=this.responseMapper(t);if(!d().isEmpty(this.activity["http://schema.repronim.org/addProperties"])){const t={};return d().map(this.activity["http://schema.repronim.org/addProperties"],(s=>{let i=!0;s["http://schema.repronim.org/isVis"]&&(i=s["http://schema.repronim.org/isVis"][0]["@value"]),d().isString(i)&&(i=this.evaluateString(i,e)),e[s["http://schema.repronim.org/variableName"][0]["@value"]]&&(t[e[s["http://schema.repronim.org/variableName"][0]["@value"]].ref]=i)})),t}return{}},updateProgress(t=100){let e=this.context.length;d().isEmpty(this.visibility)||(e=0,d().map(this.context,(t=>{t["@id"]in this.visibility&&this.visibility[t["@id"]]&&(e+=1)})));const s=(Object.keys(this.responses).length-1+t/100)/e*100;this.$emit("updateProgress",s)},order(){if(this.activity["http://schema.repronim.org/shuffle"]&&this.activity["http://schema.repronim.org/shuffle"][0]["@value"]){const t=this.activity["http://schema.repronim.org/order"][0]["@list"],e=d().shuffle(t);return e}return this.activity["http://schema.repronim.org/order"][0]["@list"]},nextActivity1(){this.uploadZipData();const t=parseInt(this.$store.state.activityIndex),e=d().map(this.actVisibility,((t,e)=>!0===t?e:"")).filter(String),s=e[e.indexOf(t)+1];this.$route.query.url?this.$router.push(`/activities/${s}?url=${this.$route.query.url}`):this.$router.push(`/activities/${s}`)},uploadZipData(){const t=this.$store.state.exportResponses,e=this.$store.state.scores,s=this.$store.state.participantId,i={response:t,scores:e,participantId:s};this.formatData(i)},formatData(t){const e=parseInt(this.$store.state.activityIndex);console.log(464,"data response: ",t.response[e]);const s=this.$store.getters.getAuthToken,i=this.$store.state.expiryMinutes,a=new(g()),r=`${(0,v.A)()}-${this.participantId}-activity${e}`;d().map(t.response[e],(t=>{const e={...t};if("reproschema:Response"===t["@type"]&&t.value instanceof Blob){const s=t.isAbout.split("/"),i=t["@id"].split("uuid:")[1];a.folder(r).file(`${s[s.length-1]}-${i}.wav`,t.value),e.value=`${s[s.length-1]}-${i}.wav`}})),a.folder(r).file(`activity_${e}.jsonld`,JSON.stringify(t.response[e],null,4)),a.generateAsync({type:"blob"}).then((t=>{const e=new FormData;e.append("file",t,`${r}.zip`),e.append("auth_token",`${s}`),e.append("expires",`${i}`),this.sendRetry(`${j().backendServer}/submit`,e)}))},async sendRetry(t,e,s=3,i=1e4){const a={"Content-Type":"multipart/form-data"};try{await o.A.post(`${j().backendServer}/submit`,e,a)}catch(r){s>0?setTimeout((()=>this.sendRetry(t,e,s-1,2*i)),i):console.log(r.response.status)}}},watch:{$route(){this.getData(),this.readyForActivity&&this.$store&&this.$store.dispatch("getActivityData")},actVisibility:{deep:!0,handler(t){this.isVis=d().some(t)}},listContentRev(){this.$forceUpdate()},listShow(){this.updateProgress()},srcUrl(){this.srcUrl&&this.getData()},readyForActivity(){this.readyForActivity&&this.$store&&this.$store.dispatch("getActivityData")},storeContext(){this.$store&&this.$store.dispatch("setActivityList",this.storeContext)}},computed:{complete(){return this.progress>=100},getAnsweredLanguage(){return this.$store.getters.getAnsweredLanguage},storeContext(){if(this.$store){const t=this.$store.state;if(t.activities.length&&null!=t.activityIndex&&t.activities[t.activityIndex].activity){const e=t.activities[t.activityIndex].activity,s=e["http://schema.repronim.org/order"][0]["@list"];return s}}return[{}]},shouldShow(){return d().map(this.contextReverse,((t,e)=>{const s=this.listShow.indexOf(this.contextReverse.length-e-1)>=0;let i=!0;return d().isEmpty(this.visibility)||(i=this.visibility[t["@id"]]),s&&i}))},context(){if(this.activity["http://schema.repronim.org/order"]){const t=this.order();return t}return[{}]},contextReverse(){return this.context.length>0?this.context.slice().reverse():{}},preambleText(){if(this.activity["http://schema.repronim.org/preamble"]){const t=d().filter(this.activity["http://schema.repronim.org/preamble"],(t=>t["@language"]===this.selected_language));return Array.isArray(t)&&t.length?t[0]["@value"]:this.activity["http://schema.repronim.org/preamble"][0]["@value"]}return""},readyForActivity(){if(this.$store)return this.$store.getters.readyForActivity},findOverallPassOptions(){if(this.activity["http://schema.repronim.org/allow"]){let t=!1,e=!1;return d().map(this.activity["http://schema.repronim.org/allow"][0]["@list"],(s=>{"http://schema.repronim.org/Skipped"===s["@id"]?t=!0:"http://schema.repronim.org/DontKnow"===s["@id"]&&(e=!0)})),{skip:t,dontKnow:e}}return null},activityUrl(){return this.srcUrl},currentActivityIndex(){return parseInt(this.$store.state.activityIndex)},participantId(){return this.$store.state.participantId},getparticipantUUID(){return this.$store.getters.getparticipantUUID}},mounted(){this.srcUrl&&this.getData();const t=new Date;this.t0=t.toISOString()}},Zs=Js,Gs=(0,$.A)(Zs,H,Q,!1,null,"6efaf872",null),Ws=Gs.exports,Xs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"docked-layout"},[t.selectedContent?e("section",{staticClass:"smooth-scroller",staticStyle:{"padding-top":"0"},attrs:{id:"smooth-scroller"}},[e("vue-markdown",{attrs:{source:t.selectedContent.content}})],1):e("Loader"),e("p",{staticClass:"button-para"},[e("button",{staticClass:"join-button",on:{click:t.doNext}},[t._v(t._s(t.$t("join-button")))])])],1)},ti=[],ei=s(9806),si=s.n(ei),ii={name:"Landing",props:{selected_language:{type:String},nextActivity:{type:Object},actVisibility:{type:Array}},components:{VueMarkdown:si(),Loader:Je},data(){return{content:{},consent:j().consent}},computed:{reprotermsUrl(){return this.$store.getters.getTermsUrl},selectedContent(){const t=d().filter(this.$store.state.landing,(t=>t["@language"]===this.selected_language));return d().isEmpty(t)?this.$store.state.landing[0]:t[0]},activityUrl(){return this.srcUrl}},methods:{doBack(){this.step>1&&(this.step-=1)},doNext(){const t=parseInt(this.$store.state.activityIndex),e=d().map(this.actVisibility,((t,e)=>!0===t?e:"")).filter(String),s=e[e.indexOf(t)+1];this.$route.query.url?this.$router.push(`/activities/${s}?url=${this.$route.query.url}`):this.$router.push(`/activities/${s}`)}}},ai=ii,ri=(0,$.A)(ai,Xs,ti,!1,null,"7ef4112c",null),ni=ri.exports,oi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"docked-layout"},[e("section",[e("div",{staticClass:"container"},[e("div",{directives:[{name:"show",rawName:"v-show",value:1===t.step,expression:"step === 1"}],staticClass:"screen"},[e("div",{staticClass:"panel"},[e("BridgeImage",{attrs:{src:"static/images/about%20the%20study.svg"}}),e("h3",[t._v("About the study")]),e("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eu sagittis leo, sit amet consectetur mi. Donec volutpat rutrum massa et luctus. Fusce ac dui quam. Nam a nibh porttitor, tincidunt libero id, condimentum velit. Praesent ultricies consectetur nulla vel pharetra. ")])],1)]),e("div",{directives:[{name:"show",rawName:"v-show",value:2===t.step,expression:"step === 2"}],staticClass:"screen"},[e("div",{staticClass:"panel"},[e("BridgeImage",{attrs:{src:"static/images/procedures%20activities.svg"}}),e("h3",[t._v("How does the study work?")]),t._m(0)],1)]),e("div",{directives:[{name:"show",rawName:"v-show",value:3===t.step,expression:"step === 3"}],staticClass:"screen"},[e("div",{staticClass:"panel"},[e("BridgeImage",{attrs:{src:"static/images/how%20long%20does%20it%20last.svg"}}),e("h3",[t._v("How long does it last?")]),e("p",[t._v("We will ask you to participate for 2 weeks every three months. We would like you to participate for 2 years, but you can participate as long as you like.")])],1)]),e("div",{directives:[{name:"show",rawName:"v-show",value:4===t.step,expression:"step === 4"}],staticClass:"screen"},[e("div",{staticClass:"panel"},[e("BridgeImage",{attrs:{src:"static/images/benefits%20and%20risks.svg"}}),e("h3",[t._v("What are the benefits and risks?")]),e("p",[t._v("You may not directly benefit from taking part but seeing trends in your data may be interesting to you. You may help researchers better understand PD.")]),e("p",[t._v("The main risk is to your privacy by an accidental release of your data. You may find some of the activities tiring and seeing your data may be stressful.")])],1)])])]),e("div",{staticClass:"buttons"},[e("button",{attrs:{disabled:1===this.step},on:{click:t.doBack}},[t._v("Back")]),e("button",{on:{click:t.doNext}},[t._v(t._s(t.nextName))])])])},li=[function(){var t=this,e=t._self._c;return e("p",[t._v(" 1. Answer questions to determine if you are eligible for this study "),e("br"),t._v(" 2. Complete the informed consent process & download the app"),e("br"),t._v(" 3. Complete a one-time health survey"),e("br"),t._v(" 4. Complete short physical and cognitive activities "),e("br"),t._v(" 5. Track your symptoms, triggers, and medications ")])}],ci={name:"StudyIntroduction",data(){return{step:1,totalSteps:4}},computed:{nextName(){return this.step===this.totalSteps?"Start":"Next"},appletURL(){return"https://raw.githubusercontent.com/ReproNim/reproschema/master/activity-sets/VoicePilot/VoicePilot_schema"},redirect(){return{name:"Applet",params:{appletId:this.appletURL},query:{...this.query,consent:!0}}}},methods:{doBack(){this.step>1&&(this.step-=1)},doNext(){this.step{e.query.auth_token&&!t.query.auth_token||e.query.uid&&!t.query.uid?e.path===t.path?s(!1):s({path:t.path,query:e.query}):s()}));var mi=di,gi=s(5353);window.jsonld=y(),i["default"].use(gi.Ay);const vi={schema:{},progress:[],responses:[],responseMap:{},exportResponses:[],scores:{},participantId:"",activities:[],activityIndex:null,storeReady:!1,activityReady:!1,termUrl:"http://schema.repronim.org/",schemaType:"",answeredLanguage:"",participantUuid:"",expiryMinutes:null,queryParams:{},token:null,landing:[],hasExport:!1},bi={getParticipantId(t){return t.participantId},getschemaType(t){return t.schemaType},getTermsUrl(t){return t.termUrl},getLand(t){return t.landing},srcUrl(t){return!d().isEmpty(t.schema)&&t.activityIndex?(t.schemaType=t.schema["@type"][0].split("/").slice(-1)[0],"Activity"===t.schemaType?t.schema["@id"]:t.schema[`${t.termUrl}order`][0]["@list"][t.activityIndex]["@id"]):null},readyForActivity(t){return t.storeReady&&t.activityReady},getAnsweredLanguage(t){return t.answeredLanguage},getProtocolSchema(t){return t.schema},getQueryParameters(t){return t.queryParams},getAuthToken(t){return t.token},getHasExport(t){return t.hasExport},getExpiryTime(t){return t.expiryMinutes}},yi={async setReprotermUrl(t,e){o.A.get(e).then((e=>{const s=e.data["@context"];o.A.get(s).then((e=>{t.termUrl="http://schema.repronim.org/"}))}))},async setBaseSchema(t,e){if(t.schema=e[0],t.progress=d().map(e[0][`${t.termUrl}order`][0]["@list"],(()=>0)),t.responses=d().map(e[0][`${t.termUrl}order`][0]["@list"],(()=>({}))),t.exportResponses=d().map(e[0][`${t.termUrl}order`][0]["@list"],(()=>[])),t.scores=d().map(e[0][`${t.termUrl}order`][0]["@list"],(()=>({}))),t.activities=d().map(e[0][`${t.termUrl}order`][0]["@list"],(()=>({}))),t.storeReady=!0,t.schema["http://schema.repronim.org/landingPage"]){const e=t.schema["http://schema.repronim.org/landingPage"],s=e.map((async t=>{const e={},s=await o.A.get(t["@id"]);return e["@language"]=t["http://schema.org/inLanguage"][0]["@value"],e.content=s.data,e}));t.landing=await Promise.all(s)}},setActivityIndex(t,e){t.activityIndex=e,t.activityReady=!0},setAuthToken(t,e){t.token=e},setParticipantUUID(t,e){t.participantUuid=e},setExpiryMinutes(t,e){t.expiryMinutes=e},setQueryParameters(t,e){t.queryParams=e},saveResponse(t,{key:e,value:s}){const i=s[0],a=s[1],r=s[2];t.responses[t.activityIndex][e]=i,t.exportResponses[t.activityIndex].push(a,r)},saveScores(t,{key:e,scoreObj:s}){t.scores[t.activityIndex][e]=s},saveParticipantId(t,e){t.participantId=e},updateProgress(t,e){t.progress[t.activityIndex]=e},setActivityData(t,e){t.activities[t.activityIndex].activity=e[0],t.activities[t.activityIndex].listShow=[0]},setListShow(t,e){t.activities[t.activityIndex].listShow=e},setAnsweredLanguage(t,e){t.answeredLanguage=e},setActivityList(t,e){t.activities[t.activityIndex]&&(t.activities[t.activityIndex].activityList=e)},clearResponses(t,e){t.responses[e]={},t.progress[e]=0},setExport(t,e){t.hasExport=e}},fi={async getReproTerm({commit:t},e){t("setReprotermUrl",e)},async getBaseSchema({commit:t},e){t("setBaseSchema",await y().expand(e||j().githubSrc))},async setActivityIndex({commit:t},e){t("setActivityIndex",e)},saveParticipantId({commit:t},e){t("saveParticipantId",e)},saveResponse({commit:t},{key:e,value:s}){t("saveResponse",{key:e,value:s})},saveScores({commit:t},{key:e,scoreObj:s}){t("saveScores",{key:e,scoreObj:s})},updateProgress({commit:t},e){t("updateProgress",e)},async getActivityData({commit:t,getters:e}){return t("setActivityData",await y().expand(e.srcUrl))},updateListShow({commit:t},e){t("setListShow",e)},setAnsweredLanguage({commit:t},e){t("setAnsweredLanguage",e)},setActivityList({commit:t},e){t("setActivityList",e)},clearResponses({commit:t},e){t("clearResponses",e)},setParticipantUUID({commit:t},e){t("setParticipantUUID",e)},setAuthToken({commit:t},e){t("setAuthToken",e)},setExpiryMinutes({commit:t},e){t("setExpiryMinutes",e)},setQueryParameters({commit:t},e){t("setQueryParameters",e)},setExport({commit:t},e){t("setExport",e)}};var _i=new gi.Ay.Store({state:vi,getters:bi,mutations:yi,actions:fi});i["default"].config.productionTip=!1,new i["default"]({el:"#app",store:_i,router:mi,components:{App:K},i18n:L,render:t=>t(K)})},5358:function(t,e,s){var i={"./af":5177,"./af.js":5177,"./ar":1509,"./ar-dz":1488,"./ar-dz.js":1488,"./ar-kw":8676,"./ar-kw.js":8676,"./ar-ly":2353,"./ar-ly.js":2353,"./ar-ma":4496,"./ar-ma.js":4496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":2682,"./ar-sa.js":2682,"./ar-tn":9756,"./ar-tn.js":9756,"./ar.js":1509,"./az":5533,"./az.js":5533,"./be":8959,"./be.js":8959,"./bg":7777,"./bg.js":7777,"./bm":4903,"./bm.js":4903,"./bn":1290,"./bn-bd":7357,"./bn-bd.js":7357,"./bn.js":1290,"./bo":1545,"./bo.js":1545,"./br":1470,"./br.js":1470,"./bs":4429,"./bs.js":4429,"./ca":7306,"./ca.js":7306,"./cs":6464,"./cs.js":6464,"./cv":3635,"./cv.js":3635,"./cy":4226,"./cy.js":4226,"./da":3601,"./da.js":3601,"./de":7853,"./de-at":6111,"./de-at.js":6111,"./de-ch":4697,"./de-ch.js":4697,"./de.js":7853,"./dv":708,"./dv.js":708,"./el":4691,"./el.js":4691,"./en-au":3872,"./en-au.js":3872,"./en-ca":8298,"./en-ca.js":8298,"./en-gb":6195,"./en-gb.js":6195,"./en-ie":6584,"./en-ie.js":6584,"./en-il":5543,"./en-il.js":5543,"./en-in":9033,"./en-in.js":9033,"./en-nz":9402,"./en-nz.js":9402,"./en-sg":3004,"./en-sg.js":3004,"./eo":2934,"./eo.js":2934,"./es":7650,"./es-do":838,"./es-do.js":838,"./es-mx":7730,"./es-mx.js":7730,"./es-us":6575,"./es-us.js":6575,"./es.js":7650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":527,"./fi.js":527,"./fil":5995,"./fil.js":5995,"./fo":2477,"./fo.js":2477,"./fr":5498,"./fr-ca":6435,"./fr-ca.js":6435,"./fr-ch":7892,"./fr-ch.js":7892,"./fr.js":5498,"./fy":7071,"./fy.js":7071,"./ga":1734,"./ga.js":1734,"./gd":217,"./gd.js":217,"./gl":7329,"./gl.js":7329,"./gom-deva":2124,"./gom-deva.js":2124,"./gom-latn":3383,"./gom-latn.js":3383,"./gu":5050,"./gu.js":5050,"./he":1713,"./he.js":1713,"./hi":3861,"./hi.js":3861,"./hr":6308,"./hr.js":6308,"./hu":609,"./hu.js":609,"./hy-am":7160,"./hy-am.js":7160,"./id":4063,"./id.js":4063,"./is":9374,"./is.js":9374,"./it":8383,"./it-ch":1827,"./it-ch.js":1827,"./it.js":8383,"./ja":3827,"./ja.js":3827,"./jv":9722,"./jv.js":9722,"./ka":1794,"./ka.js":1794,"./kk":7088,"./kk.js":7088,"./km":6870,"./km.js":6870,"./kn":4451,"./kn.js":4451,"./ko":3164,"./ko.js":3164,"./ku":8174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":8174,"./ky":8474,"./ky.js":8474,"./lb":9680,"./lb.js":9680,"./lo":5867,"./lo.js":5867,"./lt":5766,"./lt.js":5766,"./lv":9532,"./lv.js":9532,"./me":8076,"./me.js":8076,"./mi":1848,"./mi.js":1848,"./mk":306,"./mk.js":306,"./ml":3739,"./ml.js":3739,"./mn":9053,"./mn.js":9053,"./mr":6169,"./mr.js":6169,"./ms":3386,"./ms-my":2297,"./ms-my.js":2297,"./ms.js":3386,"./mt":7075,"./mt.js":7075,"./my":2264,"./my.js":2264,"./nb":2274,"./nb.js":2274,"./ne":8235,"./ne.js":8235,"./nl":2572,"./nl-be":3784,"./nl-be.js":3784,"./nl.js":2572,"./nn":4566,"./nn.js":4566,"./oc-lnc":9330,"./oc-lnc.js":9330,"./pa-in":9849,"./pa-in.js":9849,"./pl":4418,"./pl.js":4418,"./pt":9834,"./pt-br":8303,"./pt-br.js":8303,"./pt.js":9834,"./ro":4457,"./ro.js":4457,"./ru":2271,"./ru.js":2271,"./sd":1221,"./sd.js":1221,"./se":3478,"./se.js":3478,"./si":7538,"./si.js":7538,"./sk":5784,"./sk.js":5784,"./sl":6637,"./sl.js":6637,"./sq":6794,"./sq.js":6794,"./sr":5719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":5719,"./ss":6e3,"./ss.js":6e3,"./sv":1011,"./sv.js":1011,"./sw":748,"./sw.js":748,"./ta":1025,"./ta.js":1025,"./te":1885,"./te.js":1885,"./tet":8861,"./tet.js":8861,"./tg":6571,"./tg.js":6571,"./th":5802,"./th.js":5802,"./tk":9527,"./tk.js":9527,"./tl-ph":9231,"./tl-ph.js":9231,"./tlh":1052,"./tlh.js":1052,"./tr":5096,"./tr.js":5096,"./tzl":9846,"./tzl.js":9846,"./tzm":1765,"./tzm-latn":7711,"./tzm-latn.js":7711,"./tzm.js":1765,"./ug-cn":8414,"./ug-cn.js":8414,"./uk":6618,"./uk.js":6618,"./ur":158,"./ur.js":158,"./uz":7609,"./uz-latn":2475,"./uz-latn.js":2475,"./uz.js":7609,"./vi":1135,"./vi.js":1135,"./x-pseudo":4051,"./x-pseudo.js":4051,"./yo":2218,"./yo.js":2218,"./zh-cn":2648,"./zh-cn.js":2648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":1541,"./zh-mo.js":1541,"./zh-tw":304,"./zh-tw.js":304};function a(t){var e=r(t);return s(e)}function r(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id=5358},5432:function(t,e,s){var i={"./en.json":4174,"./es.json":6725};function a(t){var e=r(t);return s(e)}function r(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id=5432},400:function(t,e,s){"use strict";t.exports=s.p+"img/403-Access-Forbidden-HTML-Template.e2da77e6.gif"},6425:function(t,e,s){"use strict";t.exports=s.p+"img/audio-permission-setting-chrome.c361007d.gif"},2370:function(t,e,s){"use strict";t.exports=s.p+"img/audio-permission-setting-firefox.e079f901.gif"},1823:function(t,e,s){"use strict";t.exports=s.p+"img/audio-permission-setting-safari.c982a870.gif"},4174:function(t){"use strict";t.exports=JSON.parse('{"join-button":"Join","start-button":"Start","stop-button":"Stop","pause-button":"Pause","play-button":"Play","finish-button":"Finish","redo-recording":"Redo Recording","continue":"Continue","record-button":"Record","x-seconds-left":"seconds left","next-button":"Next","upload-button":"Upload","download-and-submit-button":"Download & Submit","export-button":"Download","submit-button":"Submit","restart-button":"Restart","dont-know":"Don\'t know","skip":"Skip","unit":"unit","audio-support-msg":"Oh no, your browser doesn\'t support audio!","invalid-email":"Invalid Email Address","select-invalid-query":"Oops! No elements found. Consider changing the search query.","invalid-feedback-number":"Please enter a number","timeout-message":"Please contact the researchers for a new submission link with an email to","input-selector-alert":"This item does not have a title defined","loader":"Loading","review-and-next":"Click \\"Next\\" below:","save-data":"Please save your data now.","export-and-finish":"Please click \\"Finish\\" below to submit your responses. You can additionally click the \\"Download\\" button on sidebar if you wish to download a personal copy of your data.","finish":"Click below to finish.","home-button":"Home","help-button":"Help","select-year":"Select year","prepare-upload":"Preparing for upload.. ","upload-message":"Uploading... This generally takes a few seconds for fast connections or longer depending on your connection speed","safari-notification":"Your microphone does not work with Chrome. Please copy the link from the email and paste it into a Safari browser.","permission-refresh":"If you already changed permissions you need to refresh the page.","permission-change-notification":"Please change your browser\'s microphone permissions in order to answer these questions."}')},6725:function(t){"use strict";t.exports=JSON.parse('{"join-button":"Participar","start-button":"Comenzar","stop-button":"Parar","pause-button":"Pausar","play-button":"Reproducir","finish-button":"Terminar","redo-recording":"Rehacer grabación","continue":"Continuar","record-button":"Grabar","x-seconds-left":"segundos restantes","next-button":"Siguiente","upload-button":"Enviar","download-and-submit-button":"Descargar & Enviar","export-button":"Descargar","submit-button":"Enviar","restart-button":"Reiniciar","dont-know":"No sé","skip":"Saltear","unit":"unit_es","audio-support-msg":"Uy! Su navegador no puede grabar audio!","invalid-email":"Email incorrecto","select-invalid-query":"Uy! Ningún elemento se encontró. Considere cambiar la búsqueda.","invalid-feedback-number":"Por favor ingrese un número","timeout-message":"Por favor contacte a los investigadores para un nuevo enlace escribiendo un email a","input-selector-alert":"Este ítem no tiene título","loader":"Cargando","review-and-next":"Haga click en Siguiente para continuar:","save-data":"Por favor guarde sus respuestas ahora.","export-and-finish":"Puede hacer click en el botón Descargar en el menú si desea guardar sus respuestas. Para terminar, haga click en Enviar.","finish":"Para terminar, haga click en Enviar.","home-button":"Inicio","help-button":"Ayuda","select-year":"Seleccione el año","upload-message":"Enviando... Esto generalmente demora un par de segundos para conexiones veloces o más dependiendo de su velocidad de conexión","safari-notification":"Micrófono no funciona con Chrome. Por favor copie el enlace del mail y péguelo en Safari","permission-refresh":"If you already changed permissions you need to refresh the page.","permission-change-notification":"Please change your browser\'s microphone permissions in order to answer these questions."}')}},e={};function s(i){var a=e[i];if(void 0!==a)return a.exports;var r=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=t,function(){var t=[];s.O=function(e,i,a,r){if(!i){var n=1/0;for(u=0;u=r)&&Object.keys(s.O).every((function(t){return s.O[t](i[l])}))?i.splice(l--,1):(o=!1,r0&&t[u-1][2]>r;u--)t[u]=t[u-1];t[u]=[i,a,r]}}(),function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){s.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){s.p="/reproschema-ui/"}(),function(){var t={524:0};s.O.j=function(e){return 0===t[e]};var e=function(e,i){var a,r,n=i[0],o=i[1],l=i[2],c=0;if(n.some((function(e){return 0!==t[e]}))){for(a in o)s.o(o,a)&&(s.m[a]=o[a]);if(l)var u=l(s)}for(e&&e(i);c\n \n \n \n \n\n \n\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Circle.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Circle.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Circle.vue?vue&type=template&id=2ea6bd53\"\nimport script from \"./Circle.vue?vue&type=script&lang=js\"\nexport * from \"./Circle.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.statusType !== 'expired')?_c('div',[_c('div',{staticClass:\"day\"},[_c('span',{staticClass:\"number\"},[_vm._v(_vm._s(_vm.days))]),_c('div',{staticClass:\"format\"},[_vm._v(_vm._s(_vm.wordString.day))])]),_c('div',{staticClass:\"hour\"},[_c('span',{staticClass:\"number\"},[_vm._v(_vm._s(_vm.hours))]),_c('div',{staticClass:\"format\"},[_vm._v(_vm._s(_vm.wordString.hours))])]),_c('div',{staticClass:\"min\"},[_c('span',{staticClass:\"number\"},[_vm._v(_vm._s(_vm.minutes))]),_c('div',{staticClass:\"format\"},[_vm._v(_vm._s(_vm.wordString.minutes))])]),_c('div',{staticClass:\"sec\"},[_c('span',{staticClass:\"number\"},[_vm._v(_vm._s(_vm.seconds))]),_c('div',{staticClass:\"format\"},[_vm._v(_vm._s(_vm.wordString.seconds))])])]):_vm._e(),_c('div',{staticClass:\"message\",class:_vm.statusType},[_vm._v(_vm._s(_vm.message))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Timer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Timer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Timer.vue?vue&type=template&id=e52dacec&scoped=true\"\nimport script from \"./Timer.vue?vue&type=script&lang=js\"\nexport * from \"./Timer.vue?vue&type=script&lang=js\"\nimport style0 from \"./Timer.vue?vue&type=style&index=0&id=e52dacec&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e52dacec\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue';\nimport VueI18n from 'vue-i18n';\nimport config from './config';\n\nVue.use(VueI18n);\n\nfunction loadLocaleMessages () {\n const locales = require.context('./locales', true, /[A-Za-z0-9-_,\\s]+\\.json$/i);\n const messages = {};\n locales.keys().forEach(key => {\n const matched = key.match(/([A-Za-z0-9-_]+)\\./i);\n if (matched && matched.length > 1) {\n const locale = matched[1];\n if (config.startButton instanceof Object) {\n locales(key)['join-button'] = config.startButton[locale];\n } else {\n locales(key)['join-button'] = config.startButton;\n }\n if (config.banner instanceof Object) {\n locales(key)['banner-message'] = config.banner[locale];\n } else {\n locales(key)['banner-message'] = config.banner;\n }\n\n messages[locale] = locales(key)\n }\n });\n return messages\n}\n\nexport default new VueI18n({\n locale: process.env.VUE_APP_I18N_LOCALE || 'en',\n fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',\n messages: loadLocaleMessages()\n})\n","\n\n\n\n\n\n\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=13057e8b\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=13057e8b&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"hello\"},[(!_vm.listShow.length)?_c('div',[_c('h1',[_vm._v(_vm._s(_vm.$t('loader'))+\"...\")]),_c('Loader')],1):_c('div',[(_vm.complete && _vm.autoAdvance)?_c('div',{staticClass:\"text-center\"},[(_vm.isVis)?_c('div',[(_vm.complete && _vm.currentActivityIndex < _vm.listShow.length)?_c('p',[_vm._v(\" \"+_vm._s(_vm.$t('review-and-next')))]):_vm._e(),(_vm.nextActivity[_vm.activityUrl])?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.nextActivity1}},[_vm._v(_vm._s(_vm.$t('next-button')))]):_vm._e()],1):_c('div',[_c('p',[_vm._v(\"Thank you for participating. Not eligible at this time!\")])])]):_vm._e(),_c('br'),_c('b-progress',{staticClass:\"mb-3\",attrs:{\"value\":_vm.progress,\"max\":100}}),(_vm.preambleText)?_c('div',{staticClass:\"preamble-text\"},[_c('strong',{domProps:{\"innerHTML\":_vm._s(_vm.preambleText)}},[_vm._v(_vm._s(_vm.preambleText))])]):_vm._e()],1),_c('transition-group',{attrs:{\"name\":\"list\",\"tag\":\"div\",\"mode\":\"in-out\"}},_vm._l((_vm.contextReverse),function(content,index){return _c('div',{key:content['@id']+'f'+ index,staticClass:\"mt-3 mb-3\"},[_c('transition',{key:'t'+content['@id'],attrs:{\"name\":\"list\"}},[(_vm.shouldShow[index])?_c('survey-item',{key:'c' + content['@id'],attrs:{\"item\":content,\"index\":_vm.contextReverse.length - index - 1,\"init\":_vm.responses[content['@id']],\"responses\":_vm.responses,\"selected_language\":_vm.selected_language,\"clientIp\":_vm.ipAddress,\"showPassOptions\":_vm.findOverallPassOptions,\"individualPassList\":_vm.individualPassList,\"reprotermsUrl\":_vm.reprotermsUrl},on:{\"skip\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 1, 0)},\"dontKnow\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 0, 1)},\"next\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 0)},\"setData\":_vm.setResponse,\"setScores\":_vm.setScore}}):_vm._e()],1)],1)}),0)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('b-card',{staticClass:\"text-center question mx-auto w-100\",style:(_vm.style),attrs:{\"border-variant\":_vm.variant,\"no-body\":_vm.ui === 'multipart' || _vm.ui === 'section'}},[_c('div',{staticClass:\"contextItem align-self-center center w-100\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[(_vm.status === 'ready' && _vm.ui !== 'multipart' && _vm.ui !== 'section')?_c('InputSelector',{attrs:{\"inputType\":_vm.ui,\"readOnly\":_vm.widgetType,\"title\":_vm.title,\"preamble\":_vm.itemPreamble,\"valueConstraints\":_vm.valueConstraints,\"fieldData\":_vm.fieldData,\"init\":_vm.init,\"responses\":_vm.responses,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"ipAddress\":_vm.clientIp,\"showPassOptions\":_vm.showPassOptions,\"showItemPassOptions\":_vm.itemAllow},on:{\"skip\":_vm.sendSkip,\"dontKnow\":_vm.sendDontKnow,\"next\":_vm.sendNext,\"valueChanged\":_vm.sendData}}):(_vm.status !== 'ready')?_c('div',{staticClass:\"loader\"},[_c('Loader')],1):(_vm.ui === 'multipart')?_c('multipart',{attrs:{\"progress\":_vm.mp_progress,\"responses\":_vm.mp_responses,\"srcUrl\":_vm.item['@id'],\"showPassOptions\":_vm.showPassOptions,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"ipAddress\":_vm.clientIp},on:{\"skip\":_vm.sendSkip,\"dontKnow\":_vm.sendDontKnow,\"next\":_vm.sendNext,\"valueChanged\":_vm.sendDataAndGoNext,\"saveResponse\":_vm.setMPResponse,\"saveScores\":_vm.setScore,\"updateProgress\":_vm.setMPProgress,\"clearResponses\":_vm.clearMPResponses}}):(_vm.ui === 'section')?_c('subactivity',{attrs:{\"progress\":_vm.mp_progress,\"responses\":_vm.mp_responses,\"srcUrl\":_vm.item['@id'],\"showPassOptions\":_vm.showPassOptions,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"ipAddress\":_vm.clientIp},on:{\"skip\":_vm.sendSkip,\"dontKnow\":_vm.sendDontKnow,\"next\":_vm.sendNext,\"valueChanged\":_vm.sendData,\"saveResponse\":_vm.setMPResponse,\"saveScores\":_vm.setScore,\"updateProgress\":_vm.setMPProgress,\"clearResponses\":_vm.clearMPResponses}}):_vm._e()],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"inputContent\"},[(_vm.preamble)?_c('div',{staticClass:\"lead scroll mb-3 pr-3 pl-3\"},[_c('p',{class:{'text-justify': _vm.inputType==='audioPassageRecord'},domProps:{\"innerHTML\":_vm._s(_vm.preamble)}},[_vm._v(_vm._s(_vm.preamble))])]):_vm._e(),(_vm.title)?_c('div',{staticClass:\"lead scroll mb-3 pr-3 pl-3\"},[_c('p',{class:{'text-justify': _vm.inputType==='audioPassageRecord'},domProps:{\"innerHTML\":_vm._s(_vm.title)}},[_vm._v(_vm._s(_vm.title))]),(_vm.valueConstraints.requiredValue)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"*\")]):_vm._e()]):_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('input-selector-alert'))+\" \")]),(_vm.inputType === 'radio')?_c('div',[_c('Radio',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioCheck')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioRecord')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioPassageRecord')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioImageRecord')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"fieldData\":_vm.fieldData,\"selected_language\":_vm.selected_language,\"init\":_vm.init,\"mode\":\"audioImageRecord\"},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioRecordNumberTask')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init,\"mode\":\"audioRecordNumberTask\"},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioRecordAudioTask')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init,\"fieldData\":_vm.fieldData,\"mode\":\"audioRecordAudioTask\"},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'audioRecordNoStop')?_c('div',[_c('AudioRecord',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init,\"mode\":\"audioRecordNoStop\"},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'text')?_c('div',[_c('TextInput',{attrs:{\"constraints\":_vm.valueConstraints,\"inputType\":_vm.inputType,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'textarea')?_c('div',[_c('TextArea',{attrs:{\"constraints\":_vm.valueConstraints,\"inputType\":_vm.inputType,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'pid')?_c('div',[_c('ParticipantId',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'email')?_c('div',[_c('EmailInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'timeRange')?_c('div',[_c('TimeRange',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"id\":'timeRange' + Math.floor(Math.random()*1000),\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'multitext')?_c('div',[_c('MultiTextInput',{attrs:{\"constraints\":_vm.valueConstraints,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'number')?_c('div',[_c('IntegerInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'float')?_c('div',[_c('FloatInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'range')?_c('div',[_c('RangeInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'date' || _vm.inputType === 'year')?_c('div',[_c('DateInput',{attrs:{\"constraints\":_vm.valueConstraints,\"inputType\":_vm.inputType,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'documentUpload')?_c('div',[_c('DocumentUpload',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'slider')?_c('div',[_c('SliderInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'selectCountry' || _vm.inputType === 'selectState'\n || _vm.inputType === 'selectLanguage' || _vm.inputType === 'select')?_c('div',[_c('SelectInput',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"inputType\":_vm.inputType,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'static' && _vm.readOnly)?_c('div',[_c('StaticReadOnly',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"result\":true,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'save')?_c('div',[_c('SaveData',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"ipAddress\":_vm.ipAddress,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'sign')?_c('div',[_c('StudySign',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"result\":true,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):(_vm.inputType === 'static')?_c('div',[_c('Static',{attrs:{\"constraints\":_vm.valueConstraints,\"selected_language\":_vm.selected_language,\"init\":_vm.init},on:{\"valueChanged\":_vm.sendData}})],1):_c('div',[_c('b-alert',{attrs:{\"show\":\"\"}},[_vm._v(\" no input type UI built for \\\"\"+_vm._s(_vm.inputType)+\"\\\" yet! \")])],1),(_vm.showPassOptions !== null || _vm.showItemPassOptions !== null)?_c('div',[((_vm.showItemPassOptions && _vm.showItemPassOptions['dontKnow']) || (_vm.showPassOptions && _vm.showPassOptions['dontKnow']))?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.dontKnow}},[_vm._v(\" \"+_vm._s(_vm.$t('dont-know'))+\" \")]):_vm._e(),((_vm.showItemPassOptions && _vm.showItemPassOptions['skip']) || (_vm.showPassOptions && _vm.showPassOptions['skip']))?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.skip}},[_vm._v(\" \"+_vm._s(_vm.$t('skip'))+\" \")]):_vm._e()],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"radioInput container ml-3 pl-3\"},[(_vm.isMultipleChoice)?_c('div',[_c('b-form',{on:{\"submit\":_vm.onSubmit}},[_c('b-form-group',{attrs:{\"label\":\"\"}},[_c('b-form-checkbox-group',{ref:\"checkboxbutton\",staticClass:\"text-left\",attrs:{\"stacked\":\"\",\"plain\":\"\"},model:{value:(_vm.checkboxSelected),callback:function ($$v) {_vm.checkboxSelected=$$v},expression:\"checkboxSelected\"}},_vm._l((_vm.options),function(opt){return _c('b-form-checkbox',{key:opt.value,staticClass:\"mb-3\",attrs:{\"value\":opt.value}},[_vm._v(\" \"+_vm._s(opt.text)+\" \")])}),1)],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1):_c('div',[(!_vm.isImageSelect)?_c('b-form-group',{attrs:{\"label\":\"\"}},[_c('b-form-radio-group',{ref:\"radiobutton\",staticClass:\"text-left\",attrs:{\"stacked\":\"\"},on:{\"change\":_vm.sendData},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}},_vm._l((_vm.options),function(opt){return _c('b-form-radio',{key:opt.value,staticClass:\"mb-3\",attrs:{\"value\":opt.value}},[_vm._v(\" \"+_vm._s(opt.text)+\" \")])}),1)],1):_c('div',{staticClass:\"text-center\"},[_c('vue-select-image',{ref:\"imageSelect\",attrs:{\"dataImages\":_vm.dataImages,\"selectedImages\":_vm.selectedImages,\"useLabel\":\"\"},on:{\"onselectimage\":_vm.onSelectImage}})],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{class:_vm.rootClass},[_c('ul',{class:_vm.rootClass + '__wrapper'},_vm._l((_vm.dataImagesLocal),function(dataImage,index){return _c('li',{key:index,class:_vm.rootClass + '__item'},[(!_vm.isMultiple)?_c('div',{class:_vm.classThumbnail[index],on:{\"click\":function($event){return _vm.onSelectImage(dataImage)}}},[_c('img',{class:_vm.rootClass + '__img',attrs:{\"src\":dataImage.src,\"alt\":dataImage.alt,\"height\":_vm.h,\"width\":_vm.w}}),(_vm.useLabel)?_c('label',{class:_vm.rootClass + '__lbl'},[_vm._v(\" \"+_vm._s(dataImage.alt)+\" \")]):_vm._e()]):_vm._e(),(_vm.isMultiple)?_c('div',{class:_vm.classThumbnailMultiple(dataImage.id),on:{\"click\":function($event){return _vm.onSelectMultipleImage(dataImage)}}},[_c('img',{class:_vm.rootClass + '__img',attrs:{\"src\":dataImage.src,\"alt\":dataImage.alt,\"height\":_vm.h,\"width\":_vm.w}}),(_vm.useLabel)?_c('label',{class:_vm.rootClass + '__lbl'},[_vm._v(\" \"+_vm._s(dataImage.alt)+\" \")]):_vm._e()]):_vm._e()])}),0)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SelectImage.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SelectImage.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SelectImage.vue?vue&type=template&id=5c20d894\"\nimport script from \"./SelectImage.vue?vue&type=script&lang=js\"\nexport * from \"./SelectImage.vue?vue&type=script&lang=js\"\nimport style0 from \"./SelectImage.vue?vue&type=style&index=0&id=5c20d894&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Radio.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Radio.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Radio.vue?vue&type=template&id=0fa1057c\"\nimport script from \"./Radio.vue?vue&type=script&lang=js\"\nexport * from \"./Radio.vue?vue&type=script&lang=js\"\nimport style0 from \"./Radio.vue?vue&type=style&index=0&id=0fa1057c&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('b-alert',{attrs:{\"show\":!_vm.supported}},[_vm._v(_vm._s(_vm.$t('audio-support-msg')))]),(_vm.supported)?_c('div',[(_vm.mode==='audioImageRecord')?_c('div',{staticClass:\"mb-3\"},[_c('img',{staticClass:\"img-fluid\",attrs:{\"src\":_vm.fieldData['http://schema.org/image'][0]['@id']}})]):_vm._e(),(_vm.mode==='audioRecordNumberTask')?_c('div',{staticClass:\"mb-3\"},[_c('strong',{staticStyle:{\"font-size\":\"30px\"}},[_vm._v(_vm._s(_vm.generateNumber))])]):_vm._e(),(_vm.mode==='audioRecordAudioTask')?_c('div',{staticClass:\"mb-3\"},[_c('audio',{attrs:{\"controls\":\"\"}},[_c('source',{attrs:{\"src\":_vm.getAudioSource,\"type\":\"audio/mpeg\"}}),_vm._v(\" Your browser does not support the audio element. \")])]):_vm._e(),(!_vm.isRecording && !_vm.hasRecording)?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.record}},[_vm._v(\" \"+_vm._s(_vm.$t('record-button'))+\" \")]):_vm._e(),(_vm.mode!='audioRecordNoStop')?_c('div',{staticClass:\"mb-3\"},[(_vm.isRecording)?_c('b-button',{on:{\"click\":_vm.finish}},[_vm._v(_vm._s(_vm.$t('stop-button')))]):_vm._e()],1):_vm._e(),(_vm.isRecording)?_c('div',[_c('small',[_vm._v(_vm._s(_vm.timeRemaining)+\" \"+_vm._s(_vm.$t('x-seconds-left')))])]):_vm._e(),(_vm.hasRecording && !_vm.isPlaying)?_c('b-button',{ref:\"play\",attrs:{\"variant\":\"success\"},on:{\"click\":_vm.play}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.$t('play-button'))+\" \")])]):_vm._e(),(_vm.hasRecording && _vm.isPlaying)?_c('b-button',{ref:\"play\",attrs:{\"variant\":\"secondary\"},on:{\"click\":_vm.pause}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.$t('pause-button'))+\" \")])]):_vm._e(),(_vm.hasRecording)?_c('div',{staticClass:\"mt-2\"},[_c('a',{attrs:{\"href\":\"\"},on:{\"click\":_vm.reset}},[_vm._v(_vm._s(_vm.$t('redo-recording')))])]):_vm._e()],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Audio.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Audio.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Audio.vue?vue&type=template&id=202c741d\"\nimport script from \"./Audio.vue?vue&type=script&lang=js\"\nexport * from \"./Audio.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"textInput\"},[_c('b-form',{ref:\"form\",on:{\"submit\":_vm.onSubmit}},[_c('b-row',[_c('b-col',{staticClass:\"col-4 col-md-4\",attrs:{\"lg\":\"4\"}},[_c('b-form-group',[_c('b-form-input',{attrs:{\"type\":\"text\"},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}})],1)],1),(_vm.hasUnit && Array.isArray(_vm.options))?_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('multiselect',{attrs:{\"options\":this.options,\"searchable\":false,\"show-labels\":false,\"allowEmpty\":false,\"placeholder\":\"unit\"},model:{value:(_vm.input2),callback:function ($$v) {_vm.input2=$$v},expression:\"input2\"}})],1):(_vm.hasUnit && !Array.isArray(_vm.options))?_c('div',[_c('p',{staticClass:\"singleUnit\"},[_vm._v(\" \"+_vm._s(_vm.options))])]):_vm._e()],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TextInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TextInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TextInput.vue?vue&type=template&id=b965e69c\"\nimport script from \"./TextInput.vue?vue&type=script&lang=js\"\nexport * from \"./TextInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./TextInput.vue?vue&type=style&index=0&id=b965e69c&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"textArea\"},[_c('b-form',{ref:\"form\",on:{\"submit\":_vm.onSubmit}},[_c('b-row',{staticClass:\"mt-2\"},[_c('b-col',[_c('b-form-textarea',{attrs:{\"id\":\"textarea-default\",\"rows\":\"10\"},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}})],1)],1),_c('br'),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TextArea.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TextArea.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TextArea.vue?vue&type=template&id=9ec21c34\"\nimport script from \"./TextArea.vue?vue&type=script&lang=js\"\nexport * from \"./TextArea.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"IntegerInput\"},[_c('b-form',{ref:\"form\",attrs:{\"novalidate\":true},on:{\"submit\":_vm.onSubmit}},[_c('b-row',[_c('b-col',{staticClass:\"col-4 col-md-4\",attrs:{\"lg\":\"4\"}},[_c('b-form-group',[_c('b-form-input',{ref:\"integerInput\",class:{'is-invalid': !_vm.isValidInt, 'is-valid': _vm.isValidInt},attrs:{\"placeholder\":\"value\"},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}}),_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(\" \"+_vm._s(_vm.$t('invalid-feedback-number'))+\" \")])],1)],1),(_vm.hasUnit && Array.isArray(_vm.options))?_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('multiselect',{attrs:{\"options\":this.options,\"searchable\":false,\"show-labels\":false,\"allowEmpty\":false,\"placeholder\":\"unit\"},model:{value:(_vm.input2),callback:function ($$v) {_vm.input2=$$v},expression:\"input2\"}})],1):(_vm.hasUnit && !Array.isArray(_vm.options))?_c('div',[_c('p',{staticClass:\"singleUnit\"},[_vm._v(\" \"+_vm._s(_vm.options))])]):_vm._e()],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./IntegerInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./IntegerInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./IntegerInput.vue?vue&type=template&id=07ce4cac\"\nimport script from \"./IntegerInput.vue?vue&type=script&lang=js\"\nexport * from \"./IntegerInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./IntegerInput.vue?vue&type=style&index=0&id=07ce4cac&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"FloatInput\"},[_c('b-form',{ref:\"form\",attrs:{\"novalidate\":true},on:{\"submit\":_vm.onSubmit}},[_c('b-row',[_c('b-col',{staticClass:\"col-4 col-md-4\",attrs:{\"lg\":\"4\"}},[_c('b-form-group',[_c('b-form-input',{ref:\"floatInput\",class:{'is-valid': _vm.isValidFloat},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}})],1)],1),(_vm.hasUnit && Array.isArray(_vm.options))?_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('multiselect',{attrs:{\"options\":this.options,\"searchable\":false,\"show-labels\":false,\"allowEmpty\":false,\"placeholder\":\"unit\"},model:{value:(_vm.input2),callback:function ($$v) {_vm.input2=$$v},expression:\"input2\"}})],1):(_vm.hasUnit && !Array.isArray(_vm.options))?_c('div',[_c('p',{staticClass:\"singleUnit\"},[_vm._v(\" \"+_vm._s(_vm.options))])]):_vm._e()],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FloatInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FloatInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./FloatInput.vue?vue&type=template&id=7fd2cef2\"\nimport script from \"./FloatInput.vue?vue&type=script&lang=js\"\nexport * from \"./FloatInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./FloatInput.vue?vue&type=style&index=0&id=7fd2cef2&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"RangeInput\"},[_c('b-form',{ref:\"form\",attrs:{\"novalidate\":true},on:{\"submit\":_vm.onSubmit}},[_c('b-row',[_c('b-col',{staticClass:\"col-4 col-md-4\",attrs:{\"lg\":\"4\"}},[_c('b-form-group',[_c('b-form-input',{ref:\"rangeInput\",class:{'is-valid': _vm.isValidFloat},attrs:{\"placeholder\":\"start\"},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}})],1)],1),_c('b-col',{staticClass:\"col-4 col-md-4\",attrs:{\"lg\":\"4\"}},[_c('b-form-group',[_c('b-form-input',{ref:\"rangeInput\",class:{'is-valid': _vm.isValidFloat},attrs:{\"placeholder\":\"end\"},model:{value:(_vm.input2),callback:function ($$v) {_vm.input2=$$v},expression:\"input2\"}})],1)],1),(_vm.hasUnit && Array.isArray(_vm.options))?_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('multiselect',{attrs:{\"options\":this.options,\"searchable\":false,\"show-labels\":false,\"allowEmpty\":false,\"placeholder\":\"unit\"},model:{value:(_vm.input3),callback:function ($$v) {_vm.input3=$$v},expression:\"input3\"}})],1):(_vm.hasUnit && !Array.isArray(_vm.options))?_c('div',[_c('p',{staticClass:\"singleUnit\"},[_vm._v(\" \"+_vm._s(_vm.options))])]):_vm._e()],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./RangeInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./RangeInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./RangeInput.vue?vue&type=template&id=5fe3f98e\"\nimport script from \"./RangeInput.vue?vue&type=script&lang=js\"\nexport * from \"./RangeInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./RangeInput.vue?vue&type=style&index=0&id=5fe3f98e&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"DateInput\"},[_c('datepicker',{attrs:{\"placeholder\":\"Select Date\",\"lang\":\"selected_language\",\"disabledDates\":_vm.dateParam.disabledDates,\"format\":_vm.customFormatter,\"minimumView\":_vm.inputType,\"maximumView\":'year',\"initialView\":_vm.inputType},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:\"input\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./YearInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./YearInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./YearInput.vue?vue&type=template&id=255640ea\"\nimport script from \"./YearInput.vue?vue&type=script&lang=js\"\nexport * from \"./YearInput.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"DocumentUpload\"},[_c('input',{attrs:{\"type\":\"file\"},on:{\"change\":_vm.onFileSelected}}),_c('button',{on:{\"click\":_vm.onSubmit}},[_vm._v(_vm._s(_vm.$t('upload-button')))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./DocumentUpload.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./DocumentUpload.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DocumentUpload.vue?vue&type=template&id=2d55df58\"\nimport script from \"./DocumentUpload.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentUpload.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"textInput\"},[_c('b-form',{on:{\"submit\":_vm.onSubmit}},[_c('b-row',[_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('b-input-group',[_c('b-form-input',{attrs:{\"placeholder\":\"first name\",\"required\":\"\"},model:{value:(_vm.input1),callback:function ($$v) {_vm.input1=$$v},expression:\"input1\"}})],1)],1),_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('b-input-group',[_c('b-form-input',{attrs:{\"placeholder\":\"middle name\"},model:{value:(_vm.input2),callback:function ($$v) {_vm.input2=$$v},expression:\"input2\"}})],1)],1),_c('b-col',{attrs:{\"lg\":\"4\"}},[_c('b-input-group',[_c('b-form-input',{attrs:{\"placeholder\":\"family name\",\"required\":\"\"},model:{value:(_vm.input3),callback:function ($$v) {_vm.input3=$$v},expression:\"input3\"}})],1)],1)],1),_c('br'),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./MultiTextInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./MultiTextInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./MultiTextInput.vue?vue&type=template&id=70b680c2\"\nimport script from \"./MultiTextInput.vue?vue&type=script&lang=js\"\nexport * from \"./MultiTextInput.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"SliderInput ml-3 mr-3 pl-3 pr-3\"},[_c('vue-slider',{attrs:{\"lazy\":true,\"data\":_vm.interval,\"marks\":true,\"process\":false},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:\"input\"}}),_c('b-row',{staticClass:\"mt-3 pt-3 pl-0 pr-0\"},[_c('div',{staticClass:\"col text-left pr-0 pl-0\"},[(_vm.getMinImageLabel)?_c('span',[_c('img',{staticClass:\"imgLabel\",attrs:{\"src\":_vm.getMinImageLabel}})]):_vm._e(),_c('p',[_vm._v(_vm._s(_vm.getMinLabel))])]),_c('div',{staticClass:\"col text-right pr-0 pl-0\"},[(_vm.getMaxImageLabel)?_c('span',[_c('img',{staticClass:\"imgLabel\",attrs:{\"src\":_vm.getMaxImageLabel}})]):_vm._e(),_c('p',[_vm._v(_vm._s(_vm.getMaxLabel))])])]),_c('b-form',{on:{\"submit\":_vm.sendData}},[_c('b-button',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SliderInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SliderInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SliderInput.vue?vue&type=template&id=503ba848\"\nimport script from \"./SliderInput.vue?vue&type=script&lang=js\"\nexport * from \"./SliderInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./SliderInput.vue?vue&type=style&index=0&id=503ba848&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"TimeRangeInput container ml-3 pl-3\"},[_c('b-row',{staticClass:\"mt-2 mb-2\"},[_c('b-col',{staticClass:\"mt-2 mb-2\"},[_vm._v(\" went to bed: \"+_vm._s(_vm.yesterday)+\" \"),_c('vue-timepicker',{attrs:{\"format\":\"hh:mm A\"},model:{value:(_vm.slept),callback:function ($$v) {_vm.slept=$$v},expression:\"slept\"}})],1),_c('b-col',{staticClass:\"mt-2 mb-2\"},[_vm._v(\" woke up: \"+_vm._s(_vm.today)+\" \"),_c('vue-timepicker',{attrs:{\"format\":\"hh:mm A\"},model:{value:(_vm.woke),callback:function ($$v) {_vm.woke=$$v},expression:\"woke\"}})],1)],1),(_vm.timeSlept != null)?_c('div',{staticClass:\"mt-2 mb-2\"},[(_vm.timeSlept < 0)?_c('div',{staticClass:\"mt-2 mb-2\"},[_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"danger\"}},[_vm._v(\"You can't sleep negative hours!\")])],1):_c('b-button',{on:{\"click\":_vm.sendData}},[_vm._v(\"Submit \"+_vm._s(_vm.timeSlept)+\" hours\")])],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TimeRange.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TimeRange.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TimeRange.vue?vue&type=template&id=54540c54\"\nimport script from \"./TimeRange.vue?vue&type=script&lang=js\"\nexport * from \"./TimeRange.vue?vue&type=script&lang=js\"\nimport style0 from \"./TimeRange.vue?vue&type=style&index=0&id=54540c54&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"SelectInput\"},[( _vm.inputType=== 'select' && this.constraints['http://schema.org/itemListElement'])?_c('multiselect',{attrs:{\"options\":this.options,\"searchable\":false,\"show-labels\":false,\"placeholder\":\"Pick a value\"},on:{\"input\":_vm.checkNotOtherAndSendData},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}}):_c('multiselect',{attrs:{\"id\":\"ajax\",\"placeholder\":\"Type to search\",\"options\":this.options,\"multiple\":_vm.multipleAllowed,\"searchable\":true,\"internal-search\":true,\"clear-on-select\":false,\"close-on-select\":true,\"options-limit\":300,\"limit\":5,\"limit-text\":_vm.limitText,\"max-height\":600,\"show-no-results\":false,\"hide-selected\":true},on:{\"input\":_vm.checkNotOtherAndSendData},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}},[_c('span',{attrs:{\"slot\":\"noResult\"},slot:\"noResult\"},[_vm._v(_vm._s(_vm.$t('select-invalid-query')))])]),(_vm.checkOther)?_c('div',{staticStyle:{\"display\":\"block\"},attrs:{\"id\":\"ifOther\"}},[_c('br'),_c('b-form-input',{attrs:{\"placeholder\":\"Please describe\"},on:{\"change\":_vm.sendData},model:{value:(_vm.otherInput),callback:function ($$v) {_vm.otherInput=$$v},expression:\"otherInput\"}})],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SelectInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SelectInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SelectInput.vue?vue&type=template&id=0d9d3932\"\nimport script from \"./SelectInput.vue?vue&type=script&lang=js\"\nexport * from \"./SelectInput.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"staticReadOnly\"},[(_vm.input)?_c('div',[_c('h4',[_vm._v(\" \"+_vm._s(_vm.input))]),_c('br'),_c('b-btn',{on:{\"click\":_vm.onSubmit}},[_vm._v(\" Done \")])],1):_c('div',[_c('b-alert',{attrs:{\"show\":\"\"}},[_vm._v(\" Parameter could not be retrieved at this time. Please contact \\\"\"+_vm._s(_vm.contact)+\"\\\" for further assistance. \")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StaticReadOnly.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StaticReadOnly.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./StaticReadOnly.vue?vue&type=template&id=3d72b5ce\"\nimport script from \"./StaticReadOnly.vue?vue&type=script&lang=js\"\nexport * from \"./StaticReadOnly.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"SaveData ml-3 mr-3 pl-3 pr-3\"},[(!_vm.isUploading && !_vm.hasData && !_vm.hasTimedOut)?_c('div',[(_vm.shouldUpload)?_c('div',[_c('p',[_vm._v(_vm._s(_vm.$t('save-data')))]),(_vm.downloadAndSubmit)?_c('b-button',{ref:\"upload\",attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.upload}},[_vm._v(\" \"+_vm._s(_vm.$t('download-and-submit-button'))+\" \")]):_c('b-button',{ref:\"upload\",attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.upload}},[_vm._v(\" \"+_vm._s(_vm.$t('upload-button'))+\" \")])],1):_c('div',[(_vm.exportOption)?_c('p',[_vm._v(_vm._s(_vm.$t('export-and-finish')))]):_c('p',[_vm._v(_vm._s(_vm.$t('finish')))]),_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.finish}},[_vm._v(\" \"+_vm._s(_vm.$t('finish-button'))+\" \")])],1)]):_vm._e(),(_vm.isUploading && _vm.percentCompleted >0 && _vm.showProgressBar)?_c('div',{staticClass:\"loader\"},[_c('p',[_vm._v(_vm._s(_vm.$t('upload-message')))]),_c('b-progress',{attrs:{\"max\":100,\"striped\":_vm.hasStripe}},[_c('b-progress-bar',{attrs:{\"value\":_vm.percentCompleted*100,\"label\":`${(_vm.percentCompleted * 100)}%`,\"animated\":\"\"}})],1)],1):(_vm.isUploading && _vm.percentCompleted === 0)?_c('div',[_c('p',[_vm._v(_vm._s(_vm.$t('prepare-upload')))]),_c('Loader')],1):_vm._e(),_c('b-modal',{ref:\"timeout-modal\",attrs:{\"ok-title\":\"Done\",\"ok-only\":\"\",\"title\":\"Uh-oh! Upload unsuccessful!\",\"no-close-on-esc\":\"\",\"no-close-on-backdrop\":\"\",\"hide-header-close\":\"\"},on:{\"ok\":_vm.timeoutOK},model:{value:(_vm.timeout),callback:function ($$v) {_vm.timeout=$$v},expression:\"timeout\"}},[(_vm.dataUploadPath)?_c('p',[_vm._v(\"Please submit your locally exported zip file \"),_c('a',{attrs:{\"href\":_vm.dataUploadPath,\"target\":\"_blank\"}},[_vm._v(\"here\")])]):_c('p',[_vm._v(\"Let researchers know with the \"),_c('b',[_vm._v(\"Help\")]),_vm._v(\" button or by email to \"+_vm._s(_vm.contact))])]),_c('div',{class:{ done: _vm.hasData},staticStyle:{\"width\":\"800px\",\"margin\":\"0 auto\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _vm._m(0)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"layer-preloader\"},[_c('div',{staticClass:\"loading\"},[_c('div',{staticClass:\"loader firstColor\"},[_c('div',{staticClass:\"loader secondColor\"},[_c('div',{staticClass:\"loader thirdColor\"})])])])])\n}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Loader.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Loader.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Loader.vue?vue&type=template&id=03dc3226\"\nimport script from \"./Loader.vue?vue&type=script&lang=js\"\nexport * from \"./Loader.vue?vue&type=script&lang=js\"\nimport style0 from \"./Loader.vue?vue&type=style&index=0&id=03dc3226&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SaveData.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SaveData.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SaveData.vue?vue&type=template&id=5c8fef01\"\nimport script from \"./SaveData.vue?vue&type=script&lang=js\"\nexport * from \"./SaveData.vue?vue&type=script&lang=js\"\nimport style0 from \"./SaveData.vue?vue&type=style&index=0&id=5c8fef01&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"docked-layout\"},[_c('section',[_c('div',{ref:\"consentDoc\",staticClass:\"consent-doc\"},[_vm._m(0),_c('section'),_vm._v(\" \"),_vm._m(1),_vm._m(2),_vm._m(3),_c('section',[_c('div',{staticClass:\"research container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step3.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"My data will be used for research as described in the study information (\"),_c('router-link',{attrs:{\"to\":\"/study/consent-review\"}},[_vm._v(\"https://\"),_c('wbr'),_vm._v(\"parkinsonmpower.\"),_c('wbr'),_vm._v(\"org/\"),_c('wbr'),_vm._v(\"consent\")]),_vm._v(\").\")],1)])]),_vm._m(4),_vm._m(5),_vm._m(6),_vm._m(7),_vm._m(8),_vm._m(9)]),_c('footer',[_c('form',{staticClass:\"slider\",attrs:{\"onsubmit\":\"return false\"}},[_c('div',{staticClass:\"slider-element animated\",class:{'slideOutLeft': _vm.showSharing}},[_c('div',{staticClass:\"inner\"},[_c('h1',[_vm._v(\"Please review and sign below if you want to join.\")]),_c('p',[_vm._v(\"I have read and understand the above information. All of my questions have been answered. I freely and willingly choose to take part in the mPower Progression Study. By signing this consent I have not given up any of my legal rights.\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.name),expression:\"name\"}],attrs:{\"placeholder\":\"Please type your full name here\"},domProps:{\"value\":(_vm.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.name=$event.target.value}}}),_c('div',{staticClass:\"buttons\"},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.reject}},[_vm._v(\" Disagree \")]),_c('b-button',{attrs:{\"variant\":\"success\",\"disabled\":_vm.canSubmit},on:{\"click\":_vm.accept}},[_vm._v(\" Accept \")])],1)])])])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('section',{staticClass:\"preamble-section\"},[_c('div',{staticClass:\"preamble container\"},[_c('div',[_c('h2',[_vm._v(\"mPower Progression Study\")]),_c('h3',[_vm._v(\"Consent and Authorization Contents\")])])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"assertion container\"},[_c('div',[_vm._v(\"I understand:\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"will-use container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step1.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"I will use the mPower app to answer questions and do short physical and cognitive activities. The app will help me track my symptoms, triggers, and medications.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"privacy container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step2.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"My study data will be encrypted and transferred from my phone. It will be stored on Sage Bionetworks’ secure cloud-based database.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"sharing-scope container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step4.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"I have the option to share my coded study data for future research. It is up to me. I can say yes or no.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"risks-benefits container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step5.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"The main risk of participating in the mPower Progression Study is to my privacy and confidentiality. This risk is low but not zero. The main benefit is seeing the trends in my data over time.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"unpaid container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step6.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"mPower Progression Study is a research study. The mPower app shouldn’t be used for diagnosis or treatment decision.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"not-medical container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step7.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"I will not get paid for participating in this study. I will not receive any profit from the use of my data in this or future research.\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"voluntary container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step8.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"I can withdraw (quit) at any time for any reason. There is no penalty if I withdraw .\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('section',[_c('div',{staticClass:\"contact container\"},[_c('object',{attrs:{\"data\":\"/static/images/Step9.svg\",\"type\":\"image/svg+xml\"}}),_c('div',[_vm._v(\"My contact information may be used to tell me about other studies.\")])])])\n}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StudySign.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StudySign.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./StudySign.vue?vue&type=template&id=7a01fc37&scoped=true\"\nimport script from \"./StudySign.vue?vue&type=script&lang=js\"\nexport * from \"./StudySign.vue?vue&type=script&lang=js\"\nimport style0 from \"./StudySign.vue?vue&type=style&index=0&id=7a01fc37&prod&lang=css\"\nimport style1 from \"./StudySign.vue?vue&type=style&index=1&id=7a01fc37&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7a01fc37\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"static\"})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Static.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Static.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Static.vue?vue&type=template&id=502a38fc\"\nimport script from \"./Static.vue?vue&type=script&lang=js\"\nexport * from \"./Static.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"IntegerInput\"},[_c('b-form',{ref:\"form\",attrs:{\"novalidate\":true},on:{\"submit\":_vm.onSubmit}},[_c('b-form-group',[_c('b-form-input',{ref:\"integerInput\",class:{'is-invalid': !_vm.isValidEmail, 'is-valid': _vm.isValidEmail},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:\"input\"}}),_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(\" \"+_vm._s(_vm.$t('invalid-email'))+\" \")])],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./EmailInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./EmailInput.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./EmailInput.vue?vue&type=template&id=7f14d4a5\"\nimport script from \"./EmailInput.vue?vue&type=script&lang=js\"\nexport * from \"./EmailInput.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"participantId\"},[_c('b-form',{on:{\"submit\":_vm.onSubmit}},[_c('b-form-group',[_c('b-form-input',{model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:\"input\"}})],1),_c('b-btn',{attrs:{\"type\":\"submit\"}},[_vm._v(_vm._s(_vm.$t('submit-button')))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ParticipantId.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ParticipantId.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ParticipantId.vue?vue&type=template&id=51933f6e\"\nimport script from \"./ParticipantId.vue?vue&type=script&lang=js\"\nexport * from \"./ParticipantId.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./InputSelector.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./InputSelector.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./InputSelector.vue?vue&type=template&id=3c657714\"\nimport script from \"./InputSelector.vue?vue&type=script&lang=js\"\nexport * from \"./InputSelector.vue?vue&type=script&lang=js\"\nimport style0 from \"./InputSelector.vue?vue&type=style&index=0&id=3c657714&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(!_vm.listShow.length)?_c('div',[_c('h1',[_vm._v(_vm._s(_vm.$t('loader'))+\"...\")])]):_c('div',[(_vm.preambleText)?_c('div',{staticClass:\"preamble-text mb-2\"},[_c('strong',[_vm._v(\" \"+_vm._s(_vm.preambleText)+\" (\"+_vm._s(_vm.currentIndex + 1)+\" / \"+_vm._s(_vm.context.length)+\")\")])]):_vm._e()]),_c('survey-item',{key:_vm.currentItem['@id'],attrs:{\"item\":_vm.currentItem,\"index\":_vm.currentIndex,\"init\":_vm.responses[_vm.currentItem['@id']],\"responses\":_vm.responses,\"selected_language\":_vm.selected_language,\"reprotermsUrl\":_vm.reprotermsUrl,\"score\":_vm.score,\"showPassOptions\":_vm.showPassOptions},on:{\"skip\":function($event){return _vm.nextQuestion(_vm.currentIndex, 1, 0)},\"dontKnow\":function($event){return _vm.nextQuestion(_vm.currentIndex, 0, 1)},\"next\":function($event){return _vm.nextQuestion(_vm.currentIndex, 0)},\"setData\":_vm.setResponse}}),(_vm.showPassOptions !== null )?_c('div',{staticClass:\"text-right mt-3\"},[_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.restart}},[_vm._v(_vm._s(_vm.$t('restart-button')))]),(_vm.showPassOptions['dontKnow'])?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.dontKnow}},[_vm._v(_vm._s(_vm.$t('dont-know')))]):_vm._e(),(_vm.showPassOptions['skip'])?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.skip}},[_vm._v(_vm._s(_vm.$t('skip')))]):_vm._e()],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./MultiPart.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./MultiPart.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./MultiPart.vue?vue&type=template&id=249d485d\"\nimport script from \"./MultiPart.vue?vue&type=script&lang=js\"\nexport * from \"./MultiPart.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(!_vm.listShow.length)?_c('div',[_c('h1',[_vm._v(_vm._s(_vm.$t('loader'))+\"...\")]),_c('Loader')],1):_c('div',[(_vm.preambleText)?_c('div',{staticClass:\"preamble-text mb-2\"},[_c('strong',[_vm._v(\" \"+_vm._s(_vm.preambleText)+\" \")])]):_vm._e()]),_c('transition-group',{attrs:{\"name\":\"list\",\"tag\":\"div\",\"mode\":\"in-out\"}},_vm._l((_vm.contextReverse),function(content,index){return _c('div',{key:content['@id']+index,staticClass:\"mt-3 mb-3\"},[_c('transition',{key:'t'+content['@id'],attrs:{\"name\":\"list\"}},[(_vm.shouldShow[index])?_c('survey-item',{key:'c' + content['@id'],attrs:{\"item\":content,\"index\":_vm.contextReverse.length - index - 1,\"init\":_vm.responses[content['@id']],\"responses\":_vm.responses,\"selected_language\":_vm.selected_language,\"showPassOptions\":_vm.showPassOptions,\"reprotermsUrl\":_vm.reprotermsUrl},on:{\"skip\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 1, 0)},\"dontKnow\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 0, 1)},\"next\":function($event){return _vm.nextQuestion(_vm.contextReverse.length - index - 1, 0)},\"setData\":_vm.setResponse}}):_vm._e()],1),_c('b-modal',{ref:\"invalid-token-modal\",refInFor:true,attrs:{\"ok-only\":\"\",\"title\":\"Helpline!\",\"hide-footer\":\"\",\"header-class\":\"justify-content-center\"},model:{value:(_vm.showModal),callback:function ($$v) {_vm.showModal=$$v},expression:\"showModal\"}},[_c('p',{staticClass:\"contact\"},[_vm._v(\"If you're thinking about suicide, are worried about a friend or loved one, or would like emotional support, there are resources available 24/7. Your call or text is confidential and free.\")]),_c('p',[_vm._v(\"Call the Suicide Prevention Lifeline in the United States:\")]),_c('p',[_vm._v(\"English: 1-800-273-8255\")]),_c('p',[_vm._v(\"Español: 1-888-628-9454\")]),_c('br'),_c('p',[_vm._v(\"Text the Crisis TextLine through SMS:\")]),_c('p',[_vm._v(\"US or Canada: 741741\")]),_c('p',{staticClass:\"contact\"},[_c('a',{attrs:{\"href\":\"https://www.messenger.com/login.php?next=https%3A%2F%2Fwww.messenger.com%2Ft%2F204427966369963%2F%3Fmessaging_source%3Dsource%253Apages%253Amessage_shortlink\",\"target\":\"_blank\"}},[_vm._v(\"Facebook Messenger\")])]),_c('p',[_vm._v(\"For other countries:\")]),_c('p',{staticClass:\"contact\"},[_c('a',{attrs:{\"href\":\"https://www.befrienders.org\",\"target\":\"_blank\"}},[_vm._v(\"www.befrienders.org\")])])])],1)}),0),(_vm.showPassOptions !== null )?_c('div',{staticClass:\"text-right mt-3\"},[_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.restart}},[_vm._v(\"Restart\")]),(_vm.showPassOptions['dontKnow'])?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.dontKnow}},[_vm._v(\"Don't Know\")]):_vm._e(),(_vm.showPassOptions['skip'])?_c('b-button',{attrs:{\"variant\":\"default\"},on:{\"click\":_vm.skip}},[_vm._v(\"Skip\")]):_vm._e()],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Section.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Section.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Section.vue?vue&type=template&id=34033bb9\"\nimport script from \"./Section.vue?vue&type=script&lang=js\"\nexport * from \"./Section.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SurveyItem.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SurveyItem.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SurveyItem.vue?vue&type=template&id=75865be5&scoped=true\"\nimport script from \"./SurveyItem.vue?vue&type=script&lang=js\"\nexport * from \"./SurveyItem.vue?vue&type=script&lang=js\"\nimport style0 from \"./SurveyItem.vue?vue&type=style&index=0&id=75865be5&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"75865be5\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Survey.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Survey.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Survey.vue?vue&type=template&id=6efaf872&scoped=true\"\nimport script from \"./Survey.vue?vue&type=script&lang=js\"\nexport * from \"./Survey.vue?vue&type=script&lang=js\"\nimport style0 from \"./Survey.vue?vue&type=style&index=0&id=6efaf872&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6efaf872\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"docked-layout\"},[(_vm.selectedContent)?_c('section',{staticClass:\"smooth-scroller\",staticStyle:{\"padding-top\":\"0\"},attrs:{\"id\":\"smooth-scroller\"}},[_c('vue-markdown',{attrs:{\"source\":_vm.selectedContent.content}})],1):_c('Loader'),_c('p',{staticClass:\"button-para\"},[_c('button',{staticClass:\"join-button\",on:{\"click\":_vm.doNext}},[_vm._v(_vm._s(_vm.$t('join-button')))])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Landing.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Landing.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Landing.vue?vue&type=template&id=7ef4112c&scoped=true\"\nimport script from \"./Landing.vue?vue&type=script&lang=js\"\nexport * from \"./Landing.vue?vue&type=script&lang=js\"\nimport style0 from \"./Landing.vue?vue&type=style&index=0&id=7ef4112c&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7ef4112c\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"docked-layout\"},[_c('section',[_c('div',{staticClass:\"container\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.step === 1),expression:\"step === 1\"}],staticClass:\"screen\"},[_c('div',{staticClass:\"panel\"},[_c('BridgeImage',{attrs:{\"src\":\"static/images/about%20the%20study.svg\"}}),_c('h3',[_vm._v(\"About the study\")]),_c('p',[_vm._v(\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eu sagittis leo, sit amet consectetur mi. Donec volutpat rutrum massa et luctus. Fusce ac dui quam. Nam a nibh porttitor, tincidunt libero id, condimentum velit. Praesent ultricies consectetur nulla vel pharetra. \")])],1)]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.step === 2),expression:\"step === 2\"}],staticClass:\"screen\"},[_c('div',{staticClass:\"panel\"},[_c('BridgeImage',{attrs:{\"src\":\"static/images/procedures%20activities.svg\"}}),_c('h3',[_vm._v(\"How does the study work?\")]),_vm._m(0)],1)]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.step === 3),expression:\"step === 3\"}],staticClass:\"screen\"},[_c('div',{staticClass:\"panel\"},[_c('BridgeImage',{attrs:{\"src\":\"static/images/how%20long%20does%20it%20last.svg\"}}),_c('h3',[_vm._v(\"How long does it last?\")]),_c('p',[_vm._v(\"We will ask you to participate for 2 weeks every three months. We would like you to participate for 2 years, but you can participate as long as you like.\")])],1)]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.step === 4),expression:\"step === 4\"}],staticClass:\"screen\"},[_c('div',{staticClass:\"panel\"},[_c('BridgeImage',{attrs:{\"src\":\"static/images/benefits%20and%20risks.svg\"}}),_c('h3',[_vm._v(\"What are the benefits and risks?\")]),_c('p',[_vm._v(\"You may not directly benefit from taking part but seeing trends in your data may be interesting to you. You may help researchers better understand PD.\")]),_c('p',[_vm._v(\"The main risk is to your privacy by an accidental release of your data. You may find some of the activities tiring and seeing your data may be stressful.\")])],1)])])]),_c('div',{staticClass:\"buttons\"},[_c('button',{attrs:{\"disabled\":this.step === 1},on:{\"click\":_vm.doBack}},[_vm._v(\"Back\")]),_c('button',{on:{\"click\":_vm.doNext}},[_vm._v(_vm._s(_vm.nextName))])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_vm._v(\" 1. Answer questions to determine if you are eligible for this study \"),_c('br'),_vm._v(\" 2. Complete the informed consent process & download the app\"),_c('br'),_vm._v(\" 3. Complete a one-time health survey\"),_c('br'),_vm._v(\" 4. Complete short physical and cognitive activities \"),_c('br'),_vm._v(\" 5. Track your symptoms, triggers, and medications \")])\n}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StudyIntroduction.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StudyIntroduction.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./StudyIntroduction.vue?vue&type=template&id=dd30dc8c&scoped=true\"\nimport script from \"./StudyIntroduction.vue?vue&type=script&lang=js\"\nexport * from \"./StudyIntroduction.vue?vue&type=script&lang=js\"\nimport style0 from \"./StudyIntroduction.vue?vue&type=style&index=0&id=dd30dc8c&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dd30dc8c\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue';\nimport Router from 'vue-router';\nimport Home from '@/components/Survey/';\nimport Landing from '@/components/Landing/';\nimport StudyIntroduction from '@/components/StudyIntroduction/';\nimport config from '../config';\n\nVue.use(Router);\n\nconst router = new Router({\n routes: [\n {\n path: '/',\n name: 'Landing',\n component: Landing,\n props: {\n startButton: config.startButton,\n },\n },\n {\n path: '/study/intro',\n name: StudyIntroduction,\n component: StudyIntroduction,\n },\n {\n path: '/activities/:id',\n name: 'Home',\n component: Home,\n },\n ],\n});\n\nrouter.beforeEach((to, from, next) => {\n \n if ((from.query.auth_token && !to.query.auth_token) \n || (from.query.uid && !to.query.uid)){\n if (from.path === to.path) {\n next(false);\n } else {\n next({\n path: to.path,\n query: from.query,\n });\n }\n } else {\n next();\n }\n\n})\n\nexport default router\n","import Vue from 'vue';\nimport Vuex from 'vuex';\nimport _ from 'lodash';\nimport jsonld from 'jsonld/dist/jsonld.min';\nimport config from '../config';\nimport axios from 'axios';\n\nwindow.jsonld = jsonld;\n\nVue.use(Vuex);\nconst state = {\n schema: {},\n progress: [],\n responses: [],\n responseMap: {}, // Stores the responses indexed by variable name\n exportResponses: [],\n scores: {},\n participantId: '',\n activities: [],\n activityIndex: null,\n storeReady: false,\n activityReady: false,\n termUrl: 'http://schema.repronim.org/',\n schemaType: '',\n answeredLanguage: '',\n participantUuid: '',\n expiryMinutes: null,\n queryParams: {},\n token: null,\n landing: [],\n hasExport: false\n};\n\nconst getters = {\n // eslint-disable-next-line\n getParticipantId(state) {\n return state.participantId;\n },\n // eslint-disable-next-line\n getschemaType(state) {\n return state.schemaType;\n },\n // eslint-disable-next-line\n getTermsUrl(state) {\n return state.termUrl;\n },\n // eslint-disable-next-line\n getLand(state) {\n return state.landing;\n },\n // eslint-disable-next-line\n srcUrl(state) {\n if (!_.isEmpty(state.schema) && state.activityIndex) {\n state.schemaType = (state.schema['@type'][0]).split('/').slice(-1)[0];\n if (state.schemaType === 'Activity') {\n return state.schema['@id']; // for rendering parameterized activities\n } return state.schema[`${state.termUrl}order`][0]['@list'][state.activityIndex]['@id'];\n }\n return null;\n },\n // eslint-disable-next-line\n readyForActivity(state) {\n return state.storeReady && state.activityReady;\n },\n // eslint-disable-next-line\n getAnsweredLanguage(state) {\n return state.answeredLanguage;\n },\n // eslint-disable-next-line\n getProtocolSchema(state) {\n return state.schema;\n },\n // eslint-disable-next-line\n getQueryParameters(state) {\n return state.queryParams;\n },\n // eslint-disable-next-line\n getAuthToken(state) {\n return state.token;\n },\n // eslint-disable-next-line\n getHasExport(state) {\n return state.hasExport;\n },\n // eslint-disable-next-line\n getExpiryTime(state) {\n return state.expiryMinutes;\n }\n};\n\nconst mutations = {\n // eslint-disable-next-line\n async setReprotermUrl(state, url) {\n axios.get(url).then((response) => {\n // console.log(67, response.data);\n const ctx = response.data['@context'];\n // const ctx = _.filter(response.data['@context'], c => c.includes('contexts/generic'));\n // eslint-disable-next-line no-unused-vars\n axios.get(ctx).then((resp) => {\n // console.log(68, resp.data);\n // state.termUrl = resp.data['@context'].reproterms;\n state.termUrl = 'http://schema.repronim.org/'; // change this\n });\n });\n },\n // eslint-disable-next-line\n async setBaseSchema(state, data) {\n state.schema = data[0];\n state.progress = _.map(data[0][`${state.termUrl}order`][0]['@list'], () => 0);\n state.responses = _.map(data[0][`${state.termUrl}order`][0]['@list'], () => ({}));\n state.exportResponses = _.map(data[0][`${state.termUrl}order`][0]['@list'], () => ([]));\n state.scores = _.map(data[0][`${state.termUrl}order`][0]['@list'], () => ({}));\n state.activities = _.map(data[0][`${state.termUrl}order`][0]['@list'], () => ({}));\n state.storeReady = true;\n if (state.schema['http://schema.repronim.org/landingPage']) {\n // console.log(82, 'store setbase', state.schema['http://schema.repronim.org/landingPage']);\n const landingPage = state.schema['http://schema.repronim.org/landingPage'];\n const landingContents = landingPage.map(async (lc) => {\n const landContent = {};\n const resp = await axios.get(lc['@id']);\n landContent['@language'] = lc[\"http://schema.org/inLanguage\"][0]['@value'];\n landContent.content = resp.data;\n return landContent;\n });\n state.landing = await Promise.all(landingContents);\n }\n },\n // eslint-disable-next-line\n setActivityIndex(state, idx) {\n state.activityIndex = idx;\n state.activityReady = true;\n },\n // eslint-disable-next-line\n setAuthToken(state, authToken) {\n state.token = authToken;\n },\n // eslint-disable-next-line\n setParticipantUUID(state, uid) {\n state.participantUuid = uid;\n },\n // eslint-disable-next-line\n setExpiryMinutes(state, minutes) {\n state.expiryMinutes = minutes;\n },\n // eslint-disable-next-line\n setQueryParameters(state, qp) {\n state.queryParams = qp;\n },\n // eslint-disable-next-line\n saveResponse(state, { key, value }) {\n // console.log(50, state.activityIndex, key, value);\n const val = value[0]; // response value\n const exportResponseActivity = value[1]; // response activity object for exporting data\n const exportResponse = value[2]; // response object for export data\n state.responses[state.activityIndex][key] = val;\n state.exportResponses[state.activityIndex].push(exportResponseActivity, exportResponse);\n // console.log(87, state.exportResponses);\n },\n // eslint-disable-next-line\n saveScores(state, { key, scoreObj }) {\n state.scores[state.activityIndex][key] = scoreObj;\n // _.map(scoreObj, (val, scoreKey) => {\n // console.log(58, val, scoreKey, state.scores);\n // state.scores[key][scoreKey] = val;\n // });\n },\n // eslint-disable-next-line\n saveParticipantId(state, uid) {\n state.participantId = uid;\n },\n // eslint-disable-next-line\n updateProgress(state, progress) {\n state.progress[state.activityIndex] = progress;\n },\n // eslint-disable-next-line\n setActivityData(state, resp) {\n state.activities[state.activityIndex].activity = resp[0];\n state.activities[state.activityIndex].listShow = [0];\n },\n // eslint-disable-next-line\n setListShow(state, arr) {\n state.activities[state.activityIndex].listShow = arr;\n },\n // eslint-disable-next-line\n // setLanguage(state, lang) {\n // state.selected_language = lang;\n // },\n // eslint-disable-next-line\n setAnsweredLanguage(state, lang) {\n state.answeredLanguage = lang;\n },\n // eslint-disable-next-line\n setActivityList(state, actList) {\n if (state.activities[state.activityIndex]) {\n state.activities[state.activityIndex].activityList = actList;\n }\n },\n // eslint-disable-next-line\n clearResponses(state, actIndex) {\n state.responses[actIndex] = {};\n state.progress[actIndex] = 0;\n },\n // eslint-disable-next-line\n setExport(state, value) {\n state.hasExport = value;\n },\n};\n\nconst actions = {\n async getReproTerm({ commit }, url) {\n commit('setReprotermUrl', url);\n },\n async getBaseSchema({ commit }, url) {\n commit('setBaseSchema', await (jsonld.expand(url || config.githubSrc)));\n },\n async setActivityIndex({ commit }, idx) {\n commit('setActivityIndex', idx);\n },\n saveParticipantId({ commit }, val) {\n commit('saveParticipantId', val);\n },\n saveResponse({ commit }, { key, value }) {\n commit('saveResponse', { key, value });\n },\n saveScores({ commit }, { key, scoreObj }) {\n commit('saveScores', { key, scoreObj });\n },\n updateProgress({ commit }, progress) {\n commit('updateProgress', progress);\n },\n // eslint-disable-next-line\n async getActivityData({ commit, getters }) {\n return commit('setActivityData', await jsonld.expand(getters.srcUrl));\n },\n updateListShow({ commit }, arr) {\n commit('setListShow', arr);\n },\n setAnsweredLanguage({ commit }, lang) {\n commit('setAnsweredLanguage', lang);\n },\n setActivityList({ commit }, actList) {\n commit('setActivityList', actList);\n },\n clearResponses({ commit }, actIndex) {\n commit('clearResponses', actIndex);\n },\n setParticipantUUID({ commit }, puid) {\n commit('setParticipantUUID', puid);\n },\n setAuthToken({ commit }, tok) {\n commit('setAuthToken', tok);\n },\n setExpiryMinutes({ commit }, mins) {\n commit('setExpiryMinutes', mins);\n },\n setQueryParameters({ commit }, queryParams) {\n commit('setQueryParameters', queryParams);\n },\n setExport({ commit }, value) {\n commit('setExport', value);\n }\n};\n\nexport default new Vuex.Store({\n state,\n getters,\n mutations,\n actions,\n});\n","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport Vue from 'vue';\nimport App from './App';\nimport router from './router';\nimport store from './store/store';\nimport i18n from './i18n';\n\nVue.config.productionTip = false;\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n store,\n router,\n components: { App },\n i18n,\n render: h => h(App)\n});\n","var map = {\n\t\"./af\": 5177,\n\t\"./af.js\": 5177,\n\t\"./ar\": 1509,\n\t\"./ar-dz\": 1488,\n\t\"./ar-dz.js\": 1488,\n\t\"./ar-kw\": 8676,\n\t\"./ar-kw.js\": 8676,\n\t\"./ar-ly\": 2353,\n\t\"./ar-ly.js\": 2353,\n\t\"./ar-ma\": 4496,\n\t\"./ar-ma.js\": 4496,\n\t\"./ar-ps\": 6947,\n\t\"./ar-ps.js\": 6947,\n\t\"./ar-sa\": 2682,\n\t\"./ar-sa.js\": 2682,\n\t\"./ar-tn\": 9756,\n\t\"./ar-tn.js\": 9756,\n\t\"./ar.js\": 1509,\n\t\"./az\": 5533,\n\t\"./az.js\": 5533,\n\t\"./be\": 8959,\n\t\"./be.js\": 8959,\n\t\"./bg\": 7777,\n\t\"./bg.js\": 7777,\n\t\"./bm\": 4903,\n\t\"./bm.js\": 4903,\n\t\"./bn\": 1290,\n\t\"./bn-bd\": 7357,\n\t\"./bn-bd.js\": 7357,\n\t\"./bn.js\": 1290,\n\t\"./bo\": 1545,\n\t\"./bo.js\": 1545,\n\t\"./br\": 1470,\n\t\"./br.js\": 1470,\n\t\"./bs\": 4429,\n\t\"./bs.js\": 4429,\n\t\"./ca\": 7306,\n\t\"./ca.js\": 7306,\n\t\"./cs\": 6464,\n\t\"./cs.js\": 6464,\n\t\"./cv\": 3635,\n\t\"./cv.js\": 3635,\n\t\"./cy\": 4226,\n\t\"./cy.js\": 4226,\n\t\"./da\": 3601,\n\t\"./da.js\": 3601,\n\t\"./de\": 7853,\n\t\"./de-at\": 6111,\n\t\"./de-at.js\": 6111,\n\t\"./de-ch\": 4697,\n\t\"./de-ch.js\": 4697,\n\t\"./de.js\": 7853,\n\t\"./dv\": 708,\n\t\"./dv.js\": 708,\n\t\"./el\": 4691,\n\t\"./el.js\": 4691,\n\t\"./en-au\": 3872,\n\t\"./en-au.js\": 3872,\n\t\"./en-ca\": 8298,\n\t\"./en-ca.js\": 8298,\n\t\"./en-gb\": 6195,\n\t\"./en-gb.js\": 6195,\n\t\"./en-ie\": 6584,\n\t\"./en-ie.js\": 6584,\n\t\"./en-il\": 5543,\n\t\"./en-il.js\": 5543,\n\t\"./en-in\": 9033,\n\t\"./en-in.js\": 9033,\n\t\"./en-nz\": 9402,\n\t\"./en-nz.js\": 9402,\n\t\"./en-sg\": 3004,\n\t\"./en-sg.js\": 3004,\n\t\"./eo\": 2934,\n\t\"./eo.js\": 2934,\n\t\"./es\": 7650,\n\t\"./es-do\": 838,\n\t\"./es-do.js\": 838,\n\t\"./es-mx\": 7730,\n\t\"./es-mx.js\": 7730,\n\t\"./es-us\": 6575,\n\t\"./es-us.js\": 6575,\n\t\"./es.js\": 7650,\n\t\"./et\": 3035,\n\t\"./et.js\": 3035,\n\t\"./eu\": 3508,\n\t\"./eu.js\": 3508,\n\t\"./fa\": 119,\n\t\"./fa.js\": 119,\n\t\"./fi\": 527,\n\t\"./fi.js\": 527,\n\t\"./fil\": 5995,\n\t\"./fil.js\": 5995,\n\t\"./fo\": 2477,\n\t\"./fo.js\": 2477,\n\t\"./fr\": 5498,\n\t\"./fr-ca\": 6435,\n\t\"./fr-ca.js\": 6435,\n\t\"./fr-ch\": 7892,\n\t\"./fr-ch.js\": 7892,\n\t\"./fr.js\": 5498,\n\t\"./fy\": 7071,\n\t\"./fy.js\": 7071,\n\t\"./ga\": 1734,\n\t\"./ga.js\": 1734,\n\t\"./gd\": 217,\n\t\"./gd.js\": 217,\n\t\"./gl\": 7329,\n\t\"./gl.js\": 7329,\n\t\"./gom-deva\": 2124,\n\t\"./gom-deva.js\": 2124,\n\t\"./gom-latn\": 3383,\n\t\"./gom-latn.js\": 3383,\n\t\"./gu\": 5050,\n\t\"./gu.js\": 5050,\n\t\"./he\": 1713,\n\t\"./he.js\": 1713,\n\t\"./hi\": 3861,\n\t\"./hi.js\": 3861,\n\t\"./hr\": 6308,\n\t\"./hr.js\": 6308,\n\t\"./hu\": 609,\n\t\"./hu.js\": 609,\n\t\"./hy-am\": 7160,\n\t\"./hy-am.js\": 7160,\n\t\"./id\": 4063,\n\t\"./id.js\": 4063,\n\t\"./is\": 9374,\n\t\"./is.js\": 9374,\n\t\"./it\": 8383,\n\t\"./it-ch\": 1827,\n\t\"./it-ch.js\": 1827,\n\t\"./it.js\": 8383,\n\t\"./ja\": 3827,\n\t\"./ja.js\": 3827,\n\t\"./jv\": 9722,\n\t\"./jv.js\": 9722,\n\t\"./ka\": 1794,\n\t\"./ka.js\": 1794,\n\t\"./kk\": 7088,\n\t\"./kk.js\": 7088,\n\t\"./km\": 6870,\n\t\"./km.js\": 6870,\n\t\"./kn\": 4451,\n\t\"./kn.js\": 4451,\n\t\"./ko\": 3164,\n\t\"./ko.js\": 3164,\n\t\"./ku\": 8174,\n\t\"./ku-kmr\": 6181,\n\t\"./ku-kmr.js\": 6181,\n\t\"./ku.js\": 8174,\n\t\"./ky\": 8474,\n\t\"./ky.js\": 8474,\n\t\"./lb\": 9680,\n\t\"./lb.js\": 9680,\n\t\"./lo\": 5867,\n\t\"./lo.js\": 5867,\n\t\"./lt\": 5766,\n\t\"./lt.js\": 5766,\n\t\"./lv\": 9532,\n\t\"./lv.js\": 9532,\n\t\"./me\": 8076,\n\t\"./me.js\": 8076,\n\t\"./mi\": 1848,\n\t\"./mi.js\": 1848,\n\t\"./mk\": 306,\n\t\"./mk.js\": 306,\n\t\"./ml\": 3739,\n\t\"./ml.js\": 3739,\n\t\"./mn\": 9053,\n\t\"./mn.js\": 9053,\n\t\"./mr\": 6169,\n\t\"./mr.js\": 6169,\n\t\"./ms\": 3386,\n\t\"./ms-my\": 2297,\n\t\"./ms-my.js\": 2297,\n\t\"./ms.js\": 3386,\n\t\"./mt\": 7075,\n\t\"./mt.js\": 7075,\n\t\"./my\": 2264,\n\t\"./my.js\": 2264,\n\t\"./nb\": 2274,\n\t\"./nb.js\": 2274,\n\t\"./ne\": 8235,\n\t\"./ne.js\": 8235,\n\t\"./nl\": 2572,\n\t\"./nl-be\": 3784,\n\t\"./nl-be.js\": 3784,\n\t\"./nl.js\": 2572,\n\t\"./nn\": 4566,\n\t\"./nn.js\": 4566,\n\t\"./oc-lnc\": 9330,\n\t\"./oc-lnc.js\": 9330,\n\t\"./pa-in\": 9849,\n\t\"./pa-in.js\": 9849,\n\t\"./pl\": 4418,\n\t\"./pl.js\": 4418,\n\t\"./pt\": 9834,\n\t\"./pt-br\": 8303,\n\t\"./pt-br.js\": 8303,\n\t\"./pt.js\": 9834,\n\t\"./ro\": 4457,\n\t\"./ro.js\": 4457,\n\t\"./ru\": 2271,\n\t\"./ru.js\": 2271,\n\t\"./sd\": 1221,\n\t\"./sd.js\": 1221,\n\t\"./se\": 3478,\n\t\"./se.js\": 3478,\n\t\"./si\": 7538,\n\t\"./si.js\": 7538,\n\t\"./sk\": 5784,\n\t\"./sk.js\": 5784,\n\t\"./sl\": 6637,\n\t\"./sl.js\": 6637,\n\t\"./sq\": 6794,\n\t\"./sq.js\": 6794,\n\t\"./sr\": 5719,\n\t\"./sr-cyrl\": 3322,\n\t\"./sr-cyrl.js\": 3322,\n\t\"./sr.js\": 5719,\n\t\"./ss\": 6000,\n\t\"./ss.js\": 6000,\n\t\"./sv\": 1011,\n\t\"./sv.js\": 1011,\n\t\"./sw\": 748,\n\t\"./sw.js\": 748,\n\t\"./ta\": 1025,\n\t\"./ta.js\": 1025,\n\t\"./te\": 1885,\n\t\"./te.js\": 1885,\n\t\"./tet\": 8861,\n\t\"./tet.js\": 8861,\n\t\"./tg\": 6571,\n\t\"./tg.js\": 6571,\n\t\"./th\": 5802,\n\t\"./th.js\": 5802,\n\t\"./tk\": 9527,\n\t\"./tk.js\": 9527,\n\t\"./tl-ph\": 9231,\n\t\"./tl-ph.js\": 9231,\n\t\"./tlh\": 1052,\n\t\"./tlh.js\": 1052,\n\t\"./tr\": 5096,\n\t\"./tr.js\": 5096,\n\t\"./tzl\": 9846,\n\t\"./tzl.js\": 9846,\n\t\"./tzm\": 1765,\n\t\"./tzm-latn\": 7711,\n\t\"./tzm-latn.js\": 7711,\n\t\"./tzm.js\": 1765,\n\t\"./ug-cn\": 8414,\n\t\"./ug-cn.js\": 8414,\n\t\"./uk\": 6618,\n\t\"./uk.js\": 6618,\n\t\"./ur\": 158,\n\t\"./ur.js\": 158,\n\t\"./uz\": 7609,\n\t\"./uz-latn\": 2475,\n\t\"./uz-latn.js\": 2475,\n\t\"./uz.js\": 7609,\n\t\"./vi\": 1135,\n\t\"./vi.js\": 1135,\n\t\"./x-pseudo\": 4051,\n\t\"./x-pseudo.js\": 4051,\n\t\"./yo\": 2218,\n\t\"./yo.js\": 2218,\n\t\"./zh-cn\": 2648,\n\t\"./zh-cn.js\": 2648,\n\t\"./zh-hk\": 1632,\n\t\"./zh-hk.js\": 1632,\n\t\"./zh-mo\": 1541,\n\t\"./zh-mo.js\": 1541,\n\t\"./zh-tw\": 304,\n\t\"./zh-tw.js\": 304\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 5358;","var map = {\n\t\"./en.json\": 4174,\n\t\"./es.json\": 6725\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 5432;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/reproschema-ui/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkschema_ui\"] = self[\"webpackChunkschema_ui\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(2451); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["module","exports","githubSrc","startButton","assetsPublicPath","backendServer","consent","showHelp","contact","emailSubject","render","_vm","this","_c","_self","attrs","bannerMessage","showTimer","staticClass","_v","_s","$t","_e","expiryTime","ref","sidebarHeader","directives","name","rawName","value","selected_language","expression","on","$event","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","multiple","setLang","_l","languageOptions","option","key","text","domProps","schemaOrder","ui","index","class","parseInt","activityIndex","visibility","setActivity","isProtocolUrl","progress","getDisplayName","allowExport","isAnswered","downloadZipData","toggleSidebar","getEmailData","query","$route","model","invalidToken","callback","$$v","accessDeniedPath","reprotermsUrl","srcUrl","responses","clientIp","getPId","checkAdvance","Object","values","nextActivity","updateProgress","saveResponse","saveScores","clearResponses","hasError","notIOS","permissionDemoPath","staticRenderFns","radius","stroke","normalizedRadius","style","strokeDashoffset","strokeColor","circumference","props","Number","String","data","Math","PI","computed","component","statusType","days","wordString","day","hours","minutes","seconds","message","timer","start","end","interval","created","JSON","parse","trans","mounted","Date","starttime","getTime","endtime","timerCount","setInterval","timeoutMessage","methods","now","distance","passTime","config","clearInterval","calcTime","running","console","log","upcoming","dist","floor","loadLocaleMessages","locales","require","messages","keys","forEach","matched","match","length","locale","Vue","use","VueI18n","process","fallbackLocale","BootstrapVue","slice","reverse","MediaStreamRecorder","getFilename","s","folders","split","N","filename","EmailDecoder","constructor","selector","initialize","mailto","hash","window","location","href","atob","bindEvents","document","querySelectorAll","email","addEventListener","getAttribute","components","circleProgress","Timer","sidebarActive","displayNames","labelMap","langMap","cache","reproterms2","protocolUrl","content","audioConstraints","audio","video","browserType","clientSpecs","audioStream","mediaRecorder","error","supported","checkPermission","undefined","navigator","mediaDevices","getUserMedia","constraints","webkitGetUserMedia","mozGetUserMedia","msGetUserMedia","Promise","resolve","reject","Error","then","event","i18n","$refs","sidebar","className","indexOf","getVariableName","variableMap","vmap","mapper","_","v","uri","variable","checkDisableBack","url","$router","push","checkProgressDiff","$store","dispatch","$forceUpdate","oldP","newP","setVisbility","needsVizUpdate","currentResponse","hasOwnProperty","used","scoreObj","activityUrl","state","schema","labelList","addProperties","v1","dName","d","isArray","evaluateString","string","responseMapper","output","output_modified","k","output_old","replaceAll","RegExp","Function","responseMap","keyArr","entries","unused","qId","key1","value1","joined_key","concat","rp","r","getters","getQueryParameters","q","outMapper","a","getPrefLabel","baseSchema","n","jsonld","resp","computeVisibilityCondition","cond","request","method","payload","headers","cacheKey","stringify","axios","qualified","visibilityChain","conditionList","condition","newConditionList","shift","visibilityConditions","Response","exportResponses","totalScores","scores","uId","participantId","totalResponse","response","formatData","jszip","JSZip","fileName","uuidv4","eachActivityList","activityData","itemObj","newObj","Blob","keyStrings","isAbout","rId","folder","file","generateAsync","type","myzipfile","saveAs","watch","params","id","handler","newC","deep","Bowser","userAgent","browser","lang","uid","get","expiry_time","auth_token","path","os","endDate","moment","getExpiryTime","replace","emailData","btoa","getschemaType","getTermsUrl","currentActivityProgress","order","u","langCodeList","l","langList","c","shouldUpload","getAuthToken","allowList","includes","schemaNameMapper","fname","currentActivityObj","varName","condition1","payloadList","p","item","getParticipantId","nextObj","i","listShow","complete","autoAdvance","isVis","currentActivityIndex","nextActivity1","preambleText","contextReverse","shouldShow","ipAddress","findOverallPassOptions","individualPassList","nextQuestion","setResponse","setScore","variant","status","widgetType","title","itemPreamble","valueConstraints","fieldData","init","showPassOptions","itemAllow","sendSkip","sendDontKnow","sendNext","sendData","mp_progress","mp_responses","sendDataAndGoNext","setMPResponse","setMPProgress","clearMPResponses","preamble","inputType","requiredValue","random","readOnly","showItemPassOptions","dontKnow","skip","isMultipleChoice","onSubmit","checkboxSelected","opt","isImageSelect","dataImages","selectedImages","onSelectImage","rootClass","dataImagesLocal","dataImage","isMultiple","classThumbnail","src","alt","h","w","useLabel","classThumbnailMultiple","onSelectMultipleImage","default","Boolean","activeClass","singleSelected","multipleSelected","imageId","baseClass","setInitialSelection","baseMultipleClass","isExistInArray","objectImage","assign","$emit","find","removeFromSingleSelected","removeFromMultipleSelected","dontFireEmit","resetMultipleSelection","answerLanguage","VueSelectImage","activeValueChoices","ac","image","imageSelect","$nextTick","$set","e","preventDefault","mode","staticStyle","generateNumber","getAudioSource","isRecording","hasRecording","record","finish","timeRemaining","isPlaying","play","pause","reset","recording","audioCtx","recordingTime","countdown","endPlay","stop","mimeType","self","ondataavailable","blobURL","URL","createObjectURL","blob","Audio","onended","AudioContext","webkitAudioContext","startsWith","input1","hasUnit","input2","Multiselect","form","unitCode","unit","isValidInt","isValid","num","parseFloat","isNaN","isInteger","isValidFloat","isFinite","selectedLanguageLabel","activeUnitOption","input3","areValidFloats","isValidRange","value2","input","num1","num2","dateParam","disabledDates","customFormatter","Datepicker","getFullYear","date","format","from","onFileSelected","selectedFile","files","b","first_name","middle_name","last_name","getMinImageLabel","getMinLabel","getMaxImageLabel","getMaxLabel","VueSlider","activeMinLabel","labels","choicesLength","activeMaxLabel","vcList","round","yesterday","slept","today","woke","timeSlept","hh","mm","A","VueTimepicker","startTime","sleptAt","endTime","wokeAt","res","diff","add","set","toISOString","difference","checkNotOtherAndSendData","multipleAllowed","limitText","slot","checkOther","otherInput","selectedCountries","isLoading","count","country","isUploading","hasData","hasTimedOut","downloadAndSubmit","upload","exportOption","percentCompleted","showProgressBar","hasStripe","timeoutOK","timeout","dataUploadPath","done","_m","zippedDataSize","slicedArray","sentPartCount","Loader","uploadFailed","getHasExport","uploadZipData","TOKEN","expiryMinutes","chunk_size","file_size","size","each_slice","next_slice","allRequests","formData","FormData","append","sendRetry","all","retries","backoff","config1","post","splice","completedPercent","toFixed","catch","setTimeout","showSharing","composing","canSubmit","accept","scope","result","isValidEmail","test","p_uuid","ParticipantId","StudySign","SaveData","Radio","AudioRecord","TextInput","TextArea","EmailInput","IntegerInput","FloatInput","RangeInput","DateInput","DocumentUpload","MultiTextInput","SliderInput","TimeRange","SelectInput","StaticReadOnly","Static","currentIndex","context","currentItem","score","restart","activity","parsedJSONLD","getData","answered","getVisibility","visibilityMapper","filenameParts","totalQ","currResponses","idx","body","scrollTop","documentElement","activePreamble","refInFor","showModal","VuejsDialog","t0","performance","itemUrl","d2","t1","uiUrl","origin","pathname","respActivityUuid","responseUuid","respData","getAnsweredLanguage","wasAttributedTo","participantUuid","subject_id","answeredObj","getScoring","scoreMapper","scoreFormula","scoreVariableName","checkAlertMessage","protocolSchema","getProtocolSchema","flag","addP","key_name","nextQuestionIdx","nextItem","isVisible","orderList","newList","criteria1","criteria2","findPassOptions","isSkip","isDontKnow","surveyStart","InputSelector","multipart","MultiPart","subactivity","Section","valueC","requireVal","flex","width","bodyStyle","padding","activeQuestion","answeredLanguage","getRequiredVal","rsp","e1","getValueConstraintsData","e2","processActivityData","pass","allow","sk","al","dk","onDownloadProgress","doSkip","SurveyItem","findIndividualPassOptions","initializeListShow","ap","eachItem","matchedObject","computeNewShow","exportVal","usedList","isAboutUrl","sectionItemKey","sectionItemValue","responseActivity","inLanguage","startedAtTime","endedAtTime","wasAssociatedWith","version","generated","valueAndDataExport","respMapper","mp_pr","visibleAct","actVisibility","nextIndex","readyForActivity","newVal","listContentRev","storeContext","activities","currentActivity","actList","getparticipantUUID","selectedContent","doNext","VueMarkdown","landingC","landing","doBack","step","nextName","totalSteps","appletURL","redirect","appletId","learnMore","consentViewer","toggleMax","Router","router","routes","Landing","StudyIntroduction","Home","beforeEach","to","next","Vuex","storeReady","activityReady","termUrl","schemaType","queryParams","token","hasExport","getLand","mutations","setReprotermUrl","ctx","setBaseSchema","landingPage","landingContents","async","landContent","lc","setActivityIndex","setAuthToken","authToken","setParticipantUUID","setExpiryMinutes","setQueryParameters","qp","exportResponseActivity","exportResponse","saveParticipantId","setActivityData","setListShow","arr","setAnsweredLanguage","setActivityList","activityList","actIndex","setExport","actions","getReproTerm","commit","getBaseSchema","getActivityData","updateListShow","puid","tok","mins","productionTip","el","store","App","webpackContext","req","webpackContextResolve","__webpack_require__","code","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","getter","__esModule","definition","defineProperty","enumerable","g","globalThis","obj","prop","Symbol","toStringTag","nmd","paths","children","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","bind","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file