PageSourceSearch

https://www.rarediseaseadvisor.com/wp-content/plugins/hm-clinical-…/dist/js/query-form.min.js?ver=2.0.11

js rarediseaseadvisor.com collected 2026-10-02 09:52:14 UTC 7,947 bytes, 3 lines download raw bytes

1/*! For license information please see query-form.min.js.LICENSE.txt */
2(()=>{function e(){var r,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function c(e,o,a,i){var c=o&&o.prototype instanceof u?o:u,s=Object.create(c.prototype);return t(s,"_invoke",function(e,t,o){var a,i,c,u=0,s=o||[],d=!1,v={p:0,n:0,v:r,a:f,f:f.bind(r,4),d:function(e,t){return a=e,i=0,c=r,v.n=t,l}};function f(e,t){for(i=e,c=t,n=0;!d&&u&&!o&&n<s.length;n++){var o,a=s[n],f=v.p,y=a[2];e>3?(o=y===t)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=r):a[0]<=f&&((o=e<2&&f<a[1])?(i=0,v.v=t,v.n=a[1]):f<y&&(o=e<3||a[0]>t||t>y)&&(a[4]=e,a[5]=t,v.n=y,i=0))}if(o||e>1)return l;throw d=!0,t}return function(o,s,y){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,y),i=s,c=y;(n=i<2?r:c)||!d;){a||(i?i<3?(i>1&&(v.n=-1),f(i,c)):v.n=c:v.v=c);try{if(u=2,a){if(i||(o="next"),n=a[o]){if(!(n=n.call(a,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,i<2&&(i=0)}else 1===i&&(n=a.return)&&n.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=r}else if((n=(d=v.n<0)?c:e.call(t,v))!==l)break}catch(e){a=r,i=1,c=e}finally{u=1}}return{value:n,done:d}}}(e,a,i),!0),s}var l={};function u(){}function s(){}function d(){}n=Object.getPrototypeOf;var v=[][a]?n(n([][a]())):(t(n={},a,function(){return this}),n),f=d.prototype=u.prototype=Object.create(v);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,t(e,i,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=d,t(f,"constructor",d),t(d,"constructor",s),s.displayName="GeneratorFunction",t(d,i,"GeneratorFunction"),t(f),t(f,i,"Generator"),t(f,a,function(){return this}),t(f,"toString",function(){return"[object Generator]"}),(e=function(){return{w:c,m:y}})()}function t(e,r,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},t(e,r,n,o)}function r(e,t,r,n,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}document.addEventListener("DOMContentLoaded",function(){var t,n,o,a=document.body.className,i=!1;a.includes("multiple-query-form-template")&&(i=!0);var c,l,u=null!==(c=null===(l=window)||void 0===l||null===(l=l.Cookies)||void 0===l?void 0:l.get("hmNpiId"))&&void 0!==c?c:null,s=window.clinicalQueryData?window.clinicalQueryData:[],d=null!==(t=s.articleId)&&void 0!==t?t:null,v=null,f=function(){var e,t,r;if(null===(e=window)||void 0===e||null===(e=e.hmUtils)||void 0===e||!e.getUserData)return null;var n=window.hmUtils.getUserData();return null!==(t=null==n||null===(r=n.subscriber)||void 0===r?void 0:r.subscriberId)&&void 0!==t?t:null}(),y=null===(n=window.hmUtils)||void 0===n?void 0:n.getUserProfileData(),p=null!==(o=null==y?void 0:y.sub)&&void 0!==o?o:null,w=function(){return!navigator||Boolean(navigator.doNotTrack||navigator.globalPrivacyControl||navigator.msDoNotTrack||window.doNotTrack)},g=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(window.hmLog){var o={eventType:"Clinical Query Logs",logLevel:r,articleUrl:location.href,articleId:d?parseInt(d):null,oracleCookieId:null===(t=window.hmUtils)||void 0===t?void 0:t.getOracleCookieId(),doNotTrackBrowserSetting:w(),message:e};if(n&&n.querySelector){var a=n.querySelector(".quiz-id");a&&(o.quizId=a.value)}window.hmLog.sendToNewRelic(o,!0)}else console.warn("hmLog not available - analytics data not sent")};i&&s.totalPages>1&&(v=function(){var e=window.clinicalQueryData||{},t=e.articleId;if(t){var r;try{r=1!==parseInt(e.currentPage)?JSON.parse(localStorage.getItem("quizData")):null}catch(e){r=null}r&&r.articleId===t?r.currentPage=e.currentPage:r={articleId:t,visited:[],currentPage:e.currentPage,totalPages:e.totalPages,correctCount:0};try{localStorage.setItem("quizData",JSON.stringify(r))}catch(e){var n="Failed to save quiz data to localStorage: ".concat(e.message);console.error(n),g(n,"error")}return r}}(),v.totalPages===v.currentPage)&&(document.querySelector(".cq-header-text").innerHTML="You answered ".concat(v.correctCount,"/").concat(v.totalPages-1," questions correctly."),document.querySelector(".final-results-wrapper").classList.add("results-"+["zero","one","two","three","four","five","six"][v.correctCount]));try{var m=function(){var t,n=(t=e().m(function t(r,n){var o,a,i;return e().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,o={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},e.n=1,fetch(n.action,o);case 1:if(!(a=e.v).ok){e.n=2;break}return e.a(2,Promise.resolve("Quiz was submitted successfully"));case 2:return e.a(2,Promise.reject("Quiz failed to submit - ".concat(a.status," : ").concat(a.statusText)));case 3:return e.p=3,i=e.v,e.a(2,Promise.reject("Quiz failed to submit - ".concat(i)))}},t,null,[[0,3]])}),function(){var e=this,n=arguments;return new Promise(function(o,a){var i=t.apply(e,n);function c(e){r(i,o,a,c,l,"next",e)}function l(e){r(i,o,a,c,l,"throw",e)}c(void 0)})});return function(e,t){return n.apply(this,arguments)}}(),h=document.querySelectorAll(".quiz-form"),b=h.length,S=0;h.forEach(function(e){e.addEventListener("submit",function(t){S++,t.preventDefault();
2var r={answers:[],npi:u,subscriberId:f,OracleCookieId:window.hmUtils&&window.hmUtils.getOracleCookieId(),articleId:d,articleURL:location.href,doNotTrackBrowserSetting:w(),userId:p},n=e.nextElementSibling;n.classList.add("submitted"),n.style.display="block";var o,a=document.querySelector(".wysiwyg"),c=document.querySelector(".references");if(c&&S===b&&!i){var l=c.cloneNode(!0);a.append(l),l.style.display="block"}e.style.display="none";for(var s=e.querySelector(".row-count").value,y=0,h=1;h<=s;h++){var q=e.querySelector(".question-"+h),I=e.getElementsByClassName("question-answer-"+h),k=Array.prototype.filter.call(I,function(e){return e.checked})[0],P=e.getElementsByClassName("question-correct-answer-"+h),T=Array.prototype.filter.call(P,function(e){return"true"===e.value})[0],O=n.querySelector(".correct-answer-text-"+h);if(void 0!==k&&void 0!==T){var C=n.querySelector(".your-answer-"+h),N=n.querySelector(".correct-answer-"+h),L=n.querySelector(".incorrect-answer-"+h);C.innerHTML=k.dataset.value,r.answers.push({questionId:parseInt(q.dataset.id),answerId:parseInt(k.value),correct:!1}),k.dataset.value===T.dataset.id?(N.style.display="block",y++,r.answers[r.answers.length-1].correct=!0):(L.style.display="block",O.innerHTML="<b>Correct Answer: </b>"+T.dataset.id)}}n.querySelector(".answered-correct").innerText=y,i&&(v.visited.includes(parseInt(v.currentPage))||(r.answers[0].correct&&v.correctCount++,v.visited.push(parseInt(v.currentPage)),localStorage.setItem("quizData",JSON.stringify(v)))),r.answers.forEach(function(e){e.correct});try{m(r,e).then(function(e){o=e}).catch(function(e){o=e}).finally(function(){!function(e,t){if(window.hmLog){var r=function(e,t){var r;return{eventType:"Clinical Query Logs",quizId:e.querySelector(".quiz-id").value,articleUrl:location.href,articleId:parseInt(d),oracleCookieId:null===(r=window.hmUtils)||void 0===r?void 0:r.getOracleCookieId(),doNotTrackBrowserSetting:w(),quizResponse:JSON.stringify(t)}}(t,e);window.hmLog.sendToNewRelic(r,!0)}else console.warn("hmLog not available - analytics data not sent")}(o,e)});var z=document.querySelector(".wp-block-image"),U=document.querySelector(".wp-block-separator");z&&(z.style.display="none"),U&&(U.style.display="none")}catch(t){var j="Data not set: ".concat(t.message);console.error(j,t),g(j,"error",e)}})})}catch(e){var q="Unable to send data: ".concat(e.message);console.error(q,e),g(q,"error")}})})();
3//# sourceMappingURL=query-form.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.