-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbundle.js
More file actions
1 lines (1 loc) · 27.1 KB
/
bundle.js
File metadata and controls
1 lines (1 loc) · 27.1 KB
1
!function(n){var t={};function e(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return n[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=n,e.c=t,e.d=function(n,t,o){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:o})},e.r=function(n){Object.defineProperty(n,"__esModule",{value:!0})},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=16)}([function(n,t,e){"use strict";n.exports={baseURL:function(){window.location.hostname;return"http://localhost:3000"}}},function(n,t,e){"use strict";var o=e(0).baseURL(),i=function(n,t){var e=localStorage.getItem("token");return fetch(o+"/api/v1/questionnaires",{method:""+n,headers:{"Content-Type":"application/json",Authorization:e,Title:t}})},r=function(n){n=n.questionnaire_id;localStorage.setItem("questionnaire_id",n)},a=function(n){return n.forEach(function(n){s(n)})},s=function(n){$(".dashboard-box").prepend('<div class="questionnaire">\n <img src="./lib/stylesheets/form.png" alt="form icon">\n <div>'+n.title+'</div>\n <a href="builder.html"><button id="'+n.id+'" class="linkbutton view" type="button" name="view">View</button></a>\n <button id="'+n.id+'" class="linkbutton delete" type="button" name="delete">Delete</button>\n </div>')},c=function(n){return n.json().then(function(t){if(!n.ok){var e={status:n.status,statusTest:n.statusText,json:t};return Promise.reject(e)}return t})};n.exports={patchQuestionnaire:function(n,t){var e=localStorage.getItem("token"),i=localStorage.getItem("questionnaire_id");return fetch(o+"/api/v1/questionnaires/"+i,{method:""+n,headers:{"Content-Type":"application/json",Questions:""+JSON.stringify(t),Authorization:e}})},createQuestionnaire:function(n){i("POST",n).then(function(n){return c(n)}).then(function(n){r(n)}).catch(function(n){return console.error({error:n})})},getForms:function(){i("GET").then(function(n){return c(n)}).then(function(n){return a(n)}).catch(function(n){return console.error({error:n})})},deleteQuestionnaire:function(n){!function(n){var t=localStorage.getItem("token");fetch(o+"/api/v1/questionnaires/"+n,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:t}})}(n)}}},function(n,t,e){"use strict";var o=function(){return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return function(n,t){var e=[],o=!0,i=!1,r=void 0;try{for(var a,s=n[Symbol.iterator]();!(o=(a=s.next()).done)&&(e.push(a.value),!t||e.length!==t);o=!0);}catch(n){i=!0,r=n}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return e}(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=e(0).baseURL(),r=function(n){var t=localStorage.getItem("token"),e=localStorage.getItem("questionnaire_id");return fetch(i+"/api/v1/questionnaires/"+e+"/"+n,{method:"GET",headers:{"Content-Type":"application/json",Authorization:t}})},a=function(n){return n.forEach(function(n){s(n)})},s=function(n){$(".section.menu-items").append('<div class="selection" draggable="true">\n <div class="select dish">'+n.dish+'</div>\n <div class="select ingredients">'+n.ingredients+"</div>\n </div>")},c=function(n){n.forEach(function(n){u(n)}),p()},u=function(n){1==n.section_id?l(n):2==n.section_id?f(n):3==n.section_id&&d(n)},l=function(n){$(".section.demographic").append('<div class="selection" draggable="true">\n <div class="select question">'+n.text+'</div>\n <div class="select answer">'+n.answers+"</div>\n </div>")},f=function(n){$(".section.clinical").append('<div class="selection" draggable="true">\n <div class="select question">'+n.text+'</div>\n <div class="select answer">'+n.answers+"</div>\n </div>")},d=function(n){$(".section.exposure").append('<div class="selection" draggable="true">\n <div class="select question">'+n.text+'</div>\n <div class="select answer">'+n.answers+"</div>\n </div>")},p=function(){var n=$("body").find(".select.question");Object.entries(n).forEach(function(n,t){var e=o(n,2);e[0];e[1].prepend(t+1+". ")})},h=function(n){return n.forEach(function(n){m(n)})},m=function(n){$(".options.exposure").append('<button class="fillbutton" type="button" name="button" value="'+n.id+'">'+n.text+"</button>")},g=function(n){return n.forEach(function(n){b(n)})},b=function(n){$(".options.clinical").append('<button class="fillbutton" type="button" name="button" value="'+n.id+'">'+n.text+"</button>")},v=function(n){return n.forEach(function(n){x(n)})},x=function(n){$(".options.demographics").append('<button class="fillbutton" type="button" name="button" value="'+n.id+'">'+n.text+"</button>")},y=function(n){return n.json().then(function(t){if(!n.ok){var e={status:n.status,statusTest:n.statusText,json:t};return Promise.reject(e)}return t})};n.exports={getDemographics:function(){r("demographics").then(function(n){return y(n)}).then(function(n){return v(n)}).catch(function(n){return console.error({error:n})})},getClinicals:function(){r("clinicals").then(function(n){return y(n)}).then(function(n){return g(n)}).catch(function(n){return console.error({error:n})})},getExposures:function(){r("exposures").then(function(n){return y(n)}).then(function(n){return h(n)}).catch(function(n){return console.error({error:n})})},getQuestions:function(){r("questions").then(function(n){return y(n)}).then(function(n){return c(n)}).catch(function(n){return console.error({error:n})})},getMenuItems:function(){r("foods").then(function(n){return y(n)}).then(function(n){return a(n)}).catch(function(n){return console.error({error:n})})},postFoods:function(n){!function(n){var t=localStorage.getItem("token"),e=localStorage.getItem("questionnaire_id");fetch(i+"/api/v1/questionnaires/"+e+"/foods",{method:"POST",headers:{"Content-Type":"application/json",foods:""+JSON.stringify(n),Authorization:t}})}(n)},getUniversal:function(){(function(n){var t=localStorage.getItem("token");return fetch(i+"/api/v1/questionnaires/"+n+"/universal",{method:"GET",headers:{"Content-Type":"application/json",Authorization:t}})})(localStorage.getItem("questionnaire_id")).then(function(n){return y(n)}).then(function(n){var t=function(n){return n.map(function(n){return'<button class="fillbutton universal" type="button" name="button" value="'+n.id+'">'+n.text+"</button>"}).join("")}(n);$.alert(""+t,{autoClose:!1,type:"warning",title:"Do you want to add these standard questions to your questionnaire?",position:["center"]})})}}},function(n,t,e){"use strict";var o=e(0).baseURL(),i=function(n){return n.forEach(function(n){r(n)})},r=function(n){n.tags.forEach(function(t){a(t,n.name)})},a=function(n,t){0==n.options.length?$(".options."+t).children().append('<button class="fillbutton" type="button" value="'+n.id+'" name="button">'+n.name+"</button>"):($(".options."+t).append('<div class="category-box '+n.name+'"><p>'+n.name+"</p></div>"),n.options.forEach(function(t){$(".category-box."+n.name).append('<button class="fillbutton" type="button" value="'+t.tag_id+'" name="button">'+t.name+"</button>")}))},s=function(n){return n.json().then(function(t){if(!n.ok){var e={status:n.status,statusTest:n.statusText,json:t};return Promise.reject(e)}return t})};n.exports={getTags:function(){var n,t,e;(n="GET",e=localStorage.getItem("token"),fetch(o+"/api/v1/tags",{method:""+n,headers:{"Content-Type":"application/json",Authorization:e},body:JSON.stringify(t)})).then(function(n){return s(n)}).then(function(n){return i(n)}).catch(function(n){return console.error({error:n})})},postTags:function(n,t){var e=localStorage.getItem("token"),i=localStorage.getItem("questionnaire_id");return fetch(o+"/api/v1/questionnaires/"+i+"/intakes",{method:""+n,headers:{"Content-Type":"application/json",Tags:""+JSON.stringify(t),Authorization:e}})}}},function(n,t,e){"use strict";var o=function(){return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return function(n,t){var e=[],o=!0,i=!1,r=void 0;try{for(var a,s=n[Symbol.iterator]();!(o=(a=s.next()).done)&&(e.push(a.value),!t||e.length!==t);o=!0);}catch(n){i=!0,r=n}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return e}(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=e(0).baseURL(),r=function(n){return n.forEach(function(n){a(n)})},a=function(n){$(".menus").append('<div class="menu '+n.id+'">\n <h2>Menu Name: '+n.name+"</h2>\n <p>(click menu name to select all)</p>\n </div>"),n.foods.forEach(function(t){s(n.id,t)})},s=function(n,t){$("body").find(".menu."+n).append('<div class="food-button">\n <p>Item: '+t.name+"</p>\n <p>Ingredients: "+t.description+"</p>\n </div>")},c=function(n){return n.forEach(function(n){u(n)})},u=function(n){$(".options-restaurants").append('<div class="small-box restaurant" value='+n.venue_id+">\n <p>"+n.name+"</p>\n <p>"+n.address+"</p>\n </div>")},l=function(n){return n.json().then(function(t){if(!n.ok){var e={status:n.status,statusTest:n.statusText,json:t};return Promise.reject(e)}return t})};n.exports={getRestaurants:function(){var n=$(".restaurant-search").find("input"),t=[];Object.entries(n).forEach(function(n){var e=o(n,2),i=(e[0],e[1]);t.push(i.value)}),t.splice(-2,2),function(n,t,e){var o=localStorage.getItem("token");return fetch(i+"/api/v1/search/restaurants?near="+t+"&query="+e,{method:""+n,headers:{"Content-Type":"application/json",Authorization:o}})}("GET",""+t[1],""+t[0]).then(function(n){return l(n)}).then(function(n){return c(n)}).catch(function(n){return console.error({error:n})})},getMenus:function(){(function(n,t){var e=localStorage.getItem("token");return fetch(i+"/api/v1/search/menus",{method:""+n,headers:{"Content-Type":"application/json",venue_id:""+t,Authorization:e}})})("GET",$("body").find(".marked")[0].getAttribute("value")).then(function(n){return l(n)}).then(function(n){return r(n)}).catch(function(n){return console.error({error:n})})}}},function(n,t,e){"use strict";var o=e(0).baseURL(),i=function(n){var t=n.auth_token;localStorage.setItem("token",t)},r=function(n){return n.json().then(function(t){if(!n.ok){var e={status:n.status,statusTest:n.statusText,json:t};return Promise.reject(e)}return t})};n.exports={getToken:function(n,t){(function(n,t,e){return fetch(o+"/api/v1/authenticate?email="+t+"&password="+e,{method:""+n,headers:{Accept:"application/json",credentials:"same-origin"}})})("POST",n,t).then(function(n){r(n)}).then(function(n){return i(n)}).catch(function(n){return console.error({error:n})})}}},function(n,t,e){"use strict";var o=function(){return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return function(n,t){var e=[],o=!0,i=!1,r=void 0;try{for(var a,s=n[Symbol.iterator]();!(o=(a=s.next()).done)&&(e.push(a.value),!t||e.length!==t);o=!0);}catch(n){i=!0,r=n}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return e}(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=e(5),r=e(4),a=e(3),s=e(2),c=e(1);n.exports={flash:function(){$("#build").click(function(){s.getUniversal()})},clickDelete:function(){$(document).on("click",".delete",function(n){var t=this.id;$(n.target).parent().remove(),c.deleteQuestionnaire(t)})},clickView:function(){$(document).on("click",".view",function(){var n=this.id;localStorage.setItem("questionnaire_id",n)})},clearFormId:function(){$("#finish").on("click",function(){localStorage.removeItem("questionnaire_id")})},loginSubmit:function(){$("#login-button").on("click",function(){var n=document.getElementById("email").value,t=document.getElementById("password").value;i.getToken(n,t)})},logoutSubmit:function(){$("#logout-button").on("click",function(){localStorage.removeItem("token")})},populateForms:function(){c.getForms()},createForm:function(){$(".create-form").on("click",function(){var n=$("#form-title").val();c.createQuestionnaire(n)})},marked:function(){$("body").on("click",".fillbutton",function(){$(this).toggleClass("marked")})},markedSmallBox:function(){$("body").on("click",".small-box",function(){$(this).toggleClass("marked"),r.getMenus(),$(".header.menu-items").slideDown("fast"),$(".menus").slideDown("fast")})},markedFoodButton:function(){$("body").on("click",".food-button",function(){$(this).toggleClass("marked")})},markedAllMenuItems:function(){$("body").on("click",".menu h2",function(){$(this).siblings(".food-button").toggleClass("marked")})},etiologyIdentified:function(){$("#etiology-yes").on("click",function(){$("#etiology-no").removeClass("marked"),$(".symptom").hide(),$(".Etiology").slideDown("fast"),$(".options.symptom").find("button").removeClass("marked")}),$("#etiology-no").on("click",function(){$("#etiology-yes").removeClass("marked"),$(".Etiology").hide(),$(".symptom").slideDown("fast"),$(".options.Etiology").find("button").removeClass("marked")})},symptomOptions:function(){$(".options.symptom").find("button").one("click",function(){$(".Setting").slideDown("fast")})},etiologyOptions:function(){$("body").find(".options.Etiology").one("click","button",function(){$(".Setting").slideDown("fast")})},settingOptions:function(){$("body").find(".options.Setting").one("click","button",function(){$(".Transmission").slideDown("fast"),$(".one-link.intake").slideDown("fast")})},goBack:function(){$(".link.back").on("click",function(){window.history.back()})},searchRestaurants:function(){$(".restaurant-search-button").on("click",function(){r.getRestaurants(),$(".header.restaurants").slideDown("fast"),$(".options-restaurants").slideDown("fast")})},populateTags:function(){a.getTags()},sendIntake:function(){$(".link.next.intake").on("click",function(){var n=$("body").find(".marked"),t=[];Object.entries(n).forEach(function(n){var e=o(n,2),i=(e[0],e[1]);t.push(i.value)}),t.splice(-2,2),t.splice(0,1),a.postTags("POST",t)})},sendDemographics:function(){$(".link.next.demographic").on("click",function(){var n=$("body").find(".marked"),t=[];Object.entries(n).forEach(function(n){var e=o(n,2),i=(e[0],e[1]);t.push(i.value)}),t.splice(-2,2),c.patchQuestionnaire("PUT",t)})},sendClinicals:function(){$(".link.next.clinical").on("click",function(){var n=$("body").find(".marked"),t=[];Object.entries(n).forEach(function(n){var e=o(n,2),i=(e[0],e[1]);t.push(i.value)}),t.splice(-2,2),c.patchQuestionnaire("PUT",t)})},sendExposures:function(){$(".link.next.exposure").on("click",function(){var n=$("body").find(".marked"),t=[];Object.entries(n).forEach(function(n){var e=o(n,2),i=(e[0],e[1]);t.push(i.value)}),t.splice(-2,2),c.patchQuestionnaire("PUT",t)})},sendFoods:function(){$(".link.next.restaurant").on("click",function(){var n=[],t=$("body").find(".marked");t.splice(0,2),Object.entries(t).forEach(function(t){var e=o(t,2),i=(e[0],e[1]);n.push(i)}),n.splice(-2,2);var e=[];n.forEach(function(n){e.push([n.getElementsByTagName("p")[0].innerHTML,n.getElementsByTagName("p")[1].innerHTML])}),s.postFoods(e)})},addSelected:function(){$(document).on("click","#add-selected",function(){var n=$("body").find(".marked.universal"),t=[];Object.entries(n).forEach(function(n){var e=o(n,2),i=(e[0],e[1]);t.push(i.value)}),t.splice(-2,2),c.patchQuestionnaire("PUT",t)})},populateDemographics:function(){s.getDemographics()},populateClinicals:function(){s.getClinicals()},populateExposures:function(){s.getExposures()},populateQuestions:function(){s.getQuestions(),s.getMenuItems()}}},function(n,t){n.exports=function(n){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!n||"string"!=typeof n)return n;var e=t.protocol+"//"+t.host,o=e+t.pathname.replace(/\/[^\/]*$/,"/");return n.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(n,t){var i,r=t.trim().replace(/^"(.*)"$/,function(n,t){return t}).replace(/^'(.*)'$/,function(n,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?n:(i=0===r.indexOf("//")?r:0===r.indexOf("/")?e+r:o+r.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(n,t,e){var o,i,r={},a=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=o.apply(this,arguments)),i}),s=function(n){var t={};return function(n){if("function"==typeof n)return n();if(void 0===t[n]){var e=function(n){return document.querySelector(n)}.call(this,n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(n){e=null}t[n]=e}return t[n]}}(),c=null,u=0,l=[],f=e(7);function d(n,t){for(var e=0;e<n.length;e++){var o=n[e],i=r[o.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](o.parts[a]);for(;a<o.parts.length;a++)i.parts.push(v(o.parts[a],t))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(v(o.parts[a],t));r[o.id]={id:o.id,refs:1,parts:s}}}}function p(n,t){for(var e=[],o={},i=0;i<n.length;i++){var r=n[i],a=t.base?r[0]+t.base:r[0],s={css:r[1],media:r[2],sourceMap:r[3]};o[a]?o[a].parts.push(s):e.push(o[a]={id:a,parts:[s]})}return e}function h(n,t){var e=s(n.insertInto);if(!e)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=l[l.length-1];if("top"===n.insertAt)o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.insertBefore(t,e.firstChild),l.push(t);else if("bottom"===n.insertAt)e.appendChild(t);else{if("object"!=typeof n.insertAt||!n.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(n.insertInto+" "+n.insertAt.before);e.insertBefore(t,i)}}function m(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n);var t=l.indexOf(n);t>=0&&l.splice(t,1)}function g(n){var t=document.createElement("style");return void 0===n.attrs.type&&(n.attrs.type="text/css"),b(t,n.attrs),h(n,t),t}function b(n,t){Object.keys(t).forEach(function(e){n.setAttribute(e,t[e])})}function v(n,t){var e,o,i,r;if(t.transform&&n.css){if(!(r=t.transform(n.css)))return function(){};n.css=r}if(t.singleton){var a=u++;e=c||(c=g(t)),o=k.bind(null,e,a,!1),i=k.bind(null,e,a,!0)}else n.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(e=function(n){var t=document.createElement("link");return void 0===n.attrs.type&&(n.attrs.type="text/css"),n.attrs.rel="stylesheet",b(t,n.attrs),h(n,t),t}(t),o=function(n,t,e){var o=e.css,i=e.sourceMap,r=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||r)&&(o=f(o));i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([o],{type:"text/css"}),s=n.href;n.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,e,t),i=function(){m(e),e.href&&URL.revokeObjectURL(e.href)}):(e=g(t),o=function(n,t){var e=t.css,o=t.media;o&&n.setAttribute("media",o);if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}.bind(null,e),i=function(){m(e)});return o(n),function(t){if(t){if(t.css===n.css&&t.media===n.media&&t.sourceMap===n.sourceMap)return;o(n=t)}else i()}}n.exports=function(n,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var e=p(n,t);return d(e,t),function(n){for(var o=[],i=0;i<e.length;i++){var a=e[i];(s=r[a.id]).refs--,o.push(s)}n&&d(p(n,t),t);for(i=0;i<o.length;i++){var s;if(0===(s=o[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete r[s.id]}}}};var x,y=(x=[],function(n,t){return x[n]=t,x.filter(Boolean).join("\n")});function k(n,t,e,o){var i=e?"":o.css;if(n.styleSheet)n.styleSheet.cssText=y(t,i);else{var r=document.createTextNode(i),a=n.childNodes;a[t]&&n.removeChild(a[t]),a.length?n.insertBefore(r,a[t]):n.appendChild(r)}}},function(n,t,e){n.exports=e.p+"8810db825f77c760eb816c9b1b9c5911.png"},function(n,t,e){n.exports=e.p+"a7a65bad96b6c72d21859e81ad765c02.otf"},function(n,t,e){n.exports=e.p+"ef5a32c267adadd7f5ebaa8f89e62b45.otf"},function(n,t){n.exports=function(n){var t=[];return t.toString=function(){return this.map(function(t){var e=function(n,t){var e=n[1]||"",o=n[3];if(!o)return e;if(t&&"function"==typeof btoa){var i=(a=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),r=o.sources.map(function(n){return"/*# sourceURL="+o.sourceRoot+n+" */"});return[e].concat(r).concat([i]).join("\n")}var a;return[e].join("\n")}(t,n);return t[2]?"@media "+t[2]+"{"+e+"}":e}).join("")},t.i=function(n,e){"string"==typeof n&&(n=[[null,n,""]]);for(var o={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(o[r]=!0)}for(i=0;i<n.length;i++){var a=n[i];"number"==typeof a[0]&&o[a[0]]||(e&&!a[2]?a[2]=e:e&&(a[2]="("+a[2]+") and ("+e+")"),t.push(a))}},t}},function(n,t){n.exports=function(n){return"string"!=typeof n?n:(/^['"].*['"]$/.test(n)&&(n=n.slice(1,-1)),/["'() \t\n]/.test(n)?'"'+n.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':n)}},function(n,t,e){var o=e(13);(n.exports=e(12)(!1)).push([n.i,'@font-face {\n font-family: "Maven-light";\n src: url('+o(e(11))+'); }\n\n@font-face {\n font-family: "Maven-heavy";\n src: url('+o(e(10))+'); }\n\nbody, html {\n margin: 0px;\n height: 100%;\n color: #1F2232;\n font-family: "Maven-heavy", Arial, Helvetica, sans-serif;\n font-size: 18px; }\n\n.main {\n display: flex;\n flex-direction: column;\n text-align: center; }\n\n.header {\n font-size: 22px;\n background-color: #075290;\n color: white; }\n\n.subheader {\n background-color: #a8e2f9; }\n\n.options {\n display: flex;\n justify-content: center;\n flex-wrap: wrap; }\n\n.options-restaurants {\n display: flex;\n flex-wrap: wrap;\n justify-content: center; }\n\n.small-box {\n display: flex;\n flex-direction: column;\n border: 3px solid #a8e2f9;\n background-color: white;\n cursor: pointer;\n padding: 5px 20px;\n margin: 10px 20px;\n letter-spacing: 1px;\n font-size: 14px;\n color: #1F2232;\n font-family: Arial; }\n\n.category-box {\n display: flex;\n flex-wrap: wrap;\n flex-direction: column; }\n\n.category-box-big {\n display: flex;\n flex-wrap: wrap;\n justify-content: center; }\n\nbutton {\n border: 3px solid #a8e2f9;\n background-color: white;\n cursor: pointer;\n padding: 5px 20px;\n margin: 10px 20px;\n letter-spacing: 1px;\n font-size: 14px;\n color: #1F2232;\n font-family: Arial;\n width: 230px; }\n\nbutton:focus {\n outline: 0; }\n\n.one-link {\n margin-top: 20px;\n display: flex;\n justify-content: flex-end; }\n\n.links {\n margin-top: 20px;\n display: flex;\n justify-content: space-between; }\n\n.link {\n background-color: #075290;\n color: white;\n text-transform: uppercase;\n font-size: 20px; }\n\n.link:hover {\n background-color: #05365f;\n color: white; }\n\n.welcome-box {\n display: flex;\n flex-direction: column;\n background-color: #71d0f5;\n margin-top: 20vh;\n max-height: 180px; }\n\n.welcome-box-heading {\n display: flex;\n justify-content: center; }\n .welcome-box-heading h2 {\n color: white;\n text-shadow: 1px 1px #596475;\n font-size: 50px;\n font-weight: 1500;\n padding: 5px; }\n .welcome-box-heading p {\n margin-top: 40px;\n align-self: center;\n padding: 5px; }\n\n.login {\n display: flex;\n justify-content: center;\n padding-bottom: 20px;\n align-items: center; }\n .login .login-box {\n display: flex;\n padding: 0px 5px 0px 5px;\n align-items: center; }\n\n.section {\n display: flex;\n flex-direction: column; }\n\n.questions {\n display: flex;\n flex-direction: column; }\n\n.selection {\n display: flex;\n justify-content: space-between;\n cursor: pointer;\n padding: 5px 20px;\n margin: 10px 20px;\n letter-spacing: 1px;\n font-size: 14px;\n color: #1F2232;\n background-color: #ececec;\n font-family: Arial; }\n\n.select {\n padding: 20px;\n max-width: 600px; }\n\n.menus {\n display: flex;\n flex-wrap: wrap;\n justify-content: center; }\n\n.menu {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px; }\n .menu h2 {\n cursor: pointer; }\n\n.food-button {\n display: flex;\n flex-direction: column;\n border: 3px solid #a8e2f9;\n background-color: white;\n cursor: pointer;\n padding: 5px 20px;\n margin: 10px 20px;\n letter-spacing: 1px;\n font-size: 10px;\n color: #1F2232;\n font-family: Arial;\n max-width: 200px; }\n\n.marked {\n background-color: #075290;\n color: white; }\n\n.index {\n background-image: url('+o(e(9))+");\n background-repeat: no-repeat;\n height: 100%;\n background-size: cover;\n background-position: center; }\n\n.start {\n margin-top: 220px;\n background-color: white;\n color: #1F2232; }\n\n.dashboard {\n display: flex;\n justify-content: space-between;\n align-items: center; }\n .dashboard p {\n flex-basis: 30%; }\n\n.dashboard-box {\n display: flex; }\n\n.questionnaire {\n margin: 20px;\n padding: 10px;\n display: flex;\n flex-direction: column;\n align-items: center; }\n .questionnaire img {\n max-height: 200px; }\n .questionnaire button {\n max-width: 130px;\n align-items: center;\n margin: 2px; }\n .questionnaire input {\n height: 30px; }\n\n.new {\n background-color: #D2F2ED; }\n .new a {\n display: flex;\n flex-direction: column;\n align-items: center;\n text-decoration: none; }\n\n.new:hover {\n background-color: #a8e2f9; }\n\n.linkbutton:hover {\n background-color: #075290;\n color: white;\n border: 3px solid #D2F2ED; }\n\n.linkbutton:active {\n color: #D2F2ED; }\n\n.flash {\n display: flex;\n flex-direction: column;\n padding: 15px;\n background-color: #075290;\n color: white;\n border: 4px solid #1F2232; }\n\n.universal-questions {\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n align-self: center;\n max-height: 400px; }\n\n.special {\n background-color: #a8e2f9;\n border: 3px solid #D2F2ED; }\n\n.special:hover {\n background-color: #596475; }\n",""])},function(n,t,e){var o=e(14);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(8)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){"use strict";e(15);var o=e(6),i=location.pathname.split("/").slice(-1)[0];$(document).ready(function(){r(i),$(".Etiology").hide(),$(".symptom").hide(),$(".Setting").hide(),$(".Transmission").hide(),$(".one-link.intake").hide(),$(".header.restaurants").hide(),$(".options-restaurants").hide(),$(".header.menu-items").hide(),$(".menus").hide(),o.flash(),o.clickDelete(),o.clickView(),o.clearFormId(),o.loginSubmit(),o.logoutSubmit(),o.createForm(),o.etiologyIdentified(),o.symptomOptions(),o.etiologyOptions(),o.settingOptions(),o.goBack(),o.searchRestaurants(),o.marked(),o.markedSmallBox(),o.markedFoodButton(),o.markedAllMenuItems(),o.sendIntake(),o.sendDemographics(),o.sendClinicals(),o.sendExposures(),o.sendFoods(),o.addSelected()});var r=function(n){"intake.html"===n||"intake"===n?o.populateTags():"demographics.html"===n||"demographics"===n?o.populateDemographics():"clinical.html"===n||"clinical"===n?o.populateClinicals():"exposures.html"===n||"exposures"===n?o.populateExposures():"builder.html"===n||"builder"===n?o.populateQuestions():"dashboard.html"===n||"dashboard"===n?o.populateForms():"review.html"!==n&&"review"!==n||o.populateQuestions()}}]);