(function(){var __webpack_modules__={71191:function(n,t,e){"use strict";e.d(t,{EW:function(){return m},Il:function(){return f},KJ:function(){return l},Kz:function(){return I},Mu:function(){return w},My:function(){return g},Nn:function(){return p},OD:function(){return a},TA:function(){return b},ay:function(){return d},qw:function(){return v},rh:function(){return h}});var r=e(120);function i(n,t){return n?n+"."+t:t}function o(n,t,e,o,u){void 0===u&&(u=4),o&&n.push((0,r.m9)("".concat(i(t,e)),o,u))}function u(n,t,e,o){"boolean"==typeof o&&n.push((0,r.LK)("".concat(i(t,e)),o))}function s(n,t,e,o){if("number"==typeof o){var u=Math.round(o);n.push((0,r.Ug)("".concat(i(t,e)),u))}}var a,c=function(n){var t="Activity.Result",e=[];return s(e,t,"Code",n.code),o(e,t,"Type",n.type),s(e,t,"Tag",n.tag),u(e,t,"IsExpected",n.isExpected),e.push((0,r.m9)("zC.Activity.Result","Office.System.Result")),e},f={contractName:"Office.System.Activity",getFields:function(n){var t="Activity",e=[];return o(e,t,"CV",n.cV),s(e,t,"Duration",n.duration),s(e,t,"Count",n.count),s(e,t,"AggMode",n.aggMode),u(e,t,"Success",n.success),n.result&&e.push.apply(e,c(n.result)),e.push((0,r.m9)("zC.Activity",this.contractName)),e}},l={getFields:function(n){var t="User",e=[];return o(e,t,"PrimaryIdentityHash",n.primaryIdentityHash),o(e,t,"PrimaryIdentitySpace",n.primaryIdentitySpace),o(e,t,"TenantId",n.tenantId,1),o(e,t,"TenantGroup",n.tenantGroup,1),u(e,t,"IsAnonymous",n.isAnonymous),u(e,t,"IsSignedIn",n.isSignedIn),o(e,t,"TelemetryRegion",n.telemetryRegion),e}},h={getFields:function(n,t){var e=[];return o(e,n,"Name",t.name),o(e,n,"State",t.state),e}},d={getFields:function(n){var t="UserAction",e=[];return s(e,t,"Id",n.id),o(e,t,"Name",n.name),o(e,t,"CommandSurface",n.commandSurface),o(e,t,"ParentName",n.parentName),o(e,t,"TriggerMethod",n.triggerMethod),s(e,t,"TimeOffsetMs",n.timeOffsetMs),e}};!function(n){n.Web="Web",n.Desktop="Desktop",n.Universal="Universal",n.Mobile="Mobile",n.Win32="Win32",n.Mac="Mac",n.iOS="iOS",n.Android="Android"}(a||(a={}));var m,v={getFields:function(n){var t="App",e=[];return o(e,t,"Name",n.name,1),o(e,t,"Platform",n.platform,1),o(e,t,"Version",n.version,1),e}},p={getFields:function(n){var t="Session",e=[];return o(e,t,"Id",n.id,1),o(e,t,"EcsETag",n.ecsETag,1),e}},g={getFields:function(n){var t=[];return t.push((0,r.m9)("Pillar",n.pillar)),t.push((0,r.m9)("Veto",n.veto)),t.push((0,r.LK)("IsIntentional",n.isIntentional)),t.push((0,r.LK)("IsInternal",n.isInternal)),t.push((0,r.LK)("AlertOnPillar",n.alertOnPillar)),t.push((0,r.LK)("IsSessionEndingError",n.isSessionEndingError)),u(t,void 0,"InStaging",n.inStaging),t}};!function(n){n.Automation="Automation",n.Dogfood="Dogfood",n.Microsoft="Microsoft",n.Insiders="Insiders",n.Production="Production"}(m||(m={}));var b,w,S,y,I={getFields:function(n){var t=[];return o(t,"Release","AudienceGroup",n.audienceGroup,1),t}};!function(n){var t="Copilot";!function(n){n.IsEnabled="IsEnabled",n.IsSeen="IsSeen",n.IsTried="IsTried",n.IsKept="IsKept",n.IsRejected="IsRejected"}(n.FeatureActionType||(n.FeatureActionType={})),function(n){n.ContentGeneration="Content Generation",n.Commanding="Commanding",n.QAandSummaries="QA and Summaries",n.Collaboration="Collaboration",n.Suggestions="Suggestions"}(n.Capability||(n.Capability={})),function(n){n.Chat="Chat",n.Canvas="Canvas",n.SuggestionsPane="Suggestions Pane",n.Backstage="Backstage"}(n.EntryPoint||(n.EntryPoint={})),function(n){n.Create="Create",n.Command="Command",n.Ask="Ask",n.Summarize="Summarize",n.Share="Share",n.Analyze="Analyze"}(n.Verb||(n.Verb={})),n.getFields=function(n){var e=[];return o(e,t,"FeatureActionType",n.featureActionType),u(e,t,"IsUserInitiated",n.isUserInitiated),o(e,t,"FeatureName",n.featureName),o(e,t,"SubFeatureName",n.subFeatureName),o(e,t,"Capability",n.capability),u(e,t,"IsThumbsUp",n.isThumbsUp),o(e,t,"EntryPoint",n.entryPoint),o(e,t,"Verb",n.verb),o(e,t,"InteractionId",n.interactionId),o(e,t,"ConversationId",n.conversationId),e.push((0,r.m9)("zC.".concat(t),"Office.System.Copilot")),e}}(b||(b={})),function(n){var t="Asha";!function(n){n.Pillar="Pillar",n.Error="Error"}(n.EventType||(n.EventType={})),n.getFields=function(n){var e=[];return o(e,t,"EventType",n.eventType),o(e,t,"Pillar",n.pillar),o(e,t,"Scenario",n.scenario),o(e,t,"Veto",n.veto),o(e,t,"Error",n.error),u(e,t,"InStaging",n.inStaging),u(e,t,"IsSessionEndingError",n.isSessionEndingError),u(e,t,"IsIntentional",n.isIntentional),u(e,t,"IsInternal",n.isInternal),e.push((0,r.m9)("zC.".concat(t),"Office.System.Asha")),e}}(w||(w={})),function(n){n.getFields=function(n,t){var e=[];return void 0!==t.name&&e.push((0,r.m9)("".concat(n,".Name"),t.name)),void 0!==t.platform&&e.push((0,r.m9)("".concat(n,".Platform"),t.platform)),void 0!==t.version&&e.push((0,r.m9)("".concat(n,".Version"),t.version)),void 0!==t.sessionId&&e.push((0,r.m9)("".concat(n,".SessionId"),t.sessionId)),void 0!==t.immediateHost&&e.push((0,r.m9)("".concat(n,".ImmediateHost"),t.immediateHost)),void 0!==t.subModuleName&&e.push((0,r.m9)("".concat(n,".SubModuleName"),t.subModuleName)),void 0!==t.context&&e.push((0,r.m9)("".concat(n,".Context"),t.context)),void 0!==t.referrer&&e.push((0,r.m9)("".concat(n,".Referrer"),t.referrer)),e}}(S||(S={})),function(n){var t="ContentIdentifier";n.getFields=function(n){var e=[];return e.push((0,r.m9)("".concat(t,".ContentType"),n.contentType)),e.push((0,r.m9)("".concat(t,".ContentId"),n.contentId)),void 0!==n.subContentType&&e.push((0,r.m9)("".concat(t,".SubContentType"),n.subContentType)),void 0!==n.subContentId&&e.push((0,r.m9)("".concat(t,".SubContentId"),n.subContentId)),e.push((0,r.m9)("zC.".concat(t),"Office.System.ContentIdentifier")),e}}(y||(y={}))},120:function(n,t,e){"use strict";function r(n,t,e){return a(n,1,t,e)}function i(n,t,e){return a(n,2,t,e)}function o(n,t,e){return a(n,3,t,e)}function u(n,t,e){return a(n,0,t,e)}function s(n,t,e){return a(n,4,t,e)}function a(n,t,e,r){return{name:n,dataType:t,value:e,classification:r||4}}e.d(t,{LK:function(){return r},Ug:function(){return i},ip:function(){return o},k:function(){return s},m9:function(){return u}})},2938:function(n,t,e){"use strict";e.d(t,{d$:function(){return o},vV:function(){return s},wC:function(){return u}});var r,i=(r=[],{fireEvent:function(n){r.forEach((function(t){return t(n)}))},addListener:function(n){n&&r.push(n)}});function o(){return i}function u(n,t,e){i.fireEvent({level:n,category:t,message:e})}function s(n,t,e){u(0,n,(function(){var n=e instanceof Error?e.message:"";return"".concat(t,": ").concat(n)}))}},79432:function(n,t,e){"use strict";e.d(t,{GV:function(){return b},EY:function(){return g}});var r=e(34629),i=e(2938),o={};function u(n,t){"Office."===n.substring(0,7)&&"."!==n[n.length-1]?o[n]?(t.ariaTenantToken&&(o[n].ariaTenantToken=t.ariaTenantToken),t.dnmToken&&(o[n].dnmToken=t.dnmToken)):o[n]=t:(0,i.wC)(0,0,(function(){return"Namespace: ".concat(n)}))}function s(n,t){for(var e=n.length;e>0;){var r=n.substr(0,e);if(o[r]){var i=o[r];return t.ariaTenantToken=i.ariaTenantToken,t.dnmToken=i.dnmToken,!0}e=n.lastIndexOf(".",e-1)}return!1}var a=9007199254740991,c=-a,f=/^Office(\.[A-Z][a-zA-Z0-9]*){2,}$/,l=/^[a-zA-Z0-9_\.]{1,95}$/;function h(n){(function(n){if(!n||n.length>98)return!1;return f.test(n)})(n.eventName)||v("eventName",n.eventName,f,98);var t=n.eventContract;t&&(t.name&&!d(t.name)&&v("eventContract",t.name,l),m(t.dataFields)),m(n.dataFields)}function d(n){return l.test(n)}function m(n){n&&n.forEach((function(n){"string"==typeof n.name&&d(n.name)||v("dataField name",n.name,l),2===n.dataType&&function(n){if("number"!=typeof n||!isFinite(n)||Math.floor(n)!==n||na)throw new Error("Invalid integer ".concat(JSON.stringify(n)))}(n.value)}))}function v(n,t,e,r){throw new Error("Invalid ".concat(n," '").concat(t,"' as it does not match regex ").concat(e)+(r?" or exceeds ".concat(r," chars"):""))}var p=e(120);function g(n){var t={eventName:n.eventName,eventFlags:n.eventFlags||{},telemetryProperties:n.telemetryProperties?(0,r.Cl)({},n.telemetryProperties):{},dataFields:n.dataFields?n.dataFields.slice():[],timestamp:n.timestamp||(new Date).getTime()};return n.eventContract&&(t.eventContract={name:n.eventContract.name,dataFields:n.eventContract.dataFields.slice()}),t}var b=function(){function n(t,e,i){var o,u,s;this.telemetrySinks=[],this.persistentDataFields=[],this.partAFields=[],this.eventQueue=[],this.config=i||{},this.instanceId=++n.instanceCounter,t&&(this.telemetrySinks=t.telemetrySinks,(o=this.persistentDataFields).push.apply(o,t.persistentDataFields),this.config=(0,r.Cl)((0,r.Cl)({},t.getConfig()),this.config),(u=this.partAFields).push.apply(u,t.partAFields)),e&&(s=this.persistentDataFields).push.apply(s,e)}return n.prototype.addEventContentType=function(n,t){n.push((0,p.Ug)("EventContent.Type",t))},n.prototype.sendTelemetryEvent=function(n){var t=g(n),e=t.telemetryProperties;e.nexusTenantToken=-1;var r=e.ariaTenantToken;if(!r&&(!s(t.eventName,e)&&!r))return void(0,i.wC)(0,0,(function(){return"No tenant token: "+n.eventName}));this.sendTelemetryEventInternal(t,1)},n.prototype.sendNonStandardEvent=function(n,t){var e=g(n);this.sendTelemetryEventInternal(e,t)},n.prototype.sendCustomerContent=function(n){var t=g(n),e=t.telemetryProperties,r=e.customerContentVersion;return(!r||r>2)&&(e.customerContentVersion=2),e.ariaTenantToken=void 0,e.nexusTenantToken=void 0,e.dnmToken=void 0,this.addEventContentType(t.dataFields,2),this.sendTelemetryEventInternal(t,2)},n.prototype.sendDirectNumericEvent=function(n){var t=g(n),e=t.telemetryProperties;if(!e.dnmToken&&(!s(t.eventName,e)&&!e.dnmToken))return void(0,i.wC)(0,0,(function(){return"No dnm token: "+t.eventName}));this.addEventContentType(t.dataFields,1),this.sendTelemetryEventInternal(t,3)},n.prototype.sendTelemetryEventInternal=function(n,t){if(2===t||!n.telemetryProperties.customerContentVersion&&!n.telemetryProperties.customerContentType){try{if(0===this.telemetrySinks.length)return void(this.config.enableQueue&&this.eventQueue.length<1e3?this.eventQueue.push([n,t]):(0,i.wC)(1,0,(function(){return"No telemetry sinks are attached."})));this.processTelemetryEvent(n,t)}catch(n){return void(0,i.vV)(0,"SendTelemetryEvent",n)}this.telemetrySinks.forEach((function(e){try{3===t||2===t?e.sendNonStandardEvent&&e.sendNonStandardEvent(n,t):e.sendTelemetryEvent(n)}catch(n){}}))}else(0,i.wC)(0,0,(function(){return"Customer content"}))},n.prototype.processTelemetryEvent=function(n,t){var e,r,i;if(n.dataFields&&(null===(i=n.dataFields)||void 0===i||i.unshift((0,p.m9)("OTelJS.Version","4.23.1139")),3!==t&&this.persistentDataFields&&(e=n.dataFields).unshift.apply(e,this.persistentDataFields)),this.partAFields.length>0){var o=n.eventContract||{name:"",dataFields:[]};(r=o.dataFields).push.apply(r,this.partAFields),n.eventContract=o}this.config.disableValidation||h(n)},n.prototype.addSink=function(n){this.telemetrySinks.push(n),this.flushQueue()},n.prototype.flushQueue=function(){var n=this.eventQueue;if(this.eventQueue=[],this.telemetrySinks.length>0)for(var t=0,e=n;to)return t.removeItem(e),t.removeItem(n),null;var u=t.getItem(n);return u&&JSON.parse(u)}(o)}function c(n){!function(n,t,e){var i=n+m,o=(0,r.Lg)();t?(o.setItem(i,JSON.stringify(Date.now()+e)),o.setItem(n,JSON.stringify(t))):(o.removeItem(i),o.removeItem(n))}(o,n,5e3)}function f(){return"true"===d(u)}function l(n){!function(n,t){t?(0,r.Lg)().setItem(n,t):(0,r.Lg)().removeItem(i)}(u,n?"true":null)}function h(){return!!d(i)}function d(n){return(0,r.Lg)().getItem(n)}var m=".timestamp"},91676:function(n,t,e){"use strict";e.d(t,{Mz:function(){return a},ZG:function(){return f},ab:function(){return c},n8:function(){return l}});var r=e(91264),i=e(1020),o=e(13472),u=e(97410),s=(0,o.Jh)((function(){var n;try{var t=null!==(n=window.trustedTypes)&&void 0!==n?n:{createPolicy:function(n,t){return t||void 0}};if(t&&t.createPolicy)return t.createPolicy("formsTrustedTypePolicy",{createScriptURL:function(n){if(!(0,i.$r)())return n;try{if((0,i.qU)(n))return n}catch(e){var t=e;return(0,u.g2)("TrustedType.TrustedScriptURL.Error",{error:t.message,detail:n}),n}},createScript:function(n){return(0,i.$r)()?(0,i.BC)(n):n},createHTML:function(n){return(0,i.$r)()?(0,i.lz)(n):n}})}catch(n){return null}})),a=(0,o.Jh)((function(){var n;try{var t=null!==(n=window.trustedTypes)&&void 0!==n?n:{createPolicy:function(n,t){return t||void 0}};if(t&&t.createPolicy)return t.createPolicy("formsRichTextSanitizePolicy",{createHTML:function(n){if(!(0,i.$r)())return n;return r.A.sanitize(n,{ADD_ATTR:["mathquill-command-id","mathquill-block-id"],ALLOWED_TAGS:["strong","em","u","b","i","ul","li","span","ol","br"]})}})}catch(n){return null}}));function c(n){var t=s();return t?t.createScriptURL(n):n}function f(n){var t=s();return t?t.createScript(n):n}function l(n){var t=s();return t?t.createHTML(n):n}},524:function(n,t,e){"use strict";e.d(t,{Xi:function(){return u},lH:function(){return o},lq:function(){return i}});var r=e(91676);function i(n,t){n.src=(0,r.ab)(t)}function o(n,t){n.innerHTML=(0,r.n8)(t)}var u=function(n,t){var e=(0,r.Mz)();try{if(!e||"function"!=typeof e.createHTML)throw new Error("policy is not available or createHTML is not a function");n.innerHTML=e.createHTML(t)}catch(e){n.innerHTML=t}}},48723:function(n,t,e){"use strict";e.d(t,{IX:function(){return o},UF:function(){return d},bH:function(){return l},i0:function(){return h},iN:function(){return f},si:function(){return s}});function r(n){var t=[n.R,n.G,n.B].map((function(n){return(n/=255)<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]}function i(n){return(r({R:255,G:255,B:255})+.05)/(r(n)+.05)>4.5}function o(n){return i(n)?{R:255,G:255,B:255}:{R:0,G:0,B:0}}function u(n){var t=n.toString(16);return 1===t.length?"0".concat(t):t}function s(n){return"#".concat(u(n.R)).concat(u(n.G)).concat(u(n.B))}function a(n){var t,e=n.R,r=n.G,i=n.B,o=Math.max(e,r,i),u=Math.min(e,r,i),s=o-u,a=0===o?0:s/o,c=o/255;switch(o){case u:t=0;break;case e:t=r-i+s*(r>16&255,G:t>>8&255,B:255&t}}function l(n){var t=f(n),e=a(t);return r(t)>186&&(e.V=.45,t=c(e)),s(t)}function h(n){var t=a(f(n));return s(c({H:t.H,S:t.S,V:t.V>=.1?t.V-.1:0}))}function d(n){var t,e=a(f(n));return t=e.S>.05?.05:0,s(c({H:e.H,S:t,V:.95}))}},30062:function(n,t,e){"use strict";e.d(t,{Br:function(){return u},Dt:function(){return o},Nu:function(){return i},Rm:function(){return f},TY:function(){return r},UD:function(){return a},c:function(){return c},ew:function(){return s},g5:function(){return h},i0:function(){return d},vR:function(){return l}});var r="#242424",i="#616161",o="#bdbdbd",u="#f0f0f0",s="#03787c",a="#014446",c="#fff",f="transparent",l=s,h=a,d="#e8f2f4"},67983:function(n,t,e){"use strict";var r=e(41594),i=r.Suspense;t.A=function(n){var t=n.children,e=n.fallback;return r.createElement(i,{fallback:e||null},t)}},61775:function(n,t,e){"use strict";e.d(t,{s:function(){return u}});var r=e(34629),i=e(41594),o=e(84905);var u=i.forwardRef((function(n,t){var u=n.$as,s=void 0===u?"span":u,a=n.$html,c=n.isFriendlyLinkForRichText,f=(0,r.Tt)(n,["$as","$html","isFriendlyLinkForRichText"]),l=s,h=(0,o.U)({$text:a}),d=i.useState(a),m=d[0],v=d[1];return i.useEffect((function(){var n;c?(n=a,(0,r.sH)(void 0,void 0,void 0,(function(){var t,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,e.e(579).then(e.bind(e,94668))];case 1:return t=r.sent().markdownLinkify,[2,(i=t(n)).map((function(n,t){if(t%3==0)return n;if(t%3==1){var e=n,r=i[t+1],o=e.match(/<(?:b|i|u)>(.*?)<\/(?:b|i|u)>/),u=o?o[1]:e;return'').concat(r,"")}return null})).join("")]}}))}))).then((function(n){v(n)})):v(a)}),[a,c]),h?i.createElement(l,(0,r.Cl)({},f,{dangerouslySetInnerHTML:{__html:(0,o.U)({$text:m})},ref:t})):i.createElement(l,(0,r.Cl)({},f,{ref:t}))}))},77331:function(n,t,e){"use strict";var r,i,o,u,s;e.d(t,{CA:function(){return s},GG:function(){return i},X4:function(){return u},w2:function(){return o}}),function(n){n.Contact="Contact"}(r||(r={})),function(n){n[n.NotAvailable=1]="NotAvailable",n[n.NotAvailableDueToSettingChange=2]="NotAvailableDueToSettingChange",n[n.NotAvailableDueToCountryAvailablity=3]="NotAvailableDueToCountryAvailablity",n[n.ExhaustedPromocodes=4]="ExhaustedPromocodes",n[n.Available=5]="Available",n[n.Success=6]="Success",n[n.Failed=7]="Failed",n[n.SuccessWithNoData=8]="SuccessWithNoData"}(i||(i={})),function(n){n[n.EmbedInline=0]="EmbedInline",n[n.EmbedPopup=1]="EmbedPopup",n[n.EmbedButton=2]="EmbedButton"}(o||(o={})),function(n){n[n.Standard=0]="Standard",n[n.Compact=1]="Compact"}(u||(u={})),function(n){n.RuntimeCssVars="FormsRuntimeCssVars",n.RuntimeHtmlDataAttrs="FormsRuntimeHtmlDataAttrs"}(s||(s={}))},55132:function(n,t,e){"use strict";e.d(t,{n:function(){return o}});var r=e(88326),i=["https://forms.office.com","https://forms.office-int.com","https://forms.osi.apps.mil","https://forms.osi.office365.us","https://forms.microsoft.com","https://forms.cloud.microsoft","https://forms.cloud.dev.microsoft","https://msit.microsoftstream.com","https://web.microsoftstream.com","https://microsoftapc.sharepoint.com","https://powerpoint.cloud.microsoft","https://teams.microsoft.com","https://teams.cloud.microsoft","https://microsoft.sharepoint-df.com","https://www.onenote.com","https://onenote.cloud.microsoft","https://sway.office.com","https://sway.cloud.microsoft","https://approvals.teams.microsoft.com","https://approvalsint.teams.microsoft.com","https://approvalsppe.teams.microsoft.com","https://approvals.gcc.teams.microsoft.com","https://approvals.gov.teams.microsoft.us","https://approvals.dod.teams.microsoft.us","https://healthcarestaging.teams.microsoft.com","https://healthcareppe.teams.microsoft.com","https://healthcaredev.teams.microsoft.com","https://healthcaredogfood.teams.microsoft.com","https://healthcare.teams.microsoft.com","https://outlook.office365.com","https://purview.azure-test.com","https://purview.azure.com","https://outlook-sdf.office.com","https://www.office.com","https://outlook.office.com","https://outlook.cloud.microsoft","https://outlook.cloud.dev.microsoft","https://fa000000084.resources.office.net","https://fa000000096.resources.office.net","https://fluidhostwin32.azurewebsites.net","https://fluidhostwin32-dev.azurewebsites.net","https://dev.ch5.fluidpreview.office.net","https://dev.fluidpreview.office.net","https://fluidpreview.office.net","https://fluidhostwin32-staging.azurewebsites.net","https://office.com","https://reports.teams.microsoft.com","https://reports-ppe.teams.microsoft.com","https://reports-int.teams.microsoft.com","https://sci.local.dynamics.com","https://sci.test.dynamics.com","https://sci.us-cm100.gateway.test.cm.powerapps.com","https://ch5.fluidpreview.office.net","https://officefluidprdeployments.azurewebsites.net","https://df.loop.microsoft.com","https://dev.loop.microsoft.com","https://loop.microsoft.com","https://local.loop.microsoft.com","https://loop.cloud.microsoft","https://loop.cloud.dev.microsoft","https://dev.whiteboard.microsoft.com","https://whiteboard.cloud.dev.microsoft","https://app.int.whiteboard.microsoft.com","https://whiteboard.office.com","https://whiteboard.microsoft.com","https://app.whiteboard.microsoft.com","https://whiteboard.cloud.microsoft","https://microsoft-my.sharepoint-df.com","https://tasks.office.com","https://canary.tasks.office.net","https://planner.cloud.microsoft","https://tasks.teams.microsoft.com","https://retailservices-ppe.teams.microsoft.com","https://tasks.gcc.teams.microsoft.com","https://m365.cloud.microsoft","https://neuprodprv.www.office.com","https://scuprodprv.www.microsoft365.com","https://scuprodprv.www.office.com","https://www.microsoft365.com","https://sbrprodprv.www.office.com","https://sbrprodprv.www.microsoft365.com","https://copilot.cloud.microsoft","https://copilot.cloud-dev.microsoft","https://ccm.mobile.m365.svc.cloud.microsoft","https://scuprodprv.m365.cloud.microsoft","https://sbrprodprv.m365.cloud.microsoft","https://o365.coca-cola.com"];function o(n){return function(n){return-1!==i.indexOf(n.toLowerCase())}(n)||function(n){var t=(0,r.aI)("ParentOriginWhitelist");return!!t&&(-1!==t.indexOf(n.toLowerCase())||function(n,t){for(var e=0,r=t;e=0&&-1!==n.indexOf(i,o))return!0}return!1}(n.toLowerCase(),t))}(n)}},71533:function(n,t,e){"use strict";e.d(t,{T0:function(){return u},rG:function(){return s}});var r=e(88326),i=e(17891),o="/cdn";function u(){var n=(0,i.m1)();return"cdnEndpoint"in n?n.cdnEndpoint:(0,r.mt)("FormsOcdiHost")===window.location.hostname.toLowerCase()?(0,r.mt)("FormsCdnOcdiEndpoint"):(0,r.mt)("CdnEndPoint")}function s(n,t){void 0===t&&(t=!1);var e=u();return function(n,t,e,r){void 0===r&&(r=!1);if(!n)return"";var i=r?n:n.toLowerCase();if(!t)return i;return(e||o)+i}(n,(0,i.m1)().isCdnEnabled,e,t)}},78669:function(n,t,e){"use strict";e.d(t,{CS:function(){return a},VG:function(){return s}});var r=e(17891),i=e(71533),o="/FormsPro",u={defaultFolder:{css:"/css/dist/",js:"/Scripts/dists/"},vendorsFolder:{css:"/css/",js:"/Scripts/"}};function s(n){return n?(0,r.m1)().isCdnEnabled?(0,i.rG)(n):(0,r.m1)().addPrefixForProWhenNoCdn?o+n:n:""}function a(n,t){if(!n)return"";var e=n.split(".").pop();if("js"!==e&&"css"!==e)return n;var s=function(n,t){return(/^vendors\//i.test(n)?u.vendorsFolder:u.defaultFolder)[t]}(n,e)+n,a=(0,r.m1)().hashMapping,c=(0,r.m1)().isCdnEnabled;if(c&&void 0!==a){var f=a[n.toLowerCase()];if(void 0!==f){var l=s.replace(new RegExp(e+"$"),"".concat(f,".").concat(e));return(0,i.rG)(l)}}var h=s+(t?"?v="+(0,r.m1)().version:""),d=(0,r.m1)().ring;return!c&&d&&(h="".concat(h).concat(t?"&":"?","ring=").concat(d)),(0,r.m1)().addPrefixForProWhenNoCdn?o+h:h}},91930:function(n,t,e){"use strict";e.d(t,{$X:function(){return c},l5:function(){return f}});var r,i=e(34629),o=e(17891),u={settings:"",configIds:"",etag:""},s=!1;function a(){if(!s){var n="Unknown",t={IntelligenceExp1:n,IntelligencePollContentExp:n,IntelligencePollEngageExp:n,IntelligencePollIntentExp:n,IntelligencePollResponseViewExp:n,IntelligencePopupDisable:0,SurveyContentIteration:n,ThemeRanker:0,TeamsPollCreateNewExp:0,SdxDataSyncExp:0,AnalysisPageV2PrepExp:0,ActionInsightsAutoOpen:0,ThanyouPageV3:0,ThanyouPageConsumerPromo:0,ViewResultSideBar:0,FormsCopilotDistributionExp:0,FormsCopilotCommentingExp:0,FormsCopilotRefineV4Exp:0,FormsCopilotCreateForm41Exp:0,FormsCopilotRefineForm41Exp:0,DecoupledMonitoringEnabled:0,Day1FREExp:0,Day1FRETryoutExp:0,Day1Revamp:0,Day1RevampTryout:!1,Day1OnboardingForRC:0,RevampCITTemplate:0,RevampCITTwoCategories:0,RevampJTBDTemplate:0,SwitchQuestionTypeExp:0,FormsCopilotEnableImplicitGrounding:0,CopilotAgentDistributionExp:0,FormsCopilotSuggestionHistoryExp:0,CopilotMonitoringResponsePageEnabled:0};r=(0,o.m1)().ecsConfigSettings||u,(0,i.Cl)((0,i.Cl)((0,i.Cl)({},t),function(n){var t;try{t=JSON.parse(decodeURI(n||"{}"))}catch(n){t={}}return t}(r.settings)),{}),s=!0}}function c(){return s||a(),r.configIds}function f(){return s||a(),"true"===r.isFirstRelease}},53013:function(n,t,e){"use strict";e.d(t,{mc:function(){return i},Rd:function(){return p},T0:function(){return u},SM:function(){return s},QK:function(){return g},jN:function(){return d},cK:function(){return m},GZ:function(){return c},hD:function(){return b},KV:function(){return o},_x:function(){return a},hF:function(){return h},bQ:function(){return l},Zl:function(){return f},A_:function(){return v}});var r=e(17891);function i(){return(0,r.m1)().environmentType}function o(){return n=i(),/.*Prod$/.test(n)||"CVTip"===n||"CVFastfood"===n||"USNat"===n||"USSec"===n;var n}function u(){return function(n){switch(n){case"WWProd":case"CVProd":case"CVTip":case"CVFastfood":return"9188040d-6c67-4c5b-b112-36a304b66dad";default:return"4925308c-f164-4d2d-bc7e-0631132e9375"}}(i())}function s(){return function(n){switch(n){case"WWProd":case"CVProd":case"CVTip":case"CVFastfood":return"72f988bf-86f1-41af-91ab-2d7cd011db47";default:return"f686d426-8d16-42db-81b7-ab578e110ccd"}}(i())}function a(){return"USGovProd"===(n=i())||"USDoDProd"===n||"USGovGccProd"===n||"USNat"===n||"USSec"===n;var n}function c(){return"USGovProd"===(n=i())||"USDoDProd"===n||"USNat"===n||"USSec"===n;var n}function f(){return"USGovGccProd"===i()}function l(){return"USGovProd"===i()}function h(){return"USDoDProd"===i()}function d(){return"USNat"===i()}function m(){return"USSec"===i()}function v(){return"WWProd"===(n=i())||"CVProd"===n||"CVTip"===n||"CVFastfood"===n;var n}function p(){return function(n){switch(n){case"WWProd":case"CVProd":case"CVTip":case"CVFastfood":return["89d8a01e-e5db-493e-8720-b820d953ef20","b6338c92-533e-4f6d-a327-994263712399"];default:return["f686d426-8d16-42db-81b7-ab578e110ccd"]}}(i())}function g(){return(n=window.location.hostname).endsWith(".office.com")?"https://c.office.com":n.endsWith(".microsoft.com")?"https://c1.microsoft.com":n.endsWith(".office-int.com")?"https://c.office-int.com":null;var n}function b(){return window.location.host.toLocaleLowerCase().indexOf(".forms.osi.office.net")>0}},9468:function(n,t,e){"use strict";e.d(t,{$x:function(){return P},AB:function(){return M},EO:function(){return F},Fx:function(){return D},Ji:function(){return p},Ln:function(){return b},MQ:function(){return E},NH:function(){return v},P$:function(){return N},PG:function(){return I},R7:function(){return w},TI:function(){return T},Wj:function(){return U},Y7:function(){return S},_G:function(){return O},f0:function(){return d},fI:function(){return x},fL:function(){return R},jG:function(){return m},jr:function(){return V},li:function(){return A},oW:function(){return L},t2:function(){return _}});var r,i=e(13472),o=e(17891),u=e(75187);!function(n){n[n.signup=1]="signup"}(r||(r={}));var s,a,c,f,l,h,d="auth_pvr",m="platform",v="jsSdkVersion",p="id",g=!1;function b(){return c||S()}function w(){return h||(h=(0,u.Db)().appid)}function S(){var n=c||(0,u.Db)().Host||(0,u.$K)().Host;switch(n){case"Assignments":case"BizChat":case"Bookings":case"CreateModule":case"Tasks":case"EmbedTestPage":case"Excel":case"Excel_Win32":case"Fluid_Component":case"Loop":case"ODC":case"OneDrive":case"OneNote":case"OneNoteUwp":case"Outlook":case"Outlook_Web_App_Fluid":case"PowerPointContent":case"PowerPointTaskpane":case"ProjectShimla":case"Stream":case"StreamMobile":case"SupplyChainInsights":case"Teams":case"TeamsApproval":case"TeamsBot":case"TeamsPollTab":case"TeamsPollBubble":case"TeamsBotForLife":case"TeamsReports":case"TeamsTab":case"Union":case"Word_Web":case"Word_Web_Fluid":return n;default:return null}}function y(){return f||r[f&&r[f]||(0,u.Db)().redirectorigin||(0,u.$K)().redirectorigin]}function I(){return s||(0,u.Db)().groupId||(0,u.$K)().groupId}function F(){return a||(0,u.Db)().tid||(0,u.$K)().tid}function C(){return l}function _(){return S()?!k():!!(0,o.m1)().isOembedSPO}var k=(0,i.Jh)((function(){var n=(0,u.Yn)();return!("OneDrive"!==S()||!n.docliburl&&!n.folderuniqueid&&!n.driveid)}));function P(){var n=b();return("Teams"===n||"TeamsBot"===n||"TeamsPollTab"===n||"TeamsPollBubble"===n||"TeamsBotForLife"===n)&&"undefined"!=typeof microsoftTeams}function T(){return"Guest"===C()||"Anonymous"===C()}function N(){return"Bookings"===b()}function R(){return"Assignments"===b()}function E(){return"Union"===b()}function L(){return"/pages/assignmentsdesignpage.aspx"===window.location.pathname.toLowerCase()||"/pages/assignmentsresponsepage.aspx"===window.location.pathname.toLowerCase()}function O(){return P()||R()||"Stream"===b()||"StreamMobile"===b()||("Bookings"===(n=b())||"Tasks"===n||"EmbedTestPage"===n||"Loop"===n||"PurView"===n||"Stream"===n||"SupplyChainInsights"===n||"Teams"===n||"TeamsApproval"===n||"TeamsReports"===n);var n}function x(){return"PowerPointTaskpane"===b()||"PowerPointContent"===b()||"PowerPointLive"===b()}function D(){return-1!==window.location.pathname.indexOf("FluidFormPage")}function M(){return y()===r.signup}function A(){return g}function V(){return(0,u.Db)().cdsId}function U(){return(0,u.Db)().cdsRegion}},30092:function(n,t,e){"use strict";e.d(t,{J:function(){return i}});var r=e(17891);function i(){return(0,r.m1)().isOembedSPO}},44550:function(n,t,e){"use strict";e.d(t,{J:function(){return o},P:function(){return u}});var r=e(17891),i=e(75187);function o(){var n=(0,r.m1)().cultureInfo;return n&&n.Name||(0,i.Db)().lang||""}function u(){return document&&document.body&&"rtl"===document.body.getAttribute("dir")}},89139:function(n,t,e){"use strict";e.d(t,{Q:function(){return r}});var r=(0,e(13472).PD)(0)},1879:function(n,t,e){"use strict";e.d(t,{GT:function(){return o},M5:function(){return i},zQ:function(){return u}});var r="/formspro";function i(n){var t=n&&n.toLowerCase()||window.location.pathname.toLowerCase();switch(u()&&(t=t.substring(r.length)),t){case"/pages/designpage.aspx":case"/pages/teamsdesignpage.aspx":case"/pages/onenoteaddinpage.aspx":case"/pages/delegatepage.aspx":case"/pages/teamsmeetingpollpage.aspx":case"/pages/designpagev2.aspx":return"Design";case"/pages/responsepage.aspx":case"/pages/teamsresponsepage.aspx":return"Response";case"/pages/analysispage.aspx":return"Analyze";case"/pages/teamsconfigpage.aspx":return"TeamsConfig";case"/pages/shareformpage.aspx":return"ShareForm";case"/pages/responsepreviewpage.aspx":return"ResponsePreviewPage";case"/pages/adminphishingreviewpage.aspx":return"AdminPhishingReviewPage";case"/pages/fluidformpage.aspx":return"Fluid";case"/pages/filedownloadpage.aspx":return"FileDownload";case"/pages/responsedetailpage.aspx":return"ResponseDetailPage";default:return"Unknown"}}function o(){var n=window.location.host.toLocaleLowerCase();return n.indexOf("cus-000.forms.osi.office.net")>=0||n.indexOf("tip.forms.office.com")>=0||n.indexOf("tip.customervoice.microsoft.com")>=0}function u(){return!!window.location.pathname.toLocaleLowerCase().startsWith(r)}},39980:function(n,t,e){"use strict";e.d(t,{EC:function(){return i}});var r=e(53013);function i(){var n;switch((0,r.mc)()){case"USDoDProd":n="https://forms.osi.apps.mil/";break;case"USGovProd":n="https://forms.osi.office365.us/";break;case"USGovGccProd":case"WWProd":default:n=o();break;case"USNat":n="https://forms.osi.eaglex.ic.gov/";break;case"USSec":n="https://forms.osi.microsoft.scloud/"}return n}function o(){return"https://".concat(window.location.hostname,"/")}},9597:function(n,t,e){"use strict";e.d(t,{v:function(){return i}});e(88326);var r=e(75187);function i(){var n=(0,r.Db)().route;if(n){var t=n.toLowerCase();switch(t){case"groupforms":case"myforms":case"officehome":case"start":case"templates":return t;default:return"others"}}}},46302:function(n,t,e){"use strict";e.d(t,{Cv:function(){return u},Qk:function(){return c},fF:function(){return a},lp:function(){return o},w5:function(){return s}});var r=e(17891),i=e(53013),o="https://go.microsoft.com/fwlink/?linkid=866263",u="https://go.microsoft.com/fwlink/p/?LinkId=2083423";function s(){return(0,i.Zl)()?"https://portal.office.com/account/#subscriptions":(0,i.bQ)()?"https://portal.office365.us/account/#subscriptions":(0,i.hF)()?"https://portal.apps.mil/account/#subscriptions":(0,i.jN)()?"https://admin.eaglex.ic.gov":(0,i.cK)()?"https://admin.microsoft.scloud":u}function a(){return o}function c(){return(0,r.m1)().userInfo.IsMsa?a():s()}},16038:function(n,t,e){"use strict";e.d(t,{Bf:function(){return S},C3:function(){return s},E$:function(){return c},Fr:function(){return o},H8:function(){return l},Ko:function(){return b},Qv:function(){return a},UP:function(){return h},lT:function(){return f},m0:function(){return g},nr:function(){return p},oq:function(){return d},uB:function(){return w},un:function(){return m},xy:function(){return v}});var r=e(88326);function i(){return navigator.userAgent.toLocaleLowerCase()}function o(){var n=i();return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iPad|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4))}function u(){return window.innerWidth}function s(){return o()&&a()}function a(){return u()<=640}function c(){return-1!==i().search("windows nt 10.")}function f(){var n=i();return-1!==n.indexOf("msie")||-1!==n.indexOf("trident/")}function l(){var n=i();return-1!==n.indexOf("chrome/")&&-1===n.indexOf("edge/")&&-1===n.indexOf("edg/")}function h(){var n=i();return-1!==n.indexOf("edge/")||-1!==n.indexOf("edg/")}function d(){return-1!==i().indexOf("firefox/")}function m(){return/ip(hone|od|ad)/.test(i())&&!window.MSStream||i().includes("mac")&&"ontouchend"in document}function v(){var n=i(),t=-1!==n.indexOf("version/9")||-1!==n.indexOf("version/13");return-1!==n.indexOf("mac os x")&&t&&-1!==n.indexOf("safari")}function p(){return/^((?!chrome|android).)*safari/i.test(i())}function g(){return!!i().match(/android/i)}function b(){return-1!==i().indexOf("tbs/")}function w(){return-1!==i().indexOf("micromessenger/")}function S(){return-1!==navigator.platform.toLowerCase().indexOf("win")}(0,r.JY)("SearchEngineBotList")},56395:function(n,t,e){"use strict";e.d(t,{y_:function(){return o},Uk:function(){return u},hq:function(){return s}});var r=e(90547),i=["Loading chunk"];function o(n,t){var e=n,o=n;return!(e||o||!(0,r.Ug)(n))||(a(t,e&&e.type,e&&e.statusCode)||function(n){if(!n)return!1;for(var t=0,e=i;t=0||n.stack&&n.stack.indexOf(r)>=0)return!0}return!1}(o))}function u(n,t){return a(t,n&&n.failureType,n&&n.statusCode)}function s(n){var t=n;if(t&&t.statusCode)return JSON.stringify({correlationId:t.correlationId,innerCode:t.innerCode,innerMessage:t.innerMessage,isServerError:t.isServerError,statusCode:t.statusCode,statusText:t.statusText,type:t.type});var e=n;return e&&e.message?JSON.stringify({message:e.message,name:e.name,stack:c(e.stack)}):c(JSON.stringify(n||""))}function a(n,t,e){switch(n){case"Information":case"FormsProInformation":return!0;case"Error":return!1;default:switch(t){case"Failure":return!1;case"ExpectedFailure":return!0;default:if(e>=0&&e<500)return!0}}return!1}function c(n){return n&&"string"==typeof n&&n.toLowerCase().indexOf("auth_upn")<0&&n.toLowerCase().indexOf("token")<0?n:n?"Sanitized error":""}},41103:function(n,t,e){"use strict";e.d(t,{Oo:function(){return i},yP:function(){return r}});var r="Customized Theme",i="Default Theme";"https://".concat("cdn.hubblecontent.osi.office.net","/")},47796:function(n,t,e){"use strict";e.d(t,{Bn:function(){return s},Y6:function(){return c},Z0:function(){return f},qX:function(){return a}});var r={af:"Afrikaans","am-et":"አማርኛ (ኢትዮጵያ)‎",ar:"العربية","as-in":"অসমীয়া (ভাৰত)‎","az-latn-az":"Azərbaycan (Azərbaycan)‎",bg:"Български","bn-in":"বাংলা (ভারত)‎","bs-latn-ba":"Bosanski (Bosna i Hercegovina)‎",ca:"Català","ca-es-valencia":"Valencià (Espanya)‎",cs:"Čeština","cy-gb":"Cymraeg (Y Deyrnas Unedig)‎",da:"Dansk",de:"Deutsch",el:"Ελληνικά","en-gb":"English (United Kingdom)‎","en-us":"English (United States)‎","es-ES":"Español (España, alfabetización internacional)","es-mx":"Español (México)‎",et:"Eesti",eu:"Euskara",fa:"فارسی",fi:"Suomi","fil-ph":"Filipino (Pilipinas)‎","fr-FR":"Français (France)","fr-ca":"Français (Canada)‎","ga-ie":"Gaeilge (Éire)‎",gd:"Gàidhlig",gl:"Galego",gu:"ગુજરાતી",he:"עברית",hi:"हिन्दी",hr:"Hrvatski",hu:"Magyar",id:"Indonesia",is:"íslenska",it:"Italiano",ja:"日本語",ka:"ქართული",kk:"қазақ тілі","km-kh":"ភាសាខ្មែរ (កម្ពុជា)‎",kn:"ಕನ್ನಡ",ko:"한국어",kok:"कोंकणी","lb-lu":"Lëtzebuergesch (Lëtzebuerg)‎",lo:"ລາວ",lt:"Lietuvių",lv:"Latviešu","mi-nz":"Te reo Māori (Aotearoa)‎",mk:"македонски",ml:"മലയാളം",mr:"मराठी",ms:"Melayu","mt-mt":"Malti (Malta)‎","nb-no":"Norsk bokmål (Norge)‎","ne-np":"नेपाली (नेपाल)‎",nl:"Nederlands","nn-no":"Nynorsk (Noreg)‎","or-in":"ଓଡ଼ିଆ (ଭାରତ)‎",pa:"ਪੰਜਾਬੀ",pl:"Polski","pt-br":"Português (Brasil)‎","pt-pt":"Português (Portugal)‎","quz-pe":"Runasimi (Perú)‎",ro:"Română",ru:"Pусский",sk:"Slovenčina",sl:"Slovenščina",sq:"Shqip","sr-cyrl-ba":"Cрпски (Босна и Херцеговина)‎","sr-cyrl-rs":"Cрпски (Србија)‎","sr-latn-rs":"Srpski (Srbija)‎",sv:"Svenska",ta:"தமிழ்",te:"తెలుగు",th:"ไทย",tr:"Türkçe",tt:"Татар",ug:"ئۇيغۇرچە",uk:"Українська",ur:"اُردو",vi:"Tiếng Việt","zh-Hans":"中文(简体)‎","zh-Hant":"中文(繁體)‎"},i={"tk-tm":"Türkmen dili (Türkmenistan)‎"},o=["ar","az","dv","fa","ff","he","ku","nqo","syr","ug","ur"],u=["ar-","he-"];function s(n){var t=n.toLowerCase();return-1!==o.indexOf(t)||!!u.find((function(n){return 0===t.indexOf(n)}))}function a(){return r}function c(){return i}function f(n){var t={"ar-eg":"ar","ar-sa":"ar","bg-bg":"bg","ca-es":"ca","cs-cz":"cs","da-dk":"da","de-de":"de","el-gr":"el","es-ar":"es-ES","es-bo":"es-ES","es-cl":"es-ES","es-co":"es-ES","es-cr":"es-ES","es-do":"es-ES","es-ec":"es-ES","es-es":"es-ES","es-gt":"es-ES","es-pa":"es-ES","es-pe":"es-ES","es-pr":"es-ES","es-py":"es-ES","es-sv":"es-ES","es-us":"es-ES","es-uy":"es-ES","es-ve":"es-ES","et-ee":"et","eu-es":"eu","fi-fi":"fi","fr-dz":"fr-FR","fr-fr":"fr-FR","gl-es":"gl","he-il":"he","hi-in":"hi","hr-hr":"hr","hu-hu":"hu","id-id":"id","it-it":"it","ja-jp":"ja","kk-kz":"kk","ko-kr":"ko","lt-lt":"lt","lv-lv":"lv","ms-my":"ms","nl-nl":"nl","pl-pl":"pl","ro-ro":"ro","ru-ru":"ru","sk-sk":"sk","sl-si":"sl","sv-se":"sv","th-th":"th","tr-tr":"tr","uk-ua":"uk","vi-vn":"vi","zh-hans":"zh-Hans","zh-cn":"zh-Hans","zh-hant":"zh-Hant","zh-tw":"zh-Hant"};return t[n]?t[n]:n}},33471:function(n,t,e){"use strict";e.d(t,{AX:function(){return p},Bk:function(){return c},G$:function(){return m},MO:function(){return y},Pt:function(){return w},Vh:function(){return f},WH:function(){return o},XE:function(){return u},Ys:function(){return i},_K:function(){return S},aV:function(){return l},gI:function(){return s},hd:function(){return b},lt:function(){return v},n1:function(){return a},n7:function(){return g},y7:function(){return d},yA:function(){return h}});var r=e(13472),i=function(){return 1e3},o=function(){return 4e3},u=function(){return 1e3},s=function(){return 800},a=function(){return 600},c=function(){return 719},f=function(){return 320},l=function(){return 240},h=function(){return 422},d=function(){return 5242880},m=function(){return 4e3},v=function(){return 3e3},p=function(){return 5},g=function(){return 1e3},b=function(){return 200},w=function(){return 10},S=function(){return/^[\w+!#$%&'*+-/=?^_`{|}~.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+@[a-zA-Z0-9-\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-zA-Z0-9-\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*\.[a-zA-Z]{2,}\.?$/},y=((0,r.Jh)((function(){return/^(https?:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[^\s]*)*(\?[a-zA-Z0-9=&%]*)?(#[a-zA-Z0-9-]*)?$/})),function(){return 28})},17891:function(n,t,e){"use strict";e.d(t,{m1:function(){return u},yl:function(){return s}});var r=e(34629),i=e(53032),o=[];function u(){var n;return null!==(n=window.OfficeFormServerInfo)&&void 0!==n?n:{cultureInfo:{Name:navigator.language},environmentType:"WWProd",serverInfoFromPageHeaders:{},userInfo:{}}}function s(n){var t;t=(0,r.Cl)((0,r.Cl)({},window.OfficeFormServerInfo),n),window.OfficeFormServerInfo=t,o.forEach((function(n){"function"==typeof n&&n(window.OfficeFormServerInfo)})),n.ecsWebSettings&&(0,i.P4)(n.ecsWebSettings)}},95774:function(n,t,e){"use strict";function r(){return{context:{},iKey:"91531c5d891c486da00dddb1049c30a2-e90b69b1-4f29-40bb-8d25-66d7d26ede43-7437",disableAdvancedScans:!0}}e.d(t,{M:function(){return r}})},60996:function(n,t,e){"use strict";e.d(t,{BE:function(){return f},L4:function(){return c},gB:function(){return s},tk:function(){return a}});var r=e(99846),i=e(14115),o=e(60507);function u(n){switch(n){case"WWProd":case"CVProd":case"CVTip":case"CVFastfood":return"9188040d-6c67-4c5b-b112-36a304b66dad";default:return"4925308c-f164-4d2d-bc7e-0631132e9375"}}function s(n,t,e,o,s){var a=f(n),c=function(n,t,e,o,s){switch(n){case"Int":case"CVInt":return i.SU;case"WWProd":case"ProTip":case"CVTip":case"CVProd":case"CVFastfood":return o?i.GQ:s?i.ie:function(n,t,e){if(n){var i=(0,r.MN)(n);return!!i.OrgId&&i.OrgId.toLowerCase()===u(e)}return function(n,t){return!!n&&n.toLowerCase()===u(t)}(t,e)}(t,e,n)?i.Pj:i.ke;case"USGovGccProd":return s?i.KA:i.gQ;case"USGovProd":return i.qb;case"USDoDProd":return i.W9;case"USNat":return i.cM;case"USSec":return i.cH;default:return i.cO}}(n,t,e,o,s);return{EndpointUrl:a,AriaToken:c}}function a(n,t,e,r,u,s){var a,c=location.pathname.toLowerCase(),f=(0,o.i9)(c)?c:"[invalid_page_type]",l=((a={})[i.a$]=n.clientBuild,a[i.A1]=e,a[i.cL]=r,a[i.$2]=f,a[i.kw]=n.serverBuild,a[i._r]=n.datacenter,a[i.hg]=n.ring,a[i.nd]=null!=t?t:n.serverSessionId,a[i.eO]=u?"Office FormsPro BrowserApp":s?"Office Forms Webdriver":"Office Forms BrowserApp",a);if(n.serverInfoFromPageHeaders){var h=n.serverInfoFromPageHeaders;l[i.EG]=h.routingBuild,l[i.Pq]=h.routingDataCenter,l[i.NO]=h.routingInstance,l[i.En]=h.serverInstance}return l}function c(n,t,e){var r,o=n.userInfo,u=o.UserId,s=o.TenantId,a=o.IsMsa,c=o.PUID,f=((r={})[i.ir]=u,r[i.lW]=t,r[i.vF]=s,r);return s?(a?(f[i.Ov]=c,f[i.VL]="MSAPUID"):(f[i.Ov]=u,f[i.VL]="UserObjectId"),f[i.np]=s):f[i.Or]=e,f}function f(n){switch(n){case"USGovProd":return"https://tb.events.data.microsoft.com/OneCollector/1.0/";case"USDoDProd":return"https://pf.events.data.microsoft.com/OneCollector/1.0/";case"USNat":return"https://collector.azure.eaglex.ic.gov/OneCollector/1.0/";case"USSec":return"https://collector.azure.microsoft.scloud/OneCollector/1.0/"}return null}},24159:function(n,t,e){"use strict";e.d(t,{f:function(){return o},y:function(){return i}});var r=e(120);function i(n,t,e,i,o){if(void 0!==e){var u=i,s=void 0;"boolean"==typeof e?s=(0,r.LK)(t,e,u):"number"==typeof e?s=Math.floor(e)===e?(0,r.Ug)(t,e,u):(0,r.ip)(t,e,u):"string"==typeof e&&(s=o?(0,r.k)(t,e,u):(0,r.m9)(t,e,u)),s&&n.push(s)}}function o(n,t,e,r,o,u){i(n,t?t+"."+e:e,r,o,u)}},25486:function(n,t,e){"use strict";e.d(t,{q:function(){return i}});var r=e(58213);function i(){return new Promise((function(n){(0,r.t)().flushAndStop(n)}))}},16269:function(n,t,e){"use strict";e.d(t,{GN:function(){return o},VM:function(){return u},c6:function(){return s}});var r=e(58213);function i(n){var t;n.$timestamp=null!==(t=n.$timestamp)&&void 0!==t?t:Date.now(),(0,r.t)().sendTelemetryEvent(n)}function o(n,t){i({$eventName:n,$eventType:2,$eventFlags:8,$eventData:t})}function u(n){i({$eventName:"",$eventType:5,$eventFlags:8,$eventData:n})}function s(n,t){i({$eventName:n,$eventType:6,$eventFlags:8,$eventData:t})}},61377:function(n,t,e){"use strict";e.d(t,{W:function(){return a}});var r=e(80338),i=e(58213),o=e(44330),u=e(98582),s=e(23163),a=function(){function n(n,t){void 0===t&&(t=null),this.i={correlationId:t||(0,u.aq)(),duration:0,eventName:n,eventType:"qos_event",extraData:void 0,qosEventName:n},this.Z=null}return Object.defineProperty(n.prototype,"CorrelationId",{get:function(){return this.i.correlationId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ExtraData",{get:function(){return this.i.extraData},set:function(n){this.i.extraData=n},enumerable:!1,configurable:!0}),n.prototype.start=function(n){void 0===n&&(n=null),this.Z=n||(0,o.JY)();var t=this.tn(this.i,0);(0,i.t)().logData(t)},n.prototype.end=function(n){var t=this.tn(n,1);return(0,i.t)().logData(t),t.duration},n.prototype.log=function(n){var t=this.tn(n,2);(0,i.t)().logData(t)},n.prototype.tn=function(n,t){var e=(0,s.o8)(this.i);switch(null!==this.Z&&0!==t&&(e.duration=(0,o.JY)()-this.Z),n.extraData&&(e.extraData=n.extraData),t){case 0:e.qosEventStatus="Start";break;case 2:e.qosEventStatus=(0,r.n)(["Logging",n.resultCode]);break;case 1:e.qosEventStatus=n.resultType}return e.eventName=(0,r.n)([e.eventName,e.qosEventStatus]),e},n}()},56489:function(n,t,e){"use strict";e.d(t,{d:function(){return u}});var r,i=e(17891),o=e(98582);function u(){if(r)return r;var n=(0,i.m1)().serverSessionId;return r=(0,o.Gi)(n)?n:(0,o.aq)()}},89384:function(n,t,e){"use strict";e.d(t,{in:function(){return u},s0:function(){return s},uH:function(){return a}});var r,i=e(17891),o=e(69578);function u(){return function(n){switch(n){case"GLOBAL":return"https://browser.events.data.microsoft.com/OneCollector/1.0/";case"EMEA":case"DEFAULT":return"https://eu-mobile.events.data.microsoft.com/OneCollector/1.0/";default:return""}}((0,i.m1)().telemetryRegion)}function s(n){c().resolve(n||u())}function a(){return c().promise()}function c(){return r||(r=new o.z0),r}},1020:function(n,t,e){"use strict";e.d(t,{$r:function(){return m},BC:function(){return h},lz:function(){return d},qU:function(){return l}});var r=e(91264),i=e(62128),o=e(17891),u=e(75187),s=["ajax.aspnetcdn.com","alcdn.msauth.net","amcdn.msftauth.net","apis.google.com","appsforoffice.microsoft.com","cdn.forms.office.net","cdn.office.net","js.monitor.azure.com","mem.gfx.ms",".office365.com","www.microsoft.com",".osi.apps.mil",".eaglex.ic.gov",".microsoft.scloud","login.live.com",".officeapps.live.com","connect.facebook.net","content.lifecycle.office.net","content.lifecycle.officeppe.net","paymentinstruments.mp.microsoft.com","pmservice.cp.microsoft.com","edge.payments.microsoft.com","teams.cloud.microsoft","outlook.cloud.microsoft","m365.cloud.microsoft","forms.static.microsoft","forms.static.dev.microsoft","lists.office.com",".office-int.com","cdn.hubblecontent.osi.office.net","formsintwestus.blob.core.windows.net",".osi.office365.us","hive.forms.cloud.microsoft","hive.forms.cloud.dev.microsoft","hive.forms.usercontent.microsoft","hive.forms.usercontent.dev.microsoft","gcc.hive.forms.cloud.microsoft","gcc.hive.forms.usercontent.microsoft"],a=["cdnjs.cloudflare.com","paymentinstruments-int.mp.microsoft.com","localhost","content.lifecycle.officeppe.net"],c=["chrome-extension:"],f=["daemon-worker.3.js"],l=function(n){if(function(n){return f.some((function(t){return n.endsWith(t)}))}(n))return!0;var t=new URL(n,window.origin);return a.some((function(n){return t.host.endsWith(n)})),s.some((function(n){return t.host.endsWith(n)}))||t.host===window.location.host||c.some((function(n){return n===t.protocol}))},h=function(n){for(var t=0,e=["eval","alert","new Function","Function","document.write","document.writeln","setTimeout","setInterval"];t')?n:r.A.sanitize(n,{ADD_ATTR:["mathquill-command-id","mathquill-block-id"],ADD_TAGS:["#comment"],WHOLE_DOCUMENT:!0})},m=function(){var n=!!(0,u.Db)().cspsanitize;return(0,i.Vp)((0,o.m1)().flights).EnableStrongCSPSanitize||n};!function(){try{window.trustedTypes&&window.trustedTypes.createPolicy&&!window.trustedTypes.defaultPolicy&&window.trustedTypes.createPolicy("default",{createScriptURL:function(n){return function(n){if(l(n))return n}(n)},createScript:function(n){return m()?h(n):n},createHTML:function(n){return m()?d(n):n}})}catch(n){}}()},70983:function(n,t,e){"use strict";e.d(t,{oK:function(){return i}});var r=e(59198);function i(){return(0,r.G7)("EnableECSInFirstRelease")}},70012:function(n,t,e){"use strict";var r;e.d(t,{W:function(){return o},H:function(){return u}});var i=!1;function o(){return i||(u(),i=!0),r}function u(){var n=function(n){n+="=";var t=document.cookie.split(";").filter((function(t){return t.indexOf(n)>=0}));if(t.length>0){var e=t[0].trim();return e.substring(n.length,e.length)}return null}("MUID");if(n){var t=n.match(/\b[a-fA-F0-9]{32}\b/);t&&(r=t[0])}}},2231:function(n,t,e){"use strict";e.d(t,{jc:function(){return a},nk:function(){return u},yu:function(){return s}});var r=e(53013),i=e(17891),o=function(){return(0,i.m1)().userInfo.TenantId};function u(n){return!(!(n=n||o())||n.toLowerCase()!==(0,r.T0)())}function s(n){return!(!(n=n||o())||n.toLowerCase()!==(0,r.SM)())}function a(n){return(n=n||o())&&-1!==(0,r.Rd)().indexOf(n.toLowerCase())}},38826:function(n,t,e){"use strict";function r(){for(var n=[],t=0;t/g,">").replace(/\"/g,""");return t&&(e=e.replace(/'/g,"'")),e}},98031:function(n,t,e){"use strict";e.d(t,{EC:function(){return r},X6:function(){return i}});function r(n,t){n&&n.focus({preventScroll:!!t})}function i(n){var t=n.nativeEvent&&n.nativeEvent.explicitOriginalTarget;return n.relatedTarget||t||document.activeElement}},59399:function(n,t,e){"use strict";e.d(t,{EA:function(){return o},mO:function(){return a},Gz:function(){return s},Ns:function(){return u},t$:function(){return i}});var r=e(88326);function i(n){try{if(!n)return!1;n.match(/^[a-zA-Z]+:\/\//)||(n="https://".concat(n));var t=new URL(n);if("https:"!==t.protocol)return!1;if("www.youtube.com"===t.hostname||"youtube.com"===t.hostname||"youtu.be"===t.hostname)return!0}catch(n){}return!1}function o(n){try{if(!n)return!1;n.match(/^[a-zA-Z]+:\/\//)||(n="https://".concat(n));var t=new URL(n);if("https:"!==t.protocol)return!1;if("msit.microsoftstream.com"===t.hostname||"web.microsoftstream.com"===t.hostname||t.hostname.endsWith(".sharepoint.com")||t.hostname.endsWith(".sharepoint-df.com")||t.hostname.endsWith(".sharepoint-mil.us")||t.hostname.endsWith(".sharepoint.us"))return!0;var e=(0,r.aI)("StreamUrlAllowedHosts");if(e&&e.length>0)return e.includes(t.hostname)}catch(n){}return!1}function u(n){return i(n)||o(n)}function s(n){var t=document.createElement("a");return t.href=n,t.host&&t.host!==window.location.host}function a(n){var t,e=null==n?void 0:n.split(":"),r=null;if((null==e?void 0:e.length)>=2){var i=null===(t=e[1])||void 0===t?void 0:t.split("?");(null==i?void 0:i.length)>0&&(r=i[0])}return"mailto"===e[0]&&function(n){return n&&n.trim()&&/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)}(r)}},28243:function(n,t,e){"use strict";e.d(t,{r:function(){return o}});var r=e(91264),i=e(524);function o(n,t){(0,i.Xi)(n,function(n){if(!n)return"";try{return r.A.sanitize(n)}catch(t){return n}}(t))}},49105:function(n,t,e){"use strict";function r(n){try{return JSON.parse(n)}catch(t){return n}}e.d(t,{Bl:function(){return r}})},78927:function(n,t,e){"use strict";function r(n){var t=typeof n;return"function"===t||"object"===t&&!!n}function i(n){for(var t=[],e=1;e")})),s=o.map((function(n){return"")})),a=o.map((function(n){return"<".concat(n,">")})),c=o.map((function(n){return"</".concat(n,">")}));function f(n){var t=function(n){var t=(0,i.ih)(n);return o.forEach((function(n,e){t=t.replaceAll(a[e],u[e]).replaceAll(c[e],s[e])})),t}(n);return function(n){var t=document.createElement("span");return(0,r.lH)(t,n),n=t.innerHTML}(t)}function l(n){return u.forEach((function(t){n=n.replaceAll(t,"")})),s.forEach((function(t){n=n.replaceAll(t,"")})),n}},10641:function(n,t,e){"use strict";var r,i,o,u;e.d(t,{LJ:function(){return d},Lg:function(){return f},W9:function(){return l},XB:function(){return c}});var s=null,a=null;function c(){return r||(r=f())instanceof m&&(r=l()),r}function f(){return i||(i=d()?window.localStorage:h()),i}function l(){return o||(o=function(){if(null==a)try{var n="officeforms.__storage_test__";window.sessionStorage.setItem(n,n),window.sessionStorage.removeItem(n),a=!0}catch(n){a=!1}return a}()?window.sessionStorage:h()),o}function h(){return u||(u=new m),u}function d(){if(null==s)try{var n="officeforms.__storage_test__";window.localStorage.setItem(n,n),window.localStorage.removeItem(n),s=!0}catch(n){s=!1}return s}var m=function(){function n(){}return n.prototype.clear=function(){},n.prototype.getItem=function(n){},n.prototype.key=function(n){return null},n.prototype.removeItem=function(n){},n.prototype.setItem=function(n,t){},n}()},77310:function(n,t,e){"use strict";function r(n){for(var t=[],e=1;e=t)return n;for(var r=t-n.length,i="",o=0;o=0}},80338:function(n,t,e){"use strict";function r(n,t){return void 0===t&&(t="."),n.filter((function(n){return!!n})).join(t)}e.d(t,{n:function(){return r}})},13472:function(n,t,e){"use strict";function r(n){var t,e=!1,r=function(){for(var r=[],i=0;i]*>)/gi,"$1div$3"):n}(function(n){if(!n)return"";var t=n.replace(/\r/gi,"");return/<\/?[a-z][^>]*>/gi.test(t)?t.replace(/\n/gi," "):t.replace(/\n/gi,"
")}(i.A.sanitize(n))),e=c(t).split(/(.*?)<\/div>/gi).filter((function(n){return!!n}));return e.map((function(n,t){return t===e.length-1||function(n){var t=document.createElement("div");(0,s.r)(t,n);for(var e=t.lastChild;null==e?void 0:e.hasChildNodes();)e=e.lastChild;return"BR"===(null==e?void 0:e.nodeName)}(n)?n:n+"
"})).join("")}var h=[{PropertyName:"color",PropertyDisplayName:"color",AllowedValue:/\s?rgb\(/},{PropertyName:"fontSize",PropertyDisplayName:"font-size",AllowedValue:/(1.2|1|0.8|0.9|1.3)em/}];function d(n){if(n.hasAttribute("style")){for(var t,e=[],i=0,o=h;i-1&&(e="".concat(location.protocol,"//").concat(location.host,"/cdn")),t=i&&e?e+"/scripts/dists/":"".concat(location.protocol,"//").concat(location.host,"/Scripts/dists/"),n.p=t,n.isCdnEnabled=i,n.p};n.p=null,window.getChunkPath=n,window.replaceChunkSrc=function(n){n=n.toLowerCase();var t=window.OfficeFormServerInfo||window.shellInfo;return t&&t.ring&&!window.getChunkPath.isCdnEnabled?n+"?ring="+t.ring:n}}()},50442:function(n,t,e){"use strict";e.d(t,{Ld:function(){return u},M8:function(){return c},Qf:function(){return s},Sb:function(){return a},mE:function(){return f},zM:function(){return h}});var r,i=e(78669),o=e(33632);function u(){return"Segoe UI"}function s(){return parseInt(o.s.getSetting(o.j.CascadeSubQuesMaxLimit))}!function(n){n[n.SixHourly=0]="SixHourly",n[n.Daily=1]="Daily",n[n.Weekly=2]="Weekly",n[n.Monthly=3]="Monthly",n[n.Quarterly=4]="Quarterly",n[n.Yearly=5]="Yearly"}(r||(r={}));var a="api/GetAllSatisfactionMetricsByProject/",c="api/DeleteSatisfactionMetric/",f="api/CreateOrUpdate",l=[{BackgroundColor:"#FBE8E1",BackgroundImage:null,Name:"CV_Orange",PrimaryColor:"#D83B01",SecondaryColor:"#C33400",Thumbnail:(0,i.VG)("/Images/CustomerVoice/orange-thumbnail.png")},{BackgroundColor:"#FFF8E5",BackgroundImage:null,Name:"CV_Yellow",PrimaryColor:"#FFB900",SecondaryColor:"#E6A800",Thumbnail:(0,i.VG)("/Images/CustomerVoice/yellow-thumbnail.png")},{BackgroundColor:"#D1DBD1",BackgroundImage:null,Name:"CV_Green",PrimaryColor:"#107C10",SecondaryColor:"#0F700F",Thumbnail:(0,i.VG)("/Images/CustomerVoice/green-thumbnail.png")},{BackgroundColor:"#E7F2E7",BackgroundImage:null,Name:"CV_Teal",PrimaryColor:"#008575",SecondaryColor:"#007769",Thumbnail:(0,i.VG)("/Images/CustomerVoice/teal-thumbnail.png")},{BackgroundColor:"#E9F0FE",BackgroundImage:null,Name:"CV_Blue",PrimaryColor:"#2266E3",SecondaryColor:"#1F5BCC",Thumbnail:(0,i.VG)("/Images/CustomerVoice/blue-thumbnail.png")},{BackgroundColor:"#EFEFF6",BackgroundImage:null,Name:"CV_Purple",PrimaryColor:"#6264A7",SecondaryColor:"#585A95",Thumbnail:(0,i.VG)("/Images/CustomerVoice/purple-thumbnail.png")},{BackgroundColor:"#F0EAEA",BackgroundImage:null,Name:"CV_Dark_Orange",PrimaryColor:"#6B2929",SecondaryColor:"#602525",Thumbnail:(0,i.VG)("/Images/CustomerVoice/darkorange-thumbnail.png")},{BackgroundColor:"#E6EDE8",BackgroundImage:null,Name:"CV_Dark_Green",PrimaryColor:"#054B16",SecondaryColor:"#328647",Thumbnail:(0,i.VG)("/Images/CustomerVoice/darkgreen-thumbnail.png")},{BackgroundColor:"#E9EDED",BackgroundImage:null,Name:"CV_Dark_Teal",PrimaryColor:"#274B47",SecondaryColor:"#23433F",Thumbnail:(0,i.VG)("/Images/CustomerVoice/darkteal-thumbnail.png")},{BackgroundColor:"#E9EBEF",BackgroundImage:null,Name:"CV_Dark_Blue",PrimaryColor:"#243A5E",SecondaryColor:"#203455",Thumbnail:(0,i.VG)("/Images/CustomerVoice/darkblue-thumbnail.png")},{BackgroundColor:"#EAEEF5",BackgroundImage:null,Name:"CV_Sapphire",PrimaryColor:"#2B579A",SecondaryColor:"#274E8A",Thumbnail:(0,i.VG)("/Images/CustomerVoice/sapphire-thumbnail.png")},{BackgroundColor:"#EBEAEE",BackgroundImage:null,Name:"CV_Dark_Purple",PrimaryColor:"#3B2E58",SecondaryColor:"#362A50",Thumbnail:(0,i.VG)("/Images/CustomerVoice/darkpurple-thumbnail.png")},{BackgroundColor:"#EDECEC",BackgroundImage:null,Name:"CV_Black",PrimaryColor:"#000000",SecondaryColor:"#252525",Thumbnail:(0,i.VG)("/Images/CustomerVoice/black-thumbnail.png")},{BackgroundColor:"#EEEEEE",BackgroundImage:null,Name:"CV_Dark_Grey",PrimaryColor:"#2F2F2F",SecondaryColor:"#737373",Thumbnail:(0,i.VG)("/Images/CustomerVoice/darkgrey-thumbnail.png")},{BackgroundColor:"#FFF4ED",BackgroundImage:null,Name:"CV_Light_Orange",PrimaryColor:"#FF9349",SecondaryColor:"#E68443",Thumbnail:(0,i.VG)("/Images/CustomerVoice/lightorange-thumbnail.png")},{BackgroundColor:"#E5F8FE",BackgroundImage:null,Name:"CV_Light_Blue",PrimaryColor:"#00BCF2",SecondaryColor:"#00ABDA",Thumbnail:(0,i.VG)("/Images/CustomerVoice/lightblue-thumbnail.png")}];l.forEach((function(n,t){n=Object.freeze(n),l[t]=n}));var h="Request could not be completed"},72982:function(n,t,e){"use strict";e.d(t,{Cq:function(){return l},G0:function(){return u},Mk:function(){return h},QU:function(){return m},R2:function(){return s},gI:function(){return w},kd:function(){return b},qN:function(){return o},zA:function(){return d}});var r,i,o,u,s,a=e(34629),c=e(78669),f=e(27223),l="Header Uploaded Image Custom Theme",h="Header Predefined Image Custom Theme",d="No Header Image Custom Theme",m="Compact Header Custom Theme";function v(){return{HeaderBackgroundImage:null,Name:"CV_SimpleStyle",HeaderBackgroundThumbnail:(0,c.VG)("/Images/CustomerVoice/blue-thumbnail.png"),BackGroundPositionX:"0px",BackGroundPositionY:"0px",BackGroundPositionZ:"auto",LogoPositionX:"Left",LogoPositionY:"Mid",TitlePositionX:"Left",TitlePositionY:"Mid",LogoSize:"Medium"}}function p(){return i||(i=e.e(552).then(e.t.bind(e,21245,19)).then((function(n){return n.default}))),i}function g(n){return r||(r=(0,f.qE)(n||v().Name).then(JSON.parse)),r}function b(n){return(0,a.sH)(this,void 0,Promise,(function(){return(0,a.YH)(this,(function(t){switch(t.label){case 0:return[4,p()];case 1:return[2,S(t.sent()[n])||v()]}}))}))}function w(n){return(0,a.sH)(this,void 0,Promise,(function(){return(0,a.YH)(this,(function(t){switch(t.label){case 0:return[4,g(n)];case 1:return[2,S(t.sent()[n])||v()]}}))}))}function S(n){if(!n)return n;var t=n.HeaderBackgroundImage,e=n.HeaderBackgroundThumbnail;return null!=t&&/^\/Images\//i.test(t)&&(n.HeaderBackgroundImage=(0,c.VG)(t)),null!=e&&/^\/Images\//i.test(e)&&(n.HeaderBackgroundThumbnail=(0,c.VG)(e)),n}!function(n){n.Left="Left",n.Mid="Mid",n.Right="Right"}(o||(o={})),function(n){n.Top="Top",n.Mid="Mid",n.Down="Down"}(u||(u={})),function(n){n.Small="Small",n.Medium="Medium",n.Large="Large"}(s||(s={}))},75510:function(n,t,e){"use strict";e.d(t,{D:function(){return i},I:function(){return o}});var r=e(76654);function i(n,t,e){if(!n||!t)return-1;var i=n.Model.Questions;if(i&&i.length>0){var o=r.H.convertToArray(i);o=e?o.filter((function(n){return!n.GroupId})):o;var u=n.getQuestionById(t);if(u){if(!u.Model.GroupId)return o.indexOf(u.Model);var s=n.getQuestionById(u.Model.GroupId);if(s)return o.indexOf(s.Model)}}return-1}function o(n,t){if(n&&t){var e=n.FormElementManager.SectionMasters;if(e&&e.length>0)return e.map((function(n){return n.Model.Id})).indexOf(t)}return-1}},19627:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return ExpressionEvaluator}});var underscore__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(22224),underscore__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__),_Common_OfficeFormServerInfo__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(17891),_Forms_Common_EnvironmentConfig__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(64931),_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(61445),_Forms_Common_Utilities_MixinUtil__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(87578),_Forms_Telemetry_LogHandler__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(97410),_Nerve_Nerve__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(76654),ExpressionEvaluator=function(){function ExpressionEvaluator(){this.ln="answerof",this.hn="isselected",this.dn="isanswered",this.mn="surveyvar"}return ExpressionEvaluator.prototype.evaluate=function(expression,answerBase,allLikertSubList,form){null!=allLikertSubList&&allLikertSubList.length>0&&(expression=this.vn(expression,answerBase,allLikertSubList)),expression=this.pn(expression,form),expression=this.Sn(expression,answerBase),expression=this.yn(expression,answerBase,form),expression=this.Fn(expression,answerBase);var tempRes=!1;try{return tempRes=eval(expression),tempRes}catch(n){(0,_Forms_Telemetry_LogHandler__WEBPACK_IMPORTED_MODULE_2__.fL)({type:(0,_Forms_Common_EnvironmentConfig__WEBPACK_IMPORTED_MODULE_4__.OF)()?"CV_BranchingExpressionEvalutorFailed":"MFPUI_BranchingExpressionEvalutorFailed",eventInfo:{Component:"ResponsePage",error:n,expression:expression,tenantId:(0,_Common_OfficeFormServerInfo__WEBPACK_IMPORTED_MODULE_5__.m1)().userInfo.TenantId,type:"unexpected"}})}return!1},ExpressionEvaluator.prototype.vn=function(n,t,e){var r,i=function(){if((r=n.indexOf(o.dn))<=0)return"break";var i=r+o.dn.length+1,u=n.substring(i,n.indexOf(")",i)),s=e.filter((function(n){return n.Question.Model.GroupId===u}));if(!(s.length>0))return"break";var a=void 0;if((a=t?t.filter((function(n){return s.filter((function(t){return t.Question.Model.Id===n.QuestionId})).length>0})):[]).length>0){var c=a.filter((function(n){return null!==n.Answer}));n=c.length>0?n.replaceAll(o.dn+"("+u+")","true"):n.replaceAll(o.dn+"("+u+")","false")}else n=n.replaceAll(o.dn+"("+u+")","false");r=n.indexOf(o.dn)},o=this;do{if("break"===i())break}while(r>=0);return n},ExpressionEvaluator.prototype.yn=function(n,t,e){var r,i=function(){if((r=n.indexOf(o.ln))<=0)return"break";var i=r+o.ln.length+1,u=n.indexOf(")",i),s=n.substring(i,u),a=n.indexOf(")",u+1),c=n.substring(u+4,a).toString().trim(),f=c.substring(1,c.length-1);f=(0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(f);var l=n.substring(r,a).trim(),h=n.substring(u+1,u+4).trim(),d=null,m=!1;if(t&&(d=t.filter((function(n){return n.QuestionId==s}))).length>0&&null!==d[0].Answer){var v="<"==h,p=">"==h,g=o.Cn(s,d[0].Answer,e,v||p);if(null!=g)if(m=!0,v||p){var b=o.Cn(s,f,e,!0),w=parseInt(b),S=parseInt(g);n=v&&Sw?n.replaceAll(l,"true"):n.replaceAll(l,"false")}else{n="=="==h?n.replaceAll(l,f==g?"true":"false"):n.replaceAll(l,f!=g?"true":"false")}}m||(n=o._n(n,l)),r=n.indexOf(o.ln)},o=this;do{if("break"===i())break}while(r>=0);return n},ExpressionEvaluator.prototype._n=function(n,t){return n=n.indexOf("||")>=0?n.replaceAll(t,"false"):n.replaceAll(t,null)},ExpressionEvaluator.prototype.Sn=function(n,t){var e,r=function(){if((e=n.indexOf(i.hn))<=0)return"break";var r=e+i.hn.length+1,o=n.substring(r,n.indexOf(")",r)),u=n.indexOf("==",r),s=n.indexOf(")",u),a=n.substring(u+2,s).toString().trim(),c=n.indexOf(")",u+a.length);a=a.substring(1,a.length-1),a=(0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(a);var f=n.substring(e,c),l=void 0;if(t&&(l=t.filter((function(n){return n.QuestionId==o}))).length>0&&null!==l[0].Answer&&""!==l[0].Answer.toString().trim()){var h=(0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(l[0].Answer),d="";try{d=JSON.parse(h)}catch(n){d=h,(0,_Forms_Telemetry_LogHandler__WEBPACK_IMPORTED_MODULE_2__.fL)({type:"CV_BranchingExpressionEvalutorOldResponse",eventInfo:{Component:"ResponsePage",message:"Single choice converted to multi choice and this response is old one for single choice",tenantId:(0,_Common_OfficeFormServerInfo__WEBPACK_IMPORTED_MODULE_5__.m1)().userInfo.TenantId,type:"expected"}})}var m=d.indexOf(a);n=n.replaceAll(f,-1!=m?"true":"false")}n=i._n(n,f),e=n.indexOf(i.hn)},i=this;do{if("break"===r())break}while(e>=0);return n},ExpressionEvaluator.prototype.Fn=function(n,t){var e,r=function(){if((e=n.indexOf(i.dn))<=0)return"break";var r=e+i.dn.length+1,o=n.substring(r,n.indexOf(")",r)),u=i.dn+"("+o+")",s=void 0,a=!1;t&&((s=t.filter((function(n){return n.QuestionId==o}))).length>0&&null!==s[0].Answer&&""!=s[0].Answer.toString().trim()&&(a=!0,n=n.replaceAll(u,"true")));a||(n=n.replaceAll(u,"false")),e=n.indexOf(i.dn)},i=this;do{if("break"===r())break}while(e>=0);return n},ExpressionEvaluator.prototype.Cn=function(n,t,e,r){if(null==t)return null;var i,o=e.getQuestionById(n);switch(o.Model.Type){case"Question.Choice":i=!0===r?underscore__WEBPACK_IMPORTED_MODULE_0__.map(o.Model.Choices,(function(n){return n.Description})).indexOf((0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(t)):null!=t?(0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(t.toString()):null;break;case"Question.MatrixChoice":var u=e.getQuestionById(o.Model.GroupId);if(!0===r)i=void 0===(i=t.id)?_Nerve_Nerve__WEBPACK_IMPORTED_MODULE_3__.H.convertToArray(u.Model.ChoiceGroup).map((function(n){return n.Description})).indexOf((0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(t)):_Nerve_Nerve__WEBPACK_IMPORTED_MODULE_3__.H.convertToArray(u.Model.ChoiceGroup).map((function(n){return n.Id})).indexOf(i);else if(void 0===(i=t.id))i=(0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(t);else(s=_Nerve_Nerve__WEBPACK_IMPORTED_MODULE_3__.H.convertToArray(u.Model.ChoiceGroup).filter((function(n){return n.Id==i}))).length>0&&(i=s[0].Description);break;case"Question.CascadeLevel":var s;if(!0===r)i=void 0===(i=t.id)?_Nerve_Nerve__WEBPACK_IMPORTED_MODULE_3__.H.convertToArray(o.Model.CascadeChoiceGroup).map((function(n){return n.displayText})).indexOf((0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(t)):_Nerve_Nerve__WEBPACK_IMPORTED_MODULE_3__.H.convertToArray(o.Model.CascadeChoiceGroup).map((function(n){return n.id})).indexOf(i);else if(void 0===(i=t.id))i=(0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(t);else(s=_Nerve_Nerve__WEBPACK_IMPORTED_MODULE_3__.H.convertToArray(o.Model.CascadeChoiceGroup).filter((function(n){return n.id==i}))).length>0&&(i=s[0].displayText);break;default:i=null!=t?t:null}return i},ExpressionEvaluator.prototype.pn=function(n,t){var e,r,i,o,u,s,a=(0,_Forms_Common_Utilities_MixinUtil__WEBPACK_IMPORTED_MODULE_6__.nu)().Model,c="";u=JSON.parse(t.Model.PipesDetails);var f=function(){if((s=n.indexOf(l.mn))<=0)return"break";var f=s+l.mn.length+1,h=n.indexOf(")",f),d=n.substring(f,h),m=(0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(d);0===a.ResponsePipeData.length?(u=JSON.parse(t.Model.PipesDetails),c=null===(r=null===(e=u.filter((function(n){return n.pipeName===m}))[0])||void 0===e?void 0:e.defaultValue)||void 0===r?void 0:r.toString().toLowerCase().trim()):c=null===(o=null===(i=a.ResponsePipeData.filter((function(n){return n.paramName===m}))[0])||void 0===i?void 0:i.paramValue)||void 0===o?void 0:o.toString().toLowerCase().trim();var v=n.indexOf(")",h+1),p=(0,_Forms_Common_Utilities_FormsProUtility__WEBPACK_IMPORTED_MODULE_1__.wH)(n.substring(h+6,v-2).toString()).toLowerCase().trim(),g=n.substring(s,v);n="="===n.charAt(h+2)?n.replaceAll(g,c===p?"true":"false"):"!"===n.charAt(h+2)?n.replaceAll(g,c==p?"false":"true"):"i"===n.charAt(h+2)?n.replaceAll(g,(null==c?void 0:c.includes(p))?"true":"false"):n.replaceAll(g,"false"),s=n.indexOf(l.mn)},l=this;do{if("break"===f())break}while(s>=0);return n},ExpressionEvaluator}()},17397:function(n,t,e){"use strict";e.d(t,{Jr:function(){return r},SP:function(){return o},X3:function(){return v},Y7:function(){return m},eQ:function(){return b},hu:function(){return i}});var r,i,o,u=e(22224),s=e(33471),a=e(33589),c=e(61445),f=e(98582),l=e(87578),h=e(75510),d=e(55303);function m(n){var t=!0;return n&&n.sourceId&&0!==n.sourceId.trim().length&&n.operator&&n.operatorLabel&&0!==n.operatorLabel.trim().length||(t=!1),parseInt(n.operator.toString())!==i.IsAnswered&&(n.answer&&0!==n.answer.trim().length||(t=!1)),t}!function(n){n[n.RULE_NO_OPERATOR=0]="RULE_NO_OPERATOR",n[n.RULE_AND_OPERATOR=1]="RULE_AND_OPERATOR",n[n.RULE_OR_OPERATOR=2]="RULE_OR_OPERATOR"}(r||(r={})),function(n){n[n.Equal=1]="Equal",n[n.NotEqual=2]="NotEqual",n[n.LessThan=3]="LessThan",n[n.GreaterThan=4]="GreaterThan",n[n.IsAnswered=5]="IsAnswered",n[n.IsSelected=6]="IsSelected",n[n.Contains=7]="Contains"}(i||(i={})),function(n){n[n.Question=1]="Question",n[n.SurveyVariable=2]="SurveyVariable"}(o||(o={}));var v=function(){function n(n,t,e,r,u,s){this.logicalOperator=n,this.sourceId=e||"",this.operator=r||i.Equal,this.answer=s||"",this.operatorLabel=u||"",this.conditionId=(0,f.aq)(),this.id,this.itemType=t||o.Question}return n.prototype.getExpression=function(){var n="",t=(0,c.e)(this.answer),e=encodeURIComponent(this.answer);return console.log(e),this.logicalOperator!=r.RULE_NO_OPERATOR&&(n+=" "+g(this.logicalOperator)+" "),this.operator==i.IsAnswered?n+="( isanswered("+this.sourceId+") )":this.operator==i.IsSelected?n+="( isselected("+this.sourceId+") == '"+t+"' )":-1!==(0,l.nu)().Model.FormMaster.Model.PipesDetails.indexOf(this.sourceId)?n+="( surveyvar("+(0,c.e)(this.sourceId)+") "+p(this.operator)+" '"+t+"' )":n+="( answerof("+this.sourceId+") "+p(this.operator)+" '"+t+"' )",n},n}();function p(n){var t="";switch(parseInt(n.toString())){case i.Equal:t="==";break;case i.GreaterThan:t=">";break;case i.IsAnswered:t="isanswered";break;case i.IsSelected:t="isselected";break;case i.Contains:t="in";break;case i.LessThan:t="<";break;case i.NotEqual:default:t="!="}return t}function g(n){var t="";switch(parseInt(n.toString())){case r.RULE_AND_OPERATOR:t="&&";break;case r.RULE_OR_OPERATOR:t="||";break;default:t=""}return t}var b=function(){function n(n,t){this.ln="answerof",this.hn="isselected",this.dn="isanswered",this.Pn="surveyvar",this.ruleId=n,this.backEndExpression=t,this.logicalOperator=r.RULE_NO_OPERATOR,this.conditionList=[],this.buildConditions(this.backEndExpression)}return n.prototype.getLogicalOperator=function(){return this.logicalOperator},n.prototype.getLogicalOperatorLabel=function(){var n="";switch(this.logicalOperator){case r.RULE_AND_OPERATOR:n=(0,a.qn)().BranchingRules_RuleOperatorList_AND;break;case r.RULE_OR_OPERATOR:n=(0,a.qn)().BranchingRules_RuleOperatorList_OR;break;default:n=""}return n},n.prototype.getInlineLogicalOperatorLabel=function(){var n="";switch(this.logicalOperator){case r.RULE_AND_OPERATOR:n=(0,a.qn)().Inline_Branching_And;break;case r.RULE_OR_OPERATOR:n=(0,a.qn)().Inline_Branching_Or;break;default:n=""}return n},n.prototype.buildConditions=function(n){var t=this;if(0!==n.trim().length){var e=g(r.RULE_AND_OPERATOR),i=n.indexOf(e);i<0?(e=g(r.RULE_OR_OPERATOR),i=n.indexOf(e),this.logicalOperator=i<0?r.RULE_NO_OPERATOR:r.RULE_OR_OPERATOR):this.logicalOperator=r.RULE_AND_OPERATOR;var o=n.split(e);u.forEach(o,(function(n,e){var i;i=new v(0===e?r.RULE_NO_OPERATOR:t.logicalOperator),t.Tn(i,n),t.addCondition(i)})),1===this.conditionList.length&&(this.logicalOperator=r.RULE_AND_OPERATOR)}},n.prototype.Tn=function(n,t){var e,r=this.ln;if((e=t.indexOf(r))<0&&(r=this.dn,(e=t.indexOf(r))<0&&(r=this.hn,(e=t.indexOf(r))<0&&(r=this.Pn,(e=t.indexOf(r))<0))))return"";var u,s,a=e+r.length+1,f=t.indexOf(")",a),l=t.substring(a,f);if(n.operatorLabel="",n.sourceId="",n.answer="",n.operator=i.Equal,n.itemType=o.Question,r===this.ln||r===this.Pn){n.sourceId=l;var h=t.substr(f+1,3).trim();n.operatorLabel=h,n.operator=("=="===(u=h)?s=i.Equal:"!="===u?s=i.NotEqual:">"===u?s=i.GreaterThan:"in"===u&&(s=i.Contains),"<"===u&&(s=i.LessThan),s),n.answer=(0,c.wH)(this.On(t,f)),r===this.Pn&&(n.itemType=o.SurveyVariable)}else r===this.hn?(n.sourceId=l,n.operator=i.IsSelected,n.operatorLabel=p(i.IsSelected),n.answer=(0,c.wH)(this.On(t,f))):(n.sourceId=l,n.operator=i.IsAnswered,n.operatorLabel=p(i.IsAnswered))},n.prototype.On=function(n,t){var e=n.indexOf(")",t+4),r=n.substring(t+4,e).trim();return r.substring(1,r.length-1)},n.prototype.addCondition=function(n){this.conditionList.push(n)},n.prototype.deleteCondition=function(n){var t=this.conditionList.map((function(n){return n.conditionId})).indexOf(n.conditionId);if(t>=0){var e=[].concat(this.conditionList);e.splice(t,1),this.conditionList=e,0===t&&this.conditionList.length>0&&(this.conditionList[0].logicalOperator=r.RULE_NO_OPERATOR)}},n.prototype.deleteAllCondition=function(){this.conditionList=[]},n.prototype.getConditions=function(){return this.conditionList},n.prototype.buildExpression=function(){var n="";return u.forEach(this.conditionList,(function(t){n+=t.getExpression()})),n},n.prototype.getMappings=function(){var n=this,t=[];return u.forEach(this.conditionList,(function(e){if(0==t.filter((function(n){return e.sourceId==n.sourceId})).length){var r=new d.Mf;r.sourceId=e.sourceId,r.targetRuleList=[],r.targetRuleList.push(n.ruleId),t.push(r)}})),t},n.prototype.updateLogicalOperator=function(n){this.logicalOperator=n,u.forEach(this.conditionList,(function(t,e){0!=e&&(t.logicalOperator=n)}))},n.prototype.ValidateConditions=function(){var n=!0;return u.forEach(this.conditionList,(function(t,e){0!==t.sourceId.trim().length&&0!==t.operatorLabel.trim().length||(n=!1),parseInt(t.operator.toString())!==i.IsAnswered&&0===t.answer.trim().length&&(n=!1)})),n},n.prototype.CheckThreshold=function(){var n=!0;return this.conditionList&&(n=this.conditionList.length<=(0,s.Pt)()),n},n.prototype.getLastQuestionIndex=function(){var n=-1;return u.forEach(this.conditionList,(function(t){if(t.sourceId){var e=(0,h.D)((0,l.nu)().Model.FormMaster,t.sourceId);e>=0&&n0&&n.action.successActions.filter((function(n){return n.actionType===i.Navigate})).length>0)return!t||-1!=new g.Ay(n.ruleId,n.backendExpression).getConditions().findIndex((function(n){return n.answer===t}))}));return e.length>0?e[0]:null},n.prototype.getSimplifiedNavRules=function(n){var t=this.xn.rules.filter((function(t){return t.sourceQuestionId===n})).filter((function(n){if(n.action&&n.action.successActions&&n.action.successActions.length>0)return n.action.successActions.filter((function(n){return n.actionType===i.Navigate})).length}));return t.length>0?t:null},n.prototype.getSimplifiedShowHideRule=function(n){var t=this.xn.rules.filter((function(t){return t.sourceQuestionId===n})).filter((function(t){if(t.action&&t.action.successActions&&t.action.successActions.length>0&&t.action.successActions.filter((function(t){return t.actionType===i.Show&&t.targetId===n})).length>0)return!0}));return t.length>0?t[0]:null},n.prototype.getorCreateRuleHandle=function(n){this.Mn();var t=this.xn.rules.filter((function(t){return t.ruleId==n}));return t.length>0?t[0]:new S},n.prototype.createSimplifiedRule=function(n,t,e,r){var o=new S;o.sourceQuestionId=n,o.name=this.An(n,t,e,r),o.action=new w;var u=new b;return u.actionType=e,u.targetType=t,u.targetId=e===i.Show?n:"",o.action.successActions.push(u),(0,d.fL)({type:"CV_SimplifiedBranching_AddLogic",eventInfo:{Component:"RuleConfigManager",pageName:"RuleConfigManager.createSimplifiedRule",formId:this.Dn.Model.Id,ruleType:e===i.Show?"DisplayRule":"SkipRule",tenantId:(0,s.m1)().userInfo.TenantId}}),o},n.prototype.addRule=function(n){this.xn.rules.filter((function(t){return t.ruleId==n.ruleId})).length||this.xn.rules.push(n)},n.prototype.Vn=function(n,t){var e=this;n.forEach((function(n){n&&n.targetType==r.ChainedForm&&FormsPro.MFPDataProviderAdapter.deleteLinkedBrRule(n.targetId,t,e.Dn.Model.Id)}))},n.prototype.zn=function(n){var t=this.xn.rules.filter((function(t){return t.ruleId==n}));if(t&&t.length>0){var e=t[0];e.action&&(e.action.successActions&&this.Vn(e.action.successActions,n),e.action.failureActions&&this.Vn(e.action.failureActions,n))}},n.prototype.deleteRules=function(n,t){var e=this;if(n.length){var r=this.xn.rules.filter((function(t){return n.includes(t.ruleId)}));if(r.length>0){r.forEach((function(n){e.zn(n.ruleId)}));var i=this.xn.rules.filter((function(t){return!n.includes(t.ruleId)}));0==i.length?(this.xn.rules=[],this.xn.mappings=[]):this.xn.rules=i;for(var o=this.xn.mappings,u=0;u0&&(o[u].targetRuleList=s),0==s.length&&o.splice(u,1)}this.xn.mappings=o,this.updateJson(t)}}},n.prototype.updateRules=function(n,t){this.xn.rules=n,this.updateJson(t)},n.prototype.updateRuleNames=function(n){var t=this,e=!1;this.xn.rules.forEach((function(n){var r,i=null===(r=n.action)||void 0===r?void 0:r.successActions;if(i){var o=t.An(n.sourceQuestionId,i[0].targetType,i[0].actionType);o!==n.name&&(n.name=o,e=!0)}})),e&&this.updateJson(n)},n.prototype.Hn=function(n){var t=this.xn.rules.filter((function(t){return t.ruleId==n}));return t.length>0?t[0]:null},n.prototype.getRuleIndex=function(n){return this.xn.rules.findIndex((function(t){return t.ruleId==n}))},n.prototype.addSuccessAction=function(n){this.jn(n,!0)},n.prototype.addFailureAction=function(n){this.jn(n,!1)},n.prototype.jn=function(n,t){if(n){null==n.action&&(n.action=new w);var e=new b,r=t?n.action.successActions:n.action.failureActions;r.sort((function(n,t){return parseInt(n.actionsequence)-parseInt(t.actionsequence)}));var i=0;r.length>0&&(i=parseInt(r[r.length-1].actionsequence)),e.actionsequence=(i+1).toString(),r.push(e)}},n.prototype.deleteSuccessAction=function(n,t){this.deleteAction(n,t,!0)},n.prototype.deleteFailureAction=function(n,t){this.deleteAction(n,t,!1)},n.prototype.deleteAction=function(n,t,e){if(n){var r=e?n.action.successActions:n.action.failureActions;if(n&&n.action&&r){var i=r.map((function(n){return n.actionId})).indexOf(t.actionId);if(i>=0){var o=[].concat(r);o.splice(i,1),r=o}}e?n.action.successActions=r:n.action.failureActions=r}},n.prototype.getSuccessActions=function(n){return n&&n.action?n.action.successActions:[]},n.prototype.getFailureActions=function(n){return n&&n.action?n.action.failureActions:[]},n.prototype.updateBackendExpression=function(n,t){n&&(n.backendExpression=t)},n.prototype.updateRuleMappings=function(n){var t=this;if(0!=n.length){u.forEach(n,(function(n){var e=t.xn.mappings.filter((function(t){return t.sourceId==n.sourceId}));e.length>0?e[0].targetRuleList=u.union(e[0].targetRuleList,n.targetRuleList):t.xn.mappings.push(n)}));for(var e=n[0].targetRuleList[0],r=this.Hn(e),i=this.xn.mappings,o=0;o0?i[o].targetRuleList=a:i.splice(o,1)}}}},n.prototype.updateJson=function(n){var t=JSON.stringify(this.xn);if((0,c.G7)("CVSimplifiedBranching")&&n){var e=new I;e.Simplified.rules=this.xn.rules,e.Simplified.mappings=this.xn.mappings,this.xn.thankyouMessageRules&&(e.thankyouMessageRules=this.xn.thankyouMessageRules),t=JSON.stringify(e),this.logSimplifiedData()}this.Dn.Model.MfpBranchingData=t,this.logBranchingData(this.xn,n)},n.prototype.logSimplifiedData=function(){var n=this;this.xn.rules.forEach((function(t){var e,r,o,u,a=null===(e=t.action)||void 0===e?void 0:e.successActions[0];if(a)if(a.actionType===i.Show)o=null===(r=n.Dn.getElementById(a.targetId))||void 0===r?void 0:r.Model.Type.toString(),u=a.targetType.toString(),(0,d.fL)({type:"CV_SimplifiedBranching_DisplayRule_Details",eventInfo:{Component:"CVSimplifiedBranchingEditor",pageName:"RuleConfigManager.Save",formId:n.Dn.Model.Id,ruleId:t.ruleId,ShowOnElement:u,TypeOfElement:o,tenantId:(0,s.m1)().userInfo.TenantId}});else{var c=new g.Ay(t.ruleId,t.backendExpression).getConditions(),f="Variable";c.forEach((function(t){var e;t.itemType===g.SP.Question&&(f=null===(e=n.Dn.getElementById(t.sourceId))||void 0===e?void 0:e.Model.Type.toString())})),(0,d.fL)({type:"CV_SimplifiedBranching_SkipRule_Details",eventInfo:{Component:"CVSimplifiedBranchingEditor",pageName:"RuleConfigManager.Save",formId:n.Dn.Model.Id,ruleId:t.ruleId,SkipTo:a.targetType.toString(),SourceElement:f,tenantId:(0,s.m1)().userInfo.TenantId}})}}))},n.prototype.logBranchingData=function(n,t){(0,d.fL)({type:(0,a.OF)()?"CV_BranchingRuleCount":"MFPUI_BranchingRuleCount",eventInfo:{Component:(0,a.OF)()?"CVBranchingDesigner":"MFPBranchingDesigner",pageName:"RuleConfigManager.Save",formId:this.Dn.Model.Id,isSimplified:!!t,ruleCount:n.rules?n.rules.length:0,tenantId:(0,s.m1)().userInfo.TenantId}})},n.prototype.ValidateRule=function(n,t){if(n){if(null==n.action)return!0;var e=n.action.failureActions,r=n.action.successActions;if(0===e.length&&0===r.length)return!0;var i=parseInt(t.toString()),u=(0,f.Pt)();switch(i){case o.EmptyAction:return this.Qn(e)&&this.Qn(r);case o.MultipleNavigation:return this.Gn(e)&&this.Gn(r);case o.MaxLimitReached:return e.length<=u&&r.length<=u;case o.ActionOrder:return this.Wn(r)&&this.Wn(e);case o.EmptyElse:return!(e.length>0&&0===r.length)}}return!0},n.prototype.ValidateLooping=function(n,t){if(t&&n>=0){if(null==t.action)return!0;var e=t.action.failureActions,r=t.action.successActions;if(0===e.length&&0===r.length)return!0;if(e.length>0&&!this.Kn(e,n))return!1;if(r.length>0&&!this.Kn(r,n))return!1}return!0},n.prototype.Gn=function(n){var t=n.filter((function(n){return parseInt(n.actionType.toString())===i.Navigate}));return!(t&&t.length>1)},n.prototype.Qn=function(n){for(var t=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,e=0;e0&&e&&e.length>=0){var s=m.H.convertToArray(o);e.forEach((function(n){var e=i.getQuestionById(n.targetId);if(e)if(e.Model.GroupId){var r=i.getQuestionById(e.Model.GroupId);if(r)if((o=s.indexOf(r.Model))>=0&&t>=o)return void(u=!1)}else{var o;if((o=s.indexOf(e.Model))>=0&&t>=o)return void(u=!1)}}))}return u},n.prototype.Wn=function(n){var t=this,e=-1,o=!0;if(n&&n.length>0){if(n.filter((function(n){return parseInt(n.actionType.toString())===i.Navigate})).forEach((function(i){var u=parseInt(i.targetType.toString());if(u!==r.ChainedForm&&u!==r.EndOfSurvey&&u!==r.Url){if(u===r.Question){var s=(0,p.D)(t.Dn,i.targetId);s>=0&&e=0&&rs:u0;return!1},n.prototype.ut=function(n){var t=(0,o.nu)().Model.FormList,e=(0,o.nu)().Model.FormMaster,r=(0,o.nu)().Model.AllProjects,s=!1;if((0,i.G7)("CVSurveyDeletionWithBranchingPopup")){for(var a=0;a0)||(!!(1===t.length&&e&&e.Model&&e.isFieldReady(e.Schema.Id)&&e.Model.Id===t[0].Model.Id)||u.H.convertToArray(t).map((function(n){return n.Model.Id})).indexOf(n)>=0)},n.prototype.runRuleValidation=function(n){var t=this;return void 0===n&&(n=!1),!1===n?this.Jn:this.xn&&this.xn.rules?(this.xn.rules.forEach((function(n){t.Jn[n.ruleId]=t.validateConditions(n)&&t.validateActions(n)})),this.Jn):this.Jn},n.prototype.runSimplifiedRuleValidation=function(n){var t=this,e=(0,o.nu)().Model.FormMaster,i=(0,f.T2)(e),u=null==i?void 0:i.getAllSimplifiedRules(n),s=r.None;return null==u||u.forEach((function(e){e.action&&e.action.successActions.forEach((function(i){var o=r.None;parseInt(i.actionType.toString())===f.X2.Show?(o=t.ft(e,n))!==r.None&&(s=s!==r.None?r.MultiPleReasons:o):parseInt(i.actionType.toString())===f.X2.Navigate&&(o=t.validateSkipRuleActions(e,n))!==r.None&&(s=s!==r.None?r.MultiPleReasons:o)}))})),s},n.prototype.optionReferred=function(n,t){var e=!1,r=(0,o.nu)().Model.FormMaster;if(!this.xn||!this.xn.rules)return!1;var i=null;if((0,a.RP)(r)){var u=(0,f.T2)(r),s=null==u?void 0:u.getSimplifiedNavRule(n,t);s&&(i=s.ruleId,u.deleteRules([i],!0))}return this.xn.rules.forEach((function(r){r&&r.ruleId!==i&&new c.Ay(r.ruleId,r.backendExpression).getConditions().forEach((function(r,i){r.sourceId===n&&r.answer===t&&(e=!0)}))})),e},n.prototype.questionReferred=function(n){var t=!1;return!(!this.xn||!this.xn.rules)&&(this.xn.rules.forEach((function(e){e&&(new c.Ay(e.ruleId,e.backendExpression).getConditions().forEach((function(e,r){e.sourceId===n&&(t=!0)})),!t&&e.action&&(e.action.successActions.forEach((function(e){parseInt(e.targetType.toString())===f.yK.Question&&e.targetId===n&&(t=!0)})),t||e.action.failureActions.forEach((function(e){parseInt(e.targetType.toString())===f.yK.Question&&e.targetId===n&&(t=!0)}))))})),t)},n}();FormsPro.getRuleValidator=l},79656:function(n,t,e){"use strict";e.d(t,{aW:function(){return s}});var r=e(22224),i=e(33589),o=e(36316),u=e(76654);function s(n,t){return new c(n,t)}var a;!function(n){n[n.Equal=1]="Equal",n[n.NotEqual=2]="NotEqual",n[n.LessThan=3]="LessThan",n[n.GreaterThan=4]="GreaterThan",n[n.IsAnswered=5]="IsAnswered",n[n.IsSelected=6]="IsSelected",n[n.Contains=7]="Contains"}(a||(a={}));var c=function(){function n(n,t){this.gt=t,this.bt=u.H.convertToArray(n.Model.Questions),this.getOperators=this.getOperators.bind(this),this.hasPredefinedOptions=this.hasPredefinedOptions.bind(this),this.getPredefinedOptions=this.getPredefinedOptions.bind(this),this.isSmileyRatingQuestion=this.isSmileyRatingQuestion.bind(this)}return n.prototype.getOperators=function(n,t){var e=null,r=this.gt?(0,i.qn)().SimplifiedBranching_ConditionOperatorList_isEqualTo:(0,i.qn)().BranchingRules_ConditionOperatorList_isEqualTo,u=this.gt?(0,i.qn)().SimplifiedBranching_ConditionOperatorList_notEqualTo:(0,i.qn)().BranchingRules_ConditionOperatorList_notEqualTo;if(t)return e=[{OperatorLabel:r,OperatorTypeCode:a.Equal},{OperatorLabel:u,OperatorTypeCode:a.NotEqual},{OperatorLabel:(0,i.qn)().RuleOperator_Contains,OperatorTypeCode:a.Contains}];if(n&&this.bt&&this.bt.length>0){var s=this.St(n);if(s){var c=this.gt?this.yt(s.Type):(0,i.qn)().BranchingRules_ConditionOperatorList_isAnswered;switch(s.Type){case"Question.Choice":case"Question.MatrixChoice":case"Question.Rating":case"Question.TextField":case"Question.NPS":case"Question.CascadeLevel":e="Question.Choice"==s.Type&&s.ChoiceType==o.IG.MultiChoice?[{OperatorLabel:(0,i.qn)().BranchingRules_ConditionOperatorList_isSelected,OperatorTypeCode:a.IsSelected},{OperatorLabel:c,OperatorTypeCode:a.IsAnswered}]:"Question.TextField"!==s.Type||s.IsNumber?[{OperatorLabel:r,OperatorTypeCode:a.Equal},{OperatorLabel:u,OperatorTypeCode:a.NotEqual},{OperatorLabel:(0,i.qn)().RuleOperator_GreaterThan,OperatorTypeCode:a.GreaterThan},{OperatorLabel:(0,i.qn)().RuleOperator_LessThan,OperatorTypeCode:a.LessThan},{OperatorLabel:c,OperatorTypeCode:a.IsAnswered}]:[{OperatorLabel:r,OperatorTypeCode:a.Equal},{OperatorLabel:u,OperatorTypeCode:a.NotEqual},{OperatorLabel:c,OperatorTypeCode:a.IsAnswered}];break;default:e=[{OperatorLabel:c,OperatorTypeCode:a.IsAnswered}]}}}return e},n.prototype.yt=function(n){var t=(0,i.qn)().SimplifiedBranching_ConditionOperatorList_isAnswered;switch(n){case"Question.FileUpload":t=(0,i.qn)().SimplifiedBranching_ConditionOperatorList_FileUpload_isAnswered;break;case"Question.Choice":case"Question.MatrixChoice":case"Question.Rating":case"Question.Ranking":case"Question.MatrixChoiceGroup":case"Question.CascadeGroup":case"Question.CascadeLevel":t=(0,i.qn)().SimplifiedBranching_ConditionOperatorList_General_isAnswered}return t},n.prototype.hasPredefinedOptions=function(n){var t=!1;if(n&&this.bt&&this.bt.length>0){var e=this.St(n);if(e)switch(e.Type){case"Question.Choice":case"Question.MatrixChoice":case"Question.Rating":case"Question.CascadeLevel":t=!0;break;default:t=!1}}return t},n.prototype.getPredefinedOptions=function(n){var t;if(n&&this.bt&&this.bt.length>0){var e=this.St(n);if(e)switch(e.Type){case"Question.Choice":t=r.map(e.Choices,(function(n){return n.Description}));break;case"Question.MatrixChoice":var i=this.St(e.GroupId);t=r.map(i.ChoiceGroup,(function(n){return n.Description}));break;case"Question.Rating":t=[];for(var o=1;o<=e.Length;o++)t.push(o.toString());break;case"Question.CascadeLevel":t=r.map(e.CascadeChoiceGroup,(function(n){return n.displayText}))}}return t},n.prototype.isTextQuestion=function(n){if(n&&this.bt&&this.bt.length>0){var t=this.St(n);return t&&"Question.TextField"===t.Type}return!1},n.prototype.isOperatorSupported=function(n,t){if(n&&this.bt&&this.bt.length>0){var e=this.getOperators(n);if(e.length>0)return r.findIndex(e,(function(n){return n.OperatorTypeCode===parseInt(t.toString())}))>=0}return!1},n.prototype.isTextAnswerValid=function(n,t,e){return!!(n&&t&&this.bt&&this.bt.length>0)&&n.getQuestionById(t).verify(e)===o.FF.Success},n.prototype.isSmileyRatingQuestion=function(n){var t=!1,e=this.St(n);if(e&&e.QuestionInfo){var r=JSON.parse(e.QuestionInfo);r&&"Smiley"===r.RatingShape&&(t=!0)}return t},n.prototype.St=function(n){var t=this.bt.filter((function(t){return t.Id==n}));return t.length>0?t[0]:null},n}()},81526:function(n,t,e){"use strict";var r=e(53013),i=e(59198),o=e(87578),u=e(39962),s=e(33632);var a=function(){function n(){}return n.setMSRewardsFeatureAvailability=function(){n.isMSRewardsFeatureEnabledToUser().then((function(n){(0,o.nu)().Model.IsIncentiveEnabled=n}))},n.isMSRewardsFeatureEnabled=function(){return(0,i.G7)("FormsProMSRewardsIntegration")},n.isIncentiveResponsesEnabledOnTenant=function(){return(0,o.nu)().Model.FormsTenantSettings.InOrgSurveyIncentive},n.isMSRewardsFeatureEnabledToUser=function(){if(n.isMSRewardsFeatureEnabled()&&n.isIncentiveResponsesEnabledOnTenant()&&n.isMSRewardsFeatureAvailableInTenantCountry()){if("Int"===(0,r.mc)()||"DevHost"===(0,r.mc)())return Promise.resolve(!0);var t=(0,u.w_)(),e=(0,u.kT)();return Promise.all([t,e]).then((function(n){var t=n[0],e=n[1];return t||e}))}return Promise.resolve(!1)},n.isMSRewardsFeatureEnabledToC2User=function(){return n.isMSRewardsFeatureEnabled()&&n.isIncentiveResponsesEnabledOnTenant()},n.isMSRewardsFeatureAvailableInTenantCountry=function(){var n=(0,o.nu)().Model.TenantCountryCode;return null!=n&&""!=n&&s.s.getSetting(s.j.FormsProMSRewardsAvailableCountryCodes).split(",").indexOf(n)>=0},n}();FormsPro.setMSRewardsFeatureAvailability=function(){return a.setMSRewardsFeatureAvailability()},FormsPro.isMSRewardsFeatureEnabled=function(){return a.isMSRewardsFeatureEnabled()},FormsPro.isIncentiveResponsesEnabledOnTenant=function(){return a.isIncentiveResponsesEnabledOnTenant()},FormsPro.isMSRewardsFeatureAvailableInTenantCountry=function(){return a.isMSRewardsFeatureAvailableInTenantCountry()},FormsPro.isMSRewardsFeatureEnabledToUser=function(){return a.isMSRewardsFeatureEnabledToUser()},FormsPro.isMSRewardsFeatureEnabledToC2User=function(){return a.isMSRewardsFeatureEnabledToC2User()}},8075:function(n,t,e){"use strict";e.d(t,{Eq:function(){return s},iW:function(){return a}});var r=e(59399),i=e(91264),o=e(71683);function u(n){if("A"===n.tagName){n.setAttribute("class","linkified");var t=n.getAttribute("href");!t||(0,r.Gz)(t)||(0,r.mO)(t)||n.removeAttribute("href")}}function s(n){i.A.addHook("afterSanitizeAttributes",u);var t=i.A.sanitize(n,{ALLOWED_ATTR:["style","href","target","tabindex","aria-label","accesskey","charset","class","dir","download","id","lang","name","rel","title","type"],ALLOWED_TAGS:["span","strong","em","u","a"]});return i.A.removeHook("afterSanitizeAttributes"),t?t.toString():t}function a(n){var t=0===s(n).length?"SanitizedHtmlText":o.xs.sanitizeRichTextHTML(n);return t?t.toString():t}o.xs.sanitizeRichTextHTML=s,o.xs.SanitizedHtmlText=a,o.xs.sanitizeRichTextHTMLForTemplates=function(n){i.A.addHook("afterSanitizeAttributes",u);var t=i.A.sanitize(n);return i.A.removeHook("afterSanitizeAttributes"),t?t.toString():t},FormsPro.createUrlForSmallWindow=function(n,t){for(var e in n+=encodeURIComponent("id")+"="+encodeURIComponent(t.id),t)"id"!==e&&(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n}},29927:function(n,t,e){"use strict";e.d(t,{RP:function(){return u},cB:function(){return o},xv:function(){return r}});var r,i=e(59198);function o(n){var t=null;if(n){var e=JSON.parse(n);if((0,i.G7)("CVSimplifiedBranching")&&e.IsSimplified){var r=JSON.parse(n);(t=null==r?void 0:r.Simplified).thankyouMessageRules=null==r?void 0:r.thankyouMessageRules}else t=e}return t}function u(n){if(!n||!(0,i.G7)("CVSimplifiedBranching"))return!1;var t=n.Model.MfpBranchingData;if(!(n.isFieldReady(n.Schema.CVSimplifiedBranchingSupported)&&"true"===n.Model.CVSimplifiedBranchingSupported))return!1;if(t){var e=JSON.parse(t);if(!e.IsSimplified)return!e.rules.length}return!0}!function(n){n[n.TranslationOnly=0]="TranslationOnly",n[n.BranchingOnly=1]="BranchingOnly",n[n.Both=2]="Both"}(r||(r={}))},33632:function(n,t,e){"use strict";e.d(t,{j:function(){return r},s:function(){return u}});var r,i=e(17891),o={};!function(n){n[n.ApiFacadeEndPoint=0]="ApiFacadeEndPoint",n[n.FormsProUIHost=1]="FormsProUIHost",n[n.FormsHomeUrl=2]="FormsHomeUrl",n[n.FormsSingleSignOnHomeUrl=3]="FormsSingleSignOnHomeUrl",n[n.FormsProCdnHomeUrl=4]="FormsProCdnHomeUrl",n[n.PreviewSettingsDefaultDate=5]="PreviewSettingsDefaultDate",n[n.FormsProGeo=6]="FormsProGeo",n[n.FormsProLicensingServiceEndPoint=7]="FormsProLicensingServiceEndPoint",n[n.FormsProSampleFormTenantId=8]="FormsProSampleFormTenantId",n[n.FormsProMSRewardsAvailableCountryCodes=9]="FormsProMSRewardsAvailableCountryCodes",n[n.FormsProCSATEndpoint=10]="FormsProCSATEndpoint",n[n.FormsProCSATTenant=11]="FormsProCSATTenant",n[n.FormsProResponseLimit=12]="FormsProResponseLimit",n[n.UIFacadeEndPoint=13]="UIFacadeEndPoint",n[n.ChatDistributionEndpoint=14]="ChatDistributionEndpoint",n[n.ProjectUIServiceEndpoint=15]="ProjectUIServiceEndpoint",n[n.FormsProResponseGridLimit=16]="FormsProResponseGridLimit",n[n.OrchestrationServiceEndpoint=17]="OrchestrationServiceEndpoint",n[n.FormsProRespondentGridMaxLimit=18]="FormsProRespondentGridMaxLimit",n[n.FormsProRespondentGridPageSize=19]="FormsProRespondentGridPageSize",n[n.SatisfactionMetricTrendAndAggregateDataUrl=20]="SatisfactionMetricTrendAndAggregateDataUrl",n[n.SatisfactionMetricMaxLimit=21]="SatisfactionMetricMaxLimit",n[n.CustomerVoiceProjectShareServiceEndpoint=22]="CustomerVoiceProjectShareServiceEndpoint",n[n.ExportCsvServiceEndpoint=23]="ExportCsvServiceEndpoint",n[n.CustomerVoiceSurveyUIServiceEndpoint=24]="CustomerVoiceSurveyUIServiceEndpoint",n[n.CurrentFlowEndpoint=25]="CurrentFlowEndpoint",n[n.CVFlowUIServiceEndPoint=26]="CVFlowUIServiceEndPoint",n[n.CVHomeVideoLinks=27]="CVHomeVideoLinks",n[n.CVDynamicsLink=28]="CVDynamicsLink",n[n.ProjectAlertServiceEndPoint=29]="ProjectAlertServiceEndPoint",n[n.CVReportingLimit=30]="CVReportingLimit",n[n.CustomerVoiceProjectShareServiceV2Endpoint=31]="CustomerVoiceProjectShareServiceV2Endpoint",n[n.CVCIServiceEndpoint=32]="CVCIServiceEndpoint",n[n.CVSurveyReportDateFilterRange=33]="CVSurveyReportDateFilterRange",n[n.DistributionServiceEndpoint=34]="DistributionServiceEndpoint",n[n.CVPauseResumeService=35]="CVPauseResumeService",n[n.InviteServiceEndpoint=36]="InviteServiceEndpoint",n[n.ShareV2StatusFetchDuration=37]="ShareV2StatusFetchDuration",n[n.CustomLinksExcelUploadLimit=38]="CustomLinksExcelUploadLimit",n[n.CustomLinksRecordsLimit=39]="CustomLinksRecordsLimit",n[n.CVReportServiceHostUrl=40]="CVReportServiceHostUrl",n[n.CascadeSubQuesMaxLimit=41]="CascadeSubQuesMaxLimit",n[n.CVRespondentGridPageSize=42]="CVRespondentGridPageSize",n[n.CVResponseDeletePerBatchLimit=43]="CVResponseDeletePerBatchLimit",n[n.CVProjectOperationFetchDuration=44]="CVProjectOperationFetchDuration",n[n.CVSurveyCountApproachingLimitFirstStage=45]="CVSurveyCountApproachingLimitFirstStage",n[n.CVSurveyCountApproachingLimitSecondStage=46]="CVSurveyCountApproachingLimitSecondStage",n[n.CVSurveyCountExceedLimit=47]="CVSurveyCountExceedLimit",n[n.ShareV2SurveyLimitToShowMessage=48]="ShareV2SurveyLimitToShowMessage",n[n.CVHomeVideoTitles=49]="CVHomeVideoTitles",n[n.CVRoleTemplateId=50]="CVRoleTemplateId",n[n.CVGetFormLimit=51]="CVGetFormLimit",n[n.CVCkEditorVersion=52]="CVCkEditorVersion",n[n.CVTransferOwnershipDocUrl=53]="CVTransferOwnershipDocUrl"}(r||(r={})),o[r.ApiFacadeEndPoint]="https://mfpapifacadefaint.azurewebsites.net/",o[r.UIFacadeEndPoint]="https://cvsurveyuiserviceint.azurewebsites.net",o[r.FormsProUIHost]="https://mfpuiwebappint.azurewebsites.net",o[r.FormsHomeUrl]="https://forms.office-int.com",o[r.FormsSingleSignOnHomeUrl]="https://forms.office-int.com/formspro",o[r.FormsProCdnHomeUrl]="https://mfpembedcdnint.azureedge.net/mfpembedcontint/",o[r.PreviewSettingsDefaultDate]="2019-02-08",o[r.FormsProGeo]="INT",o[r.FormsProLicensingServiceEndPoint]="https://mfplicensingservicefaint.azurewebsites.net/",o[r.FormsProSampleFormTenantId]="558a6a52-809d-4de8-8b01-01a51502c93f",o[r.FormsProMSRewardsAvailableCountryCodes]="US",o[r.FormsProCSATEndpoint]="https://nps.onyx.azure.net",o[r.FormsProCSATTenant]="formspro",o[r.FormsProResponseLimit]="50000",o[r.ChatDistributionEndpoint]="https://mfpuifacadeint.projectsshimlaint.com/",o[r.ProjectUIServiceEndpoint]="https://cvuiserviceatmint.projectsshimlaint.com/",o[r.ProjectAlertServiceEndPoint]="https://mfpprojectalertfaint.azurewebsites.net/",o[r.FormsProResponseGridLimit]="5000",o[r.OrchestrationServiceEndpoint]="https://cvtemplateorchfaint.azurewebsites.net/",o[r.FormsProRespondentGridMaxLimit]="500",o[r.FormsProRespondentGridPageSize]="50",o[r.SatisfactionMetricTrendAndAggregateDataUrl]="https://mfpsatisfactionmetricsapisfaint.azurewebsites.net/",o[r.SatisfactionMetricMaxLimit]="10",o[r.CustomerVoiceProjectShareServiceEndpoint]="https://cvuisharev2tm.projectsshimlaint.com/",o[r.ExportCsvServiceEndpoint]="https://mfpuasfaint.azurewebsites.net/",o[r.CustomerVoiceSurveyUIServiceEndpoint]="https://cvsurveyuiserviceint.azurewebsites.net/",o[r.CurrentFlowEndpoint]="https://us.tip1.flow.microsoft.com/",o[r.CVFlowUIServiceEndPoint]="https://cvflowfaint.azurewebsites.net/",o[r.CVHomeVideoLinks]="https://youtu.be/Mctc8pc6q_A,https://youtu.be/se5fCA9IptI,https://youtu.be/jLdw_TSqolA",o[r.CVHomeVideoTitles]="Introduction to Dynamics 365 Customer Voice,How to add branching rules to your survey in Dynamics 365 Customer Voice,Customer Feedback Management Solution for banks using Dynamics 365 Customer Voice",o[r.CVDynamicsLink]="https://dynamics.microsoft.com/en-us/customer-voice/overview/",o[r.CVReportingLimit]="500000",o[r.CustomerVoiceProjectShareServiceV2Endpoint]="https://cvuisharev2faint.azurewebsites.net/",o[r.CVCIServiceEndpoint]="https://cvcifaint.azurewebsites.net/",o[r.DistributionServiceEndpoint]="https://mfpdistfaint.azurewebsites.net/",o[r.CVSurveyReportDateFilterRange]="90",o[r.CVPauseResumeService]="https://mcvparfaint.azurewebsites.net/",o[r.InviteServiceEndpoint]="https://cvinviteservicefaint.azurewebsites.net/formapi/api/",o[r.ShareV2StatusFetchDuration]="5000",o[r.CustomLinksExcelUploadLimit]="10000",o[r.CustomLinksRecordsLimit]="10000",o[r.CVReportServiceHostUrl]="https://customervoicereportingapi.azurewebsites.net/",o[r.CascadeSubQuesMaxLimit]="3",o[r.CVRespondentGridPageSize]="500",o[r.CVResponseDeletePerBatchLimit]="500",o[r.CVProjectOperationFetchDuration]="5000",o[r.CVSurveyCountApproachingLimitFirstStage]="350",o[r.CVSurveyCountApproachingLimitSecondStage]="375",o[r.CVSurveyCountExceedLimit]="400",o[r.ShareV2SurveyLimitToShowMessage]="15",o[r.CVRoleTemplateId]="62e90394-69f5-4237-9190-012177145e10",o[r.CVGetFormLimit]="200",o[r.CVCkEditorVersion]="4.11.2-full",o[r.CVTransferOwnershipDocUrl]="https://docs.microsoft.com/en-us/dynamics365/customer-voice/manage-projects#share-a-project";var u=function(){function n(){}return n.getSetting=function(t){n.webSettingsJson||(n.webSettingsJson=decodeURI((0,i.m1)().webSettings||"{}")),n.webSettingsMap||(n.webSettingsMap=JSON.parse(n.webSettingsJson));var e=n.webSettingsMap[r[t].toString()];if(!e){var u=o[t];e=u||n.defaultValue}return e},n.defaultValue="",n}()},93846:function(n,t,e){"use strict";var r;e.d(t,{g:function(){return r}}),function(n){n[n.ResponsePage=1]="ResponsePage",n[n.TeamsResponsePage=2]="TeamsResponsePage",n[n.AssignmentResponsePage=4]="AssignmentResponsePage"}(r||(r={}))},93056:function(n,t,e){"use strict";e.d(t,{i0:function(){return a},Mz:function(){return s}});var r,i,o={$detectUserLoggedInAAD:"a",$getToken:"b",$lrpIoC:"c",$setIoCDelegator:"d"},u=new(e(69578).z0);function s(n){i=n}function a(){var n=function(){if("function"==typeof i)return i;var n=function(){r||(r={},Object.keys(o).forEach((function(n){var t=o[n];Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:function(){return window.formClientApi&&window.formClientApi[t]},set:function(){throw new Error("Please call setClientApi instead.")}})})));return r}().$getToken;if("function"==typeof n)return n;return}();return n?n().then((function(n){return u.resolve(n),n})).catch((function(n){throw u.reject(n),n})):Promise.reject("No addin access token getter is registered.")}},52308:function(n,t,e){"use strict";e.d(t,{w:function(){return f}});var r,i=e(89384),o=e(17891),u=e(10597),s=e(97410),a=e(27223),c=!1;function f(n){return r&&!c||(c=!1,r=(0,a.zo)(n).then((function(){return(0,s.O7)("RefreshInfo.Success"),(0,u.r)().Flighting.setFlights((0,o.m1)().flights),(0,i.s0)(),!0})).catch((function(n){throw(0,s.O7)("RefreshInfo.Failed",{error:n}),c=!0,n}))),r}},32858:function(n,t,e){"use strict";e.d(t,{dc:function(){return N},gf:function(){return R},Be:function(){return T}});var r=e(55132),i=e(13472),o=function(){function n(n,t){var e=this;this.handlers=[],this.It=function(){for(var n=[],t=0;t-1&&t.handlers.splice(e,1)}))},n.prototype.subscribeAtFirst=function(n){var t=this;return this.handlers.unshift(n),(0,i.Jh)((function(){var e=t.handlers.indexOf(n);e>-1&&t.handlers.splice(e,1)}))},n.prototype.reset=function(){this.Ft(this.It)},n}(),u=(0,i.Jh)((function(){return new o((function(n){window.onbeforeunload=n}),window.onbeforeunload)})),s=function(){function n(){this.Ct=!0,this.kt=0}return n.getInstance=function(){return n._instance||(n._instance=new n)},n.prototype.blockUnload=function(){var n=this;if(!this.Ct)return function(){};this.kt++;var t=u().subscribe((function(){return""}));return(0,i.Jh)((function(){n.kt--,t()}))},n.prototype.forceUnblockUnload=function(n){void 0===n&&(n=!1),u().subscribe((function(){return null})),u().reset(),this.Ct=!n,this.kt=0},n.prototype.isUnloadBlocked=function(){return this.Ct&&this.kt>0},n}();function a(){return s.getInstance()}var c,f=e(9468),l=e(17891),h=e(61377),d=e(69578),m=e(10597),v=e(97410),p=e(59198),g=e(24376),b=e(91970),w=e(11431),S=e(57904),y=e(84922),I=e(14051),F=e(93056),C=e(52308),_=e(42199),k=0,P=null;function T(){window.formsRefreshAuthTokenCallbacks||(window.formsRefreshAuthTokenCallbacks=[]);return(0,_.iL)((function(){return(0,m.r)().AuthContext.hasUserLoggedIn()}),(function(){a().forceUnblockUnload(!0),(0,m.r)().AuthContext.signIn().then(w.Gv)}))}function N(n,t){return new Promise((function(e,r){var i="detect-user-loggedIn-frame";if(window.formsDetectUserLoggedInCallback)r();else{var o="Msa"===n,u=o?"Auth.DetectUserLoggedInMSA":"Auth.DetectUserLoggedInAAD",s=new h.W(u);s.start();var a=(0,l.m1)(),c=a.signInLinkSilentMsa,f=a.signInLinkSilent,d=o?c:f;t&&(d=(0,b.qf)(d,o?"username":"login_hint",encodeURIComponent(t))),window.formsDetectUserLoggedInCallback=function(n,t){window.formsDetectUserLoggedInCallback=void 0,s.end({resultType:t?"ExpectedFailure":"Success",extraData:{loggedIn:n}});var r=document.getElementById(i);null==r||r.remove(),e(n)};var m=function(n,t){var e=document.createElement("iframe");return e.id=n,e.style.display="none",e.src=t,document.body.append(e),e}(i,(0,S.T7)({upn:t,type:o?2:1,silent:!0},d)),v=function(){window.formsDetectUserLoggedInCallback&&window.formsDetectUserLoggedInCallback(!1,!0)},p=!1;m.contentWindow.addEventListener("load",(function(){p=!0,window.setTimeout(v,5e3)})),window.setTimeout((function(){p||v()}),5e3)}}))}function R(){if((0,g.$r)()||(0,g.sV)()||(0,g.PX)()){if(c||(c=new d.z0),!(0,g.sV)()&&!(0,g.PX)()&&P&&P.isAccessTokenFromHostValid()){var n=P.getAccessToken();return c.resolve(n),c.promise()}return c.states()!==d.HU.Pending&&(c=new d.z0),function(){P=null,window.addEventListener("message",E,!1);var n="*";(0,p.G7)("FixEslintPostMessageError")&&(!(n=(0,I.Bq)())||n&&!(0,r.n)(n))&&((0,v.O7)("Warning.HostOrigin.GetAccessTokenFromHost",{error:"Parent origin doesn't exist in whitelist",origin:n}),n="*");window.parent.postMessage("GetAccessTokenFromHost",n)}(),k=0,O(),c.promise()}return(0,I._G)()?(0,F.i0)().then(null,(function(){return L()})):(0,f.MQ)()?(0,y.nE)():L()}function E(n){if(n.data&&"string"==typeof n.data&&n.data.startsWith("FormsAccessTokenFromHost:"))try{var t="FormsAccessTokenFromHost:Bearer ",e=n.data.indexOf(t);if(-1!==e){var r=n.data.substring(e+t.length);P=new x(r)}}finally{window.removeEventListener("message",E,!1)}}function L(){return Promise.resolve(null)}function O(){if(null!=P){var n=P.getAccessToken();(0,C.w)(n).then((function(){return c.resolve(n)}))}else k<10?(k++,window.setTimeout(O,1e3)):(k=0,c.resolve(null))}var x=function(){function n(n){this.Nt=n;this.Rt=(new Date).getTime()+33e5}return n.prototype.getAccessToken=function(){return this.Nt},n.prototype.isAccessTokenFromHostValid=function(){return!!this.Nt&&(new Date).getTime()0&&r[0](n,t):r.forEach((function(e){return e(n,t)})))}finally{window.formsRefreshAuthTokenCallback=void 0,window.formsRefreshAuthTokenCallbacks=void 0}};if(n()){var l=(0,c.T7)({silent:!0,type:(0,o.m1)().userInfo.IsMsa?2:1},(0,o.m1)().userInfo.IsMsa?i:e),h=document.createElement("iframe");h.id="refreshAuthTokenFrame",h.setAttribute("style","display: none;"),(0,r.lq)(h,l);var d=function(){window.formsRefreshAuthTokenCallback&&window.formsRefreshAuthTokenCallback(!1,!0)};h.onload=function(){window.setTimeout(d,5e3)},window.setTimeout(d,5e3),window.formsRefreshAuthTokenCallback=f,document.body.appendChild(h)}else f(!1,!0)}}))}function h(n){if(401===(n&&n.response&&n.response.statusCode)){var t=n&&n.response&&(0,i.Bl)(n.response.body);if(718===(t&&t.error&&parseInt(t.error.code)))return!0}return!1}function d(n){if(401===(n&&n.response&&n.response.statusCode)){var t=n&&n.response&&(0,s.Cm)(n.response.headers,"WWW-Authenticate");return t&&-1!==t.indexOf("invalid_token")}return!1}function m(){var n=window.location.href,t=n.replace(/^https:\/\/forms\.microsoft(-int)?\.com/,"https://forms.office$1.com");n!==t&&(0,a.qk)(t)}},15862:function(n,t,e){"use strict";e.d(t,{Y:function(){return a}});var r=e(22224),i=e(35798),o=e(17891),u=e(43865),s=e(84239);function a(n,t){var e;if((0,u.Kg)(n))e=n;else if(n){var a=n;if(a.isFieldReady(s.z.Schema.OwnerId)&&!a.IsGroupForm&&a.Model.OwnerId!==(0,o.m1)().userInfo.UserId)return!1;a.isFieldReady(s.z.Schema.Category)&&(e=a.Model.Category),a.isFieldReady(s.z.Schema.Type)&&!(0,i.Lu)()&&("approval"===a.Model.Type?e="Approval":"reports"===a.Model.Type&&(e="Reports"))}return!!e&&r.contains({"Loop Poll":["DisableEditForm"],Poll:["Settings.AllowResponderGetAllResponses","DisableEditForm","ResponsePage.PollView"],"Teams Poll":["DisableEditForm"],Approval:["DisableEditForm"],Reports:["DisableEditForm"]}[e],t)}},64931:function(n,t,e){"use strict";e.d(t,{Ey:function(){return v},M8:function(){return m},Mt:function(){return p},OF:function(){return c},Rk:function(){return a},Ud:function(){return u},aU:function(){return s},cB:function(){return f},dw:function(){return h},u:function(){return l},wp:function(){return d}});var r=e(53013),i=(e(71683),e(59198)),o=e(75187);function u(){return(0,i.G7)("EnableCustomerVoice")&&!(0,i.G7)("CustomerVoiceBlackList")}function s(){return g().indexOf("customervoice.microsoft.us")>=0}function a(){var n=(0,r.mc)();return"CVInt"===n||"CVProd"===n||"CVTip"===n||"CVFastfood"===n||s()}function c(){return a()&&u()}function f(){return"/pages/mobiledesignpage.aspx"===window.location.pathname.toLowerCase()}function l(){return(0,o.Db)().lang||null}function h(){return(0,o.Db)().showmultilingual||null}function d(){return(0,o.Db)().showheader||null}function m(){return(0,o.Db)().showfooter||null}function v(){var n=(0,o.Db)().showoriginalheader;return n&&"true"===n}function p(){var n=(0,o.Db)().showcancel;return n&&"true"===n}function g(){return window.location.host.toLocaleLowerCase()}},59198:function(n,t,e){"use strict";e.d(t,{Ci:function(){return l},G7:function(){return h},I9:function(){return a},Pf:function(){return f},am:function(){return m},t5:function(){return c}});var r,i=e(13472),o=e(17891),u=e(93846),s=e(10597);function a(n){r=n}function c(){return d(u.g.ResponsePage)&&!m()}function f(){return d(u.g.ResponsePage|u.g.TeamsResponsePage|u.g.AssignmentResponsePage)&&!m()}function l(){return c()}function h(n){try{return(0,s.r)().Flighting.isEnabled(n)}catch(n){return!1}}function d(n){return 0!=(r&n)}function m(){return!!(0,o.m1)().proEnabled&&h("FormsPro")}(0,i.Jh)((function(){return((0,o.m1)().flights||"").split(";").reduce((function(n,t){return-1===t.indexOf("!")&&(n[t]=!0),n}),{})}))},62128:function(n,t,e){"use strict";e.d(t,{P:function(){return a},Vp:function(){return v}});var r,i=e(13472),o=e(53013),u=e(17891),s=e(97410),a=function(){function n(n){var t=n.flights,e=void 0===t?"":t;this.Lt={},I(),""!==e&&(this.Ot=v(e)),""===e&&(this.xt=v((0,u.m1)().flights))}return n.prototype.isEnabled=function(n){return this.At(n)},n.prototype.isEnabled_Deprecated=function(n){return this.At(n)},n.prototype.setFlights=function(n){this.Ot=v(n)},n.prototype.clearFrozenValues=function(){this.Lt={}},n.prototype.At=function(n){var t=f[n];switch("tenant"===t&&(this.Ot||m(n),t="environment"),t){case"environment":if(n in this.Lt)return this.Lt[n];break;case"deprecated":this.Ot||m(n);break;default:return!1}var e=this.Ut(n);return"environment"===t&&(this.Lt[n]=e),e},n.prototype.Ut=function(n){var t=this;if(l[n]&&l[n].some((function(n){return t.At(n)})))return!1;if(h[n]&&!h[n].every((function(n){return t.At(n)})))return!1;var e=n.toUpperCase(),r=function(){if(p)return p;var n={};0;return p=n,n}();if(e in r)return r[e];var i=this.Ot||this.xt;return n in i?i[n]:c[n]},n.prototype.getDefaultSettings=function(){return c},n}(),c={},f={},l={},h={};function d(){r=function(){switch((0,o.mc)()){case"DevHost":return 1;case"Int":case"CVInt":return 2;default:return 3}}()}function m(n){var t=new Error('Checking flight "'.concat(n,'" before ready.'));(0,s.jg)("UnstableFlightChecking",{flightName:n,flightType:f[n],stack:t.stack})}function v(n){var t={};return n&&n.split(";").forEach((function(n){"!"!==n[0]?t[n]=!0:(n=n.substr(1),t[n]=!1)})),t}var p=null;function g(n,t){c[n]=S(t),f[n]="environment"}function b(n,t){c[n]=S(t),f[n]="tenant"}function w(n,t){c[n]=S(t),f[n]="deprecated"}function S(n){return n>=(r||d(),r)}var y=function(n,t){h[n]=t},I=(0,i.Jh)((function(){var n;w("TestDeprecatedFlight",0),g("TestEnvironmentFlight",3),g("TestEnvironmentFlight_Blocker",0),b("TestTenantFlight",3),b("ResponseInApp",2),w("FormInsight",2),w("PartialPut",1),g("AutoPinWordCloudInsight",2),g("CustomerVoiceBlackList",0),g("DaemonWorker",0),g("Day1RevampEnabled",0),g("DeprecateFormsAppPollingExp",0),g("DisableRecordNameForTenant",0),g("EnableAnonymousFormNotice",2),g("EnableCustomerVoice",3),g("EnableECSInFirstRelease",0),g("EnableEDPS",2),g("EnableFormsForExcelPageReload",2),g("EnableFriendlyLinkForRichText",2),g("EnableInsertStreamVideoInGov",0),g("EnableLegacyDataSyncDeprecationWarning",0),g("EnableLegacyDataSyncDeprecationWarningBar",0),g("EnablePowerAutomateMigrationMessage",0),g("EnableReactFixesOnErrorPage",0),g("EnableStrongCSPSanitize",2),g("EnableThrowErrorInDispatchDeadLoop",0),g("EstimationTimeUIFix",2),g("FeedbackLoopComponent",2),g("FixEslintPostMessageError",2),g("FixEslintTeamsPostMessageError",2),g("FixFluidPollRefresh",3),g("FluidCategoryLoopPoll",3),g("FluidFormErrorView",3),g("FluidPollRemoveResponder",3),g("FluidQuickAddInFPS",2),g("GetDriveItemFromFormApi",3),g("GetInsightNewApi",0),g("GetInsightPerResponseChange",2),g("GetRealtimeInsights",2),g("ImageManualReload",2),g("IncreaseTeamsPollMaxOptionCount",3),g("IntelligencePollSuggestionsFPS",2),g("MobileQuestionCalloutBugfix",2),g("OutlookAddInAADToken",0),g("OutlookAddInDeprecateReminder",2),g("OutlookAddInSSOReject",3),g("PollChoiceResultView",2),g("PollOptionSuggestion",2),g("SDXAwaitAutoSaveOnMessage",3),g("SDXCacheAccessTokenAllPlatforms",2),g("SDXConsumeUnifiedCosmosDB",0),g("SDXCreateNewFormEnableSetServerDocId",0),g("SDXDataSync",2),g("SDXDisableUPNCheck",0),g("SDXCheckTenantAnonymousUser",0),g("SDXEarlyInitStatusMonitoring",3),g("SDXEnableInsightsSurvey",0),g("SDXEnableInsightsTaskPane",0),g("SDXEnableRetryOpenXL",0),g("SDXExcelUseBuiltinDateTimeFormat",0),g("SDXInsightsCustomPromptEnabled",0),g("SDXInsightsSuggestionPillar",2),g("SDXInsightsUXV2",2),g("SDXLoadAuthRetryOnAllErrors",3),g("SDXLoadOfficeJsDynamicLoad",0),g("SDXLoadOfficeJsWithMiddleware",0),g("SDXNotShowBizBarOnPageHidden",3),g("SDXNotShowRepeatedErrorMessages",0),g("SDXQuestionListEnabled",0),g("SDXRecategorizeSSOFailures",3),g("SDXRemoveGraphTokenConsumer",0),g("SDXSendResourceId",0),g("SDXShowBizBarAfterPageVisible",2),g("SDXShowConnectMessageDuringPopup",3),g("SDXShowCopilotButtonWithoutInsights",2),g("SDXShowLastSyncTime",2),g("SDXShowLastSyncTimeWithWarning",2),g("SDXSignalRKillSwitch",0),g("SDXSkipAppErrorToExtraDataError",2),g("SDXSuppressBizBarError",3),g("SDXSuppressBusinessBarError",3),g("SDXSuppressErrorMessageWhenSessionExpired",2),g("SDXSuppressExceptionInMsalScenario",3),g("SDXSuppressKnownOfficeJSErrors",3),g("SDXTranslateNetworkErrorToAppError",2),g("SDXUseResponseIdCache",2),g("SDXUseUpnAndTableId",0),g("SDXUseWebUrlForOwner",0),g("SearchEngineOptimization",3),g("SensitiveInfoCheckForAllForms",2),g("SensitiveInfoCheckInResponsePage",2),g("ServiceWorkerEnabled",0),g("SkipPatchRedirect",2),g("TeamsBubbleEnableCrossEnvCheck",3),g("TeamsForLifeAuthoringDeferSso",2),g("TeamsPollAnonymousResultView",2),g("TeamsPollAnonymousToken",2),g("TeamsPollCDL",2),g("TeamsPollDisableUnsupportedFeaturesForLargeEvents",2),g("TeamsPollGetOwnResponsesSw",2),g("TeamsPollMESuggestion",0),g("TeamsPollMultiQuestionSuggestion",2),g("TeamsPollNPS",2),g("TeamsPollSignalR",2),g("UnregisterServiceWorker",0),g("WordCloudPoll",2),g("XLDataSyncEnabledForWhitelistedTenant",0),g("XLDataSyncLegacyFullyDisabled",2),g("XLDataSyncRecalculateServerDocId",0),b("AssignmentsIFrameLimitParentHeaders",2),b("BaseProFRE",0),b("DesignerFileUpload",0),b("EnableAnonymousUploadLink",0),b("FormsProAvailableTeachingCallout",0),b("HideReportAbuse",0),b("IntelligenceExpDemoTenantTest",0),b("NextButtonLiveRegion",2),b("QuickPollDisableEws",0),b("SuspiciousForm",2),g("FormsPro",0),g("FormsProSignupInformationPage",0),g("FormsProTIP",0),b("CDSFileUploadSecurityAlertText",0),b("CKEditiorHtmlSource",0),b("CustomerVoiceAutomateSurveyReminder",0),b("CustomerVoiceAutomation",0),b("CustomerVoiceCascadeLocale",0),b("CustomerVoiceCascadeQuestion",0),b("CustomerVoiceCDSFileDownload",0),b("CustomerVoiceCDSFileUpload",0),b("CustomerVoiceCDSOptimization",1),b("CustomerVoiceCustomLanguage",0),b("CustomerVoiceCustomLanguageNYC",0),b("CustomerVoiceCustomLanguageV2",0),b("CustomerVoiceEmailTemplateBulkUpload",0),b("CustomerVoiceEmbedCancelButton",0),b("CustomerVoiceEventsWithData",0),b("CustomerVoiceExportFromCDS",0),b("CustomerVoiceExtendedLikert",0),b("CustomerVoiceFileUpload",0),b("CustomerVoiceFileUploadAnonymous",0),b("CustomerVoiceIntegrations",1),b("CustomerVoiceInviteBulkDelete",0),b("CustomerVoiceInviteMigrationDeletion",0),b("CustomerVoiceInviteMigrationUI",0),b("CustomerVoiceLoggedInUserSendEmail",0),b("CustomerVoiceMultilingualLocalesIncreasedLimit",0),b("CustomerVoiceOCVResponseToHiveBlock",0),b("CustomerVoicePreviewEmbed",2),b("CustomerVoiceResposnePreviewURLRedirect",0),b("CustomerVoiceSharingV2",0),b("CustomerVoiceSharingV2AllProject",0),b("CustomerVoiceSharingV2AllProjectNewColumn",0),b("CustomerVoiceSharingV2BlockSurvey",0),b("CustomerVoiceSPOFileUpload",0),b("CustomerVoiceSurveyMove",0),b("CustomerVoiceSurveyReminder",0),b("CustomerVoiceToyotaCustomEmailFont",0),b("CustomerVoiceToyotaCustomFont",0),b("CustomerVoiceUpdatePrivacyAndTou",0),b("CustomerVoiceUpdatePrivacyStatement",0),b("CustomerVoiceVoluntarySurveyReminder",0),b("CVAdvBranchingImprovements",0),b("CVAutoNavigateAutoSubmit",0),b("CVExportProjectToOtherTenants",0),b("CVFiltersOtherOption",0),b("CVFusionTextAnalytics",0),b("CVHighCharts",0),b("CVHighChartsDateCasacde",0),b("CVInviteStatusReason",0),b("CVLeapFrogChoiceQuestionNewUX",0),b("CVLeapFrogChoiceQuestionRandomization",0),b("CVLeapFrogVisualRefresh",0),b("CVLongTermReporting",0),b("CVManageProjects",0),b("CVMultipleResponseDelete",0),b("CVOptimizeHomePagePerf",0),b("CVPartialResponse",0),b("CVProjectLevelAggregatedValuesV2",0),b("CVRatingQuestionSorting",0),b("CVRestrictSurveyAccess",0),b("CVRightRespondentDetails",0),b("CVSatisfactionMetricsDrilldown",0),b("CVSatisfactionMetricsReportsRedesign",0),b("CVSectionBranchingShowHide",0),b("CVSimplifiedBranching",0),b("CVSMQuestionDeletion",0),b("CdsFileUploadExceptionTelemetry",0),b("CustomerVoiceDataClassification",0),b("CustomerVoiceDisableStrongCSPSanitize",0),b("CustomerVoiceFlushRedirectionLogs",0),b("CustomerVoiceHideSubmitButton",0),b("CustomerVoiceItalyA11yNotify",0),b("CustomerVoiceOcvHeightNotify",0),b("CustomerVoiceQuestionLibrary",0),b("CVBranchingOptimization",0),b("CVDepartmentalCapacity",0),b("CVEnableLsMapReset",0),b("CVEnableProxyForDistributeUiService",0),b("CVEnableProxyForProjectService",0),b("CVHtmlTagsInTranslationTemplate",0),b("CVLazyLoadResourceString",0),b("CVResponsePreviewPagePromises",0),b("CVSurveyDeletionWithBranchingPopup",0),b("CVTextQuestionLagOptimization",0),b("DisableDesignPageForTrials",0),b("DummyCascadeChart",0),b("FormsProAnswerTag",1),b("FormsProChatDistributeChannel",0),b("FormsProCSAT",0),b("FormsProCSATSimulate",0),b("FormsProCustomCss",0),b("FormsProCustomDomain",0),b("FormsProCustomFooter",0),b("FormsProCustomResponsesPage",0),b("FormsProDemoView",0),b("FormsProDisableAntiFishingNotice",0),b("FormsProEmbedCodeToHive",0),b("FormsProEmbedCompactPlus",0),b("FormsProEnableSurveyMove",0),b("FormsProGCC",0),b("FormsProHideFooter",0),b("FormsProHidePrivacyLink",0),b("FormsProHighCharts",0),b("FormsProInviteSingleSelection",0),b("FormsProMSRewardsIntegration",2),b("FormsProMultilingualLocalesIncreasedLimit",0),b("FormsProNotifyAdmin",0),b("FormsProQuestionVisibility",3),b("FormsProRemoveEmbedLink",0),b("FormsProRTECharLimit",0),b("FormsProSampleFormOnClient",0),b("FormsProSurveyPermissions",2),b("FormsProTrial",0),b("FormsProTrialExpiration",0),b("OverSurveyManagement",0),b("PartialResponseSettingDefaultValueOn",0),b("PauseAndResumeSettingDefaultValueOn",0),b("RebrandStream",0),y("CustomerVoiceSPOFileUpload",["CustomerVoiceFileUpload"]),y("CustomerVoiceCDSFileDownload",["CustomerVoiceFileUpload"]),y("CustomerVoiceCDSFileUpload",["CustomerVoiceFileUpload"]),y("CustomerVoiceFileUploadAnonymous",["CustomerVoiceFileUpload"]),y("PartialResponseSettingDefaultValueOn",["CVPartialResponse"]),n=["TestEnvironmentFlight_Blocker"],l["TestTenantFlight"]=n,y("TestTenantFlight",["TestEnvironmentFlight"])}))},88326:function(n,t,e){"use strict";e.d(t,{JY:function(){return l},aI:function(){return h},jy:function(){return d},mt:function(){return f}});var r,i=e(34629),o=e(13472),u=e(17891),s=e(53032),a={},c=(0,o.Jh)(s.QX);function f(n){var t,e;if(!window.OfficeFormServerInfo)return a[n]||"";if(void 0===r){try{r=JSON.parse(decodeURI((0,u.m1)().webSettings||"{}"))}catch(n){r={}}r=(0,i.Cl)((0,i.Cl)({},r),c())}return null!==(e=null!==(t=r[n])&&void 0!==t?t:a[n])&&void 0!==e?e:""}function l(n,t){void 0===t&&(t=null);var e=f(n);if(e)try{return JSON.parse(e)}catch(n){}return t}function h(n){var t=f(n);if(t)try{var e=JSON.parse(t);if(Array.isArray(e))return e}catch(n){return null}return null}function d(n,t){var e=f(n);if(e){var r=parseInt(e);if(!isNaN(r))return r}return t}function m(n,t){a[n]=t}m("CustomerVoiceTransitionCompletionDate","08/30/2020"),m("CustomerVoiceUrl","https://customervoice.microsoft-int.com")},1641:function(n,t,e){"use strict";e.d(t,{Hq:function(){return s},Oy:function(){return m},Pf:function(){return l},QK:function(){return c},YC:function(){return f},cP:function(){return h},dH:function(){return a},v8:function(){return d}});var r=e(53013),i=e(99846),o=null,u=null;function s(n){o=n}function a(){return o&&o()}function c(n){u=n}function f(){return u&&u()}function l(){var n=(0,i.MN)(a()||"");return!!n.OrgId&&n.OrgId.toLowerCase()===(0,r.SM)()}function h(){var n=(0,i.MN)(a()||"");return!!n.OrgId&&n.OrgId.toLowerCase()===(0,r.T0)()}function d(){var n=(0,i.MN)(a()||"");return!!n.OrgId&&-1!==(0,r.Rd)().indexOf(n.OrgId.toLowerCase())}function m(){var n=a();return n&&(0,i.MN)(n)}},53032:function(n,t,e){"use strict";e.d(t,{KH:function(){return a},P4:function(){return c},QX:function(){return s}});var r,i=e(49105),o=e(17891);function u(n){var t=n||(0,o.m1)().ecsWebSettings||{};return"string"==typeof t&&(t=(0,i.Bl)(t)),"object"==typeof t&&!Array.isArray(t)&&t||(t={}),t}function s(n){var t=u(n),e={};return Object.keys(t).forEach((function(n){e[n]="string"!=typeof t[n]?JSON.stringify(t[n]):t[n]})),e}function a(n){return void 0===r&&(r=u()),r[n]}function c(n){r=u(n),!0}},92142:function(n,t,e){"use strict";e.d(t,{MU:function(){return m},LO:function(){return v}});var r=e(71533),i=e(78669),o=e(17891),u=e(524);var s,a,c,f,l,h={},d=(s=(0,o.m1)(),a=s.scriptSuffix,c=s.isCdnEnabled,f={"combined-design":c?"Vendors/combinedmin/design_v3.min.js":"Vendors/combined/design_v3_e768a0b.js","combined-response":c?"Vendors/combinedmin/response_v2.min.js":"Vendors/combined/response_v2_ad1c4f6.js",DataTables:"Vendors/DataTables."+a,Chart:"Vendors/Chart-2.6."+a,Clipboard:"Vendors/clipboard-1.7.1.min.js",ColorThief:"Vendors/color-thief/color-thief.min.js",D3:"Vendors/d3/d3."+a,ImmersiveReader:"Vendors/ImmersiveReader/immersive-reader-sdk.0.0.2.min.js",JQuery_RateIt:"Vendors/rating-1.1.0/jquery.rateit."+a,JQuery_QRCode:"Vendors/jquery.qrcode.min.js",MathJax:(l=(0,r.rG)("/mathjax/MathJax.js",!0),"".concat(l,"?config=TeX-AMS_HTML,Safe")),MathQuill:"Vendors/mathquill/mathquill."+a,O365ShellBootstrap:p(),Mark:"Vendors/markjs-8.9.0/mark."+a,SignalR:"Vendors/SignalR/jquery.signalR-2.4.1.min.js",Sortable:"Vendors/sortablejs-1.8.4/Sortable.modified."+a},Object.keys(f).reduce((function(n,t){return n[t]=function(n,t){return g(n)?(0,i.CS)(t,!1):t||""}(t,f[t]),n}),{}));function m(n){return h[n]||(h[n]=function(n){return function(n,t,e){return new Promise((function(r,i){if(!n)throw Error("No script path for "+n);var o=document.getElementsByTagName("head")[0];if(!o)return i(Error("No head element found!"));var s=document.createElement("script"),a=document.querySelector("script[nonce]");s.type="text/javascript",s.async=!0,a&&(s.nonce=a.nonce),(0,u.lq)(s,n),t&&e&&(s.crossOrigin="anonymous"),s.onload=function(){return r()},s.onerror=function(){o.removeChild(s),i(Error("Failed to load javascript file: "+n))},o.appendChild(s)}))}(d[n],(0,o.m1)().isCdnEnabled,g(n))}(n)),h[n]}function v(n){return Promise.all(n.map(m))}function p(){var n=(0,o.m1)(),t=n.o365ShellBootHost,e=n.o365ShellBootstrapperUrl;return t?e||t.concat("/api/shellbootstrapper/",(0,o.m1)().userInfo.IsMsa?"consumer":"business","/oneshell"):""}function g(n){return["MathJax","O365ShellBootstrap"].indexOf(n)<0}},30873:function(n,t,e){"use strict";e.d(t,{X:function(){return u}});var r=e(45430);var i=e(1641),o=e(88326);function u(n){(0,i.cP)()||r.km.Resolve("IThirdPartyLinkify").then((function(){return function(n){n.linkify();var t=/^[a-z0-9]\.|\.xxx/i,e=(0,o.mt)("LinkifyEscapeRegex");e&&(t=new RegExp(e,"i"));n.find("a.linkified").each((function(n,e){$(e).text().match(t)&&$(e).contents().unwrap()}))}(n)}))}},50510:function(n,t,e){"use strict";e.d(t,{IN:function(){return u},h4:function(){return a}});var r,i=e(69578),o=e(21342),u="ClientMSGraph.";function s(){r=new i.Am((0,o.oD)().getOD4BToken())}function a(n){return(r&&r.states()!==i.HU.Rejected||s(),r.promise()).then(n).catch((function(t){if(t&&t.response&&401===t.response.statusCode)return(r&&r.states()===i.HU.Pending||s(),r.promise()).then(n);throw t}))}"undefined"!=typeof FormsPro&&(FormsPro.sendRequestWithToken=a)},27223:function(n,t,e){"use strict";e.d(t,{$D:function(){return b},Lm:function(){return v},M_:function(){return m},Vt:function(){return p},qE:function(){return w},xJ:function(){return g},zo:function(){return S}});var r=e(17891),i=e(61377),o=e(56489),u=e(16499),s=e(77310),a=e(34183),c=e(71683),f=e(97410),l=e(64931),h=e(1641),d=e(53032);function m(n){var t;return n&&(t="lang="+n),function(n,t,e){return I(n,t,e,void 0)}("GetResourceStrings",t,void 0)}function v(){return m((0,l.u)())}function p(n){var t;return n&&"string"==typeof n&&(t=y(n)),I("GetRefreshedAntiForgeryToken",void 0,void 0,t).then((function(n){(0,r.yl)({antiForgeryToken:n})}))}function g(){return I("GetUserInfo",void 0,void 0,void 0).then((function(n){(0,r.yl)({userInfo:n})}))}function b(n){return I("GetThemes",void 0,JSON.stringify({name:n||""}),void 0)}function w(n){return(0,c.CR)((function(){return!0}))?I("GetHeaderThemes",void 0,JSON.stringify({name:n||""}),void 0):Promise.resolve("")}function S(n){n||(0,f.g2)("InvalidToken");var t=(0,h.dH)();return F("/Handlers/PageCommonHandler.ashx?method=GetCombined"+(t?"&id=".concat(t):""),void 0,y(n),"GetCombinedInfo").then((function(n){if(n){var t={ecsConfigSettings:n.ecsConfigSettings,flights:n.flight,userInfo:n.userInfo,environmentType:n.environmentType,ring:n.ring};if(n.antiForgeryToken&&(t.antiForgeryToken=n.antiForgeryToken),n.ecsWebSettings&&n.userInfo.UserId){var e=n.ecsWebSettings;t.ecsWebSettings="string"==typeof e?JSON.parse(n.ecsWebSettings):e}(0,r.yl)(t),n.userInfo.UserId&&(0,d.P4)(t.ecsWebSettings)}}))}function y(n){return{Accept:"application/json",Authorization:(0,a.e)(n)}}function I(n,t,e,r){var i;return i="/"===window.location.pathname?"/Default.aspx/".concat(n):"".concat(window.location.pathname,"/").concat(n),t&&(i+="?"+t),F(i,e,r,(0,s.GP)("PageMethod.{0}",n)).then((function(n){return n.d}))}function F(n,t,e,r){return C(n,t,e,r).then((function(n){try{return JSON.parse(n)}catch(t){return n}}))}function C(n,t,e,r){return new Promise((function(s,a){var f=new i.W(r),l=new XMLHttpRequest;l.open("POST",n),(0,c.CR)((function(){l.setRequestHeader("formspro","enabled")})),l.setRequestHeader("content-type","application/json; charset=utf-8"),l.setRequestHeader("X-CorrelationId",f.CorrelationId),l.setRequestHeader("X-UserSessionId",(0,o.d)()||""),l.setRequestHeader("x-ms-form-request-source",(0,u.$)()),e&&Object.keys(e).forEach((function(n){l.setRequestHeader(n,e[n])})),f.start(),t?l.send(t):l.send(),l.onreadystatechange=function(){if(l.readyState===XMLHttpRequest.DONE){var t=l.status;200===t||202===t||201===t?(f.end({resultType:"Success",extraData:{status:l.statusText}}),s(l.responseText)):(f.end({resultType:"Failure",extraData:{url:n,message:l.statusText}}),a(l.statusText))}}}))}},65784:function(n,t,e){"use strict";e.d(t,{H:function(){return f},_:function(){return c}});var r=e(17891),i=e(97410),o=Date.now(),u={},s={},a=function(){try{var n="FormsVersion"+window.location.pathname,t=window.localStorage.getItem(n),e=(0,r.m1)().version;return t===e||(window.localStorage.setItem(n,e),!1)}catch(n){return!1}}();function c(n,t){var e=Date.now(),r={sa:e-o};return u[n]=r,t.then((function(n){return r.d=Date.now()-e,n})).catch((function(n){throw r.d=Date.now()-e,r.f=1,n}))}function f(){var n=window.NavKeyPoints;(0,i.O7)("Forms.PerformanceAnalysis",{checkPoints:s,requests:u,requestsAll:Date.now()-o,scriptCached:a,scriptDownload:n&&n.PageStartTime&&o-n.PageStartTime,version:1})}},52523:function(n,t,e){"use strict";e.d(t,{k:function(){return r}});var r=function(){function n(n){var t=this;this.prefetchPromise=new Promise((function(n,e){t.prefetchResolve=n,t.prefetchReject=e})),this.cache=n}return n.prototype.init=function(){if(this.cache)switch(this.cache.state){case 3:this.onPrefetchSucceed();break;case 4:this.onPrefetchFaied();break;case 2:this.cache.successCallback=this.onPrefetchSucceed.bind(this),this.cache.errorCallback=this.onPrefetchFaied.bind(this);break;default:this.fallBackToNormalBoot()}else this.fallBackToNormalBoot()},n.prototype.getPromise=function(){return this.prefetchPromise},n}()},40168:function(n,t,e){"use strict";e.d(t,{O:function(){return i}});var r=e(33589);function i(n,t){var e=null!=t?t:(0,r.qn)();switch(n){case"1001":return e.Error_Message_1001;case"10203":return e.Error_Message_10203;case"10204":return e.Error_Message_10204;case"10205":return e.Error_Message_10205;case"10206":return e.Error_Message_10206;case"10207":return e.Error_Message_10207;case"10208":return e.Error_Message_10208;case"10300":return e.Error_Message_10300;case"10301":return e.Error_Message_10301;case"1204":return e.Error_Message_1204;case"15001":return e.Error_Message_15001;case"15003":return e.Error_Message_15003;case"15429":return e.Error_Message_15429;case"1624":return e.Error_Message_1624;case"20000":return e.Error_Message_20000;case"20001":return e.Error_Message_20001;case"5001":return e.Error_Message_5001;case"5002":return e.Error_Message_5002;case"5003":return e.Error_Message_5003;case"5004":return e.Error_Message_5004;case"5005":return e.Error_Message_5005;case"5006":return e.Error_Message_5006;case"5109":return e.Error_Message_5109;case"5114":return e.Error_Message_5114;case"5117":return e.Error_Message_5117;case"5203":return e.Error_Message_5203;case"5204":return e.Error_Message_5204;case"5205":return e.Error_Message_5205;case"5206":return e.Error_Message_5206;case"5207":return e.Error_Message_5207;case"5208":return e.Error_Message_5208;case"5209":return e.Error_Message_5209;case"5302":return e.Error_Message_5302;case"532":return e.Error_Message_532;case"533":return e.Error_Message_533;case"534":return e.Error_Message_534;case"535":return e.Error_Message_535;case"536":return e.Error_Message_536;case"537":return e.Error_Message_537;case"5400":return e.Error_Message_5400;case"5401":return e.Error_Message_5401;case"5402":return e.Error_Message_5402;case"5403":return e.Error_Message_5403;case"5501":return e.Error_Message_5501;case"5503":return e.Error_Message_5503;case"5504":return e.Error_Message_5504;case"5510":return e.Error_Message_5510;case"5550":return e.Error_Message_5550;case"5551":return e.Error_Message_5551;case"5552":return e.Error_Message_5552;case"5553":return e.Error_Message_5553;case"5554":return e.Error_Message_5554;case"5556":return e.Error_Message_5556;case"5557":return e.Error_Message_5557;case"5558":return e.Error_Message_5558;case"5559":return e.Error_Message_5559;case"5560":return e.Error_Message_5560;case"5561":return e.Error_Message_5561;case"600":return e.Error_Message_600;case"601":return e.Error_Message_601;case"602":return e.Error_Message_602;case"603":return e.Error_Message_603;case"604":return e.Error_Message_604;case"605":return e.Error_Message_605;case"606":return e.Error_Message_606;case"607":return e.Error_Message_607;case"608":return e.Error_Message_608;case"609":return e.Error_Message_609;case"610":return e.Error_Message_610;case"6100":return e.Error_Message_6100;case"6102":return e.Error_Message_6102;case"6103":return e.Error_Message_6103;case"6105":return e.Error_Message_6105;case"611":return e.Error_Message_611;case"613":return e.Error_Message_613;case"614":return e.Error_Message_614;case"615":return e.Error_Message_615;case"620":return e.Error_Message_620;case"622":return e.Error_Message_622;case"624":return e.Error_Message_624;case"625":return e.Error_Message_625;case"6252":return e.Error_Message_6252;case"6254":return e.Error_Message_6254;case"636":return e.Error_Message_636;case"642":return e.Error_Message_642;case"645":return e.Error_Message_645;case"649":return e.Error_Message_649;case"650":return e.Error_Message_650;case"651":return e.Error_Message_651;case"652":return e.Error_Message_652;case"653":return e.Error_Message_653;case"654":return e.Error_Message_654;case"655":return e.Error_Message_655;case"656":return e.Error_Message_656;case"657":return e.Error_Message_657;case"658":return e.Error_Message_658;case"659":return e.Error_Message_659;case"660":return e.Error_Message_660;case"6611":return e.Error_Message_6611;case"6612":return e.Error_Message_6612;case"6613":return e.Error_Message_6613;case"6614":return e.Error_Message_6614;case"6624":return e.Error_Message_6624;case"6634":return e.Error_Message_6634;case"6700":return e.Error_Message_6700;case"6701":return e.Error_Message_6701;case"6702":return e.Error_Message_6702;case"6705":return e.Error_Message_6705;case"674":return e.Error_Message_674;case"676":return e.Error_Message_676;case"700":return e.Error_Message_700;case"701":return e.Error_Message_701;case"702":return e.Error_Message_702;case"703":return e.Error_Message_703;case"704":return e.Error_Message_704;case"705":return e.Error_Message_705;case"707":return e.Error_Message_707;case"709":return e.Error_Message_709;case"710":return e.Error_Message_710;case"711":return e.Error_Message_711;case"712":return e.Error_Message_712;case"714":return e.Error_Message_714;case"715":return e.Error_Message_715;case"717":return e.Error_Message_717;case"720":return e.Error_Message_720;case"721":return e.Error_Message_721;case"751":return e.Error_Message_751;case"752":return e.Error_Message_752;case"754":return e.Error_Message_754;case"755":return e.Error_Message_755;case"756":return e.Error_Message_756;case"812":return e.Error_Message_812;case"824":return e.Error_Message_824;case"9751":return e.Error_Message_9751;case"9752":return e.Error_Message_9752;default:return""}}},33589:function(n,t,e){"use strict";e.d(t,{Wc:function(){return b},eL:function(){return g},j8:function(){return w},qn:function(){return p}});var r,i,o,u=e(1879),s=e(13472),a=e(71683),c=e(44550),f=e(45430),l=e(10168),h=e(64931),d=e(59198),m=e(27223),v={};function p(){return o}function g(n){o=(0,l.D)(n)}function b(){return r||(r=new Promise((function(n,t){o?n(o):i?i.then((function(t){i=null,g(t),n(t)})):y().then((function(t){g(t),n(t)})).catch(t)}))),r}function w(n){var t=v[n];return t||(v[n]=new Promise((function(t,e){y(n).catch((function(){return(0,m.M_)(n)})).then((function(n){t((0,l.D)(n))}))})),t=v[n]),t}function S(n){return(n?(0,m.M_)(n):(0,m.Lm)()).then(l.D)}function y(n){return!(0,u.zQ)()&&!(0,h.Rk)()||(0,d.G7)("CVLazyLoadResourceString")?Promise.resolve().then((function(){n=n||(0,c.J)().toLowerCase();var t=(0,a.qf)((function(){return f.km.Resolve("ILazyLoadResourceStringsFunc")}),(function(){return I(),f.km.Resolve("ILazyLoadResourceStringsFunc")}));return t(n).catch((function(){var e=null==n?void 0:n.split("-")[0];return n!==e?t(e).catch((function(){return t(void 0)})):t(void 0)}))})).catch((function(){return S(n)})):S(n)}var I=(0,s.Jh)((function(){(0,d.G7)("CVEnableLsMapReset")&&(window.FormsLsMap={},window.formsLsPromiseMap={})}))},12004:function(n,t,e){"use strict";e.d(t,{yh:function(){return f},hN:function(){return c}});var r=e(91676),i=e(13472),o=e(891);var u=(0,i.Jh)((function(){if(window.formsInlineScriptSyntaxCheck&&!(0,o.h)(window.formsInlineScriptSyntaxCheck.IsAsyncSupported))return window.formsInlineScriptSyntaxCheck.IsAsyncSupported;var n=!0;try{window.eval((0,r.ZG)("async () => {}"))()}catch(t){n=!1}return n})),s=e(75187);function a(){return window.shellInfo}function c(){var n,t=window.navigator;return window.URL&&"serviceWorker"in t&&u()&&"function"==typeof(null===(n=t.serviceWorker)||void 0===n?void 0:n.register)}function f(){var n=(0,s.Db)().fsw,t=a();return!("0"===n||!t)&&t.swEnabled}},46976:function(n,t,e){"use strict";e.r(t),e.d(t,{addIoCHeaderFontToSchemas:function(){return u},addIoCSurveyFontToSchemas:function(){return o},areIoCImageUploadButtonsEnabled:function(){return m},callIoCDeletePausedResponse:function(){return F},callIoCGetPausedResponse:function(){return y},callIoCSetLocaleItem:function(){return I},callIoCUpdatePR:function(){return S},callIoCUpdatePRForText:function(){return C},createChoiceQuestionRenderer:function(){return O},cvOnlyLanguageUtilityIoC:function(){return M},getIoCCreateCascadeQuestionRenderer:function(){return R},getIoCCreateFileUploadQuestionRenderer:function(){return T},getIoCCreateHeaderThemeRenderer:function(){return N},getIoCCustomLanguageFriendlyName:function(){return L},getIoCDefaultTheme:function(){return f},getIoCErrorPage:function(){return w},getIoCFlexPaneWidth:function(){return b},getIoCFooterElement:function(){return a},getIoCImagePickerLocalContainerClassName:function(){return g},getIoCLazyLoadThemes:function(){return c},getIoCMMediaPickerPaneText:function(){return d},getIoCMediaPickerPaneInfoContent:function(){return p},getIoCMediaPickerPaneTitle:function(){return v},getIoCModifiedTextField:function(){return s},getIoCPreviewSettingsPane:function(){return i},getIoCQuestionDelegatorClass:function(){return E},getIoCQuestionRendererFooter:function(){return x},getIoCThemeBackground:function(){return l},getIoCThemeStyle:function(){return h},getIocConditionalThankyouControl:function(){return _},getIocMessageContent:function(){return P},getIocThankYouMessageKey:function(){return k},handleSubmitButtonClickIoC:function(){return D}});var r=e(45430);function i(n){return A().createPreviewSettingPane(n)}function o(n){return A().addSurveyFontToSchemas(n)}function u(n){return A().addHeaderFontToSchemas(n)}function s(n,t){return A().getModifiedTextField(n,t)}function a(n){return A().getFooterElement(n)}function c(){return A().getLazyLoadThemes()}function f(){return A().getDefaultTheme()}function l(n){return A().getThemeBackground(n)}function h(n){return A().getThemeStyle(n)}function d(){return A().getMediaPickerPaneText()}function m(){return A().areImageUploadButtonsEnabled()}function v(){return A().getMediaPickerPaneTitle()}function p(){return A().getMediaPickerPaneInfoContent()}function g(){return A().getImagePickerLocalContainerClassName()}function b(){return A().getFlexPaneWidth()}function w(){return A().getErrorPage()}function S(n,t,e,r,i,o){return A().callUpdatePR(n,t,e,r,i,o)}function y(n,t){return A().callGetPausedResponse(n,t)}function I(n,t,e,r){return A().callSetLocaleItem(n,t,e,r)}function F(n,t){return A().callDeletePausedResponse(n,t)}function C(n,t,e,r,i){return A().callUpdatePRForTextQuestion(n,t,e,r,i)}function _(n){return A().getConditionalThankyouControl(n)}function k(n,t,e){return A().derivedThankYouMessageKey(n,t,e)}function P(n){return A().getMessageContent(n)}function T(n){return A().createFileUploadQuestionRenderer(n)}function N(n){return A().createHeaderThemeRenderer(n)}function R(n){return A().createCascadeQuestionRenderer(n)}function E(n){return A().getQuestionDelegatorClass(n)}function L(n){return A().getCustomLanguageFriendlyName(n)}function O(n){return A().createChoiceQuestionRenderer(n)}function x(n){return A().getQuestionRendererFooter(n)}function D(n,t){return A().handleSubmitButtonClick(n,t)}function M(){return A().cvOnlyLanguageUtility()}function A(){return r.km.Resolve("ICustomerVoiceUxFactory")}},57907:function(n,t,e){"use strict";e.d(t,{j:function(){return i}});var r=e(45430);function i(n){return r.km.Resolve("ICustomerVoiceTitleContainerFactory").titleContainerCreate(n)}},53454:function(n,t,e){"use strict";e.d(t,{u:function(){return s}});var r=e(40168),i=e(49559),o=e(77310);var u=e(33589);function s(n){return function(n,t){var e="";if(n)if(n instanceof Error&&!n.hasOwnProperty("correlationId"))switch(n.name){case"LoginIECrossZoneError":e=(0,o.GP)(t.Error_Message_Client_LoginIECrossZoneError,window.location.origin,(0,i.Gs)());break;case"ThirdPartyCookieBlockedError":e=(0,o.GP)(t.Error_Message_Client_ThirdPartyCookieError,(0,i.Gs)());break;case"AuthNoStorageError":e=t.Error_Message_Client_AuthNoStorageError;break;case"AADAcquireTokenMfaCheckError":e=t.Error_Message_705;break;case"TeamSiteNoGroupError":e=t.Error_Message_Client_TeamSiteNoGroupError}else{var u=n;u.innerCode&&(e=(0,r.O)(String(u.innerCode),t)||(0,o.GP)(t.Error_Message_Default,u.innerCode))}return e}(n,(0,u.qn)())}},24376:function(n,t,e){"use strict";e.d(t,{Zw:function(){return u},$r:function(){return s},sV:function(){return a},fI:function(){return c},lN:function(){return f},PX:function(){return l}});var r=e(53013),i=e(75187);function o(n,t){void 0===t&&(t=!1);var e=(0,i.Db)()[n];return""===e||(e?(Array.isArray(e)&&(e=e[0]),t?"false"!==e.toLowerCase():"true"===e.toLowerCase()):t)}function u(){return o("d")}function s(){return o("oembedssotrial")&&(0,r.KV)()||o("oembedsso")||o("powerappembed")}function a(){return!!o("pptcontentsso")}function c(){return o("pptintegration")}function f(){return o("runtimeautorefresh")}function l(){return o("streamsso")}},99846:function(n,t,e){"use strict";e.d(t,{MN:function(){return o}});var r=16,i="$%@#";function o(n){var t=function(n){try{n=n.replace(/_/g,"/").replace(/-/g,"+");var t=atob(n.replace(/ /g,"")).split("").map((function(n){return n.charCodeAt(0)})),e=u(t.slice(0,r)),o=u(t.slice(r,32)),s=function(n,t){if(null==n||0===n.length)return n;var e=n.length;for(;--e>=0&&!(t.indexOf(n.charAt(e))<0););return n.substr(0,e+1)}(function(n){for(var t="",e=0;e1){s=c[0];for(var f=1;f").html(n).text():"":n}function c(n){if((0,u.h)(n)||""===n.trim())return n;var t=n.replace(/&&/g,"__BR_AND_PAR__").replace(/\|\|/g,"__BR_OR_PAR__");return t=t.replace(/\(/g,"__BR_L_PAR__").replace(/\)/g,"__BR_R_PAR__")}function f(n){if((0,u.h)(n)||""===n.trim())return n;var t=n.replace(/__BR_L_PAR__/g,"(").replace(/__BR_R_PAR__/g,")");return t=t.replace(/__BR_AND_PAR__/g,"&&").replace(/__BR_OR_PAR__/g,"||")}function l(n){return n&&n.split("href")[0].indexOf('target="_blank"')>-1&&(n=n.replace('target="_blank"',' target="_blank" tabindex="0" aria-label="'.concat(function(n){if(n){var t=a(n,!0);return(t.indexOf("http")>-1?(0,i.qn)().Response_Page_Footer_Open_In_New_Tab_Text.format(t):(0,i.qn)().Response_Page_Footer_Open_In_New_Tab_Text_Terms_Privacy.format(t)).replace(/("|')/g,"")}return null}(n),'"'))),n}FormsPro.getTextFromHtml=a,FormsPro.encodeBranchingString=c,FormsPro.decodeBranchingString=f},25288:function(n,t,e){"use strict";e.d(t,{e:function(){return i}});var r=e(9468);function i(n,t,e,i){return function(n,t,e,r,i){if(i){var o=document.createElement("a");return o.href=n,o.target=t||"_blank",document.body.appendChild(o),o.click(),document.body.removeChild(o),null}return t||e||r?e||r?r?window.open(n,t,e,r):window.open(n,t,e):window.open(n,t):window.open(n)}(n,t,e,i,(0,r.$x)())}},33524:function(n,t,e){"use strict";e.d(t,{Lo:function(){return i},yz:function(){return o}});var r=function(n){var t=document.createElement("a"),e=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i.test(n);return t.href=e?n:"",t};function i(n){return r(n).href}function o(n){return r(n).hostname}},29169:function(n,t,e){"use strict";e.d(t,{_f:function(){return s},aO:function(){return a},aj:function(){return f},wn:function(){return l},x9:function(){return c}});var r=e(38826),i=e(28243),o=e(74897),u=e(23163);function s(n,t,e,r,i){r=r||0,e=e||0;var o=t.height(),u=n.outerHeight();if(n.offset()&&t.offset()){var s=n.offset().top-t.offset().top;if(s<0)t.scrollTop(t.scrollTop()+s-(u+e>o?0:e));else{var a=Math.min(u,o),c=s+a-o;u+e+r0&&(i?t.animate({scrollTop:t.scrollTop()+c},"fast"):t.scrollTop(t.scrollTop()+c))}}}function a(n,t){var e=(0,u.X$)({},n);for(var i in t)switch(i){case"className":case"aria-labelledby":case"aria-describedby":e[i]=(0,r.x)(e[i],t[i]);break;case"children":case"defaultValue":case"value":t.hasOwnProperty(i)&&(null!=e[i]?e[i]=[].concat(e[i],t[i]):e[i]=t[i]);break;case"style":null!=e[i]?(0,u.X$)(e[i],t[i]):e[i]=t[i];break;case"onCopy":case"onCut":case"onPaste":case"onCompositionEnd":case"onCompositionStart":case"onCompositionUpdate":case"onFocus":case"onBlur":case"onChange":case"onInput":case"onSubmit":case"onLoad":case"onError":case"onKeyDown":case"onKeyPress":case"onKeyUp":case"onAbort":case"onCanPlay":case"onCanPlayThrough":case"onDurationChange":case"onEmptied":case"onEncrypted":case"onEnded":case"onLoadedData":case"onLoadedMetadata":case"onLoadStart":case"onPause":case"onPlay":case"onPlaying":case"onProgress":case"onRateChange":case"onSeeked":case"onSeeking":case"onStalled":case"onSuspend":case"onTimeUpdate":case"onVolumeChange":case"onWaiting":case"onClick":case"onContextMenu":case"onDoubleClick":case"onDrag":case"onDragEnd":case"onDragEnter":case"onDragExit":case"onDragLeave":case"onDragOver":case"onDragStart":case"onDrop":case"onMouseDown":case"onMouseEnter":case"onMouseLeave":case"onMouseMove":case"onMouseOut":case"onMouseOver":case"onMouseUp":case"onSelect":case"onTouchCancel":case"onTouchEnd":case"onTouchMove":case"onTouchStart":case"onScroll":case"onWheel":e[i]=(0,o.A)(e[i],t[i]);break;default:void 0!==t[i]&&(e[i]=t[i])}return e}function c(n){for(var t=[],e=1;e=0)&&n(e)}}function f(n){var t=function(n){var t=["b"],e=t.map((function(n){return"<".concat(n,">")})),r=t.map((function(n){return"")})),i=t.map((function(n){return"<".concat(n,">")})),o=t.map((function(n){return"</".concat(n,">")})),s=(0,u.ih)(n);return t.forEach((function(n,t){s=s.replaceAll(i[t],e[t]).replaceAll(o[t],r[t])})),s}(n);return l(t)}function l(n){var t=document.createElement("span");return(0,i.r)(t,n),t.innerHTML}},11431:function(n,t,e){"use strict";e.d(t,{Gv:function(){return f},SE:function(){return a},T8:function(){return c},og:function(){return m},qk:function(){return h},zw:function(){return d}});var r=e(2231),i=e(1879),o=e(17891),u=e(25486),s=e(57904);function a(n){return v().then((function(){window.location.assign(n)}))}function c(){return l(!1)}function f(){return l(!0)}function l(n){return v().then((function(){window.location.reload(n)}))}function h(n){return v().then((function(){window.location.replace(n)}))}function d(n){return v().then((function(){var t=window.location,e=t.origin+n+t.search+t.hash;window.location.replace(e)}))}function m(n){void 0===n&&(n=0);var t=(0,o.m1)(),e=t.userInfo,u=(t.serverSessionId,t.signInLink),a=t.signInLinkMsa,c=window.location.href,f=!1,l=e.Upn,h=e.IsMsa||(0,r.nk)();if(0===n){var d=["ResponseDetailPage","Response"].indexOf((0,i.M5)())>-1;f=h&&!d}else f=2===n;return(!f&&h||f&&!h)&&(l=void 0),(0,s.T7)({upn:l,type:f?2:n,ru:c},(0,s.A5)(c,f,u,a,l))}function v(){return(0,u.q)()}},87578:function(n,t,e){"use strict";e.d(t,{$f:function(){return c},AW:function(){return s},JK:function(){return h},NC:function(){return d},Ti:function(){return u},W1:function(){return f},c:function(){return a},mp:function(){return i},np:function(){return o},nu:function(){return l}});var r=e(45430);function i(){return r.km.Resolve("IMixin").getMixinFormMaster()}function o(){return r.km.Resolve("IMixin").getMixinFormMaster()}function u(){return r.km.Resolve("IMixin").getMixinImageInfoMaster()}function s(){return r.km.Resolve("IMixin").getMixinQuestionMaster()}function a(){return r.km.Resolve("IFormApiMixin").getMixinFormApi()}function c(){return r.km.Resolve("IMixin").getMixinFormElementManager()}function f(){return r.km.Resolve("IMixin").getMixinImageSettingsMaster()}function l(){return r.km.Resolve("IMixin").getMixinDesignPageUxStateMaster().getInstance()}function h(){return r.km.Resolve("IMixin").getMobileDesignPageUxStateMaster().getInstance()}function d(){return r.km.Resolve("IMixin").getFileUploadConfirmDialog()}},8093:function(n,t,e){"use strict";function r(n){var t=(n||"").trim().replace(/[,]/g,"");return $.isNumeric(t)}function i(n){var t=(n||"").trim().replace(/[,]/g,"");return $.isNumeric(t)?parseFloat(t).toString():""}function o(n){return Math.floor(n)===n}e.d(t,{Fq:function(){return o},Yp:function(){return i},pR:function(){return r}})},34101:function(n,t,e){"use strict";e.d(t,{K3:function(){return a},LN:function(){return v},VN:function(){return p},nu:function(){return c},rf:function(){return d},ue:function(){return f},zA:function(){return h}});var r=e(71683),i=e(97410),o=e(17891),u=e(91970),s=e(75187);function a(){if((0,o.m1)().isOembedSPO||(0,s.Db)().oembedocv){var n,t=(0,r.qf)((function(){return(0,u.UI)(".office-form.office-form-theme-shadow")}),(function(){return(0,u.UI)(".office-form-theme-shadow")||(0,u.UI)(".office-form-title-container")+((0,u.UI)(".office-form-body")||(0,u.UI)(".office-form.thank-you-page-content"))})),e=(0,u.UI)(".office-form-footer-container");if((0,s.Db)().oembedocv)(n=(t||0)+(e||0)+12)>0&&l("ResponsePage",n);else if(t&&e)l("ResponsePage",n=t+e+80+(0,u.UI)(".office-form-new-bottom-bar"))}}function c(){var n=(0,u.UI)(".office-form-theme-shadow")||(0,u.UI)(".office-form-title-container")+((0,u.UI)(".office-form-body")||(0,u.UI)(".office-form.thank-you-page-content")),t=(0,u.UI)(".office-form-footer-container"),e=((0,u.UI)(".thank-you-page-root-container")||(n||0)+(t||0))+12;e>0&&l("ResponsePage",e)}function f(n){(0,o.m1)().isOembedSPO&&l("ResponsePage",n)}function l(n,t){var e=(0,s.Db)().hostId;if(e)parent.postMessage("FormsPageHeight:".concat(e,":").concat(t.toString()),"*");else{var r=(0,s.Db)().id;parent.postMessage("".concat(n,"Height:").concat(r,":").concat(t.toString()),"*")}}function h(n){(0,o.m1)().isOembedSPO&&function(n,t){if(!(0,o.m1)().isOembedSPO)return;var e=(0,s.Db)().hostId;parent.postMessage("FormsInfo:".concat(e,":").concat(encodeURIComponent(n),":").concat(encodeURIComponent(t)),"*")}(n.Model.Title?n.Model.Title:"",n.Model.Description?n.Model.Description:"")}function d(n){if((0,o.m1)().isOembedSPO){var t=n&&(n.innerCode||n.message||""),e=(0,s.Db)().hostId;(0,r.CR)((function(){var n={hostId:e,errorMessage:t};(0,i.jg)("ResponsePage.NotifyFormErrorToParentWindow",n)})),parent.postMessage("FormsError:".concat(e,":").concat(encodeURIComponent(t)),"*")}}var m=window.onerror;function v(n,t){(0,o.m1)().isOembedSPO&&(n&&t&&function(n){if(n){var t=(0,u.UI)(".form-content"),e=n+200;e>t&&(e=t),f(e)}}((0,u.UI)(n)+(0,u.UI)(t)))}function p(){l("ResponsePage",(0,u.UI)(".thank-you-page-root-container")+12)}window.onerror=function(n,t,e,r,i){d(i),m&&m.apply(this,arguments)}},79973:function(n,t,e){"use strict";e.d(t,{Gb:function(){return a},sL:function(){return s},wt:function(){return c}});e(97410);var r=e(9468),i=e(64931),o=e(11431),u=e(18533);function s(n){return new Promise((function(t){var e=window.location.pathname,r=e.toLowerCase().startsWith(u.h.toLowerCase())||(0,i.Rk)();return!n!=!r?(e=n?u.h+e:e.substring(u.h.length),void(0,o.zw)(e)):t()}))}function a(n,t){var e=window.location.search.substring(1);return e&&(e=e.split("&").filter((function(n){return!n.startsWith(t+"=")})).join("&")),e?"?"+e:""}function c(){if((0,r.t2)())return{name:"type",operator:"ne",value:"'survey'"}}},18533:function(n,t,e){"use strict";e.d(t,{h:function(){return r}});var r="/FormsPro"},1349:function(n,t,e){"use strict";e.d(t,{Ff:function(){return S},G2:function(){return I},Il:function(){return s},N3:function(){return y},Qi:function(){return i},Rn:function(){return g},S6:function(){return b},Sv:function(){return o},U7:function(){return d},Uf:function(){return l},f2:function(){return v},f4:function(){return p},fU:function(){return u},h$:function(){return f},kj:function(){return a},mh:function(){return m},qS:function(){return h},r:function(){return w},vG:function(){return c}});var r=e(33632);function i(){return r.s.getSetting(r.j.FormsProGeo)}function o(){return r.s.getSetting(r.j.FormsHomeUrl)}function u(){return r.s.getSetting(r.j.ApiFacadeEndPoint)}function s(){return r.s.getSetting(r.j.ProjectUIServiceEndpoint)}function a(){return r.s.getSetting(r.j.ProjectAlertServiceEndPoint)}function c(){return r.s.getSetting(r.j.CustomerVoiceProjectShareServiceEndpoint)}function f(){return r.s.getSetting(r.j.CustomerVoiceSurveyUIServiceEndpoint)}function l(){return r.s.getSetting(r.j.FormsProSampleFormTenantId)}function h(){return r.s.getSetting(r.j.FormsProCdnHomeUrl)}function d(){return r.s.getSetting(r.j.FormsProLicensingServiceEndPoint)}function m(){return r.s.getSetting(r.j.OrchestrationServiceEndpoint)}function v(){return r.s.getSetting(r.j.SatisfactionMetricTrendAndAggregateDataUrl)}function p(){return r.s.getSetting(r.j.ExportCsvServiceEndpoint)}function g(){return r.s.getSetting(r.j.CVPauseResumeService)}function b(){return r.s.getSetting(r.j.ShareV2StatusFetchDuration)}function w(){return r.s.getSetting(r.j.CVSurveyCountApproachingLimitFirstStage)}function S(){return r.s.getSetting(r.j.CVSurveyCountApproachingLimitSecondStage)}function y(){return r.s.getSetting(r.j.CVSurveyCountExceedLimit)}function I(){return r.s.getSetting(r.j.CVGetFormLimit)}},45994:function(n,t,e){"use strict";e.d(t,{N:function(){return i},T:function(){return o}});var r=e(22224),i=function(){function n(n,t){void 0===t&&(t=0),this.zt=n,this.qt=t}return n.prototype.callOnceLater=function(){var n=this;0!==this.qt&&null!=this.Ht&&this.clear(),null==this.Ht&&(this.Ht=window.setTimeout((function(){n.callImmediately()}),this.qt))},n.prototype.flush=function(){null!=this.Ht&&(this.clear(),this.zt())},n.prototype.callImmediately=function(){null!=this.Ht&&this.clear(),this.zt()},n.prototype.clear=function(){clearTimeout(this.Ht),this.Ht=void 0},n}(),o=function(){function n(){this.jt=[]}return n.prototype.register=function(n){this.jt.push(n)},n.prototype.unregister=function(n){this.jt=r.without(this.jt,n)},Object.defineProperty(n.prototype,"trigger",{get:function(){return this.Qt},enumerable:!1,configurable:!0}),n.prototype.clear=function(){this.jt=[]},n.prototype.Qt=function(){for(var n=[],t=0;t0)return void(h=!0)}h=!1}(e),function(n){for(var t in i)if(n.hasOwnProperty(i[t])){var e=n[i[t]];if(e&&e.length>0)return d=!0,void parseInt(t)}d=!1}(e),function(n){for(var t in o)if(n.hasOwnProperty(o[t])&&(e=n[o[t]])&&e.length>0){!0,parseInt(t);break}for(var t in u)if(n.hasOwnProperty(u[t])&&(e=n[u[t]])&&e.length>0){!0,parseInt(t);break}for(var t in s){var e;if(n.hasOwnProperty(s[t])&&(e=n[s[t]])&&e.length>0){!0,parseInt(t);break}}}(e),function(n){m=!(!(0,I.nk)()||!n)}(t),function(n){for(var t in a)if(n.hasOwnProperty(a[t])){var e=n[a[t]];if(e&&e.length>0)return void(v=!0)}v=!1}(e),function(n){for(var t in c)n.hasOwnProperty(c[t])&&(e=n[c[t]])&&e.length>0&&(p=!0);for(var t in f)n.hasOwnProperty(f[t])&&(e=n[f[t]])&&e.length>0&&(b=!0);for(var t in l){var e;n.hasOwnProperty(l[t])&&(e=n[l[t]])&&e.length>0&&(g=!0)}}(e),e}function R(){var n=0;return C()&&(n=1),d&&(n|=2),(0,I.yu)()&&(n|=8),(0,I.nk)()&&(n|=m?16:4),_()&&(n|=64,k()?n|=128:T()?n|=256:P()&&(n|=512)),n}!function(n){n[n.OFFICE_FORMS_PLAN_2=0]="OFFICE_FORMS_PLAN_2",n[n.OFFICE_FORMS_PLAN_3=1]="OFFICE_FORMS_PLAN_3"}(r||(r={})),function(n){n[n.FORMS_PLAN_E1=0]="FORMS_PLAN_E1",n[n.FORMS_PLAN_E3=1]="FORMS_PLAN_E3",n[n.FORMS_PLAN_E5=2]="FORMS_PLAN_E5",n[n.FORMS_PLAN_K=3]="FORMS_PLAN_K"}(i||(i={})),function(n){n[n.FORMS_GOV_E1=0]="FORMS_GOV_E1",n[n.FORMS_GOV_E3=1]="FORMS_GOV_E3",n[n.FORMS_GOV_E5=2]="FORMS_GOV_E5",n[n.FORMS_GOV_F1=3]="FORMS_GOV_F1"}(o||(o={})),function(n){n[n.FORMS_GCCHIGH_E1=0]="FORMS_GCCHIGH_E1",n[n.FORMS_GCCHIGH_E3=1]="FORMS_GCCHIGH_E3",n[n.FORMS_GCCHIGH_E5=2]="FORMS_GCCHIGH_E5",n[n.FORMS_GCCHIGH_F1=3]="FORMS_GCCHIGH_F1",n[n.FORMS_PLAN_E1_AR_GCCHIGH=4]="FORMS_PLAN_E1_AR_GCCHIGH",n[n.FORMS_PLAN_E3_AR_GCCHIGH=5]="FORMS_PLAN_E3_AR_GCCHIGH",n[n.FORMS_PLAN_E5_AR_GCCHIGH=6]="FORMS_PLAN_E5_AR_GCCHIGH",n[n.FORMS_PLAN_K_AR_GCCHIGH=7]="FORMS_PLAN_K_AR_GCCHIGH"}(u||(u={})),function(n){n[n.FORMS_DOD_E1=0]="FORMS_DOD_E1",n[n.FORMS_DOD_E3=1]="FORMS_DOD_E3",n[n.FORMS_DOD_E5=2]="FORMS_DOD_E5",n[n.FORMS_DOD_F1=3]="FORMS_DOD_F1",n[n.FORMS_PLAN_E1_AR_DOD=4]="FORMS_PLAN_E1_AR_DOD",n[n.FORMS_PLAN_E3_AR_DOD=5]="FORMS_PLAN_E3_AR_DOD",n[n.FORMS_PLAN_E5_AR_DOD=6]="FORMS_PLAN_E5_AR_DOD",n[n.FORMS_PLAN_K_AR_DOD=7]="FORMS_PLAN_K_AR_DOD"}(s||(s={})),function(n){n[n.FORMS_PRO=0]="FORMS_PRO",n[n.FORMS_PRO_USL=1]="FORMS_PRO_USL",n[n.FORMS_PRO_USL_GCC=2]="FORMS_PRO_USL_GCC",n[n.FORMS_PRO_CE=3]="FORMS_PRO_CE",n[n.FORMS_PRO_SERVICE=4]="FORMS_PRO_SERVICE",n[n.FORMS_PRO_FS=5]="FORMS_PRO_FS",n[n.FORMS_PRO_MARKETING=6]="FORMS_PRO_MARKETING",n[n.FORMS_PRO_PLAN=7]="FORMS_PRO_PLAN",n[n.FORMS_PRO_PS=8]="FORMS_PRO_PS",n[n.FORMS_PRO_SALESENT=9]="FORMS_PRO_SALESENT",n[n.FORMS_PRO_TALENT=10]="FORMS_PRO_TALENT",n[n.FORMS_PRO_OPERATIONS=11]="FORMS_PRO_OPERATIONS",n[n.FORMS_PRO_RELATIONSHIP_SALES=12]="FORMS_PRO_RELATIONSHIP_SALES",n[n.FORMS_PRO_CUSTOMER_INSIGHTS=13]="FORMS_PRO_CUSTOMER_INSIGHTS",n[n.FORMS_PRO_SERVICE_GCC=14]="FORMS_PRO_SERVICE_GCC",n[n.FORMS_PRO_FS_GCC=15]="FORMS_PRO_FS_GCC",n[n.FORMS_PRO_HUMAN_RESOURCES_GCC=16]="FORMS_PRO_HUMAN_RESOURCES_GCC",n[n.FORMS_PRO_PS_GCC=17]="FORMS_PRO_PS_GCC",n[n.FORMS_PRO_SALESENT_GCC=18]="FORMS_PRO_SALESENT_GCC",n[n.FORMS_PRO_CE_GCC=19]="FORMS_PRO_CE_GCC"}(a||(a={})),function(n){n[n.FORMS_PRO_USL=0]="FORMS_PRO_USL",n[n.FORMS_PRO_USL_GCC=1]="FORMS_PRO_USL_GCC"}(c||(c={})),function(n){n[n.FORMS_PRO_CE=0]="FORMS_PRO_CE",n[n.FORMS_PRO_SERVICE=1]="FORMS_PRO_SERVICE",n[n.FORMS_PRO_FS=2]="FORMS_PRO_FS",n[n.FORMS_PRO_MARKETING=3]="FORMS_PRO_MARKETING",n[n.FORMS_PRO_PLAN=4]="FORMS_PRO_PLAN",n[n.FORMS_PRO_PS=5]="FORMS_PRO_PS",n[n.FORMS_PRO_SALESENT=6]="FORMS_PRO_SALESENT",n[n.FORMS_PRO_TALENT=7]="FORMS_PRO_TALENT",n[n.FORMS_PRO_OPERATIONS=8]="FORMS_PRO_OPERATIONS",n[n.FORMS_PRO_RELATIONSHIP_SALES=9]="FORMS_PRO_RELATIONSHIP_SALES",n[n.FORMS_PRO_CUSTOMER_INSIGHTS=10]="FORMS_PRO_CUSTOMER_INSIGHTS",n[n.FORMS_PRO_SERVICE_GCC=11]="FORMS_PRO_SERVICE_GCC",n[n.FORMS_PRO_FS_GCC=12]="FORMS_PRO_FS_GCC",n[n.FORMS_PRO_HUMAN_RESOURCES_GCC=13]="FORMS_PRO_HUMAN_RESOURCES_GCC",n[n.FORMS_PRO_PS_GCC=14]="FORMS_PRO_PS_GCC",n[n.FORMS_PRO_SALESENT_GCC=15]="FORMS_PRO_SALESENT_GCC",n[n.FORMS_PRO_CE_GCC=16]="FORMS_PRO_CE_GCC"}(f||(f={})),function(n){n[n.FORMS_PRO=0]="FORMS_PRO"}(l||(l={}));var E,L=e(71683),O=e(97410),x=e(34629),D=e(21342),M=function(n){function t(){var e=this;return t.instance?t.instance:((e=n.call(this,window.FormPrefetchCache&&window.FormPrefetchCache.userLicenseInfoCache)||this).init(),t.instance=e,e)}return(0,x.C6)(t,n),t.getInstance=function(){return new t},t.prototype.onPrefetchSucceed=function(){try{var n=JSON.parse(this.cache.data);this.prefetchResolve(n)}catch(n){this.fallBackToNormalBoot()}},t.prototype.onPrefetchFaied=function(){this.fallBackToNormalBoot()},t.prototype.fallBackToNormalBoot=function(){var n=this;D.hd.getInstance().createDataProvider().getUserInfo().then((function(t){return n.prefetchResolve(t)})).catch((function(t){return n.prefetchReject(t)}))},t}(e(52523).k);function A(){return H().then(C,(function(){return!1}))}function V(){return H().then(_,(function(){return!1}))}function U(){return H().then((function(){return!!k()}),(function(){return!1}))}function z(){return H().then((function(){return!k()&&!!T()}),(function(){return!1}))}function B(){return H().then((function(){return!k()&&!T()&&!!P()}),(function(){return!1}))}function q(){return H().then(R,(function(){return 0}))}function H(){return E||(E=new Promise((function(n,t){w().then((function(){if((0,y.m1)().userInfo.UserId||(0,S.oW)()||(0,S.$x)())try{var e=(0,y.m1)().userLicenseInfo;if(null==e?void 0:e.id){var r=N(e.licenses,e.isPaidUser);n(r)}else M.getInstance().getPromise().then((function(t){var e=N(t.licenses,t.isPaidUser);n(e)})).catch(t)}catch(n){t(n)}else n({})}))}))).catch((function(n){(0,L.CR)((function(){return!0}))&&window.location.pathname.toLowerCase().indexOf("responsepage.aspx")>-1&&758===n.innerCode?(0,O.fL)({type:"UserInfoGetFailure",eventInfo:{error:n}}):(0,O.jg)("UserInfoGetFailure",n)})),E}},2140:function(n,t,e){"use strict";e.d(t,{F:function(){return s}});var r=e(64418),i=e(9639),o=function(){function n(n,t){this.Gt=[],this.$t=n,t=t||{},this.Wt=t.deferredTimeInMs||100,this.Kt=t.maxCount||10}return n.prototype.insert=function(n){var t=this,e=new Promise((function(e,r){t.Gt.push({Arguments:n,Resolve:e,Reject:r})}));return this.Gt.length>=this.Kt?this.Jt():void 0===this.Xt&&(this.Xt=window.setTimeout((function(){return t.Jt()}),this.Wt)),e},n.prototype.Jt=function(){var n=this.Gt;this.Gt=[],void 0!==this.Xt&&(window.clearTimeout(this.Xt),this.Xt=void 0),0!==n.length&&this.$t(n.map((function(n){return n.Arguments}))).then((function(t){if(n.length!==t.length)throw Error("All the elements needs to be listed in result array.");t.forEach((function(t,e){t.Succeeded?n[e].Resolve(t.Value):n[e].Reject(t.Error)}))})).catch((function(t){n.forEach((function(n){n.Reject(t)}))}))},n}(),u={};function s(n,t){return u.hasOwnProperty(t)||(u[t]=new o((function(n){return function(n,t){var e=n.length,o=(0,i.Fl)(t);if(o)return(0,r.UW)(o).copyLocaleResources(t,n).then((function(){for(var n=[],t=0;t=0&&(V=(0,i.Cl)({SkippedCount:A},V)),o.ExtraData=V,o.start(),n.headers["X-CorrelationId"]=o.CorrelationId,n.headers["X-UserSessionId"]=(0,h.d)()}t.disableXMsHeader||(n.headers["x-ms-form-request-source"]=(0,m.$)(),(0,F.CR)((function(){n.qosExtraData&&n.qosExtraData.FormType&&(w=n.qosExtraData.FormType),n.requestUri&&-1!==n.requestUri.indexOf("linkedBrData")&&(n.headers["x-ms-form-deleted"]=1)})),t.disableRequestRingHeader||(n.headers["x-ms-form-request-ring"]=(R=w,(0,F.CR)((function(){S="Form"!==R&&"Quiz"!==R?"USGovGccProd"===(0,a.mc)()?"formsprogcc":"formspro":null})),S||((0,f.m1)().ring&&!(0,a._x)()&&(S=(0,f.m1)().ring.toLowerCase()),S="USGovGccProd"===(0,a.mc)()?"gcc":(0,d.nk)()||(0,g.cP)()?"msa":(0,d.yu)()||(0,g.Pf)()?"msft":(0,d.jc)()||(0,g.v8)()?"fastfood":"business"),S)));var U=-1,z=new Promise((function(e,r){var i=function(){U++,function(n,t,e,r){void 0===r&&(r=!1);n.blobResponseType?L(n,t,r?e:i):O(n,t,r?e:i);function i(r){(0,v.Ln)(r)?(0,I.r)().AuthContext.refreshToken().then((function(r){(0,b.Vt)(r).then((function(){n.headers.__RequestVerificationToken=(0,f.m1)().antiForgeryToken,r&&"string"==typeof r&&(n.headers.Authorization=s(r)),o().then((function(){return O(n,t,e)}))})).catch(y.T8)}),e):(0,v.mQ)(r)?(0,v.$k)():(0,v.LT)(r)?(0,I.r)().AuthContext.signIn().then(y.Gv):e(r)}function o(){return(0,f.m1)().userInfo.UserId?Promise.resolve():(0,b.xJ)().catch((function(){}))}}(n,(function(n){e(n)}),(function(e){var u,s=n.isSensitiveUri?void 0:n.requestUri.toString(),a=(0,_.N1)(s,e,t.processQosInnerMessageOnFailureOrRetry),c=a.statusCode,f=a.innerCode,l=!1,h=0;if(502===c?(u="Forms_Http_"+c,l=U<2):503===c?(u="Forms_Http_"+c,l=U<5,h=E(U,!1)):504===c||0===c?(h=5e3,u="Forms_Http_"+c,l=U<6):6503===f||624===f||647===f?(u="CDB_Http_"+f,l=U<2):645===f||646===f?((0,I.r)().RetryingRecoverableError=!0,u="CDB_Http_"+f,l=U<10,h=E(U,t.hasPrefetch)):6300===f&&(u="CDB_Net_"+f,l=U<2),!l)return r(e);o&&o.log({resultCode:u,extraData:{RetryCount:U,RetryInterval:h,ServiceError:a}}),setTimeout(i,h)}),t.skipExpiredTokenCheck)};i()}));return o?z.then((function(t){var e,r,i={resultCode:(null===(r=null===(e=null==t?void 0:t.response)||void 0===e?void 0:e.response)||void 0===r?void 0:r.statusCode)||"",resultType:"Success"};if("Form.Create"===n.qosEventName){var s=(0,k.WO)(t);i.extraData={FormId:s.id,Origin:(0,C.$)()||void 0,RetryCount:U||void 0,XLWorkbookId:s.xlWorkbookId||void 0},u().extend(i.extraData,n.qosExtraData)}else if("Response.Submit"===n.qosEventName){s=(0,k.WO)(t);i.extraData={responseId:s&&s.id},u().extend(i.extraData,n.qosExtraData)}return o.end(i),t})).catch((function(e){var r=n.isSensitiveUri?void 0:n.requestUri.toString(),i=(0,_.N1)(r,e,t.processQosInnerMessageOnFailureOrRetry);throw o.end({resultCode:e&&e.response?e.response.statusCode:"",resultType:(0,c.Uk)(i)?"ExpectedFailure":"Failure",extraData:{ServiceError:i,RetryCount:U||void 0}}),e})):z}function E(n,t){var e=[2,16,32,64],r=n>=e.length?64:e[n];return t&&(r*=2),1e3*Math.min(r,64)*(.8+.4*Math.random())}function L(n,t,e,r){void 0===r&&(r=!1);var i=new XMLHttpRequest,o=n.requestUri;if(i.onreadystatechange=function(){if(null!=i&&4===i.readyState){var u=i.status,s=i.statusText;1223===u&&(u=204,s="No Content");var a=i.response;if(u>=200&&u<=299){if(r){var c=w(i);a={requestUri:o,statusCode:u,statusText:s,headers:c,body:a}}i=null,t(a)}else{c=w(i);i=null,e({message:"HTTP request failed",request:n,response:{requestUri:o,statusCode:u,statusText:s,headers:c,body:a}})}}},i.open(n.method||"GET",o,!0),i.responseType="blob",n.headers)for(var u in n.headers)i.setRequestHeader(u,n.headers[u]);i.send(n.body)}function O(n,t,i){(r||(r=Promise.all([e.e(616),e.e(96)]).then(e.t.bind(e,90116,23)).then((function(n){return window.odatajs=n.default}))),r.catch((function(){return r=void 0})),r).then((function(){odatajs.oData.request(n,t,i)}))}},21342:function(n,t,e){"use strict";e.d(t,{hd:function(){return C},oD:function(){return _}});var r=e(53013),i=e(71683),o=e(64931),u=e(1349);function s(){return"https://".concat(window.location.hostname,"/")}var a=e(87578),c=e(17891),f=e(61377),l=e(56489),h=e(98582),d=e(42199),m=e(27223),v=e(11431),p=e(10597),g=function(){function n(n){for(this.Yt=n.trim();"/"===this.Yt.charAt(this.Yt.length-1);)this.Yt=this.Yt.substr(0,this.Yt.length-1)}return n.prototype.Zt=function(n){return this.Yt+"/"+n},n.prototype.deleteQuestionImage=function(n,t,e){var r=this;return b().then((function(i){return y(i,r.Zt(S(n,t,e)))}))},n.prototype.uploadQuestionImage=function(n,t,e,r){var i=this;return b().then((function(o){return I(o,i.Zt(S(n,t,e)),e,r)}))},n.prototype.deleteFormImage=function(n,t){var e=this;return b().then((function(r){return y(r,e.Zt(w(n,t)))}))},n.prototype.uploadFormImage=function(n,t,e){var r=this;return b().then((function(i){return I(i,r.Zt(w(n,t)),t,e)}))},n}();function b(){return(0,p.r)().AuthContext.getFormApiToken()}function w(n,t){return"forms('{0}')/{1}".format(n,t)}function S(n,t,e){return"forms('{0}')/questions('{1}')/{2}".format(n,t,e)}function y(n,t){var e=new f.W("Image.Delete");e.start();return F({methodName:"DELETE",url:t,headers:{Authorization:n?"Bearer "+n:"","X-CorrelationId":e.CorrelationId,"X-UserSessionId":(0,l.d)()},successHandler:function(){return e.end({resultType:"Success"})},errorHandler:function(n){var r={correlationId:e.CorrelationId,innerCode:n.responseJSON&&n.responseJSON.error&&n.responseJSON.error.code,statusCode:n.status,innerMessage:n.responseJSON&&n.responseJSON.error&&n.responseJSON.error.message,statusText:n.statusText};return e.end({resultType:"Failure",extraData:{imageUrl:t,error:r}}),r}})}function I(n,t,e,r){var i=new f.W("Image.Upload");i.start();return F({methodName:"PUT",url:t,headers:{Authorization:n?"Bearer "+n:"","Content-Type":r.ImageType,"Content-Disposition":"attachment; name={0}; filename={1}".format((0,h.aq)(),r.ImageName),"X-CorrelationId":i.CorrelationId,"X-UserSessionId":(0,l.d)()},successHandler:function(n){if(!n||!n.resourceId){var r={correlationId:i.CorrelationId,innerCode:5200,statusCode:0,innerMessage:"Upload image return bad response",statusText:"CollabDb bad response"};throw i.end({resultType:"Failure",extraData:{imageUrl:t,error:r,imageType:e}}),r}return i.end({resultType:"Success",extraData:{imageType:e}}),{altText:n.altText,contentType:n.contentType,fileIdentifier:n.fileIdentifier,originalFileName:n.originalFileName,resourceId:n.resourceId,resourceUrl:n.resourceUrl,height:n.height,width:n.width}},errorHandler:function(n){var e={correlationId:i.CorrelationId,innerCode:n.responseJSON&&n.responseJSON.error&&n.responseJSON.error.code,statusCode:n.status,innerMessage:n.responseJSON&&n.responseJSON.error&&n.responseJSON.error.message,statusText:n.statusText};return i.end({resultType:"Failure",extraData:{imageUrl:t,error:e}}),e},blob:r.ImageBlob})}function F(n){var t=n.methodName,e=n.url,o=n.headers,u=n.successHandler,s=n.errorHandler,a=n.data,f=n.blob,l=new XMLHttpRequest;return l.open(t,e),l.setRequestHeader("__RequestVerificationToken",(0,c.m1)().antiForgeryToken),(0,i.CR)((function(){"USGovGccProd"===(0,r.mc)()?l.setRequestHeader("x-ms-form-request-ring","formsprogcc"):l.setRequestHeader("x-ms-form-request-ring","formspro")})),Object.keys(o).forEach((function(n){l.setRequestHeader(n,o[n])})),a?(l.setRequestHeader("content-type","application/json; charset=utf-8"),l.send(a)):f?l.send(f):l.send(),new Promise((function(n,t){l.onreadystatechange=function(){if(l.readyState===XMLHttpRequest.DONE){var e=l.status;200===e||202===e||201===e||204===e?n(l.responseText&&JSON.parse(l.responseText)):t(l.statusText)}}})).then(u,(function(n){if(!(0,d.Ln)(n))return s(n);(0,p.r)().AuthContext.refreshToken().then(m.Vt).then((function(){return F({methodName:t,url:e,headers:o,successHandler:u,errorHandler:s,data:a,blob:f})})).catch(v.T8)}))}var C=function(){function n(){if(n.instance)return n.instance;n.instance=this}return n.getInstance=function(){return new n},n.prototype.getOwnerServiceUrl=function(n,t,e){return 1===n?this.getFormApiServiceUrl():4===n?this.getFormApiServiceUrl()+"me/":t&&e?this.getFormApiServiceUrl()+t+(3===n?"/groups/":"/users/")+e+"/":null},n.prototype.createDataProvider=function(n,t,e){void 0===n&&(n=1),void 0===t&&(t=null),void 0===e&&(e=null);var r=(0,a.c)();if(1===n)return this.defaultDataProvider||(this.defaultDataProvider=new r(this.getFormApiServiceUrl(),this.getFormApiServiceUrl())),this.defaultDataProvider;var i=this.getOwnerServiceUrl(n,t,e);return i&&new r(this.getFormApiServiceUrl(),i)},n.prototype.createImageProvider=function(n,t,e){if(void 0===n&&(n=1),void 0===t&&(t=null),void 0===e&&(e=null),1===n)return this.currentImageProvider||(this.currentImageProvider=new g(this.getFormApiServiceUrl())),this.currentImageProvider;var r=this.getOwnerServiceUrl(n,t,e);return r&&new g(r)},n.prototype.getFormApiServiceUrl=function(){return this.getServiceUrl("formapi/api/")},n.prototype.getServiceUrl=function(n){return function(){var n;switch((0,r.mc)()){case"USNat":n="https://forms.osi.eaglex.ic.gov/";break;case"USSec":n="https://forms.osi.microsoft.scloud/";break;case"USDoDProd":n="https://forms.osi.apps.mil/";break;case"USGovProd":n="https://forms.osi.office365.us/";break;case"USGovGccProd":n=(0,o.aU)()?"https://customervoice.microsoft.us/":s();break;case"WWProd":n=(0,i.qf)((function(){return s()}),(function(){var n=(0,u.Sv)();return"/"!==n[n.length-1]&&(n+="/"),n}));break;case"ProTip":n="https://tip.forms.office.com/";break;case"CVProd":n="https://customervoice.microsoft.com/";break;case"CVTip":n="https://tip.customervoice.microsoft.com/";break;case"CVFastfood":n="https://msit2.customervoice.microsoft.com/";break;default:n=s()}return n}()+n},n}();function _(){return C.getInstance().createDataProvider()}},97144:function(n,t,e){"use strict";e.d(t,{ob:function(){return u},N1:function(){return c}});var r=e(91970),i=e(88326),o=[];function u(n){var t,e=null==n?void 0:n.response,i={error:{code:"".concat(15001),message:"[PIIRisk: Full Response logging.] "}},o=e&&e.statusCode;try{(null==e?void 0:e.body)&&(i=JSON.parse(e.body))}catch(n){if(401===o){var u=(0,r.Cm)(null==e?void 0:e.headers,"WWW-Authenticate");u&&-1!==u.indexOf("invalid_token")&&(i.error.code="".concat(701))}}var a=(null===(t=i.error)||void 0===t?void 0:t.code)&&parseInt(i.error.code);if(isNaN(a))switch(o){case 0:a=15001,i.error&&(i.error.message="HTTP status code is 0");break;case 429:a=15429}var c={correlationId:(0,r.Cm)(null==e?void 0:e.headers,"X-CorrelationId"),headers:null==e?void 0:e.headers,statusCode:e&&e.statusCode,statusText:e&&e.statusText,innerMessage:i.error&&i.error.message,type:s(o,i),customizedMessage:i.error&&i.error["@ms.form.error.customizedMessage"],isServerError:!0,innerCode:a};return 15001!==a||c.statusCode||(0,r.Cm)(null==e?void 0:e.headers,"X-MSEdge-Ref")||(c.type="ExpectedFailure"),c}function s(n,t){var e=t.error&&t.error["@ms.form.error.type"];if(!e){e=n>=0&&n<500?"ExpectedFailure":"Failure"}return e}var a=function(n){if(!n)return!1;for(var t=0,e=(r=void 0,u=void 0,r=(0,i.JY)("WhiteListRequestUrlRegList"),u=null==r?void 0:r.map((function(n){return new RegExp(n,"i")})),o.concat(u||[]));t=0)return e}else if(s.indexOf(e)>=0)return e;var r=e.replace(/-[^-]+$/,"");return r&&e!==r?f(r,t):"default"}function l(n){window.FormsLsMap=window.FormsLsMap||{},window.formsLsPromiseMap=window.formsLsPromiseMap||{},n=f(n,"ls-pro");var t=window.FormsLsMap[n];if(t)return Promise.resolve(t);var e=window.formsLsPromiseMap[n];return e||(e=h(o("".concat("ls-pro",".").concat(n,".").concat("0b87f89ea",".js"))).then((function(){return window.formsLsPromiseMap[n]=null,window.FormsLsMap[n]}),(function(){throw window.formsLsPromiseMap[n]=null,new Error("fail to download locstring")})).catch((function(n){return new Promise((function(){}))})),window.formsLsPromiseMap[n]=e,e)}function h(n,t){return void 0===t&&(t=0),new Promise((function(e,i){if(t>=2)i();else{var o=document.createElement("script"),u=document.querySelector("script[nonce]");(0,r.lq)(o,n.toLowerCase()),o.type="text/javascript",o.async=!0,u&&(o.nonce=u.nonce),o.onload=function(){e()},o.onerror=function(){!function(){try{document.head.removeChild(o)}catch(n){}}(),e(h(n,t+1))};try{document.head.appendChild(o)}catch(n){i()}}}))}},67003:function(n,t,e){"use strict";e.d(t,{Eq:function(){return s},Xs:function(){return u}});var r=e(28243),i=e(84905),o=e(71683);function u(n,t,e){return void 0===e&&(e=!1),t&&function(n,t){return"false"!==t||"false"===n}(n,t)?t:n||""}function s(n){var t={$isSanitizeRichTextHTMLBase:!0,$text:n};return(0,o.qf)((function(){return(0,i.U)(t)}),(function(){return o.xs.sanitizeRichTextHTML(n)}))}var a;a=document.createElement("div")},41895:function(n,t,e){"use strict";e.d(t,{R:function(){return h}});var r=e(34629),i=e(45430),o=e(76654),u=e(80974),s=e(59198),a=e(35532),c=e(42025),f=e(36316),l={TargetQuestionId:u.EY.string(),ToTheEnd:u.EY.boolean()},h=function(n){function t(e){var r=n.call(this,e)||this;return r.ne=!1,r.ee=!1,r.re="",r.oe=function(n){return r.ae()},e.MasterTreeReady.then((function(){r.Deleted||(t.normalize(r,{},!1),r.addRule({Name:"normalize",onChange:function(n){t.normalize(r,n.OldValues,!0)}}),r.observe((function(n){r.Deleted||r.fe()})))})),r}return(0,r.C6)(t,n),t.prototype.getElementMaster=function(){var n=this.Parent;do{if(n instanceof f.db||n instanceof a.LZ)return n}while(n=n.Parent);return null},t.prototype.getTargetElementMaster=function(){if(this.Deleted)return null;var n=this.getElementMaster().Form.FormElementManager;if(!this.Model.TargetQuestionId)return null;var t=n.getElementMasterById(this.Model.TargetQuestionId);return t&&t.Deleted?null:t?(c.w.isSection(t.Model.Type)||n.findContainerSection(this.getElementMaster())===n.findContainerSection(t))&&t:t},t.prototype.resetToDefault=function(){var n=this;this.ne=!1,this.bulkEdit((function(){n.Model.ToTheEnd=null,n.Model.TargetQuestionId=null}))},t.prototype.isDefault=function(){return!this.Model.ToTheEnd&&!this.Model.TargetQuestionId},t.prototype.getBranchingResult=function(){var n=this.Model;return this.isValid()?n.ToTheEnd?{Type:"End"}:{Type:"Specified",TargetElement:this.getTargetElementMaster()}:{Type:"Next"}},t.prototype.hasSectionBranching=function(){var n=this.getElementMaster(),t=this.getTargetElementMaster();return c.w.isSection(n.Model.Type)||t&&c.w.isSection(t.Model.Type)},t.normalize=function(n,t,e){var r=n.Model;r.ToTheEnd?t.ToTheEnd&&r.TargetQuestionId||(r.TargetQuestionId=null):r.ToTheEnd=null,e&&n.le()},t.prototype.isValid=function(){return this.ne&&this.re===this.Model.TargetQuestionId||(this.le(),this.fe()),this.ee},t.prototype.le=function(){this.ne=!0,this.re=this.Model.TargetQuestionId,this.ee=!(!this.Model.ToTheEnd&&!this.getTargetElementMaster());var n=this.Model.TargetQuestionId;!this.ee&&n&&(0,s.t5)()&&(this.ee=i.km.Resolve("IIncrementalLoadStrategy").has(n))},t.prototype.fe=function(){var n=this.getTargetElementMaster(),t=this.me;n!==t&&((t instanceof f.db||t instanceof a.LZ)&&t.unobserve(this.oe),this.me=n,(n instanceof f.db||n instanceof a.LZ)&&n.observe(this.oe))},t.prototype.ae=function(){if(this.me.Deleted)this.Model.TargetQuestionId=null;else if(this.me instanceof f.db){var n=this.getElementMaster().Form.FormElementManager;n.findContainerSection(this.getElementMaster())!==n.findContainerSection(this.me)&&(this.Model.TargetQuestionId=null)}},t}(o.H.createObjectMasterClass("BranchInfoMaster",l))},64418:function(n,t,e){"use strict";e.d(t,{Ge:function(){return g},KR:function(){return b},Th:function(){return h},UW:function(){return p},iC:function(){return d},n7:function(){return l}});var r=e(76654),i=e(99846),o=e(1349),u=e(21342),s=e(71683),a=e(97410),c=e(84239),f=e(71628);function l(n,t,e){var i=b(n);i.push("status");var o=r.H.getFieldSchemaInfo(c.z.Schema.Version).Attributes.SourceFieldName;i.indexOf(o)&&i.push(o);var s=4,f=null,l=null;t&&(f=t.OwnerTenantId,l=t.OwnerId,s=t.IsGroupForm?3:2);var h=u.hd.getInstance().createDataProvider(s,f,l);return h.getForms(i,e).then((function(n){var t=[],e=0,i=[];return n.forEach((function(n){if("Deleted"===n.status)++e,h.deleteForm(n.id);else if(n.version){var o=r.H.convertFromSourceData(n,c.z.Schema);i.push(o)}else t.push(n.id)})),(t.length||e)&&(0,a.O7)("PortalPage.FilteredOutForms",{deletedFormCount:e,oldVersionForms:t}),i}))}function h(){return u.hd.getInstance().createDataProvider().getFormsResponseCount()}function d(){return(0,s.qf)(m,v)}function m(){return u.hd.getInstance().createDataProvider(4).getFormsSharedWithCurrentUser().then((function(n){return n.map((function(n){return r.H.convertFromSourceData(n,c.z.Schema)}))}))}function v(){var n=u.hd.getInstance().createDataProvider(4),t=null;return new Promise((function(e,i){n.getFormsSharedWithCurrentUserPro(!1).then((function(i){t=i.Forms.map((function(n){return r.H.convertFromSourceData(n,c.z.Schema)}));var u=i.TotalFormCount/parseInt((0,o.G2)())-1,s=1;if(!(i.TotalFormCount>parseInt((0,o.G2)())))return e(t);for(;u>0;){var a=n.getFormsSharedWithCurrentUserPro(!0,s*parseInt((0,o.G2)()));s++,u--,a.then((function(n){if((t=t.concat(n.Forms.map((function(n){return r.H.convertFromSourceData(n,c.z.Schema)})))).length===i.TotalFormCount)return e(t)}))}}))}))}function p(n){if(!n.isFieldReady(c.z.Schema.OwnerTenantId)||!n.isFieldReady(c.z.Schema.OwnerId))return u.hd.getInstance().createDataProvider();var t=1;if(n.IsGroupForm)t=3;else{if(!n.Model.OwnerTenantId||!n.Model.OwnerId)return null;t=2}return u.hd.getInstance().createDataProvider(t,n.Model.OwnerTenantId,n.Model.OwnerId)}function g(n){var t=(0,i.MN)(n),e=1;return t.IsGroupOwner?e=3:t.OrgId&&t.OwnerId&&(e=2),u.hd.getInstance().createDataProvider(e,t.OrgId,t.OwnerId)}function b(n){return(0,f.pT)(n||r.H.getSubFieldSchemas(c.z.Schema)).map((function(n){var t=r.H.getFieldSchemaInfo(n);if(!t.Attributes.IsLocalField)return t.Attributes.SourceFieldName||t.Name})).filter((function(n){return n}))}},80860:function(n,t,e){"use strict";e.d(t,{nt:function(){return l},IM:function(){return h},j4:function(){return f},g2:function(){return c},pN:function(){return d}});var r=e(22224),i=e(1879),o=e(76654),u=e(38597),s=e(64418),a="0001-01-01T00:00:00Z";function c(n,t){var e=r.map(t.Answers,(function(n){return{questionId:n.QuestionId,answer1:n.Answer}})),i={answers:JSON.stringify(e),startDate:t.StartDate instanceof Date?t.StartDate.toISOString():"",submitDate:t.SubmitDate instanceof Date?t.SubmitDate.toISOString():""};return i.emailReceiptConsent=t.EmailReceiptConsent,i.submitLanguage=t.SubmitLanguage,t.Responder&&(i.responder=t.Responder,i.responderName=t.ResponderName),(0,s.UW)(n).submitFormResponse(n.Model.Id,i)}function f(n){return(0,s.UW)(n).getRuntimeResponses(n.Model.Id).then((function(n){return n.map(d)}))}function l(n,t){var e,r,o=null===(r=null===(e=window.FormPrefetchCache)||void 0===e?void 0:e.responseCache)||void 0===r?void 0:r.data;return("Response"===(0,i.M5)()&&o?Promise.resolve(o.value):(0,s.UW)(n).getRuntimeResponses(n.Model.Id,t)).then((function(n){return n.filter((function(n){return n.releaseDate!==a})).map(d)}))}function h(n,t){return(0,s.UW)(n).getRuntimeResponse(n.Model.Id,t).then(d)}function d(n){var t=o.H.convertFromSourceData(n,u.Un.Schema);void 0!==t.StartDateAsString&&(t.StartDate=new Date(t.StartDateAsString)),void 0!==t.SubmitDateAsString&&(t.SubmitDate=new Date(t.SubmitDateAsString)),void 0!==t.ReleaseDateAsString&&(null===t.ReleaseDateAsString?t.ReleaseDate=new Date(a):t.ReleaseDate=new Date(t.ReleaseDateAsString));var e=[];if(t.AnswersAsString&&(e=JSON.parse(t.AnswersAsString).map((function(n){return{Answer:n.answer1,QuestionId:n.questionId}})),t.Answers=e),t.Comments){var i={},s=[];r.forEach(t.Comments,(function(n){var t=n.QuestionId||"___";i[t]&&s.push(i[t]),i[t]=n})),t.Comments=r.difference(t.Comments,s)}if(t.Comments){var c={};e.forEach((function(n){return c[n.QuestionId]=n})),r.forEach(t.Comments,(function(n){var r=n.QuestionId;if(r){var i=c[r];i||(i={Answer:null,QuestionId:r},e.push(i),c[r]=i),1048576!==n.Score&&(i.Feedback=n.Feedback,i.Score=n.Score)}else t.Feedback=n.Feedback,t.TotalScore=n.Score}))}return t}},75848:function(n,t,e){"use strict";e.d(t,{_:function(){return o}});var r=e(9468),i=e(69578),o=function(){function n(n,t,e){void 0===t&&(t=1e3),void 0===e&&(e=5e3);var i=this;this.pe=Number.MAX_VALUE,t=null!=t?t:1e3,e=null!=e?e:5e3,(0,r.MQ)()?this.ge=t:this.ge=4*t,this.we=4*e,this.Se=function(){var n=i.ye();n&&n.resolve()}}return n.prototype.scheduleUpdate=function(){return this.Ie&&console.warn("Calling scheduleUpdate() before the previous one is resolved."),this.Ie=new i.z0,this.Fe=window.setTimeout(this.Se,this.ge),this.Ce=window.setTimeout(this.Se,this.we),this.Ie.promise()},n.prototype.postponeUpdate=function(){this.Ie||console.warn("Calling postponeUpdate() before update scheduled."),this.Fe&&window.clearTimeout(this.Fe),this.Fe=window.setTimeout(this.Se,this.ge)},n.prototype.cancelUpdate=function(){var n;null===(n=this.ye())||void 0===n||n.reject()},n.prototype.setMaxRetryTimesForUpdate=function(n){this.pe=n},n.prototype.ye=function(){window.clearTimeout(this.Fe),this.Fe=void 0,window.clearTimeout(this.Ce),this.Ce=void 0;var n=this.Ie;return this.Ie=void 0,n},n.prototype.retryForCreation=function(n){return n<3?Promise.resolve():Promise.reject("Retry times exceeded.")},n.prototype.retryForUpdate=function(n){var t=this;if(n>=this.pe)return Promise.reject("times >= this.maxRetryTimesForUpdate");var e=s;n-1?n.slice(r,n.indexOf("?")):n.slice(r);return a="".concat(n.slice(0,r),"/embed").concat(s,"?").concat(u,"autoplay=false&showinfo=true&app=forms")}var a=null;if(-1===n.indexOf("layouts")&&n.indexOf("AllItems.aspx")>=0){var c=/teams\/[^\/]+\/(.+.aspx)/;t&&(c=new RegExp(t,"i"));var f=n.match(c);if(f&&2===f.length){var l=f[1];a="".concat(n.replace(l,"_layouts/15/embed.aspx"),"&correlationId=").concat(e,"&client_id=Forms")}}else{var d=function(n,t){return"/".concat(t,"/embed.aspx")};a="".concat(n.replace(/\/(_layouts\/15)\/([^\s]*).aspx/,d),"&correlationId=").concat(e,"&client_id=Forms")}return a}(n,e,r)}(n,(0,d.HP)(),(0,l.mt)("VideoOfficeStreamUrl"),t)}function v(n){var t=document.createElement("a");t.href=n;var e=t.pathname.split("/"),r=n.substring(n.indexOf("?")+1),i=(0,h.Db)(r),o=i.v||e[0]||e[1],u=i.t?"&start=".concat(i.t):"";return"https://www.youtube.com/embed/".concat(o,"?modestbranding=1&rel=0").concat(u)}var p=e(97410),g=e(41895),b=e(75848),w=e(331),S=e(46519),y=e(64418),I=e(94386),F=function(){function n(n,t){this.Pe=n,this.Te=(0,y.UW)(this.Pe.Form)}return Object.defineProperty(n.prototype,"FormId",{get:function(){return this.Pe.Form.Model.Id},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ElementId",{get:function(){return this.Pe.Model.Id},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ElementType",{get:function(){return this.Pe.Model.Type},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ExtraQosData",{get:function(){var n=this.Pe.Form;return{WithSection:n.isFieldReady(n.Schema.DescriptiveElements)&&!!n.FormElementManager.SectionMasters.length}},enumerable:!1,configurable:!0}),n.prototype.add=function(n){var t=this;if(this.Pe.Form.SyncContext!==I.$.DesignTimeForm)throw Error("Trying to create an element without design type.");return this.Pe.createSyncJob((function(){return t.Te.createFormDescriptiveElement(t.FormId,n,t.ExtraQosData)}))},n.prototype.delete=function(n){var t=this;if(!n||!n.id)throw Error("Trying to delete an empty element.");if(this.Pe.Form.SyncContext!==I.$.DesignTimeForm)throw Error("Trying to delete an element without design type.");return this.Pe.createSyncJob((function(){return t.Te.deleteFormDescriptiveElement(t.FormId,n.id||"",t.ElementType,t.ExtraQosData)})).then(null,(function(n){if(n&&621===n.innerCode)return Promise.resolve();throw n}))},n.prototype.query=function(n){throw Error("No scenario to call this method currently.")},n.prototype.update=function(n,t){var e=this;return this.Pe.Form.SyncContext!==I.$.DesignTimeForm?Promise.resolve():this.Pe.createUploadSyncJob((function(){return e.Te.updateFormDescriptiveElement(e.FormId,e.ElementId,e.ElementType,n,e.ExtraQosData)}))},n}(),C=e(8574),_=e(23188),k=e(36805),P={BranchInfo:c.EY.fromMasterClass((function(){return g.R}),{IsLocalField:!0}),CoAuthors:c.EY.collectionOf(c.EY.reference(),{IsLocalField:!0}),FileUploadSPOInfo:c.EY.create({anonymousLinkInfo:c.EY.string(),driveId:c.EY.string(),errorCode:c.EY.string(),folderId:c.EY.string(),linkInfo:c.EY.string()},{SourceFieldName:"fileUploadSPOInfo"}),FormsProRTQuestionTitle:c.EY.string({SourceFieldName:"formsProRTQuestionTitle"}),FormsProRTSubtitle:c.EY.string({SourceFieldName:"formsProRTSubtitle"}),Id:c.EY.string({IsKeyField:!0,SourceFieldName:"id"}),ImageInfo:c.EY.fromMasterClass(f.Ti,{SourceFieldName:"image"}),ImageSettings:c.EY.fromMasterClass(f.W1,{IsLocalField:!0}),IntegratedSavingState:c.EY.reference({IsLocalField:!0}),Order:c.EY.number({SourceFieldName:"order"}),QuestionInfo:c.EY.string({SourceFieldName:"questionInfo"}),SavingState:c.EY.reference({IsLocalField:!0}),ShowSubtitle:c.EY.boolean({IsLocalField:!0}),Subtitle:c.EY.string({SourceFieldName:"subtitle"}),Title:c.EY.string({SourceFieldName:"title"}),Type:c.EY.reference({SourceFieldName:"type"}),Hidden:c.EY.boolean({IsLocalField:!0}),Visible:c.EY.boolean({IsLocalField:!0}),VideoInfo:c.EY.create({Author:c.EY.string(),OriginalHeight:c.EY.number(),OriginalWidth:c.EY.number(),ShowWarningBar:c.EY.boolean(),Thumbnail_url:c.EY.string(),Title:c.EY.string(),Url:c.EY.string()},{IsLocalField:!0})};function T(n){return a.H.getObjectMasterFromModel(n)}var N=function(n){function t(e){var r=this,o=new s.z0;if(!e.InitialData)throw Error("Element model should created with initial data.");return(e=i.clone(e)).InitialData=i.clone(e.InitialData),e.InitialData.FormsProRTQuestionTitle||(e.InitialData.FormsProRTQuestionTitle=null),e.InitialData.FormsProRTSubtitle||(e.InitialData.FormsProRTSubtitle=null),r=n.call(this,e,{MasterReady:o.promise(),Scheduler:new b._(t.name)})||this,(0,k.qX)(r),r.Ne(),r.Re(e),(0,S.ce)(r,t.Schema.ImageInfo,t.Schema.ImageSettings),t.Rules.forEach((function(n){return r.addRule(n)})),r.Ee={},o.resolve(),r}return(0,r.C6)(t,n),t.supportMobileDesign=function(n){return!1},Object.defineProperty(t.prototype,"Form",{get:function(){return this.Parent.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ImageInfoMaster",{get:function(){return(0,w.og)(this.Model.ImageInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ImageSettingsMaster",{get:function(){return(0,S.rE)(this.Model.ImageSettings)},enumerable:!1,configurable:!0}),t.prototype.isFieldReady=function(e){return e=t.getSourceFields([e])[0],n.prototype.isFieldReady.call(this,e)},t.prototype.ensureFieldsReady=function(e){return n.prototype.ensureFieldsReady.call(this,t.getSourceFields(e))},t.prototype.fieldsReady=function(e){return n.prototype.fieldsReady.call(this,t.getSourceFields(e))},t.prototype.ensureCreationDone=function(){var n=this;return this.ImageInfoMaster.Synchronizer.flush().then((function(){return n.Synchronizer.flush()}))},t.prototype.setVideoUrl=function(n,e){var r=this.Model.VideoInfo;a.H.getObjectMasterFromModel(r).bulkEdit((function(){r.Url=m(n,(0,o.d)()),r.Title="",r.Author="",r.Thumbnail_url="",r.OriginalWidth=t.defaultWidth,r.OriginalHeight=t.defaultHeight,r.ShowWarningBar=e&&(0,u.EA)(n)}))},t.prototype.hasValidVideoUrl=function(){return(0,d.HP)()?this.Le()&&(0,u.Ns)(this.Model.VideoInfo.Url):this.Le()&&(0,u.t$)(this.Model.VideoInfo.Url)},t.prototype.clearVideoInfo=function(){this.Model.VideoInfo={Author:"",OriginalHeight:t.defaultHeight,OriginalWidth:t.defaultWidth,ShowWarningBar:!1,Thumbnail_url:"",Title:"",Url:""}},t.prototype.resetBranchInfo=function(){t.getBranchInfoMaster(this.Model.BranchInfo).resetToDefault()},t.prototype.createSyncJob=function(n){var t=this,e=new s.z0,r=e.promise().then((function(){return t.Form.getQuestionSyncBlocker(r)})).then(n);return e.resolve(),r},t.prototype.createUploadSyncJob=function(n){var t=this,e=new s.z0,r=Promise.all([e,this.Oe]).then((function(){return t.createSyncJob(n)}));return e.resolve(),this.Oe=(0,s.Gk)(r),r},t.prototype.updateCoAuthors=function(n){var t=this,e=i.filter(this.Model.CoAuthors,(function(t){return n.userId===t.userId}))[0],r=function(){e&&o.deleteItems([e]),n.userId in t.Ee&&(clearTimeout(t.Ee[n.userId]),delete t.Ee[n.userId])},o=a.H.getCollectionMasterFromModel(this.Model.CoAuthors);o.bulkEdit((function(){r(),e=a.H.Collection.addItems(t.Model.CoAuthors,[n])[0]}));this.Ee[n.userId]=window.setTimeout(r,1e4)},t.getBranchInfoMaster=function(n){return a.H.getObjectMasterFromModel(n)},t.prototype.Re=function(n){this.xe=new C.v(this,t.Schema.QuestionInfo,t.QuestionInfoFieldSet),n.InitialData&&this.isFieldReady(t.Schema.QuestionInfo)&&(n.ExistingInDataSource||n.InitialData.QuestionInfo?this.xe.deserialize():this.xe.serialize())},t.prototype.Ne=function(){this.isFieldReady(t.Schema.ImageInfo)?this.Model.IntegratedSavingState=(0,k.Rr)([this.Model.ImageInfo.SavingState,this.Model.SavingState]):this.Model.IntegratedSavingState=this.Model.SavingState},t.prototype.Le=function(){return this.Model.VideoInfo&&this.Model.VideoInfo.Url},Object.defineProperty(t,"QuestionInfoFieldSet",{get:function(){return t.questionInfoFieldSet||(t.questionInfoFieldSet=new _.n([t.Schema.BranchInfo,t.Schema.ImageSettings,t.Schema.ShowSubtitle,t.Schema.VideoInfo,t.Schema.Hidden])),t.questionInfoFieldSet},enumerable:!1,configurable:!0}),Object.defineProperty(t,"Rules",{get:function(){if(!t.rules){var n=t.Schema;t.rules=[{InterestedFields:[n.Id],Name:"block id changes",onChange:function(n){var t,e=n.Master.Model,r=e.Id,i=n.OldValues.Id;e.Id=i;try{throw Error("Changing element id")}catch(n){t=n}(0,p.jg)("UpdatingElementId",{newId:r,oldId:i,stack:t.stack})}},{InterestedFields:[n.ImageInfo.SavingState,n.SavingState],Name:"IntegrateSavingState",onChange:function(n){return n.Master.Ne()}}]}return t.rules},enumerable:!1,configurable:!0}),t.getSourceFields=function(n){return i.uniq(n.map((function(n){return t.QuestionInfoFieldSet.covers(n)?t.Schema.QuestionInfo:n})))},t.defaultWidth=459,t.defaultHeight=256,t}(a.H.createObjectMasterClass("DescriptiveElementMaster",P,(function(n,t){return new F(n,t)})))},82692:function(n,t,e){"use strict";var r;e.d(t,{b:function(){return r}}),function(n){n[n.Normal=0]="Normal",n[n.SoftDeleted=1]="SoftDeleted"}(r||(r={}))},94386:function(n,t,e){"use strict";var r;e.d(t,{$:function(){return r}}),function(n){n[n.DesignTimeForm=1]="DesignTimeForm",n[n.ResponseTimeForm=2]="ResponseTimeForm",n[n.SharedTimeForm=3]="SharedTimeForm",n[n.LocalForm=4]="LocalForm",n[n.AnalysisTimeForm=5]="AnalysisTimeForm",n[n.ResponseDetailTimeForm=6]="ResponseDetailTimeForm",n[n.AdminPhishingReviewForm=7]="AdminPhishingReviewForm"}(r||(r={}))},37553:function(n,t,e){"use strict";var r;e.d(t,{E:function(){return r}}),function(n){n[n.None=0]="None",n[n.All=1]="All",n[n.Flip=2]="Flip",n[n.LimitedNumber=3]="LimitedNumber",n[n.Advanced=4]="Advanced"}(r||(r={}))},8574:function(n,t,e){"use strict";e.d(t,{v:function(){return o}});var r=e(76654),i=0,o=function(){function n(n,t,e){this.De=n,this.Ae=t,this.Ve=e.FieldSchemas,this.Ue()}return n.prototype.serialize=function(){var n=this.De.getSnapshot(this.Ve),t=this.De.Schema,e={};this.Ve.forEach((function(t){var i=r.H.getFieldSchemaInfo(t).Name;e[i]=r.H.convertToSourceData(n[i],t)}));var o=r.H.getFieldSchemaInfo(this.Ae).Name,s=u(e,t,[]),a=s&&JSON.stringify(s),c=this.De.Model[o]!==a;(c||Math.random()0?o:null}},23188:function(n,t,e){"use strict";e.d(t,{n:function(){return u}});var r=e(22224),i=e(43865),o=e(76654),u=function(){function n(n){this.qe=n.concat(),this.He=n.map((function(n){return o.H.getFieldSchemaInfo(n).Name}))}return Object.defineProperty(n.prototype,"FieldSchemas",{get:function(){return this.qe.concat()},enumerable:!1,configurable:!0}),n.prototype.covers=function(n){return(0,i.Kg)(n)?r.contains(this.He,n):r.contains(this.qe,n)},n}()},84239:function(n,t,e){"use strict";e.d(t,{z:function(){return J}});var r=e(34629),i=e(22224),o=e(17891),u=e(49105),s=e(69578),a=e(45430);var c=e(76654),f=e(80974),l=e(59198),h=e(24376),d=e(87578),m=e(71683),v=(e(88326),e(38290)),p=e(64931),g=e(33589),b=e(82692),w=e(94386),S=e(64418),y=function(){function n(n,t){if(this.je=n,this.Te=(0,S.UW)(n),this.Te){var e=this.Te.getDesignForm;switch(this.je.SyncContext){case w.$.SharedTimeForm:e=this.Te.getSharedForm;break;case w.$.ResponseTimeForm:e=this.Te.getRuntimeForm;break;case w.$.AnalysisTimeForm:e=this.Te.getAnalysisTimeForm;break;case w.$.ResponseDetailTimeForm:e=this.Te.getResponseDetailRuntimeForm;break;case w.$.AdminPhishingReviewForm:e=this.Te.getAdminPhishingReviewForm}this.Qe=e.bind(this.Te)}}return n.prototype.add=function(n){return this.je.SyncContext===w.$.LocalForm?new Promise((function(){})):this.je.SyncContext===w.$.DesignTimeForm?this.Te.createForm(n):void(0,v.$8)("Trying to create a form without design type.")},n.prototype.delete=function(n){var t=this;if(this.je.SyncContext===w.$.DesignTimeForm)return this.$e(),(0,m.CR)((function(){return!0}))?this.je.ensureFieldsReady([J.Schema.BusinessCdsId,J.Schema.BusinessCdsRegion]).then((function(){return t.Te.deleteForm(t.je.Model.Id,t.je.Model.BusinessCdsId,t.je.Model.BusinessCdsRegion)})):this.Te.deleteForm(this.je.Model.Id);(0,v.$8)("Trying to delete a form without design type.")},n.prototype.query=function(n){var t=this;if((0,m.CR)((function(){return!0}))&&this.je.IsSampleForm)return Promise.resolve(null);if(!this.Qe){return Promise.reject({innerCode:1001,type:"ExpectedFailure"})}var e=this.je.isFieldReady(this.je.Schema.Flags)&&I(this.je.Model.Flags),o=this.We(e),u=this.Ke(n,o);return Promise.all(u).then((function(n){return i.extend.apply(i,(0,r.fX)([{}],n,!1))})).then((function(e){var r=c.H.getFieldSchemaInfo(t.je.Schema.Flags).Attributes.SourceFieldName;return n.indexOf(r)>=0&&!I(e.flags)&&(e.archivedRowCount=0),e}))},n.prototype.update=function(n){if(!(0,m.CR)((function(){return!0}))||!this.je.IsSampleForm){if(this.je.SyncContext===w.$.LocalForm)return new Promise((function(){}));if(this.je.SyncContext!==w.$.DesignTimeForm)return Promise.resolve();var t=c.H.getFieldSchemaInfo(J.Schema.SoftDeleted).Attributes.SourceFieldName;if(t in n)n[t]===b.b.SoftDeleted&&this.$e();else if(this.je.isFieldReady(J.Schema.SoftDeleted)&&this.je.Model.SoftDeleted===b.b.SoftDeleted)return Promise.resolve();return""!==n.title||(0,p.Rk)()||(n.title=(0,g.qn)().Designer_DefaultFormTitle),this.Te.updateForm(this.je.Model.Id,n)}},n.prototype.Ke=function(n,t){var e=[],r=new Set;n.forEach((function(n){t.hasOwnProperty(n)?r.add(t[n]):e.push(n)}));var i=[];return e.length&&i.push(this.Qe(this.je.Model.Id,e)),r.forEach((function(n){return i.push(n())})),i},n.prototype.We=function(n){var t=this,e={localizedResources:function(){if(!(0,p.cB)())return t.je.getAllLocaleResources()}};if(n){e.archivedRowCount=function(){return t.Te.getArchiveAndActiveResponseCount({$formId:t.je.Model.Id}).then((function(n){return{rowCount:n.active,archivedRowCount:n.archive}}))}}return e},n.prototype.$e=function(){var n=this;return this.Te.removeRecentForm(this.je.Model.Id).then((function(){var t=Forms.Mru.MruDocumentCollectionMaster.getInstance();t&&t.removeDocument(n.je.Model.Id)}))},n}();function I(n){return(128&n)>0}var F=e(80860),C=e(75848),_=e(35532),k=e(8574),P=e(331),T=e(46519),N=e(63662),R=function(){function n(n){this.De=n,this.Te=(0,S.UW)(this.De.Form)}return n.prototype.add=function(n){if(!n.localeId||!n.localeName||this.De.Form.SyncContext!==w.$.DesignTimeForm)return Promise.resolve();var t={elementKey:"localename",elementValue:n.localeName,locale:n.localeId,questionId:""};return this.Te.createLocaleItem(this.De.FormId,t)},n.prototype.delete=function(n){return n.localeId&&this.De.Form.SyncContext===w.$.DesignTimeForm?this.Te.deleteLocale(this.De.FormId,n.localeId):Promise.resolve()},n.prototype.query=function(n){throw Error("No scenario to call this method currently.")},n.prototype.update=function(n,t){if(!t.ValuesBefore||!n.localeName||this.De.Form.SyncContext!==w.$.DesignTimeForm)return Promise.resolve();var e=null!==t.ValuesBefore.localeName,r={elementKey:"localename",elementValue:n.localeName,locale:this.De.Model.localeId,questionId:null};return e?this.Te.updateLocaleItem(this.De.FormId,r):this.Te.createLocaleItem(this.De.FormId,r)},n}(),E={localeId:f.EY.string({IsKeyField:!0}),localeName:f.EY.string()},L=function(n){function t(e){return n.call(this,e,{Scheduler:new C._(t.name)})||this}return(0,r.C6)(t,n),Object.defineProperty(t.prototype,"Form",{get:function(){return this.Parent.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormId",{get:function(){return this.Form.Model.Id},enumerable:!1,configurable:!0}),t}(c.H.createObjectMasterClass("LocaleInfoMaster",E,(function(n){return new R(n)}))),O=e(92906),x=function(){function n(n,t){this.Je=n,this.Te=(0,S.UW)(this.Je.Form)}return Object.defineProperty(n.prototype,"FormId",{get:function(){return this.Je.FormId},enumerable:!1,configurable:!0}),n.prototype.add=function(n){return this.Je.Form.SyncContext===w.$.AdminPhishingReviewForm?this.Te.createAdminPhishingReviewPermissionLink(this.FormId,n):this.Te.createPermissionLink(this.FormId,n)},n.prototype.delete=function(n){return this.Te.deletePermissionLink(this.FormId,n.principalId)},n.prototype.query=function(n){return(0,v.$8)("No scenario to call this method currently.")},n.prototype.update=function(n,t){if("OrgLink"===t.Snapshot.type||"Link"===t.Snapshot.type||"ShareToPeople"===t.Snapshot.type){var e={permissionSet:t.Snapshot.permissionSet,type:t.Snapshot.type};return this.Je.Form.SyncContext===w.$.AdminPhishingReviewForm?this.Te.createAdminPhishingReviewPermissionLink(this.FormId,e):this.Te.createPermissionLink(this.FormId,e)}return(0,v.$8)("No scenario to call this method currently.")},n}(),D=e(36805),M={PrincipalId:f.EY.string({SourceFieldName:"principalId"}),PermissionSet:f.EY.string({SourceFieldName:"permissionSet"}),Type:f.EY.reference({SourceFieldName:"type"}),FormId:f.EY.string({IsSourceGenerated:!0,SourceFieldName:"formId"}),IsOwner:f.EY.boolean({IsSourceGenerated:!0,SourceFieldName:"isOwner"}),PrincipalEmailAddress:f.EY.string({IsSourceGenerated:!0,SourceFieldName:"principalEmailAddress"}),PrincipalName:f.EY.string({IsSourceGenerated:!0,SourceFieldName:"principalName"}),SavingState:f.EY.reference({IsLocalField:!0})};var A=function(n){function t(t){var e=n.call(this,t)||this;return(0,D.qX)(e),e}return(0,r.C6)(t,n),Object.defineProperty(t.prototype,"Form",{get:function(){return this.Parent.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormId",{get:function(){return this.Form.Model.Id},enumerable:!1,configurable:!0}),t}(c.H.createObjectMasterClass("Permission",M,(function(n,t){return new x(n,t)}))),V=function(){function n(n,t){this.Xe=n,this.Te=(0,S.UW)(this.Xe.getForm())}return n.prototype.Ye=function(){return this.Xe.getFormId()},n.prototype.add=function(n){return this.Te.createPermissionToken(this.Ye(),n)},n.prototype.delete=function(n){return this.Te.deletePermissionToken(this.Ye(),n.principalId)},n.prototype.query=function(n){return(0,v.$8)("No scenario to call this method currently.")},n.prototype.update=function(n,t){return(0,v.$8)("No scenario to call this method currently.")},n}(),U={PrincipalId:f.EY.string({IsSourceGenerated:!0,SourceFieldName:"principalId"}),Type:f.EY.reference({SourceFieldName:"type"}),Name:f.EY.string({SourceFieldName:"name"})};var z=function(n){function t(t){return n.call(this,t)||this}return(0,r.C6)(t,n),t.prototype.getForm=function(){return this.Parent.Parent},t.prototype.getFormId=function(){return this.getForm().Model.Id},t}(c.H.createObjectMasterClass("PermissionToken",U,(function(n,t){return new V(n,t)}))),B=function(){function n(n,t){this.Je=n,this.Te=(0,S.UW)(this.Je.Form)}return Object.defineProperty(n.prototype,"FormId",{get:function(){return this.Je.FormId},enumerable:!1,configurable:!0}),n.prototype.add=function(n){return this.Te.createResponderPermissionLink(this.FormId,n)},n.prototype.delete=function(n){return this.Te.deleteResponderPermissionLink(this.FormId,n.principalId)},n.prototype.query=function(n){return(0,v.$8)("No scenario to call this method currently.")},n.prototype.update=function(n,t){return(0,v.$8)("No scenario to call this method currently.")},n}(),q={PrincipalId:f.EY.string({SourceFieldName:"principalId"}),PermissionSet:f.EY.string({SourceFieldName:"permissionSet"}),Type:f.EY.reference({SourceFieldName:"type"}),FormId:f.EY.string({IsSourceGenerated:!0,SourceFieldName:"formId"}),IsOwner:f.EY.boolean({IsSourceGenerated:!0,SourceFieldName:"isOwner"}),PrincipalEmailAddress:f.EY.string({IsSourceGenerated:!0,SourceFieldName:"principalEmailAddress"}),PrincipalName:f.EY.string({IsSourceGenerated:!0,SourceFieldName:"principalName"}),SavingState:f.EY.reference({IsLocalField:!0})};var H,j=function(n){function t(t){var e=n.call(this,t)||this;return(0,D.qX)(e),e}return(0,r.C6)(t,n),Object.defineProperty(t.prototype,"Form",{get:function(){return this.Parent.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormId",{get:function(){return this.Form.Model.Id},enumerable:!1,configurable:!0}),t}(c.H.createObjectMasterClass("ResponderPermission",q,(function(n,t){return new B(n,t)}))),Q=e(38597);!function(n){n[n.Default=0]="Default",n[n.Shown=1]="Shown",n[n.Closed=2]="Closed"}(H||(H={}));var G=e(71628),$=e(47937),W=e(29269),K={Id:f.EY.string({IsSourceGenerated:!0,IsKeyField:!0,SourceFieldName:"id"}),Description:f.EY.string({SourceFieldName:"description"}),Background:f.EY.fromMasterClass(d.Ti,{SourceFieldName:"background"}),Category:f.EY.string({SourceFieldName:"category"}),Logo:f.EY.fromMasterClass(d.Ti,{SourceFieldName:"logo"}),MeetingId:f.EY.string({SourceFieldName:"meetingId"}),ModifiedDate:f.EY.string({SourceFieldName:"modifiedDate"}),CreatedDate:f.EY.string({SourceFieldName:"createdDate"}),OtherInfo:f.EY.string({SourceFieldName:"otherInfo"}),OwnerId:f.EY.string({SourceFieldName:"ownerId"}),OwnerTenantId:f.EY.string({SourceFieldName:"ownerTenantId"}),OwnerUserType:f.EY.string({SourceFieldName:"ownerUserType"}),CollectionId:f.EY.string({SourceFieldName:"collectionId"}),RowCount:f.EY.number({SourceFieldName:"rowCount"}),ArchivedRowCount:f.EY.number({SourceFieldName:"archivedRowCount"}),SharedBy:f.EY.string({SourceFieldName:"sharedBy"}),SharedFormOwnerName:f.EY.string({SourceFieldName:"ownerDisplayName"}),SharedDate:f.EY.string({SourceFieldName:"dateTimeShared"}),TableId:f.EY.string({IsSourceGenerated:!0,SourceFieldName:"tableId"}),TenantSwitches:f.EY.number({SourceFieldName:"tenantSwitches"}),PrivacyUrl:f.EY.string({SourceFieldName:"privacyUrl"}),Title:f.EY.string({SourceFieldName:"title"}),Version:f.EY.string({SourceFieldName:"version"}),XlWorkbookId:f.EY.string({SourceFieldName:"xlWorkbookId"}),FillOutTimeLimit:f.EY.string({SourceFieldName:"fillOutTimeLimit"}),XlExportingTag:f.EY.string({SourceFieldName:"xlExportingTag"}),XlFileUnsynced:f.EY.boolean({SourceFieldName:"xlFileUnSynced"}),XlUnsyncedReason:f.EY.string({SourceFieldName:"xlUnsyncedReason"}),Permissions:f.EY.collectionOf((function(){return A}),{SourceFieldName:"permissions"}),ResponderPermissions:f.EY.collectionOf((function(){return j}),{SourceFieldName:"responderPermissions"}),PermissionTokens:f.EY.collectionOf((function(){return z}),{SourceFieldName:"permissionTokens"}),Questions:f.EY.collectionOf(d.AW,{SourceFieldName:"questions"}),DescriptiveElements:f.EY.collectionOf((function(){return _.LZ}),{SourceFieldName:"descriptiveQuestions"}),MovingToRecycleBin:f.EY.boolean({IsLocalField:!0}),FormsInsightsInfo:f.EY.string({SourceFieldName:"formsInsightsInfo"}),SoftDeleted:f.EY.enumeration((function(){return b.b}),{SourceFieldName:"softDeleted",IsNumberTypeInDataSource:!0}),BusinessCdsId:f.EY.string({SourceFieldName:"BusinessCdsId"}),BusinessCdsRegion:f.EY.string({SourceFieldName:"BusinessCdsRegion"}),IsDefaultCds:f.EY.string({SourceFieldName:"IsDefaultCds"}),LastEmbedConfig:f.EY.string({SourceFieldName:"LastEmbedConfig"}),FormsProBranchRules:f.EY.string({SourceFieldName:"FormsProBranchRules"}),MfpBranchingData:f.EY.string({SourceFieldName:"mfpBranchingData"}),CVSimplifiedBranchingSupported:f.EY.string({SourceFieldName:"cvSimplifiedBranchingSupported"}),PipesDetails:f.EY.string({SourceFieldName:"formsProConfiguredPipes"}),FormsProRTTitle:f.EY.string({SourceFieldName:"formsProRTTitle"}),FormsProRTDescription:f.EY.string({SourceFieldName:"formsProRTDescription"}),ResponseThresholdCount:f.EY.string({SourceFieldName:"responseThresholdCount"}),InviteExpiryDays:f.EY.string({SourceFieldName:"inviteExpiryDays"}),FormsProEmbedCode:f.EY.string({SourceFieldName:"formsProEmbedCode"}),FormsProAnswerTagMap:f.EY.collectionOf({name:f.EY.string(),value:f.EY.string(),questionId:f.EY.string()},{IsLocalField:!0}),FormsProAnswerTagMapRT:f.EY.collectionOf({name:f.EY.string(),value:f.EY.string()},{IsLocalField:!0}),FooterText:f.EY.string({SourceFieldName:"footerText"}),ConditionalThankyouMessage:f.EY.string({SourceFieldName:"conditionalThankyouMessage"}),CVDefaultLanguage:f.EY.string({SourceFieldName:"cvDefaultLanguage"}),CustomCssFileName:f.EY.string({SourceFieldName:"customCssFileName"}),CustomDomainSenderEmail:f.EY.string({SourceFieldName:"customDomainSenderEmail"}),ProjectId:f.EY.string({SourceFieldName:"projectId"}),InitialFormId:f.EY.string({SourceFieldName:"initialFormId"}),InitialFormOwnerId:f.EY.string({SourceFieldName:"initialFormOwnerId"}),SurveyFont:f.EY.string({SourceFieldName:"surveyFont"}),HeaderFont:f.EY.string({SourceFieldName:"headerFont"}),Alias:f.EY.string({SourceFieldName:"alias"}),ShortUrl:f.EY.string({SourceFieldName:"shortUrl"}),ProjectName:f.EY.string({SourceFieldName:"projectName"}),ProjectGroupId:f.EY.string({SourceFieldName:"projectGroupId"}),FileUploadStorage:f.EY.string({SourceFieldName:"fileUploadStorage"}),SurveyPermanentId:f.EY.string({SourceFieldName:"surveyPermanentId"}),EmailTemplatesMapping:f.EY.string({SourceFieldName:"emailTemplatesMapping"}),SurveyLastModifiedAt:f.EY.string({SourceFieldName:"surveyLastModifiedAt"}),HeaderEnabled:f.EY.string({SourceFieldName:"headerEnabled"}),HeaderBGImage:f.EY.fromMasterClass(d.Ti,{SourceFieldName:"header"}),HeaderTheme:f.EY.fromMasterClass((function(){return a.km.Resolve("ICVMixin").getMixinHeaderThemeMaster()}),{IsLocalField:!0}),BackGroundPositionX:f.EY.string({IsLocalField:!0}),BackGroundPositionY:f.EY.string({IsLocalField:!0}),BackGroundPositionZ:f.EY.string({IsLocalField:!0}),ThemeHeaderBackgroundImageURL:f.EY.string({IsLocalField:!0}),LogoPositionX:f.EY.string({IsLocalField:!0}),LogoPositionY:f.EY.string({IsLocalField:!0}),TitlePositionX:f.EY.string({IsLocalField:!0}),TitlePositionY:f.EY.string({IsLocalField:!0}),LogoSize:f.EY.string({IsLocalField:!0}),HeaderImageFocalPointEnabled:f.EY.string({IsLocalField:!0}),HeaderOtherInfo:f.EY.string({SourceFieldName:"headerOtherInfo"}),HeaderAltText:f.EY.string({SourceFieldName:"headerAltText"}),CustomCSSInLineHeaderToggle:f.EY.string({SourceFieldName:"customCSSInLineHeaderToggle"}),FlowTemplateId:f.EY.string({SourceFieldName:"flowTemplateId"}),InvitesCoolingPeriod:f.EY.number({SourceFieldName:"invitesCoolingPeriod"}),OverSurveySettingEnabled:f.EY.boolean({SourceFieldName:"overSurveySettingEnabled"}),TrackingId:f.EY.string({SourceFieldName:"trackingId"}),ThankYouMessage:f.EY.string({SourceFieldName:"thankYouMessage"}),EmailReceiptEnabled:f.EY.boolean({SourceFieldName:"emailReceiptEnabled"}),Flags:f.EY.number({SourceFieldName:"flags"}),Type:f.EY.reference({SourceFieldName:"type"}),ReputationTier:f.EY.number({SourceFieldName:"reputationTier"}),BufferResponses:f.EY.collectionOf(f.EY.reference({},(function(n){return n.Id.toString()})),{IsLocalField:!0}),CoAuthors:f.EY.collectionOf(f.EY.reference(),{IsLocalField:!0}),DeleteCollaborationPermission:f.EY.boolean({IsLocalField:!0}),LastSyncTime:f.EY.number({IsLocalField:!0}),RtcStatus:f.EY.number({IsLocalField:!0}),HasValidBranching:f.EY.boolean({IsLocalField:!0}),HasQuestionMedia:f.EY.boolean({IsLocalField:!0}),Created:f.EY.string({IsLocalField:!0}),Modified:f.EY.string({IsLocalField:!0}),PredefinedResponses:f.EY.collectionOf({Id:f.EY.number({IsKeyField:!0}),Answers:f.EY.collectionOf({QuestionId:f.EY.string(),Answer:f.EY.reference()})},{IsLocalField:!0}),PrimaryCustomizedThemeColor:f.EY.string({IsLocalField:!0}),QuizQuestionsCount:f.EY.number({IsLocalField:!0}),SecondaryCustomizedThemeColor:f.EY.string({IsLocalField:!0}),Responses:f.EY.collectionOf(f.EY.reference({},(function(n){return n.Id.toString()})),{IsLocalField:!0}),ResponsesCount:f.EY.number({IsLocalField:!0}),XlExportingLocalTag:f.EY.string({IsLocalField:!0}),SerializedSettings:f.EY.string({SourceFieldName:"settings"}),Settings:f.EY.fromMasterClass((function(){return $.W}),{IsLocalField:!0}),SerializedPredefinedResponses:f.EY.string({SourceFieldName:"predefinedResponses"}),TertiaryCustomizedThemeColor:f.EY.string({IsLocalField:!0}),Theme:f.EY.fromMasterClass((function(){return W.o}),{IsLocalField:!0}),ResponseModels:f.EY.collectionOf((function(){return Q.Un}),{IsLocalField:!0}),IntegratedSavingState:f.EY.reference({IsLocalField:!0}),SavingState:f.EY.reference({IsLocalField:!0}),LogoInfo:f.EY.fromMasterClass(d.W1,{IsLocalField:!0}),CreatedFromOneDrive:f.EY.boolean({IsLocalField:!0}),TemplateId:f.EY.string({IsLocalField:!0}),TransferInProgress:f.EY.boolean({IsLocalField:!0}),DataClassificationLabel:f.EY.string(),DefaultLanguage:f.EY.string({SourceFieldName:"defaultLanguage"}),LocaleList:f.EY.collectionOf((function(){return L}),{SourceFieldName:"localeList"}),LocalizedResources:f.EY.collectionOf((function(){return N.h}),{SourceFieldName:"localizedResources"}),CreatedBy:f.EY.string({SourceFieldName:"createdBy"}),FileUploadFormInfo:f.EY.create({errorCode:f.EY.string()},{SourceFieldName:"fileUploadFormInfo"}),ProgressBarEnabled:f.EY.string({SourceFieldName:"progressBarEnabled"}),YouTubeMessageBarState:f.EY.enumeration((function(){return H}),{IsLocalField:!0}),QuizPreviousResponsesCount:f.EY.number({IsLocalField:!0}),NotifiedAdminForApproval:f.EY.boolean({IsLocalField:!0}),SupportedQuestionType:f.EY.reference({IsLocalField:!0})},J=function(n){function t(e,r,i,o,u,a){void 0===o&&(o=!1);var c=this,f=new s.z0;r=(0,G.KE)(r),(c=n.call(this,r,{Scheduler:new C._(t.name),MasterReady:f.promise()})||this).initializing=f,c.syncBlocker=u?new s.Am(u):c.initializing,c.isGroupForm=i,c.Ze=o,c.er=e,c.rr=a;var l=(0,d.$f)();return c.formElementManager=new l(c),c.cr(r),(0,m.CR)((function(){c.initializeHeaderOtherInfoBinder(r)})),c.lr(r),c.dr(r),t.Rules.forEach((function(n){return c.addRule(n)})),c.vr(),c}return(0,r.C6)(t,n),t.prototype.getSyncBlocker=function(){return this.syncBlocker},Object.defineProperty(t.prototype,"IsGroupForm",{get:function(){return this.isGroupForm},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSampleForm",{get:function(){return this.Ze},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsAssignmentForm",{get:function(){return!!this.isFieldReady(this.Schema.Category)&&"assignments"===this.Model.Category},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SyncContext",{get:function(){return this.er},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormElementManager",{get:function(){return this.formElementManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SettingMaster",{get:function(){return c.H.getObjectMasterFromModel(this.Model.Settings)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThemeMaster",{get:function(){return c.H.getObjectMasterFromModel(this.Model.Theme)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HeaderThemeMaster",{get:function(){return c.H.getObjectMasterFromModel(this.Model.HeaderTheme)},enumerable:!1,configurable:!0}),t.prototype.getRelatedSourceFields=function(n){return(0,G.pT)(n)},t.prototype.getImageMaster=function(n){return(0,P.og)(this.getModelByFieldSchema(n))},t.prototype.getImageSettingsMaster=function(n){return(0,T.rE)(this.getModelByFieldSchema(n))},t.prototype.getQuestionById=function(n){return this.formElementManager.getQuestionById(n)},t.prototype.getElementById=function(n){return this.formElementManager.getElementMasterById(n)},t.prototype.getReleasedResponsesByResponder=function(n){var t=this;return n&&!this.SettingMaster.Model.IsAnonymous?(0,F.nt)(this,n).then((function(n){return(0,l.t5)()?t.rr.normalizeResponses(n):t.normalizeResponses(n)})):Promise.resolve(null)},t.prototype.getRuntimeResponse=function(n){var t=this;return n?(0,F.IM)(this,n).then((function(n){return t.pr(n)})):Promise.resolve(null)},t.prototype.ensureReadyToResponse=function(){return this.ensureFieldsReady((0,G.od)())},t.prototype.ensureReadyToShare=function(){return this.ensureFieldsReady((0,G.uN)())},t.prototype.getDefaultResponse=function(){var n={};return(0,h.Zw)()&&i.forEach(this.Model.Questions,(function(t){return n[t.Id]=t.DefaultValue})),n},t.prototype.hasSection=function(){return this.FormElementManager.SectionMasters.length>0},t.prototype.syncRuntimeResponses=function(){var n=this;return this.Synchronizer.existingInDataSource().then((function(){return(0,F.j4)(n)})).then((function(t){n.updatingResponsesFromServer=!0,n.bulkEdit((function(){return n.Model.Responses=n.normalizeResponses(t)})),n.updatingResponsesFromServer=!1}))},t.prototype.submitResponse=function(n){var t=this;if(this.syncBlocker.states()===s.HU.Pending)return Promise.resolve(void 0);var e=!1;return(n=i.clone(n)).Answers=i.map(n.Answers,(function(n){var r=t.getQuestionById(n.QuestionId);return r&&r.Model&&((n=i.clone(n)).Answer=r.serializeAnswer(n.Answer),"Question.TextField"===r.Model.Type&&!e&&r.Model.IsMathQuiz&&(e=!0)),n})),e&&this.gr(n),new Promise((function(e){t.Synchronizer.existingInDataSource().then((function(){return e((0,F.g2)(t,n))}))}))},t.prototype.getSnapshotToCopy=function(){var n=this.getSnapshot((0,G.GD)()),t=null;return n.XlWorkbookId&&((t=i.clone(n)).XlWorkbookId="WaitingForExport"),this.Model.OwnerTenantId!==(0,o.m1)().userInfo.TenantId&&n.DataClassificationLabel&&(t||(t=i.clone(n)),t.DataClassificationLabel=null),(0,m.CR)((function(){n.CustomCssFileName&&(t||(t=i.clone(n)),t.CustomCssFileName=null)})),null===t?n:t},t.prototype.getLocaleResouceById=function(n){var t=this;return(0,S.Ge)(this.Model.Id).getLocaleResource(this.Model.Id,n).then((function(n){var e=(0,O.Au)(n);return t.ensureFieldsReady([t.Schema.Questions]).then((function(){return t.wr(e)}))}))},t.prototype.wr=function(n){var t=this;return i.forEach(n.localizedResources,(function(n){i.forEach(n.questionResources,(function(n){n.choices=i.filter(i.map(n.choices,(function(e){var r=t.getQuestionById(n.questionId),i=r&&(r.getChoiceByKey(e.key)||r.getChoiceById(Number(e.choiceId)));return i&&{key:i.Model.Key,choiceId:String(i.Model.Id),description:e.description}})),(function(n){return!!(n&&n.choiceId&&n.key&&n.description)}))}))})),n},t.prototype.totalSectionCount=function(){return this.formElementManager.SectionMasters.length+(this.formElementManager.HeaderTopQuestionMasters.length>0?1:0)},t.prototype.isProgressBarVisible=function(){return!!this.isFieldReady(t.Schema.ProgressBarEnabled)&&("true"===this.Model.ProgressBarEnabled&&this.totalSectionCount()>=2)},t.prototype.ensureFieldsReady=function(t){return n.prototype.ensureFieldsReady.call(this,t)},t.prototype.lr=function(n){n.ExistingInDataSource?this.isFieldReady(t.Schema.ModifiedDate)&&(this.Model.Modified=this.Model.ModifiedDate):this.Model.Modified=(new Date).toISOString()},t.prototype.dr=function(n){n.ExistingInDataSource?this.isFieldReady(t.Schema.CreatedDate)&&(this.Model.Created=this.Model.CreatedDate):this.Model.Created=(new Date).toISOString()},t.prototype.cr=function(n){this.Sr=new k.v(this,t.Schema.OtherInfo,(0,G.Bt)()),n.InitialData&&this.isFieldReady(t.Schema.OtherInfo)&&(n.ExistingInDataSource||n.InitialData.OtherInfo?this.Sr.deserialize():this.Sr.serialize())},t.prototype.initializeHeaderOtherInfoBinder=function(n){var e=this;(0,m.CR)((function(){e.yr=new k.v(e,t.Schema.HeaderOtherInfo,(0,G.qI)()),n.InitialData&&e.isFieldReady(t.Schema.HeaderOtherInfo)&&(n.ExistingInDataSource||n.InitialData.HeaderOtherInfo?e.yr.deserialize():e.yr.serialize())}))},t.prototype.normalizeResponses=function(n){var t=this;return this.bulkEdit((function(){n=n.map((function(n){return t.pr(n)}))})),n},t.prototype.pr=function(n){var t=this.Model.Settings.IsQuizMode&&this.SyncContext!==w.$.ResponseTimeForm,e={};this.FormElementManager.QuestionMasters.forEach((function(n){return e[n.Model.Id]=n})),(n=i.clone(n)).Answers=i.map(n.Answers,(function(n){var r=e[n.QuestionId];return r?((n=i.clone(n)).Answer=r.deserializeAnswer(n.Answer),n.IsMathAnswer=!r.Model.IsAnswerPlainText,null==n.Score&&t&&r.autoGradeAnswer(n),n):null})).filter((function(n){return!!n}));var r=this.getResponseModelById(n.Id);return r&&((0,Q.QA)(r).updateWithNormalizedResponse(n),n=r),n},t.prototype.getResponseModelById=function(n){return c.H.Collection.getItemWithKeyFields(this.Model.ResponseModels,{Id:n})},t.prototype.gr=function(n){var t=this,e={QuestionCount:0,GradableQuestionCount:0,MathResponses:0,MathGradableResponses:0,TextResponses:0,TextGradableResponses:0,EmptyResponses:0,TotalLength:0};i.forEach(n.Answers,(function(n){var r=t.getQuestionById(n.QuestionId);if(r&&r.Model&&"Question.TextField"===r.Model.Type&&r.Model.IsMathQuiz){r.hasCorrectAnswers()?e.GradableQuestionCount++:e.QuestionCount++;var i=(0,u.Bl)(n.Answer);null!=i&&i.Answer?(e.TotalLength+=i.Answer.length,r.hasCorrectAnswers()?i.IsMath?e.MathGradableResponses++:e.TextGradableResponses++:i.IsMath?e.MathResponses++:e.TextResponses++):e.EmptyResponses++}}))},t.prototype.vr=function(){var n=this;this.formElementManager.adjustElementOrders();var e=[t.Schema.Questions,t.Schema.DescriptiveElements],r=this.rr;this.addRule({Name:"ElementOrder",InterestedFields:e,onChange:function(){r&&!r.isFormLoadingComplete()||n.formElementManager.adjustElementOrders()}})},Object.defineProperty(t,"Rules",{get:function(){if(!t.rules){var n=t.Schema;t.rules=[{Name:"DeserializeSettings",InterestedFields:[n.SerializedSettings],onChange:function(n){if(!n.BeingDeleted){var t=n.Master.Model.SerializedSettings||"{}",e=JSON.parse(t);n.Master.setData({Settings:e})}}},{Name:"DeserializePredefinedResponses",InterestedFields:[n.SerializedPredefinedResponses],onChange:function(n){if(!n.BeingDeleted){var t=n.Master.Model.SerializedPredefinedResponses||"[]",e=JSON.parse(t);n.Master.setData({PredefinedResponses:e})}}},{Name:"QuestionMediaProperties",InterestedFields:[n.Questions,n.DescriptiveElements],onChange:function(n){var t=n.Master.Model,e=c.H.convertToArray(n.Master.getSnapshot().Questions),r=c.H.convertToArray(n.Master.getSnapshot().DescriptiveElements);t.HasQuestionMedia=e.some((function(n){return!(!n.ImageInfo.ResourceUrl&&!n.VideoInfo.Url)}))||r.some((function(n){return!(!n.ImageInfo.ResourceUrl&&!n.VideoInfo.Url)}))}},{Name:"QuestionBranchValidity",InterestedFields:[n.Questions,n.DescriptiveElements],onChange:function(n){var e=n.Master.Model,r=!1;n.Master.isFieldReady(t.Schema.Questions)&&(r=c.H.convertToArray(n.Master.Model.Questions).some((function(n){return c.H.getObjectMasterFromModel(n).hasValidBranching()})));var i=!1;n.Master.isFieldReady(t.Schema.DescriptiveElements)&&(i=c.H.convertToArray(n.Master.Model.DescriptiveElements).some((function(n){return n.BranchInfo&&c.H.getObjectMasterFromModel(n.BranchInfo).isValid()})));e.HasValidBranching=r||i;var o=c.H.convertToArray(n.Master.getSnapshot().Questions);e.QuizQuestionsCount=o.filter((function(n){return n.IsQuiz})).length}}]}return t.rules},enumerable:!1,configurable:!0}),t}(c.H.createObjectMasterClass("FormMaster",K,(function(n,t){return n.getSyncBlocker().promise().then((function(){return new y(n,t)}))})))},42025:function(n,t,e){"use strict";e.d(t,{w:function(){return a}});var r=e(22224),i=e(76654),o=e(35532),u=e(84239),s=e(36316),a=function(){function n(n){this.formMaster=n}return Object.defineProperty(n,"QuestionOrderFloor",{get:function(){return 500},enumerable:!1,configurable:!0}),Object.defineProperty(n,"QuestionOrderDefaultStep",{get:function(){return 100},enumerable:!1,configurable:!0}),n.isDescriptiveElement=function(n){return"Question.ColumnGroup"===n},n.isSection=function(n){return"Question.ColumnGroup"===n},Object.defineProperty(n.prototype,"TopQuestionMasters",{get:function(){return r.filter(this.formMaster.Model.Questions,(function(n){return!n.GroupId})).map(i.H.getObjectMasterFromModel)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"HeaderTopQuestionMasters",{get:function(){var n=this.SectionMasters,t=n.length&&n[0].Model.Order;return t>0?this.Ir(null,t):this.TopQuestionMasters},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"HeaderQuestionMasters",{get:function(){var n=this.SectionMasters,t=n.length&&n[0].Model.Order;return t>0?this.Ir(null,t,!0):this.QuestionMasters},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"QuestionMasters",{get:function(){return i.H.convertToArray(this.formMaster.Model.Questions).map(i.H.getObjectMasterFromModel)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"DescriptiveElementMasters",{get:function(){return i.H.convertToArray(this.formMaster.Model.DescriptiveElements).map(i.H.getObjectMasterFromModel)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"SectionMasters",{get:function(){return r.filter(this.DescriptiveElementMasters,(function(t){return n.isDescriptiveElement(t.Model.Type)}))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"AllElementMasters",{get:function(){return this.getAllElements().map(i.H.getObjectMasterFromModel)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"TopElementMasters",{get:function(){return this.Cr(!0).map(i.H.getObjectMasterFromModel)},enumerable:!1,configurable:!0}),n.prototype.getQuestionById=function(n){var t=i.H.Collection.getItemWithKeyFields(this.formMaster.Model.Questions,{Id:n});return t&&(0,s.nb)(t)},n.prototype.getElementMasterById=function(n){return this.getQuestionById(n)||this.getDescriptiveElementMasterById(n)},n.prototype.getDescriptiveElementMasterById=function(n){var t=i.H.Collection.getItemWithKeyFields(this.formMaster.Model.DescriptiveElements,{Id:n});return t&&(0,o.To)(t)},n.prototype.findQuestionsInSection=function(n,t){if(n){var e=this.SectionMasters,i=r.indexOf(e,n);return i>=0?this.Ir(e[i].Model.Order,i+1n.Model.Order}))),null!==n&&(r=r.filter((function(t){return t.Model.Order>=n}))),r},n}()},9639:function(n,t,e){"use strict";e.d(t,{Fl:function(){return I},MC:function(){return b},V7:function(){return w},do:function(){return y},qW:function(){return S}});e(29269);var r=e(22224),i=e(9468),o=e(17891),u=e(76654),s=e(59198),a=e(99846),c=e(87578),f=e(45994),l=e(71683),h=e(94386),d=e(84239),m=e(71628),v={},p={},g=new f.T;function b(n){return w(n,!0)}function w(n,t,e){if(void 0===e&&(e=!1),n.Id)return y(n,e);if(t?(n.OwnerId=n.OwnerId||(0,i.PG)(),!n.OwnerId&&(0,c.nu)().Model.GroupMaster&&(n.OwnerId=(0,c.nu)().Model.GroupMaster.Model.id),(0,l.CR)((function(){(0,s.G7)("CustomerVoiceSharingV2AllProject")&&(n.OwnerId=(0,c.nu)().Model.CurrentProject.ADGroupId)})),n.OwnerTenantId=n.OwnerTenantId||(0,i.EO)()||(0,o.m1)().userInfo.TenantId):(n.OwnerId=n.OwnerId||(0,o.m1)().userInfo.UserId,n.OwnerTenantId=n.OwnerTenantId||(0,o.m1)().userInfo.TenantId),!n.OwnerId||!n.OwnerTenantId)throw new Error("Form OwnerId or OwnerTenantId cannot be null!");return function(n,t,e){var i=(0,m.Yn)().map(u.H.getFieldSchemaInfo).map((function(n){return n.Name})),o=new((0,c.mp)())(h.$.DesignTimeForm,{ExistingInDataSource:!1,InitialData:r.pick(n,i)},"Group"===t,e);return p[o.getInstanceId()]=o,o.existingOnServerSide().then((function(){v[o.Model.Id]=o})),g.trigger(o),o}(n,t?"Group":"User",e)}function S(n,t){var e=new((0,c.mp)())(h.$.DesignTimeForm,{ExistingInDataSource:!0,InitialData:n},t);return e.forceFieldsReady((0,m.fT)()),p[e.getInstanceId()]=e,g.trigger(e),e.Synchronizer.Model.CreationInProcess=!0,e}function y(n,t,e){void 0===e&&(e=!1);var i=v[n.Id];if(i&&!e){var o=u.H.convertToSourceData(n,d.z.Schema);return i.Synchronizer.onSourceDataReceived(o),i}var s=(0,a.MN)(n.Id);return(n=r.clone(n)).OwnerId=s.OwnerId,n.OwnerTenantId=s.OrgId,n.TableId=s.TableId,i=new((0,c.mp)())(h.$.DesignTimeForm,{ExistingInDataSource:!0,InitialData:n},s.IsGroupOwner,t),p[i.getInstanceId()]=i,v[n.Id]=i,g.trigger(i),i}function I(n){return v[n]}},71628:function(n,t,e){"use strict";e.d(t,{Bt:function(){return d},GD:function(){return l},KE:function(){return b},Yn:function(){return h},fT:function(){return v},od:function(){return p},pT:function(){return f},qI:function(){return m},uN:function(){return g}});var r,i,o=e(22224),u=e(71683),s=e(23188),a=e(84239),c=e(47937);function f(n){var t=a.z.Schema,e=[];return n.forEach((function(n){switch(n){case"Settings":case t.Settings:e.push(t.SerializedSettings);break;case"Modified":case t.Modified:e.push(t.ModifiedDate);break;case"Created":case t.Created:e.push(t.CreatedDate);break;case"ResponsesCount":case t.ResponsesCount:e.push(t.RowCount);break;case"PredefinedResponses":case t.PredefinedResponses:e.push(t.SerializedPredefinedResponses);break;case"Theme":case t.Theme:e.push(t.Background,t.OtherInfo);break;case"HeaderTheme":case t.HeaderTheme:e.push(t.HeaderBGImage,t.HeaderOtherInfo);break;default:d().covers(n)?e.push(t.OtherInfo):m().covers(n)?e.push(t.HeaderOtherInfo):e.push(n)}})),o.uniq(e)}function l(){var n=a.z.Schema,t=[n.Background,n.Description,n.Logo,n.LogoInfo,n.Questions,n.DescriptiveElements,n.Settings,n.SerializedSettings,n.SoftDeleted,n.Title,n.PrimaryCustomizedThemeColor,n.SecondaryCustomizedThemeColor,n.TertiaryCustomizedThemeColor,n.Theme,n.TrackingId,n.XlWorkbookId,n.ThankYouMessage,n.EmailReceiptEnabled,n.DataClassificationLabel,n.Type,n.DefaultLanguage,n.LocaleList,n.LocalizedResources,n.ReputationTier,n.MeetingId,n.FormsInsightsInfo,n.ProgressBarEnabled,n.FormsProRTTitle,n.FormsProRTDescription,n.FillOutTimeLimit,n.OtherInfo];return(0,u.CR)((function(){t.push(n.BusinessCdsId,n.BusinessCdsRegion,n.LastEmbedConfig,n.FormsProBranchRules,n.MfpBranchingData,n.CVSimplifiedBranchingSupported,n.IsDefaultCds,n.PipesDetails,n.FooterText,n.ConditionalThankyouMessage,n.CustomDomainSenderEmail,n.CVDefaultLanguage,n.OverSurveySettingEnabled,n.InvitesCoolingPeriod,n.ResponseThresholdCount,n.InviteExpiryDays,n.OwnerUserType,n.ProjectId,n.SurveyFont,n.HeaderFont,n.Alias,n.ProjectGroupId,n.HeaderEnabled,n.CustomCSSInLineHeaderToggle,n.HeaderAltText,n.HeaderImageFocalPointEnabled,n.HeaderBGImage,n.HeaderTheme,n.BackGroundPositionX,n.BackGroundPositionY,n.BackGroundPositionZ,n.ThemeHeaderBackgroundImageURL,n.LogoPositionX,n.LogoPositionY,n.TitlePositionX,n.TitlePositionY,n.LogoSize,n.FileUploadStorage,n.SurveyLastModifiedAt)})),t}function h(){return l().concat([a.z.Schema.OwnerId,a.z.Schema.OwnerTenantId,a.z.Schema.CollectionId])}function d(){return r||(r=new s.n([a.z.Schema.PrimaryCustomizedThemeColor,a.z.Schema.SecondaryCustomizedThemeColor,a.z.Schema.TertiaryCustomizedThemeColor,a.z.Schema.Theme,a.z.Schema.LogoInfo,a.z.Schema.CreatedFromOneDrive,a.z.Schema.TemplateId])),r}function m(){return i||(i=new s.n([a.z.Schema.HeaderTheme,a.z.Schema.BackGroundPositionX,a.z.Schema.BackGroundPositionY,a.z.Schema.BackGroundPositionZ,a.z.Schema.ThemeHeaderBackgroundImageURL,a.z.Schema.LogoPositionX,a.z.Schema.LogoPositionY,a.z.Schema.TitlePositionX,a.z.Schema.TitlePositionY,a.z.Schema.LogoSize])),i}function v(){var n=a.z.Schema,t=[n.Title,n.ModifiedDate,n.CreatedDate,n.MeetingId,n.FormsInsightsInfo,n.OwnerId,n.OwnerTenantId,n.Description,n.Questions,n.DescriptiveElements,n.Permissions,n.ResponderPermissions,n.PermissionTokens,n.ResponsesCount,n.Settings,n.Theme,n.Logo,n.LogoInfo,n.Background,n.XlWorkbookId,n.XlExportingTag,n.XlFileUnsynced,n.XlUnsyncedReason,n.Category,n.TrackingId,n.PredefinedResponses,n.ThankYouMessage,n.EmailReceiptEnabled,n.Flags,n.ReputationTier,n.DataClassificationLabel,n.Type,n.DefaultLanguage,n.LocaleList,n.LocalizedResources,n.ProgressBarEnabled,n.FormsProRTTitle,n.FormsProRTDescription];return(0,u.CR)((function(){t.push(n.BusinessCdsId,n.BusinessCdsRegion,n.PipesDetails,n.FormsProBranchRules,n.MfpBranchingData,n.CVSimplifiedBranchingSupported,n.FooterText,n.ConditionalThankyouMessage,n.CustomCssFileName,n.CustomDomainSenderEmail,n.CVDefaultLanguage,n.OverSurveySettingEnabled,n.InvitesCoolingPeriod,n.Id,n.ResponseThresholdCount,n.InviteExpiryDays,n.OwnerUserType,n.ProjectId,n.SurveyFont,n.HeaderFont,n.Alias,n.ShortUrl,n.ProjectName,n.ProjectGroupId,n.FileUploadStorage,n.SurveyPermanentId,n.FlowTemplateId,n.InitialFormId,n.InitialFormOwnerId,n.HeaderEnabled,n.CustomCSSInLineHeaderToggle,n.HeaderAltText,n.HeaderImageFocalPointEnabled,n.HeaderBGImage,n.BackGroundPositionX,n.BackGroundPositionY,n.BackGroundPositionZ,n.ThemeHeaderBackgroundImageURL,n.LogoPositionX,n.LogoPositionY,n.TitlePositionX,n.TitlePositionY,n.LogoSize,n.HeaderTheme,n.EmailTemplatesMapping,n.SurveyLastModifiedAt)})),t}function p(){var n=a.z.Schema,t=[n.Title,n.ModifiedDate,n.Description,n.Settings,n.Theme,n.Questions,n.DescriptiveElements,n.Logo,n.LogoInfo,n.Background,n.Category,n.PredefinedResponses,n.ThankYouMessage,n.EmailReceiptEnabled,n.DataClassificationLabel,n.Type,n.DefaultLanguage,n.LocaleList,n.ReputationTier,n.ProgressBarEnabled,n.TenantSwitches,n.PrivacyUrl,n.FormsProRTTitle,n.FormsProRTDescription];return(0,u.CR)((function(){t.push(n.CustomCssFileName,n.FooterText,n.ConditionalThankyouMessage,n.CVDefaultLanguage,n.FormsProBranchRules,n.MfpBranchingData,n.CVSimplifiedBranchingSupported,n.PipesDetails,n.ResponseThresholdCount,n.InviteExpiryDays,n.OwnerUserType,n.SurveyFont,n.HeaderFont,n.HeaderEnabled,n.CustomCSSInLineHeaderToggle,n.HeaderAltText,n.HeaderBGImage,n.BackGroundPositionX,n.BackGroundPositionY,n.BackGroundPositionZ,n.ThemeHeaderBackgroundImageURL,n.LogoPositionX,n.LogoPositionY,n.TitlePositionX,n.TitlePositionY,n.LogoSize,n.HeaderTheme,n.ProjectGroupId,n.FileUploadStorage,n.SurveyLastModifiedAt)})),t}function g(){var n=a.z.Schema,t=[n.Title,n.ModifiedDate,n.OwnerId,n.OwnerTenantId,n.Description,n.Questions,n.DescriptiveElements,n.Settings,n.Theme,n.Logo,n.LogoInfo,n.Background,n.XlWorkbookId,n.Category,n.Type,n.ProgressBarEnabled,n.FormsProRTTitle,n.FormsProRTDescription];return(0,u.CR)((function(){t.push(n.ResponseThresholdCount,n.InviteExpiryDays,n.OwnerUserType,n.HeaderEnabled,n.CustomCSSInLineHeaderToggle,n.HeaderAltText,n.HeaderImageFocalPointEnabled,n.HeaderBGImage,n.BackGroundPositionX,n.BackGroundPositionY,n.BackGroundPositionZ,n.ThemeHeaderBackgroundImageURL,n.LogoPositionX,n.LogoPositionY,n.TitlePositionX,n.TitlePositionY,n.LogoSize,n.HeaderTheme,n.SurveyFont,n.HeaderFont,n.SurveyLastModifiedAt,n.CVSimplifiedBranchingSupported)})),t}function b(n){var t,e;return n.InitialData&&((n.InitialData.SerializedSettings||n.InitialData.Settings)&&(t=t||{},n.InitialData.SerializedSettings?t.Settings=JSON.parse(n.InitialData.SerializedSettings):t.SerializedSettings=c.W.serialize(n.InitialData.Settings)),(n.InitialData.SerializedPredefinedResponses||n.InitialData.PredefinedResponses)&&(t=t||{},n.InitialData.SerializedPredefinedResponses?t.PredefinedResponses=JSON.parse(n.InitialData.SerializedPredefinedResponses):t.SerializedPredefinedResponses=(e=n.InitialData.PredefinedResponses)&&e.length>0?JSON.stringify(e):null)),t&&((n=o.clone(n)).InitialData=o.extend({},n.InitialData,t)),n}},47937:function(n,t,e){"use strict";e.d(t,{W:function(){return f}});var r,i=e(34629),o=e(76654),u=e(80974),s=e(33589),a=e(64418);!function(n){n[n.NotStarted=1]="NotStarted",n[n.Opened=2]="Opened",n[n.Expired=3]="Expired",n[n.Closed=4]="Closed"}(r||(r={}));var c={LockGivenQuestionsEndDisplayOrder:u.EY.number(),LockGivenQuestionsStartDisplayOrder:u.EY.number(),FormClosed:u.EY.boolean(),FormClosedMessage:u.EY.string(),FormClosedMessageChanged:u.EY.boolean(),TimerEnabled:u.EY.boolean(),TimerEnabledStart:u.EY.boolean(),TimerEnabledEnd:u.EY.boolean(),StartTime:u.EY.string(),EndTime:u.EY.string(),RequiresUniqueResponse:u.EY.boolean(),IsAnonymous:u.EY.boolean(),NotRecordIdentity:u.EY.boolean(),ShuffleAllQuestions:u.EY.boolean(),ShuffleQuestionOrder:u.EY.boolean(),ShowGradedResults:u.EY.boolean(),RespondInAppOnly:u.EY.boolean(),AllowCopy:u.EY.boolean(),ShareToken:u.EY.string(),ManualGradingEnabled:u.EY.boolean(),IsQuizMode:u.EY.boolean(),EmailNotification:u.EY.boolean(),AllowResponderGetAllResponses:u.EY.boolean(),ShowQuestionNumbers:u.EY.boolean(),IsEmailableEntityCreationEnabled:u.EY.boolean(),CDSSyncQuestionResponses:u.EY.boolean(),OverSurveySettingEnabled:u.EY.boolean(),InvitesCoolingPeriod:u.EY.number(),EmailableEntity:u.EY.string(),HideLanguageDropdown:u.EY.boolean(),PauseAndResumeSurvey:u.EY.boolean(),RecordPartialResponse:u.EY.number(),DisableSubmitAnother:u.EY.boolean(),PermissionForResponder:u.EY.boolean()},f=function(n){function t(e){var r=n.call(this,e)||this;return r.addRule({Name:"updateClosedMessage",InterestedFields:[r.Schema.FormClosed],onChange:t.updateClosedMessage}),r.addRule({Name:"updateAllowCopy",InterestedFields:[r.Schema.ShareToken],onChange:t.updateAllowCopy}),r}return(0,i.C6)(t,n),t.serialize=function(n){var t=o.H.convertToSourceData(n,this.Schema),e=0;return Object.keys(t).forEach((function(n){null==t[n]?delete t[n]:++e})),e>0?JSON.stringify(t):null},t.prototype.getFormStatus=function(){var n=this.Model;if(n.FormClosed)return r.Closed;if(n.TimerEnabled){var t=Date.now();if(null!=n.StartTime&&Date.parse(n.StartTime)>t)return r.NotStarted;if(null!=n.EndTime&&Date.parse(n.EndTime)t.MaxAnswerLength?h.FF.MultiChoiceQuestionLengthLimitError:h.FF.Success:h.FF.RequiredError},t.prototype.isEmpty=function(n){return this.Model.ChoiceType===h.IG.SingleChoice?!n:!n||"[]"===n},t.prototype.getTypeDisplayName=function(){switch(this.Model.ChoiceType){case h.IG.SingleChoice:return(0,a.qn)().QuestionType_SingleChoice;case h.IG.MultiChoice:return(0,a.qn)().QuestionType_MultiChoice;default:throw Error("Choice Question Type Not Supported")}},t.prototype.supportsQuestionLevelBranching=function(){return this.Model.ChoiceType!==h.IG.SingleChoice},t.prototype.supportsChoiceLevelBranching=function(){return this.Model.ChoiceType===h.IG.SingleChoice},t.prototype.getSnapshotWithoutBranchInfo=function(){var t=n.prototype.getSnapshotWithoutBranchInfo.call(this);return t.Choices=u.H.convertToArray(t.Choices).map((function(n){return delete(n=i.clone(n)).BranchInfo,n})),t},t.prototype.resetBranchInfo=function(){var t=this;n.prototype.resetBranchInfo.call(this),u.H.convertToArray(this.Model.Choices).filter((function(n){return t.getBranchInfoMaster(n.BranchInfo).resetToDefault()})),this.getBranchInfoMaster(this.Model.BranchInfoForOtherChoice).resetToDefault()},t.prototype.insertChoice=function(n,t){var e=this.Model.Choices,r=i.find(e,(function(n){return n.IsGenerated}));if(!r||t&&""!==r.Description){var o=u.H.Collection.addItems(e,[{Description:n,IsMathOption:t}]);r=o[0]}else{var s=u.H.getObjectMasterFromModel(r);(0,c.qf)((function(){s.bulkEdit((function(){r.Description=n,r.IsGenerated=null,r.IsMathOption=t}))}),(function(){var i=[];i.push(r);var o=u.H.Collection.addItems(e,[{IsGenerated:null,Description:n,IsMathOption:t}]);e=u.H.Collection.deleteItems(e,i),r=o[0]}))}return r},t.prototype.hasCorrectAnswers=function(n){return n?i.some(n.IsAnswerKeys):i.some(this.Model.Choices,(function(n){return n.IsAnswerKey}))},t.prototype.isCorrectAnswer=function(n){var t=m(n,this.Model).SelectedOptions.map((function(n){return(0,o.OX)(n)})).sort(),e=u.H.convertToArray(this.Model.Choices).filter((function(n){return n.IsAnswerKey})).map((function(n){return n.Description})).map((function(n){return(0,o.OX)(n)})).sort();return i.isEqual(e,t)},t.prototype.justifyQuestionInfo=function(){var n=this.Master.Model;if(null==n.OptionDisplayStyle){var e=n.ChoiceType===h.IG.SingleChoice&&!n.IsMathQuiz&&!n.AllowOtherAnswer&&n.Choices.length>=t.MinimumOptionsForDropDown;n.OptionDisplayStyle=e?h.fC.Dropdown:h.fC.ListAll}},t.prototype.showAsDropdown=function(){return this.Master.Model.OptionDisplayStyle===h.fC.Dropdown},t.prototype.setAnswerKey=function(n,t){var e=this;this.Master.bulkEdit((function(){n.IsAnswerKey=t,e.Model.ChoiceType===h.IG.SingleChoice&&n.IsAnswerKey&&u.H.convertToArray(e.Model.Choices).forEach((function(t){t.IsAnswerKey&&t!==n&&(t.IsAnswerKey=!1)}))}))},t.prototype.createQuizResult=function(n){if(this.Model.IsQuiz){var t=u.H.convertToArray(this.Model.Choices);return t.some((function(n){return n.IsAnswerKey}))?{IsAnswerCorrect:this.isCorrectAnswer(n),AnswerHints:t.map((function(n){return n.AnswerHint})),IsAnswerKeys:t.map((function(n){return n.IsAnswerKey})),Choices:t.map((function(n){return n.Description})),GradingBasis:this.Model.GradingBasis}:void 0}},t.prototype.autoGradeAnswer=function(t){if(i.some(this.Model.Choices,(function(n){return n.IsAnswerKey}))){var e=this.Model.Point?this.Model.Point:0;t.Score=this.isCorrectAnswer(t.Answer)?e:0,t.IsAutoGraded=!0}else n.prototype.autoGradeAnswer.call(this,t)},t.prototype.autoGradeWithQuizResult=function(n,t){return t?t.IsAnswerCorrect?this.Model.Point:0:null},t.prototype.getBranchingResult=function(t){var e=this;if(this.Model.ChoiceType!==h.IG.SingleChoice)return n.prototype.getBranchingResult.call(this,t);var r=u.H.convertToArray(this.Model.Choices),o=r.filter((function(n){return n.BranchInfo&&u.H.getObjectMasterFromModel(n.BranchInfo).isValid()})),s=u.H.getObjectMasterFromModel(this.Model.BranchInfoForOtherChoice);if(0===o.length&&!s.isValid())return n.prototype.getBranchingResult.call(this,t);var a,c=r.filter((function(n){return e.Mr(t,n)})),f=i.intersection(c,o);f.length>0||c.length>0?a=(f[0]||c[0]).BranchInfo:this.isEmpty(t)||(a=this.Model.BranchInfoForOtherChoice);return a?this.getBranchInfoMaster(a).getBranchingResult():{Type:"Pending"}},t.prototype.Mr=function(n,t){return t.Description===n},t.MinimumOptionsForDropDown=7,t.MaxAnswerLength=4e3,t}(l.q);function m(n,t){var e=t.ChoiceType===h.IG.SingleChoice;if(null!=n){var r=u.H.convertToArray(t.Choices).map((function(n){return n.Description}));if(!e||!t.AllowOtherAnswer&&!i.contains(r,n))try{var o=JSON.parse(n);if(Array.isArray(o)){if(!o.some((function(n){return!i.isString(n)})))return{IsSingleChoiceAnswer:!1,IsLegacyChoiceAnswer:!1,SelectedOptions:o}}else if(i.isObject(o)){var s=i.values(o);if(!s.some((function(n){return!i.isString(n)})))return{IsSingleChoiceAnswer:e&&s.length<=1,IsLegacyChoiceAnswer:!0,SelectedOptions:s}}}catch(n){}}return{IsSingleChoiceAnswer:e,IsLegacyChoiceAnswer:!1,SelectedOptions:null==n?[]:[n]}}},42556:function(n,t,e){"use strict";e.d(t,{q:function(){return o}});var r=e(22224),i=e(76654),o=function(){function n(n){this.Ar=n}return n.supportMobileDesign=function(n){return!1},n.hasInvalidSettingOnMobile=function(n){return n.ShowSubtitle||!!n.ImageInfo.ResourceUrl||!!n.VideoInfo.Url},Object.defineProperty(n.prototype,"Master",{get:function(){return this.Ar},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Model",{get:function(){return this.Ar.Model},enumerable:!1,configurable:!0}),n.prototype.isEmpty=function(n){return!n},n.prototype.justifyNumberBoundaries=function(){throw Error("to be overridden")},n.prototype.supportsQuestionLevelBranching=function(){return!0},n.prototype.supportsChoiceLevelBranching=function(){return!1},n.prototype.getBranchedResult=function(n,t){var e=this.getBranchingResult(n);if("Next"===e.Type)e.TargetElement=t;return e},n.prototype.isNumberType=function(){return!1},n.prototype.getNumberValidationErrorMessage=function(n){throw Error("to be overridden")},n.prototype.getValidationErrorMessage=function(){throw Error("to be overridden")},n.prototype.getSnapshotWithoutBranchInfo=function(){var n=r.clone(this.Master.getSnapshot());return delete n.BranchInfo,delete n.BranchInfoForOtherChoice,n},n.prototype.resetBranchInfo=function(){this.getBranchInfoMaster(this.Model.BranchInfo).resetToDefault()},n.prototype.insertChoice=function(n,t){},n.prototype.getNormalizedAnswer=function(n){return n},n.prototype.hasAnswer=function(){return!0},n.prototype.hasCorrectAnswers=function(n){return!1},n.prototype.isCorrectAnswer=function(n){return!1},n.prototype.setAnswerKey=function(n,t){},n.prototype.createQuizResult=function(n){return null},n.prototype.autoGradeAnswer=function(n){var t=!this.Model.Point,e=null==n.Answer||""===n.Answer;(t||e)&&(n.Score=0,n.IsAutoGraded=!0)},n.prototype.autoGradeWithQuizResult=function(n,t){var e=this.Master.Parent;return(e&&e.Model||this.Model).Point||(null==n||""===n)?0:null},n.prototype.serializeAnswer=function(n){return n},n.prototype.deserializeAnswer=function(n){return n},n.prototype.justifyQuestionInfo=function(){},n.prototype.showAsDropdown=function(){},n.prototype.redressGradingBasis=function(){},n.prototype.getBranchInfoMaster=function(n){return i.H.getObjectMasterFromModel(n)},n.prototype.getBranchingResult=function(n){return this.getBranchInfoMaster(this.Model.BranchInfo).getBranchingResult()},n}()},36316:function(n,t,e){"use strict";e.d(t,{IG:function(){return x},lQ:function(){return O},fC:function(){return A},VL:function(){return V},db:function(){return q},FF:function(){return M},VG:function(){return D},b:function(){return L},nb:function(){return B}});var r=e(34629),i=e(22224),o=e(59399),u=e(69578),s=e(76654),a=e(38290),c=e(80974),f=e(59198),l=e(46976),h=e(87578),d=e(14051),m=e(71683),v=e(97410),p=e(41895),g=e(75848),b=e(331),w=e(46519),S=e(37553),y=e(8574),I=e(23188),F=e(84239),C=e(36805),_=e(15784),k=e(64418),P=e(94386),T=[],N=function(n){for(;T.shift()!==n;);},R=function(n){return n.then((function(t){return N(n),t})).catch((function(t){throw N(n),t}))},E=function(){function n(n,t){this.Vr=n,this.Te=(0,k.UW)(this.Vr.Form)}return Object.defineProperty(n.prototype,"FormId",{get:function(){return this.Vr.Form.Model.Id},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"QuestionId",{get:function(){return this.Vr.Model.Id},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"QuestionType",{get:function(){return this.Vr.Model.Type},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ExtraQosData",{get:function(){var n=this.Vr.Form;return{WithSection:n.isFieldReady(n.Schema.DescriptiveElements)&&n.hasSection(),FormType:n.isFieldReady(n.Schema.Type)&&null!==n.Model.Type?n.Model.Type:""}},enumerable:!1,configurable:!0}),n.prototype.add=function(n){var t=this;if(this.Vr.Form.SyncContext===P.$.DesignTimeForm){var e=this.Vr.ParentQuestionMaster;return e?e.Synchronizer.existingInDataSource().then((function(){return t.Ur(n)})):this.Ur(n)}(0,a.$8)("Trying to create a question without design type.")},n.prototype.delete=function(n){var t=this;this.Vr.Form.SyncContext!==P.$.DesignTimeForm&&(0,a.$8)("Trying to delete a question without design type.");var e=this.Vr.ParentQuestionMaster;if(e&&e.Deleted)return Promise.resolve();var r=this.Vr.SubQuestionMasters.map((function(n){return n.Synchronizer.flush()}));return Promise.all(r).then((function(){return t.Vr.createSyncJob((function(){return t.Te.deleteFormQuestion(t.FormId,n.id,t.QuestionType,t.ExtraQosData)}))})).then(null,(function(n){if(n&&621===n.innerCode)return Promise.resolve();throw n}))},n.prototype.query=function(n){(0,a.$8)("No scenario to call this method currently.")},n.prototype.update=function(n,t){var e=this;if((0,m.CR)((function(){return!0}))&&this.Vr.Form.IsSampleForm)return Promise.resolve();if(this.Vr.Form.SyncContext!==P.$.DesignTimeForm)return Promise.resolve();if("id"in n){var r=n.id,i=t.ValuesBefore.id;(0,v.jg)("DataSourceUpdatingQuestionId",{newId:r,oldId:i})}if(null===n.allowMultipleValues)try{throw Error("allowMultipleValues null error")}catch(n){(0,v.jg)("DataSourceUpdatingQuestionNullAllowMultipleValues",{stack:n.stack})}return this.Vr.createUploadSyncJob((function(){return e.Te.updateFormQuestion(e.FormId,e.QuestionId,e.QuestionType,n,e.ExtraQosData)}))},n.prototype.Ur=function(n){var t=this,e=this.Vr.createSyncJob((function(){return t.zr(n)})).then((function(n){var t=n;return t.FileUploadSPOInfo&&(n.fileUploadSPOInfo={driveId:t.FileUploadSPOInfo.DriveId,errorCode:t.FileUploadSPOInfo.ErrorCode,folderId:t.FileUploadSPOInfo.FolderId,linkInfo:t.FileUploadSPOInfo.linkInfo,anonymousLinkInfo:t.FileUploadSPOInfo.anonymousLinkInfo}),n}));return e.then((function(n){"id"in n&&n.id!==t.QuestionId&&(0,v.jg)("ChangedIdFromServerSide",{formId:t.FormId,newId:n.id,oldId:t.QuestionId})})),e},n.prototype.zr=function(n){var t=this;if("Question.FileUpload"===n.type){if(T.length>0){var e=T[T.length-1].then((function(){return t.Te.createFormQuestion(t.FormId,n,t.ExtraQosData)}),(function(){return t.Te.createFormQuestion(t.FormId,n,t.ExtraQosData)}));return T.push(e),R(e)}var r=this.Te.createFormQuestion(this.FormId,n,this.ExtraQosData);return T.push(r),R(r)}return this.Te.createFormQuestion(this.FormId,n,this.ExtraQosData)},n}();var L,O,x,D,M,A,V,U,z={Id:c.EY.string({IsKeyField:!0,SourceFieldName:"id"}),DefaultValue:c.EY.string({SourceFieldName:"defaultValue"}),ImageInfo:c.EY.fromMasterClass(h.Ti,{SourceFieldName:"image"}),ImageSettings:c.EY.fromMasterClass(h.W1,{IsLocalField:!0}),Order:c.EY.number({SourceFieldName:"order"}),QuestionInfo:c.EY.string({SourceFieldName:"questionInfo"}),Required:c.EY.boolean({SourceFieldName:"required"}),Subtitle:c.EY.string({SourceFieldName:"subtitle"}),CombinedTitle:c.EY.string({SourceFieldName:"title"}),Type:c.EY.reference({SourceFieldName:"type"}),GroupId:c.EY.string({SourceFieldName:"groupId"}),ShowSubtitle:c.EY.boolean({IsLocalField:!0}),Hidden:c.EY.boolean({IsLocalField:!0}),Visible:c.EY.boolean({IsLocalField:!0}),FormsProRTQuestionTitle:c.EY.string({SourceFieldName:"formsProRTQuestionTitle"}),FormsProCalculateSentiment:c.EY.boolean({IsLocalField:!0}),FormsProRTSubtitle:c.EY.string({SourceFieldName:"formsProRTSubtitle"}),FormsProEnableAnswerTag:c.EY.boolean({IsLocalField:!0}),FormsProAnswerTag:c.EY.string({IsLocalField:!0}),FormsProAnswerTagHasError:c.EY.boolean({IsLocalField:!0}),Title:c.EY.string({IsLocalField:!0}),BranchInfo:c.EY.fromMasterClass((function(){return p.R}),{IsLocalField:!0}),IntegratedSavingState:c.EY.reference({IsLocalField:!0}),SavingState:c.EY.reference({IsLocalField:!0}),IsQuiz:c.EY.boolean({SourceFieldName:"isQuiz"}),GradingBasis:c.EY.string({IsLocalField:!0}),Point:c.EY.number({IsLocalField:!0}),AllowMultipleValues:c.EY.boolean({SourceFieldName:"allowMultipleValues"}),AllowOtherAnswer:c.EY.boolean({IsLocalField:!0}),BranchInfoForOtherChoice:c.EY.fromMasterClass((function(){return p.R}),{IsLocalField:!0}),FormsProIsFileUploaded:c.EY.boolean({IsLocalField:!0}),FormsProChoiceLimits:c.EY.boolean({IsLocalField:!0}),FormsProNumberOfSelections:c.EY.number({IsLocalField:!0}),FormsProOptionsLayout:c.EY.enumeration((function(){return V}),{IsLocalField:!0}),FormsProOtherChoice:c.EY.create({Description:c.EY.string(),IsDefault:c.EY.boolean(),FormsProDisplayRTText:c.EY.string()},{IsLocalField:!0}),FormsProRandomizationType:c.EY.enumeration((function(){return S.E}),{IsLocalField:!0}),FormsProNumberOfRandomizationOptions:c.EY.number({IsLocalField:!0}),OptionDisplayStyle:c.EY.enumeration((function(){return A}),{IsLocalField:!0}),ChoiceGroup:c.EY.collectionOf((function(){return _.S}),{SourceFieldName:"choices"}),Choices:c.EY.collectionOf({Description:c.EY.string(),BranchInfo:c.EY.fromMasterClass((function(){return p.R})),IsAnswerKey:c.EY.boolean(),AnswerHint:c.EY.string(),IsGenerated:c.EY.boolean(),IsMathOption:c.EY.boolean(),FormsProDisplayRTText:c.EY.string(),ImageId:c.EY.string()},{IsLocalField:!0}),ChoiceType:c.EY.reference({IsLocalField:!0}),Hint:c.EY.string({IsLocalField:!0}),ShuffleOptions:c.EY.boolean({IsLocalField:!0}),Length:c.EY.number({IsLocalField:!0}),RatingShape:c.EY.enumeration((function(){return D}),{IsLocalField:!0}),LeftDescription:c.EY.string({IsLocalField:!0}),RightDescription:c.EY.string({IsLocalField:!0}),FormsProRTLeftDescription:c.EY.string({IsLocalField:!0}),FormsProRTRightDescription:c.EY.string({IsLocalField:!0}),ShowRatingLabel:c.EY.boolean({IsLocalField:!0}),MinRating:c.EY.number({IsLocalField:!0}),FormsProSmileyList:c.EY.string({IsLocalField:!0}),Multiline:c.EY.boolean({IsLocalField:!0}),IsNumber:c.EY.boolean({IsLocalField:!0}),HasTFRestrictionForPro:c.EY.boolean({IsLocalField:!0}),Placeholder:c.EY.string({IsLocalField:!0}),NumberValidationRule:c.EY.enumeration((function(){return O}),{IsLocalField:!0}),FormsProValidationType:c.EY.enumeration((function(){return L}),{IsLocalField:!0}),NumberMinBoundary:c.EY.string({IsLocalField:!0}),NumberMaxBoundary:c.EY.string({IsLocalField:!0}),FormsProCustomRegEx:c.EY.string({IsLocalField:!0}),FormsProCustomPlaceholder:c.EY.string({IsLocalField:!0}),Date:c.EY.boolean({IsLocalField:!0}),Time:c.EY.boolean({IsLocalField:!0}),FileUploadSPOInfo:c.EY.create({anonymousLinkInfo:c.EY.string(),driveId:c.EY.string(),folderId:c.EY.string(),errorCode:c.EY.string(),linkInfo:c.EY.string()},{SourceFieldName:"fileUploadSPOInfo"}),FileTypes:c.EY.create({Word:c.EY.boolean(),Excel:c.EY.boolean(),PowerPoint:c.EY.boolean(),PDF:c.EY.boolean(),Image:c.EY.boolean(),Video:c.EY.boolean(),Audio:c.EY.boolean()},{IsLocalField:!0}),MaxFileCount:c.EY.number({IsLocalField:!0}),MaxFileSize:c.EY.number({IsLocalField:!0}),HasSpecificFileType:c.EY.boolean({IsLocalField:!0}),CoAuthors:c.EY.collectionOf(c.EY.reference(),{IsLocalField:!0}),IsMathQuiz:c.EY.boolean({IsLocalField:!0}),IsPlainTextInMathField:c.EY.boolean({IsLocalField:!0}),IsAnswerPlainText:c.EY.boolean({IsLocalField:!0}),IsMathInputDefault:c.EY.boolean({IsLocalField:!0}),InputSwitcherDisabled:c.EY.boolean({IsLocalField:!0}),MathTemplateID:c.EY.number({IsLocalField:!0}),MathAriaLabels:c.EY.collectionOf(c.EY.string(),{IsLocalField:!0}),LastMathMLFormula:c.EY.string({IsLocalField:!0}),VideoInfo:c.EY.create({Url:c.EY.string(),Title:c.EY.string(),Author:c.EY.string(),Thumbnail_url:c.EY.string(),OriginalWidth:c.EY.number(),OriginalHeight:c.EY.number(),ShowWarningBar:c.EY.boolean()},{IsLocalField:!0}),TrackingId:c.EY.string({SourceFieldName:"trackingId"}),QuestionTagForIntelligence:c.EY.string({SourceFieldName:"questionTagForIntelligence"}),InsightsInfo:c.EY.string({SourceFieldName:"insightsInfo"}),IsFromSuggestion:c.EY.boolean({SourceFieldName:"isFromSuggestion"}),SuspiciousEvidence:c.EY.number({IsLocalField:!0}),CascadeLevel:c.EY.number({SourceFieldName:"cascadeLevel"}),CascadeFileName:c.EY.string({SourceFieldName:"cascadeFileName"}),CascadeChoiceGroup:c.EY.collectionOf(c.EY.reference(),{IsLocalField:!0})};!function(n){n[n.Number=0]="Number",n[n.Email=1]="Email",n[n.Custom=2]="Custom"}(L||(L={})),function(n){n[n.None=0]="None",n[n.Greater=1]="Greater",n[n.GreaterOrEqual=2]="GreaterOrEqual",n[n.Less=3]="Less",n[n.LessOrEqual=4]="LessOrEqual",n[n.Equal=5]="Equal",n[n.NotEqual=6]="NotEqual",n[n.Between=7]="Between",n[n.NotBetween=8]="NotBetween",n[n.Max=9]="Max"}(O||(O={})),function(n){n[n.SingleChoice=1]="SingleChoice",n[n.MultiChoice=2]="MultiChoice"}(x||(x={})),function(n){n[n.Number=0]="Number",n[n.Star=1]="Star",n[n.Smiley=2]="Smiley",n[n.CheckMark=3]="CheckMark",n[n.Flag=4]="Flag",n[n.Heart=5]="Heart",n[n.Lightbulb=6]="Lightbulb",n[n.Ribbon=7]="Ribbon",n[n.SmileFace=8]="SmileFace",n[n.ThumbLike=9]="ThumbLike",n[n.Trophy=10]="Trophy"}(D||(D={})),function(n){n[n.Success=0]="Success",n[n.RequiredError=1]="RequiredError",n[n.NumberValidationError=2]="NumberValidationError",n[n.QuizWrongChoiceError=3]="QuizWrongChoiceError",n[n.MathLengthError=4]="MathLengthError",n[n.MultiChoiceQuestionLengthLimitError=5]="MultiChoiceQuestionLengthLimitError",n[n.RegExValidationError=6]="RegExValidationError"}(M||(M={})),function(n){n[n.Dropdown=0]="Dropdown",n[n.ListAll=1]="ListAll"}(A||(A={})),function(n){n[n.Vertical=0]="Vertical",n[n.Horizontal=1]="Horizontal"}(V||(V={})),function(n){n[n.Editing=0]="Editing",n[n.Preview=1]="Preview"}(U||(U={}));z.Choices[0],z.ChoiceGroup[0];function B(n){return s.H.getObjectMasterFromModel(n)}var q=function(n){function t(e){var r,o,c=this,f=new u.z0;return e.InitialData?(t.resolveQuestionNullTypeIssue(e.InitialData),(e=i.clone(e)).InitialData=i.clone(e.InitialData),void 0!==e.InitialData.CombinedTitle?(r=e.InitialData,(o=r.CombinedTitle)&&(o=o.split("⁣")[0]),r.Title=o):function(n){if(n.IsMathQuiz&&n.Subtitle){var t=n.Title||"";n.CombinedTitle=t+"⁣"+n.Subtitle}else n.CombinedTitle=n.Title}(e.InitialData)):(0,a.$8)("Question model should created with initial data."),(c=n.call(this,e,{MasterReady:f.promise(),Scheduler:new g._(t.name)})||this).fieldsReady([t.Schema.ChoiceGroup]).then((function(){s.H.Collection.setComparer(c.Model.ChoiceGroup,(function(n,t){return n.Order-t.Order}));var n=s.H.getCollectionMasterFromModel(c.Model.ChoiceGroup);(0,C.RM)(n,n.Schema[0].SavingState,(function(n){var t=[c.Model.SavingState,n];c.Model.IntegratedSavingState=(0,C.Rr)(t)}))})),c.Re(e),(0,w.ce)(c,t.Schema.ImageInfo,t.Schema.ImageSettings),c.qr(e),c.redressGradingBasis(),c.coAuthorTimers={},c.initializing=f,c}return(0,r.C6)(t,n),Object.defineProperty(t.prototype,"Form",{get:function(){return this.Parent.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ImageInfoMaster",{get:function(){return(0,b.og)(this.Model.ImageInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ImageSettingsMaster",{get:function(){return(0,w.rE)(this.Model.ImageSettings)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ParentQuestionMaster",{get:function(){if(!this.isFieldReady(this.Schema.GroupId))return null;var n=this.Model.GroupId;return n&&this.Form.getQuestionById(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SubQuestionMasters",{get:function(){var n=this;return this.Form.FormElementManager.QuestionMasters.filter((function(t){return t.Model.GroupId===n.Model.Id}))},enumerable:!1,configurable:!0}),t.prototype.isFieldReady=function(e){return e=t.getSourceFields([e])[0],n.prototype.isFieldReady.call(this,e)},t.prototype.ensureFieldsReady=function(e){return n.prototype.ensureFieldsReady.call(this,t.getSourceFields(e))},t.prototype.fieldsReady=function(e){return n.prototype.fieldsReady.call(this,t.getSourceFields(e))},t.prototype.hasValidVideoUrl=function(){return(0,d.HP)()?this.Le()&&(0,o.Ns)(this.Model.VideoInfo.Url):this.Le()&&(0,o.t$)(this.Model.VideoInfo.Url)},t.prototype.createSyncJob=function(n){var t=this,e=new u.z0,r=e.promise().then((function(){return t.Form.getQuestionSyncBlocker(r)})).then(n);return e.resolve(),r},t.prototype.createUploadSyncJob=function(n){var t=this,e=new u.z0,r=Promise.all([e,this.Oe]).then((function(){return t.createSyncJob(n)}));return e.resolve(),this.Oe=(0,u.Gk)(r),r},t.prototype.getMethodDelegator=function(){var n=this.Model.Type;this.Hr=this.Hr||(this.Hr={});var t=this.Hr[n];t||(t=new((0,l.getIoCQuestionDelegatorClass)(n))(this),this.Hr[n]=t);return t},t.prototype.getChoiceById=function(n){var t=i.find(this.Model.ChoiceGroup,(function(t){return t.Id===n}));return t&&(0,_.m)(t)},t.prototype.getChoiceByKey=function(n){var t=i.find(this.Model.ChoiceGroup,(function(t){return t.Key===n}));return t&&(0,_.m)(t)},t.prototype.hasValidBranching=function(){var n=this.Model;return i.map(n.Choices,(function(n){return n.BranchInfo})).concat([n.BranchInfo,n.BranchInfoForOtherChoice]).map(s.H.getObjectMasterFromModel).some((function(n){return n.isValid()}))},t.prototype.Re=function(n){this.xe=new y.v(this,t.Schema.QuestionInfo,t.QuestionInfoFieldSet),n.InitialData&&this.isFieldReady(t.Schema.QuestionInfo)&&(n.ExistingInDataSource||n.InitialData.QuestionInfo?this.xe.deserialize():this.xe.serialize()),this.justifyQuestionInfo()},t.prototype.qr=function(n){!n.ExistingInDataSource&&n.InitialData.FileUploadSPOInfo&&(this.Model.FileUploadSPOInfo=null)},t.prototype.hasRuntimeError=function(){var n=this,t=this.Model.FileUploadSPOInfo;return(0,m.CR)((function(){(0,f.G7)("CustomerVoiceCDSFileUpload")&&n.Form.isFieldReady(F.z.Schema.FileUploadStorage)&&"cds"===n.Form.Model.FileUploadStorage&&(t=null)})),!!t&&!(!this.Form.SettingMaster.Model.IsAnonymous||!t.anonymousLinkInfo)},t.prototype.Le=function(){return this.Model.VideoInfo&&this.Model.VideoInfo.Url},Object.defineProperty(t,"QuestionInfoFieldSet",{get:function(){return t.questionInfoFieldSet||(t.questionInfoFieldSet=new I.n([t.Schema.VideoInfo,t.Schema.ShowSubtitle,t.Schema.Hidden,t.Schema.BranchInfo,t.Schema.ShowRatingLabel,t.Schema.Point,t.Schema.FormsProCalculateSentiment,t.Schema.ImageSettings,t.Schema.GradingBasis,t.Schema.ChoiceType,t.Schema.Choices,t.Schema.Hint,t.Schema.AllowOtherAnswer,t.Schema.OptionDisplayStyle,t.Schema.ShuffleOptions,t.Schema.BranchInfoForOtherChoice,t.Schema.Length,t.Schema.RatingShape,t.Schema.LeftDescription,t.Schema.RightDescription,t.Schema.Multiline,t.Schema.IsNumber,t.Schema.NumberValidationRule,t.Schema.NumberMinBoundary,t.Schema.NumberMaxBoundary,t.Schema.Date,t.Schema.Time,t.Schema.IsMathQuiz,t.Schema.IsPlainTextInMathField,t.Schema.IsAnswerPlainText,t.Schema.InputSwitcherDisabled,t.Schema.IsMathInputDefault,t.Schema.MathTemplateID,t.Schema.MathAriaLabels,t.Schema.HasSpecificFileType,t.Schema.FileTypes,t.Schema.MaxFileCount,t.Schema.MaxFileSize,t.Schema.MinRating,t.Schema.FormsProChoiceLimits,t.Schema.FormsProIsFileUploaded,t.Schema.FormsProNumberOfRandomizationOptions,t.Schema.FormsProNumberOfSelections,t.Schema.FormsProOptionsLayout,t.Schema.FormsProOtherChoice,t.Schema.FormsProRandomizationType,t.Schema.FormsProRTLeftDescription,t.Schema.FormsProRTRightDescription,t.Schema.FormsProEnableAnswerTag,t.Schema.FormsProAnswerTag,t.Schema.FormsProAnswerTagHasError,t.Schema.HasTFRestrictionForPro,t.Schema.FormsProValidationType,t.Schema.FormsProCustomRegEx,t.Schema.FormsProCustomPlaceholder,t.Schema.FormsProSmileyList])),t.questionInfoFieldSet},enumerable:!1,configurable:!0}),t.resolveQuestionNullTypeIssue=function(n){if(!n.Type){var t={choiceType:n.ChoiceType,date:n.Date,time:n.Time,ratingShape:n.RatingShape,multiline:n.Multiline};n.Type=null!=t.choiceType?"Question.Choice":null!=t.date||null!=t.time?"Question.DateTime":t.ratingShape?"Question.Rating":"Question.TextField",(0,v.jg)("QuestionNullTypeError",{message:"question type resolved",conditions:t,resolvedType:n.Type})}},t.getSourceFields=function(n){return i.uniq(n.map((function(n){return t.QuestionInfoFieldSet.covers(n)?t.Schema.QuestionInfo:n})))},t}(s.H.createObjectMasterClass("QuestionMaster",z,(function(n,t){return new E(n,t)})));Object.keys({verify:null,isEmpty:null,getTypeDisplayName:null,getBranchedResult:null,isNumberType:null,resetBranchInfo:null,getNormalizedAnswer:null,hasAnswer:null,justifyNumberBoundaries:null,getNumberValidationErrorMessage:null,getValidationErrorMessage:null,supportsQuestionLevelBranching:null,supportsChoiceLevelBranching:null,getSnapshotWithoutBranchInfo:null,insertChoice:null,setAnswerKey:null,createQuizResult:null,autoGradeAnswer:null,autoGradeWithQuizResult:null,serializeAnswer:null,deserializeAnswer:null,justifyQuestionInfo:null,showAsDropdown:null,hasCorrectAnswers:null,isCorrectAnswer:null,redressGradingBasis:null}).forEach((function(n){q.prototype[n]=function(){var t=this.getMethodDelegator();return t[n].apply(t,arguments)}}))},72138:function(n,t,e){"use strict";e.d(t,{C:function(){return s}});var r=e(22224),i=e(98582),o=e(97410),u=function(){return function(n,t,e){this.answer=n,this.id=t||(0,i.aq)(),this.isMath=e}}(),s=function(){function n(t){if(this.Qr=[],null!=t.GradingBasis)try{this.Qr=JSON.parse(t.GradingBasis)}catch(e){this.Qr=[],(0,o.jg)("ShortTextGradingBasisJsonParseFailure",{gradingBasisLength:t.GradingBasis.length,nonAsciiDetected:n.doesContainNonAsciiCharacters(t.GradingBasis)})}else this.Qr=[]}return n.prototype.serialize=function(){return JSON.stringify(this.Qr)},n.prototype.getAnswers=function(){return r.clone(this.Qr)},n.prototype.areAnyAnswersDefined=function(){return 0!==this.Qr.length},n.prototype.addAnswer=function(n,t){return!this.Gr(n)&&(!this.Wr(n)&&(this.Qr.push(new u(n,void 0,t)),!0))},n.prototype.updateAnswer=function(n,t,e){if(this.Gr(t))return!1;if(this.Wr(t,n))return!1;var r=this.Kr(n);if(r<0)return!1;var i=this.Qr[r];return this.Qr[r]=new u(t,i.id,e),!0},n.prototype.deleteAnswer=function(n){var t=this.Kr(n);t>=0&&this.Qr.splice(t,1)},n.prototype.isCorrect=function(n){return!this.Gr(n)&&(n=(n+="").trim().toUpperCase(),null!=r.find(this.Qr,(function(t){return t.answer.trim().toUpperCase()===n})))},n.prototype.Wr=function(n,t){var e=(n+="").toUpperCase();return null!=r.find(this.Qr,(function(n){return n.answer.toUpperCase()===e&&n.id!==t}))},n.prototype.Gr=function(n){return null==n||""===n},n.prototype.Kr=function(n){return r.findIndex(this.Qr,(function(t){return t.id===n}))},n.doesContainNonAsciiCharacters=function(n){for(var t=0;t127)return!0;return!1},n}()},36805:function(n,t,e){"use strict";e.d(t,{RM:function(){return u},Rr:function(){return s},qX:function(){return o}});var r=e(22224),i=e(76654);function o(n){var t=n.Synchronizer;t.observe((function(){return a(n)}),[t.Schema.CreationFailed,t.Schema.CreationInProcess,t.Schema.CreationScheduled,t.Schema.UpdateFailed,t.Schema.UpdateInProcess,t.Schema.UpdateScheduled]),a(n)}function u(n,t,e){var o=i.H.convertToArray(n.Model).map(i.H.getObjectMasterFromModel);function u(){var n=o.map((function(n){return n.getModelByFieldSchema(t)}));e(s(n))}u(),n.observe((function(n){n.AddedModels.length&&(o=o.concat(n.AddedModels.map(i.H.getObjectMasterFromModel))),n.RemovedModels.length&&n.RemovedModels.map(i.H.getObjectMasterFromModel).forEach((function(n){n.Synchronizer.deletedFromDataSource().then((function(){o=r.without(o,n),u()}))})),u()}),[t])}function s(n){return r.contains(n,"Saving")?"Saving":r.contains(n,"Scheduled")?"Scheduled":r.contains(n,"Failed")?"Failed":"Idle"}function a(n){var t=n.Synchronizer.Model;t.CreationInProcess||t.UpdateInProcess?n.Model.SavingState="Saving":t.CreationScheduled||t.UpdateScheduled?n.Model.SavingState="Scheduled":t.CreationFailed||t.UpdateFailed?n.Model.SavingState="Failed":n.Model.SavingState="Idle"}},331:function(n,t,e){"use strict";e.d(t,{QP:function(){return _},Tc:function(){return r},og:function(){return C},e_:function(){return F}});var r,i,o=e(34629),u=e(22224),s=e(69578),a=e(76654),c=e(80974),f=e(98582),l=e(38290),h=e(87578),d=e(21342),m=e(97410),v=e(35532),p=e(84239),g=e(36316),b=e(64418),w=function(){function n(n,t){this.Xr=n;var e,r=this.Xr.Parent;if(r instanceof p.z)e=r;else{if(!(r instanceof g.db||r instanceof v.LZ))throw"Wrong parent type of ImageInfoMaster.";e=r.Form}var i=e.IsGroupForm?3:2;this.Te=(0,b.UW)(e),this.Yr=d.hd.getInstance().createImageProvider(i,e.Model.OwnerTenantId,e.Model.OwnerId);var o=a.H.getFieldSchemaInfo(n.Membership.FieldSchema);this.Zr=o.Attributes.SourceFieldName||o.Name}return n.prototype.add=function(n){return new Promise((function(n){window.setTimeout((function(){n(void 0)}))}))},n.prototype.delete=function(n){return(0,l.$8)("not supported")},n.prototype.query=function(n){return(0,l.$8)("not supported")},n.prototype.update=function(n){var t,e=n.uploadParameters;return e?(e.Delete?t=this.ni():e.ImageFile?t=this.ti(e.ImageFile):e.Url&&(t=this.ei(e.Url,e.Size)),t?t.then((function(n){var t=u.clone(n);return t.uploadParameters=null,t})):void 0):this.ri()},n.prototype.ri=function(){var n=this,t=a.H.convertToSourceData(this.Xr.getSnapshot(),(0,h.Ti)().Schema);delete t.uploadParameters;var e,r={};r[this.Zr]=t;var i=this.Xr.Parent;if(i instanceof p.z)e=this.Te.updateForm(i.Model.Id,r);else{if(!(i instanceof g.db||i instanceof v.LZ))return(0,l.$8)("not supported");var o=i;e=o.createUploadSyncJob((function(){return n.Te.updateFormQuestion(o.Form.Model.Id,o.Model.Id,o.Model.Type,r)}))}return e.then((function(t){return t&&t[n.Zr]}))},n.prototype.ei=function(n,t){var e=this,r={SourceUrl:n,Title:(0,f.aq)(),Size:t},i=this.Xr.Parent;if(i instanceof p.z)return this.Te.createFormImageFromUrl(i.Model.Id,this.Zr,r);if(i instanceof g.db||i instanceof v.LZ){var o=i;return o.createUploadSyncJob((function(){return e.Te.createQuestionImageFromUrl(o.Form.Model.Id,o.Model.Id,r)}))}return(0,l.$8)("not supported")},n.prototype.ti=function(n){var t=this,e={ImageBlob:n,ImageName:(0,f.aq)(),ImageType:n.type},r=this.Xr.Parent;if(r instanceof p.z)return this.Yr.uploadFormImage(r.Model.Id,this.Zr,e);if(r instanceof g.db||r instanceof v.LZ){var i=r;return i.createUploadSyncJob((function(){return t.Yr.uploadQuestionImage(i.Form.Model.Id,i.Model.Id,t.Zr,e)}))}return(0,l.$8)("not supported")},n.prototype.ni=function(){var n,t=this,e=this.Xr.Parent;if(e instanceof p.z)(0,m.O7)("DesignPage.FormImage.Delete"),n=this.Yr.deleteFormImage(e.Model.Id,this.Zr);else{if(!(e instanceof g.db||e instanceof v.LZ))return(0,l.$8)("not supported");var r=e;(0,m.O7)("DesignPage.QuestionImage.Delete"),n=r.createUploadSyncJob((function(){return t.Yr.deleteQuestionImage(r.Form.Model.Id,r.Model.Id,t.Zr)}))}return n.then(null,(function(n){if(n&&805===n.innerCode)return(0,m.jg)("DeleteImageNotFoundError",{imageUrl:t.Xr.Model.ResourceUrl}),Promise.resolve();throw n})).then((function(){return{altText:null,contentType:null,fileIdentifier:null,height:null,imageFile:null,originalFileName:null,resourceId:null,resourceUrl:null,size:null,width:null}}))},n}(),S=e(75848),y=e(36805),I={AltText:c.EY.string({SourceFieldName:"altText"}),ContentType:c.EY.string({SourceFieldName:"contentType"}),FileIdentifier:c.EY.string({SourceFieldName:"fileIdentifier"}),OriginalFileName:c.EY.string({SourceFieldName:"originalFileName"}),ResourceId:c.EY.string({SourceFieldName:"resourceId"}),ResourceUrl:c.EY.string({SourceFieldName:"resourceUrl"}),Width:c.EY.number({SourceFieldName:"width"}),Height:c.EY.number({SourceFieldName:"height"}),UploadParameters:c.EY.reference({SourceFieldName:"uploadParameters"}),ErrorType:c.EY.enumeration((function(){return i}),{IsLocalField:!0}),ResponseError:c.EY.reference({IsLocalField:!0}),ImageProcessingStatus:c.EY.enumeration((function(){return r}),{IsLocalField:!0}),IsPredefined:c.EY.boolean({IsLocalField:!0}),SavingState:c.EY.reference({IsLocalField:!0})};function F(n){if(!n)return!1;if(n.ResourceUrl)return!0;var t=n.UploadParameters;return!!t&&!!t.ImageFile}function C(n){return a.H.getObjectMasterFromModel(n)}!function(n){n[n.Idle=0]="Idle",n[n.Picking=1]="Picking",n[n.Uploading=2]="Uploading",n[n.Deleting=3]="Deleting"}(r||(r={})),function(n){n[n.NoError=0]="NoError",n[n.SizeTooLarge=1]="SizeTooLarge",n[n.InvalidType=2]="InvalidType",n[n.BrokenImage=3]="BrokenImage",n[n.ServerError=4]="ServerError",n[n.DeleteFailError=5]="DeleteFailError"}(i||(i={}));var _=function(n){function t(e){var o=this,a=new s.z0,c=!e.ExistingInDataSource&&e.InitialData&&!!e.InitialData.ResourceUrl,f=u.clone(e.InitialData);(e=u.clone(e)).InitialData=c?u.extend({},f,{ImageProcessingStatus:r.Uploading}):u.extend({},f,{UploadParameters:null,ErrorType:i.NoError,ResponseError:null,ImageProcessingStatus:r.Idle,Width:null,Height:null});var l=new S._(t.name);l.setMaxRetryTimesForUpdate(0);var h=(o=n.call(this,e,{Scheduler:l,MasterReady:a.promise()})||this).Synchronizer;return h.observe((function(n){var t;u.contains(n.FieldSchemas,h.Schema.CreationError)?t=h.Model.CreationError:u.contains(n.FieldSchemas,h.Schema.UpdateError)&&(t=h.Model.UpdateError),t&&o.bulkEdit((function(){o.Model.ResponseError=t;var n=o.Model.UploadParameters;n&&n.Delete?o.Model.ErrorType=i.DeleteFailError:o.Model.ErrorType=i.ServerError}))}),[h.Schema.CreationError,h.Schema.UpdateError]),o.addRule({InterestedFields:[o.Schema.ResourceId],Name:"ResetErrorStatus",onChange:function(n){!n.BeingDeleted&&o.Model.ResourceId&&o.resetStatus(r.Idle)}}),o.initializing=a,o.duplicatingImage=c,o.originalInitialData=f,(0,y.qX)(o),o}return(0,o.C6)(t,n),t.prototype.getSettingsMaster=function(){return this.ii},t.prototype.setSettingsMaster=function(n){this.ii=n},t.prototype.resetStatus=function(n){var t=this.Model;this.bulkEdit((function(){t.ErrorType=i.NoError,t.ResponseError=void 0,t.ImageProcessingStatus=n}))},t}(a.H.createObjectMasterClass("ImageInfoMaster",I,(function(n,t){return new w(n,t)})))},46519:function(n,t,e){"use strict";e.d(t,{Xn:function(){return p},ce:function(){return v},hJ:function(){return i},oL:function(){return r},rE:function(){return m}});var r,i,o=e(34629),u=e(22224),s=e(17891),a=e(76654),c=e(80974),f=e(33471),l=e(84239),h=e(331),d={Layout:c.EY.enumeration((function(){return r})),Size:c.EY.enumeration((function(){return i})),NaturalWidth:c.EY.number(),NaturalHeight:c.EY.number(),ContainerWidth:c.EY.number(),ContainerHeight:c.EY.number(),ActualWidth:c.EY.number(),ActualHeight:c.EY.number(),Left:c.EY.number(),Top:c.EY.number()};function m(n){return a.H.getObjectMasterFromModel(n)}function v(n,t,e){n.fieldsReady([t]).then((function(){var r=n.getModelByFieldSchema(t),i=(0,h.og)(r);n.ensureFieldsReady([e]).then((function(){var t=m(n.getModelByFieldSchema(e));i.setSettingsMaster(t)}))}))}!function(n){n[n.Horizontal=1]="Horizontal",n[n.Vertical=2]="Vertical",n[n.Square=3]="Square"}(r||(r={})),function(n){n[n.Small=1]="Small",n[n.Large=2]="Large"}(i||(i={}));var p=function(n){function t(t){var e=n.call(this,t)||this;return t.MasterTreeReady&&t.MasterTreeReady.then((function(){var n=e.Parent;n instanceof l.z&&n.fieldsReady([l.z.Schema.LogoInfo]).then((function(){n.Model.LogoInfo===e.Model&&(e.oi=!0)}))})),e}return(0,o.C6)(t,n),Object.defineProperty(t.prototype,"IsFormLogo",{get:function(){return this.oi},enumerable:!1,configurable:!0}),t.prototype.validateImageSettings=function(n){var t=u.clone(this.getSnapshot());if(744===t.ContainerWidth&&(t.ContainerHeight=t.ContainerHeight*(0,f.Bk)()/t.ContainerWidth,t.ContainerWidth=(0,f.Bk)(),!n)){var e=this.Model;e.ContainerWidth=t.ContainerWidth,e.ContainerHeight=t.ContainerHeight}if(null==t.ContainerHeight||null==t.ContainerWidth||null==t.ActualHeight||null==t.ActualWidth||null==t.Top){var r=this.getDefaultImageSettings();for(var i in r)t[i]=Math.round(r[i]),n||(this.Model[i]=t[i])}return t},t.prototype.calcLogoLayout=function(n){var t,e,i,o=(this.Model.NaturalWidth||(0,f.gI)())/(this.Model.NaturalHeight||(0,f.n1)()),u=(n=n||{}).isSmallSize,s=n.isMobile,a=n.isSlimSize;if(s)(e=(t=a?30:u?70:80)*o)>t?(e=(t=a?40:t)*o,i=r.Vertical):i=r.Horizontal;else{var c=void 0;u?(t=70,c=125):a?(t=40,c=95):(t=120,c=215),(e=t*o)>c?(e=(t=a?30:u?40:70)*o,i=r.Vertical):i=r.Horizontal}return{ActualWidth:e=Math.min(e,750),ActualHeight:t,Layout:i}},t.prototype.getDefaultImageSettings=function(){var n,t=this.Model;t.NaturalHeight&&t.NaturalWidth?n={NaturalHeight:t.NaturalHeight,NaturalWidth:t.NaturalWidth}:n={NaturalHeight:t.NaturalHeight||(0,f.n1)(),NaturalWidth:t.NaturalWidth||(0,f.gI)()};if(!(0,s.m1)().userInfo.IsMsa&&this.IsFormLogo)return n;var e=this.ui();if(null==e.Height?(n.ContainerWidth=e.Width,n.ContainerHeight=e.Width*n.NaturalHeight/n.NaturalWidth):null==e.Width?(n.ContainerWidth=e.Height*n.NaturalWidth/n.NaturalHeight,n.ContainerHeight=e.Height):(n.ContainerWidth=e.Width,n.ContainerHeight=e.Height),null==e.Height||null==e.Width)n.Left=0,n.Top=0,n.ActualWidth=n.ContainerWidth,n.ActualHeight=n.ContainerHeight;else{var r=Math.max(n.ContainerWidth/n.NaturalWidth,n.ContainerHeight/n.NaturalHeight);n.ActualWidth=r*n.NaturalWidth,n.ActualHeight=r*n.NaturalHeight,n.Left=(n.ContainerWidth-n.ActualWidth)/2,n.Top=(n.ContainerHeight-n.ActualHeight)/2}return n},t.prototype.ui=function(){var n=this.Model;if(null==n.Size||n.Size===i.Small)switch(n.Layout){case r.Square:return{Width:314,Height:314};case r.Vertical:return{Height:314};case r.Horizontal:default:return{Width:314}}else switch(n.Layout){case r.Square:return{Width:414,Height:414};case r.Vertical:return{Height:414};case r.Horizontal:default:return{Width:(0,f.Bk)()}}},t}(a.H.createObjectMasterClass("ImageSettingsMaster",d))},63662:function(n,t,e){"use strict";e.d(t,{h:function(){return v}});var r=e(34629),i=e(22224),o=e(76654),u=e(80974),s=e(75848),a=e(2140),c=e(64418),f=e(94386),l=e(92906),h=function(){function n(n){this.De=n,this.Te=(0,c.UW)(this.De.Form)}return n.prototype.add=function(n){var t=this;if(this.De.Form.SyncContext!==f.$.DesignTimeForm)return Promise.resolve();var e=this.De.Form;return e?e.Synchronizer.existingInDataSource().then((function(){var n=t.De.Model.localeId,r=o.H.Collection.getItemWithKeyFields(e.Model.LocaleList,{localeId:n});return o.H.getObjectMasterFromModel(r).Synchronizer.existingInDataSource()})).then((function(){var e,r=[];for(e in n)if(n.hasOwnProperty(e)){var o=(0,l.od)(i.pick(n,[e]));null!==o.elementKey&&"localename"!==o.elementKey&&(o.locale=t.De.Model.localeId,o.questionId="",r.push((0,a.F)(o,t.De.FormId)))}return Promise.all(r).then((function(n){}))})):Promise.reject()},n.prototype.delete=function(n){throw Error("No scenario to call this method currently.")},n.prototype.query=function(n){throw Error("No scenario to call this method currently.")},n.prototype.update=function(n,t){if(!t.ValuesBefore||this.De.Form.SyncContext!==f.$.DesignTimeForm)return Promise.resolve();var e,r=[];for(e in n)if(n.hasOwnProperty(e)){var o=null!==t.ValuesBefore[e],u=(0,l.od)(i.pick(n,[e]));u.locale=this.De.Model.localeId,u.questionId="",r.push(o?this.Te.updateLocaleItem(this.De.FormId,u):this.Te.createLocaleItem(this.De.FormId,u))}return Promise.all(r).then((function(){}))},n}(),d=e(48990),m={conditionalThankyouMessage:u.EY.string(),footerText:u.EY.string(),formCloseMessage:u.EY.string(),formsprortlocalesubtitle:u.EY.string(),formsprortlocaletitle:u.EY.string(),localeId:u.EY.string({IsKeyField:!0}),localeName:u.EY.string(),questionResources:u.EY.collectionOf((function(){return d.D})),subtitle:u.EY.string(),thankYouMessage:u.EY.string(),title:u.EY.string()},v=function(n){function t(e){return n.call(this,e,{Scheduler:new s._(t.name)})||this}return(0,r.C6)(t,n),Object.defineProperty(t.prototype,"Form",{get:function(){return this.Parent.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormId",{get:function(){return this.Form.Model.Id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LocaleId",{get:function(){return this.Model.localeId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LocaleName",{get:function(){return this.Model.localeName},enumerable:!1,configurable:!0}),t.getFormResourceMaster=function(n,t){var e=i.find(t.Model.LocalizedResources,(function(t){return t.localeId===n}));if(e)return o.H.getObjectMasterFromModel(e);throw Error("This locale does not exist in form.")},t.getQuestionResourceMaster=function(n,t,e){var r=e.Model.LocalizedResources,i=o.H.Collection.getItemWithKeyFields(r,{localeId:n});if(i){if(i.questionResources||(i.questionResources=[]),i.questionResources.length>0){var u=o.H.Collection.getItemWithKeyFields(i.questionResources,{localeId:n,questionId:t});if(u)return o.H.getObjectMasterFromModel(u)}return(0,l.Ty)({localeId:n,localeName:i.localeName},t,i,e)}throw Error("This locale does not exist in form.")},t}(o.H.createObjectMasterClass("FormLocalizedItemMaster",m,(function(n){return new h(n)})))},92906:function(n,t,e){"use strict";e.d(t,{Au:function(){return u},Hb:function(){return h},Ty:function(){return f},ke:function(){return c},od:function(){return a},uZ:function(){return l}});var r=e(22224),i=e(76654),o=e(97410);function u(n){return{localizedResources:s(n)}}function s(n){var t=function(n){var t=n.filter((function(n){return""===n.questionId})),e=r.groupBy(t,(function(n){return n.locale}));return r.map(e,(function(n){var t={conditionalThankyouMessage:null,footerText:null,formCloseMessage:null,formsprortlocalesubtitle:null,formsprortlocaletitle:null,localeId:null,localeName:null,questionResources:[],subtitle:null,thankYouMessage:null,title:null};return n.forEach((function(n){!function(n,t){switch(n.elementKey){case"thankyoumessage":t.thankYouMessage=n.elementValue;break;case"formclosemessage":t.formCloseMessage=n.elementValue;break;case"footertext":t.footerText=n.elementValue;break;case"conditionalthankyoumessage":t.conditionalThankyouMessage=n.elementValue;break;default:d(n,t)}}(n,t)})),t}))}(n),e=function(n){var t=n.filter((function(n){return n.questionId})),e=r.groupBy(t,(function(n){return n.locale})),i={},o=r.map(e,(function(n,t){var e=r.groupBy(n,(function(n){return n.questionId})),i=r.map(e,(function(n,e){var i={choices:[],choicesV1:[],formsprortlocaleldescription:null,formsprortlocalerdescription:null,formsprocustomplaceholder:null,formsprortlocalesubtitle:null,formsprortlocaletitle:null,leftDescription:null,localeId:t,localeName:null,option:null,questionId:e,rightDescription:null,subtitle:null,title:null,cascadeChoices:null},o=n.filter((function(n){return n.elementKey&&(n.elementKey.startsWith("choiceid_")||n.elementKey.startsWith("choicekey_"))}));if(o&&o.length>0){var u=r.map(o,(function(n){var t={choiceId:null,description:null,key:null};return function(n,t){var e=n.elementKey;e&&e.startsWith("choiceid_")&&(t.choiceId=e.split("_")[1]);e&&e.startsWith("choicekey_")&&(t.key=e.split("_")[1]);t.description=n.elementValue}(n,t),t}));i.choices=u}var s=n.filter((function(n){return n.elementKey&&!(n.elementKey.startsWith("choiceid_")||n.elementKey.startsWith("choicekey_"))}));return s&&s.forEach((function(n){!function(n,t){switch(t.questionId=n.questionId,n.elementKey){case"leftdescription":t.leftDescription=n.elementValue;break;case"rightdescription":t.rightDescription=n.elementValue;break;case"option":t.option=n.elementValue;break;case"formsprortlocaleldescription":t.formsprortlocaleldescription=n.elementValue;break;case"formsprortlocalerdescription":t.formsprortlocalerdescription=n.elementValue;break;case"formsprocustomplaceholder":t.formsprocustomplaceholder=n.elementValue;break;default:d(n,t)}}(n,i)})),i}));return i}));return o.forEach((function(n){var t=n.length>0&&n[0].localeId;t&&(i[t]=n)})),i}(n);return t.forEach((function(n){if(n.localeId){var t=e[n.localeId];t&&(n.questionResources=t)}})),t}function a(n){var t=m(n);return null!=n.formCloseMessage?(t.elementKey="formclosemessage",t.elementValue=n.formCloseMessage):null!=n.thankYouMessage?(t.elementKey="thankyoumessage",t.elementValue=n.thankYouMessage):null!=n.footerText?(t.elementKey="footertext",t.elementValue=n.footerText):null!=n.conditionalThankyouMessage&&(t.elementKey="conditionalthankyoumessage",t.elementValue=n.conditionalThankyouMessage),t}function c(n){var t=m(n);return null!=n.leftDescription?(t.elementKey="leftdescription",t.elementValue=n.leftDescription):null!=n.rightDescription?(t.elementKey="rightdescription",t.elementValue=n.rightDescription):null!=n.option&&'{"choicesV1":[]}'!==n.option?(t.elementKey="option",t.elementValue=n.option):null!=n.formsprortlocaleldescription?(t.elementKey="formsprortlocaleldescription",t.elementValue=n.formsprortlocaleldescription):null!=n.formsprortlocalerdescription?(t.elementKey="formsprortlocalerdescription",t.elementValue=n.formsprortlocalerdescription):null!=n.formsprocustomplaceholder&&(t.elementKey="formsprocustomplaceholder",t.elementValue=n.formsprocustomplaceholder),t}function f(n,t,e,o){var u={choices:[],choicesV1:[],formsprortlocaleldescription:null,formsprortlocalerdescription:null,formsprocustomplaceholder:null,formsprortlocalesubtitle:null,formsprortlocaletitle:null,leftDescription:null,localeId:n.localeId,localeName:n.localeName,option:null,questionId:t,rightDescription:null,subtitle:null,title:null,cascadeChoices:null},s=i.H.Collection.getItemWithKeyFields(o.Model.Questions,{Id:t});if(s&&s.ChoiceGroup&&s.ChoiceGroup.length>0){var a=r.map(s.ChoiceGroup,(function(n){return{choiceId:n.Id.toString(),description:null,key:n.Key}}));u.choices=a}var c=i.H.Collection.itemsAddedInSource(e.questionResources,[u]);return i.H.getObjectMasterFromModel(c[0])}function l(n,t,e){var r={choiceId:n,description:null,key:t},o=i.H.Collection.itemsAddedInSource(e.choices,[r]);return i.H.getObjectMasterFromModel(o[0])}function h(n){var t=i.H.Collection.itemsAddedInSource(n.choicesV1,[{choiceId:null,description:"",formsProDisplayRTText:""}]);return i.H.getObjectMasterFromModel(t[0])}function d(n,t){switch(t.localeId=n.locale,n.elementKey){case"title":t.title=n.elementValue;break;case"subtitle":t.subtitle=n.elementValue;break;case"localename":t.localeName=n.elementValue;break;case"formsprortlocaletitle":t.formsprortlocaletitle=n.elementValue;break;case"formsprortlocalesubtitle":t.formsprortlocalesubtitle=n.elementValue;break;default:var e=n.elementValue&&n.elementValue.length,r="Unexpected locale element key:[".concat(n.elementKey,"], value length:").concat(e),i=new Error(r).stack;return console.log(i),void(0,o.jg)("UnexpectedLocaleElementKey","".concat(r,", call stack:").concat(i))}}function m(n){var t={elementKey:null,elementValue:null,locale:null,questionId:null};return null!=n.title?(t.elementKey="title",t.elementValue=n.title):null!=n.subtitle?(t.elementKey="subtitle",t.elementValue=n.subtitle):null!=n.localeName?(t.elementKey="localename",t.elementValue=n.localeName):null!=n.formsprortlocaletitle?(t.elementKey="formsprortlocaletitle",t.elementValue=n.formsprortlocaletitle):null!=n.formsprortlocalesubtitle&&(t.elementKey="formsprortlocalesubtitle",t.elementValue=n.formsprortlocalesubtitle),t}},48990:function(n,t,e){"use strict";e.d(t,{D:function(){return S}});var r=e(34629),i=e(22224),o=e(69578),u=e(76654),s=e(80974),a=e(75848),c=e(8574),f=e(23188),l=e(2140),h=e(64418),d=e(94386),m=function(){function n(n){this.De=n,this.Te=(0,h.UW)(this.De.Form)}return n.prototype.add=function(n){var t=this;if(this.De.Form.SyncContext!==d.$.DesignTimeForm)return Promise.resolve();var e=this.De.QuestionId;if(e){var r=this.De.Form.getQuestionById(e).getChoiceByKey(this.De.Model.key||"");if(r)return r.Synchronizer.existingInDataSource().then((function(){var e=r.Model.Id.toString();t.De.Model.choiceId=e;var i={elementKey:"choiceid_"+e,elementValue:n.description,locale:t.De.LocaleId,questionId:t.De.QuestionId};return(0,l.F)(i,t.De.FormId).then((function(){return{choiceId:e,description:n.description}}))}))}return Promise.reject()},n.prototype.delete=function(n){throw Error("No scenario to call this method currently.")},n.prototype.query=function(n){throw Error("No scenario to call this method currently.")},n.prototype.update=function(n,t){if(!t.ValuesBefore||this.De.Form.SyncContext!==d.$.DesignTimeForm)return Promise.resolve();if(n.choiceId||void 0===n.description)throw Error("No valid payload to update.");var e={elementKey:"choiceid_"+this.De.ChoiceId,elementValue:n.description,locale:this.De.LocaleId,questionId:this.De.QuestionId};return null!==t.ValuesBefore.description?this.Te.updateLocaleItem(this.De.FormId,e):this.Te.createLocaleItem(this.De.FormId,e)},n}(),v={choiceId:s.EY.string({IsKeyField:!0,IgnoreKeyWithEmptyValue:!0}),description:s.EY.string(),key:s.EY.string()},p=function(n){function t(e){var r=n.call(this,e,{Scheduler:new a._(t.name)})||this;if(!r.Model.key){if(!r.Model.choiceId)throw Error("Current choice localized master doesn't has key and choiceId.");e.MasterTreeReady&&e.MasterTreeReady.then((function(){return r.Form.fieldsReady([r.Form.Schema.Questions])})).then((function(){var n=r.Form.getQuestionById(r.QuestionId).getChoiceById(Number(r.Model.choiceId));n&&(r.Model.key=n.Model.Key)}))}return r}return(0,r.C6)(t,n),Object.defineProperty(t.prototype,"QuestionLocalizedMaster",{get:function(){return this.Parent.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Form",{get:function(){return this.QuestionLocalizedMaster.Form},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormId",{get:function(){return this.Form.Model.Id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QuestionId",{get:function(){return this.QuestionLocalizedMaster.Model.questionId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LocaleId",{get:function(){return this.QuestionLocalizedMaster.Model.localeId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ChoiceId",{get:function(){return this.Model.choiceId},enumerable:!1,configurable:!0}),t}(u.H.createObjectMasterClass("ChoiceLocalizedItemMaster",v,(function(n){return new m(n)}))),g=e(92906),b=function(){function n(n){this.De=n,this.Te=(0,h.UW)(this.De.Form)}return n.prototype.add=function(n){var t=this;if(this.De.Form.SyncContext!==d.$.DesignTimeForm)return Promise.resolve();var e=this.De.QuestionId;if(e){var r=this.De.Form.getElementById(e);if(r)return r.Synchronizer.existingInDataSource().then((function(){var e,r=[];for(e in n)if(n.hasOwnProperty(e)){var o=(0,g.ke)(i.pick(n,[e]));o.elementKey&&(o.locale=t.De.Model.localeId,o.questionId=t.De.QuestionId,r.push((0,l.F)(o,t.De.FormId)))}return Promise.all(r).then((function(n){}))}))}return Promise.reject()},n.prototype.delete=function(n){throw Error("No scenario to call this method currently.")},n.prototype.query=function(n){throw Error("No scenario to call this method currently.")},n.prototype.update=function(n,t){if(!t.ValuesBefore||this.De.Form.SyncContext!==d.$.DesignTimeForm)return Promise.resolve();var e,r=[];for(e in n)if(n.hasOwnProperty(e)){var o=null!==t.ValuesBefore[e],u=(0,g.ke)(i.pick(n,[e]));u.locale=this.De.Model.localeId,u.questionId=this.De.QuestionId,r.push(o?this.Te.updateLocaleItem(this.De.FormId,u):this.Te.createLocaleItem(this.De.FormId,u))}return Promise.all(r).then((function(){}))},n}(),w={choices:s.EY.collectionOf((function(){return p})),choicesV1:s.EY.collectionOf({choiceId:s.EY.string({IsLocalField:!0}),description:s.EY.string({SourceFieldName:"Description"}),formsProDisplayRTText:s.EY.string({SourceFieldName:"FormsProDisplayRTText"})},{IsLocalField:!0}),formsprortlocaleldescription:s.EY.string(),formsprortlocalerdescription:s.EY.string(),formsprocustomplaceholder:s.EY.string(),formsprortlocalesubtitle:s.EY.string(),formsprortlocaletitle:s.EY.string(),leftDescription:s.EY.string(),localeId:s.EY.string({IsKeyField:!0}),localeName:s.EY.string(),option:s.EY.string(),questionId:s.EY.string({IsKeyField:!0}),rightDescription:s.EY.string(),subtitle:s.EY.string(),title:s.EY.string(),cascadeChoices:s.EY.collectionOf({choiceId:s.EY.string({IsLocalField:!0}),elementValue:s.EY.string({IsLocalField:!0}),locale:s.EY.string({IsLocalField:!0}),questionId:s.EY.string({IsLocalField:!0})},{IsLocalField:!0})},S=function(n){function t(e){var r=this,i=new o.z0;return(r=n.call(this,e,{MasterReady:i.promise(),Scheduler:new a._(t.name)})||this).ai(e),i.resolve(),r}return(0,r.C6)(t,n),t.handleChoicesV1Deleted=function(n,t,e){n<0||i.forEach(e.Model.LocalizedResources,(function(e){i.filter(e.questionResources,(function(n){return n.questionId===t})).forEach((function(t){t.choicesV1.length>n&&u.H.Collection.itemsDeletedInSource(t.choicesV1,[t.choicesV1[n]])}))}))},t.handleChoicesV1Exchange=function(n,t,e,r){i.forEach(r.Model.LocalizedResources,(function(r){u.H.getCollectionMasterFromModel(r.questionResources).bulkEdit((function(r){i.filter(r,(function(n){return n.questionId===e})).forEach((function(e){var r,o,u=e.choicesV1;for(n>t?(r=t,o=n):(r=n,o=t);u.length<=o+1;)(0,g.Hb)(e);var s=i.map(u,(function(n){return n.description})),a=s.splice(n,1);s.splice(t,0,a[0]);for(var c=r;c<=o;++c)u[c].description=s[c]}))}))}))},Object.defineProperty(t.prototype,"Form",{get:function(){return this.FormLocalizedMaster.Form},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormId",{get:function(){return this.Form.Model.Id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormLocalizedMaster",{get:function(){return this.Parent.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QuestionId",{get:function(){return this.Model.questionId},enumerable:!1,configurable:!0}),t.prototype.getChoiceLocalizedMaster=function(n){var t=this,e=i.find(this.Form.Model.Questions,(function(n){return n.Id===t.QuestionId}));if(e){var r=i.find(e.ChoiceGroup,(function(t){return t.Id.toString()===n}));if(r){var o=u.H.Collection.getItemWithKeyFields(this.Model.choices,{choiceId:n});return o?u.H.getObjectMasterFromModel(o):(0,g.uZ)(n,r.Key,this.Model)}}throw Error("Question or Chocie don't exist for localization.")},t.prototype.getChoiceV1LocalizedMaster=function(n){var t=this,e=i.find(this.Form.Model.Questions,(function(n){return n.Id===t.QuestionId}));if(e&&e.Choices.length>n){for(;this.Model.choicesV1.length0&&(n=i[i.length-1].Model.Id);var o=this.getCommentByQuestionId(n);if(o)o.bulkEdit((function(){void 0!==t&&(o.Model.Score=t),void 0!==e&&(o.Model.Feedback=e)}));else{var s=this.getAnswerByQuestionId(n);t=null!=t?t:s.Model.Score;var a={QuestionId:n,Feedback:e,Score:t};try{u.H.Collection.addItems(this.Model.Comments,[a])}catch(r){this.getCommentByQuestionId(n)&&this.setAnswerGrading(n,t,e)}}}},t.prototype.wi=function(){var n=this;this.Si="Idle";var t=u.H.getCollectionMasterFromModel(this.Model.Comments);(0,o.RM)(t,t.Schema[0].SavingState,(function(t){n.Si=t,n.Ne()})),(0,o.qX)(this),this.Ne()},t.prototype.yi=function(n){var t=this.getAnswerByQuestionId(n);if(t)return t;var e=u.H.Collection.addItems(this.Model.Answers,[{QuestionId:n}])[0];return u.H.getObjectMasterFromModel(e)},t.prototype.Ne=function(){this.Model.IntegratedSavingState=(0,o.Rr)([this.Model.SavingState,this.Si])},Object.defineProperty(t,"Rules",{get:function(){if(!t.rules){var n=t.Schema;t.rules=[{Name:"ResponseComment",InterestedFields:[n.Feedback,n.TotalScore],onChange:function(n){var t=n.Master,e=t.getCommentByQuestionId(null);e?e.bulkEdit((function(){e.Model.Feedback=t.Model.Feedback,e.Model.Score=t.Model.TotalScore})):u.H.Collection.addItems(t.Model.Comments,[{QuestionId:null,Feedback:t.Model.Feedback,Score:t.Model.TotalScore}])}},{Name:"AnswerComment",InterestedFields:[n.Answers[0].Feedback,n.Answers[0].Score,n.Answers[0].IsAutoGraded],onChange:function(n){var t=n.Master,e=t.Model.Answers,r=function(n){n.IsAutoGraded||t.setAnswerGrading(n.QuestionId,n.Score,n.Feedback)};n.SubChanges.filter((function(n){return n.Master.Model===e})).forEach((function(n){n.AddedModels.forEach(r),n.SubChanges.forEach((function(n){return r(n.Master.Model)}))}))}},{Name:"ApplyCommentChange",InterestedFields:[n.Comments],onChange:function(n){var t=n.Master,e=t.Model.Comments,r=function(n){var e=n.QuestionId;if(e){var r=t.yi(e);r.bulkEdit((function(){r.Model.Feedback=n.Feedback,r.Model.Score=n.Score,r.Model.IsAutoGraded=!1}))}else t.bulkEdit((function(){t.Model.Feedback=n.Feedback,t.Model.TotalScore=n.Score}))};n.SubChanges.filter((function(n){return n.Master.Model===e})).forEach((function(n){n.AddedModels.forEach(r),n.SubChanges.forEach((function(n){return r(n.Master.Model)}))}))}}],t.rules=t.rules.concat(t.getRulesForSyncBetweenDateFields(n.StartDate,n.StartDateAsString),t.getRulesForSyncBetweenDateFields(n.SubmitDate,n.SubmitDateAsString),t.getRulesForSyncBetweenDateFields(n.ReleaseDate,n.ReleaseDateAsString))}return t.rules},enumerable:!1,configurable:!0}),t.getRulesForSyncBetweenDateFields=function(n,t){var e=u.H.getFieldSchemaInfo(n).Name,r=u.H.getFieldSchemaInfo(t).Name;return[{Name:"update ".concat(e),InterestedFields:[t],onChange:function(n){var t=n.Master.Model;t[e]=new Date(t[r])}},{Name:"update ".concat(r),InterestedFields:[n],onChange:function(n){var t=n.Master.Model;t[r]=t[e].toISOString()}}]},t}(u.H.createObjectMasterClass("Response",b,(function(n,t){return new l(n,t)})))},66411:function(n,t,e){"use strict";e.d(t,{v:function(){return F}});var r=e(34629),i=e(22224),o=e(91970),u=e(76654),s=e(80974),a=e(59198),c=e(75187),f=e(87578),l=e(8093),h=e(45994),d=e(71683),m=e(84239),v=e(98031),p=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,r.C6)(t,n),t.prototype.calculateQuestionRuntimeList=function(n){var t,e=this,r=[];i.forEach(n,(function(n){t=e.formRuntimeMaster.getOrCreateQuestionRuntime(n),r.push(t),n.SubQuestionMasters.forEach((function(n){var t=e.formRuntimeMaster.getOrCreateQuestionRuntime(n);r.push(t)}))})),this.formRuntimeMaster.Model.QuestionRuntimeMasters=r,this.formRuntimeMaster.ensureProRuleManager()},t.prototype.getPreviousSection=function(){var n,t=this.formRuntimeMaster,e=t.Model.RuntimeSectionId,r=t.Form.FormElementManager,o=r.getDescriptiveElementMasterById(e),u=r.SectionMasters,s=i.findLastIndex(u,(function(n){return n.Model.Order=0;){n=u[s];var a=this.getRuntimeQuestionsWithSectionId(n.Model.Id);if(!(a.length>0)||(a=a.filter((function(n){return t.formsProQuestionVisiblityCheck(n)&&t.isContainingSectionVisible(n.Question.Model.Id)}))).length)break;s--}return s<0?null:n},t.prototype.getNextSection=function(){for(var n,t=this.formRuntimeMaster,e=t.Model.RuntimeSectionId,r=t.Form,o=function(){if(null==e)n=r.hasSection()?i.min(r.FormElementManager.SectionMasters,(function(n){return n.Model.Order})):null;else{var o=r.FormElementManager.getDescriptiveElementMasterById(e);n=i.find(r.FormElementManager.SectionMasters,(function(n){return n.Model.Order>o.Model.Order}))}if(null==n)return"break";var s=u.getRuntimeQuestionsWithSectionId(n.Model.Id);return s.length>0&&!(s=s.filter((function(n){return t.formsProQuestionVisiblityCheck(n)&&t.isContainingSectionVisible(n.Question.Model.Id)}))).length?(e=n.Model.Id,"continue"):"break"},u=this;;){if("break"===o())break}return n},t.prototype.hasPrevSection=function(){return!!this.getPreviousSection()},t}(function(){function n(){}return n.prototype.hasPrevSection=function(){return!!this.formRuntimeMaster.Model.RuntimeSectionId},n.prototype.gotoPrevSection=function(){var n=this.getPreviousSection();null==n?this.formRuntimeMaster.Model.RuntimeSectionId=null:(this.formRuntimeMaster.Model.RuntimeSectionId=n.Model.Id,(0,d.CR)((function(){(0,v.EC)(document.getElementsByClassName("__title__")[0])})))},n.prototype.hasNextSection=function(){return!!this.getNextSection()},n.prototype.gotoNextSection=function(){var n=this.getNextSection();n&&(this.formRuntimeMaster.Model.RuntimeSectionId=n.Model.Id,(0,d.CR)((function(){(0,v.EC)(document.getElementsByClassName("__title__")[0])})))},n.prototype.getAllSections=function(){var n=this,t=[];t.push({TopQuestionMasters:this.getRuntimeQuestionsWithSectionId()});var e=this.formRuntimeMaster.Form.FormElementManager.SectionMasters.map((function(t){return{Section:t,TopQuestionMasters:n.getRuntimeQuestionsWithSectionId(t.Model.Id)}}));return t=t.concat(e)},n.prototype.getCurrentSection=function(){var n=this.formRuntimeMaster,t=n.Model.RuntimeSectionId,e=t?n.Form.FormElementManager.getDescriptiveElementMasterById(t):void 0,r=this.getRuntimeQuestionsWithSectionId(t);if(this.formRuntimeMaster.Form.hasSection()&&!t&&!r.length){if(e=this.getNextSection())this.formRuntimeMaster.Model.RuntimeSectionId=e.Model.Id;else{var o=n.Form.FormElementManager.SectionMasters,u=i.max(o,(function(n){return n.Model.Order}));this.formRuntimeMaster.Model.RuntimeSectionId=u?u.Model.Id:null}r=this.getRuntimeQuestionsWithSectionId(this.formRuntimeMaster.Model.RuntimeSectionId)}return{Section:e,TopQuestionMasters:r}},n.prototype.isFirstPage=function(){var n=this,t=this.formRuntimeMaster.Model.RuntimeSectionId,e=this.formRuntimeMaster.Form.FormElementManager.SectionMasters,r=t&&e.length?e.map((function(n){return n.Model.Id})).indexOf(t):-1;return!t||0===r&&!this.getRuntimeQuestionsWithSectionId().length||(0,d.CR)((function(){return r>0&&!n.getRuntimeQuestionsWithSectionId().length&&null==n.getPreviousSection()}))},n.prototype.getRuntimeQuestionsWithSectionId=function(n){var t,e=u.H.convertToArray(this.formRuntimeMaster.Model.QuestionRuntimeMasters).filter((function(n){return!n.Question.Model.GroupId})),r=this.formRuntimeMaster.Form;if(n){var o=r.FormElementManager.getDescriptiveElementMasterById(n);t=e.filter((function(n){return n.Question.Model.Order>o.Model.Order}));var s=i.find(r.FormElementManager.SectionMasters,(function(n){return n.Model.Order>o.Model.Order}));s&&(t=i.filter(t,(function(n){return s.Model.Order>n.Question.Model.Order})))}else{var a=r.FormElementManager.SectionMasters,c=a.length&&a[0].Model.Order;t=e,c>0&&(t=i.filter(t,(function(n){return n.Question.Model.Order=0)return"break";for(var a=[],c=void 0,f=s.TopQuestionMasters[0],l=function(){if(i.include(o,f))return"break";o.push(f),a.push(f);var n=e(f,s.TopQuestionMasters),r=n.TargetElement;r instanceof b.db?f=r:(r&&g.w.isSection(r.Model.Type)?c=i.findIndex(t,(function(n){return n.Section===r})):"End"===n.Type&&(c=-1),f=null)};f;){if("break"===l())break}r.push({Section:s.Section,TopQuestionMasters:a}),u=void 0!==c?c:n.getNextSectionFromSection(s,t)};u<=t.length-1&&u>=0;){if("break"===s())break}return r},n.prototype.calculateQuestionRuntimeList=function(t){var e=[],r=this.ki(t);this.formRuntimeMaster.IsDisableBranching||(r=n.getBranchedSections(r,this.Fi));var i=this.Ii,o=this.Pi(r,e);if(this._i||n.isBranchingResultChanged(i,o)){this.Ii=o;var u=this.formRuntimeMaster.Model;this.formRuntimeMaster.bulkEdit((function(){u.QuestionRuntimeMasters=e,u.BranchChangeVersion=(u.BranchChangeVersion||0)+1}))}},n.prototype.hasPrevSection=function(){return this.Ni()>0},n.prototype.gotoPrevSection=function(){var n=this.Ni();if(n>0){var t=this.Ii[n-1];this.formRuntimeMaster.Model.RuntimeSectionId=t.Section&&t.Section.Model.Id}},n.prototype.hasNextSection=function(){return this.Ni()=0)return o}return i.findIndex(t,n)+1},n.prototype.Ei=function(n){var t=this,e=i.find(this.Ii,(function(t,e){return n?t.Section&&n===t.Section.Model.Id:0===e}));return n&&!e&&(e=this.Ii[0],setTimeout((function(){t.formRuntimeMaster.Model.RuntimeSectionId=null}))),e},n.prototype.Ni=function(){return i.indexOf(this.Ii,this.getCurrentSection())},n.prototype.ki=function(n){var t=this.formRuntimeMaster.Form;return t.hasSection()?t.FormElementManager.getSectionNodes():[{TopQuestionMasters:n.filter((function(n){return!n.Model.GroupId}))}]},n.prototype.Ri=function(){var n=this.Ni();if(n=0){var t=this.Ii[n+1];return t.Section&&t.Section.Model.Id}},n}();function S(n){var t=(0,d.CR)((function(){return!0}))?new p:new w((0,a.t5)());return t.formRuntimeMaster=n,t}var y=e(28792),I={QuestionRuntimeMasters:s.EY.collectionOf(s.EY.reference()),RuntimeSectionId:s.EY.string(),UploadingFileCount:s.EY.number(),BranchChangeVersion:s.EY.number()},F=function(n){function t(t,e){var r=n.call(this)||this;return r.Li={},r.Oi=new h.T,r.xi=function(){return r.Oi.trigger()},r.Di=function(n){return r.replaceAnswerTagsWithValue(n.Master)},r.Mi=function(n){return r.Ai(n)},r.Vi=function(){return r.Ai()},r.Ui=function(){return r.zi.callOnceLater()},r.zi=new h.N((function(){return r.Bi()}),0),r.qi=t,(0,d.CR)((function(){var n=(0,f.nu)();t&&!n.Model.FormMaster&&(n.Model.FormMaster=t),e&&(null==e?void 0:e.Answers)&&(r.Answers=e.Answers)})),r.Hi=S(r),e=e||{},r.ji=e.disableShuffle,r.$i=e.disableBranching,r.Ai(),r.zi.callImmediately(),r.Model.UploadingFileCount=0,u.H.getCollectionMasterFromModel(t.Model.Questions).observe(r.Mi),t.observe(r.Vi,[m.z.Schema.HasValidBranching,m.z.Schema.Settings.ShuffleQuestionOrder]),r}return(0,r.C6)(t,n),Object.defineProperty(t.prototype,"Form",{get:function(){return this.qi},enumerable:!1,configurable:!0}),t.prototype.ElementManager=function(){return this.Hi},Object.defineProperty(t.prototype,"IsDisableBranching",{get:function(){return this.$i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Answers",{get:function(){return u.H.convertToArray(this.Model.QuestionRuntimeMasters).filter((function(n){return n.Question.hasAnswer()})).map((function(n){return n.getAnswerEntity()}))},set:function(n){var t=this,e={};i.forEach(n,(function(n){return e[n.QuestionId]=n.Answer})),this.bulkEdit((function(){t.qi.FormElementManager.QuestionMasters.map((function(n){return t.getOrCreateQuestionRuntime(n)})).forEach((function(n){n.Model.Answer=e[n.Question.Model.Id]}))})),this.zi.flush()},enumerable:!1,configurable:!0}),t.prototype.TopQuestionRuntimeMasters=function(){return u.H.convertToArray(this.Model.QuestionRuntimeMasters).filter((function(n){return!n.Question.Model.GroupId}))},t.prototype.CurrentRuleManager=function(){return this.Wi},t.prototype.isDefaultAnswer=function(){var n=this.qi.getDefaultResponse();return u.H.convertToArray(this.Model.QuestionRuntimeMasters).every((function(t){var e=t.Question.Model.Id;return n[e]===t.Model.Answer}))},t.prototype.updateWithResponse=function(n){var t=this,e={};n&&n.Answers&&i.forEach(n.Answers,(function(n){return e[n.QuestionId]=n})),this.bulkEdit((function(){t.qi.FormElementManager.QuestionMasters.map((function(n){return t.getOrCreateQuestionRuntime(n)})).forEach((function(n){var t=n.Question.Model.Id,r=e[t];n.bulkEdit((function(){n.Model.Answer=r&&r.Answer,n.Model.AnswerEntity=r}))}))})),this.Ai()},t.prototype.setQuizResults=function(n){var t=this;n.forEach((function(n){var e=t.Li[n.id];e&&(e.Model.QuizResult={IsAnswerCorrect:n.isAnswerCorrect,AnswerHints:n.answerHints,IsAnswerKeys:n.answerKeys,Choices:i.map(e.Question.Model.Choices,(function(n){return n.Description})),GradingBasis:n.gradingBasis})}))},t.prototype.clearQuizResult=function(){for(var n in this.Li)this.Li[n].Model.QuizResult=void 0},t.prototype.resetQuestions=function(){if((0,a.G7)("FormsProAnswerTag"))for(var n in this.Form.Model.FormsProAnswerTagMapRT=[],this.Li)this.Li[n].Model.FormsProRuntimeTitle=void 0,this.Li[n].Model.FormsProRuntimeSubtitle=void 0,this.Li[n].Model.InitialFormsProLocalizedRuntimeTitle=void 0,this.Li[n].Model.InitialFormsProLocalizedRuntimeSubtitle=void 0},t.prototype.getQuestionResponseFromQueryString=function(){var n=(0,c.Db)().questionId,t=(0,c.Db)().answer;return(0,c.Db)().vt&&n&&t?[{Answer:t,QuestionId:n}]:null},t.prototype.calculateQuizResultFromModel=function(){u.H.convertToArray(this.Model.QuestionRuntimeMasters).forEach((function(n){return n.calculateQuizResultFromModel()}))},t.prototype.formsProQuestionVisiblityCheck=function(n){return!(!0!==n.Model.Visible&&(!(0,a.G7)("FormsProQuestionVisibility")||null!=n.Model.Visible||n.Question.Model.Hidden))},t.prototype.setVisibility=function(n){null!==n.Model.Visible&&n.Model.Visible?(0,a.G7)("FormsProQuestionVisibility")&&n.Question.Model.Hidden&&(n.Question.Model.Hidden=!1):n.Model.Visible=!0},t.prototype.isContainingSectionVisible=function(n){var t=!0;if(this.Form.hasSection()){var e=this.Form.FormElementManager,r=e.getElementMasterById(n),i=e.findContainerSection(r);t=this.formsProSectionVisiblityCheck(i)}return t},t.prototype.formsProSectionVisiblityCheck=function(n){return!0===n.Model.Visible||null==n.Model.Visible&&!n.Model.Hidden},t.prototype.getQuestionsWithWrongAnswer=function(n){var t=this;if((0,d.CR)((function(){n=n.filter((function(n){return t.formsProQuestionVisiblityCheck(n)&&t.isContainingSectionVisible(n.Question.Model.Id)}))})),n.length<=0)return[];var e=this.TopQuestionRuntimeMasters();(0,d.CR)((function(){e=e.filter((function(n){return t.formsProQuestionVisiblityCheck(n)&&t.isContainingSectionVisible(n.Question.Model.Id)}))}));var r=i.findIndex(e,(function(t){return t.Question.Model.Id===n[0].Question.Model.Id}))+1;return n.map((function(n,t){return n.verifyAnswer()?-1:t+r})).filter((function(n){return n>0}))},t.prototype.getOrCreateQuestionRuntimeById=function(n){var t=this.qi.getQuestionById(n);return t&&this.getOrCreateQuestionRuntime(t)},t.prototype.observeAnswerChange=function(n){this.Oi.register(n)},t.prototype.unobserveAnswerChange=function(n){this.Oi.unregister(n)},t.prototype.release=function(){var n=this,t=function(t){var r=e.Li[t];r.unobserve(e.Ui),r.unobserve(e.xi),(0,d.CR)((function(){r.unobserve(n.Di)})),r.release()},e=this;for(var r in this.Li)t(r);u.H.getCollectionMasterFromModel(this.qi.Model.Questions).unobserve(this.Mi),this.qi.unobserve(this.Vi)},t.prototype.getOrCreateQuestionRuntime=function(n){var t=n.Model.Id;return this.Li[t]||(this.Li[t]=this.Ki(n)),this.Li[t]},t.prototype.Ki=function(n){var t=this,e=new y.j(n,this);return e.observe(this.Ui,[y.j.Schema.BranchedElement,y.j.Schema.BranchingType]),e.observe(this.xi,[y.j.Schema.Answer]),(0,d.CR)((function(){e.observe(t.Di,[y.j.Schema.Answer])})),e},t.prototype.Ai=function(n){var t,e=this,o=this.qi.Model.Settings,u=this.qi.FormElementManager;this.Yi=u.TopQuestionMasters;var s=this.Form.hasSection();if(!s&&!this.ji&&!this.qi.Model.HasValidBranching&&o.ShuffleQuestionOrder)if(o.ShuffleAllQuestions||null==o.ShuffleAllQuestions)this.Yi=i.shuffle(this.Yi);else if((0,l.Fq)(o.LockGivenQuestionsStartDisplayOrder)&&(0,l.Fq)(o.LockGivenQuestionsEndDisplayOrder)){var a=o.LockGivenQuestionsStartDisplayOrder-1,c=o.LockGivenQuestionsEndDisplayOrder-1,f=this.Yi.splice(a,c-a+1);this.Yi=i.shuffle(this.Yi),(t=this.Yi).splice.apply(t,(0,r.fX)([a,0],f,!1))}s?u.getSectionNodes().forEach((function(n){return e.Zi(n.TopQuestionMasters)})):this.Zi(this.Yi),n&&(n.AddedModels.length||n.RemovedModels.length)&&this.zi.callOnceLater()},t.prototype.Zi=function(n){var t=this;n.forEach((function(e,r){var i=t.getOrCreateQuestionRuntime(e);i.bulkEdit((function(t){t.NextQuestionInOrder=n[r+1],t.NextQuestionInitialized=!0})),"Specified"===i.Model.BranchingType&&!i.Model.BranchedElement&&(0,a.t5)()&&i.updateBranchedQuestion(),e.SubQuestionMasters.forEach((function(n){return t.getOrCreateQuestionRuntime(n)}))}))},t.prototype.ensureProRuleManager=function(n){this.Wi=FormsPro.getRuleManager(this.qi,this.Model.QuestionRuntimeMasters,this,n,this.Answers)},t.prototype.eo=function(n,t,e){if(null!=n){var r=u.H.convertToArray(this.Form.Model.FormsProAnswerTagMapRT),i=n.match(/\[\[(.*?)\]\]/g);null!=i&&i.length>0&&i.forEach((function(i){if(""!=i){var o=r.filter((function(n){return n.name==i}))[0];null!=o&&(""!=o.value&&null!=o.value||(o.value=o.name),null!=n&&(t[e]=n.replaceAll(i,o.value),n=t[e]))}}))}else t[e]=n},t.prototype.Bi=function(){this.Hi.calculateQuestionRuntimeList(this.Yi)},t.prototype.calcProgressBarInfo=function(){return{showProgressBar:this.Form.isProgressBarVisible(),currentPageNumber:this.io()+1,totalPageNumber:this.Form.totalSectionCount()}},t.prototype.io=function(){var n=this.Model.RuntimeSectionId;if(!n)return 0;var t=this.Form.FormElementManager,e=t.getDescriptiveElementMasterById(n);return e?t.SectionMasters.indexOf(e)+(t.HeaderTopQuestionMasters.length>0?1:0):0},t.prototype.replaceAnswerTagsWithValue=function(n){var t=this;if((0,a.G7)("FormsProAnswerTag")&&n&&n.Question&&n.Question.Model.FormsProEnableAnswerTag&&""!=n.Question.Model.FormsProAnswerTag&&null!=n.Question.Model.FormsProAnswerTag){var e=u.H.convertToArray(this.Form.Model.FormsProAnswerTagMapRT),r=n.Question.Model.FormsProAnswerTag;r="[[".concat(r,"]]");var i=null!=n.Model.Answer&&(0,o.Me)(n.Model.Answer.toString());null!=n.Model.SelectedChoice&&""!=n.Model.SelectedChoice&&(i=n.Model.SelectedChoice);var s=e.filter((function(n){return n.name==r}))[0];s?s.value=i:e.push({name:r,value:i}),this.Form.Model.FormsProAnswerTagMapRT=e,u.H.convertToArray(this.Model.QuestionRuntimeMasters).forEach((function(n){var e=null!=n.Question.Model.FormsProRTQuestionTitle?JSON.parse(JSON.stringify(n.Question.Model.FormsProRTQuestionTitle)):JSON.parse(JSON.stringify(n.Question.Model.Title)),r=null!=n.Question.Model.FormsProRTSubtitle?JSON.parse(JSON.stringify(n.Question.Model.FormsProRTSubtitle)):JSON.parse(JSON.stringify(n.Question.Model.Subtitle));null!=n.Model.InitialFormsProLocalizedRuntimeTitle&&(e=JSON.parse(JSON.stringify(n.Model.InitialFormsProLocalizedRuntimeTitle))),null!=n.Model.InitialFormsProLocalizedRuntimeSubtitle&&(r=JSON.parse(JSON.stringify(n.Model.InitialFormsProLocalizedRuntimeSubtitle))),t.eo(e,n.Model,"FormsProRuntimeTitle"),null!=n.Model.InitialFormsProLocalizedRuntimeSubtitle&&(r=JSON.parse(JSON.stringify(n.Model.InitialFormsProLocalizedRuntimeSubtitle))),t.eo(r,n.Model,"FormsProRuntimeSubtitle")}))}},t.prototype.clearFileUploadAnswers=function(){this.Model.UploadingFileCount=0;var n=this.Model.QuestionRuntimeMasters;u.H.convertToArray(n).filter((function(n){return"Question.FileUpload"===n.Question.Model.Type})).forEach((function(n){return n.Model.Answer=void 0}))},t}(u.H.createObjectMasterClass("FormRuntime",I))},28792:function(n,t,e){"use strict";e.d(t,{j:function(){return v}});var r=e(34629),i=e(49105),o=e(76654),u=e(80974),s=e(59198),a=e(33471),c=e(46976),f=e(75187),l=e(71683),h=e(97410),d=e(36316),m={Answer:u.EY.reference(),AnswerEntity:u.EY.reference(),BranchedElement:u.EY.reference(),BranchingType:u.EY.string(),NextQuestionInOrder:u.EY.reference(),NextQuestionInitialized:u.EY.boolean(),QuizResult:u.EY.reference(),Visible:u.EY.reference(),FormsProOrdinal:u.EY.reference(),FormsProRuntimeTitle:u.EY.reference(),FormsProRuntimeSubtitle:u.EY.reference(),InitialFormsProLocalizedRuntimeTitle:u.EY.reference(),InitialFormsProLocalizedRuntimeSubtitle:u.EY.reference(),SelectedChoice:u.EY.reference(),CDSFileResponseId:u.EY.reference(),CDSFileId:u.EY.reference(),HasSensitiveInfo:u.EY.boolean()},v=function(n){function t(t,e){var r=n.call(this)||this;return r.oo=function(){return r.updateBranchedQuestion()},r.Vr=t,r.Vr.observe(r.oo),r.uo=e,(0,l.u3)((function(){r.addRule({Name:"UpdateBranchedQuestion",onChange:function(n){return r.updateBranchedQuestion()}})})),(0,l.CR)((function(){var n;if(r.addRule({Name:"executeFormsProBranching",onChange:function(n){return r.so()},InterestedFields:[r.Schema.Answer]}),null===(n=null==e?void 0:e.Form)||void 0===n?void 0:n.SettingMaster.Model.PauseAndResumeSurvey){var t=(0,f.Db)().vt;if(t){var i=t.split("_")[1];r.addRule({Name:"updatePausedResponse",onChange:function(n){return r.ao(i,t)},InterestedFields:[r.Schema.Answer]})}}})),r}return(0,r.C6)(t,n),Object.defineProperty(t.prototype,"Question",{get:function(){return this.Vr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SubQuestions",{get:function(){return this.Question.SubQuestionMasters},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SubQuestionRuntimeMasters",{get:function(){var n=this;return this.SubQuestions.map((function(t){return n.getSubQuestionRuntimeById(t.Model.Id)}))},enumerable:!1,configurable:!0}),t.prototype.getSubQuestionRuntimeById=function(n){return this.uo?this.uo.getOrCreateQuestionRuntimeById(n):null},t.prototype.verifyAnswer=function(){if(0===this.SubQuestionRuntimeMasters.length){if(this.Question.Model.IsMathQuiz){var n=(0,i.Bl)(this.Model.Answer||"{}"),t=null==n.Answer?this.Model.Answer:n.Answer;return this.Question.verify(t)===d.FF.Success}return this.Question.verify(this.Model.Answer)===d.FF.Success}return this.SubQuestionRuntimeMasters.every((function(n){return n.Question.verify(n.Model.Answer)===d.FF.Success}))},t.prototype.release=function(){this.Vr.unobserve(this.oo)},t.prototype.getAnswerEntity=function(){return{Answer:this.Question.getNormalizedAnswer(this.Model.Answer),QuestionId:this.Question.Model.Id}},t.prototype.calculateQuizResultFromModel=function(){0===this.SubQuestionRuntimeMasters.length?this.Model.QuizResult=this.Question.createQuizResult(this.Model.Answer):this.Model.QuizResult={IsAnswerCorrect:!1}},t.prototype.getScore=function(){var n=this.Model.AnswerEntity,t=n&&n.Score;return null!=t?t:this.Question.autoGradeWithQuizResult(this.Model.Answer,this.Model.QuizResult)},t.prototype.updateBranchedQuestion=function(){if(!this.Question.Deleted){var n=this.Model,t=this.Question.getBranchedResult(n.Answer,n.NextQuestionInOrder);this.bulkEdit((function(n){n.BranchedElement=t.TargetElement,n.BranchingType=t.Type}))}},t.prototype.so=function(){this.uo&&(this.uo.CurrentRuleManager()?this.uo.CurrentRuleManager().execute(this.Question.Model.Id,this.uo.Answers):(this.uo.ensureProRuleManager(),this.uo.Form.Model.MfpBranchingData&&this.uo.CurrentRuleManager().execute(this.Question.Model.Id,this.uo.Answers)))},t.prototype.ao=function(n,t){var e=this;(0,l.CR)((function(){if("Question.TextField"!==e.Question.Model.Type){var r=(0,a.MO)();(0,s.G7)("CVPartialResponse")&&e.uo.Form.SettingMaster.Model.RecordPartialResponse&&(r=e.uo.Form.SettingMaster.Model.RecordPartialResponse,(0,h.fL)({type:"CustomerVoice_PartialResponseSettingTaken",eventInfo:{Component:"PartialResponse",Value:r}})),(0,c.callIoCUpdatePR)(n,e.uo.Answers,e.uo.Form.Model.Id,e.uo.Model.RuntimeSectionId,t,r)}}))},t}(o.H.createObjectMasterClass("QuestionRuntime",m))},31140:function(n,t,e){"use strict";e.d(t,{E:function(){return o}});var r=e(64931),i=e(87578);function o(){return(0,r.cB)()?(0,i.JK)():(0,i.nu)()}},15490:function(n,t,e){"use strict";e.d(t,{S:function(){return o},z:function(){return u}});var r=e(34629),i=e(41594),o="single-progress-bar",u=function(n){if(n.$CurrentStep<0||n.$TotalSteps<=0||n.$TotalSteps0&&t[t.length-1].userId!==(0,p.m1)().userInfo.UserId)return i.createElement("div",{className:"question-coAuthor-notification-container-design-mode",key:"coAuthor"},u.map(t,(function(t){return n.Ro(t)})))},t.prototype.Ro=function(n){if(n.userId!==(0,p.m1)().userInfo.UserId){var t=this.props.LocalizedStrings.DesignPage_NavBar_CoAuthor_Section_Screen_Reader.format(n.displayName||n.userId,this.props.Ordinal);return i.createElement(Vn.D,{ariaLabel:t,displayText:(0,Un.K)(n.displayName,n.firstName,n.lastName),email:n.email,key:n.userId,name:n.displayName,tooltip:n.displayName||n.userId})}},t.prototype.Fo=function(n){return this.props.IsMobile||(0,U.Qv)()||n.Layout===Dn.oL.Horizontal&&n.Size===Dn.hJ.Large?{ImageLayout:"Bottom"}:{Height:n.ContainerHeight||(0,Nn.aV)(),ImageLayout:"Right",Width:n.ContainerWidth||(0,Nn.Vh)()}},t}(pn.h),Hn=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,r.C6)(t,n),t.prototype.render=function(){var n=this;return i.createElement(bn.N.Consumer,null,(function(t){t.LocalizedStrings;return i.createElement("div",{className:"form-renderer-section-container",role:"group","aria-label":n.props.SectionMaster.Model.Title,"data-id":n.props.SectionMaster.Model.Id},n.createSectionTitle(),i.createElement("div",{className:"form-renderer-section-content"},n.props.children))}))},t.prototype.createSectionTitle=function(){var n=this;return i.createElement(bn.N.Consumer,null,(function(t){var e=t.LocalizedStrings;return i.createElement(qn,{IsMobile:n.props.IsMobile,LocaleId:n.props.LocaleId,LocalizedStrings:e,Master:n.props.SectionMaster,ShouldShowImmersiveReaderButtons:n.props.ShouldShowImmersiveReaderButtons,IsRuntime:!0})}))},t}(pn.h),jn=e(34765),Qn=e(59434),Gn=e(49762);function $n(n){return i.createElement(Wn,n)}var Wn=function(n){function t(t){var e=n.call(this,t)||this;e.Eo=!1,e.xo=!1,e.Do=768,e.defaultLanguageId=e.props.Master.Model.DefaultLanguage,e.Mo=!0,e.Ao=0,e.Vo=!0,e.Uo=function(){e.setState({ShowPrintResult:!0,ReturnFromPrintResponse:!0}),window.setTimeout((function(){$(".form-content-container").appendTo($("body")),$(".reactshellheader").hide(),$(".top-view-container").hide(),$("#content-root").hide(),$(".form-content-container").show(),$(".title-menu-control-container, .menu-control-dropup").hide(),document.execCommand("print",!1,null)||window.print()}),1e3)},e.Bo=function(n){e.setState({ShouldShowImmersiveReaderButtons:n||!e.state.ShouldShowImmersiveReaderButtons})};var r=!1,o=t.IncrementalQuestionLoader;o&&(o.setFormRenderer(e),r=null!==o.getFormForFirstRender()&&(0,_.Ci)()&&!(0,M.lN)()),e.qo=i.createRef(),e.formRuntimeMaster=new tn.v(e.props.Master,{disableBranching:e.$i(),disableShuffle:r});var u=(0,h.qX)(),s=(0,h.Y6)();e.defaultLanguageName=u[e.defaultLanguageId]||s[e.defaultLanguageId];var a,c=(0,h.Z0)((0,p.m1)().cultureInfo.Name.toLowerCase()),f=!1;if((0,x.cvOnlyLanguageUtilityIoC)()){var l=e.Ho(),d=l.newLocaleId,m=l.forceUpdate;c=null!=d?d:c,f=m}var v=y.H.Collection.getItemWithKeyFields(e.props.Master.Model.LocaleList,{localeId:c});v?a=v.localeName:(0,on.qf)((function(){c=e.defaultLanguageId,a=e.defaultLanguageName}),(function(){if(c===e.props.Master.Model.DefaultLanguage)a=e.defaultLanguageName;else{var n=e.props.Master.isFieldReady(e.props.Master.Schema.CVDefaultLanguage)&&e.props.Master.Model.CVDefaultLanguage||e.props.Master.Model.DefaultLanguage;c=n,a=u[n]}})),e.jo(c,f),e.Qo(e.props.PersistedSectionId);var g=e.formRuntimeMaster.calcProgressBarInfo(),b=g.showProgressBar,I=g.currentPageNumber,F=g.totalPageNumber;return(0,w.Db)().oembedocv&&(0,on.CR)((function(){var n=new S;e.$o=function(t){return n.handleMessageFromParentWindow(t)},e.Do=400})),e.state={IsSmallScreen:(0,U.Qv)(e.Do),SubmitState:0,ShowDuplicateSpinner:!1,ShowErrorPage:!1,ShowPhishingWarningBar:!0,IsStudentViewMode:null!=e.props.Response,IsReportingView:!1,HideQuestions:!1,EmailReceiptConsent:!1,LocalizedResource:e.props.Master.Model.LocaleList.length&&{localeId:c,localeName:a},ShowSpinnerWhenChangeLanguage:!1,ShowSpinnerForFirstTimeLoadMultilingual:!1,LocalizedStrings:(0,O.qn)(),ShouldShowImmersiveReaderButtons:!1,ShowLongOperationMessage:!1,ShowProgressBar:b,CurrentPageNumber:I,TotalPageNumber:F,WrongQuestionCount:e.Wo().length,SubmitButtonDependencyReady:!(0,_.Pf)(),ShowSensitiveInfoWarning:!1},e.Jo=e.Jo.bind(e),e.yo=e.yo.bind(e),e.Xo=e.Xo.bind(e),e.Yo=e.Yo.bind(e),e.Zo=e.Zo.bind(e),e.iu=e.iu.bind(e),e.ou=e.ou.bind(e),e.uu=e.uu.bind(e),e.su=e.su.bind(e),e.au=e.au.bind(e),e.cu=e.cu.bind(e),e.fu=e.fu.bind(e),e.du=e.du.bind(e),e.mu=e.mu.bind(e),e.vu=e.vu.bind(e),e.pu=e.pu.bind(e),e.bu=e.bu.bind(e),e.wu=e.wu.bind(e),e.Su=e.Su.bind(e),e.Iu=e.Iu.bind(e),e.Fu=e.Fu.bind(e),e.Cu=e.Cu.bind(e),e._u=e._u.bind(e),e.ku=e.ku.bind(e),e.Pu=e.Pu.bind(e),(0,on.CR)((function(){e.Eo=(0,U.ip)(),e.xo=(0,_.G7)("FormsProEmbedCompactPlus")})),e.Tu=t.PhishingReviewUXFactory,e.Ru(),(0,_.Pf)()&&Promise.all([E.km.Resolve("IThirdPartyDateTimePicker"),(0,H.u)()]).then((function(){return e.setState({SubmitButtonDependencyReady:!0})})),e}return(0,r.C6)(t,n),t.prototype.componentWillMount=function(){var n=this;this.state.IsStudentViewMode?this.updateWithResponse(this.props.Response):this.populatePersistedAnswers(),this.formRuntimeMaster.observeAnswerChange(this.Xo),this.formRuntimeMaster.observe(this.Yo,[tn.v.Schema.RuntimeSectionId]),this.formRuntimeMaster.observe(this.yo,[tn.v.Schema.BranchChangeVersion,tn.v.Schema.QuestionRuntimeMasters,tn.v.Schema.UploadingFileCount]),(0,on.CR)((function(){n.formRuntimeMaster.TopQuestionRuntimeMasters().forEach((function(t){t.observe(n.yo,[en.j.Schema.Visible])})),n.formRuntimeMaster.Form.FormElementManager.SectionMasters.forEach((function(t){t.observe(n.yo,[t.Schema.Visible])})),n.setState({MSRewardsState:FormsPro.getInitilalResponseIncentiveState()}),n.formRuntimeMaster.resetQuestions();var t=n.formRuntimeMaster.getQuestionResponseFromQueryString();n.formRuntimeMaster.Answers=n.props.PersistedAnswers||t,window.addEventListener("keydown",(function(n){"Escape"===n.key&&parent&&parent.postMessage("keydown:escape","*")}))})),window.addEventListener("resize",this.Jo),(0,w.Db)().oembedocv&&(0,on.CR)((function(){window.addEventListener("message",n.$o),parent.postMessage("FormsComponentWillMount",(0,w.Db)().hostappdomain)}))},t.prototype.componentDidMount=function(){return(0,r.sH)(this,void 0,void 0,(function(){var n,e,i,o,u,s,a,f,m=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return(0,V.K3)(),window.addEventListener("afterprint",(function(){window.setTimeout((function(){m.state.ReturnFromPrintResponse&&($(".form-content-container").appendTo($(".form-content")),$(".reactshellheader").show(),$(".top-view-container").show(),$("#content-root").show(),$(".title-menu-control-container, .menu-control-dropup").show(),m.setState({ShowPrintResult:!1}),m.state.ReturnFromPrintResponse=!1)}),1e3)})),this.props.ForcedLocaleId?(this.props.Master.ensureFieldsReady([this.props.Master.Schema.LocalizedResources]).then((function(){var n=m.props.Master.Model.LocalizedResources;n&&n[0]&&n[0].localeId==m.props.ForcedLocaleId&&m.setState({LocalizedResource:n[0],ShowSpinnerForFirstTimeLoadMultilingual:!1})})),[3,8]):[3,1];case 1:return this.state.IsStudentViewMode?(n=this.props.Response.SubmitLanguage)?(o=JSON.parse(n).localeId,[4,this.jo(o)]):[3,3]:[3,4];case 2:r.sent(),this.ensureLayout(o),r.label=3;case 3:return[3,8];case 4:return(e=this.props.Master.Model.LocaleList).length>0?(i=this.props.Master.SyncContext===X.$.ResponseTimeForm,o=(0,h.Z0)((0,p.m1)().cultureInfo.Name.toLowerCase()),u=this.Ho(),s=u.newLocaleId,a=u.forceUpdate,o=null!=s?s:o,(f=y.H.Collection.getItemWithKeyFields(this.props.Master.Model.LocaleList,{localeId:o}))?[4,this.jo(o,a)]:[3,6]):[3,8];case 5:return r.sent(),this.ensureLayout(o),[3,7];case 6:this.ensureLayout(this.defaultLanguageId),o!==this.defaultLanguageId&&(0,on.qf)((function(){var n=d(m.defaultLanguageId);(0,O.j8)(n).then((function(n){m.setState({LocalizedStrings:n})}))}),(function(){var n=d(m.props.Master.isFieldReady(m.props.Master.Schema.CVDefaultLanguage)&&m.props.Master.Model.CVDefaultLanguage||m.props.Master.Model.DefaultLanguage);(0,O.j8)(n).then((function(t){m.ensureLayout(n),m.setState({LocalizedStrings:t})}))})),r.label=7;case 7:i&&(0,I.O7)("ResponsePage.MultiLingual.OpenForm",{browserLocaleId:o,defaultLocaleId:this.defaultLanguageId,firstRenderMatched:!!f,localeCount:e.length}),r.label=8;case 8:return(0,on.CR)((function(){m.formRuntimeMaster.resetQuestions()})),this.Eu(),L(),(0,l.lT)()||(0,c._x)()||(0,_.am)()||(0,P.MU)("ImmersiveReader"),(0,on.CR)((function(){var n=m.props.Master.SyncContext===X.$.ResponseTimeForm,e=document.getElementsByClassName("__question__ office-form-question");n&&e&&e[0]&&setTimeout((function(){(0,Qn.eS)(e[0]),t.scrollToTop()}),2e3)})),[2]}}))}))},t.prototype.Ho=function(){var n=this,t=null,e=!1,r=(0,x.cvOnlyLanguageUtilityIoC)();return(0,on.CR)((function(){var i,o,u=(0,C.u)();if(r&&(t=(0,h.Z0)(null===(i=r.getDefaultLanguage())||void 0===i?void 0:i.toLowerCase())),u){var s=y.H.Collection.getItemWithKeyFields(n.props.Master.Model.LocaleList,{localeId:u});!s&&r&&(u=null==u?void 0:u.toLowerCase(),u=(0,h.Z0)(null===(o=r.mapLanguageCodeOrNull(u))||void 0===o?void 0:o.toLowerCase()),s=y.H.Collection.getItemWithKeyFields(n.props.Master.Model.LocaleList,{localeId:u})),s||u===n.defaultLanguageId&&r?t=u:e=!0}})),{newLocaleId:t,forceUpdate:e}},t.prototype.Eu=function(){return(0,r.sH)(this,void 0,void 0,(function(){var n,t,e;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,this.Ou()];case 1:return n=r.sent(),[4,this.xu()];case 2:return t=r.sent(),[4,this.Du()];case 3:return e=r.sent(),this.setState({DuplicateNavBar:n,DuplicateMessage:t,ResultContainer:e}),[2]}}))}))},t.prototype.setResultContainer=function(n){return(0,r.sH)(this,void 0,void 0,(function(){var t,e;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t=this.setState,e={},[4,this.Du()];case 1:return t.apply(this,[(e.ResultContainer=r.sent(),e),n]),[2]}}))}))},t.prototype.componentDidUpdate=function(){return(0,r.sH)(this,void 0,void 0,(function(){var n=this;return(0,r.YH)(this,(function(t){return(0,V.K3)(),(0,T.X)($(".office-form-answerhint")),(0,on.CR)((function(){var t,e,r;document.title=(null===(t=n.state.LocalizedResource)||void 0===t?void 0:t.title)||(null===(r=null===(e=n.props.Master)||void 0===e?void 0:e.Model)||void 0===r?void 0:r.Title);var i=document.getElementsByClassName("cv-office-form-error-question-focus");if(0!==i.length&&n.Vo){var o=i[0];o.setAttribute("tabindex","0"),o.focus(),n.Vo=!1}})),[2]}))}))},t.prototype.componentWillUnmount=function(){var n=this;window.removeEventListener("resize",this.Jo),(0,w.Db)().oembedocv&&(0,on.CR)((function(){return window.removeEventListener("message",n.$o)})),this.formRuntimeMaster.observe(this.Yo),this.formRuntimeMaster.unobserveAnswerChange(this.Xo),this.formRuntimeMaster.unobserve(this.yo),this.formRuntimeMaster.release()},t.prototype.render=function(){var n=this;if(this.state.ShowSpinnerForFirstTimeLoadMultilingual)return this.Vu();var e,r=this.props.Master.SyncContext===X.$.SharedTimeForm;if(this.state.ShowErrorPage)return(0,B.y)({Error:this.error,FormId:this.props.Master.Model.Id,ShowCreateFormLink:!1});var o={className:(0,on.qf)((function(){return"office-form-content office-form-page-padding"}),(function(){return n.state.IsReportingView?"office-form-content office-form-page-padding":"office-form-content office-form-page-padding-preview"}))};this.props.HTMLAttributes&&(o.className=(0,g.x)(o.className,this.props.HTMLAttributes.className));var u=this.props.Master.Model;if(!this.state.IsReportingView&&this.state.ShowPhishingWarningBar&&(0,wn.E9)(u.ReputationTier)&&(o.className=(0,g.x)(o.className,"height-with-tip-bar")),r&&(o.className=(0,g.x)(o.className,"share-page")),(this.props.ViewMode===Gn.n.Mobile||this.state.IsSmallScreen)&&(o.className=(0,g.x)(o.className,"small-screen")),(0,on.CR)((function(){if(n.Eo){var t=n.xo?"forms-pro-compact-plus":"";n.state.IsSmallScreen?o.className=(0,g.x)(o.className,"forms-pro-compact",t):o.className=(0,g.x)(o.className,"small-screen","forms-pro-compact",t)}(0,w.Db)().disableresponsive&&"true"===(0,w.Db)().disableresponsive&&o.className&&(o.className=o.className.replace("small-screen",""))})),this.isMobile()&&(o.className=(0,g.x)(o.className,"mobile-view")),(0,on.CR)((function(){n.props.CustomStyle&&(o.className=(0,g.x)(o.className,"custom-style-content"))})),3===this.state.SubmitState&&!this.state.ShowPrintResult||4===this.state.SubmitState&&!this.state.ShowQuizResult&&!this.state.ShowPrintResult){var s,a,c;this.props.Master.Model.Settings.RequiresUniqueResponse||this.props.Master.Model.Settings.DisableSubmitAnother||(s=function(){return n.Uu()}),4===this.state.SubmitState&&(a=this.cu),this.props.Master.Model.EmailReceiptEnabled&&(c=this.Uo);var f=this.state.LocalizedResource.localeId;e=i.createElement(bn.N.Consumer,{children:function(t){return J({FormMaster:n.props.Master,LocaleId:f!==n.defaultLanguageId&&f,LocalizedStrings:t.LocalizedStrings,ShowPromotionMessage:!(0,M.fI)(),submitAnother:s,viewResultsHandler:a,printResultsHandler:c,CustomStyle:(0,on.CR)((function(){return n.props.CustomStyle})),msRewardsThankYouProps:(0,on.CR)((function(){return n.state.MSRewardsState})),SelectedThankYouMessage:(0,on.CR)((function(){return n.state.SelectedThankYouMessage}))})}}),(0,k.cP)()&&!this.isMobile()&&(e=i.createElement("div",null,e,i.createElement(Cn)))}else if(this.state.IsReportingView)e=i.createElement(bn.N.Consumer,{children:function(t){return W({LocalizedStrings:t.LocalizedStrings,LocaleId:n.state.LocalizedResource.localeId,FormMaster:n.props.Master,hideAbuseReport:n.mu})}});else{var l,h=!!this.state.ShowValidationStyle&&!!this.Wo().length;(0,on.CR)((function(){l=n.props.Master.hasSection()?n.formRuntimeMaster.ElementManager().getCurrentSection().Section.Model.Id:null})),e=i.createElement("div",null,i.createElement("div",{"aria-label":this.props.Master.Model.Title,className:"office-form office-form-theme-shadow",role:"form"},this.zu(),!this.isMobile()&&this.Bu(),(0,on.qf)((function(){return n.qu()}),(function(){return n.Hu()})),this.state.ResultContainer,i.createElement("div",{className:"office-form-body","data-id":l},this.ju(),this.props.PrintView&&this.Qu(),this.Gu(),this.props.PrintView&&t.createPrintTimePrivacyDeclare(),this.$u(),this.Wu(),this.state.DuplicateMessage,i.createElement("div",{className:this.Eo?"office-form-error-message-container compact-view":"office-form-error-message-container"},h?this.Ku():null,this.Ju()),this.Xu(),this.Yu())),this.Zu(l),this.ns())}var d="form-content-container";this.props.ViewMode===Gn.n.Mobile?d="form-content-container mobile-view":this.state.IsSmallScreen&&(d="form-content-container small-screen"),(0,on.CR)((function(){n.Eo&&(d=n.state.IsSmallScreen?(0,g.x)(d,"forms-pro-compact"):(0,g.x)(d,"small-screen","forms-pro-compact")),(0,w.Db)().disableresponsive&&"true"===(0,w.Db)().disableresponsive&&d&&(d=d.replace("small-screen",""))}));var m=0===this.props.Master.Model.LocaleList.length||this.state.LocalizedResource.localeId===this.defaultLanguageId||this.props.Master.isFieldReady(this.props.Master.Schema.LocalizedResources)&&this.props.Master.Model.LocalizedResources&&this.props.Master.Model.LocalizedResources.length>0;return i.createElement(bn.N.Provider,{value:this.state,children:i.createElement("div",{className:d,ref:this.qo,role:"main"},this.state.DuplicateNavBar,this.ts(),this.rs(),this.os(),i.createElement("div",o,this.props.HeaderMessage&&this.us(),i.createElement(jn.q,{ThemeMaster:this.props.Master.ThemeMaster}),(0,on.CR)((function(){return n.fs()})),this.isMobile()&&this.Bu(),m&&e),this.ls(),this.hs(),this.props.PrintView&&t.createPrintFooter())})},t.prototype.fs=function(){var n=this;return(0,on.qf)((function(){return null}),(function(){return(0,x.getIoCCreateHeaderThemeRenderer)({ThemeMaster:n.props.Master.HeaderThemeMaster,FormMaster:n.props.Master})}))},t.prototype.updateWithResponse=function(n){n&&(this.ds(n.Answers),this.formRuntimeMaster.updateWithResponse(n),this.setServerQuizResult(n.QuizResult),this.setState({ShowQuizResult:!0,IsStudentViewMode:!0}),this.setResultContainer())},t.prototype.Zu=function(n){var t=this;if((0,on.CR)((function(){return(0,_.G7)("FormsProHideFooter")}))){var e=(0,C.M8)();if(e&&"false"===e)return null}if(!this.props.MobileReadOnly){var r="ShowStatementWithNotice";return this.props.Master.SyncContext===X.$.ResponseTimeForm&&(0,k.Pf)()&&(r="ShowStatement"),i.createElement(yn.P,{FormMaster:this.props.Master,FooterType:r,FooterText:(0,on.CR)((function(){return t._u()})),LocaleId:this.state.LocalizedResource&&this.state.LocalizedResource.localeId,SectionId:n})}},t.prototype.rs=function(){if(this.Tu)return this.Tu.createPhishingWarningPage(this.props.Master,this.state.IsReportingView)},t.prototype.os=function(){var n=this;if(this.props.Master.SyncContext===X.$.DesignTimeForm)return null;var t=this.props.Master.Model.ReputationTier,e=this.vs()?"ShareForm":"Response";return(0,wn.E9)(t)&&!this.state.IsReportingView&&this.state.ShowPhishingWarningBar?i.createElement(bn.N.Consumer,{children:function(){return(0,q.U$)({Info:(0,wn.O4)(t,e),TipBarLocation:"Up",TipBarStyle:"YellowBackground",ShouldClose:!0,onClose:n.Cu})}}):void 0},t.prototype.Fu=function(){this.setState({IsReportingView:!0})},t.prototype.Cu=function(){this.setState({ShowPhishingWarningBar:!1})},t.prototype.jo=function(n,t){var e=this;void 0===t&&(t=!1),(n!==this.defaultLanguageId||t)&&this.props.Master.ensureFieldsReady([Y.z.Schema.LocalizedResources]).then((function(){(0,on.qf)((function(){if(e.state.IsStudentViewMode){var t=d(n);(0,O.j8)(t).then((function(t){e.setState({LocalizedStrings:t}),e.ps(n)}))}else e.ps(n)}),(function(){var t=d(n);(0,O.j8)(t).then((function(t){e.setState({LocalizedStrings:t}),e.ps(n)}))}))}))},t.prototype.ps=function(n){var t=this;this.props.Master.getLocaleResouceById(n).then((function(n){var e=t.props.Master.Model.LocalizedResources,r=n.localizedResources;0!==r.length&&(y.H.Collection.getItemWithKeyFields(e,{localeId:r[0].localeId})||y.H.Collection.itemsAddedInSource(e,r),t.setState({LocalizedResource:n&&r[0],ShowSpinnerForFirstTimeLoadMultilingual:!1}))}))},t.prototype.Gu=function(){var n=this;return(0,on.CR)((function(){if((0,_.G7)("CVAutoNavigateAutoSubmit")&&(0,w.Db)().autosubmit&&"true"===(0,w.Db)().autosubmit.toLowerCase()&&!n.props.Master.hasSection()&&0===n.formRuntimeMaster.TopQuestionRuntimeMasters().length)return n.Pu({LocalizedStrings:n.state.LocalizedStrings}),null})),this.state.HideQuestions?null:this.props.Master.hasSection()?this.gs():i.createElement("div",null,this.bs(this.formRuntimeMaster.TopQuestionRuntimeMasters()))},t.prototype.cu=function(){this.setState({ShowQuizResult:!0})},t.prototype.Yu=function(){if(this.state.ShowQuizResult&&!this.state.ShowPrintResult&&4===this.state.SubmitState)return i.createElement("div",{className:"office-form-quiz-back-to-result-link"},i.createElement("a",{href:"javascript:void(0)",onClick:this.fu},(0,O.qn)().Response_Page_Quiz_Result_Back_To_Thank_You_Message))},t.prototype.fu=function(){this.setState({ShowQuizResult:!1})},t.prototype.us=function(){return i.createElement("div",{className:"form-header-text-message"},this.props.HeaderMessage)},t.prototype.Ou=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){switch(n.label){case 0:return!(this.props.Master.SyncContext===X.$.SharedTimeForm)||this.state.IsReportingView?[2]:[4,e.e(642).then(e.bind(e,30835))];case 1:return[2,(0,n.sent().createDuplicateNavBarInternal)(this)]}}))}))},t.prototype.ts=function(){var n=this;if(this.Tu)return this.Tu.createAdminPhishingReviewNavBar(this.props.Master,(function(t){n.error=t,n.setState({ShowErrorPage:!0})}))},t.prototype.xu=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){switch(n.label){case 0:return this.props.Master.SyncContext!==X.$.SharedTimeForm?[3,2]:[4,e.e(642).then(e.bind(e,30835))];case 1:return[2,(0,n.sent().showDuplicateMessageInternal)(this)];case 2:return[2]}}))}))},t.prototype.ju=function(){if(4!==this.state.SubmitState&&!this.state.IsStudentViewMode&&!this.props.MobileReadOnly){var n=[this.ws(),this.Ss()];return n.some((function(n){return!!n}))?i.createElement.apply(i,(0,r.fX)(["div",{className:"office-form-notice-container"}],n,!1)):void 0}},t.prototype.ws=function(){var n=this,t=this.props.Master.Model.Settings,e=this.props.Master.SyncContext===X.$.SharedTimeForm,r=!this.formRuntimeMaster.ElementManager().isFirstPage();return e||r?void 0:i.createElement(bn.N.Consumer,{children:function(e){var r;if(t.IsAnonymous||t.NotRecordIdentity||n.props.PrintView)r="";else{var o=(0,p.m1)().userInfo.GivenName||(0,p.m1)().userInfo.DisplayName;o?r=e.LocalizedStrings.Response_NonAnonymous_Notice.format(o):((0,I.jg)("MissingUserName",{displayName:!!(0,p.m1)().userInfo.DisplayName,givenName:!!(0,p.m1)().userInfo.GivenName,userId:!!(0,p.m1)().userInfo.UserId}),r=e.LocalizedStrings.Response_NonName_Notice)}if(4!==n.state.SubmitState)return i.createElement("div",{},i.createElement("span",{className:"office-form-notice-long-text"},r))}})},t.prototype.Ss=function(){var n=this;if(!this.props.MobileReadOnly){var t=this.props.Master,e=[];return e=t.hasSection()&&!this.ys()?this.formRuntimeMaster.ElementManager().getCurrentSection().TopQuestionMasters.map((function(n){return n.Question.Model})):y.H.convertToArray(t.Model.Questions),(0,on.CR)((function(){e=e.filter((function(t){var e=n.formRuntimeMaster.TopQuestionRuntimeMasters().find((function(n){return n.Question.Model.Id===t.Id}));return e&&n.formRuntimeMaster.formsProQuestionVisiblityCheck(e)&&n.formRuntimeMaster.isContainingSectionVisible(t.Id)}))})),u.some(e,(function(n){return n.Required}))?i.createElement(bn.N.Consumer,{children:function(n){return i.createElement("div",null,i.createElement("span",{className:"office-form-required-notice-star"}),i.createElement("span",null,n.LocalizedStrings.Answer_Required_Notice))}}):void 0}},t.prototype.Du=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){switch(n.label){case 0:return this.state.IsStudentViewMode||4===this.state.SubmitState?[4,e.e(308).then(e.bind(e,91389))]:[3,2];case 1:return[2,(0,n.sent().createResultContainerInternal)(this)];case 2:return[2]}}))}))},t.prototype.Ku=function(){var n=this;return i.createElement(bn.N.Consumer,{children:function(t){var e,r=n.Wo(),o=r.map((function(n){return t.LocalizedStrings.Form_QuestionWithOrdinal.format(n)})).join(t.LocalizedStrings.Common_ItemSeperator);e=n.formRuntimeMaster.ElementManager().hasNextSection()?t.LocalizedStrings.Section_Question_Error_Message.format(r.length,o):t.LocalizedStrings.Form_Question_Error_Message.format(r.length,o);var u=(0,ln.a)({FluentIcon:"Warning",HTMLAttributes:{className:"office-form-alert-icon forms-icon-size16x16"}}),s=!!n.state.ShowValidationStyle&&!!r.length,a="";return n.Ao%2==0&&(a=" "),i.createElement("div",{className:(0,g.x)("office-form-submit-error",s?"":"NotVisible"),role:"alert","aria-label":"".concat(a)},u,i.createElement("span",{className:"error-message"},s?e:""))}})},t.prototype.Wo=function(){return this.formRuntimeMaster.Form.hasSection()?this.formRuntimeMaster.getQuestionsWithWrongAnswer(this.formRuntimeMaster.ElementManager().getCurrentSection().TopQuestionMasters):this.formRuntimeMaster.getQuestionsWithWrongAnswer(this.formRuntimeMaster.TopQuestionRuntimeMasters())},t.prototype.Vu=function(){if(this.state.ShowSpinnerForFirstTimeLoadMultilingual)return i.createElement("div",{className:"multi-lingual-page-loading-background"},i.createElement("div",{className:"page-loading-messagebox",tabIndex:0,"aria-label":(0,O.qn)().Common_Loading_Text,"aria-live":"polite"},i.createElement("div",{className:"page-loading-animation"},i.createElement("div",{className:"spinner-tile-animation"})),i.createElement("div",{className:"page-loading-message"},(0,O.qn)().Common_Loading_Text)))},t.prototype.Bu=function(){if(this.showMultiLingualSelect()){var n=this.props.Master.Model.LocaleList,t=[];t.push({DisplayName:this.defaultLanguageName,Key:"default-language",Value:this.defaultLanguageId}),u.forEach(n,(function(n){t.push({DisplayName:(0,x.getIoCCustomLanguageFriendlyName)(n.localeName||""),Key:n.localeId,Value:n.localeId||""})}));var e="multi-lingual-select-control office-form-theme-secondary-background";this.isMobile()&&(e=(0,g.x)(e,"isMobile"));var r=this.state.LocalizedResource.localeId,i=this.state.LocalizedStrings.MultiLingualEditionView_language_Name_label;return(0,hn.H)({HTMLAttributes:{className:e,disabled:this.props.MobileReadOnly},Label:i,onValueChange:this.Iu,Placeholder:t[0]&&t[0].DisplayName,PlaceholderFluentIcon:"Globe",SelectOptions:t,Value:r})}},t.prototype.ls=function(){if(this.state.ShowSpinnerWhenChangeLanguage)return i.createElement("div",{className:"multi-lingual-spinner-container"},i.createElement("div",{className:"multi-lingual-blank-page"}),i.createElement("div",{className:"multi-lingual-spinner"},i.createElement("div",{className:"spinner-tile-animation"})))},t.prototype.Iu=function(n){var t=this;(0,I.O7)("ResponsePage.MultiLingual.ChangeLanguage",{LocaleId:n});var e=d(n);(0,O.j8)(e).then((function(r){t.ensureLayout(e),t.setState({LocalizedStrings:r}),t.Is(n)})),(0,on.CR)((function(){var e,r;if(t.formRuntimeMaster.resetQuestions(),null===(e=t.formRuntimeMaster.Form)||void 0===e?void 0:e.Model.Settings.PauseAndResumeSurvey){var i=(0,w.Db)().vt;if(i)i.split("_")[1]&&(0,x.callIoCSetLocaleItem)(n,t.defaultLanguageId,t.defaultLanguageName,null===(r=t.formRuntimeMaster.Form)||void 0===r?void 0:r.Model.LocaleList)}}))},t.prototype.Is=function(n){if(n!==this.defaultLanguageId){if(this.props.Master.isFieldReady(Y.z.Schema.LocalizedResources)){var t=y.H.Collection.getItemWithKeyFields(this.props.Master.Model.LocalizedResources,{localeId:n});t?this.setState({LocalizedResource:t}):this.Fs(n)}}else this.setState({LocalizedResource:{localeId:this.defaultLanguageId,localeName:this.defaultLanguageName}})},t.prototype.Fs=function(n){var t=this;this.setState({ShowSpinnerWhenChangeLanguage:!0}),this.props.Master.getLocaleResouceById(n).then((function(n){y.H.Collection.itemsAddedInSource(t.props.Master.Model.LocalizedResources,n.localizedResources),t.setState({LocalizedResource:n&&n.localizedResources[0],ShowSpinnerWhenChangeLanguage:!1})}))},t.prototype.showMultiLingualSelect=function(){if((0,on.CR)((function(){return!0}))){var n=(0,C.dw)();if(n)return"true"===n;if(this.props.Master.Model.Settings.HideLanguageDropdown)return!1}return!(!this.props.Master.Model.LocaleList.length||this.state.IsStudentViewMode||!this.ys()&&!this.formRuntimeMaster.ElementManager().isFirstPage())},t.prototype.zu=function(){var n=this.props.Master,t=n.SyncContext===X.$.SharedTimeForm;if(!this.isMobile()&&(this.ys()||this.formRuntimeMaster.ElementManager().isFirstPage())&&(this.props.PrintView||!(!(0,k.Pf)()&&(0,c.KV)()||(0,p.m1)().userInfo.IsMsa)&&t&&n.isFieldReady(Y.z.Schema.DataClassificationLabel)&&n.Model.DataClassificationLabel)){var e=(0,g.x)(this.showMultiLingualSelect()?"office-form-duplicate-classification-label-with-multilingual":"office-form-duplicate-classification-label-without-multilingual","office-form-duplicate-classification-label","office-form-theme-secondary-background");return i.createElement(gn,{FormMaster:this.props.Master,HTMLAttributes:{className:e},DesignTimeView:!1})}},t.prototype.vs=function(){return this.props.Master.SyncContext===X.$.SharedTimeForm},t.prototype.Cs=function(){return 1===this.state.SubmitState||5===this.state.SubmitState},t.prototype.ensureLayout=function(n){this._s((0,h.Bn)(n),n)},t.prototype._s=function(n,t){var e=this,r=this.props.Master.SyncContext===X.$.ResponseTimeForm,i=this.props.Master.SyncContext===X.$.DesignTimeForm&&!(0,l.Fr)(),o=this.props.Master.SyncContext===X.$.DesignTimeForm&&(0,l.Fr)(),u=n?"rtl":"ltr";r?($("html").attr("lang",t),$(".form-content").attr("dir",u),F(n?m.ResponsePageRtl:m.ResponsePage).then((function(){return e.forceUpdate()}))):i?($(".form-content").attr({dir:u,lang:t}),F(n?m.DesignPageRtl:m.DesignPage).then((function(){return e.forceUpdate()}))):o&&($(".form-content").attr({dir:u,lang:t}),F(n?m.MobileDesignPageRtl:m.MobileDesignPage).then((function(){return e.forceUpdate()})))},t.prototype.qu=function(){var n=this.state.LocalizedResource.localeId;return(0,D.j)({Form:this.props.Master,LocaleId:n!==this.defaultLanguageId&&n,IsMobile:this.props.ViewMode===Gn.n.Mobile||(0,l.Fr)(),IsReadOnlyOnMobile:this.props.MobileReadOnly,IsSlimTitle:!this.ys()&&!this.formRuntimeMaster.ElementManager().isFirstPage(),ImmersiveReaderToggleProps:!this.props.DisableImmersiveReader&&{ShouldShowImmersiveReaderButtons:this.state.ShouldShowImmersiveReaderButtons,ToggleImmersiveReaderButtons:this.Bo},ProgressBarDesc:this.ks()?this.Ps():void 0})},t.prototype.Hu=function(){var n=(0,C.wp)();if(n&&"false"===n)return null;var t=void 0;if(this.props.Master.isFieldReady(Y.z.Schema.CustomCssFileName)&&this.props.Master.isFieldReady(Y.z.Schema.CustomCSSInLineHeaderToggle)){var e=this.state.LocalizedResource.localeId;this.props.Master.Model.CustomCssFileName&&""!==this.props.Master.Model.CustomCssFileName&&"true"!==this.props.Master.Model.CustomCSSInLineHeaderToggle?(0,C.Ey)()?(FormsPro.loadCustomCss(this.props.CustomStyle,"CustomStyle"),t=this.qu()):t=i.createElement(FormsPro.CustomTitleContainer,{Form:this.props.Master,LocaleId:e!==this.defaultLanguageId&&e,IsMobile:this.props.ViewMode===Gn.n.Mobile||(0,l.Fr)(),IsSlimTitle:!1,CustomStyle:this.props.CustomStyle}):t=this.qu()}return t},t.prototype.Ts=function(n,t){var e=n.Section,r=n.TopQuestionMasters;if(!e)return this.bs(r);var o=e.Model.Id,u=this.state.LocalizedResource.localeId,s=[];t||s.push(i.createElement(Tn,{HasTheme:!this.isMobile(),key:"form-section-breaker-"+o}));var a=this.bs(r);return s.push(i.createElement(Hn,{children:a,Disabled:!0,DisableShuffle:!0,Expaned:!0,IsMobile:this.props.ViewMode===Gn.n.Mobile||(0,l.Fr)(),LocaleId:u!==this.defaultLanguageId&&u,key:"form-section-container-"+o,SectionMaster:e,ShouldShowImmersiveReaderButtons:this.state.ShouldShowImmersiveReaderButtons})),s},t.prototype.gs=function(){var n=this;if(this.ys())return[this.formRuntimeMaster.ElementManager().getAllSections().map((function(t,e){return n.Ts(t,0===e)}))];var t=this.formRuntimeMaster.ElementManager().getCurrentSection();return t&&(0,on.CR)((function(){for(var e=n.formRuntimeMaster;t;){var r=t.Section&&e.formsProSectionVisiblityCheck(t.Section),i=t.TopQuestionMasters.length>0,o=i&&t.TopQuestionMasters.filter((function(n){return e.formsProQuestionVisiblityCheck(n)})).length>0;if(!i||r&&o)break;e.ElementManager().gotoNextSection(),t=e.ElementManager().getCurrentSection()}})),this.Ts(t,!0)},t.prototype.bs=function(n){var t=this;if(n.length<=0)return null;var e,r=this.state.ShowValidationStyle,o=this.state.ShowQuizResult,s=this.state.ShowPrintResult,a=0;(0,on.qf)((function(){e=u.indexOf(t.formRuntimeMaster.TopQuestionRuntimeMasters(),n[0])+1}),(function(){var r=t.formRuntimeMaster,i=r.TopQuestionRuntimeMasters().filter((function(n){return r.formsProQuestionVisiblityCheck(n)&&r.isContainingSectionVisible(n.Question.Model.Id)})),o=n.filter((function(n){return t.formRuntimeMaster.formsProQuestionVisiblityCheck(n)&&r.isContainingSectionVisible(n.Question.Model.Id)}));e=u.indexOf(i,o[0])+1}));var c=this.state.LocalizedResource.localeId;return(0,on.CR)((function(){var e=t.formRuntimeMaster,r=n.filter((function(n){return t.formRuntimeMaster.formsProQuestionVisiblityCheck(n)&&e.isContainingSectionVisible(n.Question.Model.Id)}));(0,_.G7)("CVBranchingOptimization")&&(n=r)})),i.createElement(bn.N.Consumer,{children:function(i){return n.map((function(n,u){var f=n.Question.Model.Id,l=e+u;(0,on.CR)((function(){var r=t.formRuntimeMaster;r.formsProQuestionVisiblityCheck(n)&&r.isContainingSectionVisible(f)&&(n.Model.FormsProOrdinal=e+a,l=n.Model.FormsProOrdinal,a++)}));var h={SyncContext:t.props.Master.SyncContext,Master:n,LocaleId:c!==t.defaultLanguageId&&c,LocalizedStrings:i.LocalizedStrings,Ordinal:l,Disabled:4===t.state.SubmitState||t.state.IsStudentViewMode||t.props.ReadOnlyMode||n.Question.hasRuntimeError()||t.props.Master.SyncContext===X.$.ResponseDetailTimeForm,key:f,IsMobile:t.isMobile(),IsPrintViewDesignTime:t.props.PrintView,ShowValidationStyle:r,ShowQuizResult:o,ShowPrintResult:s,ShowPhishingWarning:t.Rs(),ShowFileInfo:!!t.props.HeaderMessage,HideMedia:!1,IsStudentViewMode:t.state.IsStudentViewMode,HideDeleteButton:t.Cs()||4===t.state.SubmitState||t.state.IsStudentViewMode,increaseUploadingFileCountCallBack:t.uu,decreaseUploadingFileCountCallBack:t.su,setAbuseReportStateCallBack:t.au,EnableShowHideQuestion:(0,on.qf)((function(){return!1}),(function(){return!0})),ShouldShowImmersiveReaderButtons:t.state.ShouldShowImmersiveReaderButtons,IncrementalLoadFormsEnabled:!!t.props.IncrementalQuestionLoader,SmallScreenCutoffOverride:t.Do};return(0,Pn.g)(h)}))},key:"elementRenderers"})},t.prototype.Es=function(){var n=this;return this.Ls()?i.createElement(bn.N.Consumer,{children:function(t){return i.createElement("div",{className:"office-form-bottom-button-div"},(0,mn.w)({HTMLAttributes:{className:"section-next-button office-form-bottom-button office-form-theme-button",disabled:!!n.formRuntimeMaster.Model.UploadingFileCount,onKeyUp:n.wu,onMouseUp:n.bu},ButtonStyle:1,Text:(0,w.Db)().oembedocv?t.LocalizedStrings.SEND_LABEL:t.LocalizedStrings.Common_Next_Text}))}}):null},t.prototype.Os=function(){var n=this;if(this.ys()||!this.formRuntimeMaster.ElementManager().hasPrevSection()){var t=!0;if((0,on.CR)((function(){(0,_.G7)("CVAdvBranchingImprovements")&&(0,w.Db)().parentSurveyId&&(t=!1)})),t)return null}var e=this.Cs()||!!this.formRuntimeMaster.Model.UploadingFileCount;return i.createElement(bn.N.Consumer,{children:function(t){return i.createElement("div",{className:"office-form-bottom-button-div"},(0,mn.w)({HTMLAttributes:{className:"office-form-bottom-button office-form-dark-theme-button gray-background",disabled:e,onKeyUp:n.pu,onMouseUp:n.vu},ButtonStyle:1,Text:(0,w.Db)().oembedocv?t.LocalizedStrings.Common_Previous_Text:t.LocalizedStrings.Common_Back_Text}))}})},t.prototype.Ju=function(){var n=this,t=(0,ln.a)({FluentIcon:"Warning",HTMLAttributes:{className:"office-form-alert-icon forms-icon-size16x16"}}),e=this.Cs()&&this.state.ShowLongOperationMessage;if(2===this.state.SubmitState||e)return i.createElement(bn.N.Consumer,{children:function(r){return i.createElement(dn.L,{HTMLAttributes:{className:(0,g.x)("office-form-submit-error",e?"submitting-warning":"")},LazyRendering:!0,Role:"Alert"},e?void 0:t,i.createElement("span",{className:"error-message"},e?r.LocalizedStrings.RetryRecoverableErrorMessage_Submitting:n.state.ErrorMessage))}})},t.prototype.Ls=function(){return!this.ys()&&this.formRuntimeMaster.ElementManager().hasNextSection()},t.prototype.hs=function(){var n,t,e=this.props.Master;if(3===this.state.SubmitState){if(this.state.LocalizedResource&&this.state.LocalizedResource.localeId!==e.Model.DefaultLanguage)n=nn.h.getFormResourceMaster(this.state.LocalizedResource.localeId,e).Model.thankYouMessage;n=n||e.Model.ThankYouMessage||this.state.LocalizedStrings.Renderer_SubmissionSucceeded,t=this.state.LocalizedStrings.Response_Page_Thanks}return i.createElement("div",{className:"office-form-submit-success-hint","aria-live":"polite"},i.createElement("div",null,t),i.createElement("div",null,n))},t.prototype.Ds=function(){return(0,_.G7)("CustomerVoiceHideSubmitButton")&&"true"===(0,w.Db)().hideSubmitButton},t.prototype.Ms=function(){var n=this;if(!(this.Ls()||4===this.state.SubmitState||this.state.IsStudentViewMode||this.props.MobileReadOnly||this.Ds())){var t=this.Cs(),e=t||!this.state.SubmitButtonDependencyReady||this.props.Master.SyncContext===X.$.SharedTimeForm||this.props.Master.SyncContext===X.$.AdminPhishingReviewForm||this.props.Master.SyncContext===X.$.ResponseDetailTimeForm||this.props.DisableSubmitButton||(0,U.p1)()||!!this.formRuntimeMaster.Model.UploadingFileCount||(0,on.CR)((function(){return n.props.Master.IsSampleForm}));return(0,on.CR)((function(){e&&!t&&(0,I.fL)({eventInfo:{SubmitButtonDependencyReady:n.state.SubmitButtonDependencyReady?"Yes":"No",SharedTimeForm:n.props.Master.SyncContext===X.$.SharedTimeForm?"Yes":"No",AdminPhishingReviewForm:n.props.Master.SyncContext===X.$.AdminPhishingReviewForm?"Yes":"No",DisableSubmitButton:n.props.DisableSubmitButton?"Yes":"No",isOEmbedSPOPreview:(0,U.p1)()?"Yes":"No",UploadingFileCount:n.formRuntimeMaster.Model.UploadingFileCount?"Yes":"No"},type:"CVResponseDisableSubmitButton"})})),i.createElement(bn.N.Consumer,{children:function(o){return i.createElement("div",{className:"__submit-button-div__ office-form-bottom-button-div"},(0,mn.w)({HTMLAttributes:{className:(0,g.x)("__submit-button__ office-form-bottom-button office-form-theme-button",t?"office-form-hide-text":""),disabled:e,title:(0,U.p1)()?o.LocalizedStrings.Renderer_SubmitButtonSPODisabledTitle:void 0,onClick:function(){return(0,r.sH)(n,void 0,void 0,(function(){var n=this;return(0,r.YH)(this,(function(t){return this.Pu(o),(0,on.CR)((function(){n.Ao++})),[2]}))}))}},ButtonStyle:1,Text:(0,w.Db)().oembedocv?o.LocalizedStrings.SEND_LABEL:(0,on.qf)((function(){return o.LocalizedStrings.Renderer_SubmitButtonText}),(function(){var t=o.LocalizedStrings.Renderer_SubmitButtonText,e=n.formRuntimeMaster.CurrentRuleManager();return(0,_.G7)("CVAdvBranchingImprovements")&&e&&e.getChainedStatus()&&e.getIsChainedSurvey()&&(t=o.LocalizedStrings.Common_Next_Text),t}))}),n.As())}})}},t.prototype.Vs=function(n){return(0,r.sH)(this,void 0,void 0,(function(){var t=this;return(0,r.YH)(this,(function(i){return this.Vo=!0,0!==this.state.SubmitState&&2!==this.state.SubmitState||this.setState({SubmitState:5},(function(){return(0,r.sH)(t,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),[4,e.e(981).then(e.bind(e,46976))];case 1:return t=r.sent().handleSubmitButtonClickIoC,5!==this.state.SubmitState?[3,3]:[4,t(n,this)];case 2:r.sent(),r.label=3;case 3:return[3,5];case 4:return r.sent(),this.setState({SubmitState:2,ErrorMessage:n.LocalizedStrings.Error_Message_15001}),[3,5];case 5:return[2]}}))}))})),[2]}))}))},t.prototype.As=function(){if(this.Cs())return i.createElement("div",{className:"submit-spinner"},i.createElement("div",{className:"common-spinner-circle"},i.createElement(dn.L,{HTMLAttributes:{className:"screenReaderVisible"},LazyRendering:!0,Role:"Log",children:(0,O.qn)().Response_Page_Submitting_Message})))},t.prototype.SetMsRewardsThankyouState=function(n){var t=this.state.MSRewardsState;if(t.MSRewardsDataState!=s.GG.NotAvailable){var e=n.msRewardsData;if(t.ResponseId=n.id,null!=e){var r=JSON.parse(e);if(t.MSRewardsData=r,r.isError)switch(r.requestStatus){case"INVALID_COUNTRY_CODE":t.MSRewardsDataState=s.GG.NotAvailableDueToCountryAvailablity;break;case"PROMOCODES_EXHAUSTED":t.MSRewardsDataState=s.GG.ExhaustedPromocodes;break;case"TENANTSETTING_MODIFIED":t.MSRewardsDataState=s.GG.NotAvailableDueToSettingChange;break;default:t.MSRewardsDataState=s.GG.Failed}else t.MSRewardsDataState=s.GG.Success}else t.MSRewardsDataState=s.GG.SuccessWithNoData;this.setState({MSRewardsState:t})}},t.prototype.setThankYouMessageState=function(){var n=this;(0,x.getIocThankYouMessageKey)(this.props.Master,this.formRuntimeMaster.Answers,y.H.convertToArray(this.formRuntimeMaster.Model.QuestionRuntimeMasters)).then((function(t){return n.setState({SelectedThankYouMessage:t})}))},t.prototype.Uu=function(){var n=this;(0,I.O7)("ResponsePage.ThanksView.SubmitAnother"),this.ds(),(0,on.CR)((function(){n.formRuntimeMaster.CurrentRuleManager()&&n.formRuntimeMaster.CurrentRuleManager().initQuestionList(n.formRuntimeMaster),n.formRuntimeMaster.resetQuestions()})),this.Qo(),(0,on.CR)((function(){n.formRuntimeMaster.Form.FormElementManager.SectionMasters.forEach((function(n){return n.Model.Visible=null}))})),this.formRuntimeMaster.updateWithResponse(null),this.setState({ErrorMessage:void 0,ShowValidationStyle:!1,ShowQuizResult:!1,SubmitState:0,ShowLongOperationMessage:!1,IsStudentViewMode:!1,HideQuestions:!0,EmailReceiptConsent:!1},(function(){n.setState({HideQuestions:!1},t.scrollToTop)}))},t.prototype.ds=function(n){this.startTime=new Date,this.formRuntimeMaster.clearQuizResult(),this.formRuntimeMaster.Answers=n||[]},t.prototype.Qo=function(n){var t=this;n&&(0,on.CR)((function(){var e,r,i,o,u,s,a=null===(r=null===(e=t.props.Master)||void 0===e?void 0:e.FormElementManager)||void 0===r?void 0:r.SectionMasters,c=null==a?void 0:a.filter((function(t){return t.Model.Id===n})),f=null;(null==c?void 0:c.length)>0&&(f=c[0]),f&&!1!==(null===(i=f.Model)||void 0===i?void 0:i.Visible)&&!0!==(null===(o=f.Model)||void 0===o?void 0:o.Hidden)||(null==(c=a.filter((function(n){return!1!==n.Model.Visible&&!0!==n.Model.Hidden})))?void 0:c.length)>0&&(n=null===(s=null===(u=c[0])||void 0===u?void 0:u.Model)||void 0===s?void 0:s.Id)})),this.formRuntimeMaster.Model.RuntimeSectionId=n||null},t.prototype.populatePersistedAnswers=function(n){if(!this.state.IsStudentViewMode){var t=(this.props.PersistedAnswers||[]).slice(0);if(n&&this.props.AnswerStorage){var e=[];(this.props.AnswerStorage.Answers||[]).forEach((function(n){var i=n.QuestionId,o=n.Answer;if(null!==o){var s=u.findIndex(t,(function(n){return n.QuestionId===i}));s>-1?t[s]=(0,r.Cl)((0,r.Cl)({},t[s]),{Answer:o}):e.push(n)}})),t=t.concat(e)}this.ds(t)}},t.prototype.setServerQuizResult=function(n){if(n){var t=(0,b.Bl)(n);Array.isArray(t)&&this.formRuntimeMaster.setQuizResults(t)}else this.formRuntimeMaster.calculateQuizResultFromModel()},t.prototype.isMobile=function(){switch(this.props.ViewMode){case Gn.n.Desktop:return!1;case Gn.n.Mobile:return!0;default:return(0,l.Fr)()}},t.prototype.Xo=function(){var n=this,t=this.props.persistAnswer;t&&(this.formRuntimeMaster.isDefaultAnswer()?t(void 0):((0,on.CR)((function(){(0,_.G7)("CVAutoNavigateAutoSubmit")&&((0,w.Db)().autosubmit&&"true"===(0,w.Db)().autosubmit.toLowerCase()&&(n.iu()||!n.props.Master.hasSection())&&n.Zo()&&n.ou()&&n.Pu({LocalizedStrings:n.state.LocalizedStrings}),(0,w.Db)().autonavigate&&"true"===(0,w.Db)().autonavigate.toLowerCase()&&n.Zo()&&n.ou()&&n.bu())})),t(y.H.convertToArray(this.formRuntimeMaster.Answers)))),(0,on.CR)((function(){(0,_.G7)("CVAdvBranchingImprovements")&&n.forceUpdate()}));var e=this.Wo().length;e!==this.state.WrongQuestionCount&&this.setState({WrongQuestionCount:e})},t.prototype.Zo=function(){var n=this;return(0,on.CR)((function(){return 1===n.formRuntimeMaster.ElementManager().getCurrentSection().TopQuestionMasters.map((function(n){return n.Question.Model})).length}))},t.prototype.iu=function(){var n=this;return(0,on.CR)((function(){return!n.formRuntimeMaster.ElementManager().hasNextSection()}))},t.prototype.ou=function(){var n=this;return(0,on.CR)((function(){var t=n.formRuntimeMaster.ElementManager().getCurrentSection().TopQuestionMasters.map((function(n){return n.Question.Model})),e=t[0].Type,r=t[0].QuestionInfo,i=JSON.parse(r);return"Question.Choice"===e&&1==i.ChoiceType&&!i.AllowOtherAnswer||"Question.NPS"===e||"Question.Rating"===e}))},t.prototype.Yo=function(){var n=this.props.persistSectionId;n&&(null==this.formRuntimeMaster.Model.RuntimeSectionId?n():n(this.formRuntimeMaster.Model.RuntimeSectionId));var t={ShowValidationStyle:!1};if(this.state.ShowProgressBar){var e=this.formRuntimeMaster.calcProgressBarInfo(),r=e.currentPageNumber,i=e.totalPageNumber;r!==this.state.CurrentPageNumber&&(t.CurrentPageNumber=r),i!==this.state.TotalPageNumber&&(t.TotalPageNumber=i)}this.setState(t,this.ku)},t.prototype.ku=function(){this.Mo||(0,Qn.eS)(o.findDOMNode(this)),t.scrollToTop()},t.prototype.uu=function(){this.formRuntimeMaster.Model.UploadingFileCount++},t.prototype.su=function(){this.formRuntimeMaster.Model.UploadingFileCount>0&&this.formRuntimeMaster.Model.UploadingFileCount--},t.prototype.au=function(){this.setState({IsReportingView:!0})},t.prototype.mu=function(){this.setState({IsReportingView:!1})},t.prototype.Jo=function(){(0,U.Qv)(this.Do)!==this.state.IsSmallScreen?this.setState({IsSmallScreen:!this.state.IsSmallScreen}):(0,V.K3)()},t.prototype.Xu=function(){var n=this;if(this.Rs())return i.createElement(bn.N.Consumer,{children:function(t){return i.createElement("div",{className:"office-form-notice-password"},t.LocalizedStrings.Response_Page_Footer_Notice,i.createElement("a",{className:(0,f.J)()?"office-form-notice-report office-form-theme-spo-link":"office-form-notice-report",href:"javascript:void(0)",onClick:function(){return n.setState({IsReportingView:!0})}},t.LocalizedStrings.Response_Page_Footer_Report))}})},t.prototype.Rs=function(){var n=this,t=this.props.Master.Model.Settings,e=this.props.Master.SyncContext===X.$.ResponseTimeForm;if(!t.IsAnonymous||!e||this.state.ShowQuizResult||(0,c._x)())return!1;var r=!1;return(0,on.qf)((function(){r=(0,_.G7)("HideReportAbuse")}),(function(){if(((0,_.G7)("FormsProDisableAntiFishingNotice")||(0,_.G7)("FormsProEmbedCompactPlus")&&n.Eo)&&(r=!0),(0,_.G7)("FormsProHideFooter")){var t=(0,C.M8)();t&&"false"===t&&(r=!0)}})),!r},t.prototype.ns=function(){var n=this;return this.state.ShowSensitiveInfoWarning?i.createElement(bn.N.Consumer,{children:function(t){return e={Context:t,ShowReportAbuse:n.Rs(),cancel:function(){return n.setState({ShowSensitiveInfoWarning:!1})},reportAubse:function(){return n.setState({IsReportingView:!0})},submit:function(){n.setState({ShowSensitiveInfoWarning:!1}),n.Vs(t)}},r=function(){return e.cancel()},o=(0,Sn.n)({ButtonStyle:1,GlyphButtonStyle:"GlyphOnly",HTMLAttributes:{autoFocus:!0,className:"sensitiveinfo-close",onClick:r},FluentIcon:"Dismiss",IconClassName:"forms-icon-size16x16",Text:e.Context.LocalizedStrings.Common_Close_Text}),u=(0,mn.w)({HTMLAttributes:{autoFocus:!1,className:"sensitiveinfo-button",onClick:function(){return e.submit()}},ButtonStyle:1,Text:e.Context.LocalizedStrings.Renderer_SubmitButtonText}),s=(0,mn.w)({HTMLAttributes:{autoFocus:!1,className:"sensitiveinfo-button",onClick:r},ButtonStyle:1,Text:e.Context.LocalizedStrings.Common_Cancel_Text}),a=e.ShowReportAbuse?i.createElement("div",{className:"sensitiveinfo-abuse"},e.Context.LocalizedStrings.Response_Page_Footer_Notice,i.createElement("a",{className:"office-form-notice-report",href:"javascript:void(0)",onClick:function(){return e.reportAubse()}},e.Context.LocalizedStrings.Response_Page_Footer_Report)):null,i.createElement("div",{"aria-label":e.Context.LocalizedStrings.Response_Page_SensitiveInfo_Dialog,className:"sensitiveinfo-container",style:{lineHeight:"normal"}},i.createElement("div",{className:"sensitiveinfo-dialog"},o,i.createElement("div",{className:"sensitiveinfo-box"},i.createElement("div",{className:"sensitiveinfo-title"},e.Context.LocalizedStrings.Response_Page_SensitiveInfo_Dialog_Title),i.createElement("div",{className:"sensitiveinfo-subtitle"},e.Context.LocalizedStrings.Response_Page_SensitiveInfo_Dialog_Subtitle),i.createElement("div",{className:"form-sensitive-button-contianer"},i.createElement("div",{className:"sensitiveinfo-buttons"},u,s)),a)));var e,r,o,u,s,a}}):null},t.scrollToTop=function(){(0,A._f)($(".office-form-title-container"),$(".office-form-content"),void 0,void 0,!0)},t.scrollToShowSubmitError=function(){(0,A._f)($(".office-form-submit-error"),$(".office-form-content"),void 0,20,!0)},t.prototype.$u=function(){var n=this,t=this.props.Master.Model,e=t.EmailReceiptEnabled&&!(0,c._x)()&&!t.Settings.IsAnonymous&&!t.Settings.NotRecordIdentity&&!this.state.ShowQuizResult&&!this.state.ShowPrintResult&&!this.Ls(),r=!this.state.ShowQuizResult&&!this.state.ShowPrintResult&&!this.Ls()&&t.EmailReceiptEnabled;return i.createElement(bn.N.Consumer,{children:function(t){return e?(o={HTMLAttributes:{className:"office-form-email-receipt-checkbox"},Value:n.state.EmailReceiptConsent,Description:t.LocalizedStrings.Response_Page_EmailReceipt_Checkbox_Description,SpanClassName:"office-form-email-receipt-checkbox-description",onValueChange:function(t){n.setState({EmailReceiptConsent:t})}},i.createElement(fn,o)):r?i.createElement("div",{className:"office-form-email-receipt-checkbox"},i.createElement("label",{},i.createElement("span",{className:"email-anonymous-des"},t.LocalizedStrings.Response_EmailReceipt_Anonymous),n.props.children)):null;var o}})},t.prototype.Wu=function(){var n=this;return i.createElement("div",{className:"office-form-navigation-container","data-id":this.formRuntimeMaster.Model.RuntimeSectionId},i.createElement("div",{className:"office-form-button-container"},this.Os(),(0,on.CR)((function(){if((0,_.G7)("CustomerVoiceEmbedCancelButton")&&(0,U.rm)()&&(0,C.Mt)())return i.createElement(bn.N.Consumer,{children:function(t){return i.createElement("div",{className:"office-form-bottom-button-div"},(0,mn.w)({HTMLAttributes:{className:"section-cancel-button office-form-bottom-button office-form-dark-theme-button gray-background",onClick:function(){if((0,w.Db)().datawithevent){var t={Type:"FormResponseCanceled",FormTitle:n.formRuntimeMaster.Form.Model.Title,Message:null};window.parent.postMessage(t,(0,w.Db)().hostappdomain)}else window.parent.postMessage("FormResponseCanceled","*")}},ButtonStyle:1,Text:t.LocalizedStrings.Common_Cancel_Text}))}})})),!this.state.ShowPrintResult&&this.Ms(),this.Es()),this.Us())},t.prototype.Us=function(){if(this.ks()){var n=(0,rn.z)({$CurrentStep:this.state.CurrentPageNumber,$TotalSteps:this.state.TotalPageNumber,$DescriptionText:this.Ps()});return i.createElement("div",{className:"progress-bar-container"},n)}},t.prototype.ks=function(){var n=this.state,t=n.ShowProgressBar,e=n.CurrentPageNumber,r=n.TotalPageNumber;return t&&e>0&&r>1&&!this.ys()},t.prototype.Ps=function(){return this.state.LocalizedStrings.Response_Page_ProgressBar_Description.format(this.state.CurrentPageNumber,this.state.TotalPageNumber)},t.prototype.zs=function(){return!(this.formRuntimeMaster.getQuestionsWithWrongAnswer(this.formRuntimeMaster.ElementManager().getCurrentSection().TopQuestionMasters).length>0)||(this.setState({ShowValidationStyle:!0},t.scrollToShowSubmitError),!1)},t.prototype.du=function(){this.formRuntimeMaster.ElementManager().gotoPrevSection()},t.prototype.vu=function(){var n=this;this.Mo=!0;var t=this.formRuntimeMaster.ElementManager().isFirstPage();this.formRuntimeMaster.ElementManager().gotoPrevSection(),(0,on.CR)((function(){if((0,_.G7)("CVAdvBranchingImprovements")&&t&&(0,w.Db)().parentSurveyId&&on.xs.submitAndOpenChainedItem(n.formRuntimeMaster,n.props.persistAnswer,null,!0,n.props.IsMobile),(0,U.rm)()&&(0,_.G7)("CustomerVoiceEventsWithData")&&(0,w.Db)().datawithevent){var e={Type:"FormResponseBack",FormTitle:n.formRuntimeMaster.Form.Model.Title,Message:null};window.parent.postMessage(e,(0,w.Db)().hostappdomain)}else window.parent.postMessage("FormResponseBack","*")}))},t.prototype.pu=function(n){var t=this;switch(n.keyCode){case 13:case 32:this.Mo=!1;var e=this.formRuntimeMaster.ElementManager().isFirstPage();this.formRuntimeMaster.ElementManager().gotoPrevSection(),(0,on.CR)((function(){if((0,_.G7)("CVAdvBranchingImprovements")&&e&&(0,w.Db)().parentSurveyId&&on.xs.submitAndOpenChainedItem(t.formRuntimeMaster,t.props.persistAnswer,null,!0,t.props.IsMobile),(0,U.rm)()&&(0,_.G7)("CustomerVoiceEventsWithData")&&(0,w.Db)().datawithevent){var n={Type:"FormResponseBack",FormTitle:t.formRuntimeMaster.Form.Model.Title,Message:null};window.parent.postMessage(n,(0,w.Db)().hostappdomain)}else window.parent.postMessage("FormResponseBack","*")}))}},t.prototype.Su=function(){var n=this;(this.props.Master.SyncContext===X.$.SharedTimeForm||this.zs())&&(this.formRuntimeMaster.ElementManager().gotoNextSection(),(0,on.CR)((function(){n.Bs()})))},t.prototype.Pu=function(n){this.formRuntimeMaster.TopQuestionRuntimeMasters().some((function(n){return n.Model.HasSensitiveInfo}))&&(0,_.G7)("SensitiveInfoCheckInResponsePage")&&((0,_.G7)("SensitiveInfoCheckForAllForms")||this.props.Master.Model.Settings.IsAnonymous)?this.setState({ShowSensitiveInfoWarning:!0}):this.Vs(n)},t.prototype.bu=function(){var n=this;(0,on.CR)((function(){n.Ao++})),(this.props.Master.SyncContext===X.$.SharedTimeForm||this.zs())&&(this.Mo=!0,this.formRuntimeMaster.ElementManager().gotoNextSection(),(0,on.CR)((function(){n.Bs()})))},t.prototype.wu=function(n){var t=this;switch(this.Vo=!0,n.keyCode){case 13:case 32:(this.props.Master.SyncContext===X.$.SharedTimeForm||this.zs())&&(this.Mo=!1,this.formRuntimeMaster.ElementManager().gotoNextSection(),(0,on.CR)((function(){t.Bs()})))}},t.prototype.Bs=function(){var n=this;(0,on.CR)((function(){var t;if((0,U.rm)()&&(0,_.G7)("CustomerVoiceEventsWithData")&&(0,w.Db)().datawithevent){var e,r,i=n.formRuntimeMaster.Model.QuestionRuntimeMasters,o=n.state.LocalizedResource.localeId,s=y.H.convertToArray(i);o&&o!==n.defaultLanguageId&&(e=nn.h.getFormResourceMaster(o,n.formRuntimeMaster.Form));var a=n.formRuntimeMaster.Form.FormElementManager.getSectionNodes(),c=u.map(n.formRuntimeMaster.Answers,(function(t,i){var c,f,l,h,d,m,v,p,g,b=null,w=null,S=[],I=new Map,F=[],C=null,_=null,k=null,P=u.find(s,(function(n){return n.Question.Model.Id===t.QuestionId}));if("Question.MatrixChoice"===(null==P?void 0:P.Question.Model.Type)){var T=u.find(s,(function(n){return n.Question.Model.Id===P.Question.Model.GroupId}));_=T.Question.Model.Subtitle;var N=u.find(T.Question.Model.ChoiceGroup,(function(n){var e;return n.Id===(null===(e=t.Answer)||void 0===e?void 0:e.id)}));if(g=y.H.convertToArray(T.Question.Model.ChoiceGroup).map((function(n){return null==n?void 0:n.Description})),o&&o!==n.defaultLanguageId)r=nn.h.getQuestionResourceMaster(o,T.Question.Model.Id,n.formRuntimeMaster.Form),p=[(null===(c=u.find(y.H.convertToArray(null==r?void 0:r.Model.choices),(function(n){var e;return parseInt(n.choiceId)===(null===(e=t.Answer)||void 0===e?void 0:e.id)})))||void 0===c?void 0:c.description)||(null==N?void 0:N.Description)],g=y.H.convertToArray(T.Question.Model.ChoiceGroup).map((function(n){var t;return null===(t=r.getChoiceLocalizedMaster(null==n?void 0:n.Id.toString()).Model)||void 0===t?void 0:t.description}));else p=[null==N?void 0:N.Description]}else"Question.Choice"===(null==P?void 0:P.Question.Model.Type)?(g=F=null===(f=y.H.convertToArray(null==P?void 0:P.Question.Model.Choices))||void 0===f?void 0:f.map((function(n){return null==n?void 0:n.Description})),o&&o!==n.defaultLanguageId?(r=nn.h.getQuestionResourceMaster(o,P.Question.Model.Id,n.formRuntimeMaster.Form),S=null===(h=null===(l=JSON.parse(null==r?void 0:r.Model.option))||void 0===l?void 0:l.choicesV1)||void 0===h?void 0:h.map((function(n){return null==n?void 0:n.Description})),F.forEach((function(n,t){I.set(n,S[t]||n)})),p=P.Question.Model.ChoiceType===Z.IG.MultiChoice?null===(d=JSON.parse(t.Answer))||void 0===d?void 0:d.map((function(n){return I.get(n)})):[I.get(t.Answer)||t.Answer],g=null==F?void 0:F.map((function(n){return I.get(n)}))):p=P.Question.Model.ChoiceType===Z.IG.MultiChoice?JSON.parse(t.Answer):[t.Answer]):p=[t.Answer];if(a){var R=u.findLastIndex(n.formRuntimeMaster.Form.FormElementManager.SectionMasters,(function(n){return n.Model.Order0){var d=h.filter((function(n){return n.Question.hasAnswer()})).filter((function(t){return 0!=t.Model.Visible&&n.formRuntimeMaster.isContainingSectionVisible(t.Question.Model.Id)})).map((function(n){return n.Question.Model.Id}));if(d)for(var m in l)l[m]&&l[m].questionAnswers&&(l[m].questionAnswers=l[m].questionAnswers.filter((function(n){return d.find((function(t){return t===n.questionId}))})))}}var v={Type:"FormPartialResponseSubmitted",FormTitle:(null===(t=null==e?void 0:e.Model)||void 0===t?void 0:t.title)||n.formRuntimeMaster.Form.Model.Title,Message:l};window.parent.postMessage(v,(0,w.Db)().hostappdomain)}}))},t.prototype.ys=function(){return this.state.ShowQuizResult||this.props.PrintView||this.props.MobileReadOnly||this.state.ShowPrintResult},t.prototype.yo=function(){this.forceUpdate()},t.prototype._u=function(){var n,t=this.props.Master,e=this.state.LocalizedResource.localeId,r=void 0;return e&&e!==this.defaultLanguageId&&t.isFieldReady(t.Schema.LocalizedResources)&&(null===(n=t.Model.LocalizedResources)||void 0===n?void 0:n.length)>0&&(r=nn.h.getFormResourceMaster(e,t).Model.footerText),r=r||t.Model.FooterText},t.prototype.$i=function(){return this.props.PrintView||this.props.MobileReadOnly},t.prototype.Ru=function(){return(0,r.sH)(this,void 0,Promise,(function(){var n;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return n=!1,[4,(0,z.a8)()];case 1:return t.sent()&&(n=!this.isMobile()),this.setState({ShouldShowImmersiveReaderButtons:n}),[2]}}))}))},t.prototype.Qu=function(){if(!this.props.Master.Model.Settings.NotRecordIdentity&&!this.props.Master.Model.Settings.IsAnonymous){var n=this.state.LocalizedStrings.Print_Form_Record_UserName_Question_Title;return i.createElement("div",{className:"print-user-name-record"},i.createElement("div",{className:"print-user-name-title-line"},i.createElement("span",{className:"print-user-name-remand-icon"},"*"),i.createElement("div",{className:"print-user-name-record-title"},n)),i.createElement("input",{className:"print-user-name-record-input"}))}},t.createPrintTimePrivacyDeclare=function(){var n=(0,O.qn)().Print_Form_Privacy_Declaration;return i.createElement("div",{className:"print-privacy-declare"},i.createElement("div",{className:"print-privacy-declare-boundary"}),i.createElement("div",{className:"print-privacy-declare-content"},n),i.createElement("div",{className:"print-privacy-info"},i.createElement("img",{className:"print-privacy-icon",src:(0,a.VG)("/Images/forms-logo-128.png")}),i.createElement("span",{className:"print-privacy-text"},(0,O.qn)().Page_Title)))},t.createPrintFooter=function(){return i.createElement("div",{className:"print-footer"},i.createElement("span",{className:"print-footer-date"},(new Date).toFormatString("M/d/yyyy",(0,p.m1)().cultureInfo)))},t}(pn.h)},48784:function(n,t,e){"use strict";e.d(t,{T2:function(){return h},dC:function(){return m}});var r=e(34629),i=e(41594),o=e(75206),u=e(16269),s=e(1879),a=e(87578),c=e(34101),f=e(331),l=e(97410);function h(n){return i.createElement("div",{className:"image-spinner",id:n&&d(n)},i.createElement("div",{className:"common-spinner-circle"}))}function d(n){return"imageSpinner-"+n.ResourceId}var m=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.qs=!0,t.yo=function(){return t.forceUpdate()},t.Hs=function(){return t.Qs()},t}return(0,r.C6)(t,n),t.prototype.componentDidMount=function(){var n=(0,a.Ti)().Schema,t=(0,a.W1)().Schema;this.props.ImageSettings.observe(this.yo),this.props.Image.observe(this.yo,[n.ResourceUrl,n.ContentType,n.OriginalFileName]),this.props.ImageSettings.observe(this.Hs,[t.ContainerHeight,t.ContainerWidth,t.Left,t.Top]),this.props.Image.observe(this.Hs,[n.AltText]),this.$s()},t.prototype.componentDidUpdate=function(){this.$s()},t.prototype.componentWillUnmount=function(){this.qs=!1,this.props.ImageSettings.unobserve(this.yo),this.props.Image.unobserve(this.yo),this.props.ImageSettings.unobserve(this.Hs),this.props.Image.unobserve(this.Hs)},t.prototype.render=function(){var n=this,t=this.props.Image.Model,e=this.props.ImageSettings.validateImageSettings(!0),r=0;return i.createElement("img",{src:t.ResourceUrl,alt:t.AltText,height:e.ContainerHeight+"px",width:e.ContainerWidth+"px",style:{visibility:"hidden"},onLoad:function(){(0,u.GN)(2,{$imageType:n.props.ImageType,$location:"RenderCard"})},onError:function(e){if(r<3&&"Response"===(0,s.M5)()){var i=o.findDOMNode(n);r++;var a=t.ResourceUrl+"?"+r;window.setTimeout((function(){$(i).attr("src",a)}),1e3)}else(0,l.O7)("Image.ImageOnLoad.Failure",{imageType:n.props.ImageType,location:"1"}),(0,u.GN)(1,{$imageType:n.props.ImageType,$location:"RenderCard"})}})},t.prototype.$s=function(){var n=this,t=this.props.Image&&this.props.Image.Model;if(t&&t.ResourceUrl&&!this.Ws()){var e=o.findDOMNode(this),r=0;e&&this.props.ImageSettings&&(e.onload=function(){return n.Qs()},e.onerror=function(i){if(r<3&&"Response"===(0,s.M5)()){r++;var o=t.ResourceUrl+"?"+r;window.setTimeout((function(){$(e).attr("src",o)}),1e3)}else{(0,l.O7)("Image.CanvasOnLoad.Failure",{imageSrc:e.src,imageType:n.props.ImageType,location:"1"});var u=document.getElementById(d(t));u&&$(u).css("display","none"),$(e).css("visibility","visible")}})}},t.prototype.Qs=function(){if(this.qs){var n=this.props.Image&&this.props.Image.Model;if(n&&n.ResourceUrl&&!this.Ws()){var t=o.findDOMNode(this);if($(t).siblings("canvas").remove(),t&&this.props.ImageSettings)try{var e=document.createElement("canvas"),r=this.props.ImageSettings.validateImageSettings(!0);e.tabIndex=-1;var i=1*r.NaturalWidth/r.ActualWidth,u=Math.abs(r.Left*i);u=Math.floor(Math.min(u,r.NaturalWidth));var s=Math.abs(r.Top*i);s=Math.floor(Math.min(s,r.NaturalHeight));var a=r.ContainerWidth*i||r.NaturalWidth;a=Math.floor(Math.min(a,r.NaturalWidth));var f=r.ContainerHeight*i||r.NaturalHeight;f=Math.floor(Math.min(f,r.NaturalHeight));try{var h=isNaN(window.devicePixelRatio)?1:window.devicePixelRatio;h=Math.ceil(Math.max(h,i)),e.width=Math.floor(r.ContainerWidth*h),e.height=Math.floor(r.ContainerHeight*h),n.AltText&&(e.setAttribute("role","img"),e.setAttribute("aria-label",n.AltText)),e.getContext("2d").drawImage(t,u,s,a,f,0,0,e.width,e.height)}catch(n){$(t).css("visibility","visible");var m=n.message||void 0,v=n.stack||void 0;return void(0,l.O7)("Image.CanvasRender.Failure",{imageSrc:t.src,imageType:this.props.ImageType,location:"1",error:m+" "+v,Exception:"DrawImageCanvas"})}var p=document.getElementById(d(n));p&&$(p).css("display","none"),$(t).css("display","none"),$(t).parent().append(e),(0,l.O7)("Image.CanvasRender.Success",{imageType:this.props.ImageType,location:"1"}),(0,c.K3)()}catch(n){m=n.message||void 0,v=n.stack||void 0;throw(0,l.O7)("Image.CanvasRender.Failure",{imageSrc:t.src,imageType:this.props.ImageType,location:"1",error:"".concat(m," ").concat(v),Exception:"CreateImageCanvas"}),n}}}},t.prototype.Ws=function(){return this.props.Image.Model.ImageProcessingStatus!==f.Tc.Idle},t}(e(17280).h)},49762:function(n,t,e){"use strict";var r;e.d(t,{n:function(){return r}}),function(n){n[n.Desktop=0]="Desktop",n[n.Mobile=1]="Mobile",n[n.Auto=2]="Auto",n[n.Embed=3]="Embed"}(r||(r={}))},14115:function(n,t,e){"use strict";e.d(t,{$2:function(){return k},A1:function(){return F},EG:function(){return P},EJ:function(){return w},En:function(){return L},GA:function(){return v},GQ:function(){return h},KA:function(){return i},LS:function(){return q},NO:function(){return N},Or:function(){return _},Ov:function(){return M},Pj:function(){return c},Pq:function(){return T},SU:function(){return a},Tt:function(){return b},VL:function(){return A},W9:function(){return r},YT:function(){return H},_r:function(){return E},a$:function(){return I},b8:function(){return g},cH:function(){return m},cL:function(){return C},cM:function(){return d},cO:function(){return l},eO:function(){return D},gQ:function(){return s},hg:function(){return O},ie:function(){return o},ir:function(){return U},k5:function(){return p},ke:function(){return f},kw:function(){return R},lW:function(){return z},nd:function(){return x},np:function(){return V},py:function(){return S},qb:function(){return u},vF:function(){return B},ve:function(){return y}});var r="291cebec6b9a4cbf9489bc8cf3a0cc50-06f4c682-bd49-4f88-a8c2-ac582180b7f9-7725",i="d4551187b06a470980076d381efaa944-55338c41-3ed1-4be7-86ae-f6f2d022aa9a-7049",o="34574250afbe400d814cda5bafaabbbf-e8b2d8de-469a-4779-8134-0c3b0fa0d78e-7592",u="577e32a3275e48c5a639a92c9a8af033-4028cb75-b5f4-4ad0-835e-0e26d79ff209-6823",s="aa96061debfd4ec7b9704f62060b4ca6-a498d428-fdba-43da-bc8b-4fe51865cb7f-7984",a="79beea9c4fdb49a5adab4843729e1fa0-19b42cd4-5bd4-4bf8-8e49-05dc0f7f97f8-7484",c="5f4ebf0f9a11474199e89f94bc7e2f50-61b8420a-22b1-4220-b531-4a4b96e4edb9-7406",f="2ddc7e5f54754fc68f3ae1c5b7f3eb20-1883aa8c-4c7b-42d1-b3d6-c9cdb5956783-7092",l="e132e188c609439ab47cd7b06511fc0a-433f81b3-fab9-415a-882a-ba9e2f91abea-6917",h="d34df8693d35452c98f0e1cdfde6d6a8-44cd1abe-6b6d-4edc-a342-46ba159633a4-7645",d="847cac884ec7438c803f8fc375832d7f-8af022cb-395a-4731-b40b-aade0142f724-7321",m="fb4a5e0bc6e5481a8790cf380d1b1058-eaf2bb92-036c-4ff5-984e-ad0782620010-7469",v="event_correlation_id",p="duration",g="event_name",b="properties",w="timestamp",S="form_id",y="user_type",I="client_build_version",F="integration_appid",C="integration_host",_="MUID",k="page_type",P="routing_build",T="routing_dc",N="routing_instance",R="server_build_version",E="server_dc",L="server_instance",O="server_ring",x="session_id",D="source_application",M="UserInfo.Id",A="UserInfo.IdType",V="UserInfo.OMSTenantId",U="user_id",z="user_role",B="user_tenant_id",q="4e990506778b4d9cbf05300e98315eed-682648e1-a406-45c4-9d5b-709b9899d662-7161",H="Office.Forms.Web"},75515:function(n,t,e){"use strict";e.d(t,{s:function(){return i}});window.performance;var r=window.performance;function i(n){try{r&&r.getEntriesByType&&(r.getEntriesByType("measure")||[]).forEach((function(t){if(t&&t.name&&0===t.name.indexOf("FP_")){var e=t.duration,r=t.name;n[r]=e}}))}catch(n){}}},97410:function(n,t,e){"use strict";e.d(t,{g2:function(){return h},O7:function(){return l},jg:function(){return m},fL:function(){return c},_F:function(){return d},_t:function(){return v},Dz:function(){return f}});var r=e(53013),i=e(1879),o=e(45430),u=e(58213);function s(n,t,e,r,i){i&&console.error(i),m("UnhandleException",{columnNo:r,error:i&&i.toString(),fileName:t,lineNo:e,message:n,stack:i&&i.stack})}var a=[];function c(n){(0,u.t)().logFormsProEvent(n)}function f(n){(0,u.t)().sendTeamsAppInitializationCompleteSignal(n)}function l(n,t,s){(0,u.t)().logData({correlationId:s,eventName:n,eventType:"engagement_event",extraData:t}),(0,r._x)()||"Design"!==(0,i.M5)()||(0===a.length&&e.e(506).then(e.t.bind(e,43818,19)).then((function(n){return n.default})).then((function(n){a=n})),n&&a.indexOf(n)>=0&&o.km.Resolve("IFormUserContextActionSignal").addUserActionSignal(n,6,null,!1))}function h(n,t){(0,u.t)().logData({eventName:n,eventType:"diagnostic_event",extraData:t})}function d(n,t){(0,u.t)().logData({eventName:n,eventType:"generic_event",extraData:t,$optoutUTel:!0})}function m(n,t,e){(0,u.t)().logData({correlationId:e,eventName:n,eventType:"error_event",extraData:t})}function v(n,t){(0,u.t)().logData({eventName:n,eventType:"nav_perf_event",extraData:t})}var p=window.onerror;window.onerror=function(){for(var n=[],t=0;t-1}("largest-contentful-paint"),e&&i.LastNavStart&&(n.lastNavigationStart=i.LastNavStart)}(b,c,d,g),b}function m(n,t){h[n]=t}},46602:function(n,t,e){"use strict";e.d(t,{l:function(){return i}});var r=e(97410);function i(n,t){var e=Date.now(),i=window.setTimeout((function(){(0,r.O7)("PageLoadingTimeout.".concat(t),{actualDuration:Date.now()-e,timeoutLimit:15e3})}),15e3);n.finally((function(){window.clearTimeout(i)}))}},90547:function(n,t,e){"use strict";e.d(t,{Ug:function(){return o},p0:function(){return u}});var r=e(49105),i=e(77310),o=function(n){return(0,i.gR)(n,"window.innerWidth){var r=e.getBoundingClientRect();n.style.left="auto",n.style.right=(0,o.Fr)()?"".concat(window.innerWidth-r.right,"px"):"".concat(r.right-window.innerWidth,"px")}t.bottom>window.innerHeight&&(n.style.bottom="".concat(e.clientHeight,"px"))}},t.prototype.render=function(){var n=this,t=(0,s.X$)({},this.props.HTMLAttributes);switch(t.className=(0,u.x)(t.className,"button-control"),t["aria-pressed"]=this.props.ToggleActive,this.props.ToggleActive&&(t.className=(0,u.x)(t.className,"active")),this.props.ButtonStyle){case 1:t.className=(0,u.x)(t.className,"light-background-button");break;case 2:t.className=(0,u.x)(t.className,"dark-background-button")}var e=null,o=this.props.Tooltip,c=t.title;if(o||c){var f=void 0;c&&c!==o&&(f=i.createElement("span",{key:"s"},c));var l=void 0;if(o){var d=void 0;t["aria-label"]===o||t["aria-describedby"]||(d=this.Ks+"-tooltip",t["aria-describedby"]=d),l=i.createElement("span",{id:d,key:"t"},o)}var m=void 0;m=this.state.ShowTooltip?this.props.TooltipClassName||"button-tooltip":"screenReaderReference",e=i.createElement("div",{className:m,key:"t",onClick:h,ref:this.Js},f,l),t.title=void 0,t.onKeyUp=(0,a.A)(t.onKeyUp,this.na),t.onFocus=(0,a.A)(t.onFocus,(function(){return n.ea(!0)})),t.onMouseOver=(0,a.A)(t.onMouseOver,(function(){return n.ea(!0)})),t.onBlur=(0,a.A)(t.onBlur,(function(){return n.ea(!1)})),t.onMouseOut=(0,a.A)(t.onMouseOut,(function(){return n.ea(!1)}))}return i.createElement("button",(0,r.Cl)({},t),i.createElement("div",{className:"button-content"},this.props.children),e)},t.prototype.focus=function(){this.getHtmlElement().focus()},t.prototype.na=function(n){this.state.ShowTooltip&&27===n.keyCode&&(n.stopPropagation(),this.setState({ShowTooltip:!1}))},t.prototype.ea=function(n){var t=this;window.clearTimeout(this.Zs),this.state.ShowTooltip!==n&&(this.Zs=window.setTimeout((function(){t.setState({ShowTooltip:n}),t.Zs=0}),n?500:300))},t}(c.h);function h(n){n.stopPropagation()}},54051:function(n,t,e){"use strict";e.d(t,{b:function(){return s}});var r=e(34629),i=e(41594),o=e(22224),u=e(38826),s=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,r.C6)(t,n),t.prototype.render=function(){var n=o.extend({},this.props.HTMLAttributes);return this.props.ValidationStyle&&(n.className=(0,u.x)(n.className,this.props.ValidationStyle)),this.props.Hidden&&(n.style=n.style||{},n.style.display="none"),i.createElement("div",n,this.createReactNodes())},t.prototype.createReactNodes=function(){throw Error("to be overridden.")},t}(i.Component)},5287:function(n,t,e){"use strict";e.d(t,{I:function(){return o}});var r=e(34629),i=e(41594),o=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,r.C6)(t,n),t.prototype.render=function(){return i.createElement("span",{className:"required-star"})},t}(e(17280).h)},33330:function(n,t,e){"use strict";e.d(t,{K:function(){return a},a:function(){return s}});var r=e(34629),i=e(41594),o=e(38826),u=e(78927);function s(n){return i.createElement(a,(0,r.Cl)({},n))}var a=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,r.C6)(t,n),t.prototype.render=function(){var n=(0,u.o8)(this.props.HTMLAttributes)||{};if(this.props.FluentIcon){var t=this.props.FluentIcon.replaceAll(" ","");n.className=(0,o.x)("ff-icon ff-icon-".concat(t),this.props.className,n.className)}else n.className=(0,o.x)("ms-Icon",this.props.IconName?"ms-Icon--".concat(this.props.IconName):"",this.props.className,n.className);return this.props.Accessible||(n.role="presentation",n["aria-hidden"]="true"),i.createElement("i",(0,r.Cl)({},n))},t}(e(17280).h)},37696:function(n,t,e){"use strict";e.d(t,{n:function(){return c}});var r=e(34629),i=e(41594),o=e(22224),u=e(38826),s=e(66970),a=e(33330);function c(n){var t,e,c=o.clone(n)||{},f=o.clone(c.HTMLAttributes)||{};switch(c.HTMLAttributes=f,n.GlyphButtonStyle){case 1:case"Vertical":f.className=(0,u.x)(f.className,"glyph-button-control-vertical");break;default:f.className=(0,u.x)(f.className,"glyph-button-control-horizontal")}if(f["aria-label"]=f["aria-label"]||n.Text,n.Icon||n.FluentIcon){var l={FluentIcon:n.FluentIcon,HTMLAttributes:{className:n.IconClassName},IconName:n.Icon,key:"icon"};t=i.createElement(a.K,(0,r.Cl)({},l))}switch("GlyphOnly"!==n.GlyphButtonStyle&&2!==n.GlyphButtonStyle?e=i.createElement("span",{className:n.TextClassName,key:"text"},n.Text):n.Text&&(c.Tooltip=c.Tooltip||n.Text,c.Tooltip!==n.Text&&(f.title=n.Text)),n.GlyphLocation){case 1:case"Right":c.children=[e,n.children,t];break;default:c.children=[t,e,n.children]}return(0,s.Tf)(c)}},46404:function(n,t,e){"use strict";e.d(t,{f:function(){return c}});var r=e(34629),i=e(41594),o=e(50793),u=e(54051),s=e(5287),a=e(33330);function c(n){return i.createElement(f,n)}var f=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.ra=!1,t.qs=!1,t}return(0,r.C6)(t,n),t.prototype.componentDidMount=function(){var n=this;this.qs=!0,this.ra||window.setTimeout((function(){n.ra=!0,n.qs&&n.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.qs=!1},t.prototype.createReactNodes=function(){var n,t=this.props,e=t.ShowRequiredStar?i.createElement(s.I):void 0,r=t.ShowOrdinal?i.createElement("span",{className:"ordinal-number",key:"ordinalNumber"},"".concat(this.props.Ordinal,".")):void 0;t.Alert&&!this.ra||(n=(0,o.e)({ContainsHtml:!!t.HtmlContent,Text:t.Label,RenderMode:"RichText"}));var u=t.ShowWarningIcon&&(0,a.a)({FluentIcon:"Error Circle",HTMLAttributes:{className:"forms-icon-size20x20 warning-icon-style",title:t.WarningIconTooltip},Accessible:!0}),c=t.ShowInfoIcon&&(0,a.a)({FluentIcon:"Info",HTMLAttributes:{className:"forms-icon-size12x12 info-icon-style",title:t.InfoIconTooltip},Accessible:!0});return t.Bold?i.createElement(i.Fragment,{},i.createElement("b",void 0,r,n,e),t.children):i.createElement(i.Fragment,{},r,n,e,u,c,t.children)},t}(u.b)},65197:function(n,t,e){"use strict";e.d(t,{H:function(){return m}});var r=e(34629),i=e(41594),o=e(75206),u=e(22224),s=e(16038),a=e(38826),c=e(98031),f=e(29169),l=e(17280),h=e(33330),d=e(50793);function m(n){return i.createElement(p,(0,r.Cl)({},n))}var v="6c660282-db72-436c-87bb-8272cba504d3",p=function(n){function t(e){var r=n.call(this,e)||this;r.ia=!0,r.oa=u.uniqueId(t.name),r.ua=r.oa+"_placeholder",r.aa=i.createRef(),r.la=r.la.bind(r),r.ha=r.ha.bind(r),r.ma=r.ma.bind(r),r.va=r.va.bind(r);var o=r.ga(),s=u.findIndex(o,(function(n){return n.Value===r.props.Value}));return r.wa=s<0?void 0:o[s].Key,r.state={Expanded:!1},r}return(0,r.C6)(t,n),t.prototype.componentWillUpdate=function(n,e){var r=t.GetSelectOptions(n),i=u.findIndex(r,(function(t){return t.Value===n.Value}));this.wa=i<0?void 0:r[i].Key},t.prototype.componentDidMount=function(){this.ia=!1},t.prototype.componentDidUpdate=function(){if(this.Sa(),this.state.Expanded){if(this.ya(),this.props.NeedScroll){var n=this.aa.current;if(n){var t=$(".office-form-content"),e=n.getBoundingClientRect().bottom,r=t.height()-e;if(r<70){var i=o.findDOMNode(this.refs.menu);t.scrollTop(t.scrollTop()+i.offsetHeight-r)}}}var u=this.refs[this.wa];if(u){var s=o.findDOMNode(u);s&&s.focus()}}},t.prototype.ya=function(){var n=document.getElementById(this.oa),t=window.getComputedStyle(n),e=n.offsetWidth,r=o.findDOMNode(this.refs.menu);(this.props.AllowWrap||r.offsetWidth=0&&(n=e[o].DisplayContent||e[o].DisplayName),n||(n=this.props.Placeholder||"");var l=(this.props.PlaceholderIcon||this.props.PlaceholderFluentIcon)&&i.createElement("div",{className:"select-placeholder-icon","aria-hidden":"true"},i.createElement(h.K,{FluentIcon:this.props.PlaceholderFluentIcon,IconName:this.props.PlaceholderIcon,HTMLAttributes:{className:"forms-icon-size14x14"}})),m={className:"select-placeholder","aria-hidden":(0,s.m0)(),"aria-label":c?this.props.Label:this.Ta(e[o]),"aria-live":this.state.Expanded||this.ia?"off":"polite","aria-selected":!0,"aria-posinset":o>0?o+1:void 0,"aria-setsize":o>0?e.length:void 0,id:this.ua,role:this.props.IsMobile?"button":"option"};return c&&(m=(0,f.aO)(m,{"aria-expanded":this.state.Expanded,"aria-haspopup":"listbox"})),i.createElement("div",(0,r.Cl)({},m),l,i.createElement("span",{className:a},"string"==typeof n?i.createElement(d.K,{Text:n,RenderMode:"RichText",ContainsHtml:!0}):i.createElement("span",null,n)),this.Na())},t.prototype.Ta=function(n){return n&&n.Value===v&&n.DisplayName?n.DisplayName.toString():n&&n.Value?n.Value.toString():this.props.Placeholder||""},t.prototype.Na=function(){var n={FluentIcon:this.state.Expanded?"Chevron Up":"Chevron Down",HTMLAttributes:{className:"select-placeholder-arrow forms-icon-size14x14"},IconName:this.state.Expanded?"ChevronUp":"ChevronDown"};return i.createElement(h.K,(0,r.Cl)({},n))},t.prototype.Ca=function(){var n=this;if(this.state.Expanded){var t={"aria-label":this.props.Label,className:"select-option-menu-container",ref:"menu",role:"listbox",onWheel:function(t){t.preventDefault();var e=t.deltaY,r=o.findDOMNode(n.refs.menu),i=r.scrollTop+e;if(e>=0){var u=r.scrollHeight-r.clientHeight;r.scrollTop=Math.min(i,u)}else r.scrollTop=Math.max(i,0)}};return i.createElement("div",(0,r.Cl)({},t),this.Ra())}},t.prototype.Ra=function(){var n=this;return this._a()?this.Pa().map((function(t,e){return n.Ea(t,e)})):this.La(this.ga())},t.prototype.Ea=function(n,t){var e=!(!n.SelectOptions.length||!n.DisplayName)&&i.createElement("h5",{className:"select-group-header office-form-theme-primary-color",key:"group_header"+t},n.DisplayName);return i.createElement(i.Fragment,{key:"group_"+t},e,this.La(n.SelectOptions))},t.prototype.La=function(n){var t=this;return n.map((function(n,e,r){return t.Oa(n,e,r.length)}))},t.prototype.Oa=function(n,t,e){var u=this,s=n.Key===this.wa,c={"aria-label":n.Value===v?n.DisplayName:n.AriaLabel||n.Value.toString(),"aria-selected":s,"aria-disabled":n.Disabled,"aria-posinset":t+1,"aria-setsize":e,className:this.props.AllowWrap?"select-option-nocheck":"select-option",tabIndex:s?0:-1,key:n.Key,ref:n.Key&&n.Key.toString(),role:"option"};n.Disabled?(c.className=(0,a.x)(c.className,"disabled"),c["aria-labelledby"]=n.ArialLabelId||void 0,c.onFocus=function(t){t.stopPropagation(),n.showToolTip&&n.showToolTip(),n.DisableFocused=!0},c.onBlur=function(t){t.stopPropagation(),n.hideToolTip&&n.hideToolTip(),n.DisableFocused=!1}):c.onClick=function(t){t.stopPropagation(),u.wa&&u.wa===n.Key||u.props.onValueChange(n.Value),u.setState({Expanded:!1},(function(){o.findDOMNode(u).focus()}))};var f,l="select-option-state forms-icon-size14x14";(this.props.PlaceholderIcon||this.props.PlaceholderFluentIcon)&&(l=(0,a.x)(l,"hasPlaceholderIcon")),this.props.AllowWrap||(f=i.createElement(h.K,{FluentIcon:"Checkmark",HTMLAttributes:{className:l}})),s&&(c.className=(0,a.x)(c.className,"selected"));var m=n.DisplayContent;return m||(m=i.createElement("span",{"aria-hidden":"true"},i.createElement(d.K,{Text:n.DisplayName,RenderMode:"RichText",ContainsHtml:!0}))),i.createElement("div",(0,r.Cl)({},c),i.createElement("div",{className:"select-option-content"},f,m))},t.prototype.la=function(n){var t=this,e=this.aa.current;n.persist(),window.setTimeout((function(){var r=(0,c.X6)(n);e&&!e.contains(r)&&t.state.Expanded&&"HTML"!==r.nodeName&&t.setState({Expanded:!1})}),0)},t.prototype.ma=function(n){if(this.state.Expanded&&27===n.keyCode&&(n.stopPropagation(),this.va()),(0,s.m0)())switch(n.keyCode){case 32:case 13:n.preventDefault(),n.stopPropagation()}},t.prototype.ha=function(n){var t=this;switch(n.keyCode){case 32:this.setState({Expanded:!0}),n.stopPropagation();break;case 13:this.Ia(!0),n.stopPropagation();break;case 9:this.state.Expanded&&(n.stopPropagation(),this.va());break;case 38:case 40:n.altKey?this.setState({Expanded:!this.state.Expanded},(function(){var n=t.aa.current;!t.state.Expanded&&n&&n.focus()})):38===n.keyCode?this.xa():this.Da(),n.stopPropagation(),n.preventDefault()}},t.prototype.xa=function(){var n=this,t=this.ga(),e=u.findIndex(t,(function(t){return t.Key===n.wa}));if(e>0){var r=t[e-1];if(this.wa=r.Key,r.Disabled||this.props.disableSelectOnArrowKeys){var i=o.findDOMNode(this.refs[r.Key]);i&&i.focus()}else this.props.onValueChange(r.Value)}},t.prototype.Da=function(){var n=this,t=this.ga(),e=u.findIndex(t,(function(t){return t.Key===n.wa}));if(e0?[o,h]:[n,t]}var C=i.forwardRef((function(n,t){var e=F(n.value,n.onChange,100),o=e[0],u=e[1],s=i.useCallback((function(n){u(n.target.value)}),[]);return i.createElement("textarea",(0,r.Cl)({},n,{value:o,onChange:s,ref:t}))})),_=i.forwardRef((function(n,t){var e=F(n.value,n.onChange,100),o=e[0],u=e[1],s=i.useCallback((function(n){u(n.target.value)}),[]);return i.createElement("input",(0,r.Cl)({},n,{value:o,onChange:s,ref:t}))})),k=i.forwardRef((function(n,t){var e=F(n.value,n.onChange,100),o=e[0],u=e[1],s=i.useCallback((function(n){u(n.target.value)}),[]);return i.createElement(O,(0,r.Cl)({},n,{value:o,onChange:s,ref:t}))})),P=function(n){var t,e,o,u=n.props,s=n.textBoxProps,a=n.onValueChange,c=n.textFieldRef;switch(u.TextFieldType){case 2:var f=s,l=null==u.MinimalHeight?80:u.MinimalHeight>0?u.MinimalHeight:0;f.MinHeight=l.toString()+"px",t=i.createElement(k,(0,r.Cl)({},f,{onChange:a,ref:c}));break;case 1:e=i.createElement(C,(0,r.Cl)({},s,{onChange:a,ref:c}));break;default:o=i.createElement(_,(0,r.Cl)({},s,{onChange:a,ref:c}))}return t||e||o},T=e(54051),N=e(5287);function R(n){return i.createElement(L,n)}function E(n,t,e,r,i,o,u,s,a){return(0,b.qf)((function(){return R(n)}),(function(){return b.xs.createTextFieldWithCKEditor(n,t,e,r,i,o,u,s,a)}))}var L=function(n){function t(t){var e=n.call(this,t)||this;return e.Ma=i.createRef(),e.Aa=function(n,t){if(!e.props.Disabled){n=(0,c.OX)(n);var r=e.props.MaxLength;if(n&&n.length>r&&(n=n.slice(0,r)),e.props.onValueChange(n),e.props.ShowCharCounter){var i=o.findDOMNode(t).nextSibling;i&&(i.innerText=e.Va(n,r))}}},e.Ua=e.Ua.bind(e),e}return(0,r.C6)(t,n),t.prototype.componentDidMount=function(){this.props.AutoFocus&&this.focus()},t.prototype.focus=function(){if(this.Ma.current)this.Ma.current.focus();else{var n=o.findDOMNode(this),t=$(n).find(".roosterjs-editor-box");t&&t.focus()}},t.prototype.createReactNodes=function(){return i.createElement(i.Fragment,{},this.za(),this.Ba())},t.prototype.za=function(){var n=this.props,t=n.Options;if(n.Label||n.ShowRequiredStar)return i.createElement("div",null,i.createElement("span",{className:t&&t.classNameForInnerLabel},n.Label),n.ShowRequiredStar?i.createElement(N.I):void 0)},t.prototype.qa=function(){var n=this,e=this.props,r=e.Options,i="DesignPage.ShortCut.Clipboard",u="".concat("office-form-textfield-input"," form-control border-no-radius");return(0,b.CR)((function(){n.props.AddTextToClassName&&(u="".concat(u," cv-").concat(n.props.HTMLAttributes.className))})),(0,d.aO)(r&&r.HTMLPropsForInnerElement,{value:e.Value||"","aria-label":e.AriaLabel,className:u,rows:this.props.Rows,placeholder:e.Placeholder,ref:this.Ma,"aria-required":e.Required,style:{height:e.MinimalHeight?"".concat(e.MinimalHeight,"px"):void 0,overflowY:1===e.TextFieldType?"auto":void 0},spellCheck:!0,disabled:e.Disabled,onChange:this.ho.bind(this),maxLength:e.MaxLength?e.MaxLength:(0,l.XE)(),onFocus:e.AutoSelection?function(){if(n.Ma.current){var t=o.findDOMNode(n.Ma.current);t&&t.select()}}:void 0,onClick:function(){var t;return(0,s.un)()&&(null===(t=n.Ma.current)||void 0===t?void 0:t.focus())},onKeyDown:(0,d.x9)((function(r){if(r.ctrlKey||r.metaKey){var o=new Date,u=String.fromCharCode(r.keyCode),s="".concat(r.ctrlKey?"Ctrl":"Meta","+").concat(u);switch(u){case"B":case"I":case"U":(0,w.O7)("TextFormatShortcutEvent",{TextFormatFlight:!0,Shortcut:s,Location:e.TextFieldLocation});break;case"C":case"X":n.Ha(t.prevTimeKeyDown,o.getTime())>t.minDuration&&n.Qa(r,i,s),t.prevTimeKeyDown=o.getTime();break;case"V":n.Qa(r,i,s);break;case"Y":case"Z":n.Qa(r,"DesignPage.ShortCut.UndoRedo",s)}}})),onCopy:function(e){var r=new Date;n.Ha(t.prevTimeOnCopy,r.getTime())>t.minDuration&&n.Qa(e,i,"onCopy"),t.prevTimeOnCopy=r.getTime()},onPaste:function(t){n.Qa(t,i,"onPaste")},onCut:function(e){var r=new Date;n.Ha(t.prevTimeOnCut,r.getTime())>t.minDuration&&n.Qa(e,i,"onCut"),t.prevTimeOnCut=r.getTime()}})},t.prototype.Ba=function(){var n,t,e,r,o,u,s=this.props,c=this.qa(),l=(0,a.x)("office-form-textfield",null===(n=s.Options)||void 0===n?void 0:n.classNameForInnerDiv);if(s.Disabled||!s.AllowRichText||(0,f.am)()){if((0,f.G7)("CVTextQuestionLagOptimization")&&(window.location.href.includes("ResponsePage.aspx")||window.location.href.includes("Preview")))return i.createElement(P,{props:s,textBoxProps:c,onValueChange:this.Aa,textFieldRef:this.Ma});switch(s.TextFieldType){case 2:var d=c,m=null==s.MinimalHeight?80:s.MinimalHeight>0?s.MinimalHeight:0;d.MinHeight=m.toString()+"px",e=function(n){return i.createElement(O,n)}(d);break;case 1:r=i.createElement("textarea",c);break;default:o=i.createElement("input",c)}}else{l=(0,a.x)(l,"textfield-with-text-format");var v=(0,a.x)("roosterjs-editor-box",c.className);(2===s.TextFieldType||s.AllowHeightAdjustment)&&(v=(0,a.x)(v,"auto-height-div"),delete c.style.height,c.style.minHeight=s.MinimalHeight?"".concat(s.MinimalHeight,"px"):void 0),t=g({$ariaLabel:c["aria-label"],$autoFocus:s.AutoFocus,$className:v,$disableRibbon:s.DisableRibbon,$leaveFirstLineOnlyWhenPaste:s.LeaveFirstLineOnlyWhenPaste,$maxLength:c.maxLength,$placeHolder:c.placeholder,$preventMultiline:!s.TextFieldType,$style:c.style,$textFieldLocation:s.TextFieldLocation,$value:String(c.value),$context:{$flights:{$svgIcon:!1},$ls:(0,h.qn)(),$funcAdapters:{$logEngagement:w.O7}},$onKeyDown:c.onKeyDown,$onPaste:s.onRichEditorPaste,$updateContentToBindBox:this.Ua})}if(s.ShowCharCounter){var p=!s.Value||c.maxLength>s.Value.length?"office-form-textfield-counter":"office-form-textfield-counter textfield-counter-warning";u=i.createElement("label",{className:p},this.Va(s.Value,c.maxLength))}return i.createElement("div",{className:l},t,e,r,o,u)},t.prototype.Ua=function(n){this.props.onValueChange(n)},t.prototype.ho=function(n){this.Aa(n.target.value,n.target)},t.prototype.Va=function(n,t){return(n||"").length.toString()+" / "+t.toString()},t.prototype.Qa=function(n,t,e){var r;this.props.HTMLAttributes&&(r=this.props.HTMLAttributes.className),(0,w.O7)(t,{targetClassName:r,operation:e})},t.prototype.Ha=function(n,t){return t-n},t.prevTimeKeyDown=0,t.prevTimeOnCopy=0,t.prevTimeOnCut=0,t.minDuration=500,t}(T.b);var O=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.Ma=i.createRef(),t}return(0,r.C6)(t,n),t.prototype.componentDidMount=function(){this.Ga(),this.$a=this.Ga.bind(this),window.addEventListener("resize",this.$a)},t.prototype.componentDidUpdate=function(){this.Ga()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.$a)},t.prototype.focus=function(){this.Ma.current&&this.Ma.current.focus()},t.prototype.render=function(){var n=u.clone(this.props);return n.ref=this.Ma,delete n.MinHeight,i.createElement("textarea",n)},t.prototype.Ga=function(){if(!this.Ma.current.hasAttribute("rows")){var n=o.findDOMNode(this),t=this.props,e=n.parentElement,r=e.style.height;e.style.height=window.getComputedStyle(e).height,n.style.height=t.MinHeight;var i=n.offsetHeight-n.clientHeight;n.style.height=n.scrollHeight+i+"px",e.style.height=r,n.style.minHeight=t.MinHeight}},t}(S.h)},50793:function(n,t,e){"use strict";e.d(t,{K:function(){return l},e:function(){return f}});var r=e(34629),i=e(41594),o=e(17280),u=e(61775),s=e(17386),a=e(67003),c=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,r.C6)(t,n),t.prototype.render=function(){var n=this.props,t=n.Html;n.RenderHtml||(t=(0,s.My)(n.Html));var e=(0,a.Eq)(t);return i.createElement(u.s,{id:n.Id,className:"text-format-content",$html:e})},t}(o.h);function f(n){return i.createElement(l,(0,r.Cl)({},n))}var l=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,r.C6)(t,n),t.prototype.render=function(){var n;return"RichText"===(this.props.RenderMode||"PlainText")?(n={id:this.props.Id,Html:this.props.Text,RenderHtml:this.props.ContainsHtml},i.createElement(c,(0,r.Cl)({},n))):(n={id:this.props.Id},i.createElement("span",(0,r.Cl)({},n),this.props.Text))},t}(o.h)},81407:function(n,t,e){"use strict";e.d(t,{L:function(){return u}});var r=e(34629),i=e(41594),o=e(22224),u=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,r.C6)(t,n),t.prototype.componentDidMount=function(){var n=this;this.props.LazyRendering&&window.setTimeout((function(){return n.setState({Mounted:!0})}))},t.prototype.render=function(){var n=o.clone(this.props.HTMLAttributes||{});switch(this.props.Role){case"Alert":n.role="alert";break;case"Log":n.role="log",n["aria-live"]=n["aria-live"]||"polite",n["aria-relevant"]=n["aria-relevant"]||"additions text";break;case"Marquee":n.role="marquee";break;case"Status":n.role="status"}return this.props.LazyRendering&&!this.state.Mounted?(n["aria-label"]=void 0,n.children=null,i.createElement("div",(0,r.Cl)({},n))):i.createElement("div",(0,r.Cl)({},n),this.props.children)},t}(e(17280).h)},15284:function(n,t,e){"use strict";e.d(t,{Q:function(){return s},w:function(){return a}});var r=e(34629),i=e(41594),o=e(22224),u=e(66970),s=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.bo=i.createRef(),t}return(0,r.C6)(t,n),t.prototype.render=function(){var n;return(n=o.clone(this.props)||{}).children=this.props.Text,n.ref=this.bo,n.HTMLAttributes=o.clone(n.HTMLAttributes)||{},n.HTMLAttributes["aria-label"]=n.HTMLAttributes["aria-label"]||this.props.Text,i.createElement(u.$n,(0,r.Cl)({},n))},t.prototype.focus=function(){this.bo.current&&this.bo.current.focus()},t}(e(17280).h);function a(n){return i.createElement(s,(0,r.Cl)({},n))}},52786:function(n,t,e){"use strict";e.d(t,{$_:function(){return b},AK:function(){return y},Gz:function(){return k},I3:function(){return S},Kl:function(){return F},Lp:function(){return w},t5:function(){return C}});var r=e(41594),i=e(22224),o=e(10641),u=(e(84239),e(71683),e(33330)),s=["mp3","aif","iff","m3u","m4a","mid","mpa","ra","wav","wma"],a=["xls","xlt","xlm","xlsx","xlsm","xltx","xltm"],c=["jpg","jpeg","png","gif","bmp","tiff","psd","thm","yuv","ai","drw","eps","ps","svg","3dm","max"],f=["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"],l=["pdf"],h=["avi","mp4","mov","wmv","asf","3g2","3gp","asx","flv","mpg","rm","swf","vob"],d=["doc","dot","wbk","docx","docm","dotx","dotm","docb"],m={};s.forEach((function(n){return m[n]="Audio"})),a.forEach((function(n){return m[n]="Excel"})),c.forEach((function(n){return m[n]="Image"})),f.forEach((function(n){return m[n]="PowerPoint"})),l.forEach((function(n){return m[n]="PDF"})),h.forEach((function(n){return m[n]="Video"})),d.forEach((function(n){return m[n]="Word"}));var v={Audio:s,Excel:a,Image:c,PDF:l,PowerPoint:f,Video:h,Word:d},p={Audio:{Color:"#666",Name:"Microphone"},Excel:{Color:"#217346",Name:"ExcelDocument"},Image:{Color:"#666",Name:"Photo2"},PDF:{Color:"#666",Name:"PDF"},PowerPoint:{Color:"#B7472A",Name:"PowerPointDocument"},Text:{Color:"#666",Name:"TextField"},Video:{Color:"#666",Name:"Video"},Word:{Color:"#2B579A",Name:"WordDocument"}},g="officeforms.fileuploaddialogmap",b={"10MB":10,"100MB":100,"1GB":1e3};function w(n){var t=[];return Object.keys(n).forEach((function(e){n[e]&&(t=t.concat(v[e]))})),t}function S(n){var t=I(n),e={className:"forms-icon-size20x20 office-form-theme-quiz-point analyze-view-file-icon",style:{color:t.Color}};return r.createElement(u.K,{HTMLAttributes:e,IconName:t.Name})}function y(n,t){switch(t){case"Audio":return n.UploadFile_Type_Audio;case"Excel":return n.UploadFile_Type_Excel;case"Image":return n.UploadFile_Type_Image;case"PowerPoint":return n.UploadFile_Type_PowerPoint;case"PDF":return n.UploadFile_Type_PDF;case"Video":return n.UploadFile_Type_Video;case"Word":return n.UploadFile_Type_Word;default:return""}}function I(n){var t=n.split("."),e=t[t.length-1].toLowerCase();return p[m[e]]||{Color:"#666",Name:"TextDocument"}}function F(n,t){var e=n.Model.Id,r=!!i.find(n.Model.Questions,(function(n){return"Question.FileUpload"===n.Type}));if(C(e)||!r){var u=_(),s=i.find(u,(function(n){return n.FormId===e}));s?s.ShowConfirmDialog=s.ShowConfirmDialog&&t:u.push({FormId:e,ShowConfirmDialog:!0}),(0,o.Lg)().setItem(g,JSON.stringify(u))}}function C(n){var t=i.find(_(),(function(t){return t.FormId===n}));return!!t&&t.ShowConfirmDialog}function _(){var n=[],t=(0,o.Lg)().getItem(g);return t&&(n=JSON.parse(t)),n}function k(n){var t=n.Model.FileTypes;Object.keys(t).forEach((function(n){t[n]=!0}))}},16140:function(n,t,e){"use strict";e.d(t,{N:function(){return u}});var r=e(41594),i=e(33589),o={};Object.defineProperty(o,"LocalizedStrings",{get:i.qn});var u=r.createContext(o)},33229:function(n,t,e){"use strict";e.d(t,{D:function(){return c}});var r=e(34629),i=e(41594),o=e(30062),u=e(48723);var s=e(66970),a=e(33330),c=function(n){function t(t){return n.call(this,t)||this}return(0,r.C6)(t,n),t.prototype.render=function(){var n=this.Wa(),t=this.props.displayText?this.props.displayText.toLocaleUpperCase():(0,a.a)({FluentIcon:"Person",HTMLAttributes:{className:"author-notification-icon"}}),e={backgroundColor:n.backgroundColor,color:n.textColor},r={onClick:function(n){$(n.target).trigger("focus")},"aria-label":this.props.ariaLabel||this.props.tooltip,className:"author-notification-content",style:e,title:this.props.tooltip};return(0,s.Tf)({HTMLAttributes:r,ButtonStyle:1,Tooltip:this.props.tooltip,children:i.createElement("span",{"aria-hidden":!0},t)})},t.createColor=function(n){for(var e=0,r=n.length-1;r>=0;r--){var i=n.charCodeAt(r),o=r%8;e^=(i<>8-o)}var u=e%t.COLOR_SWATCHES_LOOKUP.length;return t.COLOR_SWATCHES_LOOKUP[u]},t.prototype.Wa=function(){var n=this.props,e="",r="";n.backgroundColor&&(e=(0,u.si)(n.backgroundColor)),n.textColor&&(r=(0,u.si)(n.textColor));var i=n.email||n.name;return""!==r&&""!==e||!i||(e=e||t.createColor(i),r=r||(0,u.si)((0,u.IX)((0,u.iN)(e)))),{backgroundColor:e=e||t.defaultBackgroundColor,textColor:r=r||t.defaultTextColor}},t.COLOR_SWATCHES_LOOKUP=["#3765E4","#D83B01","#B91C49","#910A19","#E40089","#971497","#8150FD","#562685","#2C5797","#007B8A","#11723F","#6F292A","#A16412"],t.defaultBackgroundColor=t.COLOR_SWATCHES_LOOKUP[0],t.defaultTextColor=o.c,t}(e(17280).h)},67659:function(n,t,e){"use strict";e.d(t,{K:function(){return v}});var r=e(44550),i=new RegExp("\\(([^)]*)\\)","gi"),o=new RegExp("(?:[\0-/:-@[-^`{-퟿-￿]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]) ","gi"),u=new RegExp("\\s+","gi"),s=new RegExp("[ء-ي٠-٩]"),a=new RegExp("[ᄀ-ᇿ|㄰-㆏|ꥠ-꥿|가-힯|ힰ-퟿]"),c=new RegExp("[一-鿌㐀-䶵﨎﨏﨑﨓﨔﨟﨡﨣﨤﨧-﨩]|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d]");function f(n,t){var e=n.replace(/\s/,"");return t?e[e.length-1]:e[0]}function l(n,t){var e=n.replace(/\s/,"");return e.length<=2?t?e[0]:e[e.length-1]:t?e.substr(0,2):e.substr(e.length-2,e.length)}function h(n,t){var e="",r=n.split(" ");return 2===r.length?(e+=r[0].charAt(0).toUpperCase(),e+=r[1].charAt(0).toUpperCase()):3===r.length?(e+=r[0].charAt(0).toUpperCase(),e+=r[2].charAt(0).toUpperCase()):0!==r.length&&(e+=r[0].charAt(0).toUpperCase()),t&&e.length>1?e.charAt(1)+e.charAt(0):e}function d(n){return n=(n=(n=(n=n.replace(i,"")).replace(o,"")).replace(u," ")).trim()}function m(n,t){return null==n?"":(arguments.length<2&&(t=(0,r.P)()),n=d(n),s.test(n)?f(n,!!t):a.test(n)||c.test(n)?l(n,!!t):h(n,!!t))}function v(n,t,e){return m(n?n.trim():"".concat(t||""," ").concat(e||"").trim())}},14559:function(n,t,e){"use strict";e.d(t,{E9:function(){return u},O4:function(){return c},Pf:function(){return s},SL:function(){return a}});var r=e(1641),i=e(33589),o=e(71683);function u(n){return(0,r.cP)()&&2===n}function s(n){return 4===n}function a(n){return 3===n}function c(n,t){switch(t){case"Design":case"Analyze":case"ShareForm":return function(n){switch(n){case 4:return(0,o.qf)((function(){return(0,i.qn)().Phishing_Form_Warning_Message_100}),(function(){return(0,i.qn)().Phishing_Survey_Warning_Message_100}));case 3:return(0,r.cP)()?(0,o.qf)((function(){return(0,i.qn)().Phishing_Form_Warning_Message_2}),(function(){return(0,i.qn)().Phishing_Survey_Warning_Message_2})):(0,o.qf)((function(){return(0,i.qn)().Phishing_Form_Warning_Message_2_AAD}),(function(){return(0,i.qn)().Phishing_Survey_Warning_Message_2_AAD}));case 2:return(0,o.qf)((function(){return(0,i.qn)().Phishing_Form_Warning_Message_1}),(function(){return(0,i.qn)().Phishing_Survey_Warning_Message_1}));default:return""}}(n);case"Response":return function(n){switch(n){case 4:return(0,o.qf)((function(){return(0,i.qn)().Phishing_Form_ResponsePage_Warning_Message_4}),(function(){return(0,i.qn)().Phishing_Survey_ResponsePage_Warning_Message_4}));case 3:return(0,o.qf)((function(){return(0,i.qn)().Phishing_Form_ResponsePage_Warning_Message_2}),(function(){return(0,i.qn)().Phishing_Survey_ResponsePage_Warning_Message_2}));case 2:return(0,o.qf)((function(){return(0,i.qn)().Phishing_Form_ResponsePage_Warning_Message_1}),(function(){return(0,i.qn)().Phishing_Survey_ResponsePage_Warning_Message_1}));default:return""}}(n);default:return}}},17280:function(n,t,e){"use strict";e.d(t,{h:function(){return u}});var r=e(34629),i=e(41594),o=e(75206),u=function(n){function t(t){var e,r,i=n.call(this,t)||this;return i.state={},r=e=i,s.forEach((function(n){var t=r[n];t&&(r[n]=function(){for(var r=[],i=0;i0&&t[1].firstChild.firstChild.focus()}}))},e.state={ImageLoadStatus:0,RetryCount:0},e.rc=e.rc.bind(e),e.ic=e.ic.bind(e),e.oc=e.oc.bind(e),e}return(0,r.C6)(t,n),t.prototype.componentDidMount=function(){var n=(0,s.Ti)().Schema;this.props.ImageInfoMaster.observe(this.oc,[n.AltText,n.ResourceId,n.ResourceUrl])},t.prototype.componentWillUnmount=function(){this.uc&&window.clearTimeout(this.uc),this.props.ImageInfoMaster.unobserve(this.oc)},t.prototype.render=function(){var n,e;this.props.FullFilled?(n="100%",e="auto"):(n=this.props.ImageWidth||(0,u.Vh)(),e=this.props.ImageHeight||(0,u.aV)());var r,o,s=this.state.RetryCount,a=this.props.ImageInfoMaster.Model,c=a.ResourceUrl;2===this.state.ImageLoadStatus&&s>0&&(c+="?"+s),this.sc()?o=t.createSpinner():1===this.state.ImageLoadStatus&&(r="visiable");var f=a.AltText||"";return i.createElement("div",{className:"office-form-title-image-box",onMouseOver:this.ec,onFocus:this.props.cvContainerClassName&&this.ec,tabIndex:this.props.cvContainerClassName&&0,onKeyUp:this.ha},i.createElement("img",{title:f,alt:f,className:r,height:e,onError:this.ic,onLoad:this.rc,src:c,width:n}),o,i.createElement(d.M,null,this.props.ImageInfoMaster.Model.AltText))},t.prototype.sc=function(){var n=this.props.ImageInfoMaster.Model;return 1!==this.state.ImageLoadStatus||n.ImageProcessingStatus!==a.Tc.Idle},t.createSpinner=function(){var n=i.createElement(h,(0,r.Cl)({},{ClassName:"designPage-question-titleLoadImage-spinner",Ignorable:!1}));return i.createElement("div",{className:"image-spinner"},n)},t.prototype.rc=function(){(0,o.GN)(2,{$imageType:this.props.ImageType,$location:"RenderCard"}),this.setState({ImageLoadStatus:1})},t.prototype.ic=function(){var n=this,t=this.state.RetryCount;t<3?this.uc=window.setTimeout((function(){return n.setState({RetryCount:++t})}),1e3):((0,o.GN)(1,{$imageType:this.props.ImageType,$location:"RenderCard"}),this.setState({ImageLoadStatus:2}))},t.prototype.oc=function(){this.forceUpdate()},t}(l.h)},47014:function(n,t,e){"use strict";e.d(t,{D:function(){return f}});var r=e(34629),i=e(41594),o=e(38826),u=e(64931),s=e(33589),a=e(17280),c=e(10086),f=function(n){function t(t){var e=n.call(this,t)||this;return e.ac=i.createRef(),e.state={ShowIR:!1},e.cc=e.cc.bind(e),e}return(0,r.C6)(t,n),t.prototype.render=function(){var n=this,t=this.state.ShowIR?"immersive-reader-focused":"";return i.createElement("div",{tabIndex:this.state.ShowIR?-1:0,onFocus:this.cc,className:"immersive-reader-button-wrapper"},i.createElement("button",{className:(0,o.x)("immersive-reader-button-form",this.props.className,t),"data-locale":(0,u.u)()||navigator.language,"aria-label":(0,s.qn)().ImmersiveReaderButton_Hint,onClick:this.props.onClick,onBlur:function(){return n.setState({ShowIR:!1})},ref:this.ac},i.createElement(c.l,{src:this.props.whiteIcon?"/Images/IR_white_title.svg":"/Images/immersive-reader-icon_black.svg",alt:(0,s.qn)().ImmersiveReaderButton_Hint,title:(0,s.qn)().ImmersiveReaderButton_Hint,style:{verticalAlign:"middle"}})))},t.prototype.cc=function(){var n=this;this.setState({ShowIR:!0},(function(){var t;null===(t=n.ac.current)||void 0===t||t.focus()}))},t}(a.h)},39528:function(n,t,e){"use strict";e.d(t,{P:function(){return a}});var r=e(34629),i=e(41594),o=e(30873),u=e(33330),s=e(50793),a=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.fc=i.createRef(),t}return(0,r.C6)(t,n),t.prototype.componentDidMount=function(){(0,o.X)($(this.fc.current))},t.prototype.render=function(){var n,t=this.props.Message,e=t;return"string"==typeof t&&(n={RenderMode:"RichText",Text:t,ContainsHtml:!0},e=(0,s.e)(n)),i.createElement("div",null,i.createElement("div",{className:"thank-you-page-confirm"},i.createElement(u.K,{FluentIcon:"Checkmark Circle",HTMLAttributes:{className:"office-form-theme-primary-color thank-you-page-font-icon"}}),i.createElement("span",{className:"thank-you-page-comfirm-text"},this.props.ConfirmText)),i.createElement("div",{className:"thank-you-page-container thank-you-page-message",ref:this.fc},e))},t}(e(17280).h)},44878:function(n,t,e){"use strict";e.d(t,{g:function(){return V}});var r=e(41594),i=e(46976),o=e(34629),u=e(67983),s=e(41922);function a(){return(0,o.sH)(this,void 0,void 0,(function(){return(0,o.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(428).then(e.bind(e,11907))];case 1:return[2,{default:n.sent().DateTimeRenderer}]}}))}))}function c(n){var t=(0,s.a)(c,a);return r.createElement(u.A,null,r.createElement(t,(0,o.Cl)({},n)))}function f(){return(0,o.sH)(this,void 0,void 0,(function(){return(0,o.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(948).then(e.bind(e,65492))];case 1:return[2,{default:n.sent().LikertRenderer}]}}))}))}function l(n){var t=(0,s.a)(l,f);return r.createElement(u.A,null,r.createElement(t,(0,o.Cl)({},n)))}function h(){return(0,o.sH)(this,void 0,void 0,(function(){return(0,o.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(476).then(e.bind(e,85057))];case 1:return[2,{default:n.sent().NPSRenderer}]}}))}))}function d(n){var t=(0,s.a)(d,h);return r.createElement(u.A,null,r.createElement(t,(0,o.Cl)({},n)))}function m(){return(0,o.sH)(this,void 0,void 0,(function(){return(0,o.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(439).then(e.bind(e,7047))];case 1:return[2,{default:n.sent().RankingRenderer}]}}))}))}function v(n){var t=(0,s.a)(v,m);return r.createElement(u.A,null,r.createElement(t,(0,o.Cl)({},n)))}function p(){return(0,o.sH)(this,void 0,void 0,(function(){return(0,o.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(996).then(e.bind(e,62044))];case 1:return[2,{default:n.sent().RatingRenderer}]}}))}))}function g(n){var t=(0,s.a)(g,p);return r.createElement(u.A,null,r.createElement(t,(0,o.Cl)({},n)))}var b=e(22224),w=e(38826),S=e(98582),y=e(49105),I=e(77310),F=e(35798),C=e(59198),_=e(33471),k=e(75187),P=e(8093);var T=e(8911),N=e(36316),R=e(72138),E=e(71683),L=e(97410),O=e(33330),x=e(37696),D=e(46404),M=e(19886),A=function(n){function t(t){var e=n.call(this,t)||this;return e.lc="presentation",e.hc=1,e.vc=new Map,e.state={ShowWarningMessage:!1},e.onMathValueChange=e.onMathValueChange.bind(e),e.onInputValueChange=e.onInputValueChange.bind(e),e.gc=e.gc.bind(e),e.validateOnBlur=e.validateOnBlur.bind(e),e.setInputFieldDefault(),e}return(0,o.C6)(t,n),t.prototype.componentWillUpdate=function(n){this.props.LocaleId!==n.LocaleId&&(this.defaultPlaceholder=(0,F.Lu)()?n.LocalizedStrings.Question_TextFiled_Placeholder:n.LocalizedStrings.TextField_DefaultPlaceholder)},t.prototype.createReactNodes=function(){var n=this,t=this.props.Master.Model,e=this.props.Master.Question,i=e.Model,o=e.Form.SettingMaster.Model.IsAnonymous;this.defaultPlaceholder=(0,F.Lu)()?this.props.LocalizedStrings.Question_TextFiled_Placeholder:this.props.LocalizedStrings.TextField_DefaultPlaceholder;var u,s,a,c=this.getErrorMessageLabel();if(this.props.PrintView){var f=(0,E.qf)((function(){return"textbox-printview"}),(function(){return"textbox-printview cv-textbox-printview"}));u=r.createElement("div",{className:f,key:"printView"},t.Answer)}else{var l=void 0,h=void 0,d=void 0;if(i.IsMathQuiz&&!i.Multiline){var m=this.getCorrectnessIcon(!0),v=i.InputSwitcherDisabled||!i.IsMathInputDefault,p=this.props.Disabled||v?void 0:this.createMathTextSwitcher(),g=void 0,b=void 0;if(t.AnswerEntity)g=t.AnswerEntity.IsMathAnswer,b=t.AnswerEntity.Answer;else g=!i.IsAnswerPlainText,b=(0,y.Bl)(t.Answer||"{}").Answer||"";if(g){this.props.IsPrintViewDesignTime?(d=" ",a=i.InputSwitcherDisabled&&r.createElement("div",{className:"print-restriction-tip"},this.props.LocalizedStrings.TextField_EnterMathAnswer)):d=i.InputSwitcherDisabled?this.props.LocalizedStrings.TextField_EnterMathAnswer:this.defaultPlaceholder;var w={onBlur:this.validateOnBlur},S=r.createElement(T.Gw,{Disabled:this.props.Disabled,HTMLAttributes:w,key:"textmathquestion-mathfield",Location:"TextField.Response",onValueChange:this.onMathValueChange,Placeholder:d,QuestionId:i.Id,Value:b},p);h=r.createElement("div",{className:"office-form-response-question-math-container"},S,m)}else{var I=(0,M.KR)({AutoSelection:!0,Disabled:this.props.Disabled,HTMLAttributes:{className:"design-question-math-plaintext-text",onBlur:this.validateOnBlur},key:"textmathquestion-textfield",Label:void 0,MaxLength:(0,_.WH)(),MinimalHeight:this.props.IsPrintViewDesignTime&&i.Multiline?void 0:40,onValueChange:this.onMathValueChange,Options:{HTMLPropsForInnerElement:this.getElementProps({className:"design-question-math-plaintext-text"})},Placeholder:d||this.defaultPlaceholder,Rows:i.Multiline&&this.props.IsPrintViewDesignTime&&10,Theme:this.props.Theme,ValidationStyle:this.getValidationStyle(),Value:b});h=r.createElement("div",{className:"office-form-response-question-math-textfield"},I,p,m)}s=r.createElement("div",{className:"student-feedback-view-short-text-field-with-correctness",key:"normalView"},h)}else{this.props.IsPrintViewDesignTime?(d=" ",a=i.IsNumber&&r.createElement("div",{className:"print-restriction-tip"},e.getNumberValidationErrorMessage(this.props.LocalizedStrings))):d=(0,E.qf)((function(){return i.IsNumber?e.getNumberValidationErrorMessage(n.props.LocalizedStrings):i.Placeholder||n.defaultPlaceholder}),(function(){var t,r=n.questionLocalizedItemMaster,o=r&&r.Model;return t=e.getValidationErrorMessage(n.props.LocalizedStrings,o&&o.formsprocustomplaceholder),i.IsNumber||i.HasTFRestrictionForPro?t:i.Placeholder||n.defaultPlaceholder})),l=(0,M.KR)({Disabled:this.props.Disabled,HTMLAttributes:{onBlur:this.validateOnBlur},key:"textquestion-textfield",Label:void 0,MaxLength:(0,_.WH)(),onValueChange:this.onInputValueChange,Required:this.props.Master.Question.Model.Required,Options:{HTMLPropsForInnerElement:this.getElementProps({className:"office-form-question-textbox"})},Placeholder:d,Rows:i.Multiline&&this.props.IsPrintViewDesignTime&&10,TextFieldType:i.Multiline?2:0,Theme:this.props.Theme,ValidationStyle:this.getValidationStyle(),Value:t.Answer});m=this.getCorrectnessIcon();s=r.createElement("div",{className:"student-feedback-view-short-text-field-with-correctness",key:"normalView"},l,m,this.bc(o))}}return[u,s,a,this.createCorrectAnswerList(),c]},t.prototype.bc=function(n){return this.state.ShowWarningMessage&&(0,C.G7)("SensitiveInfoCheckInResponsePage")&&((0,C.G7)("SensitiveInfoCheckForAllForms")||n)?r.createElement("div",{className:"warning-message-container",key:"warningMessage"},this.props.LocalizedStrings.Response_Page_SensitiveInfo_QuestionWarning):null},t.prototype.createMathTextSwitcher=function(){var n=this.props.Master.Question.Model,t="design-question-choice-to-math-button";this.props.IsMobile&&(t=(0,w.x)(t,"isMobile"));var e,r,i={className:t,onClick:this.gc()};return n.IsAnswerPlainText?(e=this.props.LocalizedStrings.Designer_Question_Equation_Button,r=this.props.LocalizedStrings.Designer_Question_Equation_Button_Tooltip):(e=this.props.LocalizedStrings.Designer_Question_EquationToText_Button,r=this.props.LocalizedStrings.Designer_Question_EquationToText_Button_Tooltip),(0,x.n)({ButtonStyle:1,GlyphButtonStyle:"GlyphOnly",HTMLAttributes:i,FluentIcon:n.IsAnswerPlainText?"Math Formula":"Text Field",IconClassName:"forms-icon-size24x24",Text:e,Tooltip:r})},t.prototype.gc=function(){var n=this;return function(t){var e=n.props.Master.Question.Model,r=n.props.Master.Model,i=(0,y.Bl)(r.Answer||"{}");e.IsAnswerPlainText=!e.IsAnswerPlainText;var o={Answer:i.Answer,IsMath:!e.IsAnswerPlainText};r.Answer=JSON.stringify(o),(0,L.O7)(e.IsAnswerPlainText?"DesignPage.Quiz.SwitchMathToTextInput":"DesignPage.Quiz.SwitchTextToMathInput",{location:"TextField.Response",questionId:e.Id}),n.forceUpdate()}},t.prototype.setInputFieldDefault=function(){var n=this.props.Master.Question.Model,t=this.props.Master;this.props.Master.Question.ensureFieldsReady([N.db.Schema.Id]).then((function(){if(n.IsMathQuiz){if(t.Model.Answer){var e=(0,y.Bl)(t.Model.Answer||"{}");if(void 0!==e.IsMath)return void(n.IsAnswerPlainText=!e.IsMath)}n.IsAnswerPlainText=!n.IsMathInputDefault}else n.IsAnswerPlainText=!0}))},t.prototype.onInputValueChange=function(n){var t=this.props.Master.Model,e=(0,I.OX)(n);t.Answer=e},t.prototype.onMathValueChange=function(n){var t=this.props.Master.Model,e={Answer:(0,I.OX)(n),IsMath:!this.props.Master.Question.Model.IsAnswerPlainText};t.Answer=JSON.stringify(e)},t.prototype.wc=function(n){var t=this.props.Master.Model,e=function(n){return!(void 0===n||/[^\u0000-\u007F]+/.test(n)||!/(4\d{3})(-?|\x20*)(\d{4}(-?|\x20*?)){3}/.test(n)&&!/(?!000|666)[0-8][0-9]{2}[- ](?!00)[0-9]{2}[- ](?!0000)[0-9]{4}/.test(n)&&(!/^[^\s]{8,16}$/.test(n)||!/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$/.test(n)&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$/.test(n)&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(n)))}(n);this.setState({ShowWarningMessage:e}),t.HasSensitiveInfo=e},t.prototype.validateOnBlur=function(){var n=this.props.Master.Model,t=this.props.Master.Question;if(t.Model.IsNumber){var e=n.Answer;t.verify(e)!==N.FF.Success||t.Model.IsMathQuiz||(0,E.qf)((function(){return n.Answer=(0,P.Yp)(e)}),(function(){return n.Answer=t.Model.FormsProValidationType===N.b.Email||t.Model.FormsProValidationType===N.b.Custom?e:(0,P.Yp)(e)}))}this.wc(n.Answer),(0,E.CR)((function(){var n,e,r,o,u,s,a,c,f,l;if(null===(e=null===(n=null==t?void 0:t.Form)||void 0===n?void 0:n.Model)||void 0===e?void 0:e.Settings.PauseAndResumeSurvey){var h=(0,k.Db)().vt;if(h){var d=h.split("_")[1],m=null===(o=null===(r=null==t?void 0:t.Form)||void 0===r?void 0:r.Model)||void 0===o?void 0:o.Settings.IsAnonymous,v=null===(s=null===(u=null==t?void 0:t.Form)||void 0===u?void 0:u.Model)||void 0===s?void 0:s.Id,p=(0,_.MO)();(0,C.G7)("CVPartialResponse")&&(null===(c=null===(a=null==t?void 0:t.Form)||void 0===a?void 0:a.Model)||void 0===c?void 0:c.Settings.RecordPartialResponse)&&(p=null===(l=null===(f=null==t?void 0:t.Form)||void 0===f?void 0:f.Model)||void 0===l?void 0:l.Settings.RecordPartialResponse,(0,L.fL)({type:"CustomerVoice_PartialResponseSettingTaken",eventInfo:{Component:"PartialResponse",Value:p}})),(0,i.callIoCUpdatePRForText)(v,m,d,h,p)}}}))},t.prototype.getErrorMessageLabel=function(){var n=this,t=!0,e=this.props.Master.Model,r=this.props.Master.Question,i=e.Answer,o=r.verify(e.Answer);if(e.Answer&&o!==N.FF.Success){var u;switch(o){case N.FF.NumberValidationError:case N.FF.RegExValidationError:u=r.getNumberValidationErrorMessage(this.props.LocalizedStrings),(0,E.CR)((function(){var t=n.questionLocalizedItemMaster,e=t&&t.Model;u=r.getValidationErrorMessage(n.props.LocalizedStrings,e&&e.formsprocustomplaceholder)}));break;case N.FF.MathLengthError:u=this.props.LocalizedStrings.Math_Answer_LengthLimit_Message;break;default:return}var s={className:"validation-error-message-label",role:"alert"};return(0,E.CR)((function(){n.hc++,n.vc.has(o)&&n.vc.get(o)===i?t=!1:n.vc.set(o,i),n.hc%2==0&&!0===t&&(s["aria-label"]=" ")})),(0,D.f)({Alert:!0,HTMLAttributes:s,key:"textquestion-errorlabel",Label:u})}},t.prototype.getCorrectnessIcon=function(n){var e=this.props.Master,i=this.props.Master.Question,u=i.Model;if(this.props.ShowQuizResult&&this.props.ShowPrintResult&&!u.Multiline&&u.IsQuiz){var s=t.isAnswerCorrect(e);if(null!==s&&(s||this.props.IsMobile)){var a=n?"student-feedback-view-short-text-math-correctness-icon-container":"student-feedback-view-short-text-correctness-icon-container";this.props.IsMobile&&(a=(0,w.x)(a,"isMobile"));var c,f=s?this.props.LocalizedStrings.Quiz_CorrectAnswer:this.props.LocalizedStrings.Quiz_WrongAnswer,l={FluentIcon:s?"Checkmark":"Dismiss",HTMLAttributes:{className:(0,w.x)("student-feedback-view-short-text-correctness-icon forms-icon-size14x14",s?"image-button-answerkey":"image-button-checked-wrong-answer"),title:f}},h=e.Model.Answer;if(c=h,!h||(0,S.uJ)(h))c=u.Placeholder||this.defaultPlaceholder;else if(i.Model.IsMathQuiz){var d=(0,y.Bl)(h||"{}");c=d.IsMath?(0,T.Uc)({Formula:null==d.Answer?h:d.Answer}):null==d.Answer?h:d.Answer}var m={"aria-hidden":!0,className:"student-feedback-view-short-text-hidden-text-to-position-correctness-icon",role:this.lc};return r.createElement("div",{className:a},r.createElement("span",(0,o.Cl)({},m),c),(0,O.a)(l))}}},t.isAnswerCorrect=function(n){var t=n.Model;return null!=t.QuizResult?t.QuizResult.IsAnswerCorrect:new R.C(n.Question.Model).areAnyAnswersDefined()?n.Question.isCorrectAnswer(t.Answer):null},t.prototype.createCorrectAnswerList=function(){var n=this.props.Master.Question.Model,t=this.props.Master.Model.QuizResult;if(this.yc()){var e=null!=t?t:n,i=new R.C(e);if(i.areAnyAnswersDefined()){var o,u=i.getAnswers();if(u.some((function(n){return n.isMath}))){for(var s=[],a=0,c=u;a0?e.CoAuthors[e.CoAuthors.length-1].userId!==(0,a.m1)().userInfo.UserId&&(n=o.map(e.CoAuthors,(function(n){if(n.userId!==(0,a.m1)().userInfo.UserId){var e={ariaLabel:t.props.LocalizedStrings.DesignPage_NavBar_CoAuthor_Screen_Reader.format(n.displayName||n.userId,t.props.Ordinal||0),displayText:(0,W.K)(n.displayName,n.firstName,n.lastName),email:n.email,isCoAuthUser:!0,key:n.userId,name:n.displayName,tooltip:n.displayName||n.userId};return i.createElement(G.D,(0,r.Cl)({},e))}}))):n=void 0,i.createElement("div",{className:"question-coAuthor-notification-container-render-mode","aria-live":"polite"},n)},t.prototype.calcVideoDisplayHeight=function(){if((0,s.Fr)()){var n=$(window).width();return 0===n&&(n=document.body.scrollWidth),n/(this.Pc/this.kc)}return(0,g.yA)()},t.prototype.getOrdinalId=function(){return this.isImageLayout()?"".concat(this.Rc,"-ordinal"):void 0},t.prototype.getTitleId=function(){return"".concat(this.Rc,"-title")},t.prototype.getSubtitleId=function(){return this.isSubtitleLayout()?"".concat(this.Rc,"-subtitle"):void 0},t.prototype.Ac=function(){return"".concat(this.Rc,"-image")},t.prototype.isImageLayout=function(){return this.props.Master.Question.Form.Model.HasQuestionMedia&&!this.props.HideMedia},t.prototype.isSubtitleLayout=function(){var n=this.props.Master.Question.Model;return(0,p.G7)("CVLeapFrogVisualRefresh")?n.ShowSubtitle:n.ShowSubtitle&&!!n.Subtitle},t.prototype.Oc=function(){var n=$(this._c.current),t=n.find(".office-form-question-formula span"),e=n.find(".office-form-question-choice-formula span"),r=n.find(".design-formula-mixer span");(0,b.X)(n.find("span").not(t).not(e).not(r))},t}(K.h)},24087:function(n,t,e){"use strict";e.d(t,{x:function(){return l}});var r=e(34629),i=e(41594),o=e(46302),u=e(64931),s=e(39962),a=e(94386),c=e(71683),f=e(17280),l=function(n){function t(t){var e=n.call(this,t)||this;return e.state={TermUrl:""},e}return(0,r.C6)(t,n),t.prototype.componentDidMount=function(){var n;(0,c.CR)((function(){(0,u.OF)()&&(0,s.yT)().then((function(t){n=t?"https://go.microsoft.com/fwlink/?linkid=2129962":"https://go.microsoft.com/fwlink/?linkid=2130334"}))})),n||(n=(0,o.fF)(),this.props.ForceUseCommercialTermsLink?n=(0,o.w5)():this.props.FormMaster&&(n=function(n){if(n.SyncContext!==a.$.AdminPhishingReviewForm&&(n.SyncContext===a.$.SharedTimeForm||n.isFieldReady(n.Schema.Settings)&&n.Model.Settings.IsAnonymous||n.isFieldReady(n.Schema.Settings)&&n.Model.Settings.NotRecordIdentity))return o.lp;return o.Cv}(this.props.FormMaster))),this.setState({TermUrl:n})},t.prototype.render=function(){var n=this,t=this.props.LocalizedStrings.TermsLink;(0,c.CR)((function(){t=n.props.LocalizedStrings.Response_Page_Footer_Open_In_New_Tab_Text_Terms_Privacy.format(t)}));var e={href:this.state.TermUrl,target:"_blank",tabIndex:this.props.tabIndex,"aria-label":t};return i.createElement("a",(0,r.Cl)({},e),this.props.LocalizedStrings.TermsLink)},t}(f.h)},34765:function(n,t,e){"use strict";e.d(t,{q:function(){return p}});var r=e(34629),i=e(41594),o=e(48723),u=e(30062),s=e(30092),a=e(16038),c=e(41103),f=e(17891),l=e(59198),h=e(33589),d=e(46976),m=e(75187),v=e(71683),p=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.qs=!0,t.Vc=new Image,t}return(0,r.C6)(t,n),t.prototype.componentWillMount=function(){var n=this,t=this.props.ThemeMaster;t&&(this.zc=function(t){t.NewValues.Name===(0,h.qn)().Customized_Theme_Name&&t.NewValues.BackgroundImage!==n.state.ImageUrl?n.setState({ImageUrl:t.NewValues.BackgroundImage,IsBackgroundImgCached:!1}):n.forceUpdate()},t.observe(this.zc))},t.prototype.componentWillUnmount=function(){var n=this.props.ThemeMaster;this.qs=!1,n&&n.unobserve(this.zc)},t.prototype.render=function(){var n,e=this,r=this.props.ThemeMaster;if(!(n=(0,s.J)()&&(0,f.m1)().themeInfo||(0,m.Db)().oembedocv&&(0,f.m1)().themeInfo?t.getSPOTheme((0,f.m1)().themeInfo):r&&r.Model))return null;var o=n.Name,c=n.PrimaryColor,p=n.SecondaryColor,g=n.BackgroundColor,b=n.BackgroundImage;(b=(0,d.getIoCThemeBackground)(b))&&b.match("url((.*))")&&(b=b.substring(4,b.length-1)),o===(0,h.qn)().Customized_Theme_Name&&b&&(this.state.IsBackgroundImgCached||(this.Vc.src=b,this.Vc.onload=function(n){e.qs&&e.setState({ImageUrl:b,IsBackgroundImgCached:!0})},b+="_mo"));var w="";if(w+=".office-form-theme-primary-color { color:".concat(c,"; }"),w+=".office-form-theme-secondary-color { color:".concat(p,"; }"),w+=".office-form-theme-primary-background { background:".concat(c,"; color:").concat(u.c,"; }"),w+=".office-form-theme-secondary-background { background:".concat(p,"; }"),w+=".office-form-theme-primary-foreground, ",w+=".office-form-theme-primary-foreground a, ",w+=".office-form-theme-primary-foreground.rateit .rateit-selected, ",w+=".office-form-theme-primary-foreground.rateit .rateit-hover",w+="{ color:".concat(c,"; } "),w+=".office-form-theme-border-top { border-top-color:".concat(c,"; }"),w+=".office-form-theme-border-bottom-for-mobile { border-bottom-color:".concat(c,"; }"),w+=".office-form-theme-spinner { border-color:".concat(c," #C7E0F4 #C7E0F4;}"),w+=".office-form-theme-border { border-color:".concat(c,";}"),w+=".office-form-theme-interactive-background.active { background-color:".concat(c,"; }"),w+=".office-form-theme-interactive-background:hover { background-color:".concat(p,"; }"),w+=".office-form-theme-interactive-background:focus { background-color:".concat(p,"; }"),w+=".office-form-theme-interactive-background:active { background-color:".concat(p,"; }"),w+=".office-form-theme-button-lightbackground { color:".concat(c,"; }"),w+=".office-form-theme-button-lightbackground.active { background-color:".concat(p,"; }"),w+=".office-form-theme-interactive-color { color:".concat(c,"; }"),w+=".office-form-theme-interactive-color:hover { color:".concat(p,"; }"),w+=".office-form-theme-interactive-color:focus { color:".concat(p,"; }"),w+=".office-form-theme-interactive-color:active { color:".concat(p,"; }"),w+=".office-form-theme-button { color: white; background:".concat(c,"; }"),w+=".office-form-theme-button:hover { background:".concat(p,"; }"),w+=".office-form-theme-button:focus { background:".concat(p,"; }"),w+=".office-form-dark-theme-button {color:".concat(p,"}"),w+=".office-form-dark-theme-button:hover { color:".concat(p,"; }"),w+=".office-form-dark-theme-button:focus { color:".concat(p,"; }"),w+=".office-form-theme-page-background-active.active { background :"+"".concat(c,"; color: ").concat(u.c,"; }"),w+=".office-form-theme-page-foreground-active.active, ",w+=".office-form-theme-select-color.active *{ color: ".concat(c,"; }"),w+=".office-form-theme-toggle.active { background: "+"".concat(c,"; border-color:").concat(c,"; }"),w+=".office-form-theme-border { border-color:".concat(c,"; }"),w+=".office-form-theme-outline { outline-color:".concat(c,"; }"),w+=".office-form-theme-button-foreground.active,.office-form-theme-button-foreground.touch.active:hover { color: white; background: "+"".concat(c,"; outline-color:").concat(c,"; }"),w+=".office-form-theme-button-foreground.active:hover { background: "+"".concat(p,"; outline-color:").concat(p,"; }"),w+=".office-form-theme-quiz-point { color:".concat(p,"; }"),w+=".office-form-theme-quiz-totalPoints-bar {color:".concat(c,"; }"),w+=".office-form-theme-image-question-background, .office-form-theme-video-question-background { background-color: "+"".concat(g,"; outline: 1px solid transparent; }"),w+=".office-form-theme-image-container-border { border: 3px solid "+"".concat(g,"; }"),w+=".office-form-sortable-chosen .office-form-sort-item "+"{ background: ".concat(c,"; color:white; }"),w+=".office-form-theme-sort-item { color: white; background:".concat(c,"; }"),w+=".office-form-theme-sort-item:hover { background:".concat(p,"; }"),w+=".office-form-theme-focus-border .office-form-textfield-input:focus,.office-form-theme-focus-border .form-control:focus,.office-form-theme-focus-border .select-control:focus,.office-form-theme-focus-border .picker--focused .picker__holder:focus,.roosterjs-editor-box:focus { border-color: "+"".concat(c,"; outline-color:").concat(c,"; }"),w+=".office-form-theme-bgcolor-hover:hover { background:".concat(g,"; }"),w+=".office-form-theme-button-color:hover *{ color:".concat(p,"; }"),(0,v.CR)((function(){(0,m.Db)().oembedocv&&(w+=".office-form-question-title { color:".concat(c,"; }"),w+='input[type="radio"] { -webkit-appearance: none; -moz-appearance: none; appearance: none;display: inline-block; width: 20px; height: 20px; padding: 4px;background-clip: content-box; border: 0.1px solid #333;border-radius: 50%;}',w+='input[type="radio"]:checked { background-color:'.concat(c,";")+"border: 0.1px solid ".concat(c,";}"),w+=".office-form-question-subtitle, .office-form-subtitle {display: none;}",w+=".office-form-content {padding-top: 0 !important;}",w+=".customer-voice .office-form-page-padding-preview {padding-left: 0 !important;}"),(0,m.Db)().maxwidth&&(w+=".customer-voice .office-form-page-padding-preview>div {max-width: ".concat((0,m.Db)().maxwidth,"% !important;}")),((0,l.G7)("CVLeapFrogChoiceQuestionNewUX")||(0,l.G7)("CVLeapFrogVisualRefresh"))&&(w+=".office-form-theme-primary-fill { fill:".concat(c,"; }")),(0,l.G7)("CVLeapFrogVisualRefresh")&&(w+=".office-form-theme-border-left { border-left-color:".concat(c,"; }"),w+=".design-time-mixer:hover { border-left: 3px solid ".concat(c,"; }"),w+=".nps-control-table td { border-color:".concat(c," !important; }"),w+=".office-form-theme-primary-stroke { stroke:".concat(c,"; }"))})),w+=".form-intelligence-question-row.office-form-intelligence-theme-li { outline: 1px solid "+"".concat(p,"; background-color:").concat(g,";}")+".form-intelligence-question-row:hover {background-color:".concat(g,";}"),w+=".form-intelligence-question-row.mobile-office-form-intelligence-theme-li { outline: 1px solid "+"".concat(c,"; background-color:").concat(g,"; color:").concat(c,";}"),w+=".office-form-insight-theme-control .simple-data-control-content { color : "+"".concat(c,"; }"),w+=".office-form-insight-theme-control .simple-data-control-description { color : "+"".concat(c,"; }"),w+=".office-form-insight-theme-control .simple-data-control-description:hover { color : "+"".concat(p,"; }"),w+=".office-form-insight-theme-control .simple-data-control-description:focus { color : "+"".concat(p,"; }"),w+=".office-form-insight-theme-control .simple-data-control-description:active { color : "+"".concat(p,"; }"),w+=".office-form-info-container .office-form-info-children.office-form-theme-spo-link { color: "+"".concat(c,"; }"),w+=".office-form-info-container .office-form-info-children.office-form-theme-spo-link:hover"+"{color:".concat(p,"; }"),w+=".office-form-spo-embed .office-form-footer-block .office-form-theme-spo-link { color: "+"".concat(c,"; }"),w+=".office-form-spo-embed .office-form-footer-block .office-form-theme-spo-link:hover { color: "+"".concat(p,"; }"),w+=".office-form-theme-spo-link { color:".concat(c,"; }"),w+=".office-form-theme-spo-link:hover { color:".concat(p,"; }"),c){var S=c;S.startsWith("#")&&(S=S.substring(1)),S.length>6&&(S=S.substring(0,6)),w+=".office-form-theme-progress-bar-background { background: #".concat(S,"0D; }")}return(0,s.J)()||(b?(w+=".thank-you-page-content { opacity:.97; }",w+=".introduction-for-responser-container { opacity:.97; }",(0,a.Fr)()?(w+=".office-form-theme-page-background { background-color:".concat(g,"; }"),w+=".office-form-theme-footer { background: rgba(255,255,255,.4); }"):(w+=".office-form-theme-page-background { background-image: url("+"".concat(b,"); }"),w+=".office-form-theme-footer { background: rgba(244,244,244,.8); }"),w+=".preview-mobile-container.office-form-theme-page-background { background:"+"".concat(g,"; }"),w+=".preview-mobile-container .office-form-theme-footer { background: rgba(255,255,255,.4); }"):(w+=".office-form-theme-footer { background : rgba(255,255,255,.4); }",w+=".office-form-theme-page-background { background-color:".concat(g,"; }"))),w+=".office-form-theme-shadow { box-shadow: 0 0.8px 1.8px 0 rgba(0, 0, 0, 0.132), 0 0.15px 0.45px 0 rgba(0, 0, 0, 0.132); }",o===(0,h.qn)().Customized_Theme_Name&&(w+=".office-form-body { opacity: 0.97; }"),w+=(0,d.getIoCThemeStyle)(n),i.createElement("style",null,w)},t.getSPOTheme=function(n){var t=(0,o.bH)(n);return{BackgroundColor:(0,o.UF)(t),BackgroundImage:null,Name:c.yP,PrimaryColor:t,SecondaryColor:(0,o.i0)(t),Thumbnail:null}},t}(e(17280).h)},59643:function(n,t,e){"use strict";e.d(t,{a:function(){return S}});var r=e(34629),i=e(41594),o=e(22224),u=e(53013),s=e(16038),a=e(38826),c=e(64931),f=e(59198),l=e(30873),h=e(21342),d=e(87083),m=e(67003),v=e(15490),p=e(71683),g=e(50793),b=e(17280),w=e(47014),S=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.Bc=i.createRef(),t.qc=i.createRef(),t.Nc=400,t.Ec=function(){var n=[];n.push({content:t.props.Title}),n.push({content:"\n"}),n.push({content:t.props.SubTitle});var e={chunks:n,title:""},r={uiLang:(0,c.u)()||navigator.language};(0,h.oD)().getImmersiveReaderToken().then((function(n){n&&ImmersiveReader&&ImmersiveReader.launchAsync(n,null,e,r)}))},t}return(0,r.C6)(t,n),t.prototype.componentDidMount=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){return(0,l.X)($(this.Bc.current)),(0,l.X)($(this.qc.current)),this.Hc(),[2]}))}))},t.prototype.componentDidUpdate=function(){(0,l.X)($(this.Bc.current)),(0,l.X)($(this.qc.current)),this.Hc()},t.prototype.render=function(){var n=o.extend({},this.props.HTMLAttributes);n.className=(0,a.x)(n.className,"office-form-title-container");var t=this.Qc(),e=(0,a.x)(this.props.TitleId,document.getElementById(v.S)&&v.S);return i.createElement("div",{className:"office-form-title-content","aria-labelledby":t?null:e,role:t?null:"group"},i.createElement("div",(0,r.Cl)({},n),this.qu(),this.Gc(),"Bottom"===this.props.MediaLayout?this.props.children:void 0),!this.Qc()&&i.createElement("div",{className:"office-form-title-ir-container"},this.$c(),this.Kc()))},t.prototype.qu=function(n){var t,e="office-form-title-box";return"Bottom"!==this.props.MediaLayout&&(e="".concat(e," ").concat(this.props.MediaLayout.toLowerCase()),t=this.props.children),i.createElement("div",{className:e},t,this.Jc())},t.prototype.Jc=function(){var n=this,t=o.extend({},this.props.HTMLPropsForInnerElement),e=this.props.Heading||1;return t.className=(0,a.x)("office-form-title",t.className,"heading-".concat(e),2===this.props.Heading&&"office-form-theme-secondary-color",!this.props.Title&&"empty-title"),(0,p.qf)((function(){var e={RenderMode:"RichText",Text:(0,m.Xs)(n.props.Title,n.props.RichTitle),ContainsHtml:!0};return i.createElement("div",(0,r.Cl)({},t,{ref:n.qc}),i.createElement(g.K,(0,r.Cl)({},e)),n.Qc()&&n.$c(),t.children)}),(function(){var e=n.props.RichTitle||n.props.Title;return i.createElement("div",(0,r.Cl)({},t),i.createElement(p.xs.RichtTextControl,{HTMLContent:e}),t.children)}))},t.prototype.Hc=function(){2===this.props.Heading&&document.getElementById(v.S)&&$(this.qc.current).attr("aria-labelledby",v.S)},t.prototype.Kc=function(){return(0,s.lT)()||(0,u._x)()||this.props.Heading>1?null:(0,d.y)({ImmersiveReaderToggleProps:(0,r.Cl)({},this.props.ImmersiveReaderToggleProps)})},t.prototype.$c=function(){var n;return(0,s.lT)()||(0,u._x)()||(0,f.am)()||!(null===(n=this.props.ImmersiveReaderToggleProps)||void 0===n?void 0:n.ShouldShowImmersiveReaderButtons)?null:i.createElement(w.D,{onClick:o.debounce(this.Ec,this.Nc,!0),whiteIcon:!this.Qc(),className:!this.Qc()&&"office-form-theme-button"})},t.prototype.Gc=function(){if(this.props.SubTitle){var n={RenderMode:"RichText",Text:(0,m.Xs)(this.props.SubTitle,this.props.RichSubtitle),ContainsHtml:!0};return i.createElement("div",{className:"office-form-subtitle heading-".concat(this.props.Heading||1),ref:this.Bc},i.createElement(g.K,(0,r.Cl)({},n)))}},t.prototype.Qc=function(){return 2===this.props.Heading},t}(b.h)},48982:function(n,t,e){"use strict";e.d(t,{b:function(){return o}});var r=e(41594),i=e(33330);function o(n){var t=r.createRef(),e=r.createRef(),o=n.IsMobile,u=n.VideoUrl,s=o?"mobile-youtube":"pc-youtube";return s=n.InDesignMode?"design-question-title-youtube-placeholder ".concat(s):"office-form-title-youtube-placeholder ".concat(s),r.createElement("div",{className:s},r.createElement("div",{className:"question-title-youtube-title"},r.createElement("a",{className:"question-title-youtube-link",href:u,rel:"noreferrer",target:"_blank"},u)),r.createElement("div",{className:"question-title-youtube-tip"},r.createElement("span",{className:"question-title-youtube-tip-text"},n.LocalizedStrings.DesignPage_Youtube_Disabled_Launch_Tip),!o&&r.createElement(i.K,{FluentIcon:"Info",HTMLAttributes:{className:"forms-icon-size12x12 question-title-youtube-tip-icon",onMouseOver:function(){var n=$(t.current&&t.current.getHtmlElement()),r=$(e.current);n&&r&&r.css({left:n.offset().left+n.width()/2,top:n.offset().top+n.width()/2})}},ref:t}),r.createElement("span",{className:"question-title-youtube-hover-tip ms-Icon",ref:e},n.LocalizedStrings.DesignPage_Youtube_Disabled_Hover_Tip)))}},59434:function(n,t,e){"use strict";e.d(t,{eS:function(){return a},Xn:function(){return u},pl:function(){return s}});var r,i=e(22224);function o(n){return $.expr.filters.visible(n)&&!$(n).parents().addBack().filter((function(){return"hidden"===$.css(this,"visibility")})).length}function u(n){for(var t=[],e=1;e=0;--o){u=r[o];if(!n.contains(u)&&!f(u))return void r[o].focus()}}}}function s(n){$(n).on("keydown",c)}function a(n){for(var t=[],e=1;e0&&r[0].focus()}function c(n){if(9===n.keyCode){n.stopPropagation(),n.preventDefault();var t=$(this),e=i.union(t.filter(":focusable").toArray(),t.find(":focusable").toArray()),r=e.indexOf(document.activeElement);if(!(r<0)){var o=i.union(e.slice(r+1),e.slice(0,r));n.shiftKey&&o.reverse(),o.push(e[r]);var u=i.find(o,(function(n){return!f(n)}));u&&u.focus()}}}function f(n){var t=Number(n.getAttribute("tabindex"));return!isNaN(t)&&t<0}(window.jQuery?Promise.resolve():(r||(r=Promise.all([e.e(616),e.e(96)]).then(e.t.bind(e,95616,23)).then((function(n){return window.$=window.jQuery=n.default}))).catch((function(){return r=void 0})),r)).then((function(){$.extend($.expr[":"],{focusable:function(n){ /*! * jQuery UI Core @VERSION * http://jqueryui.com * * Copyright 2013 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ */ return function(n,t){var e,r,i,u=n.nodeName.toLowerCase();return"area"===u?(r=(e=n.parentNode).name,!(!n.href||!r||"map"!==e.nodeName.toLowerCase())&&!!(i=$("img[usemap=#"+r+"]")[0])&&o(i)):(/input|select|textarea|button|object/.test(u)?!n.disabled:"a"===u&&n.href||t)&&o(n)}(n,!isNaN(Number($(n).attr("tabindex"))))}})}))},58213:function(n,t,e){"use strict";e.d(t,{t:function(){return i}});var r=e(45430);function i(){return r.km.Resolve("ILogger")}},45430:function(n,t,e){"use strict";e.d(t,{km:function(){return o}});var r=function(){function n(){this.Xc=!1,this.Yc=!1}return n.prototype.UsingSingleton=function(n){return this.Zc(n,!0)},n.prototype.UsingFactory=function(n){return this.Zc(n,!1)},n.prototype.Create=function(){return this.Xc?(this.nf||(this.nf=this.tf()),this.nf):this.tf()},n.prototype.Zc=function(n,t){return this.Xc=t,this.ef=n,this},n.prototype.tf=function(){if(this.Yc)throw Error("Circular dependency detected ");this.Yc=!0;var n=this.ef();return this.Yc=!1,n},n}(),i=function(){function n(){this.if={}}return n.prototype.Add=function(n,t){this.if[n]=t},n.prototype.Get=function(n){return this.if[n]},n}(),o=new(function(){function n(){this.uf=new i}return n.prototype.Resolve=function(n){var t,e=this.uf.Get(n);if(!e)throw Error("Failed to resolve ".concat(n,", make sure you have registered it by calling Register()"));try{t=e.Create()}catch(t){throw Error("Exception when resolving ".concat(n,": ").concat(t))}return t},n.prototype.Register=function(n){var t=new r;return this.uf.Add(n,t),t},n}())},94430:function(n,t,e){"use strict";e.d(t,{T:function(){return r}});var r=function(){function n(){this.D365ToOfficeLanguageMap={"ar-sa":"ar","bg-bg":"bg","ca-es":"ca","cs-cz":"cs","da-dk":"da","de-de":"de","el-gr":"el","en-us":"en-us","es-es":"es-ES","et-ee":"et","eu-es":"eu","fi-fi":"fi","fr-fr":"fr-FR","gl-es":"gl","he-il":"he","hi-in":"hi","hr-hr":"hr","hu-hu":"hu","id-id":"id","it-it":"it","ja-jp":"ja","kk-kz":"kk","ko-kr":"ko","lt-lt":"lt","lv-lv":"lv","ms-my":"ms","nb-no":"nb-no","nl-nl":"nl","pl-pl":"pl","pt-br":"pt-br","pt-pt":"pt-pt","ro-ro":"ro","ru-ru":"ru","sk-sk":"sk","sl-si":"sl","sr-cyrl-cs":"sr-cyrl-rs","sr-latn-cs":"sr-latn-rs","sv-se":"sv","th-th":"th","tr-tr":"tr","uk-ua":"uk","vi-vn":"vi","zh-cn":"zh-Hans","zh-hk":"zh-Hant","zh-tw":"zh-Hant"}}return n.getSingletonInstance=function(){return this._instance||(this._instance=new this)},n.prototype.getDefaultLanguage=function(){var n=navigator.language.toLowerCase();return this.mapLanguageCode(n)},n.prototype.mapLanguageCode=function(t){var e=n.D365FallbackLangauges[t];return this.D365ToOfficeLanguageMap[e]||"en-us"},n.prototype.mapLanguageCodeOrNull=function(t){var e=n.D365FallbackLangauges[t];return this.D365ToOfficeLanguageMap[e]},n.D365FallbackLangauges={agq:"fr-fr","agq-cm":"fr-fr",ar:"ar-sa","ar-ae":"ar-sa","ar-bh":"ar-sa","ar-dz":"ar-sa","ar-eg":"ar-sa","ar-iq":"ar-sa","ar-jo":"ar-sa","ar-kw":"ar-sa","ar-lb":"ar-sa","ar-ly":"ar-sa","ar-ma":"ar-sa",arn:"es-es","arn-cl":"es-es","arn-latn":"es-es","ar-om":"ar-sa","ar-qa":"ar-sa","ar-sa":"ar-sa","ar-sy":"ar-sa","ar-tn":"ar-sa","ar-ye":"ar-sa",ast:"es-es","ast-es":"es-es",ba:"ru-ru","ba-cyrl":"ru-ru","ba-ru":"ru-ru",bas:"fr-fr","bas-cm":"fr-fr",be:"ru-ru","be-by":"ru-ru",bg:"bg-bg","bg-bg":"bg-bg",bm:"fr-fr","bm-latn":"fr-fr","bm-latn-ml":"fr-fr","bo-cn":"zh-cn",br:"fr-fr","br-fr":"fr-fr","br-latn":"fr-fr",ca:"ca-es","ca-ad":"ca-es","ca-es":"ca-es","ca-es-valencia":"es-es","ca-fr":"ca-es","ca-it":"ca-es",co:"fr-fr","co-fr":"fr-fr","co-latn":"fr-fr",cs:"cs-cz","cs-cz":"cs-cz",da:"da-dk","da-dk":"da-dk","da-gl":"da-dk",de:"de-de","de-at":"de-de","de-be":"de-de","de-ch":"de-de","de-de":"de-de","de-li":"de-de","de-lu":"de-de",dje:"fr-fr","dje-ne":"fr-fr",dsb:"de-de","dsb-de":"de-de",dua:"fr-fr","dua-cm":"fr-fr",dyo:"fr-fr","dyo-sn":"fr-fr","ee-tg":"fr-fr",el:"el-gr","el-cy":"el-gr","el-gr":"el-gr",en:"en-us","en-au":"en-us","en-ca":"en-us","en-gb":"en-us","en-ie":"en-us","en-in":"en-us","en-my":"en-us","en-nl":"en-us","en-ph":"en-us","en-sg":"en-us","en-us":"en-us","en-za":"en-us",es:"es-es","es-419":"es-es","es-ar":"es-es","es-bo":"es-es","es-cl":"es-es","es-co":"es-es","es-cr":"es-es","es-cu":"es-es","es-do":"es-es","es-ec":"es-es","es-es":"es-es","es-es_tradnl":"es-es","es-gq":"es-es","es-gt":"es-es","es-hn":"es-es","es-mx":"es-es","es-ni":"es-es","es-pa":"es-es","es-pe":"es-es","es-ph":"es-es","es-pr":"es-es","es-py":"es-es","es-sv":"es-es","es-us":"es-es","es-uy":"es-es","es-ve":"es-es",et:"et-ee","et-ee":"et-ee",eu:"eu-es","eu-es":"eu-es",ewo:"fr-fr","ewo-cm":"fr-fr",ff:"fr-fr","ff-cm":"fr-fr","ff-gn":"fr-fr","ff-latn":"fr-fr","ff-latn-cm":"fr-fr","ff-latn-gn":"fr-fr","ff-latn-sn":"fr-fr","ff-sn":"fr-fr",fi:"fi-fi","fi-fi":"fi-fi",fo:"da-dk","fo-fo":"da-dk",fr:"fr-fr","fr-be":"fr-fr","fr-bf":"fr-fr","fr-bi":"fr-fr","fr-bj":"fr-fr","fr-bl":"fr-fr","fr-ca":"fr-fr","fr-cd":"fr-fr","fr-cf":"fr-fr","fr-cg":"fr-fr","fr-ch":"fr-fr","fr-ci":"fr-fr","fr-cm":"fr-fr","fr-dj":"fr-fr","fr-dz":"fr-fr","fr-fr":"fr-fr","fr-ga":"fr-fr","fr-gf":"fr-fr","fr-gn":"fr-fr","fr-gp":"fr-fr","fr-gq":"fr-fr","fr-ht":"fr-fr","fr-km":"fr-fr","fr-lu":"fr-fr","fr-ma":"fr-fr","fr-mc":"fr-fr","fr-mf":"fr-fr","fr-mg":"fr-fr","fr-ml":"fr-fr","fr-mq":"fr-fr","fr-mr":"fr-fr","fr-mu":"fr-fr","fr-nc":"fr-fr","fr-ne":"fr-fr","fr-pf":"fr-fr","fr-pm":"fr-fr","fr-re":"fr-fr","fr-rw":"fr-fr","fr-sc":"fr-fr","fr-sn":"fr-fr","fr-sy":"fr-fr","fr-td":"fr-fr","fr-tg":"fr-fr","fr-tn":"fr-fr","fr-vu":"fr-fr","fr-wf":"fr-fr","fr-yt":"fr-fr",fur:"it-it","fur-it":"it-it",fy:"nl-nl","fy-nl":"nl-nl",gl:"gl-es","gl-es":"gl-es",gn:"es-es","gn-py":"es-es",gsw:"fr-fr","gsw-ch":"de-de","gsw-fr":"fr-fr","gsw-li":"de-de",he:"he-il","he-il":"he-il",hi:"hi-in","hi-in":"hi-in",hr:"hr-hr","hr-hr":"hr-hr",hsb:"de-de","hsb-de":"de-de",hu:"hu-hu","hu-hu":"hu-hu",id:"id-id","id-id":"id-id","ii-cn":"zh-cn","ii-yii":"zh-cn",it:"it-it","it-ch":"it-it","it-it":"it-it","it-sm":"it-it",ja:"ja-jp","ja-jp":"ja-jp",jgo:"fr-fr","jgo-cm":"fr-fr",jv:"id-id","jv-latn":"id-id","jv-latn-id":"id-id",kea:"pt-pt","kea-cv":"pt-pt",khq:"fr-fr","khq-ml":"fr-fr",kk:"kk-kz",kkj:"fr-fr","kkj-cm":"fr-fr","kk-kz":"kk-kz",kl:"da-dk","kl-gl":"da-dk",ko:"ko-kr","ko-kr":"ko-kr",ksf:"fr-fr","ksf-cm":"fr-fr",ksh:"de-de","ksh-de":"de-de","ky-cyrl":"ru-ru","ky-kg":"ru-ru",lb:"fr-fr","lb-lu":"fr-fr",lt:"lt-lt","lt-lt":"lt-lt",lu:"fr-fr","lu-cd":"fr-fr",lv:"lv-lv","lv-lv":"lv-lv",mg:"fr-fr",mgh:"pt-pt","mgh-mz":"pt-pt","mg-mg":"fr-fr",mgo:"fr-fr","mgo-cm":"fr-fr","mn-mong":"zh-cn","mn-mong-cn":"zh-cn",ms:"ms-my","ms-bn":"ms-my","ms-my":"ms-my",mua:"fr-fr","mua-cm":"fr-fr",nb:"nb-no","nb-no":"nb-no","nb-sj":"nb-no",nl:"nl-nl","nl-aw":"nl-nl","nl-be":"nl-nl","nl-bq":"nl-nl","nl-cw":"nl-nl","nl-nl":"nl-nl","nl-sr":"nl-nl","nl-sx":"nl-nl",nmg:"fr-fr","nmg-cm":"fr-fr",nn:"nb-no",nnh:"fr-fr","nnh-cm":"fr-fr","nn-no":"nb-no",no:"nb-no","oc-fr":"fr-fr","oc-latn":"fr-fr","os-ru":"ru-ru",pl:"pl-pl","pl-pl":"pl-pl",pt:"pt-pt","pt-ao":"pt-pt","pt-br":"pt-br","pt-cv":"pt-pt","pt-gw":"pt-pt","pt-mo":"pt-pt","pt-mz":"pt-pt","pt-pt":"pt-pt","pt-st":"pt-pt","pt-tl":"pt-pt","quc-latn":"es-es","quc-latn-gt":"es-es",qut:"es-es","qut-gt":"es-es",quz:"es-es","quz-bo":"es-es","quz-ec":"es-es","quz-latn":"es-es","quz-latn-bo":"es-es","quz-latn-ec":"es-es","quz-latn-pe":"es-es","quz-pe":"es-es",rm:"de-de","rm-ch":"de-de",rn:"fr-fr","rn-bi":"fr-fr",ro:"ro-ro","ro-md":"ro-ro","ro-ro":"ro-ro",ru:"ru-ru","ru-by":"ru-ru","ru-kg":"ru-ru","ru-kz":"ru-ru","ru-md":"ru-ru","ru-ru":"ru-ru",sah:"ru-ru","sah-cyrl":"ru-ru","sah-ru":"ru-ru",se:"sv-se","se-fi":"fi-fi",seh:"pt-pt","seh-mz":"pt-pt","se-no":"nb-no",ses:"fr-fr","se-se":"sv-se","ses-ml":"fr-fr",sg:"fr-fr","sg-cf":"fr-fr","shi-latn":"fr-fr","shi-latn-ma":"fr-fr","shi-tfng":"fr-fr","shi-tfng-ma":"fr-fr",sk:"sk-sk","sk-sk":"sk-sk",sl:"sl-si","sl-si":"sl-si","sma-latn":"nb-no","sma-latn-no":"nb-no","sma-latn-se":"sv-se","sma-no":"nb-no","sma-se":"sv-se","smj-latn":"sv-se","smj-latn-no":"nb-no","smj-latn-se":"sv-se","smj-no":"nb-no","smj-se":"sv-se","smn-latn":"fi-fi","smn-latn-fi":"fi-fi","sms-fi":"fi-fi","sms-latn":"fi-fi",sr:"sr-latn-rs","sr-cyrl":"sr-cyrl-rs","sr-cyrl-cs":"sr-cyrl-rs","sr-cyrl-me":"sr-cyrl-rs","sr-cyrl-rs":"sr-cyrl-rs","sr-latn":"sr-latn-rs","sr-latn-cs":"sr-latn-rs","sr-latn-me":"sr-latn-rs","sr-latn-rs":"sr-latn-rs",sv:"sv-se","sv-ax":"sv-se","sv-fi":"sv-se","sv-se":"sv-se",swc:"fr-fr","swc-cd":"fr-fr","tg-cyrl":"ru-ru","tg-cyrl-tj":"ru-ru",th:"th-th","th-th":"th-th","tk-latn":"ru-ru",tr:"tr-tr","tr-tr":"tr-tr",tt:"ru-ru","tt-cyrl":"ru-ru","tt-ru":"ru-ru",twq:"fr-fr","twq-ne":"fr-fr","tzm-latn-ma":"fr-fr","tzm-tfng":"fr-fr","tzm-tfng-ma":"fr-fr","ug-arab":"zh-cn","ug-cn":"zh-cn",uk:"uk-ua","uk-ua":"uk-ua",vi:"vi-vn","vi-vn":"vi-vn",wae:"de-de","wae-ch":"de-de","wee-de":"de-de",wo:"fr-fr","wo-latn":"fr-fr","wo-sn":"fr-fr",yav:"fr-fr","yav-cm":"fr-fr",zgh:"fr-fr","zgh-tfng":"fr-fr","zgh-tfng-ma":"fr-fr",zh:"zh-cn","zh-chs":"zh-cn","zh-cht":"zh-tw","zh-cn":"zh-cn","zh-hans":"zh-cn","zh-hans-cn":"zh-cn","zh-hans-sg":"zh-cn","zh-hant":"zh-tw","zh-hant-hk":"zh-tw","zh-hant-mo":"zh-tw","zh-hant-tw":"zh-tw","zh-hk":"zh-hk","zh-mo":"zh-tw","zh-sg":"zh-cn","zh-tw":"zh-tw"},n}()},45044:function(n,t,e){"use strict";var r,i;e.d(t,{s9:function(){return r},sz:function(){return o}}),function(n){n.Home="Home",n.AllProjects="AllProjects",n.ProjectCreation="ProjectCreation",n.SurveyDesigner="SurveyDesigner",n.ReportView="ReportView",n.SatisfactionMetricView="SatisfactionMetricView",n.AlertsView="AlertsView",n.AdminView="AdminView"}(r||(r={})),function(n){n[n[void 0]=0]="undefined",n[n.NPS=1]="NPS",n[n.CSAT=2]="CSAT",n[n.Sentiment=3]="Sentiment",n[n.Scoring=4]="Scoring"}(i||(i={}));var o,u,s;!function(n){n[n.Survey=1]="Survey",n[n.Report=2]="Report"}(o||(o={})),function(n){n[n.FetchNotStarted=0]="FetchNotStarted",n[n.Fetching=1]="Fetching",n[n.Fetched=2]="Fetched",n[n.NoData=3]="NoData"}(u||(u={})),function(n){n.Sentiment="sentiment",n.Nps="nps",n.Csat="csat",n.Scoring="scoring"}(s||(s={}))},26795:function(n,t,e){"use strict";var r=/('[^']*'|"[^"]*")/g,i=/('[^']*'|"[^"]*"|d{1,2}|M{1,2}|y{2,4}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|t{2})/g;function o(n,t){var e=n.toString();if(n<0)return e;if(t&&t>e.length)for(;t>e.length;)e="0"+e;return e}function u(n){return r.test(n)?n.substr(1,n.length-2):n}function s(n,t,e){var r={};return null==n||null==t||null==e?r:(t.split(i).forEach((function(t){var i;switch(t){case"d":case"dd":case"M":case"MM":case"h":case"hh":case"H":case"HH":case"m":case"mm":case"s":case"ss":i=2;case"yy":case"yyy":case"yyyy":i=i||4,r[t]=function(n,t){t=t||n.length;var e=n.match(/^\d+/g),r=e&&e[0];return r?r.length<=t?r:r.substr(0,t):""}(n,i),i=r[t].length;break;case"tt":i=0;var o=n.toUpperCase();o.startsWith(e.DateTimeFormat.AMDesignator.toUpperCase())?i=e.DateTimeFormat.AMDesignator.length:o.startsWith(e.DateTimeFormat.PMDesignator.toUpperCase())?i=e.DateTimeFormat.PMDesignator.length:(o.startsWith("AM")||o.startsWith("PM"))&&(i=2),r[t]=n.substr(0,i);break;default:i=0,t=u(t),n.startsWith(t)&&(i=t.length)}n=n.slice(i)})),n.length>0?{}:r)}function a(n,t){var e=parseInt(n.HH||n.H),r=parseInt(n.hh||n.h||n.time||12);if(isNaN(e)&&!isNaN(r)&&r>=1&&r<=12)if(null==n.tt)n.time||(e=0);else switch(n.tt.toUpperCase()){case"AM":case t.DateTimeFormat.AMDesignator.toUpperCase():e=r%12;break;case"PM":case t.DateTimeFormat.PMDesignator.toUpperCase():e=r%12+12}var i=parseInt(n.mm||n.m||n.time||0),o=parseInt(n.ss||n.s||0);return isNaN(e)||isNaN(i)?NaN:1e3*(60*(60*e+i)+o)}Date.prototype.toFormatString=function(n,t){var e=this;return null==e||null==n||null==t?null:n.split(i).map((function(n){switch(n){case"d":case"dd":return o(e.getDate(),n.length);case"ddd":return t.DateTimeFormat.AbbreviatedDayNames[e.getDay()];case"M":case"MM":return o(e.getMonth()+1,n.length);case"MMM":return t.DateTimeFormat.AbbreviatedMonthNames[e.getMonth()];case"yy":var r=e.getFullYear(),i=o(r,4);return r>t.Calendar.TwoDigitYearMax-100&&r<=t.Calendar.TwoDigitYearMax?i.slice(2):i;case"yyy":case"yyyy":case"yyyyy":return o(e.getFullYear(),n.length);case"H":case"HH":return o(e.getHours(),n.length);case"h":case"hh":return o((e.getHours()+11)%12+1,n.length);case"m":case"mm":return o(e.getMinutes(),n.length);case"s":case"ss":return o(e.getSeconds(),n.length);case"t":case"tt":var s=e.getHours()<12?t.DateTimeFormat.AMDesignator:t.DateTimeFormat.PMDesignator;return 1===n.length?s.charAt(0):s;default:return u(n)}})).join("")},Date.prototype.toDateShortString=function(n){return this.toFormatString(n.DateTimeFormat.ShortDatePattern,n)},Date.prototype.toTimeShortString=function(n){return this.toFormatString(n.DateTimeFormat.ShortTimePattern,n)};var c=e(17891);Date.parseDate=function(n,t,e){var r=s(n,t,e),i=parseInt(r.yyyy||r.yyy),o=parseInt(r.yy);if(isNaN(i)&&!isNaN(o))if(o>=100)i=o;else{var u=(0,c.m1)().cultureInfo.Calendar.TwoDigitYearMax%100;i=o<=u?(0,c.m1)().cultureInfo.Calendar.TwoDigitYearMax-u+o:(0,c.m1)().cultureInfo.Calendar.TwoDigitYearMax-u-100+o}var f=parseInt(r.MM||r.M),l=r.MMM;isNaN(f)&&l&&(f=e.DateTimeFormat.AbbreviatedMonthNames.indexOf(l)+1);var h=parseInt(r.dd||r.d),d=a(r,e);if(!(isNaN(i)||isNaN(f)||isNaN(h)||isNaN(d))){var m=new Date(i,f-1,h,0,0,0,d);if(m.getFullYear()===i&&m.getMonth()+1===f&&m.getDate()===h)return m}return null},Date.parseTime=function(n,t,e){var r=s(n,t,e);return r.time=!0,a(r,e)},"name"in Function.prototype||Object.defineProperty(Function.prototype,"name",{get:function(){var n=/function\s([^(]{1,})\(/.exec(this.toString());return n&&n.length>1?n[1].trim():""}});var f=e(4128),l=e.n(f);!function(){var n;if(void 0!==e.g)n=e.g;else if("undefined"!=typeof self)n=self;else try{n=Function("return this")()}catch(n){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=n.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(n){}if("[object Promise]"===r&&!t.cast&&void 0!==t.prototype.finally)return}n.Promise=l().Promise}(),String.prototype.format||(String.prototype.format=function(){for(var n=[],t=0;t=0)return this.sf[t];throw Error("targetID could not be found in runtime question list")},n.prototype.fetchQuestionIndex=function(n){var t=T.H.convertToArray(this.sf).map((function(n){return n.Question.Model.Id})).indexOf(n);if(t>=0)return t;throw Error("The given Question ID could not be found in runtime question list")},n.prototype.getChainedStatus=function(){return this.lf},n.prototype.getChainedUrl=function(){return this.df},n.prototype.getIsChainedSurvey=function(){return this.hf},n}(),O=e(19627),x=e(17397),D=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;!function(n){n[n.NoTarget=0]="NoTarget",n[n.Question=1]="Question",n[n.Section=2]="Section",n[n.Page=3]="Page",n[n.EndOfSurvey=4]="EndOfSurvey",n[n.ChainedForm=5]="ChainedForm",n[n.Url=6]="Url",n[n.ThankYouMessage=7]="ThankYouMessage"}(R||(R={})),function(n){n[n.NoAction=0]="NoAction",n[n.Show=1]="Show",n[n.Hide=2]="Hide",n[n.Toggle=3]="Toggle",n[n.Navigate=4]="Navigate",n[n.HandleIsAnswered=5]="HandleIsAnswered"}(E||(E={}));var M=function(){return function(){this.actionId=(0,k.aq)(),this.actionsequence="1",this.actionType=E.NoAction,this.targetId="",this.targetType=R.NoTarget}}(),A=function(){return function(){this.failureActions=[],this.successActions=[]}}(),V=function(){return function(){this.action=null,this.backendExpression="",this.description="",this.name="",this.ruleId=(0,k.aq)(),this.isInternalRule=!1}}(),U=function(){return function(n,t,e,r,i){this.considerNegation=null!=t&&t,this.expression=n,this.shouldShow=null!=e&&e,this.questionId=null!=r?r:null,this.finalActionProps=null!=i?i:null}}(),z=function(){return function(n,t){this.targetType=n,this.targetId=t}}(),B=function(){return function(n,t,e){this.qId=n,this.qIndex=t,this.type=e}}(),q=function(){return function(n,t){this.shouldShowQuestion=n,this.isCalculatedByRules=t}}();function H(n){return parseInt(n.actionType.toString())===E.Navigate&&parseInt(n.targetType.toString())!=R.ChainedForm&&parseInt(n.targetType.toString())!=R.Url}var j=function(){function n(n,t,e,r){var i=this;this.xn=null,this.mf=null,this.vf=null,this.sf=null,this.lf=!1,this.hf=!1,this.pf=null,this.bf=R.NoTarget,this.wf={},this.Sf={},this.yf={},this.If=null,this.dn="isanswered",this.Cf="finalAction",this.kf=!1,this.Nf=new Map,this.lf=!1,this.pf=null,this.Dn=n,this.sf=t,this.If=[];var o=this.Dn.Model.MfpBranchingData;if(this.kf=!1,o){if(this.xn=(0,N.cB)(o),this.Rf(),this.Ef(),this.mf=new O.Y,this.vf=new L(t),this.initQuestionList(e),this.Dn.isFieldReady(this.Dn.Schema.PipesDetails))if(0===(0,P.nu)().Model.ResponsePipeData.length){var u;u=JSON.parse(this.Dn.Model.PipesDetails),_.forEach(u,(function(n){i.executeRulesV1(n.pipeName,r)}))}else _.forEach((0,P.nu)().Model.ResponsePipeData,(function(n){i.executeRulesV1(n.paramName,r)}));this.kf=!0;for(var s=0;s0?a[0].Answer:a);for(var c=0;c<(null===(r=null===(e=this.xn)||void 0===e?void 0:e.mappings)||void 0===r?void 0:r.length);c++)if(this.xn.mappings[c].sourceId===n){s=this.xn.mappings[c].targetRuleList;break}var f=new Map,l=[];for(c=0;c<(null===(o=null===(i=this.xn)||void 0===i?void 0:i.rules)||void 0===o?void 0:o.length);c++)f.set(this.xn.rules[c].ruleId,this.xn.rules[c]);for(c=0;c0&&a&&!0===this.Nf.get(n).isEqual.has(a.length)&&(u=!0),this.Nf.get(n).notEqual.size>0&&(a&&!0===this.Nf.get(n).notEqual.has(a.length)||a&&a.length<=1||!a)&&(u=!0),!0===this.Nf.get(n).isAnswered&&(a&&a.length<=1||!a)&&(u=!0),u},n.prototype.execute=function(n,t){var e,r,i=!0,o=this.Dn.FormElementManager;(0,S.G7)("CVBranchingOptimization")&&"Question.TextField"===(null===(r=null===(e=null==o?void 0:o.getElementMasterById(n))||void 0===e?void 0:e.Model)||void 0===r?void 0:r.Type)&&(i=this.performanceOptimization(n,t)),i&&this.executeRulesV1(n,t)},n.prototype.Lf=function(n){var t=[];return this.xn.mappings.forEach((function(e){-1!==e.targetRuleList.indexOf(n)&&t.push(e.sourceId)})),t},n.prototype.executeRulesV1=function(n,t){if(console.log("engine ran"),this.xn){var e=T.H.convertToArray(this.sf).filter((function(n){return n.Question.Model.GroupId}));this.Of(n,t,e)}},n.prototype.Of=function(n,t,e){var r=this.wf[n];return this.xf(r,t,e)},n.prototype.xf=function(n,t,e){var r=this,i=!1,o=[],u=this.Dn.FormElementManager;return n&&n.forEach((function(n){var t,e,o=u.getElementMasterById(n),s=null;if((o&&(e="Question.ColumnGroup"===o.Model.Type),e?(t=T.H.convertToArray(u.SectionMasters).map((function(n){return n.Model.Id})).indexOf(n),s=R.Section):(t=r.Df(n),s=R.Question),n===r.Cf&&(t=r.sf.length,s=R.Url),t>=0)&&r.If.filter((function(n){return n.qIndex===t&&n.type===s})).length<1){var a=new B(n,t,s);r.If.push(a),i=!0}})),i&&(this.If.sort((function(n,t){return n.qIndex-t.qIndex})),o=this.Af(t,e)),o},n.prototype.Af=function(n,t){for(var e,r=[],i=function(){var i=o.If[0],u=i.type===R.Section,s=void 0,a=void 0,c=void 0;i.qId===o.Cf?(a=null,s=!1):u?(e=o.Dn.FormElementManager.SectionMasters.filter((function(n){return n.Model.Id===i.qId})),s=(c=u&&e.length>0?e[0]:null).Model.Hidden):s=(a=u?null:o.vf.fetchQuestionById(i.qId)).Question.Model.Hidden;var f=o.Vf(i,n,t,s);if(o.If=o.If.slice(1),i.qId!==o.Cf)if(f.isCalculatedByRules&&r.push(i.qIndex),u)c.Model.Visible=f.shouldShowQuestion;else if(a.Model.Visible=f.shouldShowQuestion,f.shouldShowQuestion){if(a.SubQuestionRuntimeMasters&&a.SubQuestionRuntimeMasters.length>0){var l=[];a.SubQuestionRuntimeMasters.forEach((function(n){l.push(n.Question.Model.Id)}));var h=o.xf(l,n,t);r=r.concat(h)}}else a.SubQuestionRuntimeMasters.forEach((function(n){return n.Model.Visible=f.shouldShowQuestion})),o.kf||(a.Model.Answer=void 0,a.SubQuestionRuntimeMasters.forEach((function(n){return n.Model.Answer=void 0})))},o=this;this.If.length>0;)i();return r},n.prototype.Vf=function(n,t,e,r){var i,o=this.Sf[n.qId];if(o&&o.length>0)for(var u=0;u0)for(u=a.length-1;u>=0;u--){var c=this.mf.evaluate(a[u].expression,t,e,this.Dn);if(a[u].questionId){var f=this.vf.fetchQuestionById(a[u].questionId);(!1===f.Model.Visible||null===f.Model.Visible&&!0===(null===(i=f.Question)||void 0===i?void 0:i.Model.Hidden))&&(c=null)}if((null!=c||null!=c)&&c!==a[u].considerNegation)return n.qId===this.Cf&&this.zf(a[u].finalActionProps.targetType,a[u].finalActionProps.targetId),new q(a[u].shouldShow,!0)}if(n.qId===this.Cf)return this.lf=!1,this.pf=null,this.hf=!1,new q(!0,!1);var l=n.type===R.Section,h=l?null:this.vf.fetchQuestionById(n.qId);if(!l&&h.Question.ParentQuestionMaster){var d=h.Question.ParentQuestionMaster.Model.Id;for(u=0;u1)if(t.backendExpression.indexOf("||")>0)t.action.failureActions.forEach((function(r){n.Hf(e,r,t,!0)})),n.jf(t.backendExpression,"||",e).forEach((function(e){var r=t;r.backendExpression=e.key,t.action.successActions.forEach((function(t){n.Hf(e.value,t,r,!1)}))}));else t.action.successActions.forEach((function(r){n.Hf(e,r,t,!1)})),n.jf(t.backendExpression,"&&",e).forEach((function(e){var r=t;r.backendExpression=e.key,t.action.failureActions.forEach((function(t){n.Hf(e.value,t,r,!0)}))}));else t.action.failureActions.forEach((function(r){n.Hf(e,r,t,!0)})),t.action.successActions.forEach((function(r){n.Hf(e,r,t,!1)}))}}))},n.prototype.jf=function(n,t,e){var r=[];return n.split(t).forEach((function(n){for(var t=0;t0){var i={key:n,value:[e[t]]};r.push(i);break}})),r},n.prototype.Hf=function(n,t,e,r){var i=this,o=[],u=new U(e.backendExpression,r);e.isInternalRule&&(u.questionId=e.name),t.actionType!=E.Show&&t.actionType!=E.HandleIsAnswered||(u.shouldShow=!0);for(var s=e.backendExpression;s.indexOf(this.dn)>=0;){var a=s.indexOf(this.dn)+this.dn.length+1,c=s.substring(a,s.indexOf(")",a)),f=this.Df(c);if(f>=0&&("Question.MatrixChoiceGroup"==this.sf[f].Question.Model.Type||"Question.CascadeGroup"==this.sf[f].Question.Model.Type))for(var l=this.sf[f+1].Question.Model.GroupId,h=f+1;ht?o:t)>t?r:n})),n==R.Question?u=this.Df(t):n==R.Section?u=this.Kf(t):n!=R.ChainedForm&&n!=R.EndOfSurvey&&n!=R.Url||(u=this.sf.length),n==R.Section?this.Jf(r).concat(this.Xf(r,u)):this.Yf(o,u)},n.prototype.Xf=function(n,t){var e=[];if(this.Dn){var r=this.Dn.FormElementManager,i=r.getElementMasterById(n),o=this.Dn.FormElementManager.SectionMasters,u=-1;if(i){var s=r.findContainerSection(i);o.forEach((function(n,t){n.Model.Id===s.Model.Id&&(u=t)}))}for(var a=u+1;ar.Model.Order}))),o.forEach((function(n){return t.push(n.Model.Id)}))}return t},n.prototype.Df=function(n){return T.H.convertToArray(this.sf).map((function(n){return n.Question.Model.Id})).indexOf(n)},n.prototype.Kf=function(n){return this.Dn.FormElementManager.SectionMasters.map((function(n){return n.Model.Id})).indexOf(n)},n.prototype.Rf=function(){for(var n,t=this,e=new Array(this.sf.length),r=new Array(this.sf.length),i=[],o=0;o0||n.action.successActions&&n.action.successActions.filter((function(n){return H(n)})).length>0)){t.Lf(n.ruleId).forEach((function(n){var r=t.Df(n);r>=0&&!1===e[r]&&(e[r]=!0)}));for(var i=n.backendExpression;i.indexOf(t.dn)>=0;){var o=i.indexOf(t.dn)+t.dn.length+1,u=i.substring(o,i.indexOf(")",o)),s=t.Df(u);r[s]=!0,i=i.slice(o)}}}));for(o=0;o(null===(e=i.sf[t])||void 0===e?void 0:e.Question.Model.Order)})),c=[],f=null===(r=this.sf[t])||void 0===r?void 0:r.Question.Model.GroupId,l=t+1;l=nn.maxValue?["VeryDissatisfied","Dissatisfied","Neutral","Satisfied","VerySatisfied"]:void 0}function Z(n,t){var e="";switch(n){case"VeryDissatisfied":e="senti-very-negative";break;case"Dissatisfied":e="senti-negative";break;case"Neutral":e="senti-neutral";break;case"Satisfied":e="senti-positive";break;case"VerySatisfied":e="senti-very-positive"}return e+(t?"":"-grey")}var nn=function(n){function t(t){var e=n.call(this,t)||this;return e.tl=function(n){if(n&&("click"==n.type||"keydown"==n.type&&13==n.which)){if(e.props.Disabled)return;if(n.preventDefault(),n.stopPropagation(),e.props.onValueChange&&e.rl){var t=e.rl.indexOf(n.currentTarget.id)+1;e.props.onValueChange(t),n.currentTarget.className="smiley-images active"}}},e.il=function(n){n&&(n.preventDefault(),n.stopPropagation())},e.ol=function(n){if(n){if(e.props.Disabled)return;39===n.which||38===n.which?(n.preventDefault(),n.stopPropagation(),null==e.props.Value?e.props.onValueChange(1):e.props.Value1&&e.props.onValueChange(e.props.Value-1))}},e.rl=Y(e.props.Model.Length),e}return(0,h.C6)(t,n),t.prototype.render=function(){var n,t=this;n=this.ul().map((function(n,e){return d.createElement("div",{key:n},d.createElement("img",{className:"smiley-images",id:t.rl[e],onClick:t.tl,onMouseOver:t.al.bind(t),onMouseOut:t.cl.bind(t),src:t.fl(n),title:t.ll(t.rl[e])}))}));var e="smiley-container";return this.props.ContainerClass&&(e=(0,K.x)(e,this.props.ContainerClass)),d.createElement("div",{id:"emojiContainer",className:e},d.createElement("div",{onClick:this.il,onKeyDown:this.ol,tabIndex:0,role:"presentation"},d.createElement("div",{className:"smiley-emoji-layout"},n)))},t.prototype.al=function(n){if(n){if(this.props.Disabled)return;var t=this.rl.indexOf(n.currentTarget.id),e=Z(this.rl[t],!0);n.currentTarget.src=this.fl(e),n.currentTarget.className="smiley-images active"}},t.prototype.cl=function(n){if(n){if(this.props.Disabled)return;var t=this.rl.indexOf(n.currentTarget.id);if(this.props.Value&&this.props.Value===t+1)return;var e=Z(this.rl[t],!1);n.currentTarget.src=this.fl(e),n.currentTarget.className="smiley-images"}},t.prototype.ul=function(){this.rl=Y(this.props.Model.Length);var n=this.rl.map((function(n){return Z(n,!1)}));if((null!==this.props.Value||void 0!==this.props.Value)&&this.props.Value&&this.props.Value>=1&&this.props.Value<=this.props.Model.Length){var t=this.props.Value-1;n[t]=Z(this.rl[t],!0)}return n},t.prototype.ll=function(n){switch(n){case"VeryDissatisfied":return this.props.LocalizedStringContext.LocalizedStrings.SmileyControl_VeryDissatisfied;case"Dissatisfied":return this.props.LocalizedStringContext.LocalizedStrings.SmileyControl_Dissatisfied;case"Neutral":return this.props.LocalizedStringContext.LocalizedStrings.SmileyControl_Neutral;case"Satisfied":return this.props.LocalizedStringContext.LocalizedStrings.SmileyControl_Satisfied;case"VerySatisfied":return this.props.LocalizedStringContext.LocalizedStrings.SmileyControl_VerySatisfied;default:return""}},t.prototype.fl=function(n){return(0,W.VG)("/Images/FormsPro/{0}.svg".format(n))},t.minValue=2,t.maxValue=5,t}(d.Component);FormsPro.createSmileyRating=function(n){return n.Model.Lengthnn.maxValue&&(n.Model.Length=nn.maxValue),n.EditMode&&(0,g.fL)({type:"MFPUI_SmileyRatingQuestionEdit",eventInfo:{Component:"SmileyControl",pageName:"Designer",RatingControlSize:n.Model.Length}}),d.createElement(X.N.Consumer,{children:function(t){return n.LocalizedStringContext=t,d.createElement(nn,n)}})},FormsPro.getSentimentArray=Y,FormsPro.getEmojiImageName=Z,FormsPro.logTelemetrySmileyRatingSymbolChange=function(n,t){t===n||t!==J.VG.Smiley&&n!==J.VG.Smiley||(t===J.VG.Smiley?(0,g.fL)({type:"MFPUI_SmileyRatingQuestionSelected",eventInfo:{Component:"SmileyControl",pageName:"Designer"}}):(0,g.fL)({type:"MFPUI_SmileyRatingQuestionUnselected",eventInfo:{Component:"SmileyControl",pageName:"Designer"}}))};e(79656);var tn=e(64931),en=e(80860),rn=e(9639),on=e(71628);FormsPro.ProFormsMasterMixin=function(n){return function(n){function t(){for(var t=[],e=0;e-1?"HiveHeaderImage":"OOBHeaderImage"),(0,g.O7)("CV_HeaderTheme.Information",{headerImage:n,isheaderON:this.Form.isFieldReady(this.Form.Schema.HeaderEnabled)?this.Form.Model.HeaderEnabled?this.Form.Model.HeaderEnabled:"true":"notReady"})}},t.prototype.Pr=function(){var n=this;this.addRule({Name:"calculate header theme basing on name",onChange:function(t){t.BeingDeleted||n._l()}});var t=sn.z.Schema;this.Form.observe((function(){return n._l()}),[t.HeaderBGImage.ResourceUrl,t.BackGroundPositionX,t.BackGroundPositionY,t.BackGroundPositionZ,t.LogoPositionX,t.LogoPositionY,t.TitlePositionX,t.TitlePositionY,t.LogoSize,t.ThemeHeaderBackgroundImageURL]),this._l()},t.prototype._l=function(){var n=this,t=this.Model.Name,e=!1;switch(t){case Mn.Cq:this.setData(this.getHeaderUploadedImageCustomThemeName());break;case Mn.Mk:this.setData(this.getHeaderPredefinedImageCustomThemeName());break;case Mn.QU:this.setData(this.getCompactHeaderCustomThemeName());break;case Mn.zA:this.setData(this.getNoBackGroundImageCustomThemeName());break;default:var r=(0,c.m1)().headerThemeConfig;if(r&&"object"==typeof r&&r[t]&&"object"==typeof r[t])return void this.setData(r[t]);e=!0,this.Pl(t).then((function(t){n.setData(t),n.Sl()}))}e||this.Sl()},t.prototype.Pl=function(n){return this.Form.SyncContext!==xn.$.ResponseTimeForm?(0,Mn.kd)(n):(0,Mn.gI)(n)},t}(T.H.createObjectMasterClass("SurveyHeaderTheme",An));var Un=function(){function n(){}return n.prototype.getMixinHeaderThemeMaster=function(){return n.HeaderThemeMasterClass||(n.HeaderThemeMasterClass=Vn),n.HeaderThemeMasterClass},n}(),zn=function(){function n(){}return n.prototype.getMixinHeaderThemeMaster=function(){return null},n}(),Bn=e(47937),qn=function(){function n(n){this.Tl=[],this.Nl=!1,this.Rl={},this.El=n}return n.prototype.initialize=function(n,t){if(this.je=n,this.qi=t,n){var e=[].concat(n.questions).concat(n.descriptiveQuestions);this.Ll(e),this.Tl=function(n){var t=n.questions,e=T.H.convertFromSourceData(JSON.parse(n.settings),Bn.W.Schema);if(n.descriptiveQuestions.length>0||!e||!e.ShuffleQuestionOrder)return t.sort(Hn);if((0,S.Ci)()){if(_.some(t,(function(n){return n.questionInfo&&n.questionInfo.indexOf('"BranchInfo":{"')>0})))return t.sort(Hn);var r=e.LockGivenQuestionsStartDisplayOrder-1,i=e.LockGivenQuestionsEndDisplayOrder-1;e.ShuffleAllQuestions&&(r=0,i=-1),t.sort(Hn);var o=t.filter((function(n){return!n.groupId})),u=t.filter((function(n){return!!n.groupId})),s=o.splice(r,i-r+1);return(o=_.shuffle(o)).splice.apply(o,(0,h.fX)([r,0],s,!1)),o.concat(u.sort(Hn))}return[]}(n),this.Tl.length>0&&(this.je.questions=this.Ol(1)),this.je.descriptiveQuestions.sort(Hn)}},n.prototype.getFormForFirstRender=function(){return this.je},n.prototype.getQuestionsForNextLoad=function(){var n=this.xl()?this.Tl.length:1;return this.Ol(n)},n.prototype.hasMore=function(){return this.Tl.length>0},n.prototype.has=function(n){return!!this.Rl[n]},n.prototype.Ll=function(n){var t=this;n&&n.length>0&&n.forEach((function(n){n.id&&(t.Rl[n.id]=!0)}))},n.prototype.xl=function(){return!!this.Nl||!!this.Dl()&&(this.Nl=!0,this.El.raiseBootComplete(),!0)},n.prototype.Dl=function(){if(0===this.Tl.length||(n=document.getElementById("form-bottom-sentinel"),(t=n&&n.getBoundingClientRect())&&t.height+t.top>=window.innerHeight))return!0;var n,t,e=this.Ml();if(!e)return!1;if(function(n){if(n){var t=n.Model.Choices;return t&&t.length>0&&_.some(t,(function(n){return n.BranchInfo&&!(!n.BranchInfo.TargetQuestionId&&!n.BranchInfo.ToTheEnd)}))}}(e))return!0;var r=e.Model.BranchInfo;if(r.ToTheEnd)return!0;var i=this.Al(r.TargetQuestionId)||this.Vl();return!this.Ul(i)},n.prototype.Ml=function(){var n=this.qi.FormElementManager.TopQuestionMasters;return n&&n.length>0&&n[n.length-1]},n.prototype.Ul=function(n){var t=this.qi.FormElementManager.SectionMasters;return!t||t.length<2||n&&n.order0&&this.Tl[0]},n}();function Hn(n,t){return n.order-t.order}var jn=function(){function n(n){var t=this;this.zl=n,this.ql=[],this.Hl=!1,this.jl=!1,this.Ql=new Promise((function(n){return t.Gl=n}))}return n.prototype.initialize=function(n,t){this.zl.initialize(n,t),this.qi=t,this.Hl=!!n},n.prototype.isFormLoadingComplete=function(){return!this.Hl||this.jl},n.prototype.normalizeResponses=function(n){return this.$l=n,this.qi.normalizeResponses(n)},n.prototype.setFormRenderer=function(n){this.Wl=n},n.prototype.getFormForFirstRender=function(){return this.zl.getFormForFirstRender()},n.prototype.onFirstRenderCompleted=function(){this.zl.hasMore()?this.Jl():this.Xl()},n.prototype.onAllQuestionsLoaded=function(){return this.Ql},n.prototype.Jl=function(){var n=this,t=function(){var e=n.zl.getQuestionsForNextLoad();e&&e.length>0&&(n.Yl(e),setTimeout(t,0))};t()},n.prototype.nh=function(){var n=this,t=function(){n.ql.length>0?(n.oh(n.ql.shift()),setTimeout(t)):n.zl.hasMore()||n.Xl()};t()},n.prototype.Yl=function(n){var t;(t=this.ql).push.apply(t,n),this.nh()},n.prototype.Xl=function(){if(this.jl=!0,this.Wl&&this.Hl&&(this.Wl.populatePersistedAnswers(!0),this.$l&&this.$l.length>0)){var n=this.qi.normalizeResponses(this.$l);this.Wl.updateWithResponse(n[n.length-1])}this.Gl()},n.prototype.oh=function(n){T.H.Collection.itemsAddedInSource(this.qi.Model.Questions,[T.H.convertFromSourceData(n,(0,P.AW)().Schema)])},n}(),Qn=e(75206),Gn=e(35798),$n=e(9468),Wn=e(30092),Kn=e(16038),Jn=e(17386),Xn=e(10641),Yn=e(49559),Zn=e(56824),nt=e(61377),tt=e(91970);function et(){return(0,Zn.TT)()?new Promise((function(n,t){var e=!(0,Zn.cU)();e&&function(){(0,Zn.aB)(!0),(0,Zn.l1)(!1);var n=rt+"cookieAuth."+(0,k.aq)(),t={client_id:(0,Yn.Lh)(),msafed:"0",prompt:"none",redirect_uri:window.location.origin,resource:(0,Yn.fS)(),response_mode:"form_post",response_type:"token",state:n};(0,Xn.XB)().setItem(it,n);var e=new nt.W("Auth.DetectUserLoggedInAAD");e.start(),window.formDetectUserLoggedInAADCallback=function(n){e.end({resultType:n?"ExpectedFailure":"Success"}),(0,Zn.aB)(!1),(0,Zn.l1)(!n)};var r=document.createElement("iframe");r.id="detectAADAuthFrame",r.setAttribute("style","display:none;"),r.src=(0,tt.LA)("".concat((0,Yn.Gs)(),"common/oauth2/authorize?"),t,!1),document.body.appendChild(r)}();var r=window.setInterval((function(){if(!(0,Zn.cU)())if(window.clearInterval(r),(0,Zn.RJ)())if(e)n();else{window.setTimeout(Nn.T8,2e3)}else t()}),100)})):Promise.reject()}var rt="form.detectUserLoggedInAAD.",it="officeforms.auth.state",ot=e(15862),ut=e(1641),st=e(92142),at=e(46976),ct=e(24376),ft=e(79973),lt=e(1349),ht=e(56464),dt=e(45460),mt=e(85398),vt=e(40168),pt=e(29169),gt=e(66411),bt=e(33330),wt=e(46404),St=e(19886),yt=e(15284),It=e(3178),Ft=e(44878),Ct=e(34765),_t=e(49105),kt=e(30062),Pt=e(37696);var Tt=function(n){function t(t){var e=n.call(this,t)||this;return e.uh=kt.vR,e.state={IsRefreshing:!1},e}return(0,h.C6)(t,n),t.prototype.componentDidMount=function(){(0,g.O7)("ResponsePage.PollResultView.Navigate")},t.prototype.componentDidUpdate=function(){var n=Qn.findDOMNode(this.refs["vote-detail"]);n&&n.focus()},t.prototype.render=function(){var n=this,t=(0,Pt.n)({HTMLAttributes:{className:"poll-top-view-back-button light-background-button",onClick:function(){return n.props.submitAnother()}},FluentIcon:"Arrow Left",IconClassName:"poll-top-view-back-icon forms-icon-size16x16",Text:(0,v.qn)().Common_Back_Text,TextClassName:"poll-top-view-back-text"});return d.createElement("div",{className:"office-poll-result-container"},d.createElement("div",{className:"office-poll office-form office-form-theme-shadow office-poll-info-container",role:"main"},d.createElement("div",{className:"office-poll-title-container office-form-theme-primary-background"},t),d.createElement("div",{className:"poll-result-container office-form-padding-align"},this.sh(),this.ah(),d.createElement("div",{className:"office-form-info-other"},this.fh()))),d.createElement(It.P,{TopExtraContent:this.lh()}))},t.prototype.sh=function(){var n,t=this.props.Form;return d.createElement("div",((n={className:"office-form-question-title"})["aria-level"]=2,n.role="heading",n),t.Model.Questions[0]&&t.Model.Questions[0].Title)},t.prototype.ah=function(){var n=this,t=this.props.Form,e=t.Model.Questions[0].ChoiceType===J.IG.MultiChoice,r=t.Model.Questions[0].AllowOtherAnswer,i=_.map(t.Model.Questions[0].Choices,(function(n){return{option:n.Description,voteCount:0,names:[],voted:!1}}));r&&i.push({option:"Other",voteCount:0,names:[],otherOptions:[],voted:!1}),_.each(t.Model.Responses,(function(n){var t=n.Answers,o=[];e?_.each((0,_t.Bl)(t[0].Answer),(function(n){return o.push(n)})):o.push(t[0].Answer);var u=n.ResponderName||n.Responder||(0,v.qn)().Response_Poll_Result_Anonymous;u&&_.each(o,(function(n){var t=_.findIndex(i,(function(t){return t.option===n}));r&&-1===t&&(t=i.length-1),-1!==t&&(i[t].voteCount+=1,i[t].names.push(u),"otherOptions"in i[t]&&i[t].otherOptions.push(n),u===(0,c.m1)().userInfo.Email&&(i[t].voted=!0))}))})),i.sort((function(n,t){return t.voteCount-n.voteCount}));var o=_.first(i).voteCount,u=i.map((function(t,e){var r=t.voteCount||0,i=0===o?0:80*r/o,u=String(i)+"%",s=String(100-i)+"%",a=d.createElement("span",{className:"office-poll-vote-count-container"},d.createElement("span",{className:"poll-result-vote-count"},(0,v.qn)().Response_Poll_Result_VoteCount.format(r))),c=d.createElement("div",{className:"poll-result-progressbar-container"},d.createElement("div",{className:"poll-result-progressbar-cell",style:{width:u}},d.createElement("a",{className:"poll-result-progressbar",style:{backgroundColor:n.uh}})),d.createElement("div",{className:"poll-result-progressbar-cell",style:{width:s}},d.createElement("a",{className:"poll-result-progressbar"})));return d.createElement("div",{className:"poll-result-option-container",key:t.option},d.createElement("div",null,t.option,t.voted?d.createElement("span",{className:"poll-result-voted"},(0,v.qn)().Response_Poll_Voted):void 0,a),c)}));return d.createElement("div",{className:"poll-result-options-container"},u)},t.prototype.fh=function(){var n=this;return d.createElement("div",{className:"poll-result-refresh-link"},d.createElement("a",{className:"office-form-info-reload office-form-info-children",href:"javascript:void(0)",onClick:function(){var t=n.props.Form;n.setState({IsRefreshing:!0}),Promise.all([t.ensureFieldsReady([sn.z.Schema.Questions,sn.z.Schema.DescriptiveElements,sn.z.Schema.Responses]),t.syncRuntimeResponses()]).then((function(){n.setState({IsRefreshing:!1})}))}},(0,v.qn)().Response_Poll_Result_Refresh),this.As())},t.prototype.lh=function(){var n=this;if(!(0,ct.fI)()){var t={className:"office-form-info-premotion office-form-info-children",href:"DesignPage.aspx",onClick:function(){return n.props.beforePromotion&&n.props.beforePromotion(),!0}};return((0,On.rm)()||(0,Wn.J)()||(0,$n._G)())&&(t.href="javascript:void(0)",t.onClick=function(){n.props.beforePromotion&&n.props.beforePromotion();var t=(0,On.v5)(),e=(0,$n._G)()?"../Pages/DesignPage.aspx":"../Pages/DesignPage.aspx?"+jQuery.param(t);return(0,y.e)((0,I.Lo)(e)),!0}),d.createElement("div",null,d.createElement("a",t,(0,v.qn)().Renderer_PromotionMessage))}},t.prototype.As=function(){if(this.state.IsRefreshing)return d.createElement("div",{className:"poll-submit-spinner"},d.createElement("div",{className:"spinner-tile-animation"}))},t}(Q.h),Nt=e(49762);function Rt(n){return d.createElement(Et,n)}var Et=function(n){function t(t){var e=n.call(this,t)||this;return e.dh=function(){return e.Jo()},e.state={IsSmallScreen:$(window).width()<768,SubmitState:"DetailResult"===(0,p.Db)().view?3:0,ShowErrorPage:!1,ResponderEmail:(0,c.m1)().userInfo.Email},e}return(0,h.C6)(t,n),t.prototype.componentWillMount=function(){this.uo=new gt.v(this.props.Master),this.ds(),window.addEventListener("resize",this.dh)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.dh)},t.prototype.render=function(){var n,t=this;if(this.state.ShowErrorPage)return(0,dt.y)({Error:this.ph,FormId:this.props.Master.Model.Id,ShowCreateFormLink:!1});var e,r={className:"office-poll office-form-content office-form-page-padding"};if((this.props.ViewMode===Nt.n.Mobile||this.state.IsSmallScreen)&&(r.className=(0,K.x)(r.className,"small-screen")),this.gh()&&(r.className=(0,K.x)(r.className,"mobile-view")),3===this.state.SubmitState){var i=void 0;this.props.Master.Model.Settings.RequiresUniqueResponse||this.props.Master.Model.Settings.DisableSubmitAnother||(i=function(){return t.Uu()}),e={ShowPromotionMessage:!0,submitAnother:i,beforePromotion:function(){(0,g.O7)("ResponsePage.PollResultView.NavigateToPortal")},Form:this.props.Master},n=d.createElement(Tt,e)}else n=d.createElement("div",null,d.createElement("div",{"aria-label":this.props.Master.Model.Title,className:"office-form office-form-theme-shadow",role:"form"},this.qu(),d.createElement("div",{className:"office-form-body"},this.ju(),d.createElement("div",null,this.bs()),this.bh(),this.Ms(),this.wh(),this.Ku(),this.Ju())),d.createElement(It.P,{FormMaster:this.props.Master,FooterType:"ShowStatementWithNotice",FooterText:(0,F.CR)((function(){var n;return t.props.Master.ensureFieldsReady([t.props.Master.Schema.FooterText]).then((function(){n=t.props.Master.Model.FooterText})),n}))}));return d.createElement("div",{className:"form-content-container"},d.createElement("div",r,d.createElement(Ct.q,{ThemeMaster:this.props.Master.ThemeMaster}),n))},t.prototype.ju=function(){return d.createElement("div",{className:"office-form-notice-container"},this.ws(),this.Ss())},t.prototype.ws=function(){var n=this.props.Master.Model.Settings;if(!n.IsAnonymous&&!n.NotRecordIdentity){var t=(0,c.m1)().userInfo.GivenName;return d.createElement("div",{},d.createElement("span",{className:"office-form-notice-long-text"},(0,v.qn)().Response_NonAnonymous_Notice.format(t)))}},t.prototype.Ss=function(){return _.some(this.props.Master.Model.Questions,(function(n){return n.Required}))?d.createElement("div",null,d.createElement("span",{className:"office-form-required-notice-star"}),d.createElement("span",null,(0,v.qn)().Answer_Required_Notice)):void 0},t.prototype.Ku=function(){var n=this.uo.getQuestionsWithWrongAnswer(this.uo.TopQuestionRuntimeMasters()),t=n.map((function(n){return(0,v.qn)().Form_QuestionWithOrdinal.format(n)})).join((0,v.qn)().Common_ItemSeperator),e=(0,v.qn)().Form_Question_Error_Message.format(n.length,t),r=(0,bt.a)({FluentIcon:"Warning Filled",HTMLAttributes:{className:"office-form-alert-icon forms-icon-size24x24"}}),i=!!this.state.ShowValidationStyle&&!!n.length;return d.createElement("div",{className:(0,K.x)("office-form-submit-error",i?"":"NotVisible"),role:"alert"},r,d.createElement("span",{className:"error-message"},i?e:""))},t.prototype.qu=function(){return d.createElement("div",{className:"office-poll-title-container office-form-theme-primary-background"})},t.prototype.bs=function(){var n=this,t=this.state.ShowValidationStyle;return T.H.convertToArray(this.uo.Model.QuestionRuntimeMasters).map((function(e,r){var i=e.Question.Model.Id,o={Master:e,LocalizedStrings:(0,v.qn)(),Ordinal:r+1,Disabled:!1,ExpandAll:!0,key:i,IsMobile:n.gh(),ShowValidationStyle:t,ShowQuizResult:!1,ShowPrintResult:!1,HideMedia:!1,IsStudentViewMode:!1};return(0,Ft.g)(o)}))},t.prototype.Ju=function(){var n=(0,bt.a)({FluentIcon:"Warning Filled",HTMLAttributes:{className:"office-form-alert-icon forms-icon-size24x24"}}),t=2===this.state.SubmitState;return d.createElement("div",{className:(0,K.x)("office-form-submit-error",t?"":"NotVisible"),role:"alert"},n,d.createElement("span",{className:"error-message"},t?this.state.ErrorMessage:""))},t.prototype.bh=function(){var n=this;return d.createElement("div",{className:"design-question-choice-label"},d.createElement("div",{className:"poll-email-label"},(0,v.qn)().Response_Poll_Email_Label,d.createElement("span",{className:"required-star"})),(0,St.KR)({Value:this.state.ResponderEmail,AutoSelection:!0,Placeholder:(0,v.qn)().Response_Poll_Email_Placeholder,HTMLAttributes:{className:"inline-display poll-email-textbox"},onValueChange:function(t){var e=!t||!t.trim();n.setState({ResponderEmail:t,ShowValidationStyle:e})}}),this.state.ShowValidationStyle?d.createElement("div",{className:"poll-email-validation-error"},(0,wt.f)({HTMLAttributes:{className:"validation-error-message-label",role:"alert"},Label:(0,v.qn)().Response_Poll_Email_ValidationError,Alert:!0})):void 0)},t.prototype.wh=function(){var n=this;return d.createElement("span",{className:"poll-view-result-link"},d.createElement("a",{className:"office-form-info-premotion office-form-info-children",href:"javascript:void(0)",onClick:function(){n.setState({SubmitState:1});var t=n.props.Master;Promise.all([t.ensureFieldsReady([sn.z.Schema.Questions,sn.z.Schema.DescriptiveElements,sn.z.Schema.Responses]),t.syncRuntimeResponses()]).then((function(){n.setState({SubmitState:3})}))}},(0,v.qn)().Response_Poll_ViewResult),this.As())},t.prototype.Ms=function(){var n=this,t=1===this.state.SubmitState;return d.createElement("div",{className:"office-form-bottom-button-div"},(0,yt.w)({HTMLAttributes:{className:"office-poll-submit-button office-form-theme-primary-background",disabled:t,onClick:function(){n.Sh(),(0,g.O7)("ResponsePage.Form.Submit",{isPoll:!0})}},ButtonStyle:1,Text:(0,v.qn)().Response_Poll_VoteButtonText}))},t.prototype.As=function(){if(1===this.state.SubmitState)return d.createElement("div",{className:"poll-submit-spinner"},d.createElement("div",{className:"spinner-tile-animation"}))},t.prototype.Ih=function(n){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)},t.prototype.Sh=function(){var n=this;if(this.uo.getQuestionsWithWrongAnswer(this.uo.TopQuestionRuntimeMasters()).length>0)this.setState({ShowValidationStyle:!0},t.scrollToShowSubmitError);else if(this.state.ResponderEmail&&this.state.ResponderEmail.trim()&&this.Ih(this.state.ResponderEmail.trim())){this.setState({SubmitState:1});var e={StartDate:this.Z,SubmitDate:new Date,Answers:this.uo.Answers,Responder:this.state.ResponderEmail,ResponderName:this.state.ResponderEmail},r=this.props.Master;r.submitResponse(e).then((function(t){Promise.all([r.ensureFieldsReady([sn.z.Schema.Questions,sn.z.Schema.DescriptiveElements,sn.z.Schema.Responses]),r.syncRuntimeResponses()]).then((function(){n.setState({SubmitState:3,ErrorMessage:void 0})}))})).catch((function(t){var e=(0,v.qn)(),r="";if(t.innerCode){if(r=(0,vt.O)("".concat(t.innerCode))||e.Error_Inline_DefaultMessage,5e3===t.innerCode){var i;i=t.customizedMessage,r=e.Error_Message_5000_title.format(i)}10001===t.innerCode&&(r=e.Error_Inline_RefreshMessage),631!==t.innerCode&&6503!==t.innerCode||(r=e.Error_Inline_DelayTryMessage)}n.setState({SubmitState:2,ErrorMessage:r}),5e3===t.innerCode&&(r=(0,v.qn)().Error_Message_FormClosed),(0,g.O7)((0,In.y_)(t)?"Error.InlineError.ShowAtSubmitResponse.Expected":"Error.InlineError.ShowAtSubmitResponse.Unexpected",{Error:(0,In.hq)(t)||void 0},t&&t.correlationId)}))}else this.setState({ShowValidationStyle:!0},t.scrollToShowSubmitError)},t.prototype.Uu=function(){(0,g.O7)("ResponsePage.PollResultView.SubmitAnother"),this.ds(),this.uo.updateWithResponse(null),this.setState({ErrorMessage:void 0,ShowValidationStyle:!1,SubmitState:0},t.scrollToTop)},t.prototype.ds=function(n){this.Z=new Date,this.uo.Answers=n||[]},t.prototype.gh=function(){switch(this.props.ViewMode){case Nt.n.Desktop:return!1;case Nt.n.Mobile:return!0;case Nt.n.Auto:return(0,Kn.Fr)();default:throw Error("unknown view mode")}},t.prototype.Jo=function(){$(window).width()<=768!==this.state.IsSmallScreen&&this.setState({IsSmallScreen:!this.state.IsSmallScreen})},t.scrollToTop=function(){(0,pt._f)($(".office-form-form-title"),$(".office-form-content"),void 0,void 0,!0)},t.scrollToShowSubmitError=function(){(0,pt._f)($(".office-form-submit-error"),$(".office-form-content"),void 0,20,!0)},t}(Q.h),Lt=e(54464),Ot=e(46602),xt=e(10597),Dt=function(){function n(n,t){void 0===t&&(t=!0),this.Fh=t?(0,Xn.Lg)():(0,Xn.W9)(),this.Ch=n}return n.prototype._h=function(){return n.KeyPrefixAnswerMap+this.Ch+"."+(0,c.m1)().userInfo.UserId},Object.defineProperty(n.prototype,"Answers",{get:function(){var n=this.Fh.getItem(this._h());if(n){var t=JSON.parse(n);return Array.isArray(t)?t:void(this.Answers=void 0)}},set:function(n){n?this.Fh.setItem(this._h(),JSON.stringify(n)):this.Fh.removeItem(this._h())},enumerable:!1,configurable:!0}),n.prototype.kh=function(){return n.KeyPrefixActiveSection+this.Ch+"."+(0,c.m1)().userInfo.UserId},Object.defineProperty(n.prototype,"SectionId",{get:function(){var n=this.kh();return this.Fh.getItem(n)||null},set:function(n){var t=this.kh();n?this.Fh.setItem(t,n):this.Fh.removeItem(t)},enumerable:!1,configurable:!0}),n.KeyPrefixAnswerMap="officeforms.answermap.",n.KeyPrefixActiveSection="officeforms.activesection",n}();function Mt(n,t,e,r,i,o){var u=n.Model.Id;(0,ut.Hq)((function(){return u})),(0,ut.QK)((function(){return n}));var s=(0,k.aq)();(0,F.CR)((function(){(0,On.rm)()&&(0,g.fL)({type:"MFPUI_EmbedFormRenderStarted",eventInfo:{requestId:s,Component:"RuntimeFormPage"}})}));var a,f,l=(0,yn._)("loadForm",t()),h=i;if(h||(h=(0,yn._)("responseStrings",(0,v.Wc)())),e){a=(0,yn._)("scripts",(0,st.LO)(["combined-response"]))}else a=Promise.resolve([]);h.catch((function(n){(0,pn.rf)({message:"LoadLocalizedStrings failure, error: ".concat(n&&n.message)}),(0,F.CR)((function(){if((0,On.rm)())if((0,p.Db)().datawithevent){window.parent.postMessage({Type:"FormResponseCanceled",FormTitle:null,Message:null},(0,p.Db)().hostappdomain)}else window.parent.postMessage("FormResponseError","*")}))})),a.catch((function(n){(0,pn.rf)({message:"LoadDependencies failure, error: ".concat(n&&n.message)}),(0,F.CR)((function(){if((0,On.rm)())if((0,p.Db)().datawithevent){window.parent.postMessage({Type:"FormResponseCanceled",FormTitle:null,Message:null},(0,p.Db)().hostappdomain)}else window.parent.postMessage("FormResponseError","*")}))}));f=window.setTimeout((function(){(0,xt.r)().RetryingRecoverableError&&$(".page-loading-messagebox").append("
"+(0,v.qn)().RetryRecoverableErrorMessage_OpeningForm+"
")}),1e4),l.catch((function(n){throw qt(n),(0,F.CR)((function(){(0,On.rm)()&&(0,g.fL)({type:"MFPUI_EmbedFormRenderFailed",eventInfo:{requestId:s,Component:"RuntimeFormPage"}})})),n})).then((function(){return(0,Lt.PY)("formApiFinished",(0,bn.JY)())})).then((function(){return(0,ft.sL)("survey"===n.Model.Type)})).then((function(){return function(n){(0,pn.zA)(n);var t=n.SyncContext===xn.$.SharedTimeForm;if(function(n){if(!(0,S.G7)("ResponseInApp")||!n.Model.Settings.RespondInAppOnly)return!1;var t=!1;if(window.hasOwnProperty("browser"))(0,g.O7)("ResponsePage.Form.OpenInTakeATest");else{if((0,Kn.E$)()){var e="ms-edu-secureassessment:",r="_self",i="directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no",o="!enforceLockdown";(0,y.e)(e.concat(window.location.href).concat(o),r,i),Vt(!1,Error((0,v.qn)().TakeATest_Win10),"Information")}else Vt(!1,Error((0,v.qn)().TakeATest_NotWin10),"Information");t=!0}return t}(n))return Promise.reject();var e=(0,F.CR)((function(){return(0,S.G7)("FormsProRemoveEmbedLink")})),r=(0,$n.fI)()||(0,$n.fL)()||(0,Wn.J)();if(window.parent!==window&&!r&&!e&&(window.innerWidth<320||window.innerHeight<320))return(0,g.O7)("ResponsePage.EmbedView.BlockEmbed",{iFrameWidth:window.innerWidth,iFrameHeight:window.innerHeight,isAndroid:(0,Kn.m0)()}),Ut(),Promise.reject();if(document.title=(0,F.qf)((function(){return n.Model.Title}),(function(){return(0,Jn.vg)(n.Model.Title?n.Model.Title.replace(/<[^>]*>/g,""):n.Model.Title)})),t)(0,g.O7)("ShareFormPage.Copy.Navigate");else if(n.isFieldReady(n.Schema.ProgressBarEnabled)){var i=void 0;i=!!n.Model.ProgressBarEnabled&&("true"===n.Model.ProgressBarEnabled&&n.totalSectionCount()>=2),(0,g.O7)("ResponsePage.Form.Navigate",{IsProgressBarNewVisible:i})}else(0,g.O7)("ResponsePage.Form.Navigate")}(n)})).then((function(){return!o&&function(n){return new Promise((function(t){n.SettingMaster.Model.IsAnonymous||(0,c.m1)().userInfo.UserId?t():((0,g.O7)("Auth.NoUserInfoForNonanonymousForm"),(0,Nn.T8)())}))}(n)})).then((function(){return function(n){var t=(0,p.Db)().rid;return null!=t?n.getRuntimeResponse(t).then((function(n){return[n]})):n.Model.Settings.IsQuizMode&&n.SyncContext===xn.$.ResponseTimeForm?(0,yn._)("releasedResponses",n.getReleasedResponsesByResponder((0,c.m1)().userInfo.Email)).then((function(n){return(0,Lt.PY)("responseApiFinished",(0,bn.JY)()),n})):Promise.resolve([])}(n).catch(qt)})).then((function(t){Promise.all([h,a]).then((function(){(0,yn.H)(),n.Model.LocaleList.length&&n.Synchronizer.setFieldsQueryJob([sn.z.Schema.LocalizedResources],Promise.resolve({localizedResources:[]}));var e=null;(0,S.t5)()&&(e=wn.km.Resolve("IIncrementalQuestionLoader")),t&&t.length?function(n,t,e,r){null!=(0,p.Db)().rid?(0,g.O7)("ResponsePage.ViewResultView.Navigate"):(0,g.O7)("ResponsePage.StudentView.Navigate");var i=n[n.length-1],o={Master:t,ViewMode:Nt.n.Auto,Response:i,PhishingReviewUXFactory:e,IncrementalQuestionLoader:r};Bt((0,mt.kr)(o))}(t,n,r,e):function(n,t,e,r,i){var o=!n.Model.Settings.IsAnonymous,u=new Dt(n.Model.Id,o),s={AnswerStorage:u,DisableSubmitButton:!1,ForcedLocaleId:i,IncrementalQuestionLoader:e,Master:n,PersistedAnswers:u.Answers,PersistedSectionId:u.SectionId,PhishingReviewUXFactory:t,PrintView:r,ViewMode:Nt.n.Auto,persistAnswer:function(t){(0,F.qf)((function(){(0,Gn.Lu)()||(u.Answers=t)}),(function(){(0,On.rm)()||(u.Answers=t)})),n.SyncContext===xn.$.ResponseTimeForm&&(t?(0,F.qf)((function(){window.onbeforeunload=function(){return""}}),(function(){window.onbeforeunload=function(){return""};var t=(0,p.Db)().vt;if((null==n?void 0:n.Model.Settings.PauseAndResumeSurvey)&&t){var e=t.split("_"),r=null;(null==e?void 0:e.length)>1&&(r=e[1]),(null==n?void 0:n.Model.Id)&&r&&(window.onbeforeunload=null)}})):window.onbeforeunload=null)},persistSectionId:function(n){(0,F.qf)((function(){(0,Gn.Lu)()||(u.SectionId=n)}),(function(){(0,On.rm)()||(u.SectionId=n)}))}},a=null,c=Promise.resolve(a);(0,F.CR)((function(){if(!s.PersistedAnswers&&(null==n?void 0:n.Model.Settings.PauseAndResumeSurvey)){var t=(0,p.Db)().vt;if(t){var e=t.split("_")[1];(null==n?void 0:n.Model.Id)&&e&&(c=(0,at.callIoCGetPausedResponse)(null==n?void 0:n.Model.Id,e)).then((function(t){if(t&&t.answers&&t.modifiedDate){var e=new Date(t.modifiedDate),r=new Date(null==n?void 0:n.Model.SurveyLastModifiedAt);if(e.getTime()>r.getTime()){var i=JSON.parse(t.answers);Array.isArray(i)&&(s.PersistedAnswers=i,u.Answers=i),t.activeSection&&(s.PersistedSectionId=t.activeSection,u.SectionId=t.activeSection)}}}))}}})),c.then((function(){(0,ot.Y)(n.Model.Category,"ResponsePage.PollView")?"DetailResult"===(0,p.Db)().view?Promise.all([n.ensureFieldsReady([sn.z.Schema.Questions,sn.z.Schema.DescriptiveElements,sn.z.Schema.Responses]),n.syncRuntimeResponses()]).then((function(){(0,F.qf)((function(){return Bt(Rt(s))}),(function(){return zt(n,s,!0)}))}),qt):(0,F.qf)((function(){return Bt(Rt(s))}),(function(){return zt(n,s,!0)})):(0,F.qf)((function(){return Bt((0,mt.kr)(s))}),(function(){return zt(n,s,!1)}))}))}(n,r,e),(0,ct.lN)()&&(e?e.onAllQuestionsLoaded().then((function(){At(n)})):At(n)),(0,g.Dz)(),(0,F.CR)((function(){(0,On.rm)()&&(0,g.fL)({type:"MFPUI_EmbedFormRenderCompleted",eventInfo:{requestId:s,Component:"RuntimeFormPage"}})}))}))})),Promise.all([a,h,l]).finally((function(){window.clearTimeout(f),(0,xt.r)().RetryingRecoverableError=!1})),(0,Ot.l)(Promise.all([a,h,l]),"ResponsePage_Load")}function At(n){n.Synchronizer.query((0,on.od)()).then((function(){setTimeout((function(){return At(n)}),1e4)}),(function(){setTimeout((function(){return At(n)}),1e4)}))}function Vt(n,t,e){void 0===n&&(n=!0),(0,v.Wc)().then((function(){var r=(0,dt.y)({Error:t,ErrorType:e,FormId:(0,p.Db)().id,IsResponsePage:!0,ShowCreateFormLink:n});(0,F.qT)(),(0,Wn.J)()&&n?Qn.render(d.createElement("div",{className:"embed-view-spo"},d.createElement(Ct.q),r),document.getElementById("content-root")):Qn.render(r,document.getElementById("content-root")),(0,g.Dz)(t)}))}function Ut(){(0,v.Wc)().then((function(){(0,g.O7)("ResponsePage.EmbedView.Navigate");var n=(0,Wn.J)()?"embed-view office-form-theme-primary-background":"embed-view",t=d.createElement("div",{className:n},d.createElement("div",{className:"embed-view-container"},(0,bt.a)({HTMLAttributes:{className:"embed-view-icon"},IconName:"OfficeFormsLogo"}),d.createElement("span",{className:"embed-view-content"},(0,v.qn)().Page_Title),d.createElement("a",{className:"embed-view-content",onClick:function(){(0,g.O7)("ResponsePage.EmbedView.OpenInBrowser");var n=(0,On.v5)(),t=window.location.pathname+"?";(0,F.qf)((function(){t+=jQuery.param(n)}),(function(){t=FormsPro.createUrlForSmallWindow(t,n)})),(0,y.e)((0,I.Lo)(t),"_blank","toolbar=yes, menubar=yes")}},(0,v.qn)().EmbedPage_Link)));(0,Wn.J)()&&(t=d.createElement("div",{className:"embed-view-spo"},d.createElement(Ct.q),t)),(0,F.qT)(),Qn.render(t,document.getElementById("content-root"))}))}function zt(n,t,e){n.ensureFieldsReady([sn.z.Schema.CustomCssFileName,sn.z.Schema.CustomCSSInLineHeaderToggle,sn.z.Schema.FooterText]).then((function(){n.Model.CustomCssFileName&&""!==n.Model.CustomCssFileName&&"true"!==n.Model.CustomCSSInLineHeaderToggle?function(n){var t=(0,lt.h$)();if(t)return(0,g.fL)({type:"MFPUI_LoadCustomStylesStarted",eventInfo:{Component:"RuntimeFormPage"}}),(0,ht.tN)({requestUri:"".concat(t,"api/downloadcustomcss"),method:"post",body:JSON.stringify({FormId:n}),headers:[]}).then((function(n){return(0,g.fL)({type:"MFPUI_LoadCustomStylesCompleted",eventInfo:{Component:"RuntimeFormPage"}}),n})).catch((function(n){if((0,g.fL)({type:"MFPUI_LoadCustomStylesFailed",eventInfo:{Component:"RuntimeFormPage",message:n}}),404===n.response.statusCode)return"";throw n}))}(n.Model.Id).then((function(r){r&&(t.CustomStyle=r),e?Bt(Rt(t)):Bt((0,mt.kr)(t),n.Model.Title)})).catch((function(n){qt(n)})):e?Bt(Rt(t)):Bt((0,mt.kr)(t),n.Model.Title)}),qt)}function Bt(n,t){var e;e=(0,Wn.J)()?"office-form-theme-page-background office-form-spo-embed":"office-form-theme-page-background",(0,F.qT)(),Qn.render(d.createElement("div",{id:"form-container",className:e,"data-theme-id":(0,p.Db)().theme},d.createElement("div",{className:"form-content"},n)),document.getElementById("content-root")),function(){var n=!0;if((0,S.t5)()){var t=wn.km.Resolve("IIncrementalQuestionLoader");t.onFirstRenderCompleted(),n=t.isFormLoadingComplete()}n&&wn.km.Resolve("IBootEvent").raiseBootComplete()}(),(0,F.CR)((function(){if((0,On.rm)())if((0,S.G7)("CustomerVoiceEventsWithData")&&(0,p.Db)().datawithevent){var n={Type:"ResponsePageLoaded",FormTitle:t,Message:null};window.parent.postMessage(n,(0,p.Db)().hostappdomain)}else parent.postMessage("ResponsePageLoaded","*")}))}function qt(n){if(n)switch((0,pn.rf)(n),(0,F.CR)((function(){if((0,On.rm)())if((0,p.Db)().datawithevent){window.parent.postMessage({Type:"FormResponseCanceled",FormTitle:null,Message:null},(0,p.Db)().hostappdomain)}else window.parent.postMessage("FormResponseError","*")})),n.innerCode){case 639:var t=(0,tt.qf)(window.location.href,"id",n.innerMessage);t!==window.location.href&&(0,F.qf)((function(){(0,Nn.SE)(t)}),(function(){(0,S.G7)("CustomerVoiceFlushRedirectionLogs")?(0,Nn.SE)(t):window.location.assign(t)}));break;case 5e3:default:Vt(!0,n);break;case 10001:(0,g.O7)("ResponsePage.EmbedView.NeedAuth"),et().then((function(){setTimeout((function(){(0,xt.r)().AuthContext.signIn().then(Nn.Gv)}))})).catch(Ut);break;case 15001:Vt(!1,n)}else Vt(!0,null,"Error")}var Ht=function(){function n(){}return n.prototype.handleJavaScriptLoadError=function(n){Vt(!1,n,"Error")},n}(),jt=e(53013),Qt=e(39980),Gt=e(99846),$t=e(34183),Wt=[],Kt=["LastEmbedConfig","formsProConfiguredPipes","FormsProBranchRules","mfpBranchingData","formsProEmbedCode","conditionalThankyouMessage","headerOtherInfo","footerText","alias"],Jt=[],Xt=["FormsProSmileyList"];function Yt(n){var t=null;switch(n.entityType){case 1:t=(0,F.qf)((function(){return Wt}),(function(){return Kt}));break;case 2:t=(0,F.qf)((function(){return Jt}),(function(){return Xt}));break;default:return}t&&n.data&&"object"==typeof n.data&&t.forEach((function(t){n.data[t]&&(n.data["".concat(t,"@odata.type")]="#String")}))}var Zt,ne="forms",te="questions",ee="runtimeForms",re="runtimeresponses",ie=function(){function n(n,t){this.serviceUrl=n,this.ownerServiceUrl=t,this.partialUpdateHttpMethod=(0,xt.r)().Flighting.isEnabled_Deprecated("PartialPut")?"PUT":"PATCH"}return n.getQueryParameters=function(n,t,e){if(!t)return"".concat(n,"$expand=").concat(te);var r="$select="+(t=_.union(["id"],t)).join(","),i={permissions:"permissions"};i.questions="".concat(te,"($expand=").concat("choices",")"),i.permissionTokens="permissionTokens";var o=t.map((function(n){return i[n]})).filter((function(n){return n}));return o.length&&(r+="&$expand="+o.join(",")),e&&(r+="&$filter=".concat(e.name,"+").concat(e.operator,"+").concat(e.value)),r&&n+r},n.prototype.getImmersiveReaderToken=function(){var n=(0,ut.dH)(),t="".concat(this.getSurveyWebServiceUrl(),"decomposition/GetImmersiveReaderToken?formId=").concat(n);return this.sendRequest({method:"GET",qosEventName:"Decomposition.GetImmersiveReaderToken",requestUri:t}).then((function(n){if(n)return n;throw new Error("Failed to get ImmersiveReader token via GetTokenForResource")}))},n.prototype.getPrivacySettings=function(n,t,e){var r={};return n&&(r.ownerTenantId=n),t&&(r.currentUserTenantId=t),e&&(r.isAnonymous=e),this.sendRequest({method:"GET",qosEventName:"Function.GetPrivacy",requestUri:"".concat(this.getSurveyWebServiceUrl(),"privacy?").concat($.param(r))})},n.prototype.reportAbuse=function(n){return this.sendRequest({data:n,method:"POST",qosEventName:"OnlineSafety.ReportAbuse",qosExtraData:{Category:n.Category},requestUri:"".concat(this.getSurveyWebServiceUrl(),"contentvalidation/report").concat(window.location.search)})},n.prototype.getRuntimeResponses=function(n,t){var e=t?"&$filter=responder+eq+'".concat(encodeURIComponent(t.replace(/\'/g,"''")),"'"):"",r=this.getSurveyWebOwnerServiceUrl();return this.sendRequest({qosEventName:"RuntimeResponses.Get",requestUri:"".concat(r).concat(ne,"('").concat(n,"')/").concat(re).concat("?$expand=comments").concat(e)})},n.prototype.getRuntimeResponse=function(n,t){var e=(0,p.Db)(),r={};return e.GetResponseToken&&(r.GetResponseToken=e.GetResponseToken),this.sendRequest({headers:r,qosEventName:"RuntimeResponse.Get",requestUri:"".concat(this.getSurveyWebOwnerServiceUrl(),"light/").concat(ne,"('").concat(n,"')/").concat(re,"(").concat(t,")").concat("?$expand=comments")})},n.prototype.submitFormResponse=function(n,t){var e=(0,Gt.MN)(n),r="AAD";return null==e.OrgId?r="Unknown":e.OrgId.toLowerCase()===(0,jt.T0)()&&(r="MSA"),this.sendRequest({data:t,method:"POST",qosEventName:"Response.Submit",qosExtraData:{OwnerSource:r},requestUri:"".concat(this.getSurveyWebOwnerServiceUrl()).concat(ne,"('").concat(n,"')/").concat("responses")})},n.prototype.getToken=function(){return(0,xt.r)().AuthContext.getFormApiToken()},n.prototype.getRuntimeForm=function(t,e){var r="".concat(this.getSurveyWebOwnerServiceUrl(),"light/").concat(ee,"('").concat(t,"')");return r+=n.getQueryParameters("?",e),this.sendRequest({qosEventName:"ResponseForm.Get",requestUri:r},{hasPrefetch:!0})},n.prototype.getResponseDetailRuntimeForm=function(t,e){var r=(0,p.Db)();if(r.GetResponseToken&&r.rid){var i={GetResponseToken:r.GetResponseToken},o="".concat(this.getSurveyWebOwnerServiceUrl(),"light/").concat("responseDetailRuntimeForms","('").concat(t,"')/").concat(r.rid);return o+=n.getQueryParameters("?",e),this.sendRequest({headers:i,qosEventName:"QosEvent.ServiceEndpoints.Form.GetResponseDetailRuntimeForm",requestUri:o})}return Promise.resolve(null)},n.prototype.getLocaleResource=function(n,t){var e="".concat(this.getMultilingualBaseUrl(n),"/'").concat(t,"'"),r=(0,F.CR)((function(){return(0,p.Db)().vt}));return this.sendRequest({headers:{ValidationToken:r||""},method:"GET",qosEventName:"Locale.Get",requestUri:e})},n.prototype.createUploadSession=function(n,t,e){var r="".concat(this.getSurveyWebOwnerServiceUrl()).concat(ee,"('").concat(n,"')/").concat(te,"('").concat(t,"')/CreateUploadSession");return this.sendRequest({data:{value:e},method:"POST",qosEventName:"Question.CreateUploadSession",requestUri:r})},n.prototype.cancelOrDeleteUploadFile=function(n){return this.sendRequest({method:"DELETE",qosEventName:"FileUpload.CancelOrDeleteUploadFile",requestUri:n})},n.prototype.getUserInfo=function(){return this.sendRequest({requestUri:this.getSurveyWebServiceUrl()+"userInfo",method:"GET",qosEventName:"Function.GetUserInfo"},{disableRequestRingHeader:!0})},n.prototype.getSharedForm=function(n){return this.sendRequest({body:'{"value" : "'.concat((0,p.Db)().sharetoken,'"}'),headers:{"Content-Type":"application/json;odata.metadata=minimal"},isSensitiveUri:!0,method:"GET",qosEventName:"SharedForm.Get",requestUri:"".concat(this.getSurveyWebOwnerServiceUrl()).concat("GetSharedForm","(formid='").concat(n,"',token='").concat((0,p.Db)().sharetoken,"')")})},n.prototype.getDataClassificationLabelDetail=function(n,t){return this.Ph({method:"GET",qosEventName:"Function.GetDataClassificationLabelDetails",requestUri:"".concat(this.getSurveyWebServiceUrl(),"/dataClassificationLabelInfo/").concat(n,"/").concat(encodeURIComponent(t))})},n.prototype.getMultilingualBaseUrl=function(n){return"".concat(this.getSurveyWebOwnerServiceUrl()).concat(ne,"('").concat(n,"')/").concat("localeResource")},n.prototype.getSurveyWebOwnerServiceUrl=function(){return this.ownerServiceUrl},n.prototype.getSurveyWebServiceUrl=function(){return this.serviceUrl},n.prototype.getFormApiBaseServiceUrl=function(){return"".concat((0,Qt.EC)(),"formapi/api")},n.prototype.sendRequest=function(n,t,e){var r=this;return this.getToken().then((function(i){return n.headers=$.extend(!0,n.headers,r.getCommonHeaders(i)),Yt(n),(0,ht.tN)(n,t,e).then((function(n){return(0,_n.Kl)(n).value}),_n.ze)}))},n.prototype.sendRequestWithCount=function(n,t,e){var r=this,i={Forms:[],TotalFormCount:0};return this.getToken().then((function(o){return n.headers=$.extend(!0,n.headers,r.getCommonHeaders(o)),Yt(n),(0,ht.tN)(n,t,e).then((function(n){var t=(0,_n.Kl)(n);return i.Forms=t.value,i.TotalFormCount=t.count,i}),_n.ze)}))},n.prototype.getCommonHeaders=function(t){var e={Accept:"application/json",AnalyzerToken:(0,p.Db)().AnalyzerToken,Authorization:(0,$t.e)(t),ShareInvitationKey:(0,p.$K)().Token||(0,p.Db)().Token||(0,p.Db)().sharetoken,__RequestVerificationToken:(0,c.m1)().antiForgeryToken};return(0,F.CR)((function(){var n={ContextParams:(0,c.m1)().contextParams,ParentSurveyId:(0,p.Db)().parentSurveyId,ParentResponseId:(0,p.Db)().parentResponseId,ValidationToken:(0,p.Db)().vt,RegardingParams:(0,p.Db)().rg};e=_.extend({},e,n)})),e=_.extend({},e,n.customizedHeaders)},n.prototype.Ph=function(n,t){return n.headers=$.extend(!0,n.headers,this.getCommonHeaders("")),Yt(n),(0,ht.tN)(n,t).then(_n.WO,_n.ze)},n.customizedHeaders={},n}(),oe=function(){function n(){}return n.prototype.getMixinFormApi=function(){return ie},n}();!function(n){n[n.NotStarted=0]="NotStarted",n[n.Loading=1]="Loading",n[n.Loaded=2]="Loaded",n[n.Failed=3]="Failed"}(Zt||(Zt={}));var ue=e(45044),se={Action:Dn.EY.reference(),AllFormList:Dn.EY.collectionOf(Dn.EY.reference()),AllFormListLoadState:Dn.EY.reference(),AllSharedFormList:Dn.EY.collectionOf(Dn.EY.reference()),Analysis:Dn.EY.boolean(),BranchingElementId:Dn.EY.string(),CdsInfoAvailableInUrl:Dn.EY.boolean(),CdsList:Dn.EY.reference(),CdsValidationMap:Dn.EY.reference(),CopyFormId:Dn.EY.string(),CriticalError:Dn.EY.reference(),CurrentProject:Dn.EY.reference(),CustomerVoiceDefaultEmailTemplates:Dn.EY.reference(),CustomerVoiceDefaultETsLoadState:Dn.EY.reference(),CustomerVoiceEmailTemplates:Dn.EY.reference(),CustomerVoiceView:Dn.EY.reference(),AllProjects:Dn.EY.reference(),AlertRules:Dn.EY.reference(),SMList:Dn.EY.reference(),ProjectMetrics:Dn.EY.reference(),FilterObj:Dn.EY.reference(),CurrentAggregateThemeList:Dn.EY.reference(),DataIdeas:Dn.EY.boolean(),DefaultCdsId:Dn.EY.string(),DefaultCdsInfoLoadState:Dn.EY.reference(),DefaultCdsUrl:Dn.EY.string(),DelegateInactiveUser:Dn.EY.reference(),EnvironmentListLoadState:Dn.EY.reference(),ErrorBarMessage:Dn.EY.string(),ErrorLevel:Dn.EY.reference(),ExecuteDownloadExcel:Dn.EY.boolean(),ExperienceType:Dn.EY.reference(),FlexPane:Dn.EY.reference(),ForceDesktopView:Dn.EY.boolean(),FormCollectionType:Dn.EY.reference(),FormId:Dn.EY.string(),FormList:Dn.EY.collectionOf(Dn.EY.reference()),FormListLoadState:Dn.EY.reference(),FormMaster:Dn.EY.reference(),FormsProToken:Dn.EY.string(),FormsTenantSettings:Dn.EY.reference(),Grading:Dn.EY.reference(),GroupMaster:Dn.EY.reference(),GroupMruFormListLoadState:Dn.EY.reference(),Host:Dn.EY.string(),InfoBarMessageType:Dn.EY.string(),IntelligenceSuggestionStatus:Dn.EY.reference(),IsDefaultCds:Dn.EY.boolean(),LastActiveTime:Dn.EY.number(),LastUsedEnv:Dn.EY.reference(),Locale:Dn.EY.string(),MeetingInfo:Dn.EY.reference(),pendingCalls:Dn.EY.reference(),PlaceholderList:Dn.EY.collectionOf(Dn.EY.reference()),PopupDialog:Dn.EY.reference(),Preview:Dn.EY.reference(),PreviousFlexPane:Dn.EY.reference(),RecycleBin:Dn.EY.collectionOf(Dn.EY.reference()),RelativeScrolHeight:Dn.EY.number(),ResponsePipeData:Dn.EY.reference(),Scenario:Dn.EY.string(),SearchContent:Dn.EY.string(),SectionElementId:Dn.EY.string(),SelectedCdsId:Dn.EY.string(),SelectedCdsRegion:Dn.EY.string(),SelectedCdsUrl:Dn.EY.string(),SelectedPortalForm:Dn.EY.reference(),SenderList:Dn.EY.reference(),SharedWithMeFormList:Dn.EY.collectionOf(Dn.EY.reference()),SharedWithMeFormListLoadState:Dn.EY.reference(),SharingToken:Dn.EY.string(),ShouldDisableAllClick:Dn.EY.boolean(),ShowBlockUsingFormsWarningPage:Dn.EY.boolean(),ShowExcelSurveyIntroductionDialog:Dn.EY.boolean(),ShowGroupListInPortal:Dn.EY.boolean(),ShowShimmer:Dn.EY.boolean(),ShowXLUnsyncedDialog:Dn.EY.boolean(),Store:Dn.EY.boolean(),TenantCountryCode:Dn.EY.string(),Title:Dn.EY.string(),Token:Dn.EY.string(),TopView:Dn.EY.reference(),UserActivities:Dn.EY.reference(),ValidationChecked:Dn.EY.reference(),XlWorkbookId:Dn.EY.string(),SurveyReportId:Dn.EY.string(),ResponseList:Dn.EY.reference(),LastPageIndex:Dn.EY.number(),Designer:Dn.EY.boolean(),DesignerCalloutType:Dn.EY.reference(),RandomizationCalloutType:Dn.EY.reference(),SidePaneVisible:Dn.EY.boolean(),NavPanelOpen:Dn.EY.boolean(),CurrentAlert:Dn.EY.reference(),CurrentAlertlist:Dn.EY.reference(),ShowCVSimplifiedEditor:Dn.EY.string(),OpenBranchingPanel:Dn.EY.boolean(),isAllProjectListLoaded:Dn.EY.boolean(),AddSimplifiedLogic:Dn.EY.reference(),RespondentList:Dn.EY.reference(),ResponseMap:Dn.EY.reference(),ResponseCount:Dn.EY.number(),FilteredResponseCount:Dn.EY.number(),DeletedResponseCount:Dn.EY.number(),UserTenantLevelSetting:Dn.EY.reference(),UserCVLicense:Dn.EY.boolean()},ae=function(n){function t(){var t=n.call(this)||this;return t.Nh=t.Nh.bind(t),t.bulkEdit((function(){var n=t.Model;n.Analysis=!1,n.BranchingElementId=null,n.IntelligenceSuggestionStatus={QuestionSuggestion:"Default",ThemeSuggestion:"Default",EstimatedTime:"Default"},n.DataIdeas=!1,n.IntelligeceQuestionSuggestionStatus="Default",n.PopupDialog="None",n.Store=!1,n.Grading=null,n.FormListLoadState="NotStarted",n.SharedWithMeFormListLoadState="NotStarted",n.GroupMruFormListLoadState="NotStarted",n.FormCollectionType="OwnedForms",n.MeetingInfo=null,n.SectionElementId=null,t.Model.LastActiveTime=Date.now(),(0,F.CR)((function(){n.CdsList=[],n.FirstLoading=!0,n.SelectedCdsId=null,n.CdsInfoAvailableInUrl=!1,n.LastUsedEnv=null,n.CdsValidationMap={},n.IsDefaultCds=!0,n.AllFormListLoadState="NotStarted",n.DefaultCdsInfoLoadState="NotStarted",n.DefaultCdsId="",n.DefaultCdsUrl="",n.TenantCountryCode="",n.ValidationChecked="Pending",n.ResponsePipeData=[],n.UserActivities=[],n.Project=null,n.ShowShimmer=!0,n.CustomerVoiceView=ue.s9.Home,n.CustomerVoiceDefaultEmailTemplates=[],n.CustomerVoiceDefaultETsLoadState=Zt.NotStarted,n.CustomerVoiceEmailTemplates=[],n.SurveyReportId=null,n.ResponseList=[],n.TextResponseList=[],n.LastPageIndex=0,n.Designer=!0,n.DesignerCalloutType="LeftNavigation",n.RandomizationCalloutType="RandomizationInitialTeachingDialog",n.SidePaneVisible=!!(0,S.G7)("CVHighCharts"),n.NavPanelOpen=!1,n.CurrentAlert=null,n.CurrentAlertList=[],n.CurrentAggregateThemeList=[],n.ShowCVSimplifiedEditor=null,n.OpenBranchingPanel=!1,n.AddSimplifiedLogic="None",n.RespondentList=[],n.TextRespondentList=[],n.ResponseMap=new Map,n.TextResponseMap=new Map,n.ResponseCount=0,n.FilteredResponseCount=0,n.DeletedResponseCount=0,n.isAllProjectListLoaded=!1})),n.CopyFormId=null,n.SharingToken=null,n.FormsTenantSettings={bingImageSearch:!1,externalCollaboration:!0,externalSendForm:!0,externalShareCollaboration:!0,externalShareResult:!0,externalShareTemplate:!0,InOrgSurveyIncentive:!0,recordIdentityByDefault:!0,OverSurveyManagement:!1,OverSurveyManagementDays:0,allowRecordIdentity:!0,allowFileUpload:!0,RestrictSurveyAccessEnabled:!1}})),t.Rh(),t}return(0,h.C6)(t,n),t.getInstance=function(){return this.instance||(this.instance=new t),this.instance},t.prototype.Rh=function(){var n=this;["mousedown","keydown","touchstart"].forEach((function(t){return document.addEventListener(t,n.Nh,!0)}))},t.prototype.Nh=function(){var n=Date.now();this.Model.LastActiveTime=0&&(i||e)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,n(t)))}},Xe=-1,Ye=function(){return"hidden"===document.visibilityState?0:1/0},Ze=function(){We((function(n){var t=n.timeStamp;Xe=t}),!0)},nr=function(){return Xe<0&&(Xe=Ye(),Ze(),Ke((function(){setTimeout((function(){Xe=Ye(),Ze()}),0)}))),{get firstHiddenTime(){return Xe}}},tr=(new Date,{});function er(n){"undefined"!=typeof PerformanceObserver&&(function(n,t){var e,r=nr(),i=Ge("LCP"),o=function(n){var t=n.startTime;tperformance.now())return;e.entries=[t],n(e)}catch(n){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("load",(function(){return setTimeout(t,0)}))}(n))}var rr=function(){function n(n,t,e,r){this.Kh=(0,vn.Jh)((function(){var n=(0,Fe.JY)("ThrottledEventNames");return n&&Array.isArray(n)?n.reduce((function(n,t){return n[t]=!0,n}),{}):{}})),er((function(n){var t=n.name,e=n.value,r=n.delta,i=n.id;(0,g._F)("Perf.WebVitals",{name:t,value:e,delta:r,id:i})})),this.Xh=new Qe(n,t,e,r)}return n.prototype.logData=function(n){n&&n.eventName&&!this.Yh(n.eventName)&&((0,Be.J)()&&"string"==typeof n.eventName&&(n.eventName.indexOf("Error.ErrorPage.Error")>-1||n.eventName.indexOf("Error.ErrorMessageBar.Show.Unexpected")>-1||n.eventName.indexOf("Error.InlineError.ShowAtSubmitResponse.Unexpected")>-1)||(n=(0,Ce.p0)(n),this.Xh.track(n)))},n.prototype.flush=function(n){this.Xh.flush(n)},n.prototype.Yh=function(n){return this.Kh()[n]},n}(),ir={activity_event:or,anonymous_event:or,diagnostic_event:or,engagement_event:function(n){(0,Kn.Fr)()&&(n.extraData=(0,h.Cl)((0,h.Cl)({},n.extraData),{IsMobileView:!0}));return or(n)},error_event:or,formspro_event:or,generic_event:or,impression_event:or,intelligence_event:or,nav_perf_event:function(n){var t=or(n);n.extraData&&(!function(n){if(ur){var t=0;"hidden"===ur.initialVisibility?t=ur.initializeTime.getTime():ur.visiToggleTime&&(t=ur.visiToggleTime.getTime());var e="VisiToggled";n.extraData[e]=t,ur.stop(),ur=null}}(n),t.properties=JSON.stringify(n.extraData));return t},qos_event:function(n){var t={duration:n.duration,eventCorrelationId:n.correlationId,eventName:n.eventName,eventType:n.eventType,properties:"",timeStamp:(0,bn.JY)()};n.extraData&&(t.properties=JSON.stringify(n.extraData));return t},session_start:function(n){var t;return or((0,h.Cl)((0,h.Cl)({},n),{correlationId:n.correlationId||(null===(t=(0,c.m1)().serverInfoFromPageHeaders)||void 0===t?void 0:t.serverCorrelationId)}))}};function or(n){var t={eventCorrelationId:n.correlationId,eventName:n.eventName,eventType:n.eventType,properties:"",timeStamp:(0,bn.JY)()};return n.extraData&&(t.properties=JSON.stringify(n.extraData)),t}var ur=new(function(){function n(){this.initialVisibility=document.visibilityState,this.initializeTime=new Date,this.Zh=this.Zh.bind(this),document.addEventListener("visibilitychange",this.Zh)}return n.prototype.stop=function(){document.removeEventListener("visibilitychange",this.Zh)},n.prototype.Zh=function(){this.visiToggleTime=new Date},n}()),sr=e(53454),ar=function(){function n(n,t){var e=this;this.logData=function(n){if(!function(n){return n.eventName=n.eventName.replace(" ",""),!n.eventName||-1!==((0,Fe.mt)("DisabledEventNames")||[]).indexOf(n.eventName)}(n)){var t=ir[n.eventType];if(t){var r=t(n);if(r.properties=e.sanitizeLogString(r.properties),e.awtLogger&&e.awtLogger.logData(r),!n.$optoutUTel&&e.td){var i=function(n){var t,e=cr()[n.eventType];if(void 0===e)return null;var r=n.eventName,i=null,o=8===e?10:8,u={$extraData:n.extraData};if(0===e)switch(n.eventType){case"qos_event":var s=n;r=null!==(t=s.qosEventName)&&void 0!==t?t:r,u.$qosEventStatus=s.qosEventStatus,u.$correlationId=s.correlationId;var a={aggMode:0,count:1,duration:s.duration};switch(u.$qosEventStatus){case"Success":case"PartialSuccess":a.result={code:0};break;case"Failure":a.result={code:1,isExpected:!1};break;case"ExpectedFailure":a.result={code:1,isExpected:!0}}i=[{$type:0,$data:a}];break;case"activity_event":var c=n.extraData;c&&(i=[{$type:0,$data:c.activity}],c.asha&&i.push({$type:1,$data:c.asha}))}return{$eventFlags:o,$eventName:r,$eventType:e,$eventContracts:i,$eventData:u}}(n);i&&e.td.$sendTelemetryEvent(i)}}}},this.sendTelemetryEvent=function(n){e.td&&e.td.$sendTelemetryEvent(n)},this.flushAndStop=function(n){var t=function(){e.awtLogger?e.awtLogger.flush(n):n()};e.td?e.td.$flushAndStop(t):t()},this.awtLogger=n,this.td=t}return n.prototype.logFormsProEvent=function(n){},n.prototype.sendTeamsAppInitializationCompleteSignal=function(n){},n}();var cr=(0,vn.Jh)((function(){return{activity_event:0,engagement_event:3,error_event:2,nav_perf_event:8,qos_event:0,diagnostic_event:2,anonymous_event:1}})),fr=function(n){function t(t,e){return n.call(this,t,e)||this}return(0,h.C6)(t,n),t.prototype.logFormsProEvent=function(n){var t;n.eventInfo.timeStamp=Date.now()-60*(new Date).getTimezoneOffset()*1e3,(0,F.CR)((function(){n.eventInfo.Geo=(0,lt.Qi)()}));var e={eventName:n.type,eventType:"formspro_event",extraData:n.eventInfo};null===(t=this.awtLogger)||void 0===t||t.logData(or(e))},t.prototype.sendTeamsAppInitializationCompleteSignal=function(n){(0,$n.$x)()&&(n?(0,In.y_)(n)?microsoftTeams.appInitialization.notifySuccess():microsoftTeams.appInitialization.notifyFailure({message:(0,sr.u)(n),reason:"Other"}):microsoftTeams.appInitialization.notifySuccess())},t.prototype.sanitizeLogString=function(n){if("string"==typeof n){var t=n.toLowerCase();return t.indexOf("auth_upn=")<0&&t.indexOf("token=")<0&&t.indexOf("bearer ")<0&&t.indexOf("authorization=")<0?n:n?'{"log":"[Sanitized log]"}':""}},t}(ar);function lr(){return{Flights:(n=(0,c.m1)(),{IsCdnEnabled:n.isCdnEnabled,IsAFDEnabled:n.isAFDEnabled,IsCandidateForLightResponsePage:n.isCandidateForLightResponsePage,NoLightReason:n.noLightReason,IsIntegration:n.isIntegration,IntegrationHost:n.isOembedSPO?"SPO":n.integrationHost})};var n}var hr=e(79432),dr=e(55132);function mr(n){return n?n[0].toUpperCase()+n.slice(1):""}var vr=e(80338),pr=e(24159);function gr(n,t,e,r,i,o){switch(void 0===i&&(i=!1),void 0===o&&(o=0),typeof r){case"number":case"boolean":case"string":(0,pr.f)(n,t,e,r);break;case"object":if(o<3)for(var u in r)if(i||br[u]){var s=i?mr(u):br[u];gr(n,(0,vr.n)([t,e]),s,r[u],i,o+1)}}}var br={$correlationId:"CorrelationId",$formId:"FormId",$extraData:"ExtraData",$duration:"Duration",$error:"Error",$guid:"Guid",$hostname:"Hostname",$imageType:"ImageType",$location:"Location",$mediaType:"MediaType",$metricDelta:"MetricDelta",$metricId:"MetricId",$metricName:"MetricName",$metricValue:"MetricValue",$qosEventStatus:"QosEventStatus",$retry:"Retry",$startTime:"StartTime",$imageHost:"ImageHost"},wr=e(71191);var Sr=(0,vn.Jh)((function(){var n=[];return n[0]=wr.Il.getFields.bind(wr.Il),n[1]=wr.Mu.getFields,n[2]=wr.TA.getFields,n[3]=function(n){return wr.rh.getFields("Funnel",n)},n[4]=wr.My.getFields,n[5]=wr.ay.getFields,n})),yr=function(){function n(n,t){var e=this;this.$flushAndStop=function(n){var t;e.td?null===(t=e.ed)||void 0===t||t.then((function(t){var e;(e=t)&&e.getOneDSTelemetryEvent&&e.flush(!1),n()})):n()},this.$sendTelemetryEvent=function(n){var t,r,i,o;if(e.td){e.ed||e.Pr();var u=1===n.$eventType,s=5===n.$eventType;if(n.$eventData=null!==(t=n.$eventData)&&void 0!==t?t:{},u||n.$eventData.$formId||(n.$eventData.$formId=e.Mh()),s&&(n.$eventData.$correlationId||(n.$eventData.$correlationId=null===(r=(0,c.m1)().serverInfoFromPageHeaders)||void 0===r?void 0:r.serverCorrelationId),!n.$eventData.$hostname&&(0,dr.n)(window.location.origin)&&(n.$eventData.$hostname=window.location.hostname)),!n.$eventData.$correlationId&&"string"==typeof(null===(i=n.$eventData.$extraData)||void 0===i?void 0:i.error)){var a=(0,_t.Bl)(null===(o=n.$eventData.$extraData)||void 0===o?void 0:o.error);a&&"object"==typeof a&&(n.$eventData.$correlationId=a.correlationId)}var f=[];!function(n,t){var e;for(e in t)if(br[e]){var r=br[e];gr(n,null,r,t[e],r===br.$extraData)}t.$extraData instanceof Error&&Object.getOwnPropertyNames(t.$extraData).forEach((function(e){gr(n,br.$extraData,mr(e),t.$extraData[e],!0,1)}))}(f,n.$eventData);var l={name:_r(n.$eventName),dataFields:[]};Array.isArray(n.$eventContracts)&&n.$eventContracts.forEach((function(n){var t,e=function(n,t){var e=Sr()[n];if(e)return e(t)}(n.$type,n.$data);e&&(t=l.dataFields).push.apply(t,e)}));var h=(0,vr.n)([Le.YT,Fr()[n.$eventType]]);e.td.sendTelemetryEvent({telemetryProperties:{ariaTenantToken:Le.LS},eventName:h,eventFlags:Cr(n.$eventFlags),eventContract:l,dataFields:f,timestamp:n.$timestamp})}};"OneNoteUwp"!==(0,ze.$)()&&(this.Mh=n,this.rd=t,this.td=new hr.GV(null,null,{disableValidation:!0,enableQueue:!0}),er((function(n){var t=n.name,r=n.value,i=n.delta,o=n.id;e.$sendTelemetryEvent({$eventType:8,$eventName:7,$eventData:{$metricName:t,$metricValue:r,$metricDelta:i,$metricId:o}})})))}return n.prototype.Pr=function(){var n,t=this;this.ed=new Promise((function(t){return n=t}));var r,i=e.e(231).then(e.bind(e,80499)),o=(0,ke.in)();r=(0,jt.A_)()&&!o?(0,Ee.Mb)((0,ke.uH)(),Ir).catch((function(){return t.$sendTelemetryEvent({$eventType:2,$eventName:"WaitEventCollectorUri",$eventData:{$error:"Wait for event collector uri timeout"}}),o})):Promise.resolve(o);var u=(0,Fe.JY)("MuidSyncDomainMapping");Promise.all([i,r,Se({type:"version"}),this.rd(),Te(u)]).then((function(e){var r=e[0],i=e[1],o=e[2],u=e[3];t.td&&r.initializeTelemetryLogger(t.td,i,o,u,t.Mh).then((function(t){return n(t)}))}))},n}(),Ir=3e4,Fr=(0,vn.Jh)((function(){var n=[];return n[0]="Activity",n[1]="Anonymous",n[2]="Diagnostic",n[4]="Navigation",n[8]="Perf",n[5]="SessionStart",n[6]="SystemAction",n[7]="UserAction",n[3]="Engagement",n}));function Cr(n){var t={dataCategories:2,diagnosticLevel:10,samplingPolicy:1};return 2&n&&(t.dataCategories=4),4&n&&(t.diagnosticLevel=110),8&n&&(t.samplingPolicy=194),t}function _r(n){return"string"==typeof n?(0,vr.n)(n.split(".").map(mr)):"E".concat(n)}var kr=e(39962),Pr=e(93056),Tr=function(){function n(){}return n.prototype.getFormApiToken=function(){return(0,kn.gf)()},n.prototype.handleAuthForContentPage=function(n){},n.prototype.handleAuthForAddinPage=function(){},n.prototype.hasUserLoggedIn=function(){return!!(0,c.m1)().userInfo.UserId},n.prototype.isValid=function(){return!0},n.prototype.redirectToLogin=function(n){return(0,Nn.qk)((0,Nn.og)(n)),new Promise((function(){}))},n.prototype.refreshToken=function(){return(0,kn.Be)()},n.prototype.signIn=function(n){return this.redirectToLogin(n)},n.prototype.signOut=function(){return(0,Nn.SE)((0,c.m1)().signOutLink)},n}(),Nr=function(){function n(){}return n.prototype.getFormApiToken=function(){return this.ud().getFormApiToken()},n.prototype.handleAuthForContentPage=function(n){return this.ud().handleAuthForContentPage(n)},n.prototype.handleAuthForAddinPage=function(){return this.ud().handleAuthForAddinPage()},n.prototype.hasUserLoggedIn=function(){return this.ud().hasUserLoggedIn()},n.prototype.isValid=function(){return this.ud().isValid()},n.prototype.redirectToLogin=function(){return this.ud().redirectToLogin()},n.prototype.refreshToken=function(){return this.ud().refreshToken()},n.prototype.signIn=function(n){return this.ud().signIn(n)},n.prototype.signOut=function(){return this.ud().signOut()},n.prototype.ud=function(){return this.sd||(this.sd=new Tr),this.sd},n}(),Rr=function(){function n(n){this.ad=null,this.fd=n?n.concat():[new Nr]}return n.prototype.signIn=function(n){return this.ld().then((function(t){return t.signIn(n)}))},n.prototype.getFormApiToken=function(){return this.ld().then((function(n){return n.getFormApiToken()}))},n.prototype.handleAuthForContentPage=function(n){return this.ld().then((function(t){return t.handleAuthForContentPage(n)}))},n.prototype.handleAuthForAddinPage=function(){return this.ld().then((function(n){return n.handleAuthForAddinPage()}))},n.prototype.hasUserLoggedIn=function(){var n=this.md();return n&&n.hasUserLoggedIn()},n.prototype.redirectToLogin=function(){return this.ld().then((function(n){return n.redirectToLogin()}))},n.prototype.refreshToken=function(){return this.ld().then((function(n){return n.refreshToken()}))},n.prototype.signOut=function(){return this.ld().then((function(n){return n.signOut()}))},n.prototype.ld=function(){var n=this;if(this.ad)return this.ad;var t=function(e){var r=n.fd[e];return r?r.isValid()?Promise.resolve(r):t(e+1):Promise.reject(new Error("No valid authenticator"))};return this.ad=t(0),this.ad},n.prototype.md=function(){return this.fd.filter((function(n){return n.isValid()}))[0]},n}(),Er=e(62128),Lr=function(){function n(n){n=n||{},this.vd=new Rr(n.authenticators),this.pd=new Er.P({}),n.addinAccessTokenGetter&&(0,Pr.Mz)(n.addinAccessTokenGetter)}return Object.defineProperty(n.prototype,"AuthContext",{get:function(){return this.vd},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Flighting",{get:function(){return this.pd},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"RetryingRecoverableError",{get:function(){return this.bd},set:function(n){this.bd=n},enumerable:!1,configurable:!0}),n}(),Or=e(10168);function xr(n){wn.km.Register("IPageContext").UsingSingleton((function(){return new Lr(n)})),wn.km.Register("ILogger").UsingSingleton((function(){return new fr((0,F.CR)((function(){return new rr(ut.dH,kr.W2,lr)})),(0,F.u3)((function(){return new yr(ut.dH,kr.W2)})))})),wn.km.Register("ILazyLoadResourceStringsFunc").UsingSingleton((function(){return Or.F})),Ie()}var Dr=e(94430),Mr=e(50793),Ar=e(91264),Vr=e(67983),Ur=e(41922);function zr(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(425).then(e.bind(e,49300))];case 1:return[2,{default:n.sent().SurveyVariables}]}}))}))}function Br(n){var t=(0,Ur.a)(Br,zr);return d.createElement(Vr.A,null,d.createElement(t,(0,h.Cl)({},n)))}F.xs.createTextFieldWithCKEditor=function(n,t,e,r,i,o,u,s,a){return void 0===e&&(e=!1),void 0===r&&(r=!1),void 0===i&&(i=null),void 0===o&&(o=null),void 0===u&&(u=null),void 0===s&&(s=null),void 0===a&&(a=!1),n.Value=F.xs.sanitizeRichTextHTML(n.Value),d.createElement(qr,(0,h.Cl)({Form:t,PipesNeeded:e,addLink:r,onFocus:i,onBlur:o,onKeyDownChoiceOption:u,onPasteChoiceOption:s,blockEnter:a},n))};var qr=function(n){function t(t){var e=n.call(this,t)||this;return e.wd=[],e.Ma=d.createRef(),e.Sd=function(){(0,P.nu)().Model.FlexPane="CustomData"},e.yd=function(){e.setState({isPanelOpen:!0})},e.Fd=e.Fd.bind(e),e.Cd=e.Cd.bind(e),e.state={isPanelOpen:!1},e}return(0,h.C6)(t,n),t.prototype.Fd=function(n){var t=F.xs.sanitizeRichTextHTML(n);this.props.onValueChange(t)},t.prototype.focus=function(){this.Ma.current&&this.Ma.current.focus()},t.prototype.componentDidMount=function(){return(0,h.sH)(this,void 0,void 0,(function(){var n,t,e,r,i,o,u,s,a,c,f,l=this;return(0,h.YH)(this,(function(h){switch(h.label){case 0:return CKEDITOR?(n=Qn.findDOMNode(this),t=(0,tn.OF)()?document.getElementById("form-designer-container"):document.getElementById("body-scrollable-content"),e=document.getElementById("reactshellheader"),r=(0,tn.OF)()?document.getElementById("content-root-project"):document.getElementById("content-root"),i=document.getElementsByClassName("muliti-lingual-page-padding"),CKEDITOR.disableAutoInline=!0,this.props.Form?[4,this.props.Form.ensureFieldsReady([sn.z.Schema.PipesDetails])]:[3,2]):[2];case 1:if(h.sent(),o=this.props.Form.Model.PipesDetails,u=JSON.parse(o)){for(s=void 0,s=0;s0){for(a=[],c=0;c0?(CKEDITOR.config.answertag_strings=n,CKEDITOR.config.answertag_button_label=(0,v.qn)().DESIGNPAGE_ANSWERTAG_CKEDITOR_MENU_LABEL,CKEDITOR.config.answertag_button_title=(0,v.qn)().DESIGNPAGE_ANSWERTAG_DROPDOWN_TOOLTIP,CKEDITOR.config.answertag_button_voice=(0,v.qn)().DESIGNPAGE_ANSWERTAG_DROPDOWN_TOOLTIP):CKEDITOR.config.answertag_strings=void 0})),h.label=2;case 2:return $(n).find("textarea").each((function(n,o){if(t){var u=[t,e,r];l._d(o,u,l.props.PipesNeeded)}else if(null!=i&&i.length>0){var s=[i[0]];l._d(o,s,l.props.PipesNeeded)}})),[2]}}))}))},t.prototype._d=function(n,t,e){var r=this;this.Pd=CKEDITOR.inline(n,{removePlugins:"elementspath,magicline,liststyle,tableselection,tabletools,tableresize,contextmenu",fontSize_defaultLabel:"14px",skin:"moono-lisa",disallowedContent:"script",startupFocus:1==this.props.AutoFocus&&"start",startupShowBorders:!1,protectedSource:[/\n/g],enterMode:CKEDITOR.ENTER_BR,floatSpaceDockedOffsetY:2,title:!1,basicEntities:!1,fillEmptyBlocks:!1,tabSpaces:0,htmlEncodeOutput:!1,entities:!1,ignoreEmptyParagraph:!1,extraAllowedContent:["a(*)[*]"],baseFloatZIndex:1e7}),this.Pd.config.extraPlugins="confighelper",this.Pd.config.placeholder=this.props.Placeholder;var i=[{name:"basicstyles",items:["Bold","Italic","Underline"]},{name:"colors",items:["TextColor"]}];i=(0,tn.OF)()?i.concat({name:"styles",items:["FontSize"]}):i.concat({name:"styles",items:["Font","FontSize"]});var o="richcombo,confighelper";if(e){var u=!1,s=!1;null!=CKEDITOR.config.pipeinsert_strings&&null!=CKEDITOR.config.pipeinsert_strings.length&&CKEDITOR.config.pipeinsert_strings.length>0&&(u=!0),null!=CKEDITOR.config.answertag_strings&&null!=CKEDITOR.config.answertag_strings.length&&CKEDITOR.config.answertag_strings.length>0&&(s=!0),(u||s)&&(o="richcombo,confighelper",u&&(o+=",pipeinsert"),s&&(o+=",answertag")),i=this.Td(u,s,i)}else this.props.addLink&&(i=i.concat({name:"Link",items:["Link"]}));(0,S.G7)("FormsProRTECharLimit")&&(o+=",wordcount"),this.Pd.config.extraPlugins=o,this.Pd.config.toolbar=i,(0,tn.OF)()&&(this.Pd.config.allowedContent="strong em u;span{!font-family};span{!color};span{!font-size};",this.props.addLink&&(this.Pd.config.allowedContent=this.Pd.config.allowedContent+"a[!href];")),(0,S.G7)("FormsProRTECharLimit")&&(this.Pd.config.wordcount={countHTML:!1,countLineBreaks:!0,countBytesAsChars:!1,countSpacesAsChars:!0,maxCharCount:this.props.MaxLength-1}),this.Pd.on("change",(function(n){r.Fd(r.Pd.getData()),r.props.onFocus&&r.props.onFocus()})),this.Pd.on("key",(function(n){r.props.onKeyDownChoiceOption&&13===n.data.keyCode&&(r.props.onKeyDownChoiceOption(),n.cancel())})),this.Pd.on("paste",(function(n){if(r.props.onPasteChoiceOption){if("html"===n.data.type){n.data.dataValue=n.data.dataValue.replaceAll("",""),n.data.dataValue=n.data.dataValue.replaceAll("","\n");var t=Ar.A.sanitize(n.data.dataValue,{ALLOWED_ATTR:["style"],ALLOWED_TAGS:["span","strong","em","u","a"]});n.data.dataValue=t?t.toString():t}var e=n.data.dataValue;if(e=e.replaceAll("
","\n"))e.replace(/\r/g,"").split("\n").map((function(n){return n.trim()})).filter((function(n){return!!n})).length>1&&(r.props.onPasteChoiceOption(n),n.cancel())}})),this.Pd.on("focus",(function(n){if($("#"+n.editor.name+"TBdiv").show(),r.Pd.execCommand("selectAll"),r.props.onFocus){var t=n.editor;if(t){var e=t.document.getElementsByTag("a").toArray();(e=e.filter((function(n){return n.hasClass("cke_combo_button")||n.hasClass("cke_button__textcolor")})))&&e.length&&_.forEach(e,(function(n){n.on("click",(function(n){r.props.onFocus()}))}))}}})),CKEDITOR.on("dialogDefinition",(function(n){var t=n.data.definition.dialog;t.on("show",(function(){var n=document.getElementsByClassName("muliti-lingual-page-padding"),t=$("input.cke_dialog_ui_input_text[type=text]");if(t)for(var e=0;e0&&"Display Text"===t[e].labels[0].innerText&&t[e].focus();if(n)if(0===$(".ms-Layer--fixed.lang-edit-layout-main").length){$(".ms-Layer--fixed.lang-edit-layout-clone").remove();var r=$(".ms-Layer--fixed").has(".cv-lang-edit-container"),i=$(".cke_dialog_background_cover:visible"),o=r.clone();if(0!==o.length&&0!==o.length&&0!=i.length){r.slice(0,1),o.slice(0,1),i.slice(0,1);var u=r[0].className,s=o[0].className;o[0].className=s+" lang-edit-layout-clone",r[0].className=u+" lang-edit-layout-main",o.insertAfter(i),$(".ms-Layer--fixed.lang-edit-layout-clone")[0].style.display="block",$(".ms-Layer--fixed.lang-edit-layout-main")[0].style.display="none"}}else 1===$(".ms-Layer--fixed.lang-edit-layout-clone").length&&($(".ms-Layer--fixed.lang-edit-layout-clone")[0].style.display="block",$(".ms-Layer--fixed.lang-edit-layout-main")[0].style.display="none")})),t.on("hide",(function(){document.getElementsByClassName("muliti-lingual-page-padding")&&($(".ms-Layer--fixed.lang-edit-layout-clone").remove(),$(".ms-Layer--fixed.lang-edit-layout-main").removeClass("lang-edit-layout-main").css("display","block"))}))})),this.Pd.on("blur",(function(n){if($("#"+n.editor.name+"TBdiv").hide(),r.props.onFocus){var t=n.editor;if(t){var e=t.document.getElementsByTag("a").toArray();e&&e.length&&_.forEach(e,(function(n){n.removeAllListeners()}))}}r.props.onBlur&&r.props.onBlur()})),this.Pd.on("instanceReady",(function(){if((0,tn.OF)()){var n=null,t=null,e=(0,P.nu)();e&&e.Model&&e.Model.FormMaster&&(n=e.Model.FormMaster.Model.SurveyFont,t=e.Model.FormMaster.Model.HeaderFont);var r=this.element.$.parentElement.parentElement.className,i=$(this.element.$).attr("aria-label"),o=$(this.element.$).attr("placeholder"),u="font-family";t&&r&&_.contains(["title-designer-title-editor","multi-lingual-title-editon-text","title-designer-subtitle-editor","multi-lingual-subtitle-edition-box"],r)&&i&&_.contains([(0,v.qn)().Designer_FormTitle,(0,v.qn)().Designer_FormSubtitle,(0,v.qn)().Designer_SectionTitle,(0,v.qn)().Designer_SectionSubtitle],i)?$(Qn.findDOMNode(this.element.$.parentElement)).find(".cke_editable_inline")[0].style[u]=t:n&&($(Qn.findDOMNode(this.element.$.parentElement)).find(".cke_editable_inline")[0].style[u]=n);var s=$(Qn.findDOMNode(this.element.$.parentElement)).find(".cke_editable_inline")[0];s&&i&&"false"===s.getAttribute("aria-label")&&(o?s.setAttribute("aria-label",o):s.setAttribute("aria-label",i))}if(CKEDITOR.env.ie||CKEDITOR.env.edge){var a=this,c=a.editable(),f=a.getSnapshot();c.on("compositionstart",l),c.on("compositionupdate",l),c.on("compositionend",l)}function l(){var n=a.getSnapshot();n!==f&&(f=n,a.fire("change"))}})),t&&_.forEach(t,(function(n){n&&n.addEventListener("click",(function(n){var t=n.target;!t||"form-designer-container"!==t.id&&"form-designer"!==t.id||r.Pd.focusManager.blur(!0),"string"==typeof $(n.target)[0].className&&""!==$(n.target)[0].className.trim()&&$(n.target)[0].className.indexOf("cke_textarea_inline")<0&&$(n.target)[0].parentElement.className.indexOf("cke_textarea_inline")<0&&r.Pd.focusManager.blur(!0)}))})),this.Pd.on("key",(function(n){!r.props.blockEnter||13!==n.data.keyCode&&40!==n.data.keyCode||n.cancel()}))},t.prototype.Td=function(n,t,e){return t&&n?(e=(e=e.concat({name:"custompipes",items:["pipeinsert"]})).concat({name:"answertags",items:["answertag"]}),this.props.addLink&&(e=e.concat({name:"Link",items:["Link"]}))):t?(e=e.concat({name:"answertags",items:["answertag"]}),this.props.addLink&&(e=e.concat({name:"Link",items:["Link"]}))):n&&(e=e.concat({name:"custompipes",items:["pipeinsert"]}),this.props.addLink&&(e=e.concat({name:"Link",items:["Link"]}))),e},t.prototype.render=function(){var n=_.clone(this.props);return n.ref=this.Ma,d.createElement(d.Fragment,null,this.state.isPanelOpen&&Br({onDismissSaveDialogue:this.Cd,isPanelOpen:this.state.isPanelOpen}),d.createElement(d.Fragment,null,(0,St.KR)(n)))},t.prototype.Cd=function(){this.setState({isPanelOpen:!1})},t}(Q.h);var Hr={ur:"اُردو",ht:"Kreyòl ayisyen",bn:"বাংলা","bn-IN":"বাংলা"};function jr(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(995).then(e.bind(e,95003))];case 1:return[2,{default:n.sent().CascadeRenderer}]}}))}))}function Qr(n){var t=(0,Ur.a)(Qr,jr);return d.createElement(Vr.A,null,d.createElement(t,(0,h.Cl)({},n)))}function Gr(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(297).then(e.bind(e,66164))];case 1:return[2,{default:n.sent().ConditionalThankyouContainer}]}}))}))}function $r(n){if(!n.formLocalizedItemMaster||!n.formMaster.Model.ConditionalThankyouMessage)return null;var t=(0,Ur.a)($r,Gr);return d.createElement(Vr.A,null,d.createElement(t,(0,h.Cl)({},n)))}function Wr(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(484).then(e.bind(e,52484))];case 1:return[2,{default:n.sent().CVChoiceRenderer}]}}))}))}function Kr(n){var t=(0,Ur.a)(Kr,Wr);return d.createElement(Vr.A,null,d.createElement(t,(0,h.Cl)({},n)))}function Jr(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(534).then(e.bind(e,78263))];case 1:return[2,{default:n.sent().FileUploadRenderer}]}}))}))}function Xr(n){var t=(0,Ur.a)(Xr,Jr);return d.createElement(Vr.A,null,d.createElement(t,(0,h.Cl)({},n)))}function Yr(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(954).then(e.bind(e,8313))];case 1:return[2,{default:n.sent().HeaderThemeRender}]}}))}))}function Zr(n){var t=(0,Ur.a)(Zr,Yr);return d.createElement(Vr.A,null,d.createElement(t,(0,h.Cl)({},n)))}function ni(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(23).then(e.bind(e,12023))];case 1:return[2,{default:n.sent().CVQuestionRendererFooter}]}}))}))}function ti(n){var t=(0,Ur.a)(ti,ni);return d.createElement(Vr.A,null,d.createElement(t,(0,h.Cl)({},n)))}var ei=e(9851),ri=e(42556),ii=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(t,n),t.getElementTypeName=function(){return"Question.DateTime"},t.createDefaultDefinition=function(){return{Type:t.getElementTypeName(),Title:(0,v.qn)().Question_DefaultTitle,Date:!0,Time:!1,QuestionTagForIntelligence:"Unknown",InsightsInfo:"None",IsFromSuggestion:!1}},t.supportMobileDesign=function(n){return!t.hasInvalidSettingOnMobile(n)},t.prototype.verify=function(n){return this.Model.Required&&!n?J.FF.RequiredError:J.FF.Success},t.prototype.getTypeDisplayName=function(){return(0,v.qn)().QuestionType_DateTime},t}(ri.q),oi=e(52786),ui=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(t,n),t.getElementTypeName=function(){return"Question.FileUpload"},t.createDefaultDefinition=function(){return{Type:t.getElementTypeName(),Title:(0,v.qn)().Question_DefaultTitle,HasSpecificFileType:!1,FileTypes:{Word:!0,Excel:!0,PowerPoint:!0,PDF:!0,Image:!0,Video:!0,Audio:!0},QuestionTagForIntelligence:"Unknown",InsightsInfo:"None",IsFromSuggestion:!1,MaxFileCount:1,MaxFileSize:oi.$_[Object.keys(oi.$_)[0]]}},t.prototype.verify=function(n){return this.Model.Required&&!n?J.FF.RequiredError:J.FF.Success},t.prototype.getTypeDisplayName=function(){return(0,v.qn)().QuestionType_UploadFile},t}(ri.q),si=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(t,n),t.getElementTypeName=function(){return"Question.MatrixChoice"},t.prototype.verify=function(n){return!this.Model.Required||n&&0!==n.length?J.FF.Success:J.FF.RequiredError},t.prototype.getTypeDisplayName=function(){return"MatrixChoice"},t.prototype.getNormalizedAnswer=function(n){return n},t}(ri.q),ai=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(t,n),t.getElementTypeName=function(){return"Question.MatrixChoiceGroup"},t.createDefaultDefinition=function(){var n=[{Description:(0,v.qn)().Designer_Choices_DefaultDescription.format(1),IsGenerated:!0,Id:1,Order:1},{Description:(0,v.qn)().Designer_Choices_DefaultDescription.format(2),IsGenerated:!0,Id:2,Order:2},{Description:(0,v.qn)().Designer_Choices_DefaultDescription.format(3),IsGenerated:!0,Id:3,Order:3},{Description:(0,v.qn)().Designer_Choices_DefaultDescription.format(4),IsGenerated:!0,Id:4,Order:4},{Description:(0,v.qn)().Designer_Choices_DefaultDescription.format(5),IsGenerated:!0,Id:5,Order:5}];return{Type:t.getElementTypeName(),Title:(0,v.qn)().Question_DefaultTitle,ChoiceGroup:n,QuestionTagForIntelligence:"Unknown",InsightsInfo:"None",IsFromSuggestion:!1}},t.createSubQuestionsDefinition=function(){return[{Title:(0,v.qn)().Desinger_Likert_DefaultDescription.format(1),Type:"Question.MatrixChoice"},{Title:(0,v.qn)().Desinger_Likert_DefaultDescription.format(2),Type:"Question.MatrixChoice"}]},t.prototype.verify=function(n){return J.FF.Success},t.prototype.getTypeDisplayName=function(){return(0,v.qn)().QuestionType_Likert},t.prototype.hasAnswer=function(){return!1},t}(ri.q),ci=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(t,n),t.getElementTypeName=function(){return"Question.NPS"},t.createDefaultDefinition=function(){return{Type:t.getElementTypeName(),Title:(0,v.qn)().NPS_DefaultTitle,LeftDescription:(0,v.qn)().NPS_LeftDescription,RightDescription:(0,v.qn)().NPS_RightDescription,QuestionTagForIntelligence:"Unknown",InsightsInfo:"None",IsFromSuggestion:!1}},t.prototype.verify=function(n){return this.Model.Required&&!n&&0!==n?J.FF.RequiredError:J.FF.Success},t.prototype.getTypeDisplayName=function(){return(0,v.qn)().QuestionType_NPS},t.prototype.isNumberType=function(){return!0},t}(ri.q),fi=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(t,n),t.getElementTypeName=function(){return"Question.Ranking"},t.createDefaultDefinition=function(){var n=[{Description:(0,v.qn)().Designer_Choices_DefaultDescription.format(1),Order:1,Key:(0,k.aq)()},{Description:(0,v.qn)().Designer_Choices_DefaultDescription.format(2),Order:2,Key:(0,k.aq)()},{Description:(0,v.qn)().Designer_Choices_DefaultDescription.format(3),Order:3,Key:(0,k.aq)()}];return{Type:t.getElementTypeName(),Title:(0,v.qn)().Question_DefaultTitle,AllowMultipleValues:!0,ChoiceGroup:n,QuestionTagForIntelligence:"Unknown",InsightsInfo:"None",IsFromSuggestion:!1}},t.prototype.verify=function(n){return!this.Model.Required||n&&0!==n.length?J.FF.Success:J.FF.RequiredError},t.prototype.getTypeDisplayName=function(){return(0,v.qn)().QuestionType_Ranking},t.prototype.isCorrectAnswer=function(n){var t=this;if(!n)return!1;var e,r=JSON.parse(this.Model.GradingBasis);e=_.isString(n)?JSON.parse(n):_.map(_.sortBy(n,(function(n){return n.answerOrder})),(function(n){return n.id}));var i=_.map(r,(function(n){return _.findWhere(t.Model.ChoiceGroup,{Key:n}).Id}));return e.length===i.length&&_.isEqual(i,e)},t.prototype.createQuizResult=function(n){if(this.Model.IsQuiz)return{IsAnswerCorrect:this.isCorrectAnswer(n),GradingBasis:this.Model.GradingBasis}},t.prototype.autoGradeAnswer=function(n){var t=this.Model.Point||0;n.Score=this.isCorrectAnswer(n.Answer)?t:0,n.IsAutoGraded=!0},t.prototype.autoGradeWithQuizResult=function(n,t){return t?t.IsAnswerCorrect?this.Model.Point:0:null},t.prototype.getNormalizedAnswer=function(n){return n||[]},t.prototype.hasCorrectAnswers=function(n){return!0},t.prototype.redressGradingBasis=function(){var n=this;this.Master.fieldsReady([(0,P.AW)().Schema.ChoiceGroup,(0,P.AW)().Schema.GradingBasis]).then((function(){var t=T.H.convertToArray(n.Master.Model.ChoiceGroup).sort((function(n,t){return n.Order-t.Order})).map((function(n){return n.Key}));n.Master.Model.GradingBasis=JSON.stringify(t)}))},t}(ri.q),li=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(t,n),t.getElementTypeName=function(){return"Question.Rating"},t.createDefaultDefinition=function(){return{Type:t.getElementTypeName(),Title:(0,v.qn)().Question_DefaultTitle,Length:5,RatingShape:J.VG.Star,LeftDescription:"",RightDescription:"",MinRating:1,QuestionTagForIntelligence:"Unknown",InsightsInfo:"None",IsFromSuggestion:!1}},t.supportMobileDesign=function(n){return!t.hasInvalidSettingOnMobile(n)&&!n.ShowRatingLabel},t.prototype.verify=function(n){return this.Model.Required&&!n?J.FF.RequiredError:J.FF.Success},t.prototype.getTypeDisplayName=function(){return(0,v.qn)().QuestionType_Rating},t.prototype.isNumberType=function(){return!0},t}(ri.q),hi=e(33471);var di=e(8093),mi=e(72138);var vi=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(t,n),t.getElementTypeName=function(){return"Question.TextField"},t.createDefaultDefinition=function(){return t.createDefaultSingleLineDefinition()},t.createDefaultSingleLineDefinition=function(){var n={Type:t.getElementTypeName(),Title:(0,v.qn)().Question_DefaultTitle,Multiline:!1,QuestionTagForIntelligence:"Unknown",InsightsInfo:"None",IsFromSuggestion:!1};return(0,F.CR)((function(){n.FormsProCalculateSentiment=!1})),n},t.supportMobileDesign=function(n){return!t.hasInvalidSettingOnMobile(n)&&!n.IsNumber},t.prototype.verify=function(n){var t=n;if(this.Model.IsMathQuiz&&t){var e=(0,_t.Bl)(n);if((t=null==e.Answer?n:e.Answer).length>(0,hi.lt)())return J.FF.MathLengthError}if(this.Model.Required&&!t)return J.FF.RequiredError;if(t&&this.Model.HasTFRestrictionForPro&&(J.b.Email===this.Model.FormsProValidationType||J.b.Custom===this.Model.FormsProValidationType)){var r=J.b.Email===this.Model.FormsProValidationType?(0,hi._K)():new RegExp(this.Model.FormsProCustomRegEx),i=J.b.Email===this.Model.FormsProValidationType?t.trim():t;if(!this.Nd(i,r)||""===i&&t!==i)return J.FF.RegExValidationError}else if(t&&this.Model.IsNumber&&!this.Ed(t))return J.FF.NumberValidationError;return J.FF.Success},t.prototype.getTypeDisplayName=function(){return this.Model.Multiline?(0,v.qn)().QuestionType_MultiLineText:this.Model.IsNumber?(0,v.qn)().Common_Number_Text:(0,v.qn)().QuestionType_SingleLineText},t.prototype.isNumberType=function(){return!!this.Model.IsNumber},t.prototype.justifyNumberBoundaries=function(){var n=this;this.Master.bulkEdit((function(){var t=n.Master.Model,e=(0,di.Yp)(t.NumberMinBoundary)||"1",r=(0,di.Yp)(t.NumberMaxBoundary)||"10";switch(t.NumberValidationRule){case J.lQ.Greater:case J.lQ.GreaterOrEqual:case J.lQ.Equal:case J.lQ.NotEqual:r=null;break;case J.lQ.Less:case J.lQ.LessOrEqual:e=null;break;case J.lQ.Between:case J.lQ.NotBetween:if(parseFloat(e)>parseFloat(r)){var i=e;e=r,r=i}}t.NumberMinBoundary=e,t.NumberMaxBoundary=r}))},t.prototype.getValidationErrorMessage=function(n,t){var e,r=this;return(0,F.CR)((function(){var i=null!=n?n:(0,v.qn)();switch(r.Model.FormsProValidationType){case J.b.Email:e=i.EmailValidFormatError;break;case J.b.Custom:e=t||r.Model.FormsProCustomPlaceholder||i.CustomValidFormatError;break;default:e=r.getNumberValidationErrorMessage(i)}})),e},t.prototype.getNumberValidationErrorMessage=function(n){var t=this.Model.NumberValidationRule;if(null!=t){var e=function(n,t){var e=null!=t?t:(0,v.qn)();switch(n){case"Between":return e.NumberValidation_ErrorMessage_Between;case"Equal":return e.NumberValidation_ErrorMessage_Equal;case"Greater":return e.NumberValidation_ErrorMessage_Greater;case"GreaterOrEqual":return e.NumberValidation_ErrorMessage_GreaterOrEqual;case"Less":return e.NumberValidation_ErrorMessage_Less;case"LessOrEqual":return e.NumberValidation_ErrorMessage_LessOrEqual;case"None":return e.NumberValidation_ErrorMessage_None;case"NotBetween":return e.NumberValidation_ErrorMessage_NotBetween;case"NotEqual":return e.NumberValidation_ErrorMessage_NotEqual;case"WholeNumber":return e.NumberValidation_ErrorMessage_WholeNumber;default:return""}}(J.lQ[t],n);return null==e?void 0:e.format(this.Model.NumberMinBoundary,this.Model.NumberMaxBoundary)}},t.prototype.hasCorrectAnswers=function(n){return!(!this.Model.IsQuiz||this.Model.Multiline)&&new mi.C(n||this.Model).areAnyAnswersDefined()},t.prototype.isCorrectAnswer=function(t){return this.Model.IsQuiz&&!this.Model.Multiline?new mi.C(this.Model).isCorrect(t):n.prototype.isCorrectAnswer.call(this,t)},t.prototype.createQuizResult=function(n){if(new mi.C(this.Model).areAnyAnswersDefined()&&this.Model.IsQuiz)return{IsAnswerCorrect:this.isCorrectAnswer(n),GradingBasis:this.Model.GradingBasis}},t.prototype.autoGradeAnswer=function(t){if(this.Model.IsQuiz&&!this.Model.Multiline){var e=new mi.C(this.Model);if(e.areAnyAnswersDefined()){var r=this.Model.Point?this.Model.Point:0;t.Score=e.isCorrect(t.Answer)?r:0,t.IsAutoGraded=!0}else n.prototype.autoGradeAnswer.call(this,t)}else n.prototype.autoGradeAnswer.call(this,t)},t.prototype.autoGradeWithQuizResult=function(t,e){return e?this.Model.IsQuiz&&!this.Model.Multiline?e.IsAnswerCorrect?this.Model.Point:0:n.prototype.autoGradeWithQuizResult.call(this,t,e):null},t.prototype.Nd=function(n,t){return void 0===n||""===n||!!t.test(n)},t.prototype.Ed=function(n){if(void 0===n||""===n)return!0;if(!(0,di.pR)(n))return!1;var t=parseFloat((0,di.Yp)(n)),e=parseFloat(this.Model.NumberMinBoundary),r=parseFloat(this.Model.NumberMaxBoundary);switch(this.Model.NumberValidationRule){case J.lQ.None:return!0;case J.lQ.Between:return t>=e&&t<=r;case J.lQ.NotBetween:return!(t>=e&&t<=r);case J.lQ.Greater:return t>e;case J.lQ.GreaterOrEqual:return t>=e;case J.lQ.Less:return t3?((0,g.fL)({type:"CustomerVoice_UpsertPausedResponseFailed",eventInfo:{Component:"PauseResumeSurvey",requestId:i,inviteId:t,failureReasonMessage:null==n?void 0:n.message,failureReasonHeaders:null==n?void 0:n.headers,failureReasonResponse:null==n?void 0:n.response}}),o(null)):s()}))};s()}))}(t,r,{formId:t,inviteId:r,answers:JSON.stringify(n),activeSection:e,modifiedDate:s,langCode:this.localeItem&&JSON.stringify(this.localeItem),validationToken:i,expiryDuration:o})}}},n}();var Ii=e(81407),Fi=function(n){function t(t){var e=n.call(this,t)||this;return e.fc=d.createRef(),e.Ad="",e.Vd="",e.zd=function(){if(e.Ad=e.props.ConfirmText,e.Vd=e.props.Message,e.props.FormMaster){var n=e.props.FormMaster;if(n.isFieldReady(n.Schema.PipesDetails)&&n.Model.PipesDetails){var t;t=JSON.parse(n.Model.PipesDetails),_.forEach(t,(function(n){n.defaultValue&&(e.Ad=e.Ad.replace("{{".concat(n.pipeName,"}}"),n.defaultValue),e.Vd=e.Vd.replace("{{".concat(n.pipeName,"}}"),n.defaultValue))}))}}},e.Ad=t.ConfirmText,e.Vd=t.Message,e}return(0,h.C6)(t,n),t.prototype.componentDidMount=function(){(0,un.X)($(this.fc.current))},t.prototype.render=function(){var n;this.zd();var t=this.Vd;n={RenderMode:"RichText",Text:this.Vd,ContainsHtml:!0},t=(0,Mr.e)(n);var e=(0,Mr.e)({ContainsHtml:!0,RenderMode:"RichText",Text:this.Ad});return d.createElement(Ii.L,{Role:"Log",LazyRendering:!1},d.createElement("div",{className:"thank-you-page-confirm"},d.createElement("span",{className:"custom-thank-you-page-comfirm-text"},e)),d.createElement("div",{className:"thank-you-page-container thank-you-page-message",ref:this.fc,tabIndex:-1},t))},t}(Q.h),Ci=function(){function n(){}return n.prototype.createPreviewSettingPane=function(n){return function(n){return d.createElement(Si,n)}(n)},n.prototype.addHeaderFontToSchemas=function(n){var t=[sn.z.Schema.HeaderFont];return n.push.apply(n,t),n},n.prototype.addSurveyFontToSchemas=function(n){var t=[sn.z.Schema.SurveyFont];return n.push.apply(n,t),n},n.prototype.getModifiedTextField=function(n,t){if(!n||""===n.trim())return n;var e=(0,P.nu)();if(e&&e.Model&&e.Model.FormMaster){var r=e.Model.FormMaster;if(r&&t&&r.isFieldReady(r.Schema.HeaderFont)||!t&&r.isFieldReady(r.Schema.SurveyFont)){var i=function(n,t,e){void 0===e&&(e=null);var r=n;if(!t)return n;if("Segoe UI"===t){if(n&&n.indexOf("font-family")>0){var i=n.indexOf("font-family"),o=(s=n.slice(i+12)).indexOf('"'),u=s.slice(0,o);r=(r=(r=n.replace(u,"")).replace('',"")).slice(0,r.length-7)}}else if(n)if(n.indexOf("font-family")>0){var s;i=n.indexOf("font-family"),o=(s=n.slice(i+12)).indexOf('"'),u=s.slice(0,o),r=n.replace(u,t)}else r=''+n+"";else e&&(r=''+e+"");return r}(n,t?r.Model.HeaderFont:r.Model.SurveyFont,null);n=F.xs.sanitizeRichTextHTML(i)}}return n},n.prototype.getFooterElement=function(n){if("string"==typeof n){var t=this.getModifiedTextField(n,!1);return(0,Mr.e)({ContainsHtml:!0,RenderMode:"RichText",Text:t})}return n},n.prototype.getLazyLoadThemes=function(){return e.e(552).then(e.t.bind(e,76940,19)).then((function(n){return n.default}))},n.prototype.getDefaultTheme=function(){return{BackgroundColor:"#E9F0FE",BackgroundImage:null,Name:"CV_Blue",PrimaryColor:"#2266E3",SecondaryColor:"#1F5BCC",Thumbnail:(0,W.VG)("/Images/CustomerVoice/blue-thumbnail.png")}},n.prototype.getThemeBackground=function(n){var t,e;return(null===(e=null===(t=(0,P.nu)())||void 0===t?void 0:t.Model)||void 0===e?void 0:e.FormMaster)?(0,P.nu)().Model.FormMaster.Model.Background.ResourceUrl:n},n.prototype.getThemeStyle=function(n){var t="";return n&&n.PrimaryColor?(t+=".cv-design-theme-footer-edit-style { border-top-color:".concat(n.PrimaryColor,"; }"),t+=".form-designer-title-view:hover { background-color:".concat(n.SecondaryColor,"; }"),t+=".form-designer-title-view:active { background-color:".concat(n.SecondaryColor,"; }"),t+=".form-designer-title-view:focus { background-color:".concat(n.SecondaryColor,"; }"),(0,S.G7)("CVLeapFrogVisualRefresh")?t+=".office-form-textfield .cke_textarea_inline { outline: none; }\n .office-form-textfield .cke_textarea_inline:focus { border-bottom: 2px solid ".concat(n.PrimaryColor,"; }"):t+=".office-form-textfield .cke_textarea_inline { outline: 1px solid ".concat(n.PrimaryColor,"; }"),t+=".form-control:not([disabled]):focus { border-color: ".concat(n.PrimaryColor,"; }"),t+=".condition-tku-body .design-time-editing { border-color: ".concat(n.PrimaryColor,"; }"),t+=".inlinebr-select-control:active, .inlinebr-select-control:focus { border-color: ".concat(n.PrimaryColor,"; }"),t+=".inlinebr-textreader-anchor:active, .inlinebr-textreader-anchor:focus { border-color: ".concat(n.PrimaryColor,"; }")):t},n.prototype.getMediaPickerPaneText=function(){return d.createElement("span",{className:"media-select-text"},(0,S.G7)("RebrandStream")?(0,v.qn)().ImagePicker_Insert_Media_Text:(0,v.qn)().ImagePicker_Insert_Media_Text2)},n.prototype.areImageUploadButtonsEnabled=function(){return!1},n.prototype.getMediaPickerPaneTitle=function(){var n;return n="MediaSelect"===(0,P.nu)().Model.PreviousFlexPane?(0,v.qn)().ImagePicker_Insert_Mdeia_button:(0,v.qn)().Logo_Panel_Title,d.createElement("div",{className:"image-picker-panel-title"},n)},n.prototype.getMediaPickerPaneInfoContent=function(){if("MediaSelect"!==(0,P.nu)().Model.PreviousFlexPane){var n=(0,v.qn)().Logo_Panel_Content;return d.createElement("div",{className:"image-picker-panel-info-content"},n)}return null},n.prototype.getImagePickerLocalContainerClassName=function(){return"cv-image-picker-local-switch-button"},n.prototype.getFlexPaneWidth=function(){return 480},n.prototype.getErrorPage=function(){return(0,h.sH)(this,void 0,Promise,(function(){return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(981).then(e.bind(e,64564))];case 1:return[2,{default:n.sent().ErrorPage}]}}))}))},n.prototype.callUpdatePR=function(n,t,e,r,i,o){yi.callUpdatePausedResponse(t,e,r,n,i,o)},n.prototype.callGetPausedResponse=function(n,t){return function(n,t){var e=0,r=(0,k.aq)();return(0,g.fL)({type:"CustomerVoice_FetchPausedResponseStart",eventInfo:{Component:"PauseResumeSurvey",requestId:r,inviteId:t}}),new Promise((function(i,o){var u=function(){e++,(0,ht.tN)({requestUri:"".concat((0,lt.Rn)(),"api/fetchpausedresponse/forms/").concat(n,"/invites/").concat(t),method:"GET",headers:{__RequestVerificationToken:(0,c.m1)().antiForgeryToken,Accept:"application/json",qosEventName:"getPausedResponse"}}).then((function(n){(0,g.fL)({type:"CustomerVoice_FetchPausedResponseSuccess",eventInfo:{Component:"PauseResumeSurvey",requestId:r,inviteId:t}}),i(n)})).catch((function(n){e>3?((0,g.fL)({type:"CustomerVoice_FetchPausedResponseFailed",eventInfo:{Component:"PauseResumeSurvey",requestId:r,inviteId:t,failureReasonMessage:null==n?void 0:n.message,failureReasonHeaders:null==n?void 0:n.headers,failureReasonResponse:null==n?void 0:n.response}}),i(null)):u()}))};u()}))}(n,t)},n.prototype.callSetLocaleItem=function(n,t,e,r){yi.setLocaleItem(n,t,e,r)},n.prototype.callDeletePausedResponse=function(n,t){!function(n,t){var e=0,r=(0,k.aq)();(0,g.fL)({type:"CustomerVoice_DeletePausedResponseStart",eventInfo:{Component:"PauseResumeSurvey",requestId:r,inviteId:t}}),new Promise((function(i,o){var u=function(){e++,(0,ht.tN)({requestUri:"".concat((0,lt.Rn)(),"api/deletepausedresponse/forms/").concat(n,"/invites/").concat(t),method:"DELETE",headers:{__RequestVerificationToken:(0,c.m1)().antiForgeryToken,Accept:"application/json"},qosEventName:"deletePausedResponse"}).then((function(){(0,g.fL)({type:"CustomerVoice_DeletePausedResponseSuccess",eventInfo:{Component:"PauseResumeSurvey",requestId:r,inviteId:t}}),i(null)})).catch((function(n){e>3?((0,g.fL)({type:"CustomerVoice_DeletePausedResponseFailed",eventInfo:{Component:"PauseResumeSurvey",requestId:r,inviteId:t,failureReasonMessage:null==n?void 0:n.message,failureReasonHeaders:null==n?void 0:n.headers,failureReasonResponse:null==n?void 0:n.response}}),i(null)):u()}))};u()}))}(n,t)},n.prototype.callUpdatePRForTextQuestion=function(n,t,e,r,i){yi.updatePausedResponseForTextQuestion(n,t,e,r,i)},n.prototype.getConditionalThankyouControl=function(n){return $r(n)},n.prototype.derivedThankYouMessageKey=function(n,t,r){return(0,h.sH)(this,void 0,Promise,(function(){var i;return(0,h.YH)(this,(function(o){switch(o.label){case 0:return[4,e.e(981).then(e.bind(e,76067))];case 1:return i=o.sent().default,[2,Promise.resolve(i(n,t,r))]}}))}))},n.prototype.getMessageContent=function(n){return d.createElement(Fi,n)},n.prototype.createHeaderThemeRenderer=function(n){return Zr(n)},n.prototype.createFileUploadQuestionRenderer=function(n){return Xr(n)},n.prototype.createCascadeQuestionRenderer=function(n){return Qr(n)},n.prototype.createChoiceQuestionRenderer=function(n){return Kr(n)},n.prototype.getQuestionDelegatorClass=function(n){return function(n){switch(n){case"Question.Choice":return ei.G;case"Question.TextField":return vi;case"Question.DateTime":return ii;case"Question.Rating":return li;case"Question.Ranking":return fi;case"Question.MatrixChoice":return si;case"Question.MatrixChoiceGroup":return ai;case"Question.NPS":return ci;case"Question.FileUpload":return ui;case"Question.CascadeLevel":return bi;case"Question.CascadeGroup":return gi;default:throw Error(n+" is not supported")}}(n)},n.prototype.getCustomLanguageFriendlyName=function(n){return Hr[t=n]||t;var t},n.prototype.getQuestionRendererFooter=function(n){return ti(n)},n.prototype.handleSubmitButtonClick=function(n,t){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(r){switch(r.label){case 0:return[4,e.e(981).then(e.bind(e,67231))];case 1:return[2,(0,r.sent().default)(n,t)]}}))}))},n.prototype.cvOnlyLanguageUtility=function(){return Dr.T.getSingletonInstance()},n}();var _i=e(41103);function ki(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(534).then(e.bind(e,4491))];case 1:return[2,{default:n.sent().FileUploadRenderer}]}}))}))}function Pi(n){var t=(0,Ur.a)(Pi,ki);return d.createElement(Vr.A,null,d.createElement(t,(0,h.Cl)({},n)))}var Ti=e(39528),Ni=e(28243),Ri=e(891),Ei=e(8911),Li=e(67003),Oi=e(48990),xi=e(28792),Di=e(65197),Mi=e(92692),Ai=e(17478),Vi="6c660282-db72-436c-87bb-8272cba504d3",Ui=function(n){function t(t){var e=n.call(this,t)||this;e.Bd=d.createRef(),e.qd=(0,k.aq)();var r=e.Hd(),i=e.jd(),o=e.Qd();return e.state={ChoiceOptions:i,IsOtherOptionSelected:!!r.OtherAnswer,LocalizedOptions:e.questionLocalizedItemMaster&&e.questionLocalizedItemMaster.Model.option,OptionsOrder:o,OrderedChoices:_.map(o,(function(n){return i[n]})),OtherOptionText:r.OtherAnswer,ReachMaxLengthLimit:!1,SelectedOptions:r.SelectedOptions},e.ho=e.ho.bind(e),e.Gd=e.Gd.bind(e),e.$d=e.$d.bind(e),e.Wd=e.Wd.bind(e),e.Kd=e.Kd.bind(e),e.Jd=e.Jd.bind(e),e}return(0,h.C6)(t,n),t.prototype.componentDidMount=function(){var t=this;n.prototype.componentDidMount.call(this),this.props.Master.Question.observe(this.$d),(this.props.ShowQuizResult||this.props.IncrementalLoadFormsEnabled)&&this.props.Master.observe(this.Kd,[xi.j.Schema.Answer]),(0,F.CR)((function(){t.props.Master.observe(t.Kd,[xi.j.Schema.Answer])})),this.questionLocalizedItemMaster&&this.questionLocalizedItemMaster.observe(this.Wd,[Oi.D.Schema.choicesV1]);var e=[];e=(0,at.addIoCSurveyFontToSchemas)(e),this.props.Master.Question.Form.observe(this.update,e)},t.prototype.componentWillUnmount=function(){var t=this;this.questionLocalizedItemMaster&&this.questionLocalizedItemMaster.unobserve(this.Wd),this.props.Master.Question.Form.unobserve(this.update),this.props.Master.Question.unobserve(this.$d),(this.props.ShowQuizResult||this.props.IncrementalLoadFormsEnabled)&&this.props.Master.unobserve(this.Kd,[xi.j.Schema.Answer]),(0,F.CR)((function(){t.props.Master.unobserve(t.Kd,[xi.j.Schema.Answer])})),n.prototype.componentWillUnmount.call(this)},t.prototype.componentWillReceiveProps=function(t){var e=this;this.questionLocalizedItemMaster&&this.questionLocalizedItemMaster.unobserve(this.Wd),n.prototype.componentWillReceiveProps.call(this,t),this.questionLocalizedItemMaster&&(this.questionLocalizedItemMaster.observe(this.Wd,[Oi.D.Schema.choicesV1]),(0,F.CR)((function(){e.Xd(e.props.Master.Model.Answer)})))},t.prototype.shouldComponentUpdate=function(n,t){var e=!_.isEqual(n,this.props),r=!_.isEqual(t,this.state);return e||r},t.prototype.createReactNodes=function(){var n=this.props.Master.Question,t=n.Model,e=t.ChoiceType===J.IG.SingleChoice;return this.props.IsPrintViewDesignTime||this.props.ExpandAll||!n.showAsDropdown()||t.IsQuiz&&this.props.ShowQuizResult?[this.createChoices(e),this.getErrorMessageLabel()]:[this.Yd()]},t.prototype.getFormattedDataForImmersiveReader=function(){var t=n.prototype.getFormattedDataForImmersiveReader.call(this),e=null,r=document.createElement("ul");return _.forEach(this.state.OrderedChoices,(function(n){var t=document.createElement("li"),i=null;if(n.IsMathOption&&"undefined"!=typeof MathJax){e=e||MathJax.Hub.getAllJax(null);var o=_.find(e,(function(t){return t.originalText===n.Description}));if(o){var u=o.root&&o.root.toMathML&&o.root.toMathML();u&&(u=u.replace(/\n\s*/g,""),i="\x3c!--[if mathML]>".concat((0,tt.Me)(u,!0),"<![endif]--\x3e"))}}if(i)(0,Ni.r)(t,i);else{var s=document.createTextNode(n.Description);t.appendChild(s)}r.appendChild(t)})),r.appendChild(document.createElement("br")),t.splice(t.length-1,0,{content:r.outerHTML,mimeType:"text/html"}),t},t.prototype.Kd=function(){var n=this.Hd(),t=!!n.OtherAnswer,e=this.props.Master.Question.Model.ChoiceType===J.IG.SingleChoice;(0,F.u3)((function(){e&&(t=!!n.OtherAnswer&&0===n.SelectedOptions.length)})),this.setState({IsOtherOptionSelected:t,OtherOptionText:n.OtherAnswer,SelectedOptions:n.SelectedOptions})},t.prototype.Xd=function(n){if((0,S.G7)("FormsProAnswerTag")){var t=_.findIndex(this.props.Master.Question.Model.Choices,(function(t){return t.Description===n}));if(t>-1){var e=this.questionLocalizedItemMaster,r=void 0;if(e){var i=e.getChoiceV1LocalizedMaster(t);r=i&&i.Model.description,r=i.Model.formsProDisplayRTText||r,this.props.Master.Model.SelectedChoice=r}else this.props.Master.Model.SelectedChoice=n}}},t.prototype.Zd=function(){var n,t=this,e=[],r=this.props.Master.Question.Model.ChoiceType===J.IG.SingleChoice,i=this.state.SelectedOptions;i&&i.forEach((function(n){return e.push(n)}));var o=this.state.OtherOptionText;if((0,F.qf)((function(){t.state.IsOtherOptionSelected&&o&&-1===e.indexOf(o)&&e.push(o)}),(function(){t.state.IsOtherOptionSelected&&!(0,Ri.h)(o)&&-1===e.indexOf(o)&&e.push(o)})),r)n=e[0];else if(e.length){var u=this.nm(e);n=JSON.stringify(u)}(0,F.CR)((function(){t.Xd(n)})),this.props.Master.Model.Answer=n},t.prototype.createChoices=function(n){var e=this,r=this.props.Master.Question.Model,i=this.state.OrderedChoices.length+(r.AllowOtherAnswer?1:0),o=this.props.Master.Question.Form,u=(0,ot.Y)(o,"ResponsePage.PollView"),s=(0,K.x)(this.props.IsMobile&&!u?"office-form-question-choice-mobile office-form-theme-page-background-active":"office-form-question-choice"),a=this.state.OrderedChoices.map((function(r,o){var u,a,c=-1!==e.state.SelectedOptions.indexOf(r.Description),f=e.props.Master.Question.Model.IsQuiz?"office-form-question-choice-quiz-row":"";if(e.props.Master.Question.Model.IsMathQuiz&&r.IsMathOption){var l=(0,Ei.Uc)({DisableLinebreaks:e.props.DisableFormulaLinebreak,Formula:r.Description,onRenderComplete:e.props.onHeightChange}),h="office-form-question-choice-formula";(0,Kn.xy)()&&(h+=" formula-renderer-container-safari9"),a=d.createElement("div",{className:h},l)}else{f=(0,K.x)(f,"office-form-question-choice-text-row");var m=null===(u=e.questionLocalizedItemMaster)||void 0===u?void 0:u.getChoiceV1LocalizedMaster(e.state.OptionsOrder[o]),v=(0,Li.Xs)(r.Description,r.FormsProDisplayRTText);m&&(v=(0,Li.Xs)(m.Model.description,m.Model.formsProDisplayRTText)||v),(0,F.CR)((function(){e.questionLocalizedItemMaster||(e.props.Master.Model.SelectedChoice=e.props.Master.Model.Answer)}));var p={Text:(0,at.getIoCModifiedTextField)(v,!1),ContainsHtml:!0,RenderMode:"RichText"};a=d.createElement("span",{className:"office-form-question-choice-text-span"},(0,Mr.e)(p))}var g,b=t.getAnswerKeyMark(e.props,r,c);switch(b){case"Correct":g=e.props.LocalizedStrings.Quiz_CorrectAnswer;break;case"Wrong":g=e.props.LocalizedStrings.Quiz_WrongAnswer}var w={name:e.qd};return n&&_.extend(w,{"aria-posinset":o+1,"aria-setsize":i}),d.createElement(Mi.T,{AnswerHint:t.getAnswerHintLabel(e.props,r,c),AnswerType:b,ToolTipForAnswer:g,Choice:r,ClassNameForLabel:f,ContainerClassName:s,Disabled:e.props.Disabled,HTMLPropsForInput:w,IsChecked:c,IsMobile:e.props.IsMobile,IsSingleChoice:n,key:o,LocalizedStrings:e.props.LocalizedStrings,onChange:e.ho},a)})),c=this.getElementProps({key:"choicequestion-choices",role:n?"radiogroup":"group"});return d.createElement("div",(0,h.Cl)({},c),a,this.tm(n))},t.prototype.tm=function(n){var t=this.props.Master.Question.Form,e=(0,ot.Y)(t,"ResponsePage.PollView");if(this.props.Master.Question.Model.AllowOtherAnswer){var r={className:this.props.IsMobile&&!e?"office-form-other-answer-mobile":"office-form-other-answer",key:"other-answer"};return d.createElement("div",(0,h.Cl)({},r),d.createElement("div",{className:"radio"},d.createElement("label",null,this.im(n),this.om())))}},t.prototype.im=function(n){var t=this.state.ChoiceOptions,e={"aria-label":this.props.LocalizedStrings.Response_Page_OtherAnswerTitle,checked:this.state.IsOtherOptionSelected,disabled:this.props.Disabled,name:n?this.qd:void 0,onChange:this.Gd,ref:"otherAnswerInput",role:"checkbox",type:"checkbox",value:this.state.OtherOptionText||""};return n&&(e.role="radio",e.type="radio",e["aria-posinset"]=t.length+1,e["aria-setsize"]=t.length+1,(0,F.CR)((function(){e["aria-checked"]=e.checked}))),d.createElement("input",(0,h.Cl)({},e))},t.prototype.Gd=function(){var n=this,t=this.state.IsOtherOptionSelected,e=_.clone(this.state.SelectedOptions);if(!t){this.props.Master.Question.Model.ChoiceType===J.IG.SingleChoice&&(e=[]);var r=this.Bd.current;r&&r.focus()}this.setState({IsOtherOptionSelected:!t,SelectedOptions:e},(function(){return n.Zd()}))},t.prototype.om=function(){var n={"aria-label":this.props.LocalizedStrings.Response_Page_OtherAnswerTitle,className:"office-form-other-answer-textbox"},t=this.props.IsPrintViewDesignTime?"":this.props.LocalizedStrings.Designer_OtherAnswer,e={AutoSelection:!0,Disabled:this.props.Disabled,HTMLAttributes:{className:"inline-display office-form-other-answer-margin-left-mobile"},MaxLength:(0,hi.Ys)(),onValueChange:this.Jd,Options:{HTMLPropsForInnerElement:n},Placeholder:t,ref:this.Bd,Value:this.state.OtherOptionText||""},r=this.props.IsPrintViewDesignTime&&d.createElement("div",{className:"print-choice-other-answer-hint"},this.props.LocalizedStrings.Designer_OtherAnswer);return d.createElement("div",{className:"office-form-other-answer-inline"},(0,St.KR)(e),r)},t.prototype.Jd=function(n){var t=this,e=this.state.SelectedOptions;this.props.Master.Question.Model.ChoiceType===J.IG.SingleChoice&&(e=[]),this.setState({IsOtherOptionSelected:!!n,OtherOptionText:n,SelectedOptions:e},(function(){return t.Zd()}))},t.prototype.$d=function(){var n=this.Hd();this.setState({ChoiceOptions:this.jd(),OptionsOrder:this.Qd(),OrderedChoices:this.um(),OtherOptionText:n.OtherAnswer,SelectedOptions:n.SelectedOptions})},t.prototype.Wd=function(){this.setState({LocalizedOptions:this.questionLocalizedItemMaster&&this.questionLocalizedItemMaster.Model.option})},t.prototype.ho=function(n){var t=this,e=_.clone(this.state.SelectedOptions),r=this.props.Master.Question.Model.ChoiceType===J.IG.SingleChoice,i=this.state.IsOtherOptionSelected,o=!1;if(r){if(n===e[0])return;i=!1,e=[n]}else{var u=e.indexOf(n);-1===u?e.push(n):e.splice(u,1),o=JSON.stringify(e).length>ei.G.MaxAnswerLength}this.setState({IsOtherOptionSelected:i,ReachMaxLengthLimit:o,SelectedOptions:e,OtherOptionText:r?"":this.state.OtherOptionText},(function(){return t.Zd()}))},t.prototype.getErrorMessageLabel=function(){if(this.state.ReachMaxLengthLimit)return(0,wt.f)({Alert:!0,HTMLAttributes:{className:"validation-error-message-label",role:"alert"},key:"textquestion-errorlabel",Label:this.props.LocalizedStrings.Error_Message_Question_Reach_Limit})},t.prototype.Yd=function(){var n,t,e=this,r=this.props.Master,i=r.Question.Model,o=this.state.OrderedChoices.map((function(n,t){var r,i=null===(r=e.questionLocalizedItemMaster)||void 0===r?void 0:r.getChoiceV1LocalizedMaster(e.state.OptionsOrder[t]);return{DisplayName:(0,Li.Xs)(null==i?void 0:i.Model.description,null==i?void 0:i.Model.formsProDisplayRTText)||(0,Li.Xs)(n.Description,n.FormsProDisplayRTText),Key:T.H.getObjectMasterFromModel(n).getInstanceId(),Value:n.Description}})),u=r.Model.Answer;i.AllowOtherAnswer&&o.push(this.sm()),this.state.IsOtherOptionSelected&&(u=Vi),!this.props.ShowDesignInfo&&this.state.IsOtherOptionSelected&&(n=this.fm()),t=function(n){return e.lm(n)};var s=(0,Gn.Lu)()?this.props.LocalizedStrings.Question_Choice_Placeholder:this.props.LocalizedStrings.Dropdown_DefaultHint,a=(0,Di.H)({AllowWrap:!0,HTMLAttributes:this.getElementProps({className:"office-form-question-dropdown",disabled:this.props.Disabled,title:i.Hint||s}),Label:i.Hint||s,key:"choicequestion-dropdown",onValueChange:t,Placeholder:i.Hint||s,SelectOptions:o,Value:u,NeedScroll:this.props.IsMobile});return d.createElement("div",{className:this.getValidationStyle()},a,n)},t.prototype.lm=function(n){var t=this,e=n===Vi,r=e?[]:[n];(0,F.qf)((function(){t.setState({IsOtherOptionSelected:e,SelectedOptions:r},(function(){return t.Zd()}))}),(function(){t.setState({IsOtherOptionSelected:e,OtherOptionText:t.state.OtherOptionText||(e?"":void 0),SelectedOptions:r},(function(){return t.Zd()}))}))},t.prototype.sm=function(){return{DisplayName:this.props.LocalizedStrings.Designer_OtherAnswer,Key:Vi,Value:Vi}},t.prototype.fm=function(){var n=this,t=(0,Gn.Lu)()?this.props.LocalizedStrings.Question_TextFiled_Placeholder:this.props.LocalizedStrings.TextField_DefaultPlaceholder,e={"aria-label":t,className:"office-form-other-answer-textbox"},r={AutoFocus:!0,Disabled:this.props.Disabled,HTMLAttributes:{className:"office-form-other-answer office-form-dropdown-other-answer"},onValueChange:function(t){n.setState({OtherOptionText:t,SelectedOptions:[]},(function(){return n.Zd()}))},Options:{HTMLPropsForInnerElement:e},Placeholder:t,ref:this.Bd,Value:this.state.OtherOptionText};return(0,St.KR)(r)},t.prototype.nm=function(n){var t=this.props.Master.Question.Model.Choices,e=_.map(t,(function(n){return n.Description}));return n.sort((function(n,t){return e.indexOf(n)-e.indexOf(t)}))},t.isQuizResultAnswerKey=function(n,t){if(!n||!n.IsAnswerKeys)return!1;var e=n.Choices;return!!e&&n.IsAnswerKeys[e.indexOf(t.Description)]},t.getAnswerKeyMark=function(n,e,r){var i=n.Master,o=i.Model.QuizResult,u=i.Question,s=t.isQuizResultAnswerKey(o,e);return e.IsAnswerKey&&n.ShowDesignInfo&&u.Model.IsQuiz||s?"Correct":r&&o&&o.IsAnswerKeys&&o.IsAnswerKeys.some((function(n){return n}))&&!s?"Wrong":"Normal"},t.getAnswerHintLabel=function(n,t,e){var r=n.Master.Model.QuizResult;if(!n.ShowDesignInfo&&e&&r){var i=r.Choices,o=i?i.indexOf(t.Description):-1;return r.AnswerHints&&r.AnswerHints[o]}},t.prototype.jd=function(){var n=this.props.Master.Question.Model;return this.questionLocalizedItemMaster&&this.questionLocalizedItemMaster.getChoiceV1LocalizedMaster(n.Choices.length-1),T.H.convertToArray(n.Choices)},t.prototype.um=function(){var n=this;return _.map(this.state.OptionsOrder,(function(t){return n.state.ChoiceOptions[t]}))},t.prototype.Qd=function(){for(var n=this.props.Master.Question.Model,t=[],e=0;e0&&(i?[e.Answer]:u).forEach((function(t){-1!==_.findIndex(r.Choices,(function(n){return n.Description===t}))?o.push(t):r.AllowOtherAnswer&&(n=t)}));return{OtherAnswer:n,SelectedOptions:o}},t}(Ai.L),zi=function(){function n(){}return n.prototype.createPreviewSettingPane=function(n){return function(n){return d.createElement(wi,n)}(n)},n.prototype.addHeaderFontToSchemas=function(n){return n},n.prototype.addSurveyFontToSchemas=function(n){return n},n.prototype.getModifiedTextField=function(n,t){return n},n.prototype.getFooterElement=function(n){return n},n.prototype.getLazyLoadThemes=function(){return e.e(826).then(e.t.bind(e,25412,19)).then((function(n){return n.default}))},n.prototype.getDefaultTheme=function(){return{BackgroundColor:kt.i0,BackgroundImage:null,Name:_i.Oo,PrimaryColor:kt.vR,SecondaryColor:kt.g5,Thumbnail:(0,W.VG)("/Images/Theme/new-teal-thumbnail.png")}},n.prototype.getThemeBackground=function(n){return n},n.prototype.getThemeStyle=function(n){return""},n.prototype.getMediaPickerPaneText=function(){return null},n.prototype.areImageUploadButtonsEnabled=function(){return!0},n.prototype.getMediaPickerPaneTitle=function(){return null},n.prototype.getMediaPickerPaneInfoContent=function(){return null},n.prototype.getImagePickerLocalContainerClassName=function(){return null},n.prototype.getFlexPaneWidth=function(){return 600},n.prototype.getErrorPage=function(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,e.e(981).then(e.bind(e,87273))];case 1:return[2,{default:n.sent().ErrorPage}]}}))}))},n.prototype.callUpdatePR=function(n,t,e,r,i,o){return null},n.prototype.callGetPausedResponse=function(n,t){return Promise.resolve(null)},n.prototype.callSetLocaleItem=function(n,t,e,r){return null},n.prototype.callDeletePausedResponse=function(n,t){return null},n.prototype.callUpdatePRForTextQuestion=function(n,t,e,r,i){return null},n.prototype.getConditionalThankyouControl=function(n){return null},n.prototype.createHeaderThemeRenderer=function(n){return null},n.prototype.derivedThankYouMessageKey=function(n,t,e){return(0,h.sH)(this,void 0,Promise,(function(){return(0,h.YH)(this,(function(n){return[2,Promise.resolve("")]}))}))},n.prototype.getMessageContent=function(n){return d.createElement(Ti.P,n)},n.prototype.createFileUploadQuestionRenderer=function(n){return Pi(n)},n.prototype.createCascadeQuestionRenderer=function(n){return null},n.prototype.getQuestionDelegatorClass=function(n){return function(n){switch(n){case"Question.Choice":return ei.G;case"Question.TextField":return vi;case"Question.DateTime":return ii;case"Question.Rating":return li;case"Question.Ranking":return fi;case"Question.MatrixChoice":return si;case"Question.MatrixChoiceGroup":return ai;case"Question.NPS":return ci;case"Question.FileUpload":return ui;default:throw Error(n+" is not supported")}}(n)},n.prototype.getCustomLanguageFriendlyName=function(n){return n},n.prototype.createChoiceQuestionRenderer=function(n){return d.createElement(Ui,n)},n.prototype.getQuestionRendererFooter=function(n){return null},n.prototype.handleSubmitButtonClick=function(n,t){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(r){switch(r.label){case 0:return[4,e.e(981).then(e.bind(e,96805))];case 1:return[2,(0,r.sent().default)(n,t)]}}))}))},n.prototype.cvOnlyLanguageUtility=function(){return null},n}();var Bi=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.hm="",t}return(0,h.C6)(t,n),t.prototype.render=function(){for(var n=[],t=0;t1?e-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:b;i&&i(n,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const n=e(i);n!==i&&(o(t)||(t[r]=n),i=n)}n[i]=!0}return n}function R(n){for(let t=0;t/gm),G=c(/\$\{[\w\W]*/gm),$=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),W=c(/^aria-[\-\w]+$/),K=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=c(/^(?:\w+script|data):/i),X=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=c(/^html$/i),Z=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var nn=Object.freeze({__proto__:null,ARIA_ATTR:W,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:Z,DATA_ATTR:$,DOCTYPE_NAME:Y,ERB_EXPR:Q,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:J,MUSTACHE_EXPR:j,TMPLIT_EXPR:G});const tn=1,en=3,rn=7,on=8,un=9,sn=function(){return"undefined"==typeof window?null:window},an=function(n,t){if("object"!=typeof n||"function"!=typeof n.createPolicy)return null;let e=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(e=t.getAttribute(r));const i="dompurify"+(e?"#"+e:"");try{return n.createPolicy(i,{createHTML:n=>n,createScriptURL:n=>n})}catch(n){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var cn=function n(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sn();const e=t=>n(t);if(e.version="3.2.4",e.removed=[],!t||!t.document||t.document.nodeType!==un||!t.Element)return e.isSupported=!1,e;let{document:i}=t;const o=i,u=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:l,Element:h,NodeFilter:P,NamedNodeMap:T=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:R,DOMParser:j,trustedTypes:Q}=t,G=h.prototype,$=L(G,"cloneNode"),W=L(G,"remove"),J=L(G,"nextSibling"),X=L(G,"childNodes"),Z=L(G,"parentNode");if("function"==typeof c){const n=i.createElement("template");n.content&&n.content.ownerDocument&&(i=n.content.ownerDocument)}let cn,fn="";const{implementation:ln,createNodeIterator:hn,createDocumentFragment:dn,getElementsByTagName:mn}=i,{importNode:vn}=o;let pn={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof r&&"function"==typeof Z&&ln&&void 0!==ln.createHTMLDocument;const{MUSTACHE_EXPR:gn,ERB_EXPR:bn,TMPLIT_EXPR:wn,DATA_ATTR:Sn,ARIA_ATTR:yn,IS_SCRIPT_OR_DATA:In,ATTR_WHITESPACE:Fn,CUSTOM_ELEMENT:Cn}=nn;let{IS_ALLOWED_URI:_n}=nn,kn=null;const Pn=N({},[...O,...x,...D,...A,...U]);let Tn=null;const Nn=N({},[...z,...B,...q,...H]);let Rn=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),En=null,Ln=null,On=!0,xn=!0,Dn=!1,Mn=!0,An=!1,Vn=!0,Un=!1,zn=!1,Bn=!1,qn=!1,Hn=!1,jn=!1,Qn=!0,Gn=!1;const $n="user-content-";let Wn=!0,Kn=!1,Jn={},Xn=null;const Yn=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Zn=null;const nt=N({},["audio","video","img","source","image","track"]);let tt=null;const et=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",it="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let ut=ot,st=!1,at=null;const ct=N({},[rt,it,ot],w);let ft=N({},["mi","mo","mn","ms","mtext"]),lt=N({},["annotation-xml"]);const ht=N({},["title","style","font","a","script"]);let dt=null;const mt=["application/xhtml+xml","text/html"],vt="text/html";let pt=null,gt=null;const bt=i.createElement("form"),wt=function(n){return n instanceof RegExp||n instanceof Function},St=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!gt||gt!==n){if(n&&"object"==typeof n||(n={}),n=E(n),dt=-1===mt.indexOf(n.PARSER_MEDIA_TYPE)?vt:n.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===dt?w:b,kn=C(n,"ALLOWED_TAGS")?N({},n.ALLOWED_TAGS,pt):Pn,Tn=C(n,"ALLOWED_ATTR")?N({},n.ALLOWED_ATTR,pt):Nn,at=C(n,"ALLOWED_NAMESPACES")?N({},n.ALLOWED_NAMESPACES,w):ct,tt=C(n,"ADD_URI_SAFE_ATTR")?N(E(et),n.ADD_URI_SAFE_ATTR,pt):et,Zn=C(n,"ADD_DATA_URI_TAGS")?N(E(nt),n.ADD_DATA_URI_TAGS,pt):nt,Xn=C(n,"FORBID_CONTENTS")?N({},n.FORBID_CONTENTS,pt):Yn,En=C(n,"FORBID_TAGS")?N({},n.FORBID_TAGS,pt):{},Ln=C(n,"FORBID_ATTR")?N({},n.FORBID_ATTR,pt):{},Jn=!!C(n,"USE_PROFILES")&&n.USE_PROFILES,On=!1!==n.ALLOW_ARIA_ATTR,xn=!1!==n.ALLOW_DATA_ATTR,Dn=n.ALLOW_UNKNOWN_PROTOCOLS||!1,Mn=!1!==n.ALLOW_SELF_CLOSE_IN_ATTR,An=n.SAFE_FOR_TEMPLATES||!1,Vn=!1!==n.SAFE_FOR_XML,Un=n.WHOLE_DOCUMENT||!1,qn=n.RETURN_DOM||!1,Hn=n.RETURN_DOM_FRAGMENT||!1,jn=n.RETURN_TRUSTED_TYPE||!1,Bn=n.FORCE_BODY||!1,Qn=!1!==n.SANITIZE_DOM,Gn=n.SANITIZE_NAMED_PROPS||!1,Wn=!1!==n.KEEP_CONTENT,Kn=n.IN_PLACE||!1,_n=n.ALLOWED_URI_REGEXP||K,ut=n.NAMESPACE||ot,ft=n.MATHML_TEXT_INTEGRATION_POINTS||ft,lt=n.HTML_INTEGRATION_POINTS||lt,Rn=n.CUSTOM_ELEMENT_HANDLING||{},n.CUSTOM_ELEMENT_HANDLING&&wt(n.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Rn.tagNameCheck=n.CUSTOM_ELEMENT_HANDLING.tagNameCheck),n.CUSTOM_ELEMENT_HANDLING&&wt(n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Rn.attributeNameCheck=n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),n.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Rn.allowCustomizedBuiltInElements=n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),An&&(xn=!1),Hn&&(qn=!0),Jn&&(kn=N({},U),Tn=[],!0===Jn.html&&(N(kn,O),N(Tn,z)),!0===Jn.svg&&(N(kn,x),N(Tn,B),N(Tn,H)),!0===Jn.svgFilters&&(N(kn,D),N(Tn,B),N(Tn,H)),!0===Jn.mathMl&&(N(kn,A),N(Tn,q),N(Tn,H))),n.ADD_TAGS&&(kn===Pn&&(kn=E(kn)),N(kn,n.ADD_TAGS,pt)),n.ADD_ATTR&&(Tn===Nn&&(Tn=E(Tn)),N(Tn,n.ADD_ATTR,pt)),n.ADD_URI_SAFE_ATTR&&N(tt,n.ADD_URI_SAFE_ATTR,pt),n.FORBID_CONTENTS&&(Xn===Yn&&(Xn=E(Xn)),N(Xn,n.FORBID_CONTENTS,pt)),Wn&&(kn["#text"]=!0),Un&&N(kn,["html","head","body"]),kn.table&&(N(kn,["tbody"]),delete En.tbody),n.TRUSTED_TYPES_POLICY){if("function"!=typeof n.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof n.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');cn=n.TRUSTED_TYPES_POLICY,fn=cn.createHTML("")}else void 0===cn&&(cn=an(Q,u)),null!==cn&&"string"==typeof fn&&(fn=cn.createHTML(""));a&&a(n),gt=n}},yt=N({},[...x,...D,...M]),It=N({},[...A,...V]),Ft=function(n){let t=Z(n);t&&t.tagName||(t={namespaceURI:ut,tagName:"template"});const e=b(n.tagName),r=b(t.tagName);return!!at[n.namespaceURI]&&(n.namespaceURI===it?t.namespaceURI===ot?"svg"===e:t.namespaceURI===rt?"svg"===e&&("annotation-xml"===r||ft[r]):Boolean(yt[e]):n.namespaceURI===rt?t.namespaceURI===ot?"math"===e:t.namespaceURI===it?"math"===e&<[r]:Boolean(It[e]):n.namespaceURI===ot?!(t.namespaceURI===it&&!lt[r])&&(!(t.namespaceURI===rt&&!ft[r])&&(!It[e]&&(ht[e]||!yt[e]))):!("application/xhtml+xml"!==dt||!at[n.namespaceURI]))},Ct=function(n){p(e.removed,{element:n});try{Z(n).removeChild(n)}catch(t){W(n)}},_t=function(n,t){try{p(e.removed,{attribute:t.getAttributeNode(n),from:t})}catch(n){p(e.removed,{attribute:null,from:t})}if(t.removeAttribute(n),"is"===n)if(qn||Hn)try{Ct(t)}catch(n){}else try{t.setAttribute(n,"")}catch(n){}},kt=function(n){let t=null,e=null;if(Bn)n=""+n;else{const t=S(n,/^[\r\n\t ]+/);e=t&&t[0]}"application/xhtml+xml"===dt&&ut===ot&&(n=''+n+"");const r=cn?cn.createHTML(n):n;if(ut===ot)try{t=(new j).parseFromString(r,dt)}catch(n){}if(!t||!t.documentElement){t=ln.createDocument(ut,"template",null);try{t.documentElement.innerHTML=st?fn:r}catch(n){}}const o=t.body||t.documentElement;return n&&e&&o.insertBefore(i.createTextNode(e),o.childNodes[0]||null),ut===ot?mn.call(t,Un?"html":"body")[0]:Un?t.documentElement:o},Pt=function(n){return hn.call(n.ownerDocument||n,n,P.SHOW_ELEMENT|P.SHOW_COMMENT|P.SHOW_TEXT|P.SHOW_PROCESSING_INSTRUCTION|P.SHOW_CDATA_SECTION,null)},Tt=function(n){return n instanceof R&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof T)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes)},Nt=function(n){return"function"==typeof l&&n instanceof l};function Rt(n,t,r){d(n,(n=>{n.call(e,t,r,gt)}))}const Et=function(n){let t=null;if(Rt(pn.beforeSanitizeElements,n,null),Tt(n))return Ct(n),!0;const r=pt(n.nodeName);if(Rt(pn.uponSanitizeElement,n,{tagName:r,allowedTags:kn}),n.hasChildNodes()&&!Nt(n.firstElementChild)&&_(/<[/\w]/g,n.innerHTML)&&_(/<[/\w]/g,n.textContent))return Ct(n),!0;if(n.nodeType===rn)return Ct(n),!0;if(Vn&&n.nodeType===on&&_(/<[/\w]/g,n.data))return Ct(n),!0;if(!kn[r]||En[r]){if(!En[r]&&Ot(r)){if(Rn.tagNameCheck instanceof RegExp&&_(Rn.tagNameCheck,r))return!1;if(Rn.tagNameCheck instanceof Function&&Rn.tagNameCheck(r))return!1}if(Wn&&!Xn[r]){const t=Z(n)||n.parentNode,e=X(n)||n.childNodes;if(e&&t){for(let r=e.length-1;r>=0;--r){const i=$(e[r],!0);i.__removalCount=(n.__removalCount||0)+1,t.insertBefore(i,J(n))}}}return Ct(n),!0}return n instanceof h&&!Ft(n)?(Ct(n),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!_(/<\/no(script|embed|frames)/i,n.innerHTML)?(An&&n.nodeType===en&&(t=n.textContent,d([gn,bn,wn],(n=>{t=y(t,n," ")})),n.textContent!==t&&(p(e.removed,{element:n.cloneNode()}),n.textContent=t)),Rt(pn.afterSanitizeElements,n,null),!1):(Ct(n),!0)},Lt=function(n,t,e){if(Qn&&("id"===t||"name"===t)&&(e in i||e in bt))return!1;if(xn&&!Ln[t]&&_(Sn,t));else if(On&&_(yn,t));else if(!Tn[t]||Ln[t]){if(!(Ot(n)&&(Rn.tagNameCheck instanceof RegExp&&_(Rn.tagNameCheck,n)||Rn.tagNameCheck instanceof Function&&Rn.tagNameCheck(n))&&(Rn.attributeNameCheck instanceof RegExp&&_(Rn.attributeNameCheck,t)||Rn.attributeNameCheck instanceof Function&&Rn.attributeNameCheck(t))||"is"===t&&Rn.allowCustomizedBuiltInElements&&(Rn.tagNameCheck instanceof RegExp&&_(Rn.tagNameCheck,e)||Rn.tagNameCheck instanceof Function&&Rn.tagNameCheck(e))))return!1}else if(tt[t]);else if(_(_n,y(e,Fn,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===n||0!==I(e,"data:")||!Zn[n]){if(Dn&&!_(In,y(e,Fn,"")));else if(e)return!1}else;return!0},Ot=function(n){return"annotation-xml"!==n&&S(n,Cn)},xt=function(n){Rt(pn.beforeSanitizeAttributes,n,null);const{attributes:t}=n;if(!t||Tt(n))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Tn,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:u,namespaceURI:s,value:a}=o,c=pt(u);let f="value"===u?a:F(a);if(r.attrName=c,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,Rt(pn.uponSanitizeAttribute,n,r),f=r.attrValue,!Gn||"id"!==c&&"name"!==c||(_t(u,n),f=$n+f),Vn&&_(/((--!?|])>)|<\/(style|title)/i,f)){_t(u,n);continue}if(r.forceKeepAttr)continue;if(_t(u,n),!r.keepAttr)continue;if(!Mn&&_(/\/>/i,f)){_t(u,n);continue}An&&d([gn,bn,wn],(n=>{f=y(f,n," ")}));const l=pt(n.nodeName);if(Lt(l,c,f)){if(cn&&"object"==typeof Q&&"function"==typeof Q.getAttributeType)if(s);else switch(Q.getAttributeType(l,c)){case"TrustedHTML":f=cn.createHTML(f);break;case"TrustedScriptURL":f=cn.createScriptURL(f)}try{s?n.setAttributeNS(s,u,f):n.setAttribute(u,f),Tt(n)?Ct(n):v(e.removed)}catch(n){}}}Rt(pn.afterSanitizeAttributes,n,null)},Dt=function n(t){let e=null;const r=Pt(t);for(Rt(pn.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)Rt(pn.uponSanitizeShadowNode,e,null),Et(e),xt(e),e.content instanceof s&&n(e.content);Rt(pn.afterSanitizeShadowDOM,t,null)};return e.sanitize=function(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,u=null,a=null;if(st=!n,st&&(n="\x3c!--\x3e"),"string"!=typeof n&&!Nt(n)){if("function"!=typeof n.toString)throw k("toString is not a function");if("string"!=typeof(n=n.toString()))throw k("dirty is not a string, aborting")}if(!e.isSupported)return n;if(zn||St(t),e.removed=[],"string"==typeof n&&(Kn=!1),Kn){if(n.nodeName){const t=pt(n.nodeName);if(!kn[t]||En[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(n instanceof l)r=kt("\x3c!----\x3e"),i=r.ownerDocument.importNode(n,!0),i.nodeType===tn&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!qn&&!An&&!Un&&-1===n.indexOf("<"))return cn&&jn?cn.createHTML(n):n;if(r=kt(n),!r)return qn?null:jn?fn:""}r&&Bn&&Ct(r.firstChild);const c=Pt(Kn?n:r);for(;u=c.nextNode();)Et(u),xt(u),u.content instanceof s&&Dt(u.content);if(Kn)return n;if(qn){if(Hn)for(a=dn.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(Tn.shadowroot||Tn.shadowrootmode)&&(a=vn.call(o,a,!0)),a}let f=Un?r.outerHTML:r.innerHTML;return Un&&kn["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&_(Y,r.ownerDocument.doctype.name)&&(f="\n"+f),An&&d([gn,bn,wn],(n=>{f=y(f,n," ")})),cn&&jn?cn.createHTML(f):f},e.setConfig=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};St(n),zn=!0},e.clearConfig=function(){gt=null,zn=!1},e.isValidAttribute=function(n,t,e){gt||St({});const r=pt(n),i=pt(t);return Lt(r,i,e)},e.addHook=function(n,t){"function"==typeof t&&p(pn[n],t)},e.removeHook=function(n,t){if(void 0!==t){const e=m(pn[n],t);return-1===e?void 0:g(pn[n],e,1)[0]}return v(pn[n])},e.removeHooks=function(n){pn[n]=[]},e.removeAllHooks=function(){pn={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}()},34629:function(n,t,e){"use strict";e.d(t,{C6:function(){return i},Cg:function(){return s},Cl:function(){return o},Tt:function(){return u},YH:function(){return c},fX:function(){return f},sH:function(){return a}});var r=function(n,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])},r(n,t)};function i(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var o=function(){return o=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;s--)(i=n[s])&&(u=(o<3?i(u):o>3?i(t,e,u):i(t,e))||u);return o>3&&u&&Object.defineProperty(t,e,u),u}function a(n,t,e,r){return new(e||(e=Promise))((function(i,o){function u(n){try{a(r.next(n))}catch(n){o(n)}}function s(n){try{a(r.throw(n))}catch(n){o(n)}}function a(n){var t;n.done?i(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(u,s)}a((r=r.apply(n,t||[])).next())}))}function c(n,t){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=s(0),u.throw=s(1),u.return=s(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(s){return function(a){return function(s){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,s[0]&&(o=0)),o;)try{if(e=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=r)&&Object.keys(__webpack_require__.O).every((function(n){return __webpack_require__.O[n](t[u])}))?t.splice(u--,1):(o=!1,r0&&deferred[a-1][2]>r;a--)deferred[a]=deferred[a-1];deferred[a]=[t,e,r]},__webpack_require__.F={},__webpack_require__.E=function(n){Object.keys(__webpack_require__.F).map((function(t){__webpack_require__.F[t](n)}))},__webpack_require__.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?function(n){return Object.getPrototypeOf(n)}:function(n){return n.__proto__},__webpack_require__.t=function(n,t){if(1&t&&(n=this(n)),8&t)return n;if("object"==typeof n&&n){if(4&t&&n.__esModule)return n;if(16&t&&"function"==typeof n.then)return n}var e=Object.create(null);__webpack_require__.r(e);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&n;"object"==typeof i&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach((function(t){r[t]=function(){return n[t]}}));return r.default=function(){return n},__webpack_require__.d(e,r),e},__webpack_require__.d=function(n,t){for(var e in t)__webpack_require__.o(t,e)&&!__webpack_require__.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},__webpack_require__.f={},__webpack_require__.e=function(n){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,e){return __webpack_require__.f[e](n,t),t}),[]))},__webpack_require__.u=function(n){return"response-page-pro.chunk."+({14:"cvsearchboxcontrol",96:"vendors",105:"fluent",149:"math",231:"utel",267:"1ds",297:"cv_condtku",308:"quiz",425:"branchingpanel",428:"question.datetime",439:"question.ranking",476:"question.nps",506:"json_intelligence_useractionsignals",534:"question.fileupload",552:"json_cv_themes",579:"lrp_ext",642:"shareform",697:"ribbon_editor",826:"json_themes",899:"phishing",902:"ir",906:"cvtitlerender",948:"question.likert",954:"cvheadertheme",981:"postsubmit",995:"question.cascade",996:"question.rating"}[n]||n)+"."+{14:"dcc03d4",23:"f7bb027",96:"aa37695",105:"384d906",149:"beef1df",231:"75f6907",267:"5faece9",297:"ac0675c",308:"4c32c58",425:"a54d700",428:"36ab7a3",439:"0f70b86",476:"72fa590",484:"2a442ed",506:"d9907bb",534:"e935dcd",552:"b52bf2a",579:"e1de900",616:"93becff",642:"3f1c267",697:"c348b3d",826:"65bc0c4",899:"50f6bc2",902:"96ce202",906:"5c3a6c8",948:"24a0080",954:"ad875c4",981:"f2daf58",995:"8973ba5",996:"be446e0"}[n]+".js"},__webpack_require__.miniCssF=function(n){},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),__webpack_require__.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},inProgress={},__webpack_require__.l=function(n,t,e,r){if(inProgress[n])inProgress[n].push(t);else{var i,o;if(void 0!==e)for(var u=document.getElementsByTagName("script"),s=0;s-1;return r+(e.has(t)?(i?"&":"?")+e.get(t):"")},__webpack_require__.e=function(i){return t(i).catch((function(t){var o=r.has(i)?r.get(i):2;if(o<1){var u=n(i);throw t.message="Loading chunk "+i+" failed after 2 retries.\n("+u+")",t.request=u,t}return new Promise((function(n){setTimeout((function(){var t="cache-bust=true"+("&retry-attempt="+(2-o+1));e.set(i,t),r.set(i,o-1),n(__webpack_require__.e(i))}),0)}))}))}}}(),void 0!==__webpack_require__&&Object.defineProperty(__webpack_require__,"p",{get:function(){try{if("function"!=typeof getChunkPath)throw new Error("WebpackRequireFrom: 'getChunkPath' is not a function or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting");return getChunkPath()}catch(n){return""}},set:function(n){console.warn("WebpackRequireFrom: something is trying to override webpack public path. Ignoring the new value"+n+".")}}),function(){var n={48:0};__webpack_require__.f.j=function(t,e){var r=__webpack_require__.o(n,t)?n[t]:void 0;if(0!==r)if(r)e.push(r[2]);else{var i=new Promise((function(e,i){r=n[t]=[e,i]}));e.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),u=new Error;__webpack_require__.l(o,(function(e){if(__webpack_require__.o(n,t)&&(0!==(r=n[t])&&(n[t]=void 0),r)){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;u.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",u.name="ChunkLoadError",u.type=i,u.request=o,r[1](u)}}),"chunk-"+t,t)}},__webpack_require__.F.j=function(t){if(!__webpack_require__.o(n,t)||void 0===n[t]){n[t]=null;var e=document.createElement("link");__webpack_require__.nc&&e.setAttribute("nonce",__webpack_require__.nc),e.rel="prefetch",e.as="script",e.href=__webpack_require__.p+__webpack_require__.u(t),document.head.appendChild(e)}},__webpack_require__.O.j=function(t){return 0===n[t]};var t=function(t,e){var r,i,o=e[0],u=e[1],s=e[2],a=0;if(o.some((function(t){return 0!==n[t]}))){for(r in u)__webpack_require__.o(u,r)&&(__webpack_require__.m[r]=u[r]);if(s)var c=s(__webpack_require__)}for(t&&t(e);a