/* Minification failed. Returning unminified contents.
(25,5204-5205): run-time error JS1195: Expected expression: >
(25,5223-5224): run-time error JS1004: Expected ';': )
(44,559-560): run-time error JS1195: Expected expression: >
(44,577-578): run-time error JS1004: Expected ';': )
(44,647-648): run-time error JS1004: Expected ';': :
(44,710-711): run-time error JS1004: Expected ';': {
(44,712-713): run-time error JS1195: Expected expression: ,
(44,810-811): run-time error JS1004: Expected ';': {
(44,812-813): run-time error JS1195: Expected expression: ,
(44,900-901): run-time error JS1004: Expected ';': {
(44,902-903): run-time error JS1195: Expected expression: ,
(44,988-989): run-time error JS1004: Expected ';': {
(44,998-999): run-time error JS1002: Syntax error: }
(44,1032-1033): run-time error JS1002: Syntax error: }
(44,1084-1093): run-time error JS1197: Too many errors. The file might not be a JavaScript file: Questions
(44,989-997): run-time error JS1018: 'return' statement outside of function: return!0
 */
!function ClassDefinition(){var e=!0,s=!1,t=function getNewState(t,o,i,n){var r=WP.DOM.Browser.isMobile&&(WP.DOM.Browser.isIPhone||WP.DOM.Browser.isIPad||WP.DOM.Browser.isIPod),u=WP.DOM.Browser.isMobile;switch(t.type){case"focusin":return function handleFocusIn(s,t,o){return s||o&&(t._clickToDismiss=!0),e}(i,n,r);case"focusout":return relTarget=t.relatedTarget,0===o.has(relTarget).length?(n._clickToDismiss=!1,s):void 0;case"mouseenter":return function handleMouseEnter(s,t,o){return t&&(s._suppressMouseOut=!0),o||(s._clickToDismiss=!0),e}(n,r,u);case"mouseleave":return n._suppressMouseOut?void 0:(n._clickToDismiss=!1,s);case"keyup":return function handleKeyUp(e,t,o){if(thisKey=e.key.toUpperCase(),"ESCAPE"===thisKey||"ESC"===thisKey)return t._clickToDismiss=!1,s}(t,n);case"click":return function handleClick(t,o,i){return o&&(t._suppressMouseOut=!1),i&&!0===t._clickToDismiss?(t._clickToDismiss=!1,s):(t._clickToDismiss=!0,e)}(n,r,u);default:return}};$$WP.Common=$$WP.Common||{};var o=function DismissableHoverViewBinder(t){this.WP$Common$ViewBinder(["blur","keyup","focus","click","mouseleave","mouseenter"],[t]),this._statePropertyName=t,this._hovered=e,this._unhovered=s,this._clickToDismiss=!1,this._suppressMouseOut=!1};o.prototype={_statePropertyName:null,_hovered:null,_unhovered:null,_clickToDismiss:null,_suppressMouseOut:null,_onPropertyChanged:function _onPropertyChanged(e,s){s.to===this._unhovered?this.getBoundElements(e).removeClass("hover"):s.to===this._hovered&&this.getBoundElements(e).addClass("hover")},_onSyncModelToDOM:function _onSyncModelToDOM(e){e[this._statePropertyName]===this._hovered?this.getBoundElements(e).addClass("hover"):this.getBoundElements(e).removeClass("hover")},_onDomEvent:function _onDomEvent(e,s,o){var i,n;i=e[this._statePropertyName],void 0!==(n=t(o,s,i,this))&&i!==n&&e.setProperty(this._statePropertyName,n),function shouldPreventDefault(e){return"keyup"!==e.type}(o)&&o.preventDefault()}},$$WP.Common.DismissableHoverViewBinder=o,o.extend($$WP.Common.ViewBinder,"WP$Common$DismissableHoverViewBinder")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$Common$DismissableHoverViewBinder(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2018-2022 Epic Systems Corporation */
!function WP$UI$InfoBubble$definition(){var e=$$WP.Common.ModelCollection,n=null,t=null,i=[{propertyNames:"PopupVisible",storeAs:"set"}],o=["PopupVisible"],l=function WP$UI$InfoBubble(l){l.BubbleLabelledBy&&"string"!=typeof l.BubbleLabelledBy&&(l.BubbleLabelledBy=""),l.BubbleLabel&&"string"!=typeof l.BubbleLabel&&!l.BubbleLabel.string&&(l.BubbleLabel=""),this.WP$Common$Model(l),null===n&&(n=new e(i,o)),null===t&&(t=new $$WP.UI.InfoBubbleViewBinder),$$WPUtil.IsNullOrEmpty(this.AnchorText)&&$$WPUtil.IsNullOrEmpty(this.Image)&&$$WP.Debug.logError("InfoBubble requested with neither an image nor a text anchor.",!0),$$WPUtil.IsNullOrEmpty(this.BubbleText)&&$$WP.Debug.logError("InfoBubble requested without any text for the popup.",!0),this.PopupVisible=!1,n.add(this),t.bindModel(this)};l.prototype={s_dataMembers:["AnchorText","BubbleLabel","BubbleLabelledBy","BubbleText","BubbleTitle","DisableHtmlEncoding","Image","UseSvgImage"],AnchorText:null,BubbleLabelledBy:null,BubbleLabel:null,BubbleText:null,BubbleTitle:null,DisableHtmlEncoding:null,Image:null,UseSvgImage:null,PopupVisible:null,ViewBinderId:function WP$UI$InfoBubble$ViewBinderId(){return t.ViewBinderId}},l.SimpleInfoBubble=function WP$UI$InfoBubble$simpleInfoBubble(e,n,t,i){return new l({BubbleText:e,DisableHtmlEncoding:n,Image:"images/info.png",BubbleLabelledBy:t,BubbleLabel:i})},l.SimpleTextInfoBubble=function WP$UI$InfoBubble$simpleTextInfoBubble(e,n,t){return new l({AnchorText:e,BubbleText:n,DisableHtmlEncoding:t})},$$WP.UI=$$WP.UI||{},$$WP.UI.InfoBubble=l,l.extend($$WP.Common.Model,"WP$UI$InfoBubble")}(),function WP$UI$InfoBubbleViewBinder$definition(){var e=function WP$UI$InfoBubbleViewBinder(){this.WP$Common$DismissableHoverViewBinder("PopupVisible")};e.prototype={_onPropertyChanged:function WP$UI$InfoBubbleViewBinder$_onPropertyChanged(e,n){n.from===this._hovered?this.hidePopup(this.getBoundElements(e)):n.to===this._hovered&&this.showPopup(this.getBoundElements(e)),this.WP$Common$DismissableHoverViewBinder$_onPropertyChanged(e,n)},_onSyncModelToDOM:function WP$UI$InfoBubbleViewBinder$_onSyncModelToDOM(e){this.WP$Common$DismissableHoverViewBinder$_onSyncModelToDOM(e),e[this._statePropertyName]===this._hovered?this.showPopup(this.getBoundElements(e)):this.hidePopup(this.getBoundElements(e))},_onDomEvent:function WP$UI$InfoBubbleViewBinder$_onDomEvent(e,n,t){this.WP$Common$DismissableHoverViewBinder$_onDomEvent(e,n,t)},showPopup:function(e){var n,t,i,o,l;i=e.find(".infoBubbleTarget"),o=e.find(".infoBubblePopup"),l=$$WPUtil.getPopupParent(o).boxModel(!1).width,e.safeAttr("data-positioned-width")!==l&&(n=$$WPUtil.positionElementNear(i,o),t=i.offset(),n.top-=t.top,n.left-=t.left,o.css({left:n.left+"px",top:n.top+"px"}),e.safeAttr("data-positioned-width",l)),o.safeAttr("aria-hidden",!1),i.safeAttr("aria-pressed",!0)},hidePopup:function(e){var n,t;n=e.find(".infoBubblePopup"),t=e.find(".infoBubbleTarget"),n.safeAttr("aria-hidden",!0),t.safeAttr("aria-pressed",!1)}},$$WP.UI=$$WP.UI||{},$$WP.UI.InfoBubbleViewBinder=e,e.extend($$WP.Common.DismissableHoverViewBinder,"WP$UI$InfoBubbleViewBinder")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$InfoBubble(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright (c) Epic Systems Corporation 2016-2018 */
!function WP$Questions$QuestionViewBinder$definition(){var e=function WP$Questions$QuestionViewBinder(e,n){var t,i=new Array("input","blur");for(Array.isArray(n)||(n=[n]),t=0;t<n.length;t++)i.push(n[t]);this.WP$Common$ViewBinder(i,[e])};e.prototype={bindAllModels:function(e){for(var n=0;n<e.length;n++)if(this.bindModel(e[n]),101===e[n].QuestionType||106===e[n].QuestionType)for(var t=0;t<e[n].GroupQuestions.Models.length;t++)this.bindModel(e[n].GroupQuestions.Models[t])},_onPropertyChanged:function WP$Questions$QuestionViewBinder$_onPropertyChanged(e,n){"OtherSelected"===n.propertyName&&this.getBoundElements(e).trigger($.Event("otherOptionToggled"))},_onSyncModelToDOM:function WP$Questions$QuestionViewBinder$_onSyncModelToDOM(e){this.WP$Common$ViewBinder$_onSyncModelToDOM(e)},_onDomEvent:function WP$Questions$QuestionViewBinder$_onDomEvent(e,n,t,i){null===e||"function"!=typeof e._updateAnswerFromDOM||i||e._updateAnswerFromDOM(n,t),$afe.jq(document).trigger("resetDrawingOffset"),t.preventDefault()}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.QuestionViewBinder=e,e.extend($$WP.Common.ViewBinder,"WP$Questions$QuestionViewBinder")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$Questions$QuestionViewBinder(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2018-2023 Epic Systems Corporation */
!function ClassDefinition(){$$WP.Utilities.guaranteeExistence($$WP,"Questions");$$WP.Questions.CustomListOptionStyle={Text:1,TextWithImage:2,Image:3},$$WP.Questions.GroupQuestionDisplayStyle={SingleColumn:1,TwoColumn:2,ThreeColumn:3,FourColumn:4,TableSingleColumn:5,TableTwoColumn:7,NumericInputFirstTable:8}}();;
!function ClassDefinition(){$$WP.Utilities.guaranteeExistence($$WP,"Questions");$$WP.Questions.QuestionTypeEnum={SearchTerm:7,Question:100,Group:101,Drawing:102,FamilyHistory:103,PatientSatisfaction:104,PatientSatisfactionGroup:106}}();;
!function ClassDefinition(){$$WP.Utilities.guaranteeExistence($$WP,"Questions");$$WP.Questions.ResponseTypeEnum={Text:1,Date:2,Time:3,Numeric:4,Networked:5,CustomList:6,CategoryINI:7,YesNo:8,TimeWithUnits:14,Upload:19,FamilyHistory:20}}();;
/*! Copyright 2017-2020 Epic Systems Corporation */
!function ClassDefinition(){$$WP.Utilities.guaranteeExistence($$WP,"Questions");var e=function Choice(e){this.WP$Common$Model(e)},t=[{propertyNames:"ID",storeAs:"set"}],o=["ID"],n=[];e.prototype={s_dataMembers:["Index","Text","IsSelected","ImagePath"],Text:null,Index:null,IsSelected:!1,ImagePath:null,convertToCoreChoiceModel:function WP$Questions$Choice$convertToCoreChoiceModel(){var e={};return e.Index=this.Index,e}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.Choice=e,$$WP.Questions.Choice.createChoiceCollection=function WP$Questions$ChoiceCollection$createChoiceCollection(e){var s,i,$,c;if(s=new $$WP.Questions.ChoiceCollection(t,o,n),e){for(s.openChangeBatch(),i=0;i<e.length;i++)$=e[i],c=new $$WP.Questions.Choice($),s.add(c);s.closeChangeBatch()}return s},e.extend($$WP.Common.Model,"WP$Questions$Choice")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$Choice(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017 Epic Systems Corporation */
!function WP$Questions$ChoiceCollection$definition(){var e=function WP$Questions$ChoiceCollection(e,o,t){this.WP$Common$ModelCollection(e,o,t)};e.prototype={convertToCoreChoiceArray:function WP$Questions$ChoiceCollection$convertToCoreChoiceArray(){var e,o,t=[];for(e=0;e<this.Models.length;e++)"function"==typeof(o=this.Models[e]).convertToCoreChoiceModel&&o.IsSelected&&t.push(o.convertToCoreChoiceModel());return t},isAnyChoiceSelected:function WP$Questions$ChoiceCollection$isAnyChoiceSelected(){return this.getSelectedChoices().length>0},getSelectedChoices:function WP$Questions$ChoiceCollection$getSelectedChoices(){for(var e=[],o=0;o<this.Models.length;o++)this.Models[o].IsSelected&&e.push(this.Models[o]);return e}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.ChoiceCollection=e,e.extend($$WP.Common.ModelCollection,"WP$Questions$ChoiceCollection")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$ChoiceCollection(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2020 Epic Systems Corporation */
!function WP$Questions$BaseQuestion$definition(){var e=function WP$Questions$BaseQuestion(e,t){this.WP$Common$Model(e),this._updateMiscSettings(),this._updateMnemonics(),this._updateValidationSettings(),this._setAnswerChangedCallback(t),this.HasAnswers=this._isQuestionAnswered(),this.HelpText=dangerou$.parseHtml("<div>"+this.HelpText+"</div>").prop("innerHTML")},t=[{propertyNames:"ID",storeAs:"set"}],s=["ID"],n=[];e.prototype={s_dataMembers:[],s_coreQuestionDataMembers:["ID","DAT","QuestionType","ResponseType","IsRequired","IsMultiResponse","IsTrigger","IsEnabled","DisplayStyle","DisplayStyleVal"],ID:null,Name:null,DAT:null,QuestionType:0,ResponseType:0,Prompt:null,HelpText:null,IsRequired:!1,IsMultiResponse:!1,DisplayStyle:null,DisplayStyleVal:0,IsTrigger:!1,IsEnabled:!0,AnswerChangedCallback:null,HasAnswers:!1,HasErrors:!1,FormElementName:null,ValidationSettings:null,ViewBinderId:null,CssClassName:"",Timer:0,Delay:175,HasZebraStripeOn:!1,LegendOrLabelHeaderClassName:"question-prompt-header",convertToCoreQuestionModel:function WP$Questions$BaseQuestion$convertToCoreQuestionModel(){var e,t,s,n={};for(t=0;t<this.s_coreQuestionDataMembers.length;t++)s=this[e=this.s_coreQuestionDataMembers[t]],$$WPUtil.IsNullOrEmpty(s)||"function"!=typeof s.WP$Common$Model||"function"!=typeof s.convertToCoreQuestionModel?n[e]=s:n[e]=s.convertToCoreQuestionModel();return n},addViewBinderId:function WP$Questions$BaseQuestion$_addViewBinderID(e){this.ViewBinderId=e},_updateMnemonics:function WP$Questions$BaseQuestion$_updateMnemonics(){throw"[BaseQuestion] Subclass did not implement the virtual method _updateMnemonics"},_updateValidationSettings:function WP$Questions$BaseQuestion$_updateValidationSettings(){throw"[BaseQuestion] Subclass did not implement the virtual method _updateValidationSettings"},_getValidationSettingsForInput:function WP$Questions$BaseQuestion$_getValidationSettingsForInput(e){return this.ValidationSettings},_getGroupValidationSettings:function WP$Questions$AddressQuestion$_getGroupValidationSettings(){return null},_updateAnswerFromDOM:function WP$Questions$BaseQuestion$_updateAnswerFromDOM(){throw"[BaseQuestion] Subclass did not implement the virtual method _updateAnswerFromDOM. This function is needed for the binder to automatically update the answer in the model."},_setAnswerChangedCallback:function WP$Questions$BaseQuestion$_setAnswerChangedCallback(e){this.AnswerChangedCallback=e},_triggerAnswerChangedCallback:function WP$Questions$BaseQuestion$_triggerAnswerChangedCallback(e,t,s){s&&document.activeElement!==t.target?(this.AnswerChangedCallback(this),this.Timer=0):this.Timer||(this.Timer=setTimeout($.proxy((function(){this.AnswerChangedCallback(this),this.Timer=0}),this),this.Delay))},_getInvalidInputs:function WP$Questions$BaseQuestion$_getInvalidInputs(){return $afe.select('[data-lql="'+this.ID+'"]').find('[data-invalid="true"]').filter("input, textarea, select")},_updateMiscSettings:function WP$Questions$BaseQuestion$_updateMiscSettings(){this.FormElementName="LQL_"+this.ID},_isQuestionAnswered:function WP$Questions$AddressQuestion$_isQuestionAnswered(){throw"[BaseQuestion] Subclass did not implement the virtual method _isQuestionAnswered. This function is needed to determine whether or not a question  has been answered."}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.BaseQuestion=e,$$WP.Questions.BaseQuestion.createQuestionCollection=function WP$Questions$BaseQuestion$createQuestionCollection(){return new $$WP.Questions.QuestionCollection(t,s,n)},e.extend($$WP.Common.Model,"WP$Questions$BaseQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$BaseQuestion(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2023 Epic Systems Corporation */
!function WP$Questions$FreeTextQuestion$definition(){var e=function WP$Questions$FreeTextQuestion(e,t){this.Choices=$$WP.Questions.Choice.createChoiceCollection(e.Choices),this.HasQuickButtons=this.Choices&&this.Choices.Models&&this.Choices.Models.length>0,this.WP$Questions$BaseQuestion(e,t),e.MaxLength>0&&(this.MaxLength=e.MaxLength,$$WP.ApplicationContext!==applicationWelcome&&(this.MaxLengthCssClass=$$WPUtil.GetTextareaBucketClass(this.MaxLength)),this._updateValidationSettings(),e.Answer&&e.Answer.length>e.MaxLength&&(this.Answer=e.Answer.substring(0,e.MaxLength)))};e.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","DisplayStyle","DisplayStyleVal","HasAnswers","IsTrigger","IsEnabled","Timer","Delay","Answer","OtherSelected"],Answer:null,Choices:null,HasQuickButtons:!1,OtherSelected:!1,ButtonsFormElementName:null,ButtonValidationSettings:null,MultiResponsePrompt:null,MaxLength:0,MaxLengthCssClass:"",convertToCoreQuestionModel:function WP$Questions$FreeTextQuestion$convertToCoreQuestionModel(){var e={};return e=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel(),this._getInvalidInputs().length>0||this.HasQuickButtons&&!this.OtherSelected?e.Answer={Text:""}:e.Answer={Text:this.Answer},e.Answer.Choices=this.Choices.convertToCoreChoiceArray(),e},_updateMnemonics:function WP$Questions$FreeTextQuestion$_updateMnemonics(){this.IsMultiResponse&&this.HasQuickButtons&&($$WP.Strings.setDefaultNamespace("Questions"),this.MultiResponsePrompt=$$WP.Strings.getForTemplate("MultipleResponsePrompt"),$$WP.Strings.clearDefaultNamespace())},_updateValidationSettings:function WP$Questions$FreeTextQuestion$_updateValidationSettings(){var e,t;e=0===this.MaxLength?this.IsMultiResponse?"1000":"255":this.MaxLength,t=new $$WP.FormValidation.ValidationSettings({maxLength:e,showCharacterCounter:!0}),this.ValidationSettings=t,this.ButtonValidationSettings=new $$WP.FormValidation.ValidationSettings,this.HasQuickButtons?(this.IsMultiResponse?this.ButtonValidationSettings.atLeastOneChecked=this.IsRequired:this.ButtonValidationSettings.required=this.IsRequired,this.IsRequired?this.ValidationSettings.required=this.IsRequired:this.ValidationSettings.required=this.OtherSelected):this.ValidationSettings.required=this.IsRequired},_getValidationSettingsForInput:function WP$Questions$FreeTextQuestion$_getValidationSettingsForInput(e){var t=e.safeAttr("name");return null!==t&&"string"==typeof t&&t.indexOf("_buttons")>-1?this.ButtonValidationSettings:this.ValidationSettings},_updateMiscSettings:function WP$Questions$FreeTextQuestion$_updateMiscSettings(){this.WP$Questions$BaseQuestion$_updateMiscSettings(),this.ButtonsFormElementName="LQL_"+this.ID+"_buttons"},_updateAnswerFromDOM:function WP$Questions$FreeTextQuestion$_updateAnswerFromDOM(e,t){var s,i,n,o,a;if(null!==e&&"object"==typeof e&&e instanceof jQuery){if("text"===e[0].type||"textarea"===e[0].type)(s=e.val())&&(s=s.toString().replace(/\s+$/,"")),this.Answer!==s&&(i=!0),this.Answer=s;else if(n=e.val(),null!==this.Choices&&null!==this.Choices.Models&&"focusout"!==t.type){for(o=0;o<this.Choices.Models.length;o++)(a=this.Choices.Models[o]).Index===n?e.is(":checked")?(a.IsSelected||(i=!0),a.IsSelected=!0,this.IsMultiResponse||this.setProperty("OtherSelected",!1)):(a.IsSelected&&(i=!0),a.IsSelected=!1):this.IsMultiResponse||(a.IsSelected&&(i=!0),a.IsSelected=!1);""===n&&(this.OtherSelected==e.is(":checked")||$$WPUtil.IsNullOrEmpty(this.Answer)||(i=!0),this.setProperty("OtherSelected",e.is(":checked")))}i&&(this.HasAnswers=this._isQuestionAnswered(),this._triggerAnswerChangedCallback(e,t,!0))}},_isQuestionAnswered:function WP$Questions$FreeTextQuestion$_isQuestionAnswered(){return!$$WPUtil.IsNullOrEmpty(this.Answer)||this.Choices.isAnyChoiceSelected()},_defaultAfterAccordionCallback:function WP$Questions$FreeTextQuestion$_defaultAfterAccordionCallback(e){var t,s=jQueryElements[0],i=jQueryElements[1],n=$afe.jq(s).is(":checked");this._updateValidationSettings(),i.safeAttr("data-validation-settings",this.ValidationSettings.toJSON()),$$WP.FormValidation.resetValidationErrorForAnInput(i,!0),$$WPQuestionUtil.enableInputField(i,n),n&&(t=i.val().length,i.get(0).setSelectionRange(t,t),i.focus())}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.FreeTextQuestion=e,e.extend($$WP.Questions.BaseQuestion,"WP$Questions$FreeTextQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$FreeTextQuestion(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2023 Epic Systems Corporation */
!function WP$Questions$DateQuestion$definition(){var e=function WP$Questions$DateQuestion(e,t){this.LocalePlaceholder=$$WP.I18N.getDateFormatForDisplay(),this.WP$Questions$BaseQuestion(e,t),this.FormElementName+="-date"};e.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","DisplayStyle","DisplayStyleVal","IsTrigger","IsEnabled","AnswerChangedCallback","Timer","Delay","Answer","LocalePlaceholder"],Answer:null,Timer:0,Delay:500,LocalePlaceholder:null,convertToCoreQuestionModel:function WP$Questions$DateQuestion$convertToCoreQuestionModel(){var e,t={};if(t=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel(),e=$afe.select('.question.date[data-lql="'+t.ID+'"]'),this._getInvalidInputs().length>0)t.Answer={Text:""};else if(e.find('input[type="date"]').length>0){var s,n;s=new Date(this.Answer),n=$$WP.I18N.formatPatientGivenDate(s),t.Answer={Text:n}}else t.Answer={Text:this.Answer};return t},_updateMnemonics:function WP$Questions$DateQuestion$_updateMnemonics(){},_updateValidationSettings:function WP$Questions$DateQuestion$_updateValidationSettings(){this.ValidationSettings=new $$WP.FormValidation.ValidationSettings({isDate:!0,required:this.IsRequired,maxLength:"15",minDate:new Date(1841,0,1),maxDate:new Date(4578,10,26)})},_updateAnswerFromDOM:function WP$Questions$DateQuestion$_updateAnswerFromDOM(e,t){var s,n;null!==e&&"object"==typeof e&&e instanceof jQuery&&(s=e.val(),this.Answer!==s&&(n=!0),this.Answer=s,n&&(this.HasAnswers=this._isQuestionAnswered(),this._triggerAnswerChangedCallback(e,t,!0)))},_isQuestionAnswered:function WP$Questions$DateQuestion$_isQuestionAnswered(){return!$$WPUtil.IsNullOrEmpty(this.Answer)},__localeDateToISO:function WP$Questions$DateQuestion$__localDateToISO(e){return null===e||isNaN(e.getTime())?"":(t=e.getUTCFullYear(),(s=e.getUTCMonth()+1)<10&&(s="0"+s),(n=e.getUTCDate())<10&&(n="0"+n),[t,s,n].join("-"));var t,s,n}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.DateQuestion=e,e.extend($$WP.Questions.BaseQuestion,"WP$Questions$DateQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$DateQuestion(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2020 Epic Systems Corporation */
!function WP$Questions$TimeQuestion$definition(){var e=function WP$Questions$TimeQuestion(e,t){var s;($$WP.Utilities.UI.IsMobile||WP.DOM.Browser.isMobile||78===$$WP.ApplicationContext||$$WPQuestionUtil.isFakeResponsive())&&""!==e.Answer&&$$WP.Utilities.isBrowserCapableOf("input",{type:"time"})&&(s=$$WP.I18N.parseTime(e.Answer),e.Answer=this.__localeTimeTo24Hr(s));this.LocalePlaceholder=$$WP.I18N.getTimeFormatForDisplay(),this.WP$Questions$BaseQuestion(e,t)};e.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","DisplayStyle","DisplayStyleVal","IsTrigger","IsEnabled","AnswerChangedCallback","Answer","Timer","Delay","LocalePlaceholder"],Answer:null,LocalePlaceholder:null,convertToCoreQuestionModel:function WP$Questions$TimeQuestion$convertToCoreQuestionModel(){var e,t={};if(t=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel(),e=$afe.select('.question.time[data-lql="'+t.ID+'"]'),this._getInvalidInputs().length>0)t.Answer={Text:""};else if(e.find('input[type="time"]').length>0){var s,i;s=$$WP.I18N.parse24HrTime(this.Answer),i=$$WP.I18N.formatPatientGivenTime(s),t.Answer={Text:i}}else t.Answer={Text:this.Answer};return t},_updateMnemonics:function WP$Questions$TimeQuestion$_updateMnemonics(){},_updateValidationSettings:function WP$Questions$TimeQuestion$_updateValidationSettings(){this.ValidationSettings=new $$WP.FormValidation.ValidationSettings({isTime:!0,required:this.IsRequired,maxLength:"15"})},_updateAnswerFromDOM:function WP$Questions$TimeQuestion$_updateAnswerFromDOM(e,t){var s,i;null!==e&&"object"==typeof e&&e instanceof jQuery&&(s=e.val(),this.Answer!==s&&(i=!0),this.Answer=s,i&&(this.HasAnswers=this._isQuestionAnswered(),this._triggerAnswerChangedCallback(e,t,!0)))},_isQuestionAnswered:function WP$Questions$TimeQuestion$_isQuestionAnswered(){return!$$WPUtil.IsNullOrEmpty(this.Answer)},__localeTimeTo24Hr:function WP$Questions$TimeQuestion$__localeTimeTo24Hr(e){return null===e||isNaN(e.getTime())?"":((t=e.getUTCHours())<10&&(t="0"+t),(s=e.getUTCMinutes())<10&&(s="0"+s),[t,s].join(":"));var t,s}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.TimeQuestion=e,e.extend($$WP.Questions.BaseQuestion,"WP$Questions$TimeQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$TimeQuestion(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2021 Epic Systems Corporation */
!function WP$Questions$TimeWithUnitsQuestion$definition(){var t=function WP$Questions$TimeWithUnitsQuestion(t,e){this.Choices=$$WP.Questions.Choice.createChoiceCollection(t.Choices),this.WP$Questions$BaseQuestion(t,e)};t.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","DisplayStyle","DisplayStyleVal","HasAnswers","IsTrigger","IsEnabled","Precision","TextAnswer","ButtonsFormElementName","ButtonValidationSettings","GroupValidationSettings","Timer","Delay"],ButtonsFormElementName:null,ButtonValidationSettings:null,GroupValidationSettings:null,OneAnswerPopulated:!1,Precision:null,Choices:null,TextAnswer:null,Mnemonics:null,convertToCoreQuestionModel:function WP$Questions$TimeWithUnitsQuestion$convertToCoreQuestionModel(){var t={};return t=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel(),this._getInvalidInputs().length>0?(t.Answer={Text:""},t.Answer.Choices=[]):(t.Answer={Text:this.TextAnswer},t.Answer.Choices=this.Choices.convertToCoreChoiceArray()),t},_updateMnemonics:function WP$Questions$TimeWithUnitsQuestion$_updateMnemonics(){this.Mnemonics={QuestionPrompt:{Value:this.Prompt}}},_updateValidationSettings:function WP$Questions$TimeWithUnitsQuestion$_updateValidationSettings(){this.ValidationSettings=new $$WP.FormValidation.ValidationSettings({isNumber:!0,min:0,precision:this.Precision,required:this.IsRequired,maxLength:"15"}),this.ButtonValidationSettings=new $$WP.FormValidation.ValidationSettings({required:this.IsRequired}),this.GroupValidationSettings=new $$WP.FormValidation.ValidationGroup({name:"time-with-units-"+this.ID,allRequired:!this.IsRequired,disableButtonsWhenEmpty:this.IsRequired,evaluateParentGroups:!0})},_getGroupValidationSettings:function WP$Questions$AddressQuestion$_getGroupValidationSettings(){return this.GroupValidationSettings},_getValidationSettingsForInput:function WP$Questions$TimeWithUnitsQuestion$_getValidationSettingsForInput(t){var e=t.safeAttr("name");return null!==e&&"string"==typeof e&&e.indexOf("_buttons")>-1?this.ButtonValidationSettings:this.ValidationSettings},_getInvalidInputs:function WP$Questions$TimeWithUnitsQuestion$_getInvalidInputs(){var t,e;return t=$afe.select('[data-lql="'+this.ID+'"]'),0===(e=this.WP$Questions$BaseQuestion$_getInvalidInputs()).length&&(this._hasUnitNoNumber()?$.merge(e,t.find("[name='"+this.FormElementName+"']")):this._hasNumberNoUnit()&&$.merge(e,t.find("[name='"+this.ButtonsFormElementName+"']"))),e},_updateMiscSettings:function WP$Questions$TimeWithUnitsQuestion$_updateMiscSettings(){this.WP$Questions$BaseQuestion$_updateMiscSettings(),this.ButtonsFormElementName="LQL_"+this.ID+"_buttons";for(var t=0;t<this.Choices.Models.length;t++)if(this.Choices.Models[t].IsSelected){this.OneAnswerPopulated=!0;break}this.TextAnswer&&(this.OneAnswerPopulated=!this.OneAnswerPopulated)},_updateAnswerFromDOM:function WP$Questions$TimeWithUnitsQuestion$_updateAnswerFromDOM(t,e){var i,s,n,o,u;if(null!==t&&"object"==typeof t&&t instanceof jQuery)if("text"===t[0].type)i=t.val(),this.TextAnswer!==i&&(s=!0),this.TextAnswer=i,s&&$afe.select(".time-with-units-buttons [name='"+this.ButtonsFormElementName+"']").first().trigger("change",!0);else{if(o=t.val(),null!==this.Choices&&null!==this.Choices.Models&&"focusout"!==e.type)for(n=0;n<this.Choices.Models.length;n++)(u=this.Choices.Models[n]).Index===o&&t.is(":checked")?(u.IsSelected||(s=!0),u.IsSelected=!0):(u.IsSelected&&(s=!0),u.IsSelected=!1);s&&($afe.select(".answers > [name='"+this.FormElementName+"']").trigger("change",!0),this.HasAnswers=this._isQuestionAnswered(),this._triggerAnswerChangedCallback(t,e,!0))}},_isQuestionAnswered:function WP$Questions$TimeWithUnitsQuestion$_isQuestionAnswered(){return!$$WPUtil.IsNullOrEmpty(this.TextAnswer)||this.Choices.isAnyChoiceSelected()},_hasUnitNoNumber:function WP$Questions$TimeWithUnitsQuestion$_hasUnitNoNumber(){return $$WPUtil.IsNullOrEmpty(this.TextAnswer)&&this.Choices.isAnyChoiceSelected()},_hasNumberNoUnit:function WP$Questions$TimeWithUnitsQuestion$_hasNumberNoUnit(){return!$$WPUtil.IsNullOrEmpty(this.TextAnswer)&&!this.Choices.isAnyChoiceSelected()}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.TimeWithUnitsQuestion=t,t.extend($$WP.Questions.BaseQuestion,"WP$Questions$TimeWithUnitsQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$TimeWithUnitsQuestion(t){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2025 Epic Systems Corporation */
var applicationWelcome=78;!function WP$Questions$NumericQuestion$definition(){var e=function WP$Questions$NumericQuestion(e,i){this.Choices=$$WP.Questions.Choice.createChoiceCollection(e.Choices),this.HasQuickButtons=this.Choices&&this.Choices.Models&&this.Choices.Models.length>0,this.WP$Questions$BaseQuestion(e,i)};e.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","DisplayStyle","DisplayStyleVal","IsTrigger","IsEnabled","AnswerChangedCallback","Answer","Precision","MinValue","MaxValue","ShowAsSlider","SliderOptions","Timer","Delay","OtherSelected","InputMode"],Answer:null,Precision:null,MinValue:null,MaxValue:null,SliderFormElementName:null,ShowAsSlider:!1,SliderOptions:null,AriaLabelText:null,MinAriaLabelText:null,MaxAriaLabelText:null,TextFieldAriaLabelText:null,AnswerIsMin:!1,AnswerIsMax:!1,SliderController:null,Choices:null,HasQuickButtons:!1,OtherSelected:!1,ButtonsFormElementName:null,ButtonValidationSettings:null,InputMode:"",convertToCoreQuestionModel:function WP$Questions$NumericQuestion$convertToCoreQuestionModel(){var e,i,t={};return(t=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel()).MinValue=this.MinValue,t.MaxValue=this.MaxValue,t.Precision=this.Precision,e=(i=this.Choices.getSelectedChoices()).length>0?i[0].Index:this._getInvalidInputs().length>0||this.HasQuickButtons&&!this.OtherSelected?"":this.Answer,t.Answer={Text:e},t},_updateMnemonics:function WP$Questions$NumericQuestion$_updateMnemonics(){var e,i,t,s,n,o,l;this.ShowAsSlider&&($$WP.Strings.setDefaultNamespace("Questions.SliderQuestions"),$$WP.Strings.addMnemonic("@MYCHART@MIN@",this.SliderOptions.MinLocal),$$WP.Strings.addMnemonic("@MYCHART@MINLABEL@",this.SliderOptions.MinLabel),$$WP.Strings.addMnemonic("@MYCHART@MAX@",this.SliderOptions.MaxLocal),$$WP.Strings.addMnemonic("@MYCHART@MAXLABEL@",this.SliderOptions.MaxLabel),$$WP.Strings.addMnemonic("@MYCHART@CURRSLIDERVALUE@",this.Answer),n=this.SliderOptions.MinLabel&&this.SliderOptions.MinLabel!==this.SliderOptions.MinLocal.toString(),o=this.SliderOptions.MaxLabel&&this.SliderOptions.MaxLabel!==this.SliderOptions.MaxLocal.toString(),n&&o?(e="SliderDescriptionWithLabels",s="SliderTextFieldDescriptionWithLabels"):n?(e="SliderDescriptionWithMinLabel",s="SliderTextFieldDescriptionWithMinLabel"):o?(e="SliderDescriptionWithMaxLabel",s="SliderTextFieldDescriptionWithMaxLabel"):(e="SliderDescriptionNoLabels",s="SliderTextFieldDescriptionNoLabels"),i=n?"SliderMinWithLabel":"SliderMin",this.AnswerIsMin&&(i+="Selected"),t=o?"SliderMaxWithLabel":"SliderMax",this.AnswerIsMax&&(t+="Selected"),l=this.SliderOptions.DisplayVertically?"SliderVerticalNoResponseEnd":"SliderHorizontalNoResponseEnd",this.AriaLabelText=new Handlebars.SafeString($$WP.Strings.getForTemplate(l)+" "+$$WP.Strings.getForTemplate(e)),this.MinAriaLabelText=$$WP.Strings.getForTemplate(i),this.MaxAriaLabelText=$$WP.Strings.getForTemplate(t),this.TextFieldAriaLabelText=$$WP.Strings.getForTemplate(s),$$WP.Strings.removeMnemonic("@MYCHART@MIN@"),$$WP.Strings.removeMnemonic("@MYCHART@MINLABEL@"),$$WP.Strings.removeMnemonic("@MYCHART@MAX@"),$$WP.Strings.removeMnemonic("@MYCHART@MAXLABEL@"),$$WP.Strings.removeMnemonic("@MYCHART@CURRSLIDERVALUE@"),$$WP.Strings.clearDefaultNamespace())},_updateValidationSettings:function WP$Questions$NumericQuestion$_updateValidationSettings(){var e;e=new $$WP.FormValidation.ValidationSettings({isNumber:!0,min:this.MinValue,max:this.MaxValue,precision:this.Precision,maxLength:"255"}),this.ValidationSettings=e,this.ButtonValidationSettings=new $$WP.FormValidation.ValidationSettings,this.HasQuickButtons?(this.ButtonValidationSettings.required=this.IsRequired,this.IsRequired?this.ValidationSettings.required=this.IsRequired:this.ValidationSettings.required=this.OtherSelected):this.ValidationSettings.required=this.IsRequired},_getValidationSettingsForInput:function WP$Questions$NumericQuestion$_getValidationSettingsForInput(e){var i=e.safeAttr("name");return null!==i&&"string"==typeof i&&i.indexOf("_buttons")>-1?this.ButtonValidationSettings:this.ValidationSettings},_updateAnswerFromDOM:function WP$Questions$NumericQuestion$_updateAnswerFromDOM(e,i){var t,s,n,o,l;if(null!==e&&"object"==typeof e&&e instanceof jQuery){if("text"===e[0].type)(t=e.val())&&(t=t.toString().replace(/\s+$/,"")),this.Answer!==t&&(s=!0),this.Answer=t;else if(n=e.val(),null!==this.Choices&&null!==this.Choices.Models&&"focusout"!==i.type){for(o=0;o<this.Choices.Models.length;o++)(l=this.Choices.Models[o]).Index===n&&e.is(":checked")?(l.IsSelected||(s=!0),l.IsSelected=!0,this.setProperty("OtherSelected",!1)):(l.IsSelected&&(s=!0),l.IsSelected=!1);""===n&&(this.OtherSelected==e.is(":checked")||$$WPUtil.IsNullOrEmpty(this.Answer)||(s=!0),this.setProperty("OtherSelected",e.is(":checked")))}s&&(this.HasAnswers=this._isQuestionAnswered(),this._triggerAnswerChangedCallback(e,i,!0))}},_isQuestionAnswered:function WP$Questions$NumericQuestion$_isQuestionAnswered(){return!$$WPUtil.IsNullOrEmpty(this.Answer)||this.Choices.isAnyChoiceSelected()},getLocaleDecimalSeparator:function getLocaleDecimalSeparator(e){return new Intl.NumberFormat(e).formatToParts(1.1).find((e=>"decimal"===e.type)).value},_updateMiscSettings:function WP$Questions$NumericQuestion$_updateMiscSettings(){if(this.WP$Questions$BaseQuestion$_updateMiscSettings(),!$$WPUtil.IsNullOrEmpty(this.MinValue)&&!$$WPUtil.IsNullOrEmpty(this.Precision)&&this.MinValue>=0){if(this.Precision<=0)this.InputMode="numeric";else if(this.Precision>0){const e=getDecimalSeparator()!==this.getLocaleDecimalSeparator(navigator.language);this.InputMode=e?"text":"decimal"}}else $$WP.ApplicationContext===applicationWelcome||WP.DOM.Browser.isIPad?this.InputMode="numeric":this.InputMode="text";this.ShowAsSlider?(this.SliderOptions.DisplayVertically||($$WP.Utilities.UI.IsMobile||$$WPQuestionUtil.isFakeResponsive())&&(this.DisplayStyle="VERTSLIDER",this.SliderOptions.DisplayVertically=!0),this.CssClassName=this.CssClassName+" questionSlider "+this.DisplayStyle,this.MinValue=this.SliderOptions.Min,this.MaxValue=this.SliderOptions.Max,this.SliderOptions.MinLocal=$$WP.I18N.formatNumber(this.SliderOptions.Min,this.Precision),this.SliderOptions.MaxLocal=$$WP.I18N.formatNumber(this.SliderOptions.Max,this.Precision),this.Answer&&(this.Answer.toString()===this.MinValue.toString()?this.AnswerIsMin=!0:this.Answer.toString()===this.MaxValue.toString()&&(this.AnswerIsMax=!0)),this.SliderFormElementName=this.FormElementName+"_slider"):this.ButtonsFormElementName=this.FormElementName+"_buttons"},_defaultAfterAccordionCallback:function WP$Questions$NumericQuestion$_defaultAfterAccordionCallback(e){var i,t=e[0],s=e[1],n=$afe.jq(t).is(":checked");this._updateValidationSettings(),s.safeAttr("data-validation-settings",this.ValidationSettings.toJSON()),$$WP.FormValidation.resetValidationErrorForAnInput(s,!0),$$WPQuestionUtil.enableInputField(s,n),n&&(i=s.val().length,s.get(0).setSelectionRange(i,i),s.focus())}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.NumericQuestion=e,e.extend($$WP.Questions.BaseQuestion,"WP$Questions$NumericQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$NumericQuestion(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2020 Epic Systems Corporation */
!function WP$Questions$YesNoQuestion$definition(){var e=function WP$Questions$YesNoQuestion(e,s){var o,t;for(this.Choices=$$WP.Questions.Choice.createChoiceCollection(e.Choices),o=0;o<this.Choices.Models.length;o++)"1"===(t=this.Choices.Models[o]).Index&&(this.HasYesOption=!0,t.IsSelected&&(this.IsSelected=!0));this.WP$Questions$BaseQuestion(e,s),this.GroupValidationSettings=new $$WP.FormValidation.ValidationGroup({name:"FollowUpGroup_"+this.FormElementName,evaluateParentGroups:!0,evaluateNestedGroups:!0})};e.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","HasFollowUpQuestions","FollowUpQuestions","DisplayStyle","DisplayStyleVal","IsTrigger","IsEnabled","AnswerChangedCallback","Timer","Delay","AllFollowUpsDisabled","IncludeUnknown"],Choices:null,IsSelected:!1,HasFollowUpQuestions:!1,AllFollowUpsDisabled:!1,HasYesOption:!1,FollowUpQuestions:null,EnableToggle:!1,GroupValidationSettings:null,HasFollowUpAnswers:null,ToggleFollowUpQuestions:null,IncludeUnknown:!1,convertToCoreQuestionModel:function WP$Questions$YesNoQuestion$convertToCoreQuestionModel(){var e,s,o={},t=!1;for((o=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel()).Answer={Choices:[]},o.Answer={},o.Answer.Choices=this.Choices.convertToCoreChoiceArray(),e=0;e<this.Choices.Models.length;e++)"1"===(s=this.Choices.Models[e]).Index&&s.IsSelected&&(t=!0);return this.HasFollowUpQuestions&&t&&(o.FollowUpQuestions=this.FollowUpQuestions.convertToCoreQuestionArray()),o},_updateMiscSettings:function WP$Questions$BaseQuestion$_updateMiscSettings(){this.WP$Questions$BaseQuestion$_updateMiscSettings(),this.HasFollowUpQuestions&&this.Choices.Models[0].IsSelected&&(this.EnableToggle=!0)},_updateMnemonics:function WP$Questions$YesNoQuestion$_updateMnemonics(){$$WP.Strings.setDefaultNamespace("Questions"),this.HasFollowUpAnswers=$$WP.Strings.getForTemplate("HasFollowUpAnswers"),$$WP.Strings.addMnemonic("@MYCHART@FOLLOWUPPARENTQUESTIONPROMPT@",this.Prompt,""),this.ToggleFollowUpQuestions=$$WP.Strings.getForTemplate("ToggleFollowUpQuestions"),$$WP.Strings.removeMnemonic("@MYCHART@FOLLOWUPPARENTQUESTIONPROMPT@"),$$WP.Strings.clearDefaultNamespace()},_updateValidationSettings:function WP$Questions$YesNoQuestion$_updateValidationSettings(){this.ValidationSettings=new $$WP.FormValidation.ValidationSettings({required:this.IsRequired})},_areAllFollowUpQuestionsDisabled:function WP$Questions$YesNoQuestion$_areAllFollowUpQuestionsDisabled(){var e,s;for(s=!0,e=0;e<this.FollowUpQuestions.Models.length;e++)if(this.FollowUpQuestions.Models[e].IsEnabled){s=!1;break}return s},_updateAnswerFromDOM:function WP$Questions$YesNoQuestion$_updateAnswerFromDOM(e,s){var o,t,i,n;if(null!==e&&"object"==typeof e&&e instanceof jQuery){if(o=e.closest(".questionGroupAsList").length>0&&-1!==e.val().indexOf("LQL_")?e.val().substr(4)===this.ID&&e.is(":checked")?"1":"2":e.val(),null!==this.Choices&&"focusout"!==s.type)for(i=0;i<this.Choices.Models.length;i++)(t=this.Choices.Models[i]).Index===o&&e.is(":checked")?(t.IsSelected||(n=!0),t.IsSelected=!0):(t.IsSelected&&(n=!0),t.IsSelected=!1);n&&(this.HasAnswers=this._isQuestionAnswered(),this._triggerAnswerChangedCallback(e,s,!1))}},_isQuestionAnswered:function WP$Questions$YesNoQuestion$_isQuestionAnswered(){return this.Choices.isAnyChoiceSelected()}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.YesNoQuestion=e,e.extend($$WP.Questions.BaseQuestion,"WP$Questions$YesNoQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$YesNoQuestion(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2022 Epic Systems Corporation */
!function WP$Questions$CustomListQuestion$definition(){var s=function WP$Questions$CustomListQuestion(s,e){this.Choices=$$WP.Questions.Choice.createChoiceCollection(s.Choices),this.WP$Questions$BaseQuestion(s,e)},e={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","DisplayStyle","DisplayStyleVal","IsTrigger","IsEnabled","AnswerChangedCallback","MaxButtons","ShowAsSlider","SliderOptions","HasAnswer","AnswerNdx","Timer","Delay","CustomListOptionStyle"],Choices:null,MaxButtons:null,MultiResponsePrompt:null,ShowAsSelectDropDown:!1,SelectSize:1,DropDownDefaultOptionText:null,ShowAsSlider:!1,SliderOptions:null,SliderFormElementName:null,HasAnswer:!1,AnswerNdx:null,AnswerNdxString:null,AnswerImg:null,AnswerText:null,ShowAllOptions:!0,SliderController:null,AriaLabelText:null,MinAriaLabelText:null,MaxAriaLabelText:null,CustomListOptionStyle:$$WP.Questions.CustomListOptionStyle.Text,convertToCoreQuestionModel:function WP$Questions$CustomListQuestion$convertToCoreQuestionModel(){var s={};return(s=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel()).Answer={Choices:[]},s.Answer={},s.Answer.Choices=this.Choices.convertToCoreChoiceArray(),s},_updateMnemonics:function WP$Questions$CustomListQuestion$_updateMnemonics(){var s,e,t,i,o;if($$WP.Strings.setDefaultNamespace("Questions.SliderQuestions"),this.ShowAsSlider){if($$WP.Strings.addMnemonic("@MYCHART@MINLABEL@",this.Choices.Models[0].Text),$$WP.Strings.addMnemonic("@MYCHART@MAXLABEL@",this.Choices.Models[this.Choices.Models.length-1].Text),this.AnswerNdx)for(i=0;i<this.Choices.Models.length;i++)if((o=this.Choices.Models[i]).IsSelected){$$WP.Strings.addMnemonic("@MYCHART@CURRSLIDERVALUE@",o.Text);break}s=this.AnswerNdx?this.SliderOptions.DisplayVertically?"VerticalCustomListSliderDescriptionWithValueAndLabelsWeb":this.SliderOptions.IsRTL?"HorizontalRTLCustomListSliderDescriptionWithValueAndLabelsWeb":"HorizontalCustomListSliderDescriptionWithValueAndLabelsWeb":this.SliderOptions.DisplayVertically?"VerticalCustomListSliderDescriptionEmptyWithLabelsWeb":this.SliderOptions.IsRTL?"HorizontalRTLCustomListSliderDescriptionEmptyWithLabelsWeb":"HorizontalCustomListSliderDescriptionEmptyWithLabelsWeb",this.SliderOptions.DisplayVertically?(e="CustomListSliderMinVertical",t="CustomListSliderMaxVertical"):this.SliderOptions.IsRTL?(e="CustomListSliderMinHorizontalRTL",t="CustomListSliderMaxHorizontalRTL"):(e="CustomListSliderMinHorizontal",t="CustomListSliderMaxHorizontal"),this.AriaLabelText=$$WP.Strings.getForTemplate(s),this.MinAriaLabelText=$$WP.Strings.getForTemplate(e),this.MaxAriaLabelText=$$WP.Strings.getForTemplate(t),$$WP.Strings.removeMnemonic("@MYCHART@MINLABEL@"),$$WP.Strings.removeMnemonic("@MYCHART@MAXLABEL@"),$$WP.Strings.removeMnemonic("@MYCHART@CURRSLIDERVALUE@")}this.IsMultiResponse&&(this.MultiResponsePrompt=$$WP.Strings.getForTemplate("MultipleResponsePrompt","Questions")),this.ShowAsSelectDropDown&&(this.DropDownDefaultOptionText=$$WP.Strings.getForTemplate("DropDownDefaultOptionText","Questions")),$$WP.Strings.clearDefaultNamespace()},_updateValidationSettings:function WP$Questions$CustomListQuestion$_updateValidationSettings(){this.ValidationSettings=new $$WP.FormValidation.ValidationSettings,this.IsMultiResponse?this.ValidationSettings.atLeastOneChecked=this.IsRequired:this.ValidationSettings.required=this.IsRequired},_updateMiscSettings:function WP$Questions$CustomListQuestion$_updateMiscSettings(){var s,e,t,i,o;for(this.WP$Questions$BaseQuestion$_updateMiscSettings(),this.MaxButtons&&!this.ShowAsSlider&&(this.ShowAsSelectDropDown=this.Choices.Models.length>this.MaxButtons&&!this.DisplayStyle),e=t=!1,this.CustomListOptionStyle!==$$WP.Questions.CustomListOptionStyle.Text&&this.CustomListOptionStyle!==$$WP.Questions.CustomListOptionStyle.TextWithImage||(e=!0),this.CustomListOptionStyle!==$$WP.Questions.CustomListOptionStyle.TextWithImage&&this.CustomListOptionStyle!==$$WP.Questions.CustomListOptionStyle.Image||(t=!0,this.ShowAsSelectDropDown=!1,this.CssClassName=this.CssClassName+" withImage"),this.CustomListOptionStyle===$$WP.Questions.CustomListOptionStyle.Image&&(this.CssClassName=this.CssClassName+" imageOnly"),i=0;i<this.Choices.Models.length;i++)null!==(s=this.Choices.Models[i])&&(s.CanShowText=e,s.CanShowImage=t,$$WPUtil.IsNullOrEmpty(s.ImagePath)||(s.ImagePath="Image/Load?filename="+s.ImagePath+"&withContentType=1"));if(this.ShowAsSelectDropDown?this.IsMultiResponse?(this.SelectSize=10,this.Choices.Models.length<10&&(this.SelectSize=this.Choices.Models.length)):this.SelectSize=1:this.CssClassName=this.CssClassName+" customList",this.ShowAsSlider){for(this.CssClassName=this.CssClassName+" questionSlider ",this.SliderOptions.ShowAllOptions=!0,this.SliderOptions.DisplayVertically||($$WP.Utilities.UI.IsMobile||$$WP.ApplicationContext===applicationWelcome||$$WPQuestionUtil.isFakeResponsive())&&(this.DisplayStyle="VERTSLIDER",this.SliderOptions.DisplayVertically=!0),o=1,i=0;i<this.Choices.Models.length;i++)(s=this.Choices.Models[i]).IsSelected&&(this.AnswerImg=s.ImagePath,this.AnswerText=s.Text),s.SliderNdx=o,o++;this.AnswerNdx&&(this.AnswerNdxString=this.AnswerNdx.toFixed(0)),this.SliderFormElementName=this.FormElementName+"_slider"}},_updateAnswerFromDOM:function WP$Questions$CustomListQuestion$_updateAnswerFromDOM(s,e){var t,i,o,n;if(null!==s&&"object"==typeof s&&s instanceof jQuery){if(t=s.val(),null!==this.Choices&&null!==this.Choices.Models&&("focusout"!==e.type||this.ShowAsSelectDropDown))for(o=0;o<this.Choices.Models.length;o++)i=this.Choices.Models[o],this.ShowAsSelectDropDown?this.IsMultiResponse?t&&-1!==t.indexOf(i.Index)?(i.IsSelected||(n=!0),i.IsSelected=!0):(i.IsSelected&&(n=!0),i.IsSelected=!1):t&&t===i.Index?(i.IsSelected||(n=!0),i.IsSelected=!0):(i.IsSelected&&(n=!0),i.IsSelected=!1):i.Index===t?s.is(":checked")?(i.IsSelected||(n=!0),i.IsSelected=!0):(i.IsSelected&&(n=!0),i.IsSelected=!1):this.IsMultiResponse||(i.IsSelected=!1);n&&(this.HasAnswers=this._isQuestionAnswered(),this._triggerAnswerChangedCallback(s,e,this.ShowAsSelectDropDown))}},_updateClassName:function WP$Questions$CustomListQuestion$_updateClassName(){this.ShowAsSlider&&(this.CssClassName=this.CssClassName+" sliderquestion ")},_isQuestionAnswered:function WP$Questions$CustomListQuestion$_isQuestionAnswered(){return this.Choices.isAnyChoiceSelected()}};s.prototype=e,$$WP.Questions=$$WP.Questions||{},$$WP.Questions.CustomListQuestion=s,s.extend($$WP.Questions.BaseQuestion,"WP$Questions$CustomListQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$CustomListQuestion(s){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2020 Epic Systems Corporation */
!function WP$Questions$CategoryINIQuestion$definition(){var e=function WP$Questions$CategoryINIQuestion(e,t){this.Choices=$$WP.Questions.Choice.createChoiceCollection(e.Choices),this.WP$Questions$BaseQuestion(e,t)};e.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","HasAnswers","DisplayStyle","DisplayStyleVal","IsTrigger","IsEnabled","Timer","Delay","MaxButtons"],Choices:null,MaxButtons:null,MultiResponsePrompt:null,ShowAsSelectDropDown:!1,SelectSize:1,DropDownDefaultOptionText:null,convertToCoreQuestionModel:function WP$Questions$CategoryINIQuestion$convertToCoreQuestionModel(){var e={};return(e=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel()).Answer={},e.Answer.Choices=this.Choices.convertToCoreChoiceArray(),e},_updateMnemonics:function WP$Questions$CategoryINIQuestion$_updateMnemonics(){$$WP.Strings.setDefaultNamespace("Questions"),this.IsMultiResponse&&(this.MultiResponsePrompt=$$WP.Strings.getForTemplate("MultipleResponsePrompt")),this.ShowAsSelectDropDown&&(this.DropDownDefaultOptionText=$$WP.Strings.getForTemplate("DropDownDefaultOptionText")),$$WP.Strings.clearDefaultNamespace()},_updateValidationSettings:function WP$Questions$CategoryINIQuestion$_updateValidationSettings(){this.ValidationSettings=new $$WP.FormValidation.ValidationSettings,this.IsMultiResponse?this.ValidationSettings.atLeastOneChecked=this.IsRequired:this.ValidationSettings.required=this.IsRequired},_updateMiscSettings:function WP$Questions$CategoryINIQuestion$_updateMiscSettings(){this.WP$Questions$BaseQuestion$_updateMiscSettings(),this.MaxButtons&&(78===$$WP.ApplicationContext?this.ShowAsSelectDropDown=this.Choices.Models.length>this.MaxButtons&&!this.DisplayStyle:this.ShowAsSelectDropDown=this.Choices.Models.length>this.MaxButtons),this.ShowAsSelectDropDown&&(this.IsMultiResponse?(this.SelectSize=10,this.Choices.Models.length<10&&(this.SelectSize=this.Choices.Models.length)):this.SelectSize=1)},_updateAnswerFromDOM:function WP$Questions$CategoryINIQuestion$_updateAnswerFromDOM(e,t){var s,i,o,n;if(null!==e&&"object"==typeof e&&e instanceof jQuery){if(s=e.val(),null!==this.Choices&&null!==this.Choices.Models&&("focusout"!==t.type||this.ShowAsSelectDropDown))for(o=0;o<this.Choices.Models.length;o++)i=this.Choices.Models[o],this.ShowAsSelectDropDown?this.IsMultiResponse?s&&-1!==s.indexOf(i.Index)?(i.IsSelected||(n=!0),i.IsSelected=!0):(i.IsSelected&&(n=!0),i.IsSelected=!1):s&&s===i.Index?(i.IsSelected||(n=!0),i.IsSelected=!0):(i.IsSelected&&(n=!0),i.IsSelected=!1):i.Index===s?e.is(":checked")?(i.IsSelected||(n=!0),i.IsSelected=!0):(i.IsSelected&&(n=!0),i.IsSelected=!1):this.IsMultiResponse||(i.IsSelected=!1);n&&(this.HasAnswers=this._isQuestionAnswered(),this._triggerAnswerChangedCallback(e,t,this.ShowAsSelectDropDown))}},_isQuestionAnswered:function WP$Questions$CategoryINIQuestion$_isQuestionAnswered(){return this.Choices.isAnyChoiceSelected()}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.CategoryINIQuestion=e,e.extend($$WP.Questions.BaseQuestion,"WP$Questions$CategoryINIQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$CategoryINIQuestion(e){$$WP.Debug.UnitTest.assert}));;
!function ClassDefinition(){$$WP.Utilities.guaranteeExistence($$WP,"Questions");var e=function WP$Questions$UploadQuestion(e,s){this.WP$Questions$BaseQuestion(e,s),this.Answers=e.Answers};e.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","DisplayStyle","DisplayStyleVal","Prompt","HelpText","IsRequired","Answers","IsEnabled"],Answers:null,get AnswersAsJson(){return 0===(this.Answers||[]).length?"":JSON.stringify(this.Answers)},convertToCoreQuestionModel:function WP$Questions$UploadQuestion$convertToCoreQuestionModel(){var e={};(e=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel()).Answer={Choices:[]};for(var s=(this.Answers||[]).length,n=0;n<s;++n)e.Answer.Choices.push({Index:this.Answers[n].DocumentId});return e},_updateMnemonics:function WP$Questions$UploadQuestion$_updateMnemonics(){},_updateValidationSettings:function WP$Questions$UploadQuestion$_updateValidationSettings(){this.ValidationSettings=new $$WP.FormValidation.ValidationSettings({required:this.IsRequired})},_updateAnswerFromDOM:function WP$Questions$UploadQuestion$_updateAnswerFromDOM(e,s){var n="";null!==e&&"object"==typeof e&&e instanceof jQuery&&((n=e.val())&&n.length>0?this.Answers=$$WP.Upload.Models.Document.parseList(JSON.parse(n)):this.Answers=[],this.HasAnswers=this._isQuestionAnswered(),this._triggerAnswerChangedCallback(e,s,!0))},_isQuestionAnswered:function WP$Questions$UploadQuestion$_isQuestionAnswered(){return 0!==(this.Answers||[]).length}},$$WP.Questions.UploadQuestion=e,e.extend($$WP.Questions.BaseQuestion,"WP$Questions$UploadQuestion")}();;
/*! Copyright 2017-2021 Epic Systems Corporation */
!function WP$Questions$DrawingQuestion$definition(){var e=function WP$Questions$DrawingQuestion(e,t){this.WP$Questions$BaseQuestion(e,t)};e.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","DisplayStyle","DisplayStyleVal","IsTrigger","IsEnabled","DrawingDetails","DrawingResponse"],DrawingDetails:null,DrawingResponse:null,controller:null,TextAreaValidationSettings:null,TextAreaFormElementName:null,AnswerExists:!1,convertToCoreQuestionModel:function WP$Questions$DrawingQuestion$convertToCoreQuestionModel(){var e={};return(e=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel()).DrawingDetails=this.DrawingDetails,this.controller&&(e.Answer={},e.Answer.DrawingResponse=this.controller.getDrawingResponse(),$afe.select('.question.drawing[data-lql="'+e.ID+'"]').find('textarea[data-invalid="true"]').length>0&&(e.Answer.DrawingResponse.Comments=""),e.Answer.DrawingResponse.DcsID=this.DrawingResponse.DcsID),e},_updateMnemonics:function WP$Questions$DrawingQuestion$_updateMnemonics(){},_updateValidationSettings:function WP$Questions$DrawingQuestion$_updateValidationSettings(){this.ValidationSettings=new $$WP.FormValidation.ValidationSettings({required:this.IsRequired}),this.TextAreaValidationSettings=new $$WP.FormValidation.ValidationSettings({maxLength:255,showCharacterCounter:!0})},_updateMiscSettings:function WP$Questions$DrawingQuestion$_updateMiscSettings(){this.WP$Questions$BaseQuestion$_updateMiscSettings(),(this.DrawingResponse.Comments||this.DrawingResponse.XValues&&this.DrawingResponse.XValues.length>0)&&(this.AnswerExists=!0),this.TextAreaFormElementName="LQL_"+this.ID+"_drawingComment"},_updateAnswerFromDOM:function WP$Questions$DrawingQuestion$_updateAnswerFromDOM(e,t){null!==e&&"object"==typeof e&&e instanceof jQuery&&e.hasClass("drawingcomment")&&this.controller.updateValidationElement(!0)},_isQuestionAnswered:function WP$Questions$DrawingQuestion$_isQuestionAnswered(){return!1}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.DrawingQuestion=e,e.extend($$WP.Questions.BaseQuestion,"WP$Questions$DrawingQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$DrawingQuestion(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2023 Epic Systems Corporation */
!function WP$Questions$GroupQuestion$definition(){var s=function WP$Questions$GroupQuestion(s,e){this.WP$Questions$BaseQuestion(s,e)};s.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","DisplayStyle","DisplayStyleVal","IsTrigger","IsEnabled","AnswerChangedCallback","GroupQuestions","ShowGroupQuestionsAsList","AreAllQuestionsYesNo","HasAnyFollowUpQuestions","GroupQuestionLayout","GroupQuestionLayoutCSS","DisabledBecauseChildrenAllDisabled","Timer","Delay"],GroupQuestions:null,ShowGroupQuestionsAsList:!1,AreAllQuestionsYesNo:!1,HasAnyFollowUpQuestions:!1,MultiResponsePrompt:null,GroupQuestionLayout:0,GroupQuestionLayoutCSS:null,DisabledBecauseChildrenAllDisabled:!1,DisplayTemplateStyle:0,TableLayoutGroupQuestions:[],convertToCoreQuestionModel:function WP$Questions$GroupQuestion$convertToCoreQuestionModel(){var s,e,o={};for((o=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel()).GroupQuestions=[],s=0;s<this.GroupQuestions.Models.length;s++)e=this.GroupQuestions.Models[s].convertToCoreQuestionModel(),o.GroupQuestions.push(e);return o},_updateClassName:function WP$Questions$GroupQuestion$_updateClassName(){var s,e,o,t;if(null!==this.GroupQuestions){if(this.AreAllQuestionsYesNo&&!this.ShowGroupQuestionsAsList){switch(this.GroupQuestionLayout){case $$WP.Questions.GroupQuestionDisplayStyle.SingleColumn:t="col-12";break;case $$WP.Questions.GroupQuestionDisplayStyle.TwoColumn:t="col-6";break;case $$WP.Questions.GroupQuestionDisplayStyle.ThreeColumn:t="col-4";break;case $$WP.Questions.GroupQuestionDisplayStyle.FourColumn:t="col-3";case $$WP.Questions.GroupQuestionDisplayStyle.TableSingleColumn:case $$WP.Questions.GroupQuestionDisplayStyle.TableTwoColumn:}this.GroupQuestionLayoutCSS=this.GroupQuestionLayoutCSS+" allyesno"}for(o=this.GroupQuestions.Models,s=0;s<o.length;s++)null!==(e=o[s])&&(e.CssClassName=e.CssClassName+" questiongroupitem preload ",e.IncludeUnknown&&(e.CssClassName=e.CssClassName+"includesunknown "),t&&isDataTile()&&!$$WP.Utilities.UI.IsMobile&&!$$WPQuestionUtil.isFakeResponsive()&&(e.CssClassName=e.CssClassName+t))}},_updateMnemonics:function WP$Questions$GroupQuestion$_updateMnemonics(){$$WP.Strings.setDefaultNamespace("Questions"),this.AreAllQuestionsYesNo&&(this.MultiResponsePrompt=$$WP.Strings.getForTemplate("MultipleResponsePrompt")),$$WP.Strings.clearDefaultNamespace()},_updateValidationSettings:function WP$Questions$GroupQuestion$_updateValidationSettings(){this.ValidationSettings=new $$WP.FormValidation.ValidationSettings({atLeastOneChecked:this.IsRequired})},_getInvalidInputs:function WP$Questions$GroupQuestion$_getInvalidInputs(){var s,e=$afe.jq();for(s=0;s<this.GroupQuestions.Models.length;s++)$.merge(e,this.GroupQuestions.Models[s]._getInvalidInputs());return e},_areAllChildrenDisabled:function WP$Questions$GroupQuestion$_areAllChildrenDisabled(){var s,e;for(e=!0,s=0;s<this.GroupQuestions.Models.length;s++)if(this.GroupQuestions.Models[s].IsEnabled){e=!1;break}return e},_updateLayoutSettings:function WP$Questions$GroupQuestion$_updateTableLayoutSettings(){var s,e,o,t=0,u=1,i=0,n=0;if(this.GroupQuestionLayout===$$WP.Questions.GroupQuestionDisplayStyle.TableSingleColumn||this.GroupQuestionLayout===$$WP.Questions.GroupQuestionDisplayStyle.TableTwoColumn)for(this.TableLayoutGroupQuestions=[],null!==this.GroupQuestions.Models&&this.GroupQuestions.Models.length>0&&(t=this.GroupQuestions.Models[0].Choices.Models.length,i=this.GroupQuestions.Models.length,o=this.__enabledChildQuestionsCount()),78===$$WP.ApplicationContext?this.AreAllQuestionsYesNo||(this.GroupQuestionLayout=0):$$WP.Utilities.UI.IsMobile||$$WPQuestionUtil.isFakeResponsive()?t>3&&(this.GroupQuestionLayout=0):(t>11&&(this.GroupQuestionLayout=0),this.AreAllQuestionsYesNo&this.GroupQuestionLayout===$$WP.Questions.GroupQuestionDisplayStyle.TableTwoColumn&&(u=2),this.AreAllQuestionsYesNo&this.GroupQuestionLayout===$$WP.Questions.GroupQuestionDisplayStyle.TableSingleColumn&&(this.GroupQuestionLayoutCSS=this.GroupQuestionLayoutCSS+" tableSingleCol")),e=0;e<u;e++)s=n,n=this.__getQuestionEndPosForTheColumn(s,o,i,u),this.TableLayoutGroupQuestions[e]=jQuery.extend(!0,{},this.GroupQuestions),this.TableLayoutGroupQuestions[e].Models=this.TableLayoutGroupQuestions[e].Models.slice(s,n);this.HasAnyFollowUpQuestions?this.DisplayTemplateStyle=4:this.ShowGroupQuestionsAsList?this.DisplayTemplateStyle=1:this.GroupQuestionLayout===$$WP.Questions.GroupQuestionDisplayStyle.NumericInputFirstTable?this.DisplayTemplateStyle=8:this.GroupQuestionLayout===$$WP.Questions.GroupQuestionDisplayStyle.TableSingleColumn||this.GroupQuestionLayout===$$WP.Questions.GroupQuestionDisplayStyle.TableTwoColumn?(this.DisplayTemplateStyle=2,this.__updateQuestionPropsForTableLayout()):this.AreAllQuestionsYesNo&&this.GroupQuestionLayout>0&&this.GroupQuestionLayout<5&&(this.DisplayTemplateStyle=3)},__updateQuestionPropsForTableLayout:function __updateQuestionPropsForTableLayout(){var s,e;if((this.GroupQuestionLayout===$$WP.Questions.GroupQuestionDisplayStyle.TableSingleColumn||this.GroupQuestionLayout===$$WP.Questions.GroupQuestionDisplayStyle.TableTwoColumn)&&null!==this.GroupQuestions.Models)for(s=0;s<this.TableLayoutGroupQuestions.length;s++)e=this.TableLayoutGroupQuestions[s],this.__updateTableZebraStripeProps(e),this.__updateTableSelectDropDownProps(e)},__updateTableZebraStripeProps:function __updateTableZebraStripeProps(s){var e,o,t=!1;for(o=0;o<s.Models.length;o++)(t=s.Models[o]).IsEnabled&&(e=!e,t.HasZebraStripeOn=e)},__updateTableSelectDropDownProps:function __updateTableSelectDropDownProps(s){var e,o;for(e=0;e<s.Models.length;e++)(o=s.Models[e]).ShowAsSelectDropDown&&(o.ShowAsSelectDropDown=!1)},__enabledChildQuestionsCount:function __enabledChildQuestionsCount(){var s,e=0;for(s=0;s<this.GroupQuestions.Models.length;s++)this.GroupQuestions.Models[s].IsEnabled&&e++;return e},__getQuestionEndPosForTheColumn:function __getQuestionEndPosForTheColumn(s,e,o,t){var u,i,n=0,l=0;if(1===t||0!==s)n=o+1;else{if(0!==(i=Math.ceil(e/t)))for(u=s;u<o;u++)if(this.GroupQuestions.Models[u].IsEnabled&&l++,l===i){n=u+1;break}0===n&&(n=o+1)}return n},_isQuestionAnswered:function WP$Questions$GroupQuestion$_isQuestionAnswered(){return!1}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.GroupQuestion=s,s.extend($$WP.Questions.BaseQuestion,"WP$Questions$GroupQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$GroupQuestion(s){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017 Epic Systems Corporation */
!function WP$Questions$QuestionCollection$definition(){var e=$$WP.Questions.QuestionTypeEnum,o=$$WP.Questions.ResponseTypeEnum,t=function WP$Questions$QuestionCollection(e,o,t){this.WP$Common$ModelCollection(e,o,t)};t.prototype={convertToCoreQuestionArray:function WP$Questions$QuestionCollection$convertToCoreQuestionArray(t){var n,s,i=[],u=0;for(n=0;n<this.Models.length;n++)"function"==typeof(s=this.Models[n]).convertToCoreQuestionModel&&(!t||s.QuestionType!==e.Drawing&&s.ResponseType!==o.TimeWithUnits)&&(i[u++]=s.convertToCoreQuestionModel()),s=null;return i}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.QuestionCollection=t,t.extend($$WP.Common.ModelCollection,"WP$Questions$QuestionCollection")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$QuestionCollection(e){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017 Epic Systems Corporation */
!function ClassDefinition(){$$WP.Utilities.guaranteeExistence($$WP,"Questions");var t=function AddressFieldSettings(){};t.prototype={ValidationSettings:null,FormElementName:null,Prompt:null},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.AddressFieldSettings=t,t.extend($$WP.BaseObject,"WP$Questions$AddressFieldSettings")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$AddressFieldSettings(t){$$WP.Debug.UnitTest.assert}));;
/*! Copyright 2017-2021 Epic Systems Corporation */
!function WP$Questions$AddressQuestion$definition(){var t=$$WP.Questions.AddressFieldSettings,e=function WP$Questions$AddressQuestion(e,i){this.Street1FieldSettings=new t,this.Street2FieldSettings=new t,this.CityFieldSettings=new t,this.StateFieldSettings=new t,this.ZipCodeFieldSettings=new t,this.WP$Questions$BaseQuestion(e,i)};e.prototype={s_dataMembers:["ID","Name","DAT","QuestionType","ResponseType","Prompt","HelpText","IsRequired","IsMultiResponse","DisplayStyle","DisplayStyleVal","IsTrigger","IsEnabled","Street1","Street2","City","States","ZipCode"],Street1:null,Street2:null,City:null,States:null,ZipCode:null,PartiallyAnswered:!1,Street1FieldSettings:null,Street2FieldSettings:null,CityFieldSettings:null,StateFieldSettings:null,ZipCodeFieldSettings:null,GroupValidationSettings:null,DropDownDefaultOptionText:null,convertToCoreQuestionModel:function WP$Questions$AddressQuestion$convertToCoreQuestionModel(){var t,e,i,s,n,r,l={};for(l=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel(),t=0;t<this.States.length;t++)if(null!==(e=this.States[t])&&e.IsSelected){i={Index:e.Index};break}for(s={Street1:this.Street1,Street2:this.Street2,City:this.City,State:i,ZipCode:this.ZipCode},n=this._getInvalidInputs(),t=0;t<n.length;t++)switch(r=n[t],$afe.jq(r).safeAttr("name")){case this.Street1FieldSettings.FormElementName:s.Street1=null;break;case this.Street2FieldSettings.FormElementName:s.Street2=null;break;case this.CityFieldSettings.FormElementName:s.City=null;break;case this.StateFieldSettings.FormElementName:s.State=null;break;case this.ZipCodeFieldSettings.FormElementName:s.ZipCode=null;break;default:return null}return l.Answer={Address:s},l},_updateMnemonics:function WP$Questions$AddressQuestion$_updateMnemonics(){$$WP.Strings.setDefaultNamespace("Questions"),this.Street1FieldSettings.Prompt=$$WP.Strings.getForTemplate("AddressStreetPrompt"),this.Street2FieldSettings.Prompt=$$WP.Strings.getForTemplate("AddressStreetLineTwoPrompt"),this.CityFieldSettings.Prompt=$$WP.Strings.getForTemplate("AddressCityPrompt"),this.StateFieldSettings.Prompt=$$WP.Strings.getForTemplate("AddressStatePrompt"),this.ZipCodeFieldSettings.Prompt=$$WP.Strings.getForTemplate("AddressZipPrompt"),this.DropDownDefaultOptionText=$$WP.Strings.getForTemplate("DropDownDefaultOptionText"),$$WP.Strings.clearDefaultNamespace()},_updateValidationSettings:function WP$Questions$AddressQuestion$_updateValidationSettings(){this.Street1FieldSettings.ValidationSettings=new $$WP.FormValidation.ValidationSettings({required:this.IsRequired,maxLength:255}),this.Street2FieldSettings.ValidationSettings=new $$WP.FormValidation.ValidationSettings({maxLength:255}),this.StateFieldSettings.ValidationSettings=new $$WP.FormValidation.ValidationSettings({required:this.IsRequired}),this.CityFieldSettings.ValidationSettings=new $$WP.FormValidation.ValidationSettings({required:this.IsRequired,maxLength:255}),this.ZipCodeFieldSettings.ValidationSettings=new $$WP.FormValidation.ValidationSettings({required:this.IsRequired,isUSZipCode:!0}),this.GroupValidationSettings=new $$WP.FormValidation.ValidationGroup({name:this.FormElementName,allRequired:this.IsRequired,disableButtonsWhenEmpty:this.IsRequired,evaluateParentGroups:!0})},_getValidationSettingsForInput:function WP$Questions$AddressQuestion$_getValidationSettingsForInput(t){switch(t.safeAttr("name")){case this.Street1FieldSettings.FormElementName:return this.Street1FieldSettings.ValidationSettings;case this.Street2FieldSettings.FormElementName:return this.Street2FieldSettings.ValidationSettings;case this.CityFieldSettings.FormElementName:return this.CityFieldSettings.ValidationSettings;case this.StateFieldSettings.FormElementName:return this.StateFieldSettings.ValidationSettings;case this.ZipCodeFieldSettings.FormElementName:return this.ZipCodeFieldSettings.ValidationSettings;default:return null}},_getGroupValidationSettings:function WP$Questions$AddressQuestion$_getGroupValidationSettings(){return this.GroupValidationSettings},_getInvalidInputs:function WP$Questions$AddressQuestion$_getInvalidInputs(){var t,e;return t=$afe.select('[data-lql="'+this.ID+'"]'),0===(e=this.WP$Questions$BaseQuestion$_getInvalidInputs()).length&&(this._areAllQuestionsAnswered()||this._isQuestionAnswered()&&($$WPUtil.IsNullOrEmpty(this.Street1)&&$.merge(e,t.find("[name='"+this.Street1FieldSettings.FormElementName+"']")),$$WPUtil.IsNullOrEmpty(this.City)&&$.merge(e,t.find("[name='"+this.CityFieldSettings.FormElementName+"']")),this._isStateAnswered()||$.merge(e,t.find("[name='"+this.StateFieldSettings.FormElementName+"']")),$$WPUtil.IsNullOrEmpty(this.ZipCode)&&$.merge(e,t.find("[name='"+this.ZipCodeFieldSettings.FormElementName+"']")))),e},_updateMiscSettings:function WP$Questions$AddressQuestion$_updateMiscSettings(){this.WP$Questions$BaseQuestion$_updateMiscSettings(),this.Street1FieldSettings.FormElementName=this.FormElementName+"_street1",this.Street2FieldSettings.FormElementName=this.FormElementName+"_street2",this.CityFieldSettings.FormElementName=this.FormElementName+"_city",this.StateFieldSettings.FormElementName=this.FormElementName+"_state",this.ZipCodeFieldSettings.FormElementName=this.FormElementName+"_zip",this.PartiallyAnswered=this._isQuestionAnswered()&&!this._areAllQuestionsAnswered()},_updateAnswerFromDOM:function WP$Questions$AddressQuestion$_updateAnswerFromDOM(t,e){var i,s;if(null!==t&&"object"==typeof t&&t instanceof jQuery){switch(i=t.val(),t.safeAttr("name")){case this.Street1FieldSettings.FormElementName:s=this.Street1!==i,this.Street1=i;break;case this.Street2FieldSettings.FormElementName:s=this.Street2!==i,this.Street2=i;break;case this.CityFieldSettings.FormElementName:s=this.City!==i,this.City=i;break;case this.StateFieldSettings.FormElementName:s=this._updateStateAnswer(i);break;case this.ZipCodeFieldSettings.FormElementName:s=this.ZipCode!==i,this.ZipCode=i}s&&(this.HasAnswers=this._isQuestionAnswered(),this._triggerAnswerChangedCallback(t,e,!0))}},_updateStateAnswer:function WP$Questions$AddressQuestion$_updateStateAnswer(t){var e,i,s;for(i=0;i<this.States.length;i++)s=this.States[i],t&&t===s.Index?(s.IsSelected||(e=!0),s.IsSelected=!0):s.IsSelected&&(s.IsSelected=!1,e=!0);return e},_isQuestionAnswered:function WP$Questions$AddressQuestion$_isQuestionAnswered(){return!$$WPUtil.IsNullOrEmpty(this.Street1)||!$$WPUtil.IsNullOrEmpty(this.Street2)||!$$WPUtil.IsNullOrEmpty(this.City)||this._isStateAnswered()||!$$WPUtil.IsNullOrEmpty(this.ZipCode)},_areAllQuestionsAnswered:function WP$Questions$AddressQuestion$_hasAllQuestionsAnswered(){return!$$WPUtil.IsNullOrEmpty(this.Street1)&&!$$WPUtil.IsNullOrEmpty(this.City)&&this._isStateAnswered()&&!$$WPUtil.IsNullOrEmpty(this.ZipCode)},_isStateAnswered:function WP$Questions$AddressQuestion$_isStateAnswered(){for(var t,e=0;e<this.States.length;e++)if(this.States[e].IsSelected){t=!0;break}return t}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.AddressQuestion=e,e.extend($$WP.Questions.BaseQuestion,"WP$Questions$AddressQuestion")}(),$$WP.Debug.UnitTest=$$WP.Debug.UnitTest||{},$$WP.Debug.UnitTest.tests=$$WP.Debug.UnitTest.tests||[],$$WP.Debug.UnitTest.tests.push((function UnitTests$AddressQuestion(t){$$WP.Debug.UnitTest.assert}));;
!function WP$Questions$FamilyHistoryQuestion$definition(){var s=function WP$Questions$FamilyHistoryQuestion(s,i){this.WP$Questions$BaseQuestion(s,i)};s.prototype={s_dataMembers:["ID","DAT","QuestionType","ResponseType","IsRequired","IsMultiResponse","IsTrigger","IsEnabled","DisplayStyle","DisplayStyleVal"],_updateMnemonics:function WP$Questions$FamilyHistoryQuestion$_updateMnemonics(){},_updateValidationSettings:function WP$Questions$FamilyHistoryQuestion$_updateValidationSettings(){},_updateAnswerFromDOM:function WP$Questions$FamilyHistoryQuestion$_updateAnswerFromDOM(){},_isQuestionAnswered:function WP$Questions$FamilyHistoryQuestion$_isQuestionAnswered(){return!0}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.FamilyHistoryQuestion=s,s.extend($$WP.Questions.BaseQuestion,"WP$Questions$FamilyHistoryQuestion")}();;
!function WP$Questions$SearchTermQuestion$definition(){var e=function WP$Questions$SearchTermQuestion(e,s){this.SearchTerms=$$WP.Questions.SearchTermChoice.createSearchTermChoiceList(e.SearchTerms),this.WP$Questions$BaseQuestion(e,s)};e.prototype={s_dataMembers:["ID","DAT","QuestionType","ResponseType","Prompt"],SearchTerms:[],convertToCoreQuestionModel:function WP$Questions$SearchTermtQuestion$convertToCoreQuestionModel(){var e={};(e=this.WP$Questions$BaseQuestion$convertToCoreQuestionModel()).Answer={SearchTermID:""};const s=this.SearchTerms.find((e=>!0===e.IsSelected));return void 0!==s&&(e.Answer.SearchTermID=s.ID),e},_updateMnemonics:function WP$Questions$FamilyHistoryQuestion$_updateMnemonics(){},_updateValidationSettings:function WP$Questions$FamilyHistoryQuestion$_updateValidationSettings(){},_updateAnswerFromDOM:function WP$Questions$FamilyHistoryQuestion$_updateAnswerFromDOM(){},_isQuestionAnswered:function WP$Questions$FamilyHistoryQuestion$_isQuestionAnswered(){return!0}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.SearchTermQuestion=e,e.extend($$WP.Questions.BaseQuestion,"WP$Questions$SearchTermQuestion")}();;
!function ClassDefinition(){$$WP.Utilities.guaranteeExistence($$WP,"Questions");var e=function SearchTermChoice(e){this.WP$Common$Model(e)};e.prototype={s_dataMembers:["ID","Text","Type","Synonyms","IsSelected"],ID:"",Text:"",Type:0,Synonyms:[],IsSelected:!1,convertToCoreModel:function WP$Questions$SearchTermChoice$convertToCoreModel(){var e={};return e.ID=this.ID,e.Text=this.Text,e.Type=this.Type,e.Synonyms=this.Synonyms,e}},$$WP.Questions=$$WP.Questions||{},$$WP.Questions.SearchTermChoice=e,$$WP.Questions.SearchTermChoice.createSearchTermChoiceList=function WP$Questions$SearchTermChoice$createSearchTermChoiceList(e){var o=[];if(e)for(var t=0;t<e.length;++t){var n=new $$WP.Questions.SearchTermChoice(e[t]);o.push(n)}return o},e.extend($$WP.Common.Model,"WP$Questions$SearchTermChoice")}();;
/*0*/